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-ads Active Directory support (default yes)"
52 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
54 --with-ldap LDAP support (default yes)"
56 --with-automount Include AUTOMOUNT support (default=no)"
58 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
60 --with-pam Include PAM support (default=no)"
62 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
64 --with-sam Build new (experimental) SAM database (default=no)"
66 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
68 --with-tdbsam Include experimental TDB SAM support (default=no)"
70 --with-nisplussam Include NISPLUS SAM support (default=no)"
72 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
74 --with-syslog Include experimental SYSLOG support (default=no)"
76 --with-profiling-data Include gathering source code profile information (default=no)"
78 --with-quotas Include experimental disk-quota support (default=no)"
80 --with-utmp Include experimental utmp accounting (default=no)"
82 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
84 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
86 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
88 --with-acl-support Include ACL support (default=no)"
90 --with-sendfile-support Check for sendfile support (default=no)"
92 --with-winbind Build winbind (default, if supported by OS)"
94 --with-included-popt use bundled popt library, not from system"
96 --with-python=PYTHONNAME build Python libraries"
98 # Initialize some variables set by options.
99 # The variables have the same names as the options, with
100 # dashes changed to underlines.
102 cache_file=./config.cache
111 program_transform_name=s,x,x,
119 bindir='${exec_prefix}/bin'
120 sbindir='${exec_prefix}/sbin'
121 libexecdir='${exec_prefix}/libexec'
122 datadir='${prefix}/share'
123 sysconfdir='${prefix}/etc'
124 sharedstatedir='${prefix}/com'
125 localstatedir='${prefix}/var'
126 libdir='${exec_prefix}/lib'
127 includedir='${prefix}/include'
128 oldincludedir='/usr/include'
129 infodir='${prefix}/info'
130 mandir='${prefix}/man'
132 # Initialize some other variables.
135 SHELL=${CONFIG_SHELL-/bin/sh}
136 # Maximum number of lines to put in a shell here document.
143 # If the previous option needs an argument, assign it.
144 if test -n "$ac_prev"; then
145 eval "$ac_prev=\$ac_option"
151 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 # Accept the important Cygnus configure options, so we can diagnose typos.
159 -bindir | --bindir | --bindi | --bind | --bin | --bi)
161 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
162 bindir="$ac_optarg" ;;
164 -build | --build | --buil | --bui | --bu)
166 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
167 build="$ac_optarg" ;;
169 -cache-file | --cache-file | --cache-fil | --cache-fi \
170 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
171 ac_prev=cache_file ;;
172 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
173 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
174 cache_file="$ac_optarg" ;;
176 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
178 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
180 datadir="$ac_optarg" ;;
182 -disable-* | --disable-*)
183 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}=no" ;;
191 -enable-* | --enable-*)
192 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
193 # Reject names that are not valid shell variable names.
194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
202 eval "enable_${ac_feature}='$ac_optarg'" ;;
204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
206 | --exec | --exe | --ex)
207 ac_prev=exec_prefix ;;
208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
210 | --exec=* | --exe=* | --ex=*)
211 exec_prefix="$ac_optarg" ;;
213 -gas | --gas | --ga | --g)
214 # Obsolete; use --with-gas.
217 -help | --help | --hel | --he)
218 # Omit some internal or obsolete options to make the list less imposing.
219 # This message is too long to be a string in the A/UX 3.1 sh.
221 Usage: configure [options] [host]
222 Options: [defaults in brackets after descriptions]
224 --cache-file=FILE cache test results in FILE
225 --help print this message
226 --no-create do not create output files
227 --quiet, --silent do not print \`checking...' messages
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
272 -host | --host | --hos | --ho)
274 -host=* | --host=* | --hos=* | --ho=*)
277 -includedir | --includedir | --includedi | --included | --include \
278 | --includ | --inclu | --incl | --inc)
279 ac_prev=includedir ;;
280 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
281 | --includ=* | --inclu=* | --incl=* | --inc=*)
282 includedir="$ac_optarg" ;;
284 -infodir | --infodir | --infodi | --infod | --info | --inf)
286 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
287 infodir="$ac_optarg" ;;
289 -libdir | --libdir | --libdi | --libd)
291 -libdir=* | --libdir=* | --libdi=* | --libd=*)
292 libdir="$ac_optarg" ;;
294 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
295 | --libexe | --libex | --libe)
296 ac_prev=libexecdir ;;
297 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
298 | --libexe=* | --libex=* | --libe=*)
299 libexecdir="$ac_optarg" ;;
301 -localstatedir | --localstatedir | --localstatedi | --localstated \
302 | --localstate | --localstat | --localsta | --localst \
303 | --locals | --local | --loca | --loc | --lo)
304 ac_prev=localstatedir ;;
305 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
306 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
307 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
308 localstatedir="$ac_optarg" ;;
310 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
312 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
313 mandir="$ac_optarg" ;;
316 # Obsolete; use --without-fp.
319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
324 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
328 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
329 | --oldin | --oldi | --old | --ol | --o)
330 ac_prev=oldincludedir ;;
331 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
332 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
333 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
334 oldincludedir="$ac_optarg" ;;
336 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
338 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
339 prefix="$ac_optarg" ;;
341 -program-prefix | --program-prefix | --program-prefi | --program-pref \
342 | --program-pre | --program-pr | --program-p)
343 ac_prev=program_prefix ;;
344 -program-prefix=* | --program-prefix=* | --program-prefi=* \
345 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
346 program_prefix="$ac_optarg" ;;
348 -program-suffix | --program-suffix | --program-suffi | --program-suff \
349 | --program-suf | --program-su | --program-s)
350 ac_prev=program_suffix ;;
351 -program-suffix=* | --program-suffix=* | --program-suffi=* \
352 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
353 program_suffix="$ac_optarg" ;;
355 -program-transform-name | --program-transform-name \
356 | --program-transform-nam | --program-transform-na \
357 | --program-transform-n | --program-transform- \
358 | --program-transform | --program-transfor \
359 | --program-transfo | --program-transf \
360 | --program-trans | --program-tran \
361 | --progr-tra | --program-tr | --program-t)
362 ac_prev=program_transform_name ;;
363 -program-transform-name=* | --program-transform-name=* \
364 | --program-transform-nam=* | --program-transform-na=* \
365 | --program-transform-n=* | --program-transform-=* \
366 | --program-transform=* | --program-transfor=* \
367 | --program-transfo=* | --program-transf=* \
368 | --program-trans=* | --program-tran=* \
369 | --progr-tra=* | --program-tr=* | --program-t=*)
370 program_transform_name="$ac_optarg" ;;
372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
373 | -silent | --silent | --silen | --sile | --sil)
376 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
378 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
380 sbindir="$ac_optarg" ;;
382 -sharedstatedir | --sharedstatedir | --sharedstatedi \
383 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
384 | --sharedst | --shareds | --shared | --share | --shar \
386 ac_prev=sharedstatedir ;;
387 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
388 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
389 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
391 sharedstatedir="$ac_optarg" ;;
393 -site | --site | --sit)
395 -site=* | --site=* | --sit=*)
398 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
400 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
401 srcdir="$ac_optarg" ;;
403 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
404 | --syscon | --sysco | --sysc | --sys | --sy)
405 ac_prev=sysconfdir ;;
406 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
407 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
408 sysconfdir="$ac_optarg" ;;
410 -target | --target | --targe | --targ | --tar | --ta | --t)
412 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
413 target="$ac_optarg" ;;
415 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 -version | --version | --versio | --versi | --vers)
419 echo "configure generated by autoconf version 2.13"
423 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}='$ac_optarg'" ;;
435 -without-* | --without-*)
436 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package=`echo $ac_package| sed 's/-/_/g'`
442 eval "with_${ac_package}=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449 | --x-incl | --x-inc | --x-in | --x-i)
450 ac_prev=x_includes ;;
451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
453 x_includes="$ac_optarg" ;;
455 -x-libraries | --x-libraries | --x-librarie | --x-librari \
456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457 ac_prev=x_libraries ;;
458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
460 x_libraries="$ac_optarg" ;;
462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
478 if test -n "$ac_prev"; then
479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484 # File descriptor usage:
487 # 2 errors and warnings
488 # 3 some systems may open it to /dev/tty
489 # 4 used on the Kubota Titan
490 # 6 checking for... messages and results
491 # 5 compiler messages saved in config.log
492 if test "$silent" = yes; then
500 This file contains any messages produced by compilers while
501 running configure, to aid debugging if configure makes a mistake.
504 # Strip out --no-create and --no-recursion so they do not pile up.
505 # Also quote any args containing shell metacharacters.
510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
511 | --no-cr | --no-c) ;;
512 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
513 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
515 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
516 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
521 # Only set these to C if already set. These must not be set unconditionally
522 # because not all systems understand e.g. LANG=C (notably SCO).
523 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
524 # Non-C LC_CTYPE values break the ctype check.
525 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
526 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
527 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
528 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
531 rm -rf conftest* confdefs.h
532 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
535 # A filename unique to this package, relative to the directory that
536 # configure is in, which we can look for to find out if srcdir is correct.
537 ac_unique_file=include/includes.h
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562 # Prefer explicitly selected file to automatically selected ones.
563 if test -z "$CONFIG_SITE"; then
564 if test "x$prefix" != xNONE; then
565 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
567 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 for ac_site_file in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp='$CPP $CPPFLAGS'
588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
603 ac_n= ac_c='\c' ac_t=
609 #################################################
610 # Directory handling stuff to support both the
611 # legacy SAMBA directories and FHS compliant
615 # Check whether --with-fhs or --without-fhs was given.
616 if test "${with_fhs+set}" = set; then
618 configdir="${sysconfdir}/samba"
619 lockdir="\${VARDIR}/cache/samba"
620 piddir="\$(VARDIR)/run/samba"
621 logfilebase="\${VARDIR}/log/samba"
622 privatedir="\${CONFIGDIR}/private"
623 swatdir="\${DATADIR}/samba/swat"
625 configdir="\$(LIBDIR)"
626 logfilebase="\$(VARDIR)"
627 lockdir="\${VARDIR}/locks"
628 piddir="\$(VARDIR)/locks"
629 privatedir="\${prefix}/private"
630 swatdir="\${prefix}/swat"
634 #################################################
635 # set private directory location
636 # Check whether --with-privatedir or --without-privatedir was given.
637 if test "${with_privatedir+set}" = set; then
638 withval="$with_privatedir"
642 # Just in case anybody calls it without argument
644 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
647 privatedir="$withval"
653 #################################################
654 # set lock directory location
655 # Check whether --with-lockdir or --without-lockdir was given.
656 if test "${with_lockdir+set}" = set; then
657 withval="$with_lockdir"
661 # Just in case anybody calls it without argument
663 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
672 #################################################
673 # set pid directory location
674 # Check whether --with-piddir or --without-piddir was given.
675 if test "${with_piddir+set}" = set; then
676 withval="$with_piddir"
680 # Just in case anybody calls it without argument
682 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
691 #################################################
692 # set SWAT directory location
693 # Check whether --with-swatdir or --without-swatdir was given.
694 if test "${with_swatdir+set}" = set; then
695 withval="$with_swatdir"
699 # Just in case anybody does it
701 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
710 #################################################
711 # set configuration directory location
712 # Check whether --with-configdir or --without-configdir was given.
713 if test "${with_configdir+set}" = set; then
714 withval="$with_configdir"
718 # Just in case anybody does it
720 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
729 #################################################
730 # set log directory location
731 # Check whether --with-logfilebase or --without-logfilebase was given.
732 if test "${with_logfilebase+set}" = set; then
733 withval="$with_logfilebase"
737 # Just in case anybody does it
739 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
742 logfilebase="$withval"
777 # compile with optimization and without debugging by default
778 CFLAGS="-O ${CFLAGS}"
780 # Check whether --enable-debug or --disable-debug was given.
781 if test "${enable_debug+set}" = set; then
782 enableval="$enable_debug"
783 if eval "test x$enable_debug = xyes"; then
784 CFLAGS="${CFLAGS} -g"
789 # Check whether --enable-developer or --disable-developer was given.
790 if test "${enable_developer+set}" = set; then
791 enableval="$enable_developer"
792 if eval "test x$enable_developer = xyes"; then
793 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
798 # Check whether --enable-krb5developer or --disable-krb5developer was given.
799 if test "${enable_krb5developer+set}" = set; then
800 enableval="$enable_krb5developer"
801 if eval "test x$enable_krb5developer = xyes"; then
802 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
807 # Check whether --enable-dmalloc or --disable-dmalloc was given.
808 if test "${enable_dmalloc+set}" = set; then
809 enableval="$enable_dmalloc"
814 if test "x$enable_dmalloc" = xyes
816 cat >> confdefs.h <<\EOF
817 #define ENABLE_DMALLOC 1
820 cat >> confdefs.h <<\EOF
821 #define DMALLOC_FUNC_CHECK 1
824 LIBS="$LIBS -ldmalloc"
827 # Extract the first word of "gcc", so it can be a program name with args.
828 set dummy gcc; ac_word=$2
829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
830 echo "configure:831: checking for $ac_word" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 if test -n "$CC"; then
835 ac_cv_prog_CC="$CC" # Let the user override the test.
837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
839 for ac_dir in $ac_dummy; do
840 test -z "$ac_dir" && ac_dir=.
841 if test -f $ac_dir/$ac_word; then
850 if test -n "$CC"; then
851 echo "$ac_t""$CC" 1>&6
853 echo "$ac_t""no" 1>&6
856 if test -z "$CC"; then
857 # Extract the first word of "cc", so it can be a program name with args.
858 set dummy cc; ac_word=$2
859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
860 echo "configure:861: checking for $ac_word" >&5
861 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 if test -n "$CC"; then
865 ac_cv_prog_CC="$CC" # Let the user override the test.
867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
870 for ac_dir in $ac_dummy; do
871 test -z "$ac_dir" && ac_dir=.
872 if test -f $ac_dir/$ac_word; then
873 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
882 if test $ac_prog_rejected = yes; then
883 # We found a bogon in the path, so make sure we never use it.
884 set dummy $ac_cv_prog_CC
886 if test $# -gt 0; then
887 # We chose a different compiler from the bogus one.
888 # However, it has the same basename, so the bogon will be chosen
889 # first if we set CC to just the basename; use the full file name.
891 set dummy "$ac_dir/$ac_word" "$@"
899 if test -n "$CC"; then
900 echo "$ac_t""$CC" 1>&6
902 echo "$ac_t""no" 1>&6
905 if test -z "$CC"; then
908 # Extract the first word of "cl", so it can be a program name with args.
909 set dummy cl; ac_word=$2
910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
911 echo "configure:912: checking for $ac_word" >&5
912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
915 if test -n "$CC"; then
916 ac_cv_prog_CC="$CC" # Let the user override the test.
918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
920 for ac_dir in $ac_dummy; do
921 test -z "$ac_dir" && ac_dir=.
922 if test -f $ac_dir/$ac_word; then
931 if test -n "$CC"; then
932 echo "$ac_t""$CC" 1>&6
934 echo "$ac_t""no" 1>&6
939 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
942 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
943 echo "configure:944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
947 ac_cpp='$CPP $CPPFLAGS'
948 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
949 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
950 cross_compiling=$ac_cv_prog_cc_cross
952 cat > conftest.$ac_ext << EOF
954 #line 955 "configure"
955 #include "confdefs.h"
959 if { (eval echo configure:960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
960 ac_cv_prog_cc_works=yes
961 # If we can't run a trivial program, we are probably using a cross compiler.
962 if (./conftest; exit) 2>/dev/null; then
963 ac_cv_prog_cc_cross=no
965 ac_cv_prog_cc_cross=yes
968 echo "configure: failed program was:" >&5
969 cat conftest.$ac_ext >&5
970 ac_cv_prog_cc_works=no
974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
975 ac_cpp='$CPP $CPPFLAGS'
976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
978 cross_compiling=$ac_cv_prog_cc_cross
980 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
981 if test $ac_cv_prog_cc_works = no; then
982 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
984 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
985 echo "configure:986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
986 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
987 cross_compiling=$ac_cv_prog_cc_cross
989 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
990 echo "configure:991: checking whether we are using GNU C" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 cat > conftest.c <<EOF
999 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1006 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1008 if test $ac_cv_prog_gcc = yes; then
1014 ac_test_CFLAGS="${CFLAGS+set}"
1015 ac_save_CFLAGS="$CFLAGS"
1017 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether ${CC-cc} accepts -g" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 echo 'void f(){}' > conftest.c
1023 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1032 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1033 if test "$ac_test_CFLAGS" = set; then
1034 CFLAGS="$ac_save_CFLAGS"
1035 elif test $ac_cv_prog_cc_g = yes; then
1036 if test "$GCC" = yes; then
1042 if test "$GCC" = yes; then
1050 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1051 if test -f $ac_dir/install-sh; then
1053 ac_install_sh="$ac_aux_dir/install-sh -c"
1055 elif test -f $ac_dir/install.sh; then
1057 ac_install_sh="$ac_aux_dir/install.sh -c"
1061 if test -z "$ac_aux_dir"; then
1062 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1064 ac_config_guess=$ac_aux_dir/config.guess
1065 ac_config_sub=$ac_aux_dir/config.sub
1066 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1068 # Find a good install program. We prefer a C program (faster),
1069 # so one script is as good as another. But avoid the broken or
1070 # incompatible versions:
1071 # SysV /etc/install, /usr/sbin/install
1072 # SunOS /usr/etc/install
1073 # IRIX /sbin/install
1075 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1076 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1077 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1078 # ./install, which can be erroneously created by make from ./install.sh.
1079 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1080 echo "configure:1081: checking for a BSD compatible install" >&5
1081 if test -z "$INSTALL"; then
1082 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1086 for ac_dir in $PATH; do
1087 # Account for people who put trailing slashes in PATH elements.
1089 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1091 # OSF1 and SCO ODT 3.0 have their own names for install.
1092 # Don't use installbsd from OSF since it installs stuff as root
1094 for ac_prog in ginstall scoinst install; do
1095 if test -f $ac_dir/$ac_prog; then
1096 if test $ac_prog = install &&
1097 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1098 # AIX install. It has an incompatible calling convention.
1101 ac_cv_path_install="$ac_dir/$ac_prog -c"
1112 if test "${ac_cv_path_install+set}" = set; then
1113 INSTALL="$ac_cv_path_install"
1115 # As a last resort, use the slow shell script. We don't cache a
1116 # path for INSTALL within a source directory, because that will
1117 # break other packages using the cache if that directory is
1118 # removed, or if the path is relative.
1119 INSTALL="$ac_install_sh"
1122 echo "$ac_t""$INSTALL" 1>&6
1124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1125 # It thinks the first close brace ends the variable substitution.
1126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1132 for ac_prog in gawk mawk nawk awk
1134 # Extract the first word of "$ac_prog", so it can be a program name with args.
1135 set dummy $ac_prog; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 if test -n "$AWK"; then
1142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1146 for ac_dir in $ac_dummy; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f $ac_dir/$ac_word; then
1149 ac_cv_prog_AWK="$ac_prog"
1156 AWK="$ac_cv_prog_AWK"
1157 if test -n "$AWK"; then
1158 echo "$ac_t""$AWK" 1>&6
1160 echo "$ac_t""no" 1>&6
1163 test -n "$AWK" && break
1168 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1169 echo "configure:1170: checking if the linker ($LD) is GNU ld" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1174 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1175 ac_cv_prog_gnu_ld=yes
1177 ac_cv_prog_gnu_ld=no
1181 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1184 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1185 echo "configure:1186: checking for POSIXized ISC" >&5
1186 if test -d /etc/conf/kconfig.d &&
1187 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1189 echo "$ac_t""yes" 1>&6
1190 ISC=yes # If later tests want to check for ISC.
1191 cat >> confdefs.h <<\EOF
1192 #define _POSIX_SOURCE 1
1195 if test "$GCC" = yes; then
1201 echo "$ac_t""no" 1>&6
1206 if test "x$CC" != xcc; then
1207 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether $CC and cc understand -c and -o together" >&5
1210 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1211 echo "configure:1212: checking whether cc understands -c and -o together" >&5
1213 set dummy $CC; ac_cc="`echo $2 |
1214 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1215 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 echo 'foo(){}' > conftest.c
1219 # Make sure it works both with $CC and with simple cc.
1220 # We do the test twice because some compilers refuse to overwrite an
1221 # existing .o file with -o, though they will create one.
1222 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1223 if { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1224 test -f conftest.o && { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1226 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1227 if test "x$CC" != xcc; then
1228 # Test first that cc exists at all.
1229 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1230 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1231 if { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1232 test -f conftest.o && { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1237 # cc exists but doesn't like -o.
1238 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1243 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1248 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1249 echo "$ac_t""yes" 1>&6
1251 echo "$ac_t""no" 1>&6
1252 cat >> confdefs.h <<\EOF
1253 #define NO_MINUS_C_MINUS_O 1
1258 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1265 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1266 echo "configure:1267: checking that the C compiler understands volatile" >&5
1267 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1271 cat > conftest.$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1274 #include <sys/types.h>
1279 if { (eval echo configure:1280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1281 samba_cv_volatile=yes
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1286 samba_cv_volatile=no
1291 echo "$ac_t""$samba_cv_volatile" 1>&6
1292 if test x"$samba_cv_volatile" = x"yes"; then
1293 cat >> confdefs.h <<\EOF
1294 #define HAVE_VOLATILE 1
1301 # Do some error checking and defaulting for the host and target type.
1303 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1306 # 1. You are not allowed to specify --host, --target, and nonopt at the
1308 # 2. Host defaults to nonopt.
1309 # 3. If nonopt is not specified, then host defaults to the current host,
1310 # as determined by config.guess.
1311 # 4. Target and build default to nonopt.
1312 # 5. If nonopt is not specified, then target and build default to host.
1314 # The aliases save the names the user supplied, while $host etc.
1315 # will get canonicalized.
1316 case $host---$target---$nonopt in
1317 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1318 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1322 # Make sure we can run config.sub.
1323 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1324 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1327 echo $ac_n "checking host system type""... $ac_c" 1>&6
1328 echo "configure:1329: checking host system type" >&5
1331 case "$host_alias" in
1335 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1336 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1338 *) host_alias=$nonopt ;;
1342 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1343 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$ac_t""$host" 1>&6
1348 echo $ac_n "checking target system type""... $ac_c" 1>&6
1349 echo "configure:1350: checking target system type" >&5
1351 target_alias=$target
1352 case "$target_alias" in
1355 NONE) target_alias=$host_alias ;;
1356 *) target_alias=$nonopt ;;
1360 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1361 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1362 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1363 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1364 echo "$ac_t""$target" 1>&6
1366 echo $ac_n "checking build system type""... $ac_c" 1>&6
1367 echo "configure:1368: checking build system type" >&5
1370 case "$build_alias" in
1373 NONE) build_alias=$host_alias ;;
1374 *) build_alias=$nonopt ;;
1378 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1379 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382 echo "$ac_t""$build" 1>&6
1384 test "$host_alias" != "$target_alias" &&
1385 test "$program_prefix$program_suffix$program_transform_name" = \
1387 program_prefix=${target_alias}-
1391 *irix6*) cat >> confdefs.h <<\EOF
1392 #include <standards.h>
1400 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1401 echo "configure:1402: checking config.cache system type" >&5
1402 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1403 test x"$ac_cv_host_system_type" != x"$host"; } ||
1404 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1405 test x"$ac_cv_build_system_type" != x"$build"; } ||
1406 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1407 test x"$ac_cv_target_system_type" != x"$target"; }; then
1408 echo "$ac_t""different" 1>&6
1409 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1411 echo "$ac_t""same" 1>&6
1413 ac_cv_host_system_type="$host"
1414 ac_cv_build_system_type="$build"
1415 ac_cv_target_system_type="$target"
1421 # Config CPPFLAG settings for strange OS's that must be set
1422 # before other tests.
1425 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1428 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1429 echo "configure:1430: checking whether ${CC-cc} accepts -Ae" >&5
1430 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 echo 'void f(){}' > conftest.c
1434 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1435 ac_cv_prog_cc_Ae=yes
1443 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1444 # mmap on HPUX is completely broken...
1445 cat >> confdefs.h <<\EOF
1446 #define MMAP_BLACKLIST 1
1449 if test $ac_cv_prog_cc_Ae = yes; then
1450 CPPFLAGS="$CPPFLAGS -Ae"
1453 # Defines needed for HPUX support.
1454 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1455 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1459 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1460 cat >> confdefs.h <<\EOF
1461 #define USE_BOTH_CRYPT_CALLS 1
1464 cat >> confdefs.h <<\EOF
1465 #define _HPUX_SOURCE 1
1468 cat >> confdefs.h <<\EOF
1469 #define _POSIX_SOURCE 1
1472 cat >> confdefs.h <<\EOF
1473 #define _ALIGNMENT_REQUIRED 1
1476 cat >> confdefs.h <<\EOF
1477 #define _MAX_ALIGNMENT 4
1482 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1483 cat >> confdefs.h <<\EOF
1484 #define USE_BOTH_CRYPT_CALLS 1
1487 cat >> confdefs.h <<\EOF
1488 #define _HPUX_SOURCE 1
1491 cat >> confdefs.h <<\EOF
1492 #define _POSIX_SOURCE 1
1495 cat >> confdefs.h <<\EOF
1496 #define _LARGEFILE64_SOURCE 1
1499 cat >> confdefs.h <<\EOF
1500 #define _ALIGNMENT_REQUIRED 1
1503 cat >> confdefs.h <<\EOF
1504 #define _MAX_ALIGNMENT 4
1513 # CRAY Unicos has broken const handling
1515 echo "$ac_t""disabling const" 1>&6
1516 CPPFLAGS="$CPPFLAGS -Dconst="
1520 # AIX4.x doesn't even admit to having large
1521 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1524 echo "$ac_t""enabling large file support" 1>&6
1525 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1526 cat >> confdefs.h <<\EOF
1527 #define _LARGE_FILES 1
1532 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1533 # to the existance of large files..
1534 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1535 # recommendations on large file support, however it makes the
1536 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1537 # recommendation makes the compile fail on gcc2.7. JRA.
1541 5.0*|5.1*|5.2*|5.3*|5.5*)
1542 echo "$ac_t""no large file support" 1>&6
1545 echo "$ac_t""enabling large file support" 1>&6
1546 if test "$ac_cv_prog_gcc" = yes; then
1547 ${CC-cc} -v >conftest.c 2>&1
1548 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1550 case "$ac_cv_gcc_compiler_version_number" in
1551 *"gcc version 2.6"*|*"gcc version 2.7"*)
1552 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1553 cat >> confdefs.h <<\EOF
1554 #define _LARGEFILE64_SOURCE 1
1559 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1560 cat >> confdefs.h <<\EOF
1561 #define _LARGEFILE64_SOURCE 1
1564 cat >> confdefs.h <<\EOF
1565 #define _FILE_OFFSET_BITS 64
1571 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1572 cat >> confdefs.h <<\EOF
1573 #define _LARGEFILE64_SOURCE 1
1576 cat >> confdefs.h <<\EOF
1577 #define _FILE_OFFSET_BITS 64
1585 # Tests needed for SINIX large file support.
1588 if test $host = mips-sni-sysv4 ; then
1589 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1590 echo "configure:1591: checking for LFS support" >&5
1591 old_CPPFLAGS="$CPPFLAGS"
1592 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1593 if test "$cross_compiling" = yes; then
1594 SINIX_LFS_SUPPORT=cross
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1602 #if _LFS64_LARGEFILE == 1
1609 if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1611 SINIX_LFS_SUPPORT=yes
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1616 SINIX_LFS_SUPPORT=no
1621 CPPFLAGS="$old_CPPFLAGS"
1622 if test x$SINIX_LFS_SUPPORT = xyes ; then
1623 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1624 cat >> confdefs.h <<\EOF
1625 #define _LARGEFILE64_SOURCE 1
1628 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1629 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1630 LIBS="`getconf LFS64_LIBS` $LIBS"
1632 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1636 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1639 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1640 echo "configure:1641: checking for LFS support" >&5
1641 old_CPPFLAGS="$CPPFLAGS"
1642 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1643 if test "$cross_compiling" = yes; then
1644 LINUX_LFS_SUPPORT=cross
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1651 #include <sys/utsname.h>
1653 #if _LFS64_LARGEFILE == 1
1658 /* Ensure this is glibc 2.2 or higher */
1659 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1660 int libc_major = __GLIBC__;
1661 int libc_minor = __GLIBC_MINOR__;
1669 /* Ensure this is kernel 2.4 or higher */
1672 release = uts.release;
1673 major = atoi(strsep(&release, "."));
1674 minor = atoi(strsep(&release, "."));
1676 if (major > 2 || (major == 2 && minor > 3))
1685 if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1687 LINUX_LFS_SUPPORT=yes
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1692 LINUX_LFS_SUPPORT=no
1697 CPPFLAGS="$old_CPPFLAGS"
1698 if test x$LINUX_LFS_SUPPORT = xyes ; then
1699 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1700 cat >> confdefs.h <<\EOF
1701 #define _LARGEFILE64_SOURCE 1
1704 cat >> confdefs.h <<\EOF
1705 #define _FILE_OFFSET_BITS 64
1708 cat >> confdefs.h <<\EOF
1709 #define _GNU_SOURCE 1
1713 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1717 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1718 echo "configure:1719: checking for LFS support" >&5
1719 old_CPPFLAGS="$CPPFLAGS"
1720 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1721 if test "$cross_compiling" = yes; then
1722 GLIBC_LFS_SUPPORT=cross
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1730 #if _LFS64_LARGEFILE == 1
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1739 GLIBC_LFS_SUPPORT=yes
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1744 GLIBC_LFS_SUPPORT=no
1749 CPPFLAGS="$old_CPPFLAGS"
1750 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1751 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1752 cat >> confdefs.h <<\EOF
1753 #define _LARGEFILE64_SOURCE 1
1756 cat >> confdefs.h <<\EOF
1757 #define _GNU_SOURCE 1
1761 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1766 echo $ac_n "checking for inline""... $ac_c" 1>&6
1767 echo "configure:1768: checking for inline" >&5
1768 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1772 for ac_kw in inline __inline__ __inline; do
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1781 if { (eval echo configure:1782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1783 ac_cv_c_inline=$ac_kw; break
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1793 echo "$ac_t""$ac_cv_c_inline" 1>&6
1794 case "$ac_cv_c_inline" in
1796 no) cat >> confdefs.h <<\EOF
1800 *) cat >> confdefs.h <<EOF
1801 #define inline $ac_cv_c_inline
1806 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1807 echo "configure:1808: checking how to run the C preprocessor" >&5
1808 # On Suns, sometimes $CPP names a directory.
1809 if test -n "$CPP" && test -d "$CPP"; then
1812 if test -z "$CPP"; then
1813 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 # This must be in double quotes, not single quotes, because CPP may get
1817 # substituted into the Makefile and "${CC-cc}" will confuse make.
1819 # On the NeXT, cc -E runs the code through the compiler's parser,
1820 # not just through cpp.
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1828 { (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1830 if test -z "$ac_err"; then
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1837 CPP="${CC-cc} -E -traditional-cpp"
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1845 { (eval echo configure:1846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1847 if test -z "$ac_err"; then
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1854 CPP="${CC-cc} -nologo -E"
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1862 { (eval echo configure:1863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1864 if test -z "$ac_err"; then
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1878 ac_cv_prog_CPP="$CPP"
1880 CPP="$ac_cv_prog_CPP"
1882 ac_cv_prog_CPP="$CPP"
1884 echo "$ac_t""$CPP" 1>&6
1886 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1887 echo "configure:1888: checking for ANSI C header files" >&5
1888 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1900 { (eval echo configure:1901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1902 if test -z "$ac_err"; then
1904 ac_cv_header_stdc=yes
1907 echo "configure: failed program was:" >&5
1908 cat conftest.$ac_ext >&5
1910 ac_cv_header_stdc=no
1914 if test $ac_cv_header_stdc = yes; then
1915 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1922 egrep "memchr" >/dev/null 2>&1; then
1926 ac_cv_header_stdc=no
1932 if test $ac_cv_header_stdc = yes; then
1933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1940 egrep "free" >/dev/null 2>&1; then
1944 ac_cv_header_stdc=no
1950 if test $ac_cv_header_stdc = yes; then
1951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1952 if test "$cross_compiling" = yes; then
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1959 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1960 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1962 int main () { int i; for (i = 0; i < 256; i++)
1963 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1974 ac_cv_header_stdc=no
1982 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1983 if test $ac_cv_header_stdc = yes; then
1984 cat >> confdefs.h <<\EOF
1985 #define STDC_HEADERS 1
1991 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1994 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1995 echo "configure:1996: checking for $ac_hdr that defines DIR" >&5
1996 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2002 #include <sys/types.h>
2008 if { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2010 eval "ac_cv_header_dirent_$ac_safe=yes"
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2015 eval "ac_cv_header_dirent_$ac_safe=no"
2019 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2020 echo "$ac_t""yes" 1>&6
2021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2022 cat >> confdefs.h <<EOF
2023 #define $ac_tr_hdr 1
2025 ac_header_dirent=$ac_hdr; break
2027 echo "$ac_t""no" 1>&6
2030 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2031 if test $ac_header_dirent = dirent.h; then
2032 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2033 echo "configure:2034: checking for opendir in -ldir" >&5
2034 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 ac_save_LIBS="$LIBS"
2040 cat > conftest.$ac_ext <<EOF
2041 #line 2042 "configure"
2042 #include "confdefs.h"
2043 /* Override any gcc2 internal prototype to avoid an error. */
2044 /* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2052 if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054 eval "ac_cv_lib_$ac_lib_var=yes"
2056 echo "configure: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2059 eval "ac_cv_lib_$ac_lib_var=no"
2062 LIBS="$ac_save_LIBS"
2065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2069 echo "$ac_t""no" 1>&6
2073 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2074 echo "configure:2075: checking for opendir in -lx" >&5
2075 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 ac_save_LIBS="$LIBS"
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 /* Override any gcc2 internal prototype to avoid an error. */
2085 /* We use char because int might match the return type of a gcc2
2086 builtin and then its argument prototype would still apply. */
2093 if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2095 eval "ac_cv_lib_$ac_lib_var=yes"
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2100 eval "ac_cv_lib_$ac_lib_var=no"
2103 LIBS="$ac_save_LIBS"
2106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2110 echo "$ac_t""no" 1>&6
2115 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2116 echo "configure:2117: checking whether time.h and sys/time.h may both be included" >&5
2117 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 cat > conftest.$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2123 #include <sys/types.h>
2124 #include <sys/time.h>
2130 if { (eval echo configure:2131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132 ac_cv_header_time=yes
2134 echo "configure: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2137 ac_cv_header_time=no
2142 echo "$ac_t""$ac_cv_header_time" 1>&6
2143 if test $ac_cv_header_time = yes; then
2144 cat >> confdefs.h <<\EOF
2145 #define TIME_WITH_SYS_TIME 1
2150 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2151 echo "configure:2152: checking for sys/wait.h that is POSIX.1 compatible" >&5
2152 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 #include <sys/types.h>
2159 #include <sys/wait.h>
2161 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2164 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2169 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2172 if { (eval echo configure:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2174 ac_cv_header_sys_wait_h=yes
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 ac_cv_header_sys_wait_h=no
2184 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2185 if test $ac_cv_header_sys_wait_h = yes; then
2186 cat >> confdefs.h <<\EOF
2187 #define HAVE_SYS_WAIT_H 1
2192 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2196 echo "configure:2197: checking for $ac_hdr" >&5
2197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2206 { (eval echo configure:2207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2208 if test -z "$ac_err"; then
2210 eval "ac_cv_header_$ac_safe=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 eval "ac_cv_header_$ac_safe=no"
2220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2223 cat >> confdefs.h <<EOF
2224 #define $ac_tr_hdr 1
2228 echo "$ac_t""no" 1>&6
2232 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2250 eval "ac_cv_header_$ac_safe=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 eval "ac_cv_header_$ac_safe=no"
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_hdr 1
2268 echo "$ac_t""no" 1>&6
2272 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_hdr" >&5
2277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2290 eval "ac_cv_header_$ac_safe=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 eval "ac_cv_header_$ac_safe=no"
2300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2303 cat >> confdefs.h <<EOF
2304 #define $ac_tr_hdr 1
2308 echo "$ac_t""no" 1>&6
2312 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_hdr" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2330 eval "ac_cv_header_$ac_safe=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 eval "ac_cv_header_$ac_safe=no"
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2343 cat >> confdefs.h <<EOF
2344 #define $ac_tr_hdr 1
2348 echo "$ac_t""no" 1>&6
2352 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_hdr" >&5
2357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2366 { (eval echo configure:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2368 if test -z "$ac_err"; then
2370 eval "ac_cv_header_$ac_safe=yes"
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2376 eval "ac_cv_header_$ac_safe=no"
2380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2383 cat >> confdefs.h <<EOF
2384 #define $ac_tr_hdr 1
2388 echo "$ac_t""no" 1>&6
2392 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2410 eval "ac_cv_header_$ac_safe=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_header_$ac_safe=no"
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423 cat >> confdefs.h <<EOF
2424 #define $ac_tr_hdr 1
2428 echo "$ac_t""no" 1>&6
2432 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_hdr" >&5
2437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2448 if test -z "$ac_err"; then
2450 eval "ac_cv_header_$ac_safe=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2456 eval "ac_cv_header_$ac_safe=no"
2460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2463 cat >> confdefs.h <<EOF
2464 #define $ac_tr_hdr 1
2468 echo "$ac_t""no" 1>&6
2472 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_hdr" >&5
2477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2486 { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2488 if test -z "$ac_err"; then
2490 eval "ac_cv_header_$ac_safe=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 eval "ac_cv_header_$ac_safe=no"
2500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2501 echo "$ac_t""yes" 1>&6
2502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2503 cat >> confdefs.h <<EOF
2504 #define $ac_tr_hdr 1
2508 echo "$ac_t""no" 1>&6
2512 for ac_hdr in sys/syslog.h syslog.h
2514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2516 echo "configure:2517: checking for $ac_hdr" >&5
2517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2526 { (eval echo configure:2527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2528 if test -z "$ac_err"; then
2530 eval "ac_cv_header_$ac_safe=yes"
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2536 eval "ac_cv_header_$ac_safe=no"
2540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2543 cat >> confdefs.h <<EOF
2544 #define $ac_tr_hdr 1
2548 echo "$ac_t""no" 1>&6
2554 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2555 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2559 cat > conftest.$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2567 if { (eval echo configure:2568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2569 ac_cv_header_shadow_h=yes
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 ac_cv_header_shadow_h=no
2577 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2578 cat >> confdefs.h <<\EOF
2579 #define HAVE_SHADOW_H 1
2585 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_hdr" >&5
2590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2599 { (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2601 if test -z "$ac_err"; then
2603 eval "ac_cv_header_$ac_safe=yes"
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2609 eval "ac_cv_header_$ac_safe=no"
2613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2616 cat >> confdefs.h <<EOF
2617 #define $ac_tr_hdr 1
2621 echo "$ac_t""no" 1>&6
2625 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_hdr" >&5
2630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2639 { (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641 if test -z "$ac_err"; then
2643 eval "ac_cv_header_$ac_safe=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2649 eval "ac_cv_header_$ac_safe=no"
2653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2656 cat >> confdefs.h <<EOF
2657 #define $ac_tr_hdr 1
2661 echo "$ac_t""no" 1>&6
2665 for ac_hdr in stropts.h poll.h
2667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_hdr" >&5
2670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2679 { (eval echo configure:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2681 if test -z "$ac_err"; then
2683 eval "ac_cv_header_$ac_safe=yes"
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2689 eval "ac_cv_header_$ac_safe=no"
2693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2696 cat >> confdefs.h <<EOF
2697 #define $ac_tr_hdr 1
2701 echo "$ac_t""no" 1>&6
2705 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2709 echo "configure:2710: checking for $ac_hdr" >&5
2710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 eval "ac_cv_header_$ac_safe=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2729 eval "ac_cv_header_$ac_safe=no"
2733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2736 cat >> confdefs.h <<EOF
2737 #define $ac_tr_hdr 1
2741 echo "$ac_t""no" 1>&6
2745 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2749 echo "configure:2750: checking for $ac_hdr" >&5
2750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2759 { (eval echo configure:2760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2761 if test -z "$ac_err"; then
2763 eval "ac_cv_header_$ac_safe=yes"
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 eval "ac_cv_header_$ac_safe=no"
2773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2774 echo "$ac_t""yes" 1>&6
2775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2776 cat >> confdefs.h <<EOF
2777 #define $ac_tr_hdr 1
2781 echo "$ac_t""no" 1>&6
2786 # For experimental utmp support (lastlog on some BSD-like systems)
2787 for ac_hdr in utmp.h utmpx.h lastlog.h
2789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_hdr" >&5
2792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2805 eval "ac_cv_header_$ac_safe=yes"
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2811 eval "ac_cv_header_$ac_safe=no"
2815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2818 cat >> confdefs.h <<EOF
2819 #define $ac_tr_hdr 1
2823 echo "$ac_t""no" 1>&6
2828 # For quotas on Veritas VxFS filesystems
2829 for ac_hdr in sys/fs/vx_quota.h
2831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_hdr" >&5
2834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2843 { (eval echo configure:2844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2845 if test -z "$ac_err"; then
2847 eval "ac_cv_header_$ac_safe=yes"
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2853 eval "ac_cv_header_$ac_safe=no"
2857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2860 cat >> confdefs.h <<EOF
2861 #define $ac_tr_hdr 1
2865 echo "$ac_t""no" 1>&6
2870 # For quotas on Linux XFS filesystems
2871 for ac_hdr in linux/xqm.h
2873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2875 echo "configure:2876: checking for $ac_hdr" >&5
2876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2885 { (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2887 if test -z "$ac_err"; then
2889 eval "ac_cv_header_$ac_safe=yes"
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2895 eval "ac_cv_header_$ac_safe=no"
2899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2900 echo "$ac_t""yes" 1>&6
2901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2902 cat >> confdefs.h <<EOF
2903 #define $ac_tr_hdr 1
2907 echo "$ac_t""no" 1>&6
2912 echo $ac_n "checking size of int""... $ac_c" 1>&6
2913 echo "configure:2914: checking size of int" >&5
2914 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 if test "$cross_compiling" = yes; then
2918 ac_cv_sizeof_int=cross
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2926 FILE *f=fopen("conftestval", "w");
2928 fprintf(f, "%d\n", sizeof(int));
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2934 ac_cv_sizeof_int=`cat conftestval`
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2945 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2946 cat >> confdefs.h <<EOF
2947 #define SIZEOF_INT $ac_cv_sizeof_int
2951 echo $ac_n "checking size of long""... $ac_c" 1>&6
2952 echo "configure:2953: checking size of long" >&5
2953 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 if test "$cross_compiling" = yes; then
2957 ac_cv_sizeof_long=cross
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2965 FILE *f=fopen("conftestval", "w");
2967 fprintf(f, "%d\n", sizeof(long));
2971 if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2973 ac_cv_sizeof_long=`cat conftestval`
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2984 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2985 cat >> confdefs.h <<EOF
2986 #define SIZEOF_LONG $ac_cv_sizeof_long
2990 echo $ac_n "checking size of short""... $ac_c" 1>&6
2991 echo "configure:2992: checking size of short" >&5
2992 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 if test "$cross_compiling" = yes; then
2996 ac_cv_sizeof_short=cross
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3004 FILE *f=fopen("conftestval", "w");
3006 fprintf(f, "%d\n", sizeof(short));
3010 if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3012 ac_cv_sizeof_short=`cat conftestval`
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 ac_cv_sizeof_short=0
3023 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3024 cat >> confdefs.h <<EOF
3025 #define SIZEOF_SHORT $ac_cv_sizeof_short
3030 echo $ac_n "checking for working const""... $ac_c" 1>&6
3031 echo "configure:3032: checking for working const" >&5
3032 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3041 /* Ultrix mips cc rejects this. */
3042 typedef int charset[2]; const charset x;
3043 /* SunOS 4.1.1 cc rejects this. */
3044 char const *const *ccp;
3046 /* NEC SVR4.0.2 mips cc rejects this. */
3047 struct point {int x, y;};
3048 static struct point const zero = {0,0};
3049 /* AIX XL C 1.02.0.0 rejects this.
3050 It does not let you subtract one const X* pointer from another in an arm
3051 of an if-expression whose if-part is not a constant expression */
3052 const char *g = "string";
3053 ccp = &g + (g ? g-g : 0);
3054 /* HPUX 7.0 cc rejects these. */
3057 ccp = (char const *const *) p;
3058 { /* SCO 3.2v4 cc rejects this. */
3060 char const *s = 0 ? (char *) 0 : (char const *) 0;
3064 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3066 const int *foo = &x[0];
3069 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3070 typedef const int *iptr;
3074 { /* AIX XL C 1.02.0.0 rejects this saying
3075 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3076 struct s { int j; const int *ap[3]; };
3077 struct s *b; b->j = 5;
3079 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3097 echo "$ac_t""$ac_cv_c_const" 1>&6
3098 if test $ac_cv_c_const = no; then
3099 cat >> confdefs.h <<\EOF
3105 echo $ac_n "checking for inline""... $ac_c" 1>&6
3106 echo "configure:3107: checking for inline" >&5
3107 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3111 for ac_kw in inline __inline__ __inline; do
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3120 if { (eval echo configure:3121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3122 ac_cv_c_inline=$ac_kw; break
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3132 echo "$ac_t""$ac_cv_c_inline" 1>&6
3133 case "$ac_cv_c_inline" in
3135 no) cat >> confdefs.h <<\EOF
3139 *) cat >> confdefs.h <<EOF
3140 #define inline $ac_cv_c_inline
3145 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3146 echo "configure:3147: checking whether byte ordering is bigendian" >&5
3147 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 ac_cv_c_bigendian=unknown
3151 # See if sys/param.h defines the BYTE_ORDER macro.
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3155 #include <sys/types.h>
3156 #include <sys/param.h>
3159 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3166 # It does; now see whether it defined to BIG_ENDIAN or not.
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #include <sys/types.h>
3171 #include <sys/param.h>
3174 #if BYTE_ORDER != BIG_ENDIAN
3179 if { (eval echo configure:3180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3181 ac_cv_c_bigendian=yes
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3186 ac_cv_c_bigendian=no
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3194 if test $ac_cv_c_bigendian = unknown; then
3195 if test "$cross_compiling" = yes; then
3196 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3202 /* Are we little or big endian? From Harbison&Steele. */
3206 char c[sizeof (long)];
3209 exit (u.c[sizeof (long) - 1] == 1);
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3214 ac_cv_c_bigendian=no
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3219 ac_cv_c_bigendian=yes
3227 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3228 if test $ac_cv_c_bigendian = yes; then
3229 cat >> confdefs.h <<\EOF
3230 #define WORDS_BIGENDIAN 1
3235 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3236 echo "configure:3237: checking whether char is unsigned" >&5
3237 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 if test "$GCC" = yes; then
3241 # GCC predefines this symbol on systems where it applies.
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 #ifdef __CHAR_UNSIGNED__
3250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3251 egrep "yes" >/dev/null 2>&1; then
3253 ac_cv_c_char_unsigned=yes
3256 ac_cv_c_char_unsigned=no
3261 if test "$cross_compiling" = yes; then
3262 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3268 #if !defined(__STDC__) || __STDC__ != 1
3272 volatile char c = 255; exit(c < 0);
3275 if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3277 ac_cv_c_char_unsigned=yes
3279 echo "configure: failed program was:" >&5
3280 cat conftest.$ac_ext >&5
3282 ac_cv_c_char_unsigned=no
3290 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3291 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3292 cat >> confdefs.h <<\EOF
3293 #define __CHAR_UNSIGNED__ 1
3299 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3300 echo "configure:3301: checking return type of signal handlers" >&5
3301 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 #include <sys/types.h>
3313 extern "C" void (*signal (int, void (*)(int)))(int);
3315 void (*signal ()) ();
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324 ac_cv_type_signal=void
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3329 ac_cv_type_signal=int
3334 echo "$ac_t""$ac_cv_type_signal" 1>&6
3335 cat >> confdefs.h <<EOF
3336 #define RETSIGTYPE $ac_cv_type_signal
3340 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3341 echo "configure:3342: checking for uid_t in sys/types.h" >&5
3342 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 #include <sys/types.h>
3350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3351 egrep "uid_t" >/dev/null 2>&1; then
3353 ac_cv_type_uid_t=yes
3362 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3363 if test $ac_cv_type_uid_t = no; then
3364 cat >> confdefs.h <<\EOF
3368 cat >> confdefs.h <<\EOF
3374 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3375 echo "configure:3376: checking for mode_t" >&5
3376 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3391 ac_cv_type_mode_t=yes
3394 ac_cv_type_mode_t=no
3399 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3400 if test $ac_cv_type_mode_t = no; then
3401 cat >> confdefs.h <<\EOF
3407 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3408 echo "configure:3409: checking for off_t" >&5
3409 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3424 ac_cv_type_off_t=yes
3432 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3433 if test $ac_cv_type_off_t = no; then
3434 cat >> confdefs.h <<\EOF
3440 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3441 echo "configure:3442: checking for size_t" >&5
3442 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 #include <sys/types.h>
3454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3457 ac_cv_type_size_t=yes
3460 ac_cv_type_size_t=no
3465 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3466 if test $ac_cv_type_size_t = no; then
3467 cat >> confdefs.h <<\EOF
3468 #define size_t unsigned
3473 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3474 echo "configure:3475: checking for pid_t" >&5
3475 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 #include <sys/types.h>
3487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3488 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3490 ac_cv_type_pid_t=yes
3498 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3499 if test $ac_cv_type_pid_t = no; then
3500 cat >> confdefs.h <<\EOF
3506 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3507 echo "configure:3508: checking for st_rdev in struct stat" >&5
3508 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 #include <sys/types.h>
3515 #include <sys/stat.h>
3517 struct stat s; s.st_rdev;
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522 ac_cv_struct_st_rdev=yes
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 ac_cv_struct_st_rdev=no
3532 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3533 if test $ac_cv_struct_st_rdev = yes; then
3534 cat >> confdefs.h <<\EOF
3535 #define HAVE_ST_RDEV 1
3540 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3541 echo "configure:3542: checking for d_off in dirent" >&5
3542 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3550 #include <sys/types.h>
3553 struct dirent d; d.d_off;
3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3558 ac_cv_dirent_d_off=yes
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 ac_cv_dirent_d_off=no
3568 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3569 if test $ac_cv_dirent_d_off = yes; then
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_DIRENT_D_OFF 1
3576 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3577 echo "configure:3578: checking for ino_t" >&5
3578 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 #include <sys/types.h>
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3593 ac_cv_type_ino_t=yes
3601 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3602 if test $ac_cv_type_ino_t = no; then
3603 cat >> confdefs.h <<\EOF
3604 #define ino_t unsigned
3609 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3610 echo "configure:3611: checking for loff_t" >&5
3611 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <sys/types.h>
3623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3624 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3626 ac_cv_type_loff_t=yes
3629 ac_cv_type_loff_t=no
3634 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3635 if test $ac_cv_type_loff_t = no; then
3636 cat >> confdefs.h <<\EOF
3637 #define loff_t off_t
3642 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3643 echo "configure:3644: checking for offset_t" >&5
3644 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <sys/types.h>
3656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3659 ac_cv_type_offset_t=yes
3662 ac_cv_type_offset_t=no
3667 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3668 if test $ac_cv_type_offset_t = no; then
3669 cat >> confdefs.h <<\EOF
3670 #define offset_t loff_t
3675 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3676 echo "configure:3677: checking for ssize_t" >&5
3677 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 #include <sys/types.h>
3689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3692 ac_cv_type_ssize_t=yes
3695 ac_cv_type_ssize_t=no
3700 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3701 if test $ac_cv_type_ssize_t = no; then
3702 cat >> confdefs.h <<\EOF
3708 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3709 echo "configure:3710: checking for wchar_t" >&5
3710 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 #include <sys/types.h>
3722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3723 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3725 ac_cv_type_wchar_t=yes
3728 ac_cv_type_wchar_t=no
3733 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3734 if test $ac_cv_type_wchar_t = no; then
3735 cat >> confdefs.h <<\EOF
3736 #define wchar_t unsigned short
3742 ############################################
3743 # for cups support we need libcups, and a handful of header files
3745 # Check whether --enable-cups or --disable-cups was given.
3746 if test "${enable_cups+set}" = set; then
3747 enableval="$enable_cups"
3752 if test x$enable_cups != xno; then
3753 # Extract the first word of "cups-config", so it can be a program name with args.
3754 set dummy cups-config; ac_word=$2
3755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_word" >&5
3757 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 case "$CUPS_CONFIG" in
3762 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3765 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3770 for ac_dir in $ac_dummy; do
3771 test -z "$ac_dir" && ac_dir=.
3772 if test -f $ac_dir/$ac_word; then
3773 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3781 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3782 if test -n "$CUPS_CONFIG"; then
3783 echo "$ac_t""$CUPS_CONFIG" 1>&6
3785 echo "$ac_t""no" 1>&6
3789 if test "x$CUPS_CONFIG" != x; then
3790 cat >> confdefs.h <<\EOF
3794 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3795 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3796 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3800 ############################################
3801 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3802 for ac_func in dlopen
3804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3805 echo "configure:3806: checking for $ac_func" >&5
3806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* System header to define __stub macros and hopefully few prototypes,
3813 which can conflict with char $ac_func(); below. */
3815 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3822 /* The GNU C library defines this for functions which it implements
3823 to always fail with ENOSYS. Some functions are actually named
3824 something starting with __ and the normal name is an alias. */
3825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3833 if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 eval "ac_cv_func_$ac_func=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 eval "ac_cv_func_$ac_func=no"
3845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3848 cat >> confdefs.h <<EOF
3849 #define $ac_tr_func 1
3853 echo "$ac_t""no" 1>&6
3857 if test x"$ac_cv_func_dlopen" = x"no"; then
3858 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3859 echo "configure:3860: checking for dlopen in -ldl" >&5
3860 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 ac_save_LIBS="$LIBS"
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 /* Override any gcc2 internal prototype to avoid an error. */
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880 eval "ac_cv_lib_$ac_lib_var=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 eval "ac_cv_lib_$ac_lib_var=no"
3888 LIBS="$ac_save_LIBS"
3891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3894 cat >> confdefs.h <<\EOF
3895 #define HAVE_DLOPEN 1
3899 echo "$ac_t""no" 1>&6
3903 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3905 ############################################
3906 # check if the compiler can do immediate structures
3907 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3908 echo "configure:3909: checking for immediate structures" >&5
3909 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3920 typedef struct {unsigned x;} FOOBAR;
3921 #define X_FOOBAR(x) ((FOOBAR) { x })
3922 #define FOO_ONE X_FOOBAR(1)
3932 if { (eval echo configure:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 samba_cv_immediate_structures=yes
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3939 samba_cv_immediate_structures=no
3944 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3945 if test x"$samba_cv_immediate_structures" = x"yes"; then
3946 cat >> confdefs.h <<\EOF
3947 #define HAVE_IMMEDIATE_STRUCTURES 1
3952 ############################################
3953 # check for unix domain sockets
3954 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3955 echo "configure:3956: checking for unix domain sockets" >&5
3956 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3964 #include <sys/types.h>
3967 #include <sys/socket.h>
3971 struct sockaddr_un sunaddr;
3972 sunaddr.sun_family = AF_UNIX;
3976 if { (eval echo configure:3977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3978 samba_cv_unixsocket=yes
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 samba_cv_unixsocket=no
3988 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3989 if test x"$samba_cv_unixsocket" = x"yes"; then
3990 cat >> confdefs.h <<\EOF
3991 #define HAVE_UNIXSOCKET 1
3997 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3998 echo "configure:3999: checking for socklen_t type" >&5
3999 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4007 #include <sys/types.h>
4012 #include <sys/socket.h>
4017 if { (eval echo configure:4018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4019 samba_cv_socklen_t=yes
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4024 samba_cv_socklen_t=no
4029 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4030 if test x"$samba_cv_socklen_t" = x"yes"; then
4031 cat >> confdefs.h <<\EOF
4032 #define HAVE_SOCKLEN_T_TYPE 1
4037 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4038 echo "configure:4039: checking for sig_atomic_t type" >&5
4039 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4047 #include <sys/types.h>
4057 if { (eval echo configure:4058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4059 samba_cv_sig_atomic_t=yes
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4064 samba_cv_sig_atomic_t=no
4069 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4070 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4071 cat >> confdefs.h <<\EOF
4072 #define HAVE_SIG_ATOMIC_T_TYPE 1
4077 # stupid headers have the functions but no declaration. grrrr.
4079 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4080 echo "configure:4081: checking for errno declaration" >&5
4081 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4093 if { (eval echo configure:4094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095 ac_cv_have_errno_decl=yes
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4100 ac_cv_have_errno_decl=no
4105 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4106 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_ERRNO_DECL 1
4114 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4115 echo "configure:4116: checking for setresuid declaration" >&5
4116 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4125 int i = (int)setresuid
4128 if { (eval echo configure:4129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4130 ac_cv_have_setresuid_decl=yes
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4135 ac_cv_have_setresuid_decl=no
4140 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4141 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4142 cat >> confdefs.h <<\EOF
4143 #define HAVE_SETRESUID_DECL 1
4149 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4150 echo "configure:4151: checking for setresgid declaration" >&5
4151 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4160 int i = (int)setresgid
4163 if { (eval echo configure:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 ac_cv_have_setresgid_decl=yes
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 ac_cv_have_setresgid_decl=no
4175 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4176 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_SETRESGID_DECL 1
4184 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4185 echo "configure:4186: checking for asprintf declaration" >&5
4186 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4195 int i = (int)asprintf
4198 if { (eval echo configure:4199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4200 ac_cv_have_asprintf_decl=yes
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 ac_cv_have_asprintf_decl=no
4210 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4211 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_ASPRINTF_DECL 1
4219 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4220 echo "configure:4221: checking for vasprintf declaration" >&5
4221 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4230 int i = (int)vasprintf
4233 if { (eval echo configure:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4235 ac_cv_have_vasprintf_decl=yes
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 ac_cv_have_vasprintf_decl=no
4245 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4246 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4247 cat >> confdefs.h <<\EOF
4248 #define HAVE_VASPRINTF_DECL 1
4254 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4255 echo "configure:4256: checking for vsnprintf declaration" >&5
4256 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4265 int i = (int)vsnprintf
4268 if { (eval echo configure:4269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4270 ac_cv_have_vsnprintf_decl=yes
4272 echo "configure: failed program was:" >&5
4273 cat conftest.$ac_ext >&5
4275 ac_cv_have_vsnprintf_decl=no
4280 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4281 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4282 cat >> confdefs.h <<\EOF
4283 #define HAVE_VSNPRINTF_DECL 1
4289 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4290 echo "configure:4291: checking for snprintf declaration" >&5
4291 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4300 int i = (int)snprintf
4303 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4305 ac_cv_have_snprintf_decl=yes
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4310 ac_cv_have_snprintf_decl=no
4315 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4316 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4317 cat >> confdefs.h <<\EOF
4318 #define HAVE_SNPRINTF_DECL 1
4324 # and glibc has setresuid under linux but the function does
4325 # nothing until kernel 2.1.44! very dumb.
4326 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4327 echo "configure:4328: checking for real setresuid" >&5
4328 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4332 if test "$cross_compiling" = yes; then
4333 samba_cv_have_setresuid=cross
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4339 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4343 samba_cv_have_setresuid=yes
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 samba_cv_have_setresuid=no
4355 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4356 if test x"$samba_cv_have_setresuid" = x"yes"; then
4357 cat >> confdefs.h <<\EOF
4358 #define HAVE_SETRESUID 1
4363 # Do the same check for setresguid...
4365 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4366 echo "configure:4367: checking for real setresgid" >&5
4367 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4371 if test "$cross_compiling" = yes; then
4372 samba_cv_have_setresgid=cross
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4379 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4381 if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4383 samba_cv_have_setresgid=yes
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4388 samba_cv_have_setresgid=no
4395 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4396 if test x"$samba_cv_have_setresgid" = x"yes"; then
4397 cat >> confdefs.h <<\EOF
4398 #define HAVE_SETRESGID 1
4403 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4404 echo "configure:4405: checking for 8-bit clean memcmp" >&5
4405 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 if test "$cross_compiling" = yes; then
4409 ac_cv_func_memcmp_clean=no
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4417 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4418 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4424 ac_cv_func_memcmp_clean=yes
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4429 ac_cv_func_memcmp_clean=no
4436 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4437 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4440 ###############################################
4441 # test for where we get crypt() from
4442 for ac_func in crypt
4444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4445 echo "configure:4446: checking for $ac_func" >&5
4446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4452 /* System header to define __stub macros and hopefully few prototypes,
4453 which can conflict with char $ac_func(); below. */
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4462 /* The GNU C library defines this for functions which it implements
4463 to always fail with ENOSYS. Some functions are actually named
4464 something starting with __ and the normal name is an alias. */
4465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 eval "ac_cv_func_$ac_func=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 eval "ac_cv_func_$ac_func=no"
4485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4488 cat >> confdefs.h <<EOF
4489 #define $ac_tr_func 1
4493 echo "$ac_t""no" 1>&6
4497 if test x"$ac_cv_func_crypt" = x"no"; then
4498 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4499 echo "configure:4500: checking for crypt in -lcrypt" >&5
4500 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 ac_save_LIBS="$LIBS"
4505 LIBS="-lcrypt $LIBS"
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4509 /* Override any gcc2 internal prototype to avoid an error. */
4510 /* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4518 if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4520 eval "ac_cv_lib_$ac_lib_var=yes"
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4525 eval "ac_cv_lib_$ac_lib_var=no"
4528 LIBS="$ac_save_LIBS"
4531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4532 echo "$ac_t""yes" 1>&6
4533 AUTHLIBS="$AUTHLIBS -lcrypt";
4534 cat >> confdefs.h <<\EOF
4535 #define HAVE_CRYPT 1
4539 echo "$ac_t""no" 1>&6
4545 ###############################################
4546 # Readline included by default unless explicitly asked not to
4547 test "${with_readline+set}" != "set" && with_readline=yes
4549 # test for where we get readline() from
4550 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4551 echo "configure:4552: checking whether to use readline" >&5
4552 # Check whether --with-readline or --without-readline was given.
4553 if test "${with_readline+set}" = set; then
4554 withval="$with_readline"
4555 case "$with_readline" in
4557 echo "$ac_t""yes" 1>&6
4559 for ac_hdr in readline.h history.h readline/readline.h
4561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_hdr" >&5
4564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4573 { (eval echo configure:4574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4575 if test -z "$ac_err"; then
4577 eval "ac_cv_header_$ac_safe=yes"
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 eval "ac_cv_header_$ac_safe=no"
4587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6
4589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4590 cat >> confdefs.h <<EOF
4591 #define $ac_tr_hdr 1
4595 echo "$ac_t""no" 1>&6
4599 for ac_hdr in readline/history.h
4601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4603 echo "configure:4604: checking for $ac_hdr" >&5
4604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4613 { (eval echo configure:4614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4615 if test -z "$ac_err"; then
4617 eval "ac_cv_header_$ac_safe=yes"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 eval "ac_cv_header_$ac_safe=no"
4627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4630 cat >> confdefs.h <<EOF
4631 #define $ac_tr_hdr 1
4635 echo "$ac_t""no" 1>&6
4640 for ac_hdr in readline.h readline/readline.h
4642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4644 echo "configure:4645: checking for $ac_hdr" >&5
4645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4654 { (eval echo configure:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4656 if test -z "$ac_err"; then
4658 eval "ac_cv_header_$ac_safe=yes"
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4664 eval "ac_cv_header_$ac_safe=no"
4668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4671 cat >> confdefs.h <<EOF
4672 #define $ac_tr_hdr 1
4675 for termlib in ncurses curses termcap terminfo termlib; do
4676 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4677 echo "configure:4678: checking for tgetent in -l${termlib}" >&5
4678 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 ac_save_LIBS="$LIBS"
4683 LIBS="-l${termlib} $LIBS"
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 /* Override any gcc2 internal prototype to avoid an error. */
4688 /* We use char because int might match the return type of a gcc2
4689 builtin and then its argument prototype would still apply. */
4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4698 eval "ac_cv_lib_$ac_lib_var=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 eval "ac_cv_lib_$ac_lib_var=no"
4706 LIBS="$ac_save_LIBS"
4709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4711 TERMLIBS="-l${termlib}"; break
4713 echo "$ac_t""no" 1>&6
4717 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4718 echo "configure:4719: checking for rl_callback_handler_install in -lreadline" >&5
4719 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 ac_save_LIBS="$LIBS"
4724 LIBS="-lreadline $TERMLIBS $LIBS"
4725 cat > conftest.$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4731 char rl_callback_handler_install();
4734 rl_callback_handler_install()
4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4739 eval "ac_cv_lib_$ac_lib_var=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4744 eval "ac_cv_lib_$ac_lib_var=no"
4747 LIBS="$ac_save_LIBS"
4750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4752 TERMLIBS="-lreadline $TERMLIBS"
4753 cat >> confdefs.h <<\EOF
4754 #define HAVE_LIBREADLINE 1
4759 echo "$ac_t""no" 1>&6
4764 echo "$ac_t""no" 1>&6
4770 echo "$ac_t""no" 1>&6
4773 echo "$ac_t""yes" 1>&6
4775 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4776 # alternate readline path
4778 _cppflags=${CPPFLAGS}
4780 # Add additional search path
4781 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4782 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4784 for ac_hdr in readline.h history.h readline/readline.h
4786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_hdr" >&5
4789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4798 { (eval echo configure:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4800 if test -z "$ac_err"; then
4802 eval "ac_cv_header_$ac_safe=yes"
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4808 eval "ac_cv_header_$ac_safe=no"
4812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4815 cat >> confdefs.h <<EOF
4816 #define $ac_tr_hdr 1
4820 echo "$ac_t""no" 1>&6
4824 for ac_hdr in readline/history.h
4826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4828 echo "configure:4829: checking for $ac_hdr" >&5
4829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 { (eval echo configure:4839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 if test -z "$ac_err"; then
4842 eval "ac_cv_header_$ac_safe=yes"
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4848 eval "ac_cv_header_$ac_safe=no"
4852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4855 cat >> confdefs.h <<EOF
4856 #define $ac_tr_hdr 1
4860 echo "$ac_t""no" 1>&6
4865 for ac_hdr in readline.h readline/readline.h
4867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4869 echo "configure:4870: checking for $ac_hdr" >&5
4870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4879 { (eval echo configure:4880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4881 if test -z "$ac_err"; then
4883 eval "ac_cv_header_$ac_safe=yes"
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4889 eval "ac_cv_header_$ac_safe=no"
4893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6
4895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4896 cat >> confdefs.h <<EOF
4897 #define $ac_tr_hdr 1
4900 for termlib in ncurses curses termcap terminfo termlib; do
4901 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4902 echo "configure:4903: checking for tgetent in -l${termlib}" >&5
4903 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4907 ac_save_LIBS="$LIBS"
4908 LIBS="-l${termlib} $LIBS"
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4912 /* Override any gcc2 internal prototype to avoid an error. */
4913 /* We use char because int might match the return type of a gcc2
4914 builtin and then its argument prototype would still apply. */
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923 eval "ac_cv_lib_$ac_lib_var=yes"
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4928 eval "ac_cv_lib_$ac_lib_var=no"
4931 LIBS="$ac_save_LIBS"
4934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4935 echo "$ac_t""yes" 1>&6
4936 TERMLIBS="-l${termlib}"; break
4938 echo "$ac_t""no" 1>&6
4942 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4943 echo "configure:4944: checking for rl_callback_handler_install in -lreadline" >&5
4944 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 ac_save_LIBS="$LIBS"
4949 LIBS="-lreadline $TERMLIBS $LIBS"
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4956 char rl_callback_handler_install();
4959 rl_callback_handler_install()
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4964 eval "ac_cv_lib_$ac_lib_var=yes"
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 eval "ac_cv_lib_$ac_lib_var=no"
4972 LIBS="$ac_save_LIBS"
4975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 TERMLDFLAGS="-L$with_readline/lib"
4978 TERMCPPFLAGS="-I$with_readline/include"
4979 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4980 TERMLIBS="-lreadline $TERMLIBS"
4981 cat >> confdefs.h <<\EOF
4982 #define HAVE_LIBREADLINE 1
4987 echo "$ac_t""no" 1>&6
4988 TERMLIBS= CPPFLAGS=$_cppflags
4992 echo "$ac_t""no" 1>&6
5001 echo "$ac_t""no" 1>&6
5008 # The readline API changed slightly from readline3 to readline4, so
5009 # code will generate warnings on one of them unless we have a few
5011 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5012 echo "configure:5013: checking for rl_completion_matches in -lreadline" >&5
5013 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 ac_save_LIBS="$LIBS"
5018 LIBS="-lreadline $TERMLIBS $LIBS"
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5022 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5025 char rl_completion_matches();
5028 rl_completion_matches()
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 eval "ac_cv_lib_$ac_lib_var=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_lib_$ac_lib_var=no"
5041 LIBS="$ac_save_LIBS"
5044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 cat >> confdefs.h <<\EOF
5047 #define HAVE_NEW_LIBREADLINE 1
5051 echo "$ac_t""no" 1>&6
5055 # The following test taken from the cvs sources
5056 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5057 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5058 # libsocket.so which has a bad implementation of gethostbyname (it
5059 # only looks in /etc/hosts), so we only look for -lsocket if we need
5061 for ac_func in connect
5063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5064 echo "configure:5065: checking for $ac_func" >&5
5065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5068 cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5071 /* System header to define __stub macros and hopefully few prototypes,
5072 which can conflict with char $ac_func(); below. */
5074 /* Override any gcc2 internal prototype to avoid an error. */
5075 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */
5081 /* The GNU C library defines this for functions which it implements
5082 to always fail with ENOSYS. Some functions are actually named
5083 something starting with __ and the normal name is an alias. */
5084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5092 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5094 eval "ac_cv_func_$ac_func=yes"
5096 echo "configure: failed program was:" >&5
5097 cat conftest.$ac_ext >&5
5099 eval "ac_cv_func_$ac_func=no"
5104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5105 echo "$ac_t""yes" 1>&6
5106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5107 cat >> confdefs.h <<EOF
5108 #define $ac_tr_func 1
5112 echo "$ac_t""no" 1>&6
5116 if test x"$ac_cv_func_connect" = x"no"; then
5119 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5120 echo "configure:5121: checking for printf in -lnsl_s" >&5
5121 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 ac_save_LIBS="$LIBS"
5126 LIBS="-lnsl_s $LIBS"
5127 cat > conftest.$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5130 /* Override any gcc2 internal prototype to avoid an error. */
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5139 if { (eval echo configure:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5141 eval "ac_cv_lib_$ac_lib_var=yes"
5143 echo "configure: failed program was:" >&5
5144 cat conftest.$ac_ext >&5
5146 eval "ac_cv_lib_$ac_lib_var=no"
5149 LIBS="$ac_save_LIBS"
5152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5153 echo "$ac_t""yes" 1>&6
5154 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5155 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5156 cat >> confdefs.h <<EOF
5157 #define $ac_tr_lib 1
5160 LIBS="-lnsl_s $LIBS"
5163 echo "$ac_t""no" 1>&6
5169 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5170 echo "configure:5171: checking for printf in -lnsl" >&5
5171 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5175 ac_save_LIBS="$LIBS"
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5191 eval "ac_cv_lib_$ac_lib_var=yes"
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 eval "ac_cv_lib_$ac_lib_var=no"
5199 LIBS="$ac_save_LIBS"
5202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5203 echo "$ac_t""yes" 1>&6
5204 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5205 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5206 cat >> confdefs.h <<EOF
5207 #define $ac_tr_lib 1
5213 echo "$ac_t""no" 1>&6
5219 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5220 echo "configure:5221: checking for connect in -lsocket" >&5
5221 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 ac_save_LIBS="$LIBS"
5226 LIBS="-lsocket $LIBS"
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 /* Override any gcc2 internal prototype to avoid an error. */
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 eval "ac_cv_lib_$ac_lib_var=yes"
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 eval "ac_cv_lib_$ac_lib_var=no"
5249 LIBS="$ac_save_LIBS"
5252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5256 cat >> confdefs.h <<EOF
5257 #define $ac_tr_lib 1
5260 LIBS="-lsocket $LIBS"
5263 echo "$ac_t""no" 1>&6
5269 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5270 echo "configure:5271: checking for connect in -linet" >&5
5271 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 ac_save_LIBS="$LIBS"
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280 /* Override any gcc2 internal prototype to avoid an error. */
5281 /* We use char because int might match the return type of a gcc2
5282 builtin and then its argument prototype would still apply. */
5289 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5291 eval "ac_cv_lib_$ac_lib_var=yes"
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5296 eval "ac_cv_lib_$ac_lib_var=no"
5299 LIBS="$ac_save_LIBS"
5302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5303 echo "$ac_t""yes" 1>&6
5304 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5306 cat >> confdefs.h <<EOF
5307 #define $ac_tr_lib 1
5313 echo "$ac_t""no" 1>&6
5317 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5318 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5319 # ac_cv_func_connect=yes
5320 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5321 cat >> confdefs.h <<\EOF
5322 #define HAVE_CONNECT 1
5328 ###############################################
5329 # test for where we get get_yp_default_domain() from
5330 for ac_func in yp_get_default_domain
5332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5333 echo "configure:5334: checking for $ac_func" >&5
5334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func(); below. */
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5350 /* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5363 eval "ac_cv_func_$ac_func=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5368 eval "ac_cv_func_$ac_func=no"
5373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5376 cat >> confdefs.h <<EOF
5377 #define $ac_tr_func 1
5381 echo "$ac_t""no" 1>&6
5385 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5386 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5387 echo "configure:5388: checking for yp_get_default_domain in -lnsl" >&5
5388 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 ac_save_LIBS="$LIBS"
5394 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 /* Override any gcc2 internal prototype to avoid an error. */
5398 /* We use char because int might match the return type of a gcc2
5399 builtin and then its argument prototype would still apply. */
5400 char yp_get_default_domain();
5403 yp_get_default_domain()
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5408 eval "ac_cv_lib_$ac_lib_var=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 eval "ac_cv_lib_$ac_lib_var=no"
5416 LIBS="$ac_save_LIBS"
5419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5420 echo "$ac_t""yes" 1>&6
5422 cat >> confdefs.h <<\EOF
5423 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5427 echo "$ac_t""no" 1>&6
5432 # Check if we have execl, if not we need to compile smbrun.
5433 for ac_func in execl
5435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5436 echo "configure:5437: checking for $ac_func" >&5
5437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 /* System header to define __stub macros and hopefully few prototypes,
5444 which can conflict with char $ac_func(); below. */
5446 /* Override any gcc2 internal prototype to avoid an error. */
5447 /* We use char because int might match the return type of a gcc2
5448 builtin and then its argument prototype would still apply. */
5453 /* The GNU C library defines this for functions which it implements
5454 to always fail with ENOSYS. Some functions are actually named
5455 something starting with __ and the normal name is an alias. */
5456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5466 eval "ac_cv_func_$ac_func=yes"
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 eval "ac_cv_func_$ac_func=no"
5476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5477 echo "$ac_t""yes" 1>&6
5478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5479 cat >> confdefs.h <<EOF
5480 #define $ac_tr_func 1
5484 echo "$ac_t""no" 1>&6
5488 if test x"$ac_cv_func_execl" = x"no"; then
5489 RUNPROG="bin/smbrun"
5494 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_func" >&5
5498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 /* System header to define __stub macros and hopefully few prototypes,
5505 which can conflict with char $ac_func(); below. */
5507 /* Override any gcc2 internal prototype to avoid an error. */
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5514 /* The GNU C library defines this for functions which it implements
5515 to always fail with ENOSYS. Some functions are actually named
5516 something starting with __ and the normal name is an alias. */
5517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525 if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527 eval "ac_cv_func_$ac_func=yes"
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5532 eval "ac_cv_func_$ac_func=no"
5537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5540 cat >> confdefs.h <<EOF
5541 #define $ac_tr_func 1
5545 echo "$ac_t""no" 1>&6
5549 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5552 echo "configure:5553: checking for $ac_func" >&5
5553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 /* System header to define __stub macros and hopefully few prototypes,
5560 which can conflict with char $ac_func(); below. */
5562 /* Override any gcc2 internal prototype to avoid an error. */
5563 /* We use char because int might match the return type of a gcc2
5564 builtin and then its argument prototype would still apply. */
5569 /* The GNU C library defines this for functions which it implements
5570 to always fail with ENOSYS. Some functions are actually named
5571 something starting with __ and the normal name is an alias. */
5572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5580 if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582 eval "ac_cv_func_$ac_func=yes"
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 eval "ac_cv_func_$ac_func=no"
5592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5593 echo "$ac_t""yes" 1>&6
5594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5595 cat >> confdefs.h <<EOF
5596 #define $ac_tr_func 1
5600 echo "$ac_t""no" 1>&6
5604 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5607 echo "configure:5608: checking for $ac_func" >&5
5608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 /* System header to define __stub macros and hopefully few prototypes,
5615 which can conflict with char $ac_func(); below. */
5617 /* Override any gcc2 internal prototype to avoid an error. */
5618 /* We use char because int might match the return type of a gcc2
5619 builtin and then its argument prototype would still apply. */
5624 /* The GNU C library defines this for functions which it implements
5625 to always fail with ENOSYS. Some functions are actually named
5626 something starting with __ and the normal name is an alias. */
5627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5635 if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5637 eval "ac_cv_func_$ac_func=yes"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5642 eval "ac_cv_func_$ac_func=no"
5647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5648 echo "$ac_t""yes" 1>&6
5649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5650 cat >> confdefs.h <<EOF
5651 #define $ac_tr_func 1
5655 echo "$ac_t""no" 1>&6
5659 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5662 echo "configure:5663: checking for $ac_func" >&5
5663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5669 /* System header to define __stub macros and hopefully few prototypes,
5670 which can conflict with char $ac_func(); below. */
5672 /* Override any gcc2 internal prototype to avoid an error. */
5673 /* We use char because int might match the return type of a gcc2
5674 builtin and then its argument prototype would still apply. */
5679 /* The GNU C library defines this for functions which it implements
5680 to always fail with ENOSYS. Some functions are actually named
5681 something starting with __ and the normal name is an alias. */
5682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5690 if { (eval echo configure:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5692 eval "ac_cv_func_$ac_func=yes"
5694 echo "configure: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5697 eval "ac_cv_func_$ac_func=no"
5702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5703 echo "$ac_t""yes" 1>&6
5704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5705 cat >> confdefs.h <<EOF
5706 #define $ac_tr_func 1
5710 echo "$ac_t""no" 1>&6
5714 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5717 echo "configure:5718: checking for $ac_func" >&5
5718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5721 cat > conftest.$ac_ext <<EOF
5722 #line 5723 "configure"
5723 #include "confdefs.h"
5724 /* System header to define __stub macros and hopefully few prototypes,
5725 which can conflict with char $ac_func(); below. */
5727 /* Override any gcc2 internal prototype to avoid an error. */
5728 /* We use char because int might match the return type of a gcc2
5729 builtin and then its argument prototype would still apply. */
5734 /* The GNU C library defines this for functions which it implements
5735 to always fail with ENOSYS. Some functions are actually named
5736 something starting with __ and the normal name is an alias. */
5737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5747 eval "ac_cv_func_$ac_func=yes"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5752 eval "ac_cv_func_$ac_func=no"
5757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5758 echo "$ac_t""yes" 1>&6
5759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5760 cat >> confdefs.h <<EOF
5761 #define $ac_tr_func 1
5765 echo "$ac_t""no" 1>&6
5769 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5772 echo "configure:5773: checking for $ac_func" >&5
5773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 /* System header to define __stub macros and hopefully few prototypes,
5780 which can conflict with char $ac_func(); below. */
5782 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5789 /* The GNU C library defines this for functions which it implements
5790 to always fail with ENOSYS. Some functions are actually named
5791 something starting with __ and the normal name is an alias. */
5792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5800 if { (eval echo configure:5801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 eval "ac_cv_func_$ac_func=yes"
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5807 eval "ac_cv_func_$ac_func=no"
5812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5815 cat >> confdefs.h <<EOF
5816 #define $ac_tr_func 1
5820 echo "$ac_t""no" 1>&6
5824 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5827 echo "configure:5828: checking for $ac_func" >&5
5828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5831 cat > conftest.$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 /* System header to define __stub macros and hopefully few prototypes,
5835 which can conflict with char $ac_func(); below. */
5837 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */
5844 /* The GNU C library defines this for functions which it implements
5845 to always fail with ENOSYS. Some functions are actually named
5846 something starting with __ and the normal name is an alias. */
5847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5855 if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5857 eval "ac_cv_func_$ac_func=yes"
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5862 eval "ac_cv_func_$ac_func=no"
5867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5868 echo "$ac_t""yes" 1>&6
5869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5870 cat >> confdefs.h <<EOF
5871 #define $ac_tr_func 1
5875 echo "$ac_t""no" 1>&6
5879 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_func" >&5
5883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* System header to define __stub macros and hopefully few prototypes,
5890 which can conflict with char $ac_func(); below. */
5892 /* Override any gcc2 internal prototype to avoid an error. */
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5899 /* The GNU C library defines this for functions which it implements
5900 to always fail with ENOSYS. Some functions are actually named
5901 something starting with __ and the normal name is an alias. */
5902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5910 if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5912 eval "ac_cv_func_$ac_func=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5917 eval "ac_cv_func_$ac_func=no"
5922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5923 echo "$ac_t""yes" 1>&6
5924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5925 cat >> confdefs.h <<EOF
5926 #define $ac_tr_func 1
5930 echo "$ac_t""no" 1>&6
5934 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5937 echo "configure:5938: checking for $ac_func" >&5
5938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char $ac_func(); below. */
5947 /* Override any gcc2 internal prototype to avoid an error. */
5948 /* We use char because int might match the return type of a gcc2
5949 builtin and then its argument prototype would still apply. */
5954 /* The GNU C library defines this for functions which it implements
5955 to always fail with ENOSYS. Some functions are actually named
5956 something starting with __ and the normal name is an alias. */
5957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 eval "ac_cv_func_$ac_func=yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 eval "ac_cv_func_$ac_func=no"
5977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5978 echo "$ac_t""yes" 1>&6
5979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5980 cat >> confdefs.h <<EOF
5981 #define $ac_tr_func 1
5985 echo "$ac_t""no" 1>&6
5989 for ac_func in syslog vsyslog getgrouplist
5991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5992 echo "configure:5993: checking for $ac_func" >&5
5993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5994 echo $ac_n "(cached) $ac_c" 1>&6
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 /* System header to define __stub macros and hopefully few prototypes,
6000 which can conflict with char $ac_func(); below. */
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6009 /* The GNU C library defines this for functions which it implements
6010 to always fail with ENOSYS. Some functions are actually named
6011 something starting with __ and the normal name is an alias. */
6012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6022 eval "ac_cv_func_$ac_func=yes"
6024 echo "configure: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6027 eval "ac_cv_func_$ac_func=no"
6032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6033 echo "$ac_t""yes" 1>&6
6034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6035 cat >> confdefs.h <<EOF
6036 #define $ac_tr_func 1
6040 echo "$ac_t""no" 1>&6
6044 # setbuffer is needed for smbtorture
6045 for ac_func in setbuffer
6047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6048 echo "configure:6049: checking for $ac_func" >&5
6049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6050 echo $ac_n "(cached) $ac_c" 1>&6
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6055 /* System header to define __stub macros and hopefully few prototypes,
6056 which can conflict with char $ac_func(); below. */
6058 /* Override any gcc2 internal prototype to avoid an error. */
6059 /* We use char because int might match the return type of a gcc2
6060 builtin and then its argument prototype would still apply. */
6065 /* The GNU C library defines this for functions which it implements
6066 to always fail with ENOSYS. Some functions are actually named
6067 something starting with __ and the normal name is an alias. */
6068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6076 if { (eval echo configure:6077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6078 eval "ac_cv_func_$ac_func=yes"
6080 echo "configure: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6083 eval "ac_cv_func_$ac_func=no"
6088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6089 echo "$ac_t""yes" 1>&6
6090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6091 cat >> confdefs.h <<EOF
6092 #define $ac_tr_func 1
6096 echo "$ac_t""no" 1>&6
6101 # syscall() is needed for smbwrapper.
6102 for ac_func in syscall
6104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_func" >&5
6106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 /* System header to define __stub macros and hopefully few prototypes,
6113 which can conflict with char $ac_func(); below. */
6115 /* Override any gcc2 internal prototype to avoid an error. */
6116 /* We use char because int might match the return type of a gcc2
6117 builtin and then its argument prototype would still apply. */
6122 /* The GNU C library defines this for functions which it implements
6123 to always fail with ENOSYS. Some functions are actually named
6124 something starting with __ and the normal name is an alias. */
6125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6133 if { (eval echo configure:6134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6135 eval "ac_cv_func_$ac_func=yes"
6137 echo "configure: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6140 eval "ac_cv_func_$ac_func=no"
6145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6146 echo "$ac_t""yes" 1>&6
6147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6148 cat >> confdefs.h <<EOF
6149 #define $ac_tr_func 1
6153 echo "$ac_t""no" 1>&6
6158 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_func" >&5
6162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* System header to define __stub macros and hopefully few prototypes,
6169 which can conflict with char $ac_func(); below. */
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6178 /* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191 eval "ac_cv_func_$ac_func=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 eval "ac_cv_func_$ac_func=no"
6201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6204 cat >> confdefs.h <<EOF
6205 #define $ac_tr_func 1
6209 echo "$ac_t""no" 1>&6
6213 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_func" >&5
6217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246 eval "ac_cv_func_$ac_func=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6251 eval "ac_cv_func_$ac_func=no"
6256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6259 cat >> confdefs.h <<EOF
6260 #define $ac_tr_func 1
6264 echo "$ac_t""no" 1>&6
6268 for ac_func in __getcwd _getcwd
6270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_func" >&5
6272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* System header to define __stub macros and hopefully few prototypes,
6279 which can conflict with char $ac_func(); below. */
6281 /* Override any gcc2 internal prototype to avoid an error. */
6282 /* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6288 /* The GNU C library defines this for functions which it implements
6289 to always fail with ENOSYS. Some functions are actually named
6290 something starting with __ and the normal name is an alias. */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6301 eval "ac_cv_func_$ac_func=yes"
6303 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6306 eval "ac_cv_func_$ac_func=no"
6311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6314 cat >> confdefs.h <<EOF
6315 #define $ac_tr_func 1
6319 echo "$ac_t""no" 1>&6
6323 for ac_func in __xstat __fxstat __lxstat
6325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_func" >&5
6327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6333 /* System header to define __stub macros and hopefully few prototypes,
6334 which can conflict with char $ac_func(); below. */
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 /* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6343 /* The GNU C library defines this for functions which it implements
6344 to always fail with ENOSYS. Some functions are actually named
6345 something starting with __ and the normal name is an alias. */
6346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6356 eval "ac_cv_func_$ac_func=yes"
6358 echo "configure: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6361 eval "ac_cv_func_$ac_func=no"
6366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6369 cat >> confdefs.h <<EOF
6370 #define $ac_tr_func 1
6374 echo "$ac_t""no" 1>&6
6378 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6381 echo "configure:6382: checking for $ac_func" >&5
6382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6385 cat > conftest.$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 /* System header to define __stub macros and hopefully few prototypes,
6389 which can conflict with char $ac_func(); below. */
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 eval "ac_cv_func_$ac_func=yes"
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 eval "ac_cv_func_$ac_func=no"
6421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6422 echo "$ac_t""yes" 1>&6
6423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6424 cat >> confdefs.h <<EOF
6425 #define $ac_tr_func 1
6429 echo "$ac_t""no" 1>&6
6433 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6436 echo "configure:6437: checking for $ac_func" >&5
6437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6438 echo $ac_n "(cached) $ac_c" 1>&6
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 /* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func(); below. */
6446 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6453 /* The GNU C library defines this for functions which it implements
6454 to always fail with ENOSYS. Some functions are actually named
6455 something starting with __ and the normal name is an alias. */
6456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6464 if { (eval echo configure:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 eval "ac_cv_func_$ac_func=yes"
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6471 eval "ac_cv_func_$ac_func=no"
6476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6479 cat >> confdefs.h <<EOF
6480 #define $ac_tr_func 1
6484 echo "$ac_t""no" 1>&6
6488 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6491 echo "configure:6492: checking for $ac_func" >&5
6492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* System header to define __stub macros and hopefully few prototypes,
6499 which can conflict with char $ac_func(); below. */
6501 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6519 if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6521 eval "ac_cv_func_$ac_func=yes"
6523 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6526 eval "ac_cv_func_$ac_func=no"
6531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6
6533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6534 cat >> confdefs.h <<EOF
6535 #define $ac_tr_func 1
6539 echo "$ac_t""no" 1>&6
6543 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6546 echo "configure:6547: checking for $ac_func" >&5
6547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6548 echo $ac_n "(cached) $ac_c" 1>&6
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553 /* System header to define __stub macros and hopefully few prototypes,
6554 which can conflict with char $ac_func(); below. */
6556 /* Override any gcc2 internal prototype to avoid an error. */
6557 /* We use char because int might match the return type of a gcc2
6558 builtin and then its argument prototype would still apply. */
6563 /* The GNU C library defines this for functions which it implements
6564 to always fail with ENOSYS. Some functions are actually named
6565 something starting with __ and the normal name is an alias. */
6566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6574 if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6576 eval "ac_cv_func_$ac_func=yes"
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 eval "ac_cv_func_$ac_func=no"
6586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6587 echo "$ac_t""yes" 1>&6
6588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6589 cat >> confdefs.h <<EOF
6590 #define $ac_tr_func 1
6594 echo "$ac_t""no" 1>&6
6598 for ac_func in _write __write _fork __fork
6600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6601 echo "configure:6602: checking for $ac_func" >&5
6602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 /* System header to define __stub macros and hopefully few prototypes,
6609 which can conflict with char $ac_func(); below. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6612 /* We use char because int might match the return type of a gcc2
6613 builtin and then its argument prototype would still apply. */
6618 /* The GNU C library defines this for functions which it implements
6619 to always fail with ENOSYS. Some functions are actually named
6620 something starting with __ and the normal name is an alias. */
6621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6629 if { (eval echo configure:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6631 eval "ac_cv_func_$ac_func=yes"
6633 echo "configure: failed program was:" >&5
6634 cat conftest.$ac_ext >&5
6636 eval "ac_cv_func_$ac_func=no"
6641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6642 echo "$ac_t""yes" 1>&6
6643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6644 cat >> confdefs.h <<EOF
6645 #define $ac_tr_func 1
6649 echo "$ac_t""no" 1>&6
6653 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6656 echo "configure:6657: checking for $ac_func" >&5
6657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6
6660 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 /* System header to define __stub macros and hopefully few prototypes,
6664 which can conflict with char $ac_func(); below. */
6666 /* Override any gcc2 internal prototype to avoid an error. */
6667 /* We use char because int might match the return type of a gcc2
6668 builtin and then its argument prototype would still apply. */
6673 /* The GNU C library defines this for functions which it implements
6674 to always fail with ENOSYS. Some functions are actually named
6675 something starting with __ and the normal name is an alias. */
6676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6684 if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6686 eval "ac_cv_func_$ac_func=yes"
6688 echo "configure: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6691 eval "ac_cv_func_$ac_func=no"
6696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6697 echo "$ac_t""yes" 1>&6
6698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6699 cat >> confdefs.h <<EOF
6700 #define $ac_tr_func 1
6704 echo "$ac_t""no" 1>&6
6708 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6711 echo "configure:6712: checking for $ac_func" >&5
6712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6713 echo $ac_n "(cached) $ac_c" 1>&6
6715 cat > conftest.$ac_ext <<EOF
6716 #line 6717 "configure"
6717 #include "confdefs.h"
6718 /* System header to define __stub macros and hopefully few prototypes,
6719 which can conflict with char $ac_func(); below. */
6721 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6728 /* The GNU C library defines this for functions which it implements
6729 to always fail with ENOSYS. Some functions are actually named
6730 something starting with __ and the normal name is an alias. */
6731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6739 if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6741 eval "ac_cv_func_$ac_func=yes"
6743 echo "configure: failed program was:" >&5
6744 cat conftest.$ac_ext >&5
6746 eval "ac_cv_func_$ac_func=no"
6751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6752 echo "$ac_t""yes" 1>&6
6753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6754 cat >> confdefs.h <<EOF
6755 #define $ac_tr_func 1
6759 echo "$ac_t""no" 1>&6
6763 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6766 echo "configure:6767: checking for $ac_func" >&5
6767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* System header to define __stub macros and hopefully few prototypes,
6774 which can conflict with char $ac_func(); below. */
6776 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6783 /* The GNU C library defines this for functions which it implements
6784 to always fail with ENOSYS. Some functions are actually named
6785 something starting with __ and the normal name is an alias. */
6786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6794 if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6796 eval "ac_cv_func_$ac_func=yes"
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6801 eval "ac_cv_func_$ac_func=no"
6806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6809 cat >> confdefs.h <<EOF
6810 #define $ac_tr_func 1
6814 echo "$ac_t""no" 1>&6
6818 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6821 echo "configure:6822: checking for $ac_func" >&5
6822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6828 /* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char $ac_func(); below. */
6831 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6838 /* The GNU C library defines this for functions which it implements
6839 to always fail with ENOSYS. Some functions are actually named
6840 something starting with __ and the normal name is an alias. */
6841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6851 eval "ac_cv_func_$ac_func=yes"
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6856 eval "ac_cv_func_$ac_func=no"
6861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6864 cat >> confdefs.h <<EOF
6865 #define $ac_tr_func 1
6869 echo "$ac_t""no" 1>&6
6873 for ac_func in open64 _open64 __open64 creat64
6875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6876 echo "configure:6877: checking for $ac_func" >&5
6877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char $ac_func(); below. */
6886 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6893 /* The GNU C library defines this for functions which it implements
6894 to always fail with ENOSYS. Some functions are actually named
6895 something starting with __ and the normal name is an alias. */
6896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6906 eval "ac_cv_func_$ac_func=yes"
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 eval "ac_cv_func_$ac_func=no"
6916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6917 echo "$ac_t""yes" 1>&6
6918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6919 cat >> confdefs.h <<EOF
6920 #define $ac_tr_func 1
6924 echo "$ac_t""no" 1>&6
6930 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6933 if test x$ac_cv_func_stat64 = xno ; then
6934 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6935 echo "configure:6936: checking for stat64 in <sys/stat.h>" >&5
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6940 #if defined(HAVE_UNISTD_H)
6943 #include <sys/stat.h>
6946 struct stat64 st64; exit(stat64(".",&st64));
6949 if { (eval echo configure:6950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6951 ac_cv_func_stat64=yes
6953 echo "configure: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6957 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6958 if test x$ac_cv_func_stat64 = xyes ; then
6959 cat >> confdefs.h <<\EOF
6960 #define HAVE_STAT64 1
6966 if test x$ac_cv_func_lstat64 = xno ; then
6967 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6968 echo "configure:6969: checking for lstat64 in <sys/stat.h>" >&5
6969 cat > conftest.$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6973 #if defined(HAVE_UNISTD_H)
6976 #include <sys/stat.h>
6979 struct stat64 st64; exit(lstat64(".",&st64));
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 ac_cv_func_lstat64=yes
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6990 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6991 if test x$ac_cv_func_lstat64 = xyes ; then
6992 cat >> confdefs.h <<\EOF
6993 #define HAVE_LSTAT64 1
6999 if test x$ac_cv_func_fstat64 = xno ; then
7000 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7001 echo "configure:7002: checking for fstat64 in <sys/stat.h>" >&5
7002 cat > conftest.$ac_ext <<EOF
7003 #line 7004 "configure"
7004 #include "confdefs.h"
7006 #if defined(HAVE_UNISTD_H)
7009 #include <sys/stat.h>
7012 struct stat64 st64; exit(fstat64(0,&st64));
7015 if { (eval echo configure:7016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7017 ac_cv_func_fstat64=yes
7019 echo "configure: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7023 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7024 if test x$ac_cv_func_fstat64 = xyes ; then
7025 cat >> confdefs.h <<\EOF
7026 #define HAVE_FSTAT64 1
7032 #####################################
7033 # we might need the resolv library on some systems
7034 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7035 echo "configure:7036: checking for dn_expand in -lresolv" >&5
7036 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 ac_save_LIBS="$LIBS"
7041 LIBS="-lresolv $LIBS"
7042 cat > conftest.$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7045 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7056 eval "ac_cv_lib_$ac_lib_var=yes"
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7061 eval "ac_cv_lib_$ac_lib_var=no"
7064 LIBS="$ac_save_LIBS"
7067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7068 echo "$ac_t""yes" 1>&6
7069 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7071 cat >> confdefs.h <<EOF
7072 #define $ac_tr_lib 1
7075 LIBS="-lresolv $LIBS"
7078 echo "$ac_t""no" 1>&6
7083 # Check for the functions putprpwnam, set_auth_parameters,
7084 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7085 # Needed for OSF1 and HPUX.
7089 *-lsecurity*) for ac_func in putprpwnam
7091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7092 echo "configure:7093: checking for $ac_func" >&5
7093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7099 /* System header to define __stub macros and hopefully few prototypes,
7100 which can conflict with char $ac_func(); below. */
7102 /* Override any gcc2 internal prototype to avoid an error. */
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7109 /* The GNU C library defines this for functions which it implements
7110 to always fail with ENOSYS. Some functions are actually named
7111 something starting with __ and the normal name is an alias. */
7112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7120 if { (eval echo configure:7121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7122 eval "ac_cv_func_$ac_func=yes"
7124 echo "configure: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7127 eval "ac_cv_func_$ac_func=no"
7132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7133 echo "$ac_t""yes" 1>&6
7134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7135 cat >> confdefs.h <<EOF
7136 #define $ac_tr_func 1
7140 echo "$ac_t""no" 1>&6
7144 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7145 echo "configure:7146: checking for putprpwnam in -lsecurity" >&5
7146 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7150 ac_save_LIBS="$LIBS"
7151 LIBS="-lsecurity $LIBS"
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7155 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7164 if { (eval echo configure:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7166 eval "ac_cv_lib_$ac_lib_var=yes"
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7171 eval "ac_cv_lib_$ac_lib_var=no"
7174 LIBS="$ac_save_LIBS"
7177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7178 echo "$ac_t""yes" 1>&6
7179 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7181 cat >> confdefs.h <<EOF
7182 #define $ac_tr_lib 1
7185 LIBS="-lsecurity $LIBS"
7188 echo "$ac_t""no" 1>&6
7191 for ac_func in putprpwnam
7193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7194 echo "configure:7195: checking for $ac_func" >&5
7195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7198 cat > conftest.$ac_ext <<EOF
7199 #line 7200 "configure"
7200 #include "confdefs.h"
7201 /* System header to define __stub macros and hopefully few prototypes,
7202 which can conflict with char $ac_func(); below. */
7204 /* Override any gcc2 internal prototype to avoid an error. */
7205 /* We use char because int might match the return type of a gcc2
7206 builtin and then its argument prototype would still apply. */
7211 /* The GNU C library defines this for functions which it implements
7212 to always fail with ENOSYS. Some functions are actually named
7213 something starting with __ and the normal name is an alias. */
7214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7222 if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7224 eval "ac_cv_func_$ac_func=yes"
7226 echo "configure: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7229 eval "ac_cv_func_$ac_func=no"
7234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7235 echo "$ac_t""yes" 1>&6
7236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7237 cat >> confdefs.h <<EOF
7238 #define $ac_tr_func 1
7242 echo "$ac_t""no" 1>&6
7250 *-lsec*) for ac_func in putprpwnam
7252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_func" >&5
7254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 /* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func(); below. */
7263 /* Override any gcc2 internal prototype to avoid an error. */
7264 /* We use char because int might match the return type of a gcc2
7265 builtin and then its argument prototype would still apply. */
7270 /* The GNU C library defines this for functions which it implements
7271 to always fail with ENOSYS. Some functions are actually named
7272 something starting with __ and the normal name is an alias. */
7273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7281 if { (eval echo configure:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7283 eval "ac_cv_func_$ac_func=yes"
7285 echo "configure: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7288 eval "ac_cv_func_$ac_func=no"
7293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7294 echo "$ac_t""yes" 1>&6
7295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7296 cat >> confdefs.h <<EOF
7297 #define $ac_tr_func 1
7301 echo "$ac_t""no" 1>&6
7305 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7306 echo "configure:7307: checking for putprpwnam in -lsec" >&5
7307 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 ac_save_LIBS="$LIBS"
7313 cat > conftest.$ac_ext <<EOF
7314 #line 7315 "configure"
7315 #include "confdefs.h"
7316 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7327 eval "ac_cv_lib_$ac_lib_var=yes"
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7332 eval "ac_cv_lib_$ac_lib_var=no"
7335 LIBS="$ac_save_LIBS"
7338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7339 echo "$ac_t""yes" 1>&6
7340 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7341 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7342 cat >> confdefs.h <<EOF
7343 #define $ac_tr_lib 1
7349 echo "$ac_t""no" 1>&6
7352 for ac_func in putprpwnam
7354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7355 echo "configure:7356: checking for $ac_func" >&5
7356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7357 echo $ac_n "(cached) $ac_c" 1>&6
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 /* System header to define __stub macros and hopefully few prototypes,
7363 which can conflict with char $ac_func(); below. */
7365 /* Override any gcc2 internal prototype to avoid an error. */
7366 /* We use char because int might match the return type of a gcc2
7367 builtin and then its argument prototype would still apply. */
7372 /* The GNU C library defines this for functions which it implements
7373 to always fail with ENOSYS. Some functions are actually named
7374 something starting with __ and the normal name is an alias. */
7375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7383 if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385 eval "ac_cv_func_$ac_func=yes"
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7390 eval "ac_cv_func_$ac_func=no"
7395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7396 echo "$ac_t""yes" 1>&6
7397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7398 cat >> confdefs.h <<EOF
7399 #define $ac_tr_func 1
7403 echo "$ac_t""no" 1>&6
7412 *-lsecurity*) for ac_func in set_auth_parameters
7414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7415 echo "configure:7416: checking for $ac_func" >&5
7416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 cat > conftest.$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7422 /* System header to define __stub macros and hopefully few prototypes,
7423 which can conflict with char $ac_func(); below. */
7425 /* Override any gcc2 internal prototype to avoid an error. */
7426 /* We use char because int might match the return type of a gcc2
7427 builtin and then its argument prototype would still apply. */
7432 /* The GNU C library defines this for functions which it implements
7433 to always fail with ENOSYS. Some functions are actually named
7434 something starting with __ and the normal name is an alias. */
7435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7443 if { (eval echo configure:7444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7445 eval "ac_cv_func_$ac_func=yes"
7447 echo "configure: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7450 eval "ac_cv_func_$ac_func=no"
7455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7456 echo "$ac_t""yes" 1>&6
7457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7458 cat >> confdefs.h <<EOF
7459 #define $ac_tr_func 1
7463 echo "$ac_t""no" 1>&6
7467 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7468 echo "configure:7469: checking for set_auth_parameters in -lsecurity" >&5
7469 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7471 echo $ac_n "(cached) $ac_c" 1>&6
7473 ac_save_LIBS="$LIBS"
7474 LIBS="-lsecurity $LIBS"
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char set_auth_parameters();
7484 set_auth_parameters()
7487 if { (eval echo configure:7488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7489 eval "ac_cv_lib_$ac_lib_var=yes"
7491 echo "configure: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7494 eval "ac_cv_lib_$ac_lib_var=no"
7497 LIBS="$ac_save_LIBS"
7500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7501 echo "$ac_t""yes" 1>&6
7502 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7503 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7504 cat >> confdefs.h <<EOF
7505 #define $ac_tr_lib 1
7508 LIBS="-lsecurity $LIBS"
7511 echo "$ac_t""no" 1>&6
7514 for ac_func in set_auth_parameters
7516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7517 echo "configure:7518: checking for $ac_func" >&5
7518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7519 echo $ac_n "(cached) $ac_c" 1>&6
7521 cat > conftest.$ac_ext <<EOF
7522 #line 7523 "configure"
7523 #include "confdefs.h"
7524 /* System header to define __stub macros and hopefully few prototypes,
7525 which can conflict with char $ac_func(); below. */
7527 /* Override any gcc2 internal prototype to avoid an error. */
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7534 /* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7545 if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547 eval "ac_cv_func_$ac_func=yes"
7549 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7552 eval "ac_cv_func_$ac_func=no"
7557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7558 echo "$ac_t""yes" 1>&6
7559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7560 cat >> confdefs.h <<EOF
7561 #define $ac_tr_func 1
7565 echo "$ac_t""no" 1>&6
7573 *-lsec*) for ac_func in set_auth_parameters
7575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7576 echo "configure:7577: checking for $ac_func" >&5
7577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7580 cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7583 /* System header to define __stub macros and hopefully few prototypes,
7584 which can conflict with char $ac_func(); below. */
7586 /* Override any gcc2 internal prototype to avoid an error. */
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7593 /* The GNU C library defines this for functions which it implements
7594 to always fail with ENOSYS. Some functions are actually named
7595 something starting with __ and the normal name is an alias. */
7596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7604 if { (eval echo configure:7605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7606 eval "ac_cv_func_$ac_func=yes"
7608 echo "configure: failed program was:" >&5
7609 cat conftest.$ac_ext >&5
7611 eval "ac_cv_func_$ac_func=no"
7616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7617 echo "$ac_t""yes" 1>&6
7618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7619 cat >> confdefs.h <<EOF
7620 #define $ac_tr_func 1
7624 echo "$ac_t""no" 1>&6
7628 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7629 echo "configure:7630: checking for set_auth_parameters in -lsec" >&5
7630 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7634 ac_save_LIBS="$LIBS"
7636 cat > conftest.$ac_ext <<EOF
7637 #line 7638 "configure"
7638 #include "confdefs.h"
7639 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7642 char set_auth_parameters();
7645 set_auth_parameters()
7648 if { (eval echo configure:7649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7650 eval "ac_cv_lib_$ac_lib_var=yes"
7652 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7655 eval "ac_cv_lib_$ac_lib_var=no"
7658 LIBS="$ac_save_LIBS"
7661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7662 echo "$ac_t""yes" 1>&6
7663 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7665 cat >> confdefs.h <<EOF
7666 #define $ac_tr_lib 1
7672 echo "$ac_t""no" 1>&6
7675 for ac_func in set_auth_parameters
7677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7678 echo "configure:7679: checking for $ac_func" >&5
7679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7685 /* System header to define __stub macros and hopefully few prototypes,
7686 which can conflict with char $ac_func(); below. */
7688 /* Override any gcc2 internal prototype to avoid an error. */
7689 /* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7695 /* The GNU C library defines this for functions which it implements
7696 to always fail with ENOSYS. Some functions are actually named
7697 something starting with __ and the normal name is an alias. */
7698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7706 if { (eval echo configure:7707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7708 eval "ac_cv_func_$ac_func=yes"
7710 echo "configure: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 eval "ac_cv_func_$ac_func=no"
7718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7719 echo "$ac_t""yes" 1>&6
7720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7721 cat >> confdefs.h <<EOF
7722 #define $ac_tr_func 1
7726 echo "$ac_t""no" 1>&6
7734 # UnixWare 7.x has its getspnam in -lgen
7736 *-lgen*) for ac_func in getspnam
7738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7739 echo "configure:7740: checking for $ac_func" >&5
7740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7743 cat > conftest.$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7746 /* System header to define __stub macros and hopefully few prototypes,
7747 which can conflict with char $ac_func(); below. */
7749 /* Override any gcc2 internal prototype to avoid an error. */
7750 /* We use char because int might match the return type of a gcc2
7751 builtin and then its argument prototype would still apply. */
7756 /* The GNU C library defines this for functions which it implements
7757 to always fail with ENOSYS. Some functions are actually named
7758 something starting with __ and the normal name is an alias. */
7759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7767 if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7769 eval "ac_cv_func_$ac_func=yes"
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7774 eval "ac_cv_func_$ac_func=no"
7779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7780 echo "$ac_t""yes" 1>&6
7781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7782 cat >> confdefs.h <<EOF
7783 #define $ac_tr_func 1
7787 echo "$ac_t""no" 1>&6
7791 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7792 echo "configure:7793: checking for getspnam in -lgen" >&5
7793 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7797 ac_save_LIBS="$LIBS"
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7802 /* Override any gcc2 internal prototype to avoid an error. */
7803 /* We use char because int might match the return type of a gcc2
7804 builtin and then its argument prototype would still apply. */
7811 if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7813 eval "ac_cv_lib_$ac_lib_var=yes"
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7818 eval "ac_cv_lib_$ac_lib_var=no"
7821 LIBS="$ac_save_LIBS"
7824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7825 echo "$ac_t""yes" 1>&6
7826 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7828 cat >> confdefs.h <<EOF
7829 #define $ac_tr_lib 1
7835 echo "$ac_t""no" 1>&6
7838 for ac_func in getspnam
7840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7841 echo "configure:7842: checking for $ac_func" >&5
7842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7845 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure"
7847 #include "confdefs.h"
7848 /* System header to define __stub macros and hopefully few prototypes,
7849 which can conflict with char $ac_func(); below. */
7851 /* Override any gcc2 internal prototype to avoid an error. */
7852 /* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7858 /* The GNU C library defines this for functions which it implements
7859 to always fail with ENOSYS. Some functions are actually named
7860 something starting with __ and the normal name is an alias. */
7861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7869 if { (eval echo configure:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7871 eval "ac_cv_func_$ac_func=yes"
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7876 eval "ac_cv_func_$ac_func=no"
7881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7882 echo "$ac_t""yes" 1>&6
7883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7884 cat >> confdefs.h <<EOF
7885 #define $ac_tr_func 1
7889 echo "$ac_t""no" 1>&6
7898 *-lsecurity*) for ac_func in getspnam
7900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7901 echo "configure:7902: checking for $ac_func" >&5
7902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7903 echo $ac_n "(cached) $ac_c" 1>&6
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7908 /* System header to define __stub macros and hopefully few prototypes,
7909 which can conflict with char $ac_func(); below. */
7911 /* Override any gcc2 internal prototype to avoid an error. */
7912 /* We use char because int might match the return type of a gcc2
7913 builtin and then its argument prototype would still apply. */
7918 /* The GNU C library defines this for functions which it implements
7919 to always fail with ENOSYS. Some functions are actually named
7920 something starting with __ and the normal name is an alias. */
7921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7929 if { (eval echo configure:7930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7931 eval "ac_cv_func_$ac_func=yes"
7933 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7936 eval "ac_cv_func_$ac_func=no"
7941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7942 echo "$ac_t""yes" 1>&6
7943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7944 cat >> confdefs.h <<EOF
7945 #define $ac_tr_func 1
7949 echo "$ac_t""no" 1>&6
7953 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7954 echo "configure:7955: checking for getspnam in -lsecurity" >&5
7955 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7959 ac_save_LIBS="$LIBS"
7960 LIBS="-lsecurity $LIBS"
7961 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7964 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7975 eval "ac_cv_lib_$ac_lib_var=yes"
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 eval "ac_cv_lib_$ac_lib_var=no"
7983 LIBS="$ac_save_LIBS"
7986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7987 echo "$ac_t""yes" 1>&6
7988 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7990 cat >> confdefs.h <<EOF
7991 #define $ac_tr_lib 1
7994 LIBS="-lsecurity $LIBS"
7997 echo "$ac_t""no" 1>&6
8000 for ac_func in getspnam
8002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8003 echo "configure:8004: checking for $ac_func" >&5
8004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8005 echo $ac_n "(cached) $ac_c" 1>&6
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 /* System header to define __stub macros and hopefully few prototypes,
8011 which can conflict with char $ac_func(); below. */
8013 /* Override any gcc2 internal prototype to avoid an error. */
8014 /* We use char because int might match the return type of a gcc2
8015 builtin and then its argument prototype would still apply. */
8020 /* The GNU C library defines this for functions which it implements
8021 to always fail with ENOSYS. Some functions are actually named
8022 something starting with __ and the normal name is an alias. */
8023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8031 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8033 eval "ac_cv_func_$ac_func=yes"
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8038 eval "ac_cv_func_$ac_func=no"
8043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8044 echo "$ac_t""yes" 1>&6
8045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8046 cat >> confdefs.h <<EOF
8047 #define $ac_tr_func 1
8051 echo "$ac_t""no" 1>&6
8059 *-lsec*) for ac_func in getspnam
8061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8062 echo "configure:8063: checking for $ac_func" >&5
8063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8066 cat > conftest.$ac_ext <<EOF
8067 #line 8068 "configure"
8068 #include "confdefs.h"
8069 /* System header to define __stub macros and hopefully few prototypes,
8070 which can conflict with char $ac_func(); below. */
8072 /* Override any gcc2 internal prototype to avoid an error. */
8073 /* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8079 /* The GNU C library defines this for functions which it implements
8080 to always fail with ENOSYS. Some functions are actually named
8081 something starting with __ and the normal name is an alias. */
8082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8090 if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8092 eval "ac_cv_func_$ac_func=yes"
8094 echo "configure: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8097 eval "ac_cv_func_$ac_func=no"
8102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8103 echo "$ac_t""yes" 1>&6
8104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8105 cat >> confdefs.h <<EOF
8106 #define $ac_tr_func 1
8110 echo "$ac_t""no" 1>&6
8114 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8115 echo "configure:8116: checking for getspnam in -lsec" >&5
8116 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8118 echo $ac_n "(cached) $ac_c" 1>&6
8120 ac_save_LIBS="$LIBS"
8122 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure"
8124 #include "confdefs.h"
8125 /* Override any gcc2 internal prototype to avoid an error. */
8126 /* We use char because int might match the return type of a gcc2
8127 builtin and then its argument prototype would still apply. */
8134 if { (eval echo configure:8135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8136 eval "ac_cv_lib_$ac_lib_var=yes"
8138 echo "configure: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8141 eval "ac_cv_lib_$ac_lib_var=no"
8144 LIBS="$ac_save_LIBS"
8147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8148 echo "$ac_t""yes" 1>&6
8149 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8150 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8151 cat >> confdefs.h <<EOF
8152 #define $ac_tr_lib 1
8158 echo "$ac_t""no" 1>&6
8161 for ac_func in getspnam
8163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8164 echo "configure:8165: checking for $ac_func" >&5
8165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8168 cat > conftest.$ac_ext <<EOF
8169 #line 8170 "configure"
8170 #include "confdefs.h"
8171 /* System header to define __stub macros and hopefully few prototypes,
8172 which can conflict with char $ac_func(); below. */
8174 /* Override any gcc2 internal prototype to avoid an error. */
8175 /* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */
8181 /* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
8184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8192 if { (eval echo configure:8193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8194 eval "ac_cv_func_$ac_func=yes"
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8199 eval "ac_cv_func_$ac_func=no"
8204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8205 echo "$ac_t""yes" 1>&6
8206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8207 cat >> confdefs.h <<EOF
8208 #define $ac_tr_func 1
8212 echo "$ac_t""no" 1>&6
8221 *-lsecurity*) for ac_func in bigcrypt
8223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8224 echo "configure:8225: checking for $ac_func" >&5
8225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* System header to define __stub macros and hopefully few prototypes,
8232 which can conflict with char $ac_func(); below. */
8234 /* Override any gcc2 internal prototype to avoid an error. */
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8241 /* The GNU C library defines this for functions which it implements
8242 to always fail with ENOSYS. Some functions are actually named
8243 something starting with __ and the normal name is an alias. */
8244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8252 if { (eval echo configure:8253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8254 eval "ac_cv_func_$ac_func=yes"
8256 echo "configure: failed program was:" >&5
8257 cat conftest.$ac_ext >&5
8259 eval "ac_cv_func_$ac_func=no"
8264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8265 echo "$ac_t""yes" 1>&6
8266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8267 cat >> confdefs.h <<EOF
8268 #define $ac_tr_func 1
8272 echo "$ac_t""no" 1>&6
8276 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8277 echo "configure:8278: checking for bigcrypt in -lsecurity" >&5
8278 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8280 echo $ac_n "(cached) $ac_c" 1>&6
8282 ac_save_LIBS="$LIBS"
8283 LIBS="-lsecurity $LIBS"
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8286 "configure"
8286 #include "confdefs.h"
8287 /* Override any gcc2 internal prototype to avoid an error. */
8288 /* We use char because int might match the return type of a gcc2
8289 builtin and then its argument prototype would still apply. */
8296 if { (eval echo configure:8297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8298 eval "ac_cv_lib_$ac_lib_var=yes"
8300 echo "configure: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8303 eval "ac_cv_lib_$ac_lib_var=no"
8306 LIBS="$ac_save_LIBS"
8309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8310 echo "$ac_t""yes" 1>&6
8311 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8313 cat >> confdefs.h <<EOF
8314 #define $ac_tr_lib 1
8317 LIBS="-lsecurity $LIBS"
8320 echo "$ac_t""no" 1>&6
8323 for ac_func in bigcrypt
8325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8326 echo "configure:8327: checking for $ac_func" >&5
8327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8328 echo $ac_n "(cached) $ac_c" 1>&6
8330 cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure"
8332 #include "confdefs.h"
8333 /* System header to define __stub macros and hopefully few prototypes,
8334 which can conflict with char $ac_func(); below. */
8336 /* Override any gcc2 internal prototype to avoid an error. */
8337 /* We use char because int might match the return type of a gcc2
8338 builtin and then its argument prototype would still apply. */
8343 /* The GNU C library defines this for functions which it implements
8344 to always fail with ENOSYS. Some functions are actually named
8345 something starting with __ and the normal name is an alias. */
8346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8354 if { (eval echo configure:8355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8356 eval "ac_cv_func_$ac_func=yes"
8358 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8361 eval "ac_cv_func_$ac_func=no"
8366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8367 echo "$ac_t""yes" 1>&6
8368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8369 cat >> confdefs.h <<EOF
8370 #define $ac_tr_func 1
8374 echo "$ac_t""no" 1>&6
8382 *-lsec*) for ac_func in bigcrypt
8384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8385 echo "configure:8386: checking for $ac_func" >&5
8386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 /* System header to define __stub macros and hopefully few prototypes,
8393 which can conflict with char $ac_func(); below. */
8395 /* Override any gcc2 internal prototype to avoid an error. */
8396 /* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8402 /* The GNU C library defines this for functions which it implements
8403 to always fail with ENOSYS. Some functions are actually named
8404 something starting with __ and the normal name is an alias. */
8405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8413 if { (eval echo configure:8414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8415 eval "ac_cv_func_$ac_func=yes"
8417 echo "configure: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8420 eval "ac_cv_func_$ac_func=no"
8425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8426 echo "$ac_t""yes" 1>&6
8427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8428 cat >> confdefs.h <<EOF
8429 #define $ac_tr_func 1
8433 echo "$ac_t""no" 1>&6
8437 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8438 echo "configure:8439: checking for bigcrypt in -lsec" >&5
8439 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8443 ac_save_LIBS="$LIBS"
8445 cat > conftest.$ac_ext <<EOF
8446 #line 8447 "configure"
8447 #include "confdefs.h"
8448 /* Override any gcc2 internal prototype to avoid an error. */
8449 /* We use char because int might match the return type of a gcc2
8450 builtin and then its argument prototype would still apply. */
8457 if { (eval echo configure:8458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8459 eval "ac_cv_lib_$ac_lib_var=yes"
8461 echo "configure: failed program was:" >&5
8462 cat conftest.$ac_ext >&5
8464 eval "ac_cv_lib_$ac_lib_var=no"
8467 LIBS="$ac_save_LIBS"
8470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8471 echo "$ac_t""yes" 1>&6
8472 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8473 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8474 cat >> confdefs.h <<EOF
8475 #define $ac_tr_lib 1
8481 echo "$ac_t""no" 1>&6
8484 for ac_func in bigcrypt
8486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8487 echo "configure:8488: checking for $ac_func" >&5
8488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8489 echo $ac_n "(cached) $ac_c" 1>&6
8491 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8494 /* System header to define __stub macros and hopefully few prototypes,
8495 which can conflict with char $ac_func(); below. */
8497 /* Override any gcc2 internal prototype to avoid an error. */
8498 /* We use char because int might match the return type of a gcc2
8499 builtin and then its argument prototype would still apply. */
8504 /* The GNU C library defines this for functions which it implements
8505 to always fail with ENOSYS. Some functions are actually named
8506 something starting with __ and the normal name is an alias. */
8507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8515 if { (eval echo configure:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8517 eval "ac_cv_func_$ac_func=yes"
8519 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8522 eval "ac_cv_func_$ac_func=no"
8527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8528 echo "$ac_t""yes" 1>&6
8529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8530 cat >> confdefs.h <<EOF
8531 #define $ac_tr_func 1
8535 echo "$ac_t""no" 1>&6
8544 *-lsecurity*) for ac_func in getprpwnam
8546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8547 echo "configure:8548: checking for $ac_func" >&5
8548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 /* System header to define __stub macros and hopefully few prototypes,
8555 which can conflict with char $ac_func(); below. */
8557 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8564 /* The GNU C library defines this for functions which it implements
8565 to always fail with ENOSYS. Some functions are actually named
8566 something starting with __ and the normal name is an alias. */
8567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8575 if { (eval echo configure:8576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8577 eval "ac_cv_func_$ac_func=yes"
8579 echo "configure: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8582 eval "ac_cv_func_$ac_func=no"
8587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8588 echo "$ac_t""yes" 1>&6
8589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8590 cat >> confdefs.h <<EOF
8591 #define $ac_tr_func 1
8595 echo "$ac_t""no" 1>&6
8599 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8600 echo "configure:8601: checking for getprpwnam in -lsecurity" >&5
8601 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8605 ac_save_LIBS="$LIBS"
8606 LIBS="-lsecurity $LIBS"
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8610 /* Override any gcc2 internal prototype to avoid an error. */
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8619 if { (eval echo configure:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8621 eval "ac_cv_lib_$ac_lib_var=yes"
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8626 eval "ac_cv_lib_$ac_lib_var=no"
8629 LIBS="$ac_save_LIBS"
8632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8633 echo "$ac_t""yes" 1>&6
8634 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8636 cat >> confdefs.h <<EOF
8637 #define $ac_tr_lib 1
8640 LIBS="-lsecurity $LIBS"
8643 echo "$ac_t""no" 1>&6
8646 for ac_func in getprpwnam
8648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8649 echo "configure:8650: checking for $ac_func" >&5
8650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8651 echo $ac_n "(cached) $ac_c" 1>&6
8653 cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 /* System header to define __stub macros and hopefully few prototypes,
8657 which can conflict with char $ac_func(); below. */
8659 /* Override any gcc2 internal prototype to avoid an error. */
8660 /* We use char because int might match the return type of a gcc2
8661 builtin and then its argument prototype would still apply. */
8666 /* The GNU C library defines this for functions which it implements
8667 to always fail with ENOSYS. Some functions are actually named
8668 something starting with __ and the normal name is an alias. */
8669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8677 if { (eval echo configure:8678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8679 eval "ac_cv_func_$ac_func=yes"
8681 echo "configure: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8684 eval "ac_cv_func_$ac_func=no"
8689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8690 echo "$ac_t""yes" 1>&6
8691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8692 cat >> confdefs.h <<EOF
8693 #define $ac_tr_func 1
8697 echo "$ac_t""no" 1>&6
8705 *-lsec*) for ac_func in getprpwnam
8707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8708 echo "configure:8709: checking for $ac_func" >&5
8709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8712 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8715 /* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char $ac_func(); below. */
8718 /* Override any gcc2 internal prototype to avoid an error. */
8719 /* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8725 /* The GNU C library defines this for functions which it implements
8726 to always fail with ENOSYS. Some functions are actually named
8727 something starting with __ and the normal name is an alias. */
8728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8736 if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8738 eval "ac_cv_func_$ac_func=yes"
8740 echo "configure: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8743 eval "ac_cv_func_$ac_func=no"
8748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8749 echo "$ac_t""yes" 1>&6
8750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8751 cat >> confdefs.h <<EOF
8752 #define $ac_tr_func 1
8756 echo "$ac_t""no" 1>&6
8760 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8761 echo "configure:8762: checking for getprpwnam in -lsec" >&5
8762 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8766 ac_save_LIBS="$LIBS"
8768 cat > conftest.$ac_ext <<EOF
8769 #line 8770 "configure"
8770 #include "confdefs.h"
8771 /* Override any gcc2 internal prototype to avoid an error. */
8772 /* We use char because int might match the return type of a gcc2
8773 builtin and then its argument prototype would still apply. */
8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8782 eval "ac_cv_lib_$ac_lib_var=yes"
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8787 eval "ac_cv_lib_$ac_lib_var=no"
8790 LIBS="$ac_save_LIBS"
8793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8794 echo "$ac_t""yes" 1>&6
8795 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8796 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8797 cat >> confdefs.h <<EOF
8798 #define $ac_tr_lib 1
8804 echo "$ac_t""no" 1>&6
8807 for ac_func in getprpwnam
8809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8810 echo "configure:8811: checking for $ac_func" >&5
8811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8812 echo $ac_n "(cached) $ac_c" 1>&6
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 /* System header to define __stub macros and hopefully few prototypes,
8818 which can conflict with char $ac_func(); below. */
8820 /* Override any gcc2 internal prototype to avoid an error. */
8821 /* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8827 /* The GNU C library defines this for functions which it implements
8828 to always fail with ENOSYS. Some functions are actually named
8829 something starting with __ and the normal name is an alias. */
8830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8838 if { (eval echo configure:8839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8840 eval "ac_cv_func_$ac_func=yes"
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8845 eval "ac_cv_func_$ac_func=no"
8850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8851 echo "$ac_t""yes" 1>&6
8852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8853 cat >> confdefs.h <<EOF
8854 #define $ac_tr_func 1
8858 echo "$ac_t""no" 1>&6
8866 # this bit needs to be modified for each OS that is suported by
8867 # smbwrapper. You need to specify how to created a shared library and
8868 # how to compile C code to produce PIC object files
8870 # these are the defaults, good for lots of systems
8879 # Assume non-shared by default and override below
8881 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8882 echo "configure:8883: checking ability to build shared libraries" >&5
8884 # and these are for particular systems
8886 *linux*) cat >> confdefs.h <<\EOF
8892 DYNEXP="-Wl,--export-dynamic"
8894 SONAMEFLAG="-Wl,-soname="
8895 cat >> confdefs.h <<\EOF
8896 #define STAT_ST_BLOCKSIZE 512
8900 *solaris*) cat >> confdefs.h <<\EOF
8907 if test "${GCC}" = "yes"; then
8909 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8914 ## ${CFLAGS} added for building 64-bit shared
8915 ## libs using Sun's Compiler
8916 LDSHFLAGS="-G \${CFLAGS}"
8920 cat >> confdefs.h <<\EOF
8921 #define STAT_ST_BLOCKSIZE 512
8925 *sunos*) cat >> confdefs.h <<\EOF
8931 SONAMEFLAG="-Wl,-h,"
8932 PICFLAG="-KPIC" # Is this correct for SunOS
8934 *freebsd*) BLDSHARED="true"
8936 DYNEXP="-Wl,--export-dynamic"
8937 SONAMEFLAG="-Wl,-soname,"
8938 PICFLAG="-fPIC -DPIC"
8939 cat >> confdefs.h <<\EOF
8940 #define STAT_ST_BLOCKSIZE 512
8944 *openbsd*) BLDSHARED="true"
8946 DYNEXP="-Wl,-Bdynamic"
8947 SONAMEFLAG="-Wl,-soname,"
8949 cat >> confdefs.h <<\EOF
8950 #define STAT_ST_BLOCKSIZE 512
8954 *irix*) cat >> confdefs.h <<\EOF
8959 *irix6*) cat >> confdefs.h <<\EOF
8965 ATTEMPT_WRAP32_BUILD=yes
8967 LDSHFLAGS="-set_version sgi1.0 -shared"
8968 SONAMEFLAG="-soname "
8970 if test "${GCC}" = "yes"; then
8975 cat >> confdefs.h <<\EOF
8976 #define STAT_ST_BLOCKSIZE 512
8980 *aix*) cat >> confdefs.h <<\EOF
8985 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8986 DYNEXP="-Wl,-brtl,-bexpall"
8988 if test "${GCC}" != "yes"; then
8989 ## for funky AIX compiler using strncpy()
8990 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8993 cat >> confdefs.h <<\EOF
8994 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8998 *hpux*) cat >> confdefs.h <<\EOF
9003 # Use special PIC flags for the native HP-UX compiler.
9004 if test $ac_cv_prog_cc_Ae = yes; then
9007 LDSHFLAGS="-B symbolic -b -z"
9012 cat >> confdefs.h <<\EOF
9013 #define STAT_ST_BLOCKSIZE 8192
9017 *qnx*) cat >> confdefs.h <<\EOF
9021 *osf*) cat >> confdefs.h <<\EOF
9027 SONAMEFLAG="-Wl,-soname,"
9030 *sco*) cat >> confdefs.h <<\EOF
9034 *unixware*) cat >> confdefs.h <<\EOF
9040 SONAMEFLAG="-Wl,-soname,"
9043 *next2*) cat >> confdefs.h <<\EOF
9047 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9048 set dummy groff; ac_word=$2
9049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9050 echo "configure:9051: checking for $ac_word" >&5
9051 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9054 if test -n "$ROFF"; then
9055 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9059 for ac_dir in $ac_dummy; do
9060 test -z "$ac_dir" && ac_dir=.
9061 if test -f $ac_dir/$ac_word; then
9062 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9069 ROFF="$ac_cv_prog_ROFF"
9070 if test -n "$ROFF"; then
9071 echo "$ac_t""$ROFF" 1>&6
9073 echo "$ac_t""no" 1>&6
9078 *-univel-*) if test "$GCC" != yes ; then
9079 cat >> confdefs.h <<\EOF
9080 #define HAVE_MEMSET 1
9087 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9088 #define RELIANTUNIX 1
9095 if test "$GCC" != yes ; then
9096 cat >> confdefs.h <<\EOF
9097 #define HAVE_MEMSET 1
9105 echo "$ac_t""$BLDSHARED" 1>&6
9106 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9107 echo "configure:9108: checking linker flags for shared libraries" >&5
9108 echo "$ac_t""$LDSHFLAGS" 1>&6
9109 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9110 echo "configure:9111: checking compiler flags for position-independent code" >&5
9111 echo "$ac_t""$PICFLAGS" 1>&6
9113 #######################################################
9114 # test whether building a shared library actually works
9115 if test $BLDSHARED = true; then
9116 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9117 echo "configure:9118: checking whether building shared libraries actually works" >&5
9118 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9119 echo $ac_n "(cached) $ac_c" 1>&6
9122 ac_cv_shlib_works=no
9123 # try building a trivial shared library
9124 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9125 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9126 ac_cv_shlib_works=yes
9127 rm -f shlib.so shlib.po
9131 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9132 if test $ac_cv_shlib_works = no; then
9138 # this updates our target list if we can build shared libs
9139 if test $BLDSHARED = true; then
9140 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9142 LIBSMBCLIENT_SHARED=
9147 echo $ac_n "checking for long long""... $ac_c" 1>&6
9148 echo "configure:9149: checking for long long" >&5
9149 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9153 if test "$cross_compiling" = yes; then
9154 samba_cv_have_longlong=cross
9156 cat > conftest.$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9160 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9162 if { (eval echo configure:9163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9164 samba_cv_have_longlong=yes
9166 echo "configure: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9169 samba_cv_have_longlong=no
9176 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9177 if test x"$samba_cv_have_longlong" = x"yes"; then
9178 cat >> confdefs.h <<\EOF
9179 #define HAVE_LONGLONG 1
9185 # Check if the compiler supports the LL prefix on long long integers.
9188 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9189 echo "configure:9190: checking for LL suffix on long long integers" >&5
9190 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9194 cat > conftest.$ac_ext <<EOF
9195 #line 9196 "configure"
9196 #include "confdefs.h"
9199 long long i = 0x8000000000LL
9202 if { (eval echo configure:9203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9204 samba_cv_compiler_supports_ll=yes
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 samba_cv_compiler_supports_ll=no
9214 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9215 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9216 cat >> confdefs.h <<\EOF
9217 #define COMPILER_SUPPORTS_LL 1
9223 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9224 echo "configure:9225: checking for 64 bit off_t" >&5
9225 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
9229 if test "$cross_compiling" = yes; then
9230 samba_cv_SIZEOF_OFF_T=cross
9232 cat > conftest.$ac_ext <<EOF
9233 #line 9234 "configure"
9234 #include "confdefs.h"
9236 #include <sys/stat.h>
9237 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9239 if { (eval echo configure:9240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9241 samba_cv_SIZEOF_OFF_T=yes
9243 echo "configure: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9246 samba_cv_SIZEOF_OFF_T=no
9253 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9254 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9255 cat >> confdefs.h <<\EOF
9256 #define SIZEOF_OFF_T 8
9261 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9262 echo "configure:9263: checking for off64_t" >&5
9263 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9264 echo $ac_n "(cached) $ac_c" 1>&6
9267 if test "$cross_compiling" = yes; then
9268 samba_cv_HAVE_OFF64_T=cross
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9274 #if defined(HAVE_UNISTD_H)
9278 #include <sys/stat.h>
9279 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9281 if { (eval echo configure:9282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9283 samba_cv_HAVE_OFF64_T=yes
9285 echo "configure: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9288 samba_cv_HAVE_OFF64_T=no
9295 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9296 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9297 cat >> confdefs.h <<\EOF
9298 #define HAVE_OFF64_T 1
9303 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9304 echo "configure:9305: checking for 64 bit ino_t" >&5
9305 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9306 echo $ac_n "(cached) $ac_c" 1>&6
9309 if test "$cross_compiling" = yes; then
9310 samba_cv_SIZEOF_INO_T=cross
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9316 #include <sys/stat.h>
9317 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9319 if { (eval echo configure:9320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9321 samba_cv_SIZEOF_INO_T=yes
9323 echo "configure: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9326 samba_cv_SIZEOF_INO_T=no
9333 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9334 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9335 cat >> confdefs.h <<\EOF
9336 #define SIZEOF_INO_T 8
9341 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9342 echo "configure:9343: checking for ino64_t" >&5
9343 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
9347 if test "$cross_compiling" = yes; then
9348 samba_cv_HAVE_INO64_T=cross
9350 cat > conftest.$ac_ext <<EOF
9351 #line 9352 "configure"
9352 #include "confdefs.h"
9354 #if defined(HAVE_UNISTD_H)
9358 #include <sys/stat.h>
9359 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9361 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9363 samba_cv_HAVE_INO64_T=yes
9365 echo "configure: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9368 samba_cv_HAVE_INO64_T=no
9375 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9376 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9377 cat >> confdefs.h <<\EOF
9378 #define HAVE_INO64_T 1
9383 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9384 echo "configure:9385: checking for dev64_t" >&5
9385 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9389 if test "$cross_compiling" = yes; then
9390 samba_cv_HAVE_DEV64_T=cross
9392 cat > conftest.$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9396 #if defined(HAVE_UNISTD_H)
9400 #include <sys/stat.h>
9401 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9403 if { (eval echo configure:9404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9405 samba_cv_HAVE_DEV64_T=yes
9407 echo "configure: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9410 samba_cv_HAVE_DEV64_T=no
9417 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9418 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9419 cat >> confdefs.h <<\EOF
9420 #define HAVE_DEV64_T 1
9425 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9426 echo "configure:9427: checking for struct dirent64" >&5
9427 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9428 echo $ac_n "(cached) $ac_c" 1>&6
9431 cat > conftest.$ac_ext <<EOF
9432 #line 9433 "configure"
9433 #include "confdefs.h"
9435 #if defined(HAVE_UNISTD_H)
9438 #include <sys/types.h>
9444 if { (eval echo configure:9445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9446 samba_cv_HAVE_STRUCT_DIRENT64=yes
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9451 samba_cv_HAVE_STRUCT_DIRENT64=no
9456 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9457 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9458 cat >> confdefs.h <<\EOF
9459 #define HAVE_STRUCT_DIRENT64 1
9464 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9465 echo "configure:9466: checking for major macro" >&5
9466 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9470 if test "$cross_compiling" = yes; then
9471 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9473 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9477 #if defined(HAVE_UNISTD_H)
9480 #include <sys/types.h>
9481 main() { dev_t dev; int i = major(dev); return 0; }
9483 if { (eval echo configure:9484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9485 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9490 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9497 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9498 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9499 cat >> confdefs.h <<\EOF
9500 #define HAVE_DEVICE_MAJOR_FN 1
9505 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9506 echo "configure:9507: checking for minor macro" >&5
9507 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9511 if test "$cross_compiling" = yes; then
9512 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9514 cat > conftest.$ac_ext <<EOF
9515 #line 9516 "configure"
9516 #include "confdefs.h"
9518 #if defined(HAVE_UNISTD_H)
9521 #include <sys/types.h>
9522 main() { dev_t dev; int i = minor(dev); return 0; }
9524 if { (eval echo configure:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9526 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9531 samba_cv_HAVE_DEVICE_MINOR_FN=no
9538 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9539 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9540 cat >> confdefs.h <<\EOF
9541 #define HAVE_DEVICE_MINOR_FN 1
9546 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9547 echo "configure:9548: checking for unsigned char" >&5
9548 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9552 if test "$cross_compiling" = yes; then
9553 samba_cv_HAVE_UNSIGNED_CHAR=cross
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9559 main() { char c; c=250; exit((c > 0)?0:1); }
9561 if { (eval echo configure:9562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9563 samba_cv_HAVE_UNSIGNED_CHAR=yes
9565 echo "configure: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9568 samba_cv_HAVE_UNSIGNED_CHAR=no
9575 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9576 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9577 cat >> confdefs.h <<\EOF
9578 #define HAVE_UNSIGNED_CHAR 1
9583 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9584 echo "configure:9585: checking for sin_len in sock" >&5
9585 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9592 #include <sys/types.h>
9593 #include <sys/socket.h>
9594 #include <netinet/in.h>
9596 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9599 if { (eval echo configure:9600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9601 samba_cv_HAVE_SOCK_SIN_LEN=yes
9603 echo "configure: failed program was:" >&5
9604 cat conftest.$ac_ext >&5
9606 samba_cv_HAVE_SOCK_SIN_LEN=no
9611 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9612 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9613 cat >> confdefs.h <<\EOF
9614 #define HAVE_SOCK_SIN_LEN 1
9619 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9620 echo "configure:9621: checking whether seekdir returns void" >&5
9621 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9625 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9628 #include <sys/types.h>
9630 void seekdir(DIR *d, long loc) { return; }
9635 if { (eval echo configure:9636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9637 samba_cv_SEEKDIR_RETURNS_VOID=yes
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9642 samba_cv_SEEKDIR_RETURNS_VOID=no
9647 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9648 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9649 cat >> confdefs.h <<\EOF
9650 #define SEEKDIR_RETURNS_VOID 1
9655 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9656 echo "configure:9657: checking for __FILE__ macro" >&5
9657 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9658 echo $ac_n "(cached) $ac_c" 1>&6
9661 cat > conftest.$ac_ext <<EOF
9662 #line 9663 "configure"
9663 #include "confdefs.h"
9666 printf("%s\n", __FILE__);
9669 if { (eval echo configure:9670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9671 samba_cv_HAVE_FILE_MACRO=yes
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 samba_cv_HAVE_FILE_MACRO=no
9681 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9682 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9683 cat >> confdefs.h <<\EOF
9684 #define HAVE_FILE_MACRO 1
9689 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9690 echo "configure:9691: checking for __FUNCTION__ macro" >&5
9691 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9695 cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9700 printf("%s\n", __FUNCTION__);
9703 if { (eval echo configure:9704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9705 samba_cv_HAVE_FUNCTION_MACRO=yes
9707 echo "configure: failed program was:" >&5
9708 cat conftest.$ac_ext >&5
9710 samba_cv_HAVE_FUNCTION_MACRO=no
9715 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9716 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9717 cat >> confdefs.h <<\EOF
9718 #define HAVE_FUNCTION_MACRO 1
9723 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9724 echo "configure:9725: checking if gettimeofday takes tz argument" >&5
9725 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9726 echo $ac_n "(cached) $ac_c" 1>&6
9729 if test "$cross_compiling" = yes; then
9730 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9736 #include <sys/time.h>
9738 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9742 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9747 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9754 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9755 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9756 cat >> confdefs.h <<\EOF
9757 #define HAVE_GETTIMEOFDAY_TZ 1
9762 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9763 echo "configure:9764: checking for __va_copy" >&5
9764 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9765 echo $ac_n "(cached) $ac_c" 1>&6
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9777 if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779 samba_cv_HAVE_VA_COPY=yes
9781 echo "configure: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9784 samba_cv_HAVE_VA_COPY=no
9789 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9790 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9791 cat >> confdefs.h <<\EOF
9792 #define HAVE_VA_COPY 1
9797 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9798 echo "configure:9799: checking for C99 vsnprintf" >&5
9799 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9803 if test "$cross_compiling" = yes; then
9804 samba_cv_HAVE_C99_VSNPRINTF=cross
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9810 #include <sys/types.h>
9812 void foo(const char *format, ...) {
9817 va_start(ap, format);
9818 len = vsnprintf(buf, 0, format, ap);
9820 if (len != 5) exit(1);
9822 va_start(ap, format);
9823 len = vsnprintf(0, 0, format, ap);
9825 if (len != 5) exit(1);
9827 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9831 main() { foo("hello"); }
9834 if { (eval echo configure:9835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9836 samba_cv_HAVE_C99_VSNPRINTF=yes
9838 echo "configure: failed program was:" >&5
9839 cat conftest.$ac_ext >&5
9841 samba_cv_HAVE_C99_VSNPRINTF=no
9848 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9849 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9850 cat >> confdefs.h <<\EOF
9851 #define HAVE_C99_VSNPRINTF 1
9856 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9857 echo "configure:9858: checking for broken readdir" >&5
9858 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9862 if test "$cross_compiling" = yes; then
9863 samba_cv_HAVE_BROKEN_READDIR=cross
9865 cat > conftest.$ac_ext <<EOF
9866 #line 9867 "configure"
9867 #include "confdefs.h"
9868 #include <sys/types.h>
9870 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9871 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9872 di->d_name[0] == 0) exit(0); exit(1);}
9874 if { (eval echo configure:9875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9876 samba_cv_HAVE_BROKEN_READDIR=yes
9878 echo "configure: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9881 samba_cv_HAVE_BROKEN_READDIR=no
9888 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9889 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9890 cat >> confdefs.h <<\EOF
9891 #define HAVE_BROKEN_READDIR 1
9896 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9897 echo "configure:9898: checking for utimbuf" >&5
9898 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9899 echo $ac_n "(cached) $ac_c" 1>&6
9902 cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 #include <sys/types.h>
9908 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9911 if { (eval echo configure:9912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9913 samba_cv_HAVE_UTIMBUF=yes
9915 echo "configure: failed program was:" >&5
9916 cat conftest.$ac_ext >&5
9918 samba_cv_HAVE_UTIMBUF=no
9923 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9924 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9925 cat >> confdefs.h <<\EOF
9926 #define HAVE_UTIMBUF 1
9932 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9935 echo "configure:9936: checking for $ac_func" >&5
9936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9937 echo $ac_n "(cached) $ac_c" 1>&6
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 /* System header to define __stub macros and hopefully few prototypes,
9943 which can conflict with char $ac_func(); below. */
9945 /* Override any gcc2 internal prototype to avoid an error. */
9946 /* We use char because int might match the return type of a gcc2
9947 builtin and then its argument prototype would still apply. */
9952 /* The GNU C library defines this for functions which it implements
9953 to always fail with ENOSYS. Some functions are actually named
9954 something starting with __ and the normal name is an alias. */
9955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9963 if { (eval echo configure:9964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9965 eval "ac_cv_func_$ac_func=yes"
9967 echo "configure: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9970 eval "ac_cv_func_$ac_func=no"
9975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9976 echo "$ac_t""yes" 1>&6
9977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9978 cat >> confdefs.h <<EOF
9979 #define $ac_tr_func 1
9983 echo "$ac_t""no" 1>&6
9988 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9989 echo "configure:9990: checking for ut_name in utmp" >&5
9990 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9994 cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9997 #include <sys/types.h>
10000 struct utmp ut; ut.ut_name[0] = 'a';
10003 if { (eval echo configure:10004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10005 samba_cv_HAVE_UT_UT_NAME=yes
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10010 samba_cv_HAVE_UT_UT_NAME=no
10015 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10016 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10017 cat >> confdefs.h <<\EOF
10018 #define HAVE_UT_UT_NAME 1
10023 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10024 echo "configure:10025: checking for ut_user in utmp" >&5
10025 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 #include <sys/types.h>
10035 struct utmp ut; ut.ut_user[0] = 'a';
10038 if { (eval echo configure:10039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10040 samba_cv_HAVE_UT_UT_USER=yes
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10045 samba_cv_HAVE_UT_UT_USER=no
10050 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10051 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10052 cat >> confdefs.h <<\EOF
10053 #define HAVE_UT_UT_USER 1
10058 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10059 echo "configure:10060: checking for ut_id in utmp" >&5
10060 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10064 cat > conftest.$ac_ext <<EOF
10065 #line 10066 "configure"
10066 #include "confdefs.h"
10067 #include <sys/types.h>
10070 struct utmp ut; ut.ut_id[0] = 'a';
10073 if { (eval echo configure:10074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10075 samba_cv_HAVE_UT_UT_ID=yes
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 samba_cv_HAVE_UT_UT_ID=no
10085 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10086 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10087 cat >> confdefs.h <<\EOF
10088 #define HAVE_UT_UT_ID 1
10093 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10094 echo "configure:10095: checking for ut_host in utmp" >&5
10095 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <sys/types.h>
10105 struct utmp ut; ut.ut_host[0] = 'a';
10108 if { (eval echo configure:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10110 samba_cv_HAVE_UT_UT_HOST=yes
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10115 samba_cv_HAVE_UT_UT_HOST=no
10120 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10121 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_UT_UT_HOST 1
10128 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10129 echo "configure:10130: checking for ut_time in utmp" >&5
10130 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #include <sys/types.h>
10140 struct utmp ut; time_t t; ut.ut_time = t;
10143 if { (eval echo configure:10144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10145 samba_cv_HAVE_UT_UT_TIME=yes
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10150 samba_cv_HAVE_UT_UT_TIME=no
10155 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10156 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_UT_UT_TIME 1
10163 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10164 echo "configure:10165: checking for ut_tv in utmp" >&5
10165 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <sys/types.h>
10175 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10178 if { (eval echo configure:10179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10180 samba_cv_HAVE_UT_UT_TV=yes
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 samba_cv_HAVE_UT_UT_TV=no
10190 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10191 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10192 cat >> confdefs.h <<\EOF
10193 #define HAVE_UT_UT_TV 1
10198 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10199 echo "configure:10200: checking for ut_type in utmp" >&5
10200 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10201 echo $ac_n "(cached) $ac_c" 1>&6
10204 cat > conftest.$ac_ext <<EOF
10205 #line 10206 "configure"
10206 #include "confdefs.h"
10207 #include <sys/types.h>
10210 struct utmp ut; ut.ut_type = 0;
10213 if { (eval echo configure:10214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10215 samba_cv_HAVE_UT_UT_TYPE=yes
10217 echo "configure: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10220 samba_cv_HAVE_UT_UT_TYPE=no
10225 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10226 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10227 cat >> confdefs.h <<\EOF
10228 #define HAVE_UT_UT_TYPE 1
10233 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10234 echo "configure:10235: checking for ut_pid in utmp" >&5
10235 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10236 echo $ac_n "(cached) $ac_c" 1>&6
10239 cat > conftest.$ac_ext <<EOF
10240 #line 10241 "configure"
10241 #include "confdefs.h"
10242 #include <sys/types.h>
10245 struct utmp ut; ut.ut_pid = 0;
10248 if { (eval echo configure:10249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10250 samba_cv_HAVE_UT_UT_PID=yes
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10255 samba_cv_HAVE_UT_UT_PID=no
10260 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10261 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10262 cat >> confdefs.h <<\EOF
10263 #define HAVE_UT_UT_PID 1
10268 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10269 echo "configure:10270: checking for ut_exit in utmp" >&5
10270 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10277 #include <sys/types.h>
10280 struct utmp ut; ut.ut_exit.e_exit = 0;
10283 if { (eval echo configure:10284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10285 samba_cv_HAVE_UT_UT_EXIT=yes
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10290 samba_cv_HAVE_UT_UT_EXIT=no
10295 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10296 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_UT_UT_EXIT 1
10303 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10304 echo "configure:10305: checking for ut_addr in utmp" >&5
10305 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10306 echo $ac_n "(cached) $ac_c" 1>&6
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10312 #include <sys/types.h>
10315 struct utmp ut; ut.ut_addr = 0;
10318 if { (eval echo configure:10319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10320 samba_cv_HAVE_UT_UT_ADDR=yes
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10325 samba_cv_HAVE_UT_UT_ADDR=no
10330 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10331 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10332 cat >> confdefs.h <<\EOF
10333 #define HAVE_UT_UT_ADDR 1
10338 if test x$ac_cv_func_pututline = xyes ; then
10339 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10340 echo "configure:10341: checking whether pututline returns pointer" >&5
10341 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10342 echo $ac_n "(cached) $ac_c" 1>&6
10345 cat > conftest.$ac_ext <<EOF
10346 #line 10347 "configure"
10347 #include "confdefs.h"
10348 #include <sys/types.h>
10351 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10354 if { (eval echo configure:10355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10356 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10358 echo "configure: failed program was:" >&5
10359 cat conftest.$ac_ext >&5
10361 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10366 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10367 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10368 cat >> confdefs.h <<\EOF
10369 #define PUTUTLINE_RETURNS_UTMP 1
10375 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10376 echo "configure:10377: checking for ut_syslen in utmpx" >&5
10377 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10383 "configure"
10383 #include "confdefs.h"
10384 #include <sys/types.h>
10387 struct utmpx ux; ux.ut_syslen = 0;
10390 if { (eval echo configure:10391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10392 samba_cv_HAVE_UX_UT_SYSLEN=yes
10394 echo "configure: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10397 samba_cv_HAVE_UX_UT_SYSLEN=no
10402 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10403 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10404 cat >> confdefs.h <<\EOF
10405 #define HAVE_UX_UT_SYSLEN 1
10411 #################################################
10412 # check for libiconv support
10413 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10414 echo "configure:10415: checking whether to use libiconv" >&5
10415 # Check whether --with-libiconv or --without-libiconv was given.
10416 if test "${with_libiconv+set}" = set; then
10417 withval="$with_libiconv"
10420 echo "$ac_t""no" 1>&6
10423 echo "$ac_t""yes" 1>&6
10424 CFLAGS="$CFLAGS -I$withval/include"
10425 LDFLAGS="$LDFLAGS -L$withval/lib"
10426 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10427 echo "configure:10428: checking for iconv_open in -liconv" >&5
10428 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10430 echo $ac_n "(cached) $ac_c" 1>&6
10432 ac_save_LIBS="$LIBS"
10433 LIBS="-liconv $LIBS"
10434 cat > conftest.$ac_ext <<EOF
10435 #line 10436 "configure"
10436 #include "confdefs.h"
10437 /* Override any gcc2 internal prototype to avoid an error. */
10438 /* We use char because int might match the return type of a gcc2
10439 builtin and then its argument prototype would still apply. */
10446 if { (eval echo configure:10447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10448 eval "ac_cv_lib_$ac_lib_var=yes"
10450 echo "configure: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10453 eval "ac_cv_lib_$ac_lib_var=no"
10456 LIBS="$ac_save_LIBS"
10459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10460 echo "$ac_t""yes" 1>&6
10461 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10463 cat >> confdefs.h <<EOF
10464 #define $ac_tr_lib 1
10467 LIBS="-liconv $LIBS"
10470 echo "$ac_t""no" 1>&6
10473 cat >> confdefs.h <<EOF
10474 #define WITH_LIBICONV "${withval}"
10480 echo "$ac_t""no" 1>&6
10487 # check for iconv in libc
10488 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10489 echo "configure:10490: checking for working iconv" >&5
10490 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10491 echo $ac_n "(cached) $ac_c" 1>&6
10494 if test "$cross_compiling" = yes; then
10495 samba_cv_HAVE_NATIVE_ICONV=cross
10497 cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10503 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10504 if (cd == 0 || cd == (iconv_t)-1) return -1;
10509 if { (eval echo configure:10510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10511 samba_cv_HAVE_NATIVE_ICONV=yes
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10516 samba_cv_HAVE_NATIVE_ICONV=no
10523 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10524 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10525 cat >> confdefs.h <<\EOF
10526 #define HAVE_NATIVE_ICONV 1
10532 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10533 echo "configure:10534: checking for Linux kernel oplocks" >&5
10534 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10535 echo $ac_n "(cached) $ac_c" 1>&6
10538 if test "$cross_compiling" = yes; then
10539 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10541 cat > conftest.$ac_ext <<EOF
10542 #line 10543 "configure"
10543 #include "confdefs.h"
10545 #include <sys/types.h>
10548 #define F_GETLEASE 1025
10551 int fd = open("/dev/null", O_RDONLY);
10552 return fcntl(fd, F_GETLEASE, 0) == -1;
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10558 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10563 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10570 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10571 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10572 cat >> confdefs.h <<\EOF
10573 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10578 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10579 echo "configure:10580: checking for kernel change notify support" >&5
10580 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10581 echo $ac_n "(cached) $ac_c" 1>&6
10584 if test "$cross_compiling" = yes; then
10585 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10587 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10591 #include <sys/types.h>
10593 #include <signal.h>
10595 #define F_NOTIFY 1026
10598 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10602 if { (eval echo configure:10603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10604 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10606 echo "configure: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10609 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10616 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10617 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10618 cat >> confdefs.h <<\EOF
10619 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10624 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10625 echo "configure:10626: checking for kernel share modes" >&5
10626 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10627 echo $ac_n "(cached) $ac_c" 1>&6
10630 if test "$cross_compiling" = yes; then
10631 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10633 cat > conftest.$ac_ext <<EOF
10634 #line 10635 "configure"
10635 #include "confdefs.h"
10637 #include <sys/types.h>
10639 #include <signal.h>
10640 #include <sys/file.h>
10642 #define LOCK_MAND 32
10643 #define LOCK_READ 64
10646 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10652 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10664 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10665 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10666 cat >> confdefs.h <<\EOF
10667 #define HAVE_KERNEL_SHARE_MODES 1
10675 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10676 echo "configure:10677: checking for IRIX kernel oplock type definitions" >&5
10677 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10678 echo $ac_n "(cached) $ac_c" 1>&6
10681 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10684 #include <sys/types.h>
10687 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10690 if { (eval echo configure:10691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10692 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10697 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10702 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10703 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10704 cat >> confdefs.h <<\EOF
10705 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10710 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10711 echo "configure:10712: checking for irix specific capabilities" >&5
10712 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10713 echo $ac_n "(cached) $ac_c" 1>&6
10716 if test "$cross_compiling" = yes; then
10717 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10719 cat > conftest.$ac_ext <<EOF
10720 #line 10721 "configure"
10721 #include "confdefs.h"
10722 #include <sys/types.h>
10723 #include <sys/capability.h>
10726 if ((cap = cap_get_proc()) == NULL)
10728 cap->cap_effective |= CAP_NETWORK_MGT;
10729 cap->cap_inheritable |= CAP_NETWORK_MGT;
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10737 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10749 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10750 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10751 cat >> confdefs.h <<\EOF
10752 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10758 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10759 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10762 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10763 echo "configure:10764: checking for int16 typedef included by rpc/rpc.h" >&5
10764 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10765 echo $ac_n "(cached) $ac_c" 1>&6
10768 cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10771 #include <sys/types.h>
10772 #if defined(HAVE_RPC_RPC_H)
10773 #include <rpc/rpc.h>
10779 if { (eval echo configure:10780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10781 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10786 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10791 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10792 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10793 cat >> confdefs.h <<\EOF
10794 #define HAVE_INT16_FROM_RPC_RPC_H 1
10799 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10800 echo "configure:10801: checking for uint16 typedef included by rpc/rpc.h" >&5
10801 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10802 echo $ac_n "(cached) $ac_c" 1>&6
10805 cat > conftest.$ac_ext <<EOF
10806 #line 10807 "configure"
10807 #include "confdefs.h"
10808 #include <sys/types.h>
10809 #if defined(HAVE_RPC_RPC_H)
10810 #include <rpc/rpc.h>
10816 if { (eval echo configure:10817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10818 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10823 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10828 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10829 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10830 cat >> confdefs.h <<\EOF
10831 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10836 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10837 echo "configure:10838: checking for int32 typedef included by rpc/rpc.h" >&5
10838 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10845 #include <sys/types.h>
10846 #if defined(HAVE_RPC_RPC_H)
10847 #include <rpc/rpc.h>
10853 if { (eval echo configure:10854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10855 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10860 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10865 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10866 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10867 cat >> confdefs.h <<\EOF
10868 #define HAVE_INT32_FROM_RPC_RPC_H 1
10873 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10874 echo "configure:10875: checking for uint32 typedef included by rpc/rpc.h" >&5
10875 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10876 echo $ac_n "(cached) $ac_c" 1>&6
10879 cat > conftest.$ac_ext <<EOF
10880 #line 10881 "configure"
10881 #include "confdefs.h"
10882 #include <sys/types.h>
10883 #if defined(HAVE_RPC_RPC_H)
10884 #include <rpc/rpc.h>
10890 if { (eval echo configure:10891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10892 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10897 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10902 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10903 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10904 cat >> confdefs.h <<\EOF
10905 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10911 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10912 echo "configure:10913: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10913 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10917 cat > conftest.$ac_ext <<EOF
10918 #line 10919 "configure"
10919 #include "confdefs.h"
10920 #include <sys/types.h>
10921 #ifdef HAVE_SYS_SECURITY_H
10922 #include <sys/security.h>
10924 #endif /* HAVE_SYS_SECURITY_H */
10925 #if defined(HAVE_RPC_RPC_H)
10926 #include <rpc/rpc.h>
10932 if { (eval echo configure:10933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10934 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10944 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10945 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10946 cat >> confdefs.h <<\EOF
10947 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10952 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10953 echo "configure:10954: checking for test routines" >&5
10954 if test "$cross_compiling" = yes; then
10955 echo "configure: warning: cannot run when cross-compiling" 1>&2
10957 cat > conftest.$ac_ext <<EOF
10958 #line 10959 "configure"
10959 #include "confdefs.h"
10960 #include "${srcdir-.}/tests/trivial.c"
10962 if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10964 echo "$ac_t""yes" 1>&6
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10969 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10975 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10976 echo "configure:10977: checking for ftruncate extend" >&5
10977 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10978 echo $ac_n "(cached) $ac_c" 1>&6
10981 if test "$cross_compiling" = yes; then
10982 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10984 cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10987 #include "${srcdir-.}/tests/ftruncate.c"
10989 if { (eval echo configure:10990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10991 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10993 echo "configure: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10996 samba_cv_HAVE_FTRUNCATE_EXTEND=no
11003 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11004 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
11005 cat >> confdefs.h <<\EOF
11006 #define HAVE_FTRUNCATE_EXTEND 1
11011 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11012 echo "configure:11013: checking for AF_LOCAL socket support" >&5
11013 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11017 if test "$cross_compiling" = yes; then
11018 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 #include "${srcdir-.}/tests/unixsock.c"
11025 if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11027 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 samba_cv_HAVE_WORKING_AF_LOCAL=no
11039 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11040 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11042 cat >> confdefs.h <<\EOF
11043 #define HAVE_WORKING_AF_LOCAL 1
11048 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11049 echo "configure:11050: checking for broken getgroups" >&5
11050 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11051 echo $ac_n "(cached) $ac_c" 1>&6
11054 if test "$cross_compiling" = yes; then
11055 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11057 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure"
11059 #include "confdefs.h"
11060 #include "${srcdir-.}/tests/getgroups.c"
11062 if { (eval echo configure:11063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11064 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11066 echo "configure: failed program was:" >&5
11067 cat conftest.$ac_ext >&5
11069 samba_cv_HAVE_BROKEN_GETGROUPS=no
11076 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11077 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11078 cat >> confdefs.h <<\EOF
11079 #define HAVE_BROKEN_GETGROUPS 1
11084 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11085 echo "configure:11086: checking whether getpass should be replaced" >&5
11086 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11090 SAVE_CPPFLAGS="$CPPFLAGS"
11091 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11096 #define REPLACE_GETPASS 1
11097 #define NO_CONFIG_H 1
11098 #define main dont_declare_main
11099 #include "${srcdir-.}/lib/getsmbpass.c"
11106 if { (eval echo configure:11107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11108 samba_cv_REPLACE_GETPASS=yes
11110 echo "configure: failed program was:" >&5
11111 cat conftest.$ac_ext >&5
11113 samba_cv_REPLACE_GETPASS=no
11116 CPPFLAGS="$SAVE_CPPFLAGS"
11120 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11121 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11122 cat >> confdefs.h <<\EOF
11123 #define REPLACE_GETPASS 1
11128 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11129 echo "configure:11130: checking for broken inet_ntoa" >&5
11130 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11134 if test "$cross_compiling" = yes; then
11135 samba_cv_REPLACE_INET_NTOA=cross
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11142 #include <sys/types.h>
11143 #include <netinet/in.h>
11144 #ifdef HAVE_ARPA_INET_H
11145 #include <arpa/inet.h>
11147 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11148 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11149 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11152 if { (eval echo configure:11153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11154 samba_cv_REPLACE_INET_NTOA=yes
11156 echo "configure: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11159 samba_cv_REPLACE_INET_NTOA=no
11166 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11167 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11168 cat >> confdefs.h <<\EOF
11169 #define REPLACE_INET_NTOA 1
11174 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11175 echo "configure:11176: checking for secure mkstemp" >&5
11176 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11180 if test "$cross_compiling" = yes; then
11181 samba_cv_HAVE_SECURE_MKSTEMP=cross
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 #include <stdlib.h>
11187 #include <sys/types.h>
11188 #include <sys/stat.h>
11189 #include <unistd.h>
11192 char tpl[20]="/tmp/test.XXXXXX";
11193 int fd = mkstemp(tpl);
11194 if (fd == -1) exit(1);
11196 if (fstat(fd, &st) != 0) exit(1);
11197 if ((st.st_mode & 0777) != 0600) exit(1);
11201 if { (eval echo configure:11202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11203 samba_cv_HAVE_SECURE_MKSTEMP=yes
11205 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11208 samba_cv_HAVE_SECURE_MKSTEMP=no
11215 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11216 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11217 cat >> confdefs.h <<\EOF
11218 #define HAVE_SECURE_MKSTEMP 1
11223 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11224 echo "configure:11225: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11225 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11229 if test "$cross_compiling" = yes; then
11230 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11235 #include <unistd.h>
11236 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11238 if { (eval echo configure:11239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11240 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11242 echo "configure: failed program was:" >&5
11243 cat conftest.$ac_ext >&5
11245 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11252 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11253 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11254 cat >> confdefs.h <<\EOF
11255 #define SYSCONF_SC_NGROUPS_MAX 1
11260 echo $ac_n "checking for root""... $ac_c" 1>&6
11261 echo "configure:11262: checking for root" >&5
11262 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11263 echo $ac_n "(cached) $ac_c" 1>&6
11266 if test "$cross_compiling" = yes; then
11267 samba_cv_HAVE_ROOT=cross
11269 cat > conftest.$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11272 main() { exit(getuid() != 0); }
11274 if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11276 samba_cv_HAVE_ROOT=yes
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11281 samba_cv_HAVE_ROOT=no
11288 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11289 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11290 cat >> confdefs.h <<\EOF
11291 #define HAVE_ROOT 1
11295 echo "configure: warning: running as non-root will disable some tests" 1>&2
11299 # look for a method of finding the list of network interfaces
11301 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11302 echo "configure:11303: checking for iface AIX" >&5
11303 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11307 if test "$cross_compiling" = yes; then
11308 samba_cv_HAVE_IFACE_AIX=cross
11310 cat > conftest.$ac_ext <<EOF
11311 #line 11312 "configure"
11312 #include "confdefs.h"
11314 #define HAVE_IFACE_AIX 1
11315 #define AUTOCONF_TEST 1
11316 #include "confdefs.h"
11317 #include "${srcdir-.}/lib/interfaces.c"
11319 if { (eval echo configure:11320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11321 samba_cv_HAVE_IFACE_AIX=yes
11323 echo "configure: failed program was:" >&5
11324 cat conftest.$ac_ext >&5
11326 samba_cv_HAVE_IFACE_AIX=no
11333 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11334 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11335 iface=yes;cat >> confdefs.h <<\EOF
11336 #define HAVE_IFACE_AIX 1
11341 if test $iface = no; then
11342 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11343 echo "configure:11344: checking for iface ifconf" >&5
11344 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11348 if test "$cross_compiling" = yes; then
11349 samba_cv_HAVE_IFACE_IFCONF=cross
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11355 #define HAVE_IFACE_IFCONF 1
11356 #define AUTOCONF_TEST 1
11357 #include "confdefs.h"
11358 #include "${srcdir-.}/lib/interfaces.c"
11360 if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11362 samba_cv_HAVE_IFACE_IFCONF=yes
11364 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11367 samba_cv_HAVE_IFACE_IFCONF=no
11374 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11375 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11376 iface=yes;cat >> confdefs.h <<\EOF
11377 #define HAVE_IFACE_IFCONF 1
11383 if test $iface = no; then
11384 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11385 echo "configure:11386: checking for iface ifreq" >&5
11386 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11387 echo $ac_n "(cached) $ac_c" 1>&6
11390 if test "$cross_compiling" = yes; then
11391 samba_cv_HAVE_IFACE_IFREQ=cross
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11397 #define HAVE_IFACE_IFREQ 1
11398 #define AUTOCONF_TEST 1
11399 #include "confdefs.h"
11400 #include "${srcdir-.}/lib/interfaces.c"
11402 if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11404 samba_cv_HAVE_IFACE_IFREQ=yes
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11409 samba_cv_HAVE_IFACE_IFREQ=no
11416 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11417 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11418 iface=yes;cat >> confdefs.h <<\EOF
11419 #define HAVE_IFACE_IFREQ 1
11426 ################################################
11427 # look for a method of setting the effective uid
11429 if test $seteuid = no; then
11430 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11431 echo "configure:11432: checking for setresuid" >&5
11432 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11433 echo $ac_n "(cached) $ac_c" 1>&6
11436 if test "$cross_compiling" = yes; then
11437 samba_cv_USE_SETRESUID=cross
11439 cat > conftest.$ac_ext <<EOF
11440 #line 11441 "configure"
11441 #include "confdefs.h"
11443 #define AUTOCONF_TEST 1
11444 #define USE_SETRESUID 1
11445 #include "confdefs.h"
11446 #include "${srcdir-.}/lib/util_sec.c"
11448 if { (eval echo configure:11449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11450 samba_cv_USE_SETRESUID=yes
11452 echo "configure: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11455 samba_cv_USE_SETRESUID=no
11462 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11463 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11464 seteuid=yes;cat >> confdefs.h <<\EOF
11465 #define USE_SETRESUID 1
11472 if test $seteuid = no; then
11473 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11474 echo "configure:11475: checking for setreuid" >&5
11475 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11479 if test "$cross_compiling" = yes; then
11480 samba_cv_USE_SETREUID=cross
11482 cat > conftest.$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11486 #define AUTOCONF_TEST 1
11487 #define USE_SETREUID 1
11488 #include "confdefs.h"
11489 #include "${srcdir-.}/lib/util_sec.c"
11491 if { (eval echo configure:11492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11493 samba_cv_USE_SETREUID=yes
11495 echo "configure: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11498 samba_cv_USE_SETREUID=no
11505 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11506 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11507 seteuid=yes;cat >> confdefs.h <<\EOF
11508 #define USE_SETREUID 1
11514 if test $seteuid = no; then
11515 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11516 echo "configure:11517: checking for seteuid" >&5
11517 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11518 echo $ac_n "(cached) $ac_c" 1>&6
11521 if test "$cross_compiling" = yes; then
11522 samba_cv_USE_SETEUID=cross
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11528 #define AUTOCONF_TEST 1
11529 #define USE_SETEUID 1
11530 #include "confdefs.h"
11531 #include "${srcdir-.}/lib/util_sec.c"
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11535 samba_cv_USE_SETEUID=yes
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11540 samba_cv_USE_SETEUID=no
11547 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11548 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11549 seteuid=yes;cat >> confdefs.h <<\EOF
11550 #define USE_SETEUID 1
11556 if test $seteuid = no; then
11557 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11558 echo "configure:11559: checking for setuidx" >&5
11559 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11563 if test "$cross_compiling" = yes; then
11564 samba_cv_USE_SETUIDX=cross
11566 cat > conftest.$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11570 #define AUTOCONF_TEST 1
11571 #define USE_SETUIDX 1
11572 #include "confdefs.h"
11573 #include "${srcdir-.}/lib/util_sec.c"
11575 if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11577 samba_cv_USE_SETUIDX=yes
11579 echo "configure: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11582 samba_cv_USE_SETUIDX=no
11589 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11590 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11591 seteuid=yes;cat >> confdefs.h <<\EOF
11592 #define USE_SETUIDX 1
11599 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11600 echo "configure:11601: checking for working mmap" >&5
11601 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11605 if test "$cross_compiling" = yes; then
11606 samba_cv_HAVE_MMAP=cross
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11611 #include "${srcdir-.}/tests/shared_mmap.c"
11613 if { (eval echo configure:11614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11615 samba_cv_HAVE_MMAP=yes
11617 echo "configure: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11620 samba_cv_HAVE_MMAP=no
11627 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11628 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11629 cat >> confdefs.h <<\EOF
11630 #define HAVE_MMAP 1
11635 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11636 echo "configure:11637: checking for ftruncate needs root" >&5
11637 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11638 echo $ac_n "(cached) $ac_c" 1>&6
11641 if test "$cross_compiling" = yes; then
11642 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11644 cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11647 #include "${srcdir-.}/tests/ftruncroot.c"
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11651 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11656 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11663 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11664 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11665 cat >> confdefs.h <<\EOF
11666 #define FTRUNCATE_NEEDS_ROOT 1
11671 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11672 echo "configure:11673: checking for fcntl locking" >&5
11673 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11674 echo $ac_n "(cached) $ac_c" 1>&6
11677 if test "$cross_compiling" = yes; then
11678 samba_cv_HAVE_FCNTL_LOCK=cross
11680 cat > conftest.$ac_ext <<EOF
11681 #line 11682 "configure"
11682 #include "confdefs.h"
11683 #include "${srcdir-.}/tests/fcntl_lock.c"
11685 if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11687 samba_cv_HAVE_FCNTL_LOCK=yes
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11692 samba_cv_HAVE_FCNTL_LOCK=no
11699 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11700 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11701 cat >> confdefs.h <<\EOF
11702 #define HAVE_FCNTL_LOCK 1
11707 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11708 echo "configure:11709: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11709 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11713 if test "$cross_compiling" = yes; then
11714 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11719 #include "${srcdir-.}/tests/fcntl_lock64.c"
11721 if { (eval echo configure:11722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11723 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11725 echo "configure: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11728 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11735 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11736 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11737 cat >> confdefs.h <<\EOF
11738 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11745 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11746 echo "configure:11747: checking for 64 bit fcntl locking" >&5
11747 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11748 echo $ac_n "(cached) $ac_c" 1>&6
11751 if test "$cross_compiling" = yes; then
11752 samba_cv_HAVE_STRUCT_FLOCK64=cross
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11758 #if defined(HAVE_UNISTD_H)
11759 #include <unistd.h>
11762 #include <stdlib.h>
11764 #ifdef HAVE_FCNTL_H
11768 #ifdef HAVE_SYS_FCNTL_H
11769 #include <sys/fcntl.h>
11771 main() { struct flock64 fl64;
11772 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11779 if { (eval echo configure:11780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11781 samba_cv_HAVE_STRUCT_FLOCK64=yes
11783 echo "configure: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11786 samba_cv_HAVE_STRUCT_FLOCK64=no
11793 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11795 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11796 cat >> confdefs.h <<\EOF
11797 #define HAVE_STRUCT_FLOCK64 1
11803 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11804 echo "configure:11805: checking for st_blocks in struct stat" >&5
11805 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11806 echo $ac_n "(cached) $ac_c" 1>&6
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11812 #include <sys/types.h>
11813 #include <sys/stat.h>
11814 #include <unistd.h>
11816 struct stat st; st.st_blocks = 0;
11819 if { (eval echo configure:11820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11821 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11826 samba_cv_HAVE_STAT_ST_BLOCKS=no
11831 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11832 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11833 cat >> confdefs.h <<\EOF
11834 #define HAVE_STAT_ST_BLOCKS 1
11839 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11840 echo "configure:11841: checking for st_blksize in struct stat" >&5
11841 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11842 echo $ac_n "(cached) $ac_c" 1>&6
11845 cat > conftest.$ac_ext <<EOF
11846 #line 11847 "configure"
11847 #include "confdefs.h"
11848 #include <sys/types.h>
11849 #include <sys/stat.h>
11850 #include <unistd.h>
11852 struct stat st; st.st_blksize = 0;
11855 if { (eval echo configure:11856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11857 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11862 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11867 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11868 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11869 cat >> confdefs.h <<\EOF
11870 #define HAVE_STAT_ST_BLKSIZE 1
11877 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11878 echo "configure:11879: checking for broken RedHat 7.2 system header files" >&5
11879 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11880 echo $ac_n "(cached) $ac_c" 1>&6
11883 cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure"
11885 #include "confdefs.h"
11887 #ifdef HAVE_SYS_VFS_H
11888 #include <sys/vfs.h>
11890 #ifdef HAVE_SYS_CAPABILITY_H
11891 #include <sys/capability.h>
11898 if { (eval echo configure:11899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11900 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11910 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11911 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11912 cat >> confdefs.h <<\EOF
11913 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11920 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11921 echo "configure:11922: checking for broken nisplus include files" >&5
11922 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11923 echo $ac_n "(cached) $ac_c" 1>&6
11926 cat > conftest.$ac_ext <<EOF
11927 #line 11928 "configure"
11928 #include "confdefs.h"
11929 #include <sys/acl.h>
11930 #if defined(HAVE_RPCSVC_NIS_H)
11931 #include <rpcsvc/nis.h>
11937 if { (eval echo configure:11938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11939 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11944 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11949 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11950 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11951 cat >> confdefs.h <<\EOF
11952 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11958 #################################################
11959 # check for smbwrapper support
11960 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11961 echo "configure:11962: checking whether to use smbwrapper" >&5
11962 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11963 if test "${with_smbwrapper+set}" = set; then
11964 withval="$with_smbwrapper"
11967 echo "$ac_t""yes" 1>&6
11968 cat >> confdefs.h <<\EOF
11969 #define WITH_SMBWRAPPER 1
11972 WRAPPROG="bin/smbsh"
11973 WRAP="bin/smbwrapper.$SHLIBEXT"
11975 if test x$ATTEMPT_WRAP32_BUILD = x; then
11978 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11981 # Conditions under which smbwrapper should not be built.
11983 if test x$PICFLAG = x; then
11984 echo No support for PIC code - disabling smbwrapper and smbsh
11988 elif test x$ac_cv_func_syscall = xno; then
11989 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11996 echo "$ac_t""no" 1>&6
12000 echo "$ac_t""no" 1>&6
12005 #################################################
12006 # check for AFS clear-text auth support
12007 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12008 echo "configure:12009: checking whether to use AFS clear-text auth" >&5
12009 # Check whether --with-afs or --without-afs was given.
12010 if test "${with_afs+set}" = set; then
12011 withval="$with_afs"
12014 echo "$ac_t""yes" 1>&6
12015 cat >> confdefs.h <<\EOF
12021 echo "$ac_t""no" 1>&6
12025 echo "$ac_t""no" 1>&6
12031 #################################################
12032 # check for the DFS clear-text auth system
12033 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12034 echo "configure:12035: checking whether to use DFS clear-text auth" >&5
12035 # Check whether --with-dfs or --without-dfs was given.
12036 if test "${with_dfs+set}" = set; then
12037 withval="$with_dfs"
12040 echo "$ac_t""yes" 1>&6
12041 cat >> confdefs.h <<\EOF
12047 echo "$ac_t""no" 1>&6
12051 echo "$ac_t""no" 1>&6
12056 #################################################
12057 # active directory support
12059 with_ads_support=yes
12060 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12061 echo "configure:12062: checking whether to use Active Directory" >&5
12063 # Check whether --with-ads or --without-ads was given.
12064 if test "${with_ads+set}" = set; then
12065 withval="$with_ads"
12068 with_ads_support=no
12074 if test x"$with_ads_support" = x"yes"; then
12075 cat >> confdefs.h <<\EOF
12081 echo "$ac_t""$with_ads_support" 1>&6
12084 if test x"$with_ads_support" = x"yes"; then
12086 #################################################
12087 # check for location of Kerberos 5 install
12088 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12089 echo "configure:12090: checking for kerberos 5 install path" >&5
12090 # Check whether --with-krb5 or --without-krb5 was given.
12091 if test "${with_krb5+set}" = set; then
12092 withval="$with_krb5"
12095 echo "$ac_t""no" 1>&6
12098 echo "$ac_t""yes" 1>&6
12099 LIBS="$LIBS -lkrb5"
12100 CFLAGS="$CFLAGS -I$withval/include"
12101 CPPFLAGS="$CPPFLAGS -I$withval/include"
12102 LDFLAGS="$LDFLAGS -L$withval/lib"
12107 echo "$ac_t""no" 1>&6
12113 if test x$FOUND_KRB5 = x"no"; then
12114 #################################################
12115 # see if this box has the RedHat location for kerberos
12116 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12117 echo "configure:12118: checking for /usr/kerberos" >&5
12118 if test -d /usr/kerberos; then
12119 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12120 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12121 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12122 echo "$ac_t""yes" 1>&6
12124 echo "$ac_t""no" 1>&6
12129 # now check for krb5.h. Some systems have the libraries without the headers!
12130 # note that this check is done here to allow for different kerberos
12132 for ac_hdr in krb5.h
12134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12136 echo "configure:12137: checking for $ac_hdr" >&5
12137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12138 echo $ac_n "(cached) $ac_c" 1>&6
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12146 { (eval echo configure:12147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12148 if test -z "$ac_err"; then
12150 eval "ac_cv_header_$ac_safe=yes"
12153 echo "configure: failed program was:" >&5
12154 cat conftest.$ac_ext >&5
12156 eval "ac_cv_header_$ac_safe=no"
12160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12161 echo "$ac_t""yes" 1>&6
12162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12163 cat >> confdefs.h <<EOF
12164 #define $ac_tr_hdr 1
12168 echo "$ac_t""no" 1>&6
12173 # now check for gssapi headers. This is also done here to allow for
12174 # different kerberos include paths
12175 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12179 echo "configure:12180: checking for $ac_hdr" >&5
12180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12183 cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12189 { (eval echo configure:12190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12191 if test -z "$ac_err"; then
12193 eval "ac_cv_header_$ac_safe=yes"
12196 echo "configure: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12199 eval "ac_cv_header_$ac_safe=no"
12203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12204 echo "$ac_t""yes" 1>&6
12205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12206 cat >> confdefs.h <<EOF
12207 #define $ac_tr_hdr 1
12211 echo "$ac_t""no" 1>&6
12216 ##################################################################
12217 # we might need the k5crypto and com_err libraries on some systems
12218 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12219 echo "configure:12220: checking for _et_list in -lcom_err" >&5
12220 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12222 echo $ac_n "(cached) $ac_c" 1>&6
12224 ac_save_LIBS="$LIBS"
12225 LIBS="-lcom_err $LIBS"
12226 cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure"
12228 #include "confdefs.h"
12229 /* Override any gcc2 internal prototype to avoid an error. */
12230 /* We use char because int might match the return type of a gcc2
12231 builtin and then its argument prototype would still apply. */
12238 if { (eval echo configure:12239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12240 eval "ac_cv_lib_$ac_lib_var=yes"
12242 echo "configure: failed program was:" >&5
12243 cat conftest.$ac_ext >&5
12245 eval "ac_cv_lib_$ac_lib_var=no"
12248 LIBS="$ac_save_LIBS"
12251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12252 echo "$ac_t""yes" 1>&6
12253 LIBS="$LIBS -lcom_err"
12255 echo "$ac_t""no" 1>&6
12258 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12259 echo "configure:12260: checking for krb5_encrypt_data in -lk5crypto" >&5
12260 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12262 echo $ac_n "(cached) $ac_c" 1>&6
12264 ac_save_LIBS="$LIBS"
12265 LIBS="-lk5crypto $LIBS"
12266 cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12269 /* Override any gcc2 internal prototype to avoid an error. */
12270 /* We use char because int might match the return type of a gcc2
12271 builtin and then its argument prototype would still apply. */
12272 char krb5_encrypt_data();
12275 krb5_encrypt_data()
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12280 eval "ac_cv_lib_$ac_lib_var=yes"
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12285 eval "ac_cv_lib_$ac_lib_var=no"
12288 LIBS="$ac_save_LIBS"
12291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12292 echo "$ac_t""yes" 1>&6
12293 LIBS="$LIBS -lk5crypto"
12295 echo "$ac_t""no" 1>&6
12299 ########################################################
12300 # now see if we can find the krb5 libs in standard paths
12301 # or as specified above
12302 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12303 echo "configure:12304: checking for krb5_mk_req_extended in -lkrb5" >&5
12304 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12306 echo $ac_n "(cached) $ac_c" 1>&6
12308 ac_save_LIBS="$LIBS"
12309 LIBS="-lkrb5 $LIBS"
12310 cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12313 /* Override any gcc2 internal prototype to avoid an error. */
12314 /* We use char because int might match the return type of a gcc2
12315 builtin and then its argument prototype would still apply. */
12316 char krb5_mk_req_extended();
12319 krb5_mk_req_extended()
12322 if { (eval echo configure:12323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12324 eval "ac_cv_lib_$ac_lib_var=yes"
12326 echo "configure: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12329 eval "ac_cv_lib_$ac_lib_var=no"
12332 LIBS="$ac_save_LIBS"
12335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12336 echo "$ac_t""yes" 1>&6
12337 LIBS="$LIBS -lkrb5";
12338 cat >> confdefs.h <<\EOF
12339 #define HAVE_KRB5 1
12343 echo "$ac_t""no" 1>&6
12347 ########################################################
12348 # now see if we can find the gssapi libs in standard paths
12349 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12350 echo "configure:12351: checking for gss_display_status in -lgssapi_krb5" >&5
12351 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12355 ac_save_LIBS="$LIBS"
12356 LIBS="-lgssapi_krb5 $LIBS"
12357 cat > conftest.$ac_ext <<EOF
12358 #line 12359 "configure"
12359 #include "confdefs.h"
12360 /* Override any gcc2 internal prototype to avoid an error. */
12361 /* We use char because int might match the return type of a gcc2
12362 builtin and then its argument prototype would still apply. */
12363 char gss_display_status();
12366 gss_display_status()
12369 if { (eval echo configure:12370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12371 eval "ac_cv_lib_$ac_lib_var=yes"
12373 echo "configure: failed program was:" >&5
12374 cat conftest.$ac_ext >&5
12376 eval "ac_cv_lib_$ac_lib_var=no"
12379 LIBS="$ac_save_LIBS"
12382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12383 echo "$ac_t""yes" 1>&6
12384 LIBS="$LIBS -lgssapi_krb5";
12385 cat >> confdefs.h <<\EOF
12386 #define HAVE_GSSAPI 1
12390 echo "$ac_t""no" 1>&6
12395 ########################################################
12396 # Compile with LDAP support?
12398 with_ldap_support=yes
12399 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12400 echo "configure:12401: checking whether to use LDAP" >&5
12402 # Check whether --with-ldap or --without-ldap was given.
12403 if test "${with_ldap+set}" = set; then
12404 withval="$with_ldap"
12407 with_ldap_support=no
12413 echo "$ac_t""$with_ldap_support" 1>&6
12415 if test x"$with_ldap_support" = x"yes"; then
12417 ##################################################################
12418 # we might need the lber lib on some systems. To avoid link errors
12419 # this test must be before the libldap test
12420 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12421 echo "configure:12422: checking for ber_scanf in -llber" >&5
12422 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12424 echo $ac_n "(cached) $ac_c" 1>&6
12426 ac_save_LIBS="$LIBS"
12427 LIBS="-llber $LIBS"
12428 cat > conftest.$ac_ext <<EOF
12429 #line 12430 "configure"
12430 #include "confdefs.h"
12431 /* Override any gcc2 internal prototype to avoid an error. */
12432 /* We use char because int might match the return type of a gcc2
12433 builtin and then its argument prototype would still apply. */
12440 if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12442 eval "ac_cv_lib_$ac_lib_var=yes"
12444 echo "configure: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12447 eval "ac_cv_lib_$ac_lib_var=no"
12450 LIBS="$ac_save_LIBS"
12453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12454 echo "$ac_t""yes" 1>&6
12455 LIBS="$LIBS -llber"
12457 echo "$ac_t""no" 1>&6
12461 ########################################################
12462 # now see if we can find the ldap libs in standard paths
12463 if test x$have_ldap != xyes; then
12464 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12465 echo "configure:12466: checking for ldap_domain2hostlist in -lldap" >&5
12466 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12468 echo $ac_n "(cached) $ac_c" 1>&6
12470 ac_save_LIBS="$LIBS"
12471 LIBS="-lldap $LIBS"
12472 cat > conftest.$ac_ext <<EOF
12473 #line 12474 "configure"
12474 #include "confdefs.h"
12475 /* Override any gcc2 internal prototype to avoid an error. */
12476 /* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12478 char ldap_domain2hostlist();
12481 ldap_domain2hostlist()
12484 if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12486 eval "ac_cv_lib_$ac_lib_var=yes"
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12491 eval "ac_cv_lib_$ac_lib_var=no"
12494 LIBS="$ac_save_LIBS"
12497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12498 echo "$ac_t""yes" 1>&6
12499 LIBS="$LIBS -lldap";
12500 cat >> confdefs.h <<\EOF
12501 #define HAVE_LDAP 1
12505 echo "$ac_t""no" 1>&6
12509 ########################################################
12510 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12511 # Check found in pam_ldap 145.
12512 for ac_func in ldap_set_rebind_proc
12514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12515 echo "configure:12516: checking for $ac_func" >&5
12516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12517 echo $ac_n "(cached) $ac_c" 1>&6
12519 cat > conftest.$ac_ext <<EOF
12520 #line 12521 "configure"
12521 #include "confdefs.h"
12522 /* System header to define __stub macros and hopefully few prototypes,
12523 which can conflict with char $ac_func(); below. */
12524 #include <assert.h>
12525 /* Override any gcc2 internal prototype to avoid an error. */
12526 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */
12532 /* The GNU C library defines this for functions which it implements
12533 to always fail with ENOSYS. Some functions are actually named
12534 something starting with __ and the normal name is an alias. */
12535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12543 if { (eval echo configure:12544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12545 eval "ac_cv_func_$ac_func=yes"
12547 echo "configure: failed program was:" >&5
12548 cat conftest.$ac_ext >&5
12550 eval "ac_cv_func_$ac_func=no"
12555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12556 echo "$ac_t""yes" 1>&6
12557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12558 cat >> confdefs.h <<EOF
12559 #define $ac_tr_func 1
12563 echo "$ac_t""no" 1>&6
12567 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12568 echo "configure:12569: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12569 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12570 echo $ac_n "(cached) $ac_c" 1>&6
12573 cat > conftest.$ac_ext <<EOF
12574 #line 12575 "configure"
12575 #include "confdefs.h"
12580 ldap_set_rebind_proc(0, 0, 0);
12583 if { (eval echo configure:12584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12585 pam_ldap_cv_ldap_set_rebind_proc=3
12587 echo "configure: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12590 pam_ldap_cv_ldap_set_rebind_proc=2
12595 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12596 cat >> confdefs.h <<EOF
12597 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12603 #################################################
12604 # check for automount support
12605 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12606 echo "configure:12607: checking whether to use AUTOMOUNT" >&5
12607 # Check whether --with-automount or --without-automount was given.
12608 if test "${with_automount+set}" = set; then
12609 withval="$with_automount"
12612 echo "$ac_t""yes" 1>&6
12613 cat >> confdefs.h <<\EOF
12614 #define WITH_AUTOMOUNT 1
12619 echo "$ac_t""no" 1>&6
12623 echo "$ac_t""no" 1>&6
12628 #################################################
12629 # check for smbmount support
12630 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12631 echo "configure:12632: checking whether to use SMBMOUNT" >&5
12632 # Check whether --with-smbmount or --without-smbmount was given.
12633 if test "${with_smbmount+set}" = set; then
12634 withval="$with_smbmount"
12639 echo "$ac_t""yes" 1>&6
12640 cat >> confdefs.h <<\EOF
12641 #define WITH_SMBMOUNT 1
12644 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12647 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12652 echo "$ac_t""no" 1>&6
12657 echo "$ac_t""no" 1>&6
12664 #################################################
12665 # check for a PAM clear-text auth, accounts, password and session support
12666 with_pam_for_crypt=no
12667 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12668 echo "configure:12669: checking whether to use PAM" >&5
12669 # Check whether --with-pam or --without-pam was given.
12670 if test "${with_pam+set}" = set; then
12671 withval="$with_pam"
12674 echo "$ac_t""yes" 1>&6
12675 cat >> confdefs.h <<\EOF
12679 AUTHLIBS="$AUTHLIBS -lpam"
12680 with_pam_for_crypt=yes
12683 echo "$ac_t""no" 1>&6
12687 echo "$ac_t""no" 1>&6
12692 # we can't build a pam module if we don't have pam.
12693 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12694 echo "configure:12695: checking for pam_get_data in -lpam" >&5
12695 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12697 echo $ac_n "(cached) $ac_c" 1>&6
12699 ac_save_LIBS="$LIBS"
12701 cat > conftest.$ac_ext <<EOF
12702 #line 12703 "configure"
12703 #include "confdefs.h"
12704 /* Override any gcc2 internal prototype to avoid an error. */
12705 /* We use char because int might match the return type of a gcc2
12706 builtin and then its argument prototype would still apply. */
12707 char pam_get_data();
12713 if { (eval echo configure:12714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12715 eval "ac_cv_lib_$ac_lib_var=yes"
12717 echo "configure: failed program was:" >&5
12718 cat conftest.$ac_ext >&5
12720 eval "ac_cv_lib_$ac_lib_var=no"
12723 LIBS="$ac_save_LIBS"
12726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12727 echo "$ac_t""yes" 1>&6
12728 cat >> confdefs.h <<\EOF
12729 #define HAVE_LIBPAM 1
12733 echo "$ac_t""no" 1>&6
12737 #################################################
12738 # check for pam_smbpass support
12739 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12740 echo "configure:12741: checking whether to use pam_smbpass" >&5
12741 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12742 if test "${with_pam_smbpass+set}" = set; then
12743 withval="$with_pam_smbpass"
12746 echo "$ac_t""yes" 1>&6
12748 # Conditions under which pam_smbpass should not be built.
12750 if test x$PICFLAG = x; then
12751 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12753 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12754 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12757 PAM_MOD="bin/pam_smbpass.so"
12761 echo "$ac_t""no" 1>&6
12765 echo "$ac_t""no" 1>&6
12771 ###############################################
12772 # test for where we get crypt() from, but only
12774 if test x"$with_pam_for_crypt" = x"no"; then
12775 for ac_func in crypt
12777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12778 echo "configure:12779: checking for $ac_func" >&5
12779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12780 echo $ac_n "(cached) $ac_c" 1>&6
12782 cat > conftest.$ac_ext <<EOF
12783 #line 12784 "configure"
12784 #include "confdefs.h"
12785 /* System header to define __stub macros and hopefully few prototypes,
12786 which can conflict with char $ac_func(); below. */
12787 #include <assert.h>
12788 /* Override any gcc2 internal prototype to avoid an error. */
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12795 /* The GNU C library defines this for functions which it implements
12796 to always fail with ENOSYS. Some functions are actually named
12797 something starting with __ and the normal name is an alias. */
12798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12806 if { (eval echo configure:12807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12808 eval "ac_cv_func_$ac_func=yes"
12810 echo "configure: failed program was:" >&5
12811 cat conftest.$ac_ext >&5
12813 eval "ac_cv_func_$ac_func=no"
12818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12819 echo "$ac_t""yes" 1>&6
12820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12821 cat >> confdefs.h <<EOF
12822 #define $ac_tr_func 1
12826 echo "$ac_t""no" 1>&6
12830 if test x"$ac_cv_func_crypt" = x"no"; then
12831 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12832 echo "configure:12833: checking for crypt in -lcrypt" >&5
12833 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12835 echo $ac_n "(cached) $ac_c" 1>&6
12837 ac_save_LIBS="$LIBS"
12838 LIBS="-lcrypt $LIBS"
12839 cat > conftest.$ac_ext <<EOF
12840 #line 12841 "configure"
12841 #include "confdefs.h"
12842 /* Override any gcc2 internal prototype to avoid an error. */
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12851 if { (eval echo configure:12852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12853 eval "ac_cv_lib_$ac_lib_var=yes"
12855 echo "configure: failed program was:" >&5
12856 cat conftest.$ac_ext >&5
12858 eval "ac_cv_lib_$ac_lib_var=no"
12861 LIBS="$ac_save_LIBS"
12864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12865 echo "$ac_t""yes" 1>&6
12866 AUTHLIBS="$AUTHLIBS -lcrypt";
12867 cat >> confdefs.h <<\EOF
12868 #define HAVE_CRYPT 1
12872 echo "$ac_t""no" 1>&6
12879 ## moved after the check for -lcrypt in order to
12880 ## ensure that the necessary libraries are included
12881 ## check checking for truncated salt. Wrapped by the
12882 ## $with_pam_for_crypt variable as above --jerry
12884 if test $with_pam_for_crypt = no; then
12885 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12886 echo "configure:12887: checking for a crypt that needs truncated salt" >&5
12887 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12888 echo $ac_n "(cached) $ac_c" 1>&6
12892 LIBS="$AUTHLIBS $LIBS"
12893 if test "$cross_compiling" = yes; then
12894 samba_cv_HAVE_TRUNCATED_SALT=cross
12896 cat > conftest.$ac_ext <<EOF
12897 #line 12898 "configure"
12898 #include "confdefs.h"
12899 #include "${srcdir-.}/tests/crypttest.c"
12901 if { (eval echo configure:12902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12903 samba_cv_HAVE_TRUNCATED_SALT=no
12905 echo "configure: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12908 samba_cv_HAVE_TRUNCATED_SALT=yes
12916 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12917 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12918 cat >> confdefs.h <<\EOF
12919 #define HAVE_TRUNCATED_SALT 1
12925 # New experimental SAM system
12927 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
12928 echo "configure:12929: checking whether to build the new (experimental) SAM database" >&5
12929 # Check whether --with-sam or --without-sam was given.
12930 if test "${with_sam+set}" = set; then
12931 withval="$with_sam"
12934 echo "$ac_t""yes" 1>&6
12935 cat >> confdefs.h <<\EOF
12941 echo "$ac_t""no" 1>&6
12945 echo "$ac_t""no" 1>&6
12951 ########################################################################################
12953 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12955 ########################################################################################
12957 #################################################
12958 # check for a LDAP password database configuration backwards compatibility
12959 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
12960 echo "configure:12961: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
12961 # Check whether --with-ldapsam or --without-ldapsam was given.
12962 if test "${with_ldapsam+set}" = set; then
12963 withval="$with_ldapsam"
12966 echo "$ac_t""yes" 1>&6
12967 cat >> confdefs.h <<\EOF
12968 #define WITH_LDAP_SAMCONFIG 1
12973 echo "$ac_t""no" 1>&6
12977 echo "$ac_t""no" 1>&6
12982 #################################################
12983 # check for a TDB password database
12984 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12985 echo "configure:12986: checking whether to use TDB SAM database" >&5
12986 # Check whether --with-tdbsam or --without-tdbsam was given.
12987 if test "${with_tdbsam+set}" = set; then
12988 withval="$with_tdbsam"
12991 echo "$ac_t""yes" 1>&6
12992 cat >> confdefs.h <<\EOF
12993 #define WITH_TDB_SAM 1
12998 echo "$ac_t""no" 1>&6
13002 echo "$ac_t""no" 1>&6
13007 #################################################
13008 # check for a NISPLUS password database
13009 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
13010 echo "configure:13011: checking whether to use NISPLUS SAM database" >&5
13011 # Check whether --with-nisplussam or --without-nisplussam was given.
13012 if test "${with_nisplussam+set}" = set; then
13013 withval="$with_nisplussam"
13016 echo "$ac_t""yes" 1>&6
13017 cat >> confdefs.h <<\EOF
13018 #define WITH_NISPLUS_SAM 1
13023 echo "$ac_t""no" 1>&6
13027 echo "$ac_t""no" 1>&6
13032 ########################################################################################
13034 ## END OF TESTS FOR SAM BACKENDS.
13036 ########################################################################################
13038 #################################################
13039 # check for a NISPLUS_HOME support
13040 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
13041 echo "configure:13042: checking whether to use NISPLUS_HOME" >&5
13042 # Check whether --with-nisplus-home or --without-nisplus-home was given.
13043 if test "${with_nisplus_home+set}" = set; then
13044 withval="$with_nisplus_home"
13047 echo "$ac_t""yes" 1>&6
13048 cat >> confdefs.h <<\EOF
13049 #define WITH_NISPLUS_HOME 1
13054 echo "$ac_t""no" 1>&6
13058 echo "$ac_t""no" 1>&6
13063 #################################################
13064 # check for syslog logging
13065 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
13066 echo "configure:13067: checking whether to use syslog logging" >&5
13067 # Check whether --with-syslog or --without-syslog was given.
13068 if test "${with_syslog+set}" = set; then
13069 withval="$with_syslog"
13072 echo "$ac_t""yes" 1>&6
13073 cat >> confdefs.h <<\EOF
13074 #define WITH_SYSLOG 1
13079 echo "$ac_t""no" 1>&6
13083 echo "$ac_t""no" 1>&6
13088 #################################################
13089 # check for a shared memory profiling support
13090 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
13091 echo "configure:13092: checking whether to use profiling" >&5
13092 # Check whether --with-profiling-data or --without-profiling-data was given.
13093 if test "${with_profiling_data+set}" = set; then
13094 withval="$with_profiling_data"
13097 echo "$ac_t""yes" 1>&6
13098 cat >> confdefs.h <<\EOF
13099 #define WITH_PROFILE 1
13104 echo "$ac_t""no" 1>&6
13108 echo "$ac_t""no" 1>&6
13114 #################################################
13115 # check for experimental disk-quotas support
13116 QUOTAOBJS=smbd/noquotas.o
13118 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13119 echo "configure:13120: checking whether to support disk-quotas" >&5
13120 # Check whether --with-quotas or --without-quotas was given.
13121 if test "${with_quotas+set}" = set; then
13122 withval="$with_quotas"
13125 echo "$ac_t""yes" 1>&6
13128 # Check for kernel 2.4.x quota braindamage...
13129 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13130 echo "configure:13131: checking for linux 2.4.x quota braindamage.." >&5
13131 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13132 echo $ac_n "(cached) $ac_c" 1>&6
13135 cat > conftest.$ac_ext <<EOF
13136 #line 13137 "configure"
13137 #include "confdefs.h"
13139 #include <sys/types.h>
13140 #include <asm/types.h>
13141 #include <linux/quota.h>
13142 #include <mntent.h>
13143 #include <linux/unistd.h>
13145 struct mem_dqblk D;
13148 if { (eval echo configure:13149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13150 samba_cv_linux_2_4_quota_braindamage=yes
13152 echo "configure: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13155 samba_cv_linux_2_4_quota_braindamage=no
13160 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13161 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13162 cat >> confdefs.h <<\EOF
13163 #define LINUX_QUOTAS_2 1
13167 cat >> confdefs.h <<\EOF
13168 #define LINUX_QUOTAS_1 1
13176 QUOTAOBJS=smbd/quotas.o
13177 cat >> confdefs.h <<\EOF
13178 #define WITH_QUOTAS 1
13183 echo "$ac_t""no" 1>&6
13187 echo "$ac_t""no" 1>&6
13193 #################################################
13194 # check for experimental utmp accounting
13196 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13197 echo "configure:13198: checking whether to support utmp accounting" >&5
13198 # Check whether --with-utmp or --without-utmp was given.
13199 if test "${with_utmp+set}" = set; then
13200 withval="$with_utmp"
13203 echo "$ac_t""yes" 1>&6
13204 cat >> confdefs.h <<\EOF
13205 #define WITH_UTMP 1
13210 echo "$ac_t""no" 1>&6
13214 echo "$ac_t""no" 1>&6
13219 #################################################
13220 # choose native language(s) of man pages
13221 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13222 echo "configure:13223: checking chosen man pages' language(s)" >&5
13223 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13224 if test "${with_manpages_langs+set}" = set; then
13225 withval="$with_manpages_langs"
13228 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13232 manlangs="$withval"
13236 echo "$ac_t""$manlangs" 1>&6
13237 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13241 echo "$ac_t""$manlangs" 1>&6
13247 #################################################
13248 # should we build libsmbclient?
13250 LIBSMBCLIENT_SHARED=
13252 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13253 echo "configure:13254: checking whether to build the libsmbclient shared library" >&5
13254 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13255 if test "${with_libsmbclient+set}" = set; then
13256 withval="$with_libsmbclient"
13259 echo "$ac_t""no" 1>&6
13262 if test $BLDSHARED = true; then
13263 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13264 LIBSMBCLIENT=libsmbclient
13265 echo "$ac_t""yes" 1>&6
13267 echo "$ac_t""no shared library support" 1>&6
13272 echo "$ac_t""yes" 1>&6
13278 #################################################
13279 # these tests are taken from the GNU fileutils package
13280 echo "checking how to get filesystem space usage" 1>&6
13281 echo "configure:13282: checking how to get filesystem space usage" >&5
13284 # Test for statvfs64.
13285 if test $space = no; then
13287 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13288 echo "configure:13289: checking statvfs64 function (SVR4)" >&5
13289 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13290 echo $ac_n "(cached) $ac_c" 1>&6
13292 if test "$cross_compiling" = yes; then
13293 fu_cv_sys_stat_statvfs64=cross
13295 cat > conftest.$ac_ext <<EOF
13296 #line 13297 "configure"
13297 #include "confdefs.h"
13299 #if defined(HAVE_UNISTD_H)
13300 #include <unistd.h>
13302 #include <sys/types.h>
13303 #include <sys/statvfs.h>
13306 struct statvfs64 fsd;
13307 exit (statvfs64 (".", &fsd));
13310 if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13312 fu_cv_sys_stat_statvfs64=yes
13314 echo "configure: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13317 fu_cv_sys_stat_statvfs64=no
13324 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13325 if test $fu_cv_sys_stat_statvfs64 = yes; then
13327 cat >> confdefs.h <<\EOF
13328 #define STAT_STATVFS64 1
13334 # Perform only the link test since it seems there are no variants of the
13335 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13336 # because that got a false positive on SCO OSR5. Adding the declaration
13337 # of a `struct statvfs' causes this test to fail (as it should) on such
13338 # systems. That system is reported to work fine with STAT_STATFS4 which
13339 # is what it gets when this test fails.
13340 if test $space = no; then
13342 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13343 echo "configure:13344: checking statvfs function (SVR4)" >&5
13344 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13345 echo $ac_n "(cached) $ac_c" 1>&6
13347 cat > conftest.$ac_ext <<EOF
13348 #line 13349 "configure"
13349 #include "confdefs.h"
13350 #include <sys/types.h>
13351 #include <sys/statvfs.h>
13353 struct statvfs fsd; statvfs (0, &fsd);
13356 if { (eval echo configure:13357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13358 fu_cv_sys_stat_statvfs=yes
13360 echo "configure: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13363 fu_cv_sys_stat_statvfs=no
13368 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13369 if test $fu_cv_sys_stat_statvfs = yes; then
13371 cat >> confdefs.h <<\EOF
13372 #define STAT_STATVFS 1
13378 if test $space = no; then
13379 # DEC Alpha running OSF/1
13380 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13381 echo "configure:13382: checking for 3-argument statfs function (DEC OSF/1)" >&5
13382 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13383 echo $ac_n "(cached) $ac_c" 1>&6
13385 if test "$cross_compiling" = yes; then
13386 fu_cv_sys_stat_statfs3_osf1=no
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13392 #include <sys/param.h>
13393 #include <sys/types.h>
13394 #include <sys/mount.h>
13399 exit (statfs (".", &fsd, sizeof (struct statfs)));
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_statfs3_osf1=yes
13406 echo "configure: failed program was:" >&5
13407 cat conftest.$ac_ext >&5
13409 fu_cv_sys_stat_statfs3_osf1=no
13416 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13417 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13419 cat >> confdefs.h <<\EOF
13420 #define STAT_STATFS3_OSF1 1
13426 if test $space = no; then
13428 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13429 echo "configure:13430: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13430 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13431 echo $ac_n "(cached) $ac_c" 1>&6
13433 if test "$cross_compiling" = yes; then
13434 fu_cv_sys_stat_statfs2_bsize=no
13436 cat > conftest.$ac_ext <<EOF
13437 #line 13438 "configure"
13438 #include "confdefs.h"
13440 #ifdef HAVE_SYS_PARAM_H
13441 #include <sys/param.h>
13443 #ifdef HAVE_SYS_MOUNT_H
13444 #include <sys/mount.h>
13446 #ifdef HAVE_SYS_VFS_H
13447 #include <sys/vfs.h>
13453 exit (statfs (".", &fsd));
13456 if { (eval echo configure:13457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13458 fu_cv_sys_stat_statfs2_bsize=yes
13460 echo "configure: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13463 fu_cv_sys_stat_statfs2_bsize=no
13470 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13471 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13473 cat >> confdefs.h <<\EOF
13474 #define STAT_STATFS2_BSIZE 1
13480 if test $space = no; then
13482 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13483 echo "configure:13484: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13484 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
13487 if test "$cross_compiling" = yes; then
13488 fu_cv_sys_stat_statfs4=no
13490 cat > conftest.$ac_ext <<EOF
13491 #line 13492 "configure"
13492 #include "confdefs.h"
13493 #include <sys/types.h>
13494 #include <sys/statfs.h>
13498 exit (statfs (".", &fsd, sizeof fsd, 0));
13501 if { (eval echo configure:13502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13503 fu_cv_sys_stat_statfs4=yes
13505 echo "configure: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13508 fu_cv_sys_stat_statfs4=no
13515 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13516 if test $fu_cv_sys_stat_statfs4 = yes; then
13518 cat >> confdefs.h <<\EOF
13519 #define STAT_STATFS4 1
13525 if test $space = no; then
13526 # 4.4BSD and NetBSD
13527 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13528 echo "configure:13529: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13529 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13530 echo $ac_n "(cached) $ac_c" 1>&6
13532 if test "$cross_compiling" = yes; then
13533 fu_cv_sys_stat_statfs2_fsize=no
13535 cat > conftest.$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13538 #include <sys/types.h>
13539 #ifdef HAVE_SYS_PARAM_H
13540 #include <sys/param.h>
13542 #ifdef HAVE_SYS_MOUNT_H
13543 #include <sys/mount.h>
13549 exit (statfs (".", &fsd));
13552 if { (eval echo configure:13553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13554 fu_cv_sys_stat_statfs2_fsize=yes
13556 echo "configure: failed program was:" >&5
13557 cat conftest.$ac_ext >&5
13559 fu_cv_sys_stat_statfs2_fsize=no
13566 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13567 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13569 cat >> confdefs.h <<\EOF
13570 #define STAT_STATFS2_FSIZE 1
13576 if test $space = no; then
13578 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13579 echo "configure:13580: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13580 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13581 echo $ac_n "(cached) $ac_c" 1>&6
13583 if test "$cross_compiling" = yes; then
13584 fu_cv_sys_stat_fs_data=no
13586 cat > conftest.$ac_ext <<EOF
13587 #line 13588 "configure"
13588 #include "confdefs.h"
13589 #include <sys/types.h>
13590 #ifdef HAVE_SYS_PARAM_H
13591 #include <sys/param.h>
13593 #ifdef HAVE_SYS_MOUNT_H
13594 #include <sys/mount.h>
13596 #ifdef HAVE_SYS_FS_TYPES_H
13597 #include <sys/fs_types.h>
13601 struct fs_data fsd;
13602 /* Ultrix's statfs returns 1 for success,
13603 0 for not mounted, -1 for failure. */
13604 exit (statfs (".", &fsd) != 1);
13607 if { (eval echo configure:13608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13609 fu_cv_sys_stat_fs_data=yes
13611 echo "configure: failed program was:" >&5
13612 cat conftest.$ac_ext >&5
13614 fu_cv_sys_stat_fs_data=no
13621 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13622 if test $fu_cv_sys_stat_fs_data = yes; then
13624 cat >> confdefs.h <<\EOF
13625 #define STAT_STATFS2_FS_DATA 1
13632 # As a gating factor for large file support, in order to
13633 # use <4GB files we must have the following minimal support
13635 # long long, and a 64 bit off_t or off64_t.
13636 # If we don't have all of these then disable large
13639 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13640 echo "configure:13641: checking if large file support can be enabled" >&5
13641 cat > conftest.$ac_ext <<EOF
13642 #line 13643 "configure"
13643 #include "confdefs.h"
13645 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13646 #include <sys/types.h>
13655 if { (eval echo configure:13656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13657 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13662 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13665 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13666 cat >> confdefs.h <<\EOF
13667 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13671 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13673 # Check whether --with-spinlocks or --without-spinlocks was given.
13674 if test "${with_spinlocks+set}" = set; then
13675 withval="$with_spinlocks"
13679 if test "x$with_spinlocks" = "xyes"; then
13680 cat >> confdefs.h <<\EOF
13681 #define USE_SPINLOCKS 1
13685 case "$host_cpu" in
13687 cat >> confdefs.h <<\EOF
13688 #define SPARC_SPINLOCKS 1
13693 i386|i486|i586|i686)
13694 cat >> confdefs.h <<\EOF
13695 #define INTEL_SPINLOCKS 1
13701 cat >> confdefs.h <<\EOF
13702 #define MIPS_SPINLOCKS 1
13708 cat >> confdefs.h <<\EOF
13709 #define POWERPC_SPINLOCKS 1
13716 #################################################
13717 # check for ACL support
13719 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13720 echo "configure:13721: checking whether to support ACLs" >&5
13721 # Check whether --with-acl-support or --without-acl-support was given.
13722 if test "${with_acl_support+set}" = set; then
13723 withval="$with_acl_support"
13729 echo "$ac_t""Using UnixWare ACLs" 1>&6
13730 cat >> confdefs.h <<\EOF
13731 #define HAVE_UNIXWARE_ACLS 1
13736 echo "$ac_t""Using solaris ACLs" 1>&6
13737 cat >> confdefs.h <<\EOF
13738 #define HAVE_SOLARIS_ACLS 1
13743 echo "$ac_t""Using HPUX ACLs" 1>&6
13744 cat >> confdefs.h <<\EOF
13745 #define HAVE_HPUX_ACLS 1
13750 echo "$ac_t""Using IRIX ACLs" 1>&6
13751 cat >> confdefs.h <<\EOF
13752 #define HAVE_IRIX_ACLS 1
13757 echo "$ac_t""Using AIX ACLs" 1>&6
13758 cat >> confdefs.h <<\EOF
13759 #define HAVE_AIX_ACLS 1
13764 echo "$ac_t""Using Tru64 ACLs" 1>&6
13765 cat >> confdefs.h <<\EOF
13766 #define HAVE_TRU64_ACLS 1
13769 LIBS="$LIBS -lpacl"
13772 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13773 echo "configure:13774: checking for acl_get_file in -lacl" >&5
13774 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13776 echo $ac_n "(cached) $ac_c" 1>&6
13778 ac_save_LIBS="$LIBS"
13780 cat > conftest.$ac_ext <<EOF
13781 #line 13782 "configure"
13782 #include "confdefs.h"
13783 /* Override any gcc2 internal prototype to avoid an error. */
13784 /* We use char because int might match the return type of a gcc2
13785 builtin and then its argument prototype would still apply. */
13786 char acl_get_file();
13792 if { (eval echo configure:13793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13794 eval "ac_cv_lib_$ac_lib_var=yes"
13796 echo "configure: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13799 eval "ac_cv_lib_$ac_lib_var=no"
13802 LIBS="$ac_save_LIBS"
13805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13806 echo "$ac_t""yes" 1>&6
13807 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13809 cat >> confdefs.h <<EOF
13810 #define $ac_tr_lib 1
13816 echo "$ac_t""no" 1>&6
13819 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13820 echo "configure:13821: checking for ACL support" >&5
13821 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13822 echo $ac_n "(cached) $ac_c" 1>&6
13825 cat > conftest.$ac_ext <<EOF
13826 #line 13827 "configure"
13827 #include "confdefs.h"
13828 #include <sys/types.h>
13829 #include <sys/acl.h>
13831 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13834 if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13836 samba_cv_HAVE_POSIX_ACLS=yes
13838 echo "configure: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13841 samba_cv_HAVE_POSIX_ACLS=no
13846 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13847 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13848 echo "$ac_t""Using posix ACLs" 1>&6
13849 cat >> confdefs.h <<\EOF
13850 #define HAVE_POSIX_ACLS 1
13853 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13854 echo "configure:13855: checking for acl_get_perm_np" >&5
13855 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13856 echo $ac_n "(cached) $ac_c" 1>&6
13859 cat > conftest.$ac_ext <<EOF
13860 #line 13861 "configure"
13861 #include "confdefs.h"
13862 #include <sys/types.h>
13863 #include <sys/acl.h>
13865 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13868 if { (eval echo configure:13869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13870 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13875 samba_cv_HAVE_ACL_GET_PERM_NP=no
13880 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13881 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13882 cat >> confdefs.h <<\EOF
13883 #define HAVE_ACL_GET_PERM_NP 1
13892 echo "$ac_t""no" 1>&6
13893 cat >> confdefs.h <<\EOF
13894 #define HAVE_NO_ACLS 1
13900 cat >> confdefs.h <<\EOF
13901 #define HAVE_NO_ACLS 1
13904 echo "$ac_t""no" 1>&6
13909 #################################################
13910 # check for sendfile support
13912 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13913 echo "configure:13914: checking whether to check for support sendfile" >&5
13914 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13915 if test "${with_sendfile_support+set}" = set; then
13916 withval="$with_sendfile_support"
13920 echo "$ac_t""yes" 1>&6;
13924 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13925 echo "configure:13926: checking for linux sendfile64 support" >&5
13926 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13927 echo $ac_n "(cached) $ac_c" 1>&6
13930 cat > conftest.$ac_ext <<EOF
13931 #line 13932 "configure"
13932 #include "confdefs.h"
13933 #include <sys/sendfile.h>
13939 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13943 if { (eval echo configure:13944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13945 samba_cv_HAVE_SENDFILE64=yes
13947 echo "configure: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13950 samba_cv_HAVE_SENDFILE64=no
13955 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13957 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13958 echo "configure:13959: checking for linux sendfile support" >&5
13959 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13960 echo $ac_n "(cached) $ac_c" 1>&6
13963 cat > conftest.$ac_ext <<EOF
13964 #line 13965 "configure"
13965 #include "confdefs.h"
13966 #include <sys/sendfile.h>
13972 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13976 if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13978 samba_cv_HAVE_SENDFILE=yes
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13983 samba_cv_HAVE_SENDFILE=no
13988 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13990 # Try and cope with broken Linux sendfile....
13991 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13992 echo "configure:13993: checking for broken linux sendfile support" >&5
13993 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13994 echo $ac_n "(cached) $ac_c" 1>&6
13997 cat > conftest.$ac_ext <<EOF
13998 #line 13999 "configure"
13999 #include "confdefs.h"
14001 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
14002 #undef _FILE_OFFSET_BITS
14004 #include <sys/sendfile.h>
14010 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14014 if { (eval echo configure:14015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14016 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
14018 echo "configure: failed program was:" >&5
14019 cat conftest.$ac_ext >&5
14021 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
14026 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
14028 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14029 cat >> confdefs.h <<\EOF
14030 #define HAVE_SENDFILE64 1
14033 cat >> confdefs.h <<\EOF
14034 #define LINUX_SENDFILE_API 1
14037 cat >> confdefs.h <<\EOF
14038 #define WITH_SENDFILE 1
14041 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14042 cat >> confdefs.h <<\EOF
14043 #define HAVE_SENDFILE 1
14046 cat >> confdefs.h <<\EOF
14047 #define LINUX_SENDFILE_API 1
14050 cat >> confdefs.h <<\EOF
14051 #define WITH_SENDFILE 1
14054 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
14055 cat >> confdefs.h <<\EOF
14056 #define LINUX_BROKEN_SENDFILE_API 1
14059 cat >> confdefs.h <<\EOF
14060 #define WITH_SENDFILE 1
14064 echo "$ac_t""no" 1>&6;
14069 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
14070 echo "configure:14071: checking for freebsd sendfile support" >&5
14071 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14072 echo $ac_n "(cached) $ac_c" 1>&6
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14079 #include <sys/types.h>
14080 #include <sys/socket.h>
14081 #include <sys/uio.h>
14085 off_t offset, nwritten;
14086 struct sf_hdtr hdr;
14087 struct iovec hdtrl;
14088 hdr->headers = &hdtrl;
14090 hdr->trailers = NULL;
14092 hdtrl.iov_base = NULL;
14094 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
14098 if { (eval echo configure:14099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14100 samba_cv_HAVE_SENDFILE=yes
14102 echo "configure: failed program was:" >&5
14103 cat conftest.$ac_ext >&5
14105 samba_cv_HAVE_SENDFILE=no
14110 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14112 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14113 cat >> confdefs.h <<\EOF
14114 #define HAVE_SENDFILE 1
14117 cat >> confdefs.h <<\EOF
14118 #define FREEBSD_SENDFILE_API 1
14121 cat >> confdefs.h <<\EOF
14122 #define WITH_SENDFILE 1
14126 echo "$ac_t""no" 1>&6;
14131 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
14132 echo "configure:14133: checking for hpux sendfile64 support" >&5
14133 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14134 echo $ac_n "(cached) $ac_c" 1>&6
14137 cat > conftest.$ac_ext <<EOF
14138 #line 14139 "configure"
14139 #include "confdefs.h"
14141 #include <sys/socket.h>
14142 #include <sys/uio.h>
14147 struct iovec hdtrl[2];
14151 hdtrl[0].iov_base = 0;
14152 hdtrl[0].iov_len = 0;
14154 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
14158 if { (eval echo configure:14159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14160 samba_cv_HAVE_SENDFILE64=yes
14162 echo "configure: failed program was:" >&5
14163 cat conftest.$ac_ext >&5
14165 samba_cv_HAVE_SENDFILE64=no
14170 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14171 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14172 cat >> confdefs.h <<\EOF
14173 #define HAVE_SENDFILE64 1
14176 cat >> confdefs.h <<\EOF
14177 #define HPUX_SENDFILE_API 1
14180 cat >> confdefs.h <<\EOF
14181 #define WITH_SENDFILE 1
14185 echo "$ac_t""no" 1>&6;
14188 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
14189 echo "configure:14190: checking for hpux sendfile support" >&5
14190 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14191 echo $ac_n "(cached) $ac_c" 1>&6
14194 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure"
14196 #include "confdefs.h"
14198 #include <sys/socket.h>
14199 #include <sys/uio.h>
14204 struct iovec hdtrl[2];
14208 hdtrl[0].iov_base = 0;
14209 hdtrl[0].iov_len = 0;
14211 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
14215 if { (eval echo configure:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14217 samba_cv_HAVE_SENDFILE=yes
14219 echo "configure: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14222 samba_cv_HAVE_SENDFILE=no
14227 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14228 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14229 cat >> confdefs.h <<\EOF
14230 #define HAVE_SENDFILE 1
14233 cat >> confdefs.h <<\EOF
14234 #define HPUX_SENDFILE_API 1
14237 cat >> confdefs.h <<\EOF
14238 #define WITH_SENDFILE 1
14242 echo "$ac_t""no" 1>&6;
14247 LIBS="$LIBS -lsendfile"
14248 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
14249 echo "configure:14250: checking for solaris sendfilev64 support" >&5
14250 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
14251 echo $ac_n "(cached) $ac_c" 1>&6
14254 cat > conftest.$ac_ext <<EOF
14255 #line 14256 "configure"
14256 #include "confdefs.h"
14258 #include <sys/sendfile.h>
14263 struct sendfilevec vec[2];
14269 vec[0].sfv_fd = SFV_FD_SELF;
14270 vec[0].sfv_flag = 0;
14271 vec[0].sfv_off = 0;
14272 vec[0].sfv_len = 0;
14275 vec[1].sfv_flag = 0;
14276 vec[1].sfv_off = 0;
14277 vec[1].sfv_len = 0;
14278 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
14282 if { (eval echo configure:14283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14284 samba_cv_HAVE_SENDFILEV64=yes
14286 echo "configure: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14289 samba_cv_HAVE_SENDFILEV64=no
14294 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
14296 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
14297 cat >> confdefs.h <<\EOF
14298 #define HAVE_SENDFILEV64 1
14301 cat >> confdefs.h <<\EOF
14302 #define SOLARIS_SENDFILE_API 1
14305 cat >> confdefs.h <<\EOF
14306 #define WITH_SENDFILE 1
14310 echo "$ac_t""no" 1>&6;
14313 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
14314 echo "configure:14315: checking for solaris sendfilev support" >&5
14315 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
14316 echo $ac_n "(cached) $ac_c" 1>&6
14319 cat > conftest.$ac_ext <<EOF
14320 #line 14321 "configure"
14321 #include "confdefs.h"
14323 #include <sys/sendfile.h>
14328 struct sendfilevec vec[2];
14334 vec[0].sfv_fd = SFV_FD_SELF;
14335 vec[0].sfv_flag = 0;
14336 vec[0].sfv_off = 0;
14337 vec[0].sfv_len = 0;
14340 vec[1].sfv_flag = 0;
14341 vec[1].sfv_off = 0;
14342 vec[1].sfv_len = 0;
14343 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
14347 if { (eval echo configure:14348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14349 samba_cv_HAVE_SENDFILEV=yes
14351 echo "configure: failed program was:" >&5
14352 cat conftest.$ac_ext >&5
14354 samba_cv_HAVE_SENDFILEV=no
14359 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
14361 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
14362 cat >> confdefs.h <<\EOF
14363 #define HAVE_SENDFILEV 1
14366 cat >> confdefs.h <<\EOF
14367 #define SOLARIS_SENDFILE_API 1
14370 cat >> confdefs.h <<\EOF
14371 #define WITH_SENDFILE 1
14375 echo "$ac_t""no" 1>&6;
14384 echo "$ac_t""no" 1>&6
14388 echo "$ac_t""no" 1>&6
14394 #################################################
14395 # Check whether winbind is supported on this platform. If so we need to
14396 # build and install client programs (WINBIND_TARGETS), sbin programs
14397 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
14399 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
14400 echo "configure:14401: checking whether to build winbind" >&5
14402 # Initially, the value of $host_os decides whether winbind is supported
14410 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
14411 WINBIND_NSS_EXTRA_LIBS="-lsocket"
14415 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
14419 winbind_no_reason=", unsupported on $host_os"
14423 # Check the setting of --with-winbindd
14425 # Check whether --with-winbind or --without-winbind was given.
14426 if test "${with_winbind+set}" = set; then
14427 withval="$with_winbind"
14441 # We need unix domain sockets for winbind
14443 if test x"$HAVE_WINBIND" = x"yes"; then
14444 if test x"$samba_cv_unixsocket" = x"no"; then
14445 winbind_no_reason=", no unix domain socket support on $host_os"
14450 # Display test results
14453 WINBIND_STARGETS=""
14454 WINBIND_LTARGETS=""
14455 WINBIND_PAM_PROGS=""
14457 if test x"$HAVE_WINBIND" = x"yes"; then
14458 echo "$ac_t""yes" 1>&6
14459 cat >> confdefs.h <<\EOF
14460 #define WITH_WINBIND 1
14464 WINBIND_TARGETS="bin/wbinfo"
14465 WINBIND_STARGETS="bin/winbindd"
14466 if test x"$BLDSHARED" = x"true"; then
14467 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
14468 if test x"$with_pam" = x"yes"; then
14469 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
14473 echo "$ac_t""no$winbind_no_reason" 1>&6
14477 # Substitution time!
14486 # Solaris has some extra fields in struct passwd that need to be
14487 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14488 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14491 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14492 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14493 # [#include <pwd.h>])
14495 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14496 echo "configure:14497: checking whether struct passwd has pw_comment" >&5
14497 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14498 echo $ac_n "(cached) $ac_c" 1>&6
14501 cat > conftest.$ac_ext <<EOF
14502 #line 14503 "configure"
14503 #include "confdefs.h"
14506 struct passwd p; p.pw_comment;
14509 if { (eval echo configure:14510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14511 samba_cv_passwd_pw_comment=yes
14513 echo "configure: failed program was:" >&5
14514 cat conftest.$ac_ext >&5
14516 samba_cv_passwd_pw_comment=no
14521 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14522 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
14523 cat >> confdefs.h <<\EOF
14524 #define HAVE_PASSWD_PW_COMMENT 1
14529 #AC_CHECK_MEMBER(struct passwd.pw_age,
14530 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14531 # [#include <pwd.h>])
14533 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14534 echo "configure:14535: checking whether struct passwd has pw_age" >&5
14535 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14536 echo $ac_n "(cached) $ac_c" 1>&6
14539 cat > conftest.$ac_ext <<EOF
14540 #line 14541 "configure"
14541 #include "confdefs.h"
14544 struct passwd p; p.pw_age;
14547 if { (eval echo configure:14548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14549 samba_cv_passwd_pw_age=yes
14551 echo "configure: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14554 samba_cv_passwd_pw_age=no
14559 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14560 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
14561 cat >> confdefs.h <<\EOF
14562 #define HAVE_PASSWD_PW_AGE 1
14567 #################################################
14568 # Check to see if we should use the included popt
14570 # Check whether --with-included-popt or --without-included-popt was given.
14571 if test "${with_included_popt+set}" = set; then
14572 withval="$with_included_popt"
14584 if test x"$INCLUDED_POPT" != x"yes"; then
14585 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14586 echo "configure:14587: checking for poptGetContext in -lpopt" >&5
14587 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14589 echo $ac_n "(cached) $ac_c" 1>&6
14591 ac_save_LIBS="$LIBS"
14592 LIBS="-lpopt $LIBS"
14593 cat > conftest.$ac_ext <<EOF
14594 #line 14595 "configure"
14595 #include "confdefs.h"
14596 /* Override any gcc2 internal prototype to avoid an error. */
14597 /* We use char because int might match the return type of a gcc2
14598 builtin and then its argument prototype would still apply. */
14599 char poptGetContext();
14605 if { (eval echo configure:14606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14607 eval "ac_cv_lib_$ac_lib_var=yes"
14609 echo "configure: failed program was:" >&5
14610 cat conftest.$ac_ext >&5
14612 eval "ac_cv_lib_$ac_lib_var=no"
14615 LIBS="$ac_save_LIBS"
14618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14619 echo "$ac_t""yes" 1>&6
14622 echo "$ac_t""no" 1>&6
14628 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14629 echo "configure:14630: checking whether to use included popt" >&5
14630 if test x"$INCLUDED_POPT" = x"yes"; then
14631 echo "$ac_t""yes" 1>&6
14632 BUILD_POPT='$(POPT_OBJS)'
14633 FLAGS1="-I$srcdir/popt"
14635 echo "$ac_t""no" 1>&6
14636 LIBS="$LIBS -lpopt"
14641 #################################################
14642 # Check if the user wants Python
14644 # At the moment, you can use this to set which Python binary to link
14645 # against. (Libraries built for Python2.2 can't be used by 2.1,
14646 # though they can coexist in different directories.) In the future
14647 # this might make the Python stuff be built by default.
14649 # Check whether --with-python or --without-python was given.
14650 if test "${with_python+set}" = set; then
14651 withval="$with_python"
14652 case "${withval-python}" in
14657 PYTHON=${withval-python}
14664 #################################################
14665 # do extra things if we are running insure
14667 if test "${ac_cv_prog_CC}" = "insure"; then
14668 CPPFLAGS="$CPPFLAGS -D__INSURE__"
14671 #################################################
14672 # final configure stuff
14674 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14675 echo "configure:14676: checking configure summary" >&5
14676 if test "$cross_compiling" = yes; then
14677 echo "configure: warning: cannot run when cross-compiling" 1>&2
14679 cat > conftest.$ac_ext <<EOF
14680 #line 14681 "configure"
14681 #include "confdefs.h"
14682 #include "${srcdir-.}/tests/summary.c"
14684 if { (eval echo configure:14685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14686 echo "$ac_t""yes" 1>&6
14688 echo "configure: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14691 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14700 # I added make files that are outside /source directory.
14701 # I know this is not a good solution, will work out a better
14702 # solution soon. --simo
14704 cat > confcache <<\EOF
14705 # This file is a shell script that caches the results of configure
14706 # tests run on this system so they can be shared between configure
14707 # scripts and configure runs. It is not useful on other systems.
14708 # If it contains results you don't want to keep, you may remove or edit it.
14710 # By default, configure uses ./config.cache as the cache file,
14711 # creating it if it does not exist already. You can give configure
14712 # the --cache-file=FILE option to use a different cache file; that is
14713 # what configure does when it calls configure scripts in
14714 # subdirectories, so they share the cache.
14715 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14716 # config.status only pays attention to the cache file if you give it the
14717 # --recheck option to rerun configure.
14720 # The following way of writing the cache mishandles newlines in values,
14721 # but we know of no workaround that is simple, portable, and efficient.
14722 # So, don't put newlines in cache variables' values.
14723 # Ultrix sh set writes to stderr and can't be redirected directly,
14724 # and sets the high bit in the cache file unless we assign to the vars.
14726 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14728 # `set' does not quote correctly, so add quotes (double-quote substitution
14729 # turns \\\\ into \\, and sed turns \\ into \).
14731 -e "s/'/'\\\\''/g" \
14732 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14735 # `set' quotes correctly as required by POSIX, so do not add quotes.
14736 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14739 if cmp -s $cache_file confcache; then
14742 if test -w $cache_file; then
14743 echo "updating cache $cache_file"
14744 cat confcache > $cache_file
14746 echo "not updating unwritable cache $cache_file"
14751 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14754 # Let make expand exec_prefix.
14755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14757 # Any assignment to VPATH causes Sun make to only execute
14758 # the first set of double-colon rules, so remove it if not needed.
14759 # If there is a colon in the path, we need to keep it.
14760 if test "x$srcdir" = x.; then
14761 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14764 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14766 DEFS=-DHAVE_CONFIG_H
14768 # Without the "./", some shells look in PATH for config.status.
14769 : ${CONFIG_STATUS=./config.status}
14771 echo creating $CONFIG_STATUS
14772 rm -f $CONFIG_STATUS
14773 cat > $CONFIG_STATUS <<EOF
14775 # Generated automatically by configure.
14776 # Run this file to recreate the current configuration.
14777 # This directory was configured as follows,
14778 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14780 # $0 $ac_configure_args
14782 # Compiler output produced by configure, useful for debugging
14783 # configure, is in ./config.log if it exists.
14785 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14788 case "\$ac_option" in
14789 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14790 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14791 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14792 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14793 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14795 -help | --help | --hel | --he | --h)
14796 echo "\$ac_cs_usage"; exit 0 ;;
14797 *) echo "\$ac_cs_usage"; exit 1 ;;
14801 ac_given_srcdir=$srcdir
14802 ac_given_INSTALL="$INSTALL"
14804 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/pdb/mysql/Makefile ../examples/pdb/xml/Makefile ../examples/sam/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14806 cat >> $CONFIG_STATUS <<EOF
14808 # Protect against being on the right side of a sed subst in config.status.
14809 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14810 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14814 s%@CFLAGS@%$CFLAGS%g
14815 s%@CPPFLAGS@%$CPPFLAGS%g
14816 s%@CXXFLAGS@%$CXXFLAGS%g
14817 s%@FFLAGS@%$FFLAGS%g
14819 s%@LDFLAGS@%$LDFLAGS%g
14821 s%@exec_prefix@%$exec_prefix%g
14822 s%@prefix@%$prefix%g
14823 s%@program_transform_name@%$program_transform_name%g
14824 s%@bindir@%$bindir%g
14825 s%@sbindir@%$sbindir%g
14826 s%@libexecdir@%$libexecdir%g
14827 s%@datadir@%$datadir%g
14828 s%@sysconfdir@%$sysconfdir%g
14829 s%@sharedstatedir@%$sharedstatedir%g
14830 s%@localstatedir@%$localstatedir%g
14831 s%@libdir@%$libdir%g
14832 s%@includedir@%$includedir%g
14833 s%@oldincludedir@%$oldincludedir%g
14834 s%@infodir@%$infodir%g
14835 s%@mandir@%$mandir%g
14836 s%@configdir@%$configdir%g
14837 s%@lockdir@%$lockdir%g
14838 s%@piddir@%$piddir%g
14839 s%@logfilebase@%$logfilebase%g
14840 s%@privatedir@%$privatedir%g
14841 s%@swatdir@%$swatdir%g
14842 s%@RUNPROG@%$RUNPROG%g
14843 s%@MPROGS@%$MPROGS%g
14844 s%@LDSHFLAGS@%$LDSHFLAGS%g
14845 s%@SONAMEFLAG@%$SONAMEFLAG%g
14847 s%@HOST_OS@%$HOST_OS%g
14848 s%@PAM_MOD@%$PAM_MOD%g
14850 s%@WRAP32@%$WRAP32%g
14851 s%@WRAPPROG@%$WRAPPROG%g
14852 s%@PICFLAG@%$PICFLAG%g
14853 s%@PICSUFFIX@%$PICSUFFIX%g
14854 s%@POBAD_CC@%$POBAD_CC%g
14855 s%@SHLIBEXT@%$SHLIBEXT%g
14856 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14857 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14858 s%@PRINTLIBS@%$PRINTLIBS%g
14859 s%@AUTHLIBS@%$AUTHLIBS%g
14861 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14862 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14863 s%@INSTALL_DATA@%$INSTALL_DATA%g
14865 s%@BROKEN_CC@%$BROKEN_CC%g
14867 s%@host_alias@%$host_alias%g
14868 s%@host_cpu@%$host_cpu%g
14869 s%@host_vendor@%$host_vendor%g
14870 s%@host_os@%$host_os%g
14871 s%@target@%$target%g
14872 s%@target_alias@%$target_alias%g
14873 s%@target_cpu@%$target_cpu%g
14874 s%@target_vendor@%$target_vendor%g
14875 s%@target_os@%$target_os%g
14877 s%@build_alias@%$build_alias%g
14878 s%@build_cpu@%$build_cpu%g
14879 s%@build_vendor@%$build_vendor%g
14880 s%@build_os@%$build_os%g
14882 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14883 s%@LIBOBJS@%$LIBOBJS%g
14884 s%@TERMLIBS@%$TERMLIBS%g
14885 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14887 s%@DYNEXP@%$DYNEXP%g
14888 s%@QUOTAOBJS@%$QUOTAOBJS%g
14889 s%@manlangs@%$manlangs%g
14890 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14891 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14892 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14893 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14894 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14895 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14896 s%@BUILD_POPT@%$BUILD_POPT%g
14897 s%@FLAGS1@%$FLAGS1%g
14898 s%@PYTHON@%$PYTHON%g
14899 s%@builddir@%$builddir%g
14904 cat >> $CONFIG_STATUS <<\EOF
14906 # Split the substitutions into bite-sized pieces for seds with
14907 # small command number limits, like on Digital OSF/1 and HP-UX.
14908 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14909 ac_file=1 # Number of current file.
14910 ac_beg=1 # First line for current file.
14911 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14914 while $ac_more_lines; do
14915 if test $ac_beg -gt 1; then
14916 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14918 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14920 if test ! -s conftest.s$ac_file; then
14921 ac_more_lines=false
14922 rm -f conftest.s$ac_file
14924 if test -z "$ac_sed_cmds"; then
14925 ac_sed_cmds="sed -f conftest.s$ac_file"
14927 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14929 ac_file=`expr $ac_file + 1`
14931 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14934 if test -z "$ac_sed_cmds"; then
14939 cat >> $CONFIG_STATUS <<EOF
14941 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/pdb/mysql/Makefile ../examples/pdb/xml/Makefile ../examples/sam/Makefile"}
14943 cat >> $CONFIG_STATUS <<\EOF
14944 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14945 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14947 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14948 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14949 *) ac_file_in="${ac_file}.in" ;;
14952 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14954 # Remove last slash and all that follows it. Not all systems have dirname.
14955 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14956 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14957 # The file is in a subdirectory.
14958 test ! -d "$ac_dir" && mkdir "$ac_dir"
14959 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14960 # A "../" for each directory in $ac_dir_suffix.
14961 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14963 ac_dir_suffix= ac_dots=
14966 case "$ac_given_srcdir" in
14968 if test -z "$ac_dots"; then top_srcdir=.
14969 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14970 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14971 *) # Relative path.
14972 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14973 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14976 case "$ac_given_INSTALL" in
14977 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14978 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14981 echo creating "$ac_file"
14983 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14985 *Makefile*) ac_comsub="1i\\
14986 # $configure_input" ;;
14990 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14992 s%@configure_input@%$configure_input%g
14993 s%@srcdir@%$srcdir%g
14994 s%@top_srcdir@%$top_srcdir%g
14995 s%@INSTALL@%$INSTALL%g
14996 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15000 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15001 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15003 # ac_d sets the value in "#define NAME VALUE" lines.
15004 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15005 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15008 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15009 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15010 ac_uB='\([ ]\)%\1#\2define\3'
15013 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15014 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15015 ac_eB='$%\1#\2define\3'
15019 if test "${CONFIG_HEADERS+set}" != set; then
15021 cat >> $CONFIG_STATUS <<EOF
15022 CONFIG_HEADERS="include/config.h"
15024 cat >> $CONFIG_STATUS <<\EOF
15026 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15029 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15030 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15031 *) ac_file_in="${ac_file}.in" ;;
15034 echo creating $ac_file
15036 rm -f conftest.frag conftest.in conftest.out
15037 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15038 cat $ac_file_inputs > conftest.in
15042 # Transform confdefs.h into a sed script conftest.vals that substitutes
15043 # the proper values into config.h.in to produce config.h. And first:
15044 # Protect against being on the right side of a sed subst in config.status.
15045 # Protect against being in an unquoted here document in config.status.
15046 rm -f conftest.vals
15047 cat > conftest.hdr <<\EOF
15050 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15054 sed -n -f conftest.hdr confdefs.h > conftest.vals
15057 # This sed command replaces #undef with comments. This is necessary, for
15058 # example, in the case of _POSIX_SOURCE, which is predefined and required
15059 # on some systems where configure will not decide to define it.
15060 cat >> conftest.vals <<\EOF
15061 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15064 # Break up conftest.vals because some shells have a limit on
15065 # the size of here documents, and old seds have small limits too.
15067 rm -f conftest.tail
15070 ac_lines=`grep -c . conftest.vals`
15071 # grep -c gives empty output for an empty file on some AIX systems.
15072 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15073 # Write a limited-size here document to conftest.frag.
15074 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15075 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15077 sed -f conftest.frag conftest.in > conftest.out
15079 mv conftest.out conftest.in
15080 ' >> $CONFIG_STATUS
15081 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15082 rm -f conftest.vals
15083 mv conftest.tail conftest.vals
15085 rm -f conftest.vals
15087 cat >> $CONFIG_STATUS <<\EOF
15088 rm -f conftest.frag conftest.h
15089 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15090 cat conftest.in >> conftest.h
15092 if cmp -s $ac_file conftest.h 2>/dev/null; then
15093 echo "$ac_file is unchanged"
15096 # Remove last slash and all that follows it. Not all systems have dirname.
15097 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15098 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15099 # The file is in a subdirectory.
15100 test ! -d "$ac_dir" && mkdir "$ac_dir"
15103 mv conftest.h $ac_file
15108 cat >> $CONFIG_STATUS <<EOF
15111 cat >> $CONFIG_STATUS <<\EOF
15115 chmod +x $CONFIG_STATUS
15116 rm -fr confdefs* $ac_clean_files
15117 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15120 #################################################
15121 # Print very concise instructions on building/use
15122 if test "x$enable_dmalloc" = xyes
15124 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
15125 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6