3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-cups Turn on CUPS support (default=auto)"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
52 --with-automount Include AUTOMOUNT support (default=no)"
54 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
56 --with-pam Include PAM support (default=no)"
58 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
60 --with-sam Build new (experimental) SAM database (default=no)"
62 --with-tdbsam Include experimental TDB SAM support (default=no)"
64 --with-nisplussam Include NISPLUS SAM support (default=no)"
66 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
78 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
82 --with-acl-support Include ACL support (default=no)"
84 --with-sendfile-support Include sendfile support (default=no)"
86 --with-winbind Build winbind (default, if supported by OS)"
88 --with-included-popt use bundled popt library, not from system"
90 --with-python=PYTHONNAME build Python libraries"
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
96 cache_file=./config.cache
105 program_transform_name=s,x,x,
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
126 # Initialize some other variables.
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
145 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
149 # Accept the important Cygnus configure options, so we can diagnose typos.
153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156 bindir="$ac_optarg" ;;
158 -build | --build | --buil | --bui | --bu)
160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161 build="$ac_optarg" ;;
163 -cache-file | --cache-file | --cache-fil | --cache-fi \
164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165 ac_prev=cache_file ;;
166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168 cache_file="$ac_optarg" ;;
170 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
172 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
174 datadir="$ac_optarg" ;;
176 -disable-* | --disable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* | --enable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200 | --exec | --exe | --ex)
201 ac_prev=exec_prefix ;;
202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204 | --exec=* | --exe=* | --ex=*)
205 exec_prefix="$ac_optarg" ;;
207 -gas | --gas | --ga | --g)
208 # Obsolete; use --with-gas.
211 -help | --help | --hel | --he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
266 -host | --host | --hos | --ho)
268 -host=* | --host=* | --hos=* | --ho=*)
271 -includedir | --includedir | --includedi | --included | --include \
272 | --includ | --inclu | --incl | --inc)
273 ac_prev=includedir ;;
274 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275 | --includ=* | --inclu=* | --incl=* | --inc=*)
276 includedir="$ac_optarg" ;;
278 -infodir | --infodir | --infodi | --infod | --info | --inf)
280 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281 infodir="$ac_optarg" ;;
283 -libdir | --libdir | --libdi | --libd)
285 -libdir=* | --libdir=* | --libdi=* | --libd=*)
286 libdir="$ac_optarg" ;;
288 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289 | --libexe | --libex | --libe)
290 ac_prev=libexecdir ;;
291 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292 | --libexe=* | --libex=* | --libe=*)
293 libexecdir="$ac_optarg" ;;
295 -localstatedir | --localstatedir | --localstatedi | --localstated \
296 | --localstate | --localstat | --localsta | --localst \
297 | --locals | --local | --loca | --loc | --lo)
298 ac_prev=localstatedir ;;
299 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302 localstatedir="$ac_optarg" ;;
304 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
306 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307 mandir="$ac_optarg" ;;
310 # Obsolete; use --without-fp.
313 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
321 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323 | --oldin | --oldi | --old | --ol | --o)
324 ac_prev=oldincludedir ;;
325 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328 oldincludedir="$ac_optarg" ;;
330 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
332 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333 prefix="$ac_optarg" ;;
335 -program-prefix | --program-prefix | --program-prefi | --program-pref \
336 | --program-pre | --program-pr | --program-p)
337 ac_prev=program_prefix ;;
338 -program-prefix=* | --program-prefix=* | --program-prefi=* \
339 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340 program_prefix="$ac_optarg" ;;
342 -program-suffix | --program-suffix | --program-suffi | --program-suff \
343 | --program-suf | --program-su | --program-s)
344 ac_prev=program_suffix ;;
345 -program-suffix=* | --program-suffix=* | --program-suffi=* \
346 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347 program_suffix="$ac_optarg" ;;
349 -program-transform-name | --program-transform-name \
350 | --program-transform-nam | --program-transform-na \
351 | --program-transform-n | --program-transform- \
352 | --program-transform | --program-transfor \
353 | --program-transfo | --program-transf \
354 | --program-trans | --program-tran \
355 | --progr-tra | --program-tr | --program-t)
356 ac_prev=program_transform_name ;;
357 -program-transform-name=* | --program-transform-name=* \
358 | --program-transform-nam=* | --program-transform-na=* \
359 | --program-transform-n=* | --program-transform-=* \
360 | --program-transform=* | --program-transfor=* \
361 | --program-transfo=* | --program-transf=* \
362 | --program-trans=* | --program-tran=* \
363 | --progr-tra=* | --program-tr=* | --program-t=*)
364 program_transform_name="$ac_optarg" ;;
366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367 | -silent | --silent | --silen | --sile | --sil)
370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
374 sbindir="$ac_optarg" ;;
376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378 | --sharedst | --shareds | --shared | --share | --shar \
380 ac_prev=sharedstatedir ;;
381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
385 sharedstatedir="$ac_optarg" ;;
387 -site | --site | --sit)
389 -site=* | --site=* | --sit=*)
392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395 srcdir="$ac_optarg" ;;
397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398 | --syscon | --sysco | --sysc | --sys | --sy)
399 ac_prev=sysconfdir ;;
400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402 sysconfdir="$ac_optarg" ;;
404 -target | --target | --targe | --targ | --tar | --ta | --t)
406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407 target="$ac_optarg" ;;
409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
412 -version | --version | --versio | --versi | --vers)
413 echo "configure generated by autoconf version 2.13"
417 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* | --without-*)
430 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
439 # Obsolete; use --with-x.
442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443 | --x-incl | --x-inc | --x-in | --x-i)
444 ac_prev=x_includes ;;
445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447 x_includes="$ac_optarg" ;;
449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451 ac_prev=x_libraries ;;
452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454 x_libraries="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
504 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505 | --no-cr | --no-c) ;;
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=include/includes.h
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted=yes
536 # Try the directory containing this script, then its parent.
538 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
541 if test ! -r $srcdir/$ac_unique_file; then
545 ac_srcdir_defaulted=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE; then
559 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
561 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
575 echo "creating cache $cache_file"
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
597 ac_n= ac_c='\c' ac_t=
603 #################################################
604 # Directory handling stuff to support both the
605 # legacy SAMBA directories and FHS compliant
609 # Check whether --with-fhs or --without-fhs was given.
610 if test "${with_fhs+set}" = set; then
612 configdir="${sysconfdir}/samba"
613 lockdir="\${VARDIR}/cache/samba"
614 piddir="\$(VARDIR)/run/samba"
615 logfilebase="\${VARDIR}/log/samba"
616 privatedir="\${CONFIGDIR}/private"
617 swatdir="\${DATADIR}/samba/swat"
619 configdir="\$(LIBDIR)"
620 logfilebase="\$(VARDIR)"
621 lockdir="\${VARDIR}/locks"
622 piddir="\$(VARDIR)/locks"
623 privatedir="\${prefix}/private"
624 swatdir="\${prefix}/swat"
628 #################################################
629 # set private directory location
630 # Check whether --with-privatedir or --without-privatedir was given.
631 if test "${with_privatedir+set}" = set; then
632 withval="$with_privatedir"
636 # Just in case anybody calls it without argument
638 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
641 privatedir="$withval"
647 #################################################
648 # set lock directory location
649 # Check whether --with-lockdir or --without-lockdir was given.
650 if test "${with_lockdir+set}" = set; then
651 withval="$with_lockdir"
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
666 #################################################
667 # set pid directory location
668 # Check whether --with-piddir or --without-piddir was given.
669 if test "${with_piddir+set}" = set; then
670 withval="$with_piddir"
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
685 #################################################
686 # set SWAT directory location
687 # Check whether --with-swatdir or --without-swatdir was given.
688 if test "${with_swatdir+set}" = set; then
689 withval="$with_swatdir"
693 # Just in case anybody does it
695 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
704 #################################################
705 # set configuration directory location
706 # Check whether --with-configdir or --without-configdir was given.
707 if test "${with_configdir+set}" = set; then
708 withval="$with_configdir"
712 # Just in case anybody does it
714 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
723 #################################################
724 # set log directory location
725 # Check whether --with-logfilebase or --without-logfilebase was given.
726 if test "${with_logfilebase+set}" = set; then
727 withval="$with_logfilebase"
731 # Just in case anybody does it
733 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
736 logfilebase="$withval"
770 # compile with optimization and without debugging by default
771 CFLAGS="-O ${CFLAGS}"
773 # Check whether --enable-debug or --disable-debug was given.
774 if test "${enable_debug+set}" = set; then
775 enableval="$enable_debug"
776 if eval "test x$enable_debug = xyes"; then
777 CFLAGS="${CFLAGS} -g"
782 # Check whether --enable-developer or --disable-developer was given.
783 if test "${enable_developer+set}" = set; then
784 enableval="$enable_developer"
785 if eval "test x$enable_developer = xyes"; then
786 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
791 # Check whether --enable-krb5developer or --disable-krb5developer was given.
792 if test "${enable_krb5developer+set}" = set; then
793 enableval="$enable_krb5developer"
794 if eval "test x$enable_krb5developer = xyes"; then
795 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
800 # Check whether --enable-dmalloc or --disable-dmalloc was given.
801 if test "${enable_dmalloc+set}" = set; then
802 enableval="$enable_dmalloc"
807 if test "x$enable_dmalloc" = xyes
809 cat >> confdefs.h <<\EOF
810 #define ENABLE_DMALLOC 1
813 cat >> confdefs.h <<\EOF
814 #define DMALLOC_FUNC_CHECK 1
817 LIBS="$LIBS -ldmalloc"
820 # Extract the first word of "gcc", so it can be a program name with args.
821 set dummy gcc; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC="$CC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
843 if test -n "$CC"; then
844 echo "$ac_t""$CC" 1>&6
846 echo "$ac_t""no" 1>&6
849 if test -z "$CC"; then
850 # Extract the first word of "cc", so it can be a program name with args.
851 set dummy cc; ac_word=$2
852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
853 echo "configure:854: checking for $ac_word" >&5
854 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 if test -n "$CC"; then
858 ac_cv_prog_CC="$CC" # Let the user override the test.
860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
863 for ac_dir in $ac_dummy; do
864 test -z "$ac_dir" && ac_dir=.
865 if test -f $ac_dir/$ac_word; then
866 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
875 if test $ac_prog_rejected = yes; then
876 # We found a bogon in the path, so make sure we never use it.
877 set dummy $ac_cv_prog_CC
879 if test $# -gt 0; then
880 # We chose a different compiler from the bogus one.
881 # However, it has the same basename, so the bogon will be chosen
882 # first if we set CC to just the basename; use the full file name.
884 set dummy "$ac_dir/$ac_word" "$@"
892 if test -n "$CC"; then
893 echo "$ac_t""$CC" 1>&6
895 echo "$ac_t""no" 1>&6
898 if test -z "$CC"; then
901 # Extract the first word of "cl", so it can be a program name with args.
902 set dummy cl; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 if test -n "$CC"; then
909 ac_cv_prog_CC="$CC" # Let the user override the test.
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
913 for ac_dir in $ac_dummy; do
914 test -z "$ac_dir" && ac_dir=.
915 if test -f $ac_dir/$ac_word; then
924 if test -n "$CC"; then
925 echo "$ac_t""$CC" 1>&6
927 echo "$ac_t""no" 1>&6
932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
940 ac_cpp='$CPP $CPPFLAGS'
941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943 cross_compiling=$ac_cv_prog_cc_cross
945 cat > conftest.$ac_ext << EOF
947 #line 948 "configure"
948 #include "confdefs.h"
952 if { (eval echo configure:953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
953 ac_cv_prog_cc_works=yes
954 # If we can't run a trivial program, we are probably using a cross compiler.
955 if (./conftest; exit) 2>/dev/null; then
956 ac_cv_prog_cc_cross=no
958 ac_cv_prog_cc_cross=yes
961 echo "configure: failed program was:" >&5
962 cat conftest.$ac_ext >&5
963 ac_cv_prog_cc_works=no
967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
971 cross_compiling=$ac_cv_prog_cc_cross
973 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
974 if test $ac_cv_prog_cc_works = no; then
975 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
977 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
978 echo "configure:979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
979 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
980 cross_compiling=$ac_cv_prog_cc_cross
982 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
983 echo "configure:984: checking whether we are using GNU C" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 cat > conftest.c <<EOF
992 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
999 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1001 if test $ac_cv_prog_gcc = yes; then
1007 ac_test_CFLAGS="${CFLAGS+set}"
1008 ac_save_CFLAGS="$CFLAGS"
1010 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether ${CC-cc} accepts -g" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 echo 'void f(){}' > conftest.c
1016 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1025 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1026 if test "$ac_test_CFLAGS" = set; then
1027 CFLAGS="$ac_save_CFLAGS"
1028 elif test $ac_cv_prog_cc_g = yes; then
1029 if test "$GCC" = yes; then
1035 if test "$GCC" = yes; then
1043 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1044 if test -f $ac_dir/install-sh; then
1046 ac_install_sh="$ac_aux_dir/install-sh -c"
1048 elif test -f $ac_dir/install.sh; then
1050 ac_install_sh="$ac_aux_dir/install.sh -c"
1054 if test -z "$ac_aux_dir"; then
1055 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1057 ac_config_guess=$ac_aux_dir/config.guess
1058 ac_config_sub=$ac_aux_dir/config.sub
1059 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1061 # Find a good install program. We prefer a C program (faster),
1062 # so one script is as good as another. But avoid the broken or
1063 # incompatible versions:
1064 # SysV /etc/install, /usr/sbin/install
1065 # SunOS /usr/etc/install
1066 # IRIX /sbin/install
1068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1071 # ./install, which can be erroneously created by make from ./install.sh.
1072 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1073 echo "configure:1074: checking for a BSD compatible install" >&5
1074 if test -z "$INSTALL"; then
1075 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1079 for ac_dir in $PATH; do
1080 # Account for people who put trailing slashes in PATH elements.
1082 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1084 # OSF1 and SCO ODT 3.0 have their own names for install.
1085 # Don't use installbsd from OSF since it installs stuff as root
1087 for ac_prog in ginstall scoinst install; do
1088 if test -f $ac_dir/$ac_prog; then
1089 if test $ac_prog = install &&
1090 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1091 # AIX install. It has an incompatible calling convention.
1094 ac_cv_path_install="$ac_dir/$ac_prog -c"
1105 if test "${ac_cv_path_install+set}" = set; then
1106 INSTALL="$ac_cv_path_install"
1108 # As a last resort, use the slow shell script. We don't cache a
1109 # path for INSTALL within a source directory, because that will
1110 # break other packages using the cache if that directory is
1111 # removed, or if the path is relative.
1112 INSTALL="$ac_install_sh"
1115 echo "$ac_t""$INSTALL" 1>&6
1117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1118 # It thinks the first close brace ends the variable substitution.
1119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1125 for ac_prog in gawk mawk nawk awk
1127 # Extract the first word of "$ac_prog", so it can be a program name with args.
1128 set dummy $ac_prog; ac_word=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$AWK"; then
1135 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1139 for ac_dir in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1142 ac_cv_prog_AWK="$ac_prog"
1149 AWK="$ac_cv_prog_AWK"
1150 if test -n "$AWK"; then
1151 echo "$ac_t""$AWK" 1>&6
1153 echo "$ac_t""no" 1>&6
1156 test -n "$AWK" && break
1161 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1162 echo "configure:1163: checking if the linker ($LD) is GNU ld" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1167 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1168 ac_cv_prog_gnu_ld=yes
1170 ac_cv_prog_gnu_ld=no
1174 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1177 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1178 echo "configure:1179: checking for POSIXized ISC" >&5
1179 if test -d /etc/conf/kconfig.d &&
1180 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1182 echo "$ac_t""yes" 1>&6
1183 ISC=yes # If later tests want to check for ISC.
1184 cat >> confdefs.h <<\EOF
1185 #define _POSIX_SOURCE 1
1188 if test "$GCC" = yes; then
1194 echo "$ac_t""no" 1>&6
1199 if test "x$CC" != xcc; then
1200 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether $CC and cc understand -c and -o together" >&5
1203 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether cc understands -c and -o together" >&5
1206 set dummy $CC; ac_cc="`echo $2 |
1207 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'foo(){}' > conftest.c
1212 # Make sure it works both with $CC and with simple cc.
1213 # We do the test twice because some compilers refuse to overwrite an
1214 # existing .o file with -o, though they will create one.
1215 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1216 if { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1217 test -f conftest.o && { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1219 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1220 if test "x$CC" != xcc; then
1221 # Test first that cc exists at all.
1222 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1223 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1224 if { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1225 test -f conftest.o && { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1230 # cc exists but doesn't like -o.
1231 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1236 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1241 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1244 echo "$ac_t""no" 1>&6
1245 cat >> confdefs.h <<\EOF
1246 #define NO_MINUS_C_MINUS_O 1
1251 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1258 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1259 echo "configure:1260: checking that the C compiler understands volatile" >&5
1260 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1264 cat > conftest.$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1267 #include <sys/types.h>
1272 if { (eval echo configure:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1274 samba_cv_volatile=yes
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1279 samba_cv_volatile=no
1284 echo "$ac_t""$samba_cv_volatile" 1>&6
1285 if test x"$samba_cv_volatile" = x"yes"; then
1286 cat >> confdefs.h <<\EOF
1287 #define HAVE_VOLATILE 1
1294 # Do some error checking and defaulting for the host and target type.
1296 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1299 # 1. You are not allowed to specify --host, --target, and nonopt at the
1301 # 2. Host defaults to nonopt.
1302 # 3. If nonopt is not specified, then host defaults to the current host,
1303 # as determined by config.guess.
1304 # 4. Target and build default to nonopt.
1305 # 5. If nonopt is not specified, then target and build default to host.
1307 # The aliases save the names the user supplied, while $host etc.
1308 # will get canonicalized.
1309 case $host---$target---$nonopt in
1310 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1311 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1315 # Make sure we can run config.sub.
1316 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1317 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1320 echo $ac_n "checking host system type""... $ac_c" 1>&6
1321 echo "configure:1322: checking host system type" >&5
1324 case "$host_alias" in
1328 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1329 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1331 *) host_alias=$nonopt ;;
1335 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1336 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339 echo "$ac_t""$host" 1>&6
1341 echo $ac_n "checking target system type""... $ac_c" 1>&6
1342 echo "configure:1343: checking target system type" >&5
1344 target_alias=$target
1345 case "$target_alias" in
1348 NONE) target_alias=$host_alias ;;
1349 *) target_alias=$nonopt ;;
1353 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1354 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1355 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1356 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1357 echo "$ac_t""$target" 1>&6
1359 echo $ac_n "checking build system type""... $ac_c" 1>&6
1360 echo "configure:1361: checking build system type" >&5
1363 case "$build_alias" in
1366 NONE) build_alias=$host_alias ;;
1367 *) build_alias=$nonopt ;;
1371 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1372 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375 echo "$ac_t""$build" 1>&6
1377 test "$host_alias" != "$target_alias" &&
1378 test "$program_prefix$program_suffix$program_transform_name" = \
1380 program_prefix=${target_alias}-
1384 *irix6*) cat >> confdefs.h <<\EOF
1385 #include <standards.h>
1393 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1394 echo "configure:1395: checking config.cache system type" >&5
1395 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1396 test x"$ac_cv_host_system_type" != x"$host"; } ||
1397 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1398 test x"$ac_cv_build_system_type" != x"$build"; } ||
1399 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1400 test x"$ac_cv_target_system_type" != x"$target"; }; then
1401 echo "$ac_t""different" 1>&6
1402 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1404 echo "$ac_t""same" 1>&6
1406 ac_cv_host_system_type="$host"
1407 ac_cv_build_system_type="$build"
1408 ac_cv_target_system_type="$target"
1414 # Config CPPFLAG settings for strange OS's that must be set
1415 # before other tests.
1418 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1421 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1422 echo "configure:1423: checking whether ${CC-cc} accepts -Ae" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 echo 'void f(){}' > conftest.c
1427 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1428 ac_cv_prog_cc_Ae=yes
1436 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1437 # mmap on HPUX is completely broken...
1438 cat >> confdefs.h <<\EOF
1439 #define MMAP_BLACKLIST 1
1442 if test $ac_cv_prog_cc_Ae = yes; then
1443 CPPFLAGS="$CPPFLAGS -Ae"
1446 # Defines needed for HPUX support.
1447 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1448 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1452 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1453 cat >> confdefs.h <<\EOF
1454 #define USE_BOTH_CRYPT_CALLS 1
1457 cat >> confdefs.h <<\EOF
1458 #define _HPUX_SOURCE 1
1461 cat >> confdefs.h <<\EOF
1462 #define _POSIX_SOURCE 1
1465 cat >> confdefs.h <<\EOF
1466 #define _ALIGNMENT_REQUIRED 1
1469 cat >> confdefs.h <<\EOF
1470 #define _MAX_ALIGNMENT 4
1475 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1476 cat >> confdefs.h <<\EOF
1477 #define USE_BOTH_CRYPT_CALLS 1
1480 cat >> confdefs.h <<\EOF
1481 #define _HPUX_SOURCE 1
1484 cat >> confdefs.h <<\EOF
1485 #define _POSIX_SOURCE 1
1488 cat >> confdefs.h <<\EOF
1489 #define _LARGEFILE64_SOURCE 1
1492 cat >> confdefs.h <<\EOF
1493 #define _ALIGNMENT_REQUIRED 1
1496 cat >> confdefs.h <<\EOF
1497 #define _MAX_ALIGNMENT 4
1506 # CRAY Unicos has broken const handling
1508 echo "$ac_t""disabling const" 1>&6
1509 CPPFLAGS="$CPPFLAGS -Dconst="
1513 # AIX4.x doesn't even admit to having large
1514 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1517 echo "$ac_t""enabling large file support" 1>&6
1518 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1519 cat >> confdefs.h <<\EOF
1520 #define _LARGE_FILES 1
1525 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1526 # to the existance of large files..
1527 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1528 # recommendations on large file support, however it makes the
1529 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1530 # recommendation makes the compile fail on gcc2.7. JRA.
1534 5.0*|5.1*|5.2*|5.3*|5.5*)
1535 echo "$ac_t""no large file support" 1>&6
1538 echo "$ac_t""enabling large file support" 1>&6
1539 if test "$ac_cv_prog_gcc" = yes; then
1540 ${CC-cc} -v >conftest.c 2>&1
1541 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1543 case "$ac_cv_gcc_compiler_version_number" in
1544 *"gcc version 2.6"*|*"gcc version 2.7"*)
1545 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1546 cat >> confdefs.h <<\EOF
1547 #define _LARGEFILE64_SOURCE 1
1552 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1553 cat >> confdefs.h <<\EOF
1554 #define _LARGEFILE64_SOURCE 1
1557 cat >> confdefs.h <<\EOF
1558 #define _FILE_OFFSET_BITS 64
1564 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1565 cat >> confdefs.h <<\EOF
1566 #define _LARGEFILE64_SOURCE 1
1569 cat >> confdefs.h <<\EOF
1570 #define _FILE_OFFSET_BITS 64
1578 # Tests needed for SINIX large file support.
1581 if test $host = mips-sni-sysv4 ; then
1582 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1583 echo "configure:1584: checking for LFS support" >&5
1584 old_CPPFLAGS="$CPPFLAGS"
1585 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1586 if test "$cross_compiling" = yes; then
1587 SINIX_LFS_SUPPORT=cross
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1595 #if _LFS64_LARGEFILE == 1
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1604 SINIX_LFS_SUPPORT=yes
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1609 SINIX_LFS_SUPPORT=no
1614 CPPFLAGS="$old_CPPFLAGS"
1615 if test x$SINIX_LFS_SUPPORT = xyes ; then
1616 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1617 cat >> confdefs.h <<\EOF
1618 #define _LARGEFILE64_SOURCE 1
1621 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1622 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1623 LIBS="`getconf LFS64_LIBS` $LIBS"
1625 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1629 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1632 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1633 echo "configure:1634: checking for LFS support" >&5
1634 old_CPPFLAGS="$CPPFLAGS"
1635 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1636 if test "$cross_compiling" = yes; then
1637 LINUX_LFS_SUPPORT=cross
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1644 #include <sys/utsname.h>
1646 #if _LFS64_LARGEFILE == 1
1651 /* Ensure this is glibc 2.2 or higher */
1652 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1653 int libc_major = __GLIBC__;
1654 int libc_minor = __GLIBC_MINOR__;
1662 /* Ensure this is kernel 2.4 or higher */
1665 release = uts.release;
1666 major = atoi(strsep(&release, "."));
1667 minor = atoi(strsep(&release, "."));
1669 if (major > 2 || (major == 2 && minor > 3))
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1680 LINUX_LFS_SUPPORT=yes
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1685 LINUX_LFS_SUPPORT=no
1690 CPPFLAGS="$old_CPPFLAGS"
1691 if test x$LINUX_LFS_SUPPORT = xyes ; then
1692 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1693 cat >> confdefs.h <<\EOF
1694 #define _LARGEFILE64_SOURCE 1
1697 cat >> confdefs.h <<\EOF
1698 #define _FILE_OFFSET_BITS 64
1701 cat >> confdefs.h <<\EOF
1702 #define _GNU_SOURCE 1
1706 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1710 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1711 echo "configure:1712: checking for LFS support" >&5
1712 old_CPPFLAGS="$CPPFLAGS"
1713 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1714 if test "$cross_compiling" = yes; then
1715 GLIBC_LFS_SUPPORT=cross
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1723 #if _LFS64_LARGEFILE == 1
1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1732 GLIBC_LFS_SUPPORT=yes
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 GLIBC_LFS_SUPPORT=no
1742 CPPFLAGS="$old_CPPFLAGS"
1743 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1744 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1745 cat >> confdefs.h <<\EOF
1746 #define _LARGEFILE64_SOURCE 1
1749 cat >> confdefs.h <<\EOF
1750 #define _GNU_SOURCE 1
1754 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1759 echo $ac_n "checking for inline""... $ac_c" 1>&6
1760 echo "configure:1761: checking for inline" >&5
1761 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1765 for ac_kw in inline __inline__ __inline; do
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1774 if { (eval echo configure:1775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1776 ac_cv_c_inline=$ac_kw; break
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1786 echo "$ac_t""$ac_cv_c_inline" 1>&6
1787 case "$ac_cv_c_inline" in
1789 no) cat >> confdefs.h <<\EOF
1793 *) cat >> confdefs.h <<EOF
1794 #define inline $ac_cv_c_inline
1799 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1800 echo "configure:1801: checking how to run the C preprocessor" >&5
1801 # On Suns, sometimes $CPP names a directory.
1802 if test -n "$CPP" && test -d "$CPP"; then
1805 if test -z "$CPP"; then
1806 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 # This must be in double quotes, not single quotes, because CPP may get
1810 # substituted into the Makefile and "${CC-cc}" will confuse make.
1812 # On the NeXT, cc -E runs the code through the compiler's parser,
1813 # not just through cpp.
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1830 CPP="${CC-cc} -E -traditional-cpp"
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1847 CPP="${CC-cc} -nologo -E"
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1855 { (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1857 if test -z "$ac_err"; then
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1871 ac_cv_prog_CPP="$CPP"
1873 CPP="$ac_cv_prog_CPP"
1875 ac_cv_prog_CPP="$CPP"
1877 echo "$ac_t""$CPP" 1>&6
1879 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1880 echo "configure:1881: checking for ANSI C header files" >&5
1881 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1897 ac_cv_header_stdc=yes
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1903 ac_cv_header_stdc=no
1907 if test $ac_cv_header_stdc = yes; then
1908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1915 egrep "memchr" >/dev/null 2>&1; then
1919 ac_cv_header_stdc=no
1925 if test $ac_cv_header_stdc = yes; then
1926 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1933 egrep "free" >/dev/null 2>&1; then
1937 ac_cv_header_stdc=no
1943 if test $ac_cv_header_stdc = yes; then
1944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1945 if test "$cross_compiling" = yes; then
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1952 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1953 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1955 int main () { int i; for (i = 0; i < 256; i++)
1956 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1960 if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1967 ac_cv_header_stdc=no
1975 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1976 if test $ac_cv_header_stdc = yes; then
1977 cat >> confdefs.h <<\EOF
1978 #define STDC_HEADERS 1
1984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1987 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $ac_hdr that defines DIR" >&5
1989 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 #include <sys/types.h>
2001 if { (eval echo configure:2002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2003 eval "ac_cv_header_dirent_$ac_safe=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 eval "ac_cv_header_dirent_$ac_safe=no"
2012 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2015 cat >> confdefs.h <<EOF
2016 #define $ac_tr_hdr 1
2018 ac_header_dirent=$ac_hdr; break
2020 echo "$ac_t""no" 1>&6
2023 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2024 if test $ac_header_dirent = dirent.h; then
2025 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2026 echo "configure:2027: checking for opendir in -ldir" >&5
2027 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 ac_save_LIBS="$LIBS"
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2036 /* Override any gcc2 internal prototype to avoid an error. */
2037 /* We use char because int might match the return type of a gcc2
2038 builtin and then its argument prototype would still apply. */
2045 if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2047 eval "ac_cv_lib_$ac_lib_var=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 eval "ac_cv_lib_$ac_lib_var=no"
2055 LIBS="$ac_save_LIBS"
2058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2059 echo "$ac_t""yes" 1>&6
2062 echo "$ac_t""no" 1>&6
2066 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2067 echo "configure:2068: checking for opendir in -lx" >&5
2068 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 ac_save_LIBS="$LIBS"
2074 cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2077 /* Override any gcc2 internal prototype to avoid an error. */
2078 /* We use char because int might match the return type of a gcc2
2079 builtin and then its argument prototype would still apply. */
2086 if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2088 eval "ac_cv_lib_$ac_lib_var=yes"
2090 echo "configure: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2093 eval "ac_cv_lib_$ac_lib_var=no"
2096 LIBS="$ac_save_LIBS"
2099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2100 echo "$ac_t""yes" 1>&6
2103 echo "$ac_t""no" 1>&6
2108 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2109 echo "configure:2110: checking whether time.h and sys/time.h may both be included" >&5
2110 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 #include <sys/types.h>
2117 #include <sys/time.h>
2123 if { (eval echo configure:2124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2125 ac_cv_header_time=yes
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 ac_cv_header_time=no
2135 echo "$ac_t""$ac_cv_header_time" 1>&6
2136 if test $ac_cv_header_time = yes; then
2137 cat >> confdefs.h <<\EOF
2138 #define TIME_WITH_SYS_TIME 1
2143 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2144 echo "configure:2145: checking for sys/wait.h that is POSIX.1 compatible" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 #include <sys/types.h>
2152 #include <sys/wait.h>
2154 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2157 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2162 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2165 if { (eval echo configure:2166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2167 ac_cv_header_sys_wait_h=yes
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2172 ac_cv_header_sys_wait_h=no
2177 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2178 if test $ac_cv_header_sys_wait_h = yes; then
2179 cat >> confdefs.h <<\EOF
2180 #define HAVE_SYS_WAIT_H 1
2185 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_hdr" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_hdr 1
2221 echo "$ac_t""no" 1>&6
2225 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_hdr" >&5
2230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241 if test -z "$ac_err"; then
2243 eval "ac_cv_header_$ac_safe=yes"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2249 eval "ac_cv_header_$ac_safe=no"
2253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2256 cat >> confdefs.h <<EOF
2257 #define $ac_tr_hdr 1
2261 echo "$ac_t""no" 1>&6
2265 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_hdr" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2283 eval "ac_cv_header_$ac_safe=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 eval "ac_cv_header_$ac_safe=no"
2293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2296 cat >> confdefs.h <<EOF
2297 #define $ac_tr_hdr 1
2301 echo "$ac_t""no" 1>&6
2305 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2309 echo "configure:2310: checking for $ac_hdr" >&5
2310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2319 { (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2321 if test -z "$ac_err"; then
2323 eval "ac_cv_header_$ac_safe=yes"
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2329 eval "ac_cv_header_$ac_safe=no"
2333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2334 echo "$ac_t""yes" 1>&6
2335 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2336 cat >> confdefs.h <<EOF
2337 #define $ac_tr_hdr 1
2341 echo "$ac_t""no" 1>&6
2345 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
2347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2349 echo "configure:2350: checking for $ac_hdr" >&5
2350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2359 { (eval echo configure:2360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2361 if test -z "$ac_err"; then
2363 eval "ac_cv_header_$ac_safe=yes"
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2369 eval "ac_cv_header_$ac_safe=no"
2373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2374 echo "$ac_t""yes" 1>&6
2375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2376 cat >> confdefs.h <<EOF
2377 #define $ac_tr_hdr 1
2381 echo "$ac_t""no" 1>&6
2385 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2389 echo "configure:2390: checking for $ac_hdr" >&5
2390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2399 { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2401 if test -z "$ac_err"; then
2403 eval "ac_cv_header_$ac_safe=yes"
2406 echo "configure: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2409 eval "ac_cv_header_$ac_safe=no"
2413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2414 echo "$ac_t""yes" 1>&6
2415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2416 cat >> confdefs.h <<EOF
2417 #define $ac_tr_hdr 1
2421 echo "$ac_t""no" 1>&6
2425 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2429 echo "configure:2430: checking for $ac_hdr" >&5
2430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2439 { (eval echo configure:2440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2441 if test -z "$ac_err"; then
2443 eval "ac_cv_header_$ac_safe=yes"
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 eval "ac_cv_header_$ac_safe=no"
2453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2456 cat >> confdefs.h <<EOF
2457 #define $ac_tr_hdr 1
2461 echo "$ac_t""no" 1>&6
2465 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_hdr" >&5
2470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2479 { (eval echo configure:2480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2481 if test -z "$ac_err"; then
2483 eval "ac_cv_header_$ac_safe=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 eval "ac_cv_header_$ac_safe=no"
2493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2496 cat >> confdefs.h <<EOF
2497 #define $ac_tr_hdr 1
2501 echo "$ac_t""no" 1>&6
2505 for ac_hdr in sys/syslog.h syslog.h
2507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_hdr" >&5
2510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2519 { (eval echo configure:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521 if test -z "$ac_err"; then
2523 eval "ac_cv_header_$ac_safe=yes"
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2529 eval "ac_cv_header_$ac_safe=no"
2533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2534 echo "$ac_t""yes" 1>&6
2535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2536 cat >> confdefs.h <<EOF
2537 #define $ac_tr_hdr 1
2541 echo "$ac_t""no" 1>&6
2547 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2548 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2560 if { (eval echo configure:2561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2562 ac_cv_header_shadow_h=yes
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 ac_cv_header_shadow_h=no
2570 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2571 cat >> confdefs.h <<\EOF
2572 #define HAVE_SHADOW_H 1
2578 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2582 echo "configure:2583: checking for $ac_hdr" >&5
2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2594 if test -z "$ac_err"; then
2596 eval "ac_cv_header_$ac_safe=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 eval "ac_cv_header_$ac_safe=no"
2606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2609 cat >> confdefs.h <<EOF
2610 #define $ac_tr_hdr 1
2614 echo "$ac_t""no" 1>&6
2618 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2622 echo "configure:2623: checking for $ac_hdr" >&5
2623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2632 { (eval echo configure:2633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2634 if test -z "$ac_err"; then
2636 eval "ac_cv_header_$ac_safe=yes"
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 eval "ac_cv_header_$ac_safe=no"
2646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2647 echo "$ac_t""yes" 1>&6
2648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2649 cat >> confdefs.h <<EOF
2650 #define $ac_tr_hdr 1
2654 echo "$ac_t""no" 1>&6
2658 for ac_hdr in stropts.h poll.h
2660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_hdr" >&5
2663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2672 { (eval echo configure:2673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2674 if test -z "$ac_err"; then
2676 eval "ac_cv_header_$ac_safe=yes"
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2682 eval "ac_cv_header_$ac_safe=no"
2686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2687 echo "$ac_t""yes" 1>&6
2688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2689 cat >> confdefs.h <<EOF
2690 #define $ac_tr_hdr 1
2694 echo "$ac_t""no" 1>&6
2698 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_hdr" >&5
2703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2712 { (eval echo configure:2713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2714 if test -z "$ac_err"; then
2716 eval "ac_cv_header_$ac_safe=yes"
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 eval "ac_cv_header_$ac_safe=no"
2726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2727 echo "$ac_t""yes" 1>&6
2728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2729 cat >> confdefs.h <<EOF
2730 #define $ac_tr_hdr 1
2734 echo "$ac_t""no" 1>&6
2738 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_hdr" >&5
2743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2752 { (eval echo configure:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2754 if test -z "$ac_err"; then
2756 eval "ac_cv_header_$ac_safe=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2762 eval "ac_cv_header_$ac_safe=no"
2766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2769 cat >> confdefs.h <<EOF
2770 #define $ac_tr_hdr 1
2774 echo "$ac_t""no" 1>&6
2779 # For experimental utmp support (lastlog on some BSD-like systems)
2780 for ac_hdr in utmp.h utmpx.h lastlog.h
2782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_hdr" >&5
2785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2794 { (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2796 if test -z "$ac_err"; then
2798 eval "ac_cv_header_$ac_safe=yes"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2804 eval "ac_cv_header_$ac_safe=no"
2808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2811 cat >> confdefs.h <<EOF
2812 #define $ac_tr_hdr 1
2816 echo "$ac_t""no" 1>&6
2821 # For quotas on Veritas VxFS filesystems
2822 for ac_hdr in sys/fs/vx_quota.h
2824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_hdr" >&5
2827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2836 { (eval echo configure:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2838 if test -z "$ac_err"; then
2840 eval "ac_cv_header_$ac_safe=yes"
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2846 eval "ac_cv_header_$ac_safe=no"
2850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2853 cat >> confdefs.h <<EOF
2854 #define $ac_tr_hdr 1
2858 echo "$ac_t""no" 1>&6
2863 # For quotas on Linux XFS filesystems
2864 for ac_hdr in linux/xqm.h
2866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2868 echo "configure:2869: checking for $ac_hdr" >&5
2869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2878 { (eval echo configure:2879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2880 if test -z "$ac_err"; then
2882 eval "ac_cv_header_$ac_safe=yes"
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 eval "ac_cv_header_$ac_safe=no"
2892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2893 echo "$ac_t""yes" 1>&6
2894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2895 cat >> confdefs.h <<EOF
2896 #define $ac_tr_hdr 1
2900 echo "$ac_t""no" 1>&6
2905 echo $ac_n "checking size of int""... $ac_c" 1>&6
2906 echo "configure:2907: checking size of int" >&5
2907 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 if test "$cross_compiling" = yes; then
2911 ac_cv_sizeof_int=cross
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2919 FILE *f=fopen("conftestval", "w");
2921 fprintf(f, "%d\n", sizeof(int));
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2927 ac_cv_sizeof_int=`cat conftestval`
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2938 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2939 cat >> confdefs.h <<EOF
2940 #define SIZEOF_INT $ac_cv_sizeof_int
2944 echo $ac_n "checking size of long""... $ac_c" 1>&6
2945 echo "configure:2946: checking size of long" >&5
2946 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 if test "$cross_compiling" = yes; then
2950 ac_cv_sizeof_long=cross
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2958 FILE *f=fopen("conftestval", "w");
2960 fprintf(f, "%d\n", sizeof(long));
2964 if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2966 ac_cv_sizeof_long=`cat conftestval`
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2977 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2978 cat >> confdefs.h <<EOF
2979 #define SIZEOF_LONG $ac_cv_sizeof_long
2983 echo $ac_n "checking size of short""... $ac_c" 1>&6
2984 echo "configure:2985: checking size of short" >&5
2985 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 if test "$cross_compiling" = yes; then
2989 ac_cv_sizeof_short=cross
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2997 FILE *f=fopen("conftestval", "w");
2999 fprintf(f, "%d\n", sizeof(short));
3003 if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3005 ac_cv_sizeof_short=`cat conftestval`
3007 echo "configure: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3010 ac_cv_sizeof_short=0
3016 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3017 cat >> confdefs.h <<EOF
3018 #define SIZEOF_SHORT $ac_cv_sizeof_short
3023 echo $ac_n "checking for working const""... $ac_c" 1>&6
3024 echo "configure:3025: checking for working const" >&5
3025 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3034 /* Ultrix mips cc rejects this. */
3035 typedef int charset[2]; const charset x;
3036 /* SunOS 4.1.1 cc rejects this. */
3037 char const *const *ccp;
3039 /* NEC SVR4.0.2 mips cc rejects this. */
3040 struct point {int x, y;};
3041 static struct point const zero = {0,0};
3042 /* AIX XL C 1.02.0.0 rejects this.
3043 It does not let you subtract one const X* pointer from another in an arm
3044 of an if-expression whose if-part is not a constant expression */
3045 const char *g = "string";
3046 ccp = &g + (g ? g-g : 0);
3047 /* HPUX 7.0 cc rejects these. */
3050 ccp = (char const *const *) p;
3051 { /* SCO 3.2v4 cc rejects this. */
3053 char const *s = 0 ? (char *) 0 : (char const *) 0;
3057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3059 const int *foo = &x[0];
3062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3063 typedef const int *iptr;
3067 { /* AIX XL C 1.02.0.0 rejects this saying
3068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3069 struct s { int j; const int *ap[3]; };
3070 struct s *b; b->j = 5;
3072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3078 if { (eval echo configure:3079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3090 echo "$ac_t""$ac_cv_c_const" 1>&6
3091 if test $ac_cv_c_const = no; then
3092 cat >> confdefs.h <<\EOF
3098 echo $ac_n "checking for inline""... $ac_c" 1>&6
3099 echo "configure:3100: checking for inline" >&5
3100 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3104 for ac_kw in inline __inline__ __inline; do
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3113 if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115 ac_cv_c_inline=$ac_kw; break
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3125 echo "$ac_t""$ac_cv_c_inline" 1>&6
3126 case "$ac_cv_c_inline" in
3128 no) cat >> confdefs.h <<\EOF
3132 *) cat >> confdefs.h <<EOF
3133 #define inline $ac_cv_c_inline
3138 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3139 echo "configure:3140: checking whether byte ordering is bigendian" >&5
3140 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 ac_cv_c_bigendian=unknown
3144 # See if sys/param.h defines the BYTE_ORDER macro.
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 #include <sys/types.h>
3149 #include <sys/param.h>
3152 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3157 if { (eval echo configure:3158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3159 # It does; now see whether it defined to BIG_ENDIAN or not.
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3163 #include <sys/types.h>
3164 #include <sys/param.h>
3167 #if BYTE_ORDER != BIG_ENDIAN
3172 if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3174 ac_cv_c_bigendian=yes
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 ac_cv_c_bigendian=no
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3187 if test $ac_cv_c_bigendian = unknown; then
3188 if test "$cross_compiling" = yes; then
3189 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3195 /* Are we little or big endian? From Harbison&Steele. */
3199 char c[sizeof (long)];
3202 exit (u.c[sizeof (long) - 1] == 1);
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3207 ac_cv_c_bigendian=no
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3212 ac_cv_c_bigendian=yes
3220 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3221 if test $ac_cv_c_bigendian = yes; then
3222 cat >> confdefs.h <<\EOF
3223 #define WORDS_BIGENDIAN 1
3228 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3229 echo "configure:3230: checking whether char is unsigned" >&5
3230 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 if test "$GCC" = yes; then
3234 # GCC predefines this symbol on systems where it applies.
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 #ifdef __CHAR_UNSIGNED__
3243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3244 egrep "yes" >/dev/null 2>&1; then
3246 ac_cv_c_char_unsigned=yes
3249 ac_cv_c_char_unsigned=no
3254 if test "$cross_compiling" = yes; then
3255 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3261 #if !defined(__STDC__) || __STDC__ != 1
3265 volatile char c = 255; exit(c < 0);
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3270 ac_cv_c_char_unsigned=yes
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 ac_cv_c_char_unsigned=no
3283 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3284 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3285 cat >> confdefs.h <<\EOF
3286 #define __CHAR_UNSIGNED__ 1
3292 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3293 echo "configure:3294: checking return type of signal handlers" >&5
3294 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <sys/types.h>
3306 extern "C" void (*signal (int, void (*)(int)))(int);
3308 void (*signal ()) ();
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 ac_cv_type_signal=void
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3322 ac_cv_type_signal=int
3327 echo "$ac_t""$ac_cv_type_signal" 1>&6
3328 cat >> confdefs.h <<EOF
3329 #define RETSIGTYPE $ac_cv_type_signal
3333 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3334 echo "configure:3335: checking for uid_t in sys/types.h" >&5
3335 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include <sys/types.h>
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344 egrep "uid_t" >/dev/null 2>&1; then
3346 ac_cv_type_uid_t=yes
3355 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3356 if test $ac_cv_type_uid_t = no; then
3357 cat >> confdefs.h <<\EOF
3361 cat >> confdefs.h <<\EOF
3367 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3368 echo "configure:3369: checking for mode_t" >&5
3369 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <sys/types.h>
3381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3382 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3384 ac_cv_type_mode_t=yes
3387 ac_cv_type_mode_t=no
3392 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3393 if test $ac_cv_type_mode_t = no; then
3394 cat >> confdefs.h <<\EOF
3400 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3401 echo "configure:3402: checking for off_t" >&5
3402 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 #include <sys/types.h>
3414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3415 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3417 ac_cv_type_off_t=yes
3425 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3426 if test $ac_cv_type_off_t = no; then
3427 cat >> confdefs.h <<\EOF
3433 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3434 echo "configure:3435: checking for size_t" >&5
3435 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3438 cat > conftest.$ac_ext <<EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3441 #include <sys/types.h>
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3450 ac_cv_type_size_t=yes
3453 ac_cv_type_size_t=no
3458 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3459 if test $ac_cv_type_size_t = no; then
3460 cat >> confdefs.h <<\EOF
3461 #define size_t unsigned
3466 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3467 echo "configure:3468: checking for pid_t" >&5
3468 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <sys/types.h>
3480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3481 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3483 ac_cv_type_pid_t=yes
3491 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3492 if test $ac_cv_type_pid_t = no; then
3493 cat >> confdefs.h <<\EOF
3499 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3500 echo "configure:3501: checking for st_rdev in struct stat" >&5
3501 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 #include <sys/types.h>
3508 #include <sys/stat.h>
3510 struct stat s; s.st_rdev;
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 ac_cv_struct_st_rdev=yes
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 ac_cv_struct_st_rdev=no
3525 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3526 if test $ac_cv_struct_st_rdev = yes; then
3527 cat >> confdefs.h <<\EOF
3528 #define HAVE_ST_RDEV 1
3533 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3534 echo "configure:3535: checking for d_off in dirent" >&5
3535 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3543 #include <sys/types.h>
3546 struct dirent d; d.d_off;
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 ac_cv_dirent_d_off=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 ac_cv_dirent_d_off=no
3561 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3562 if test $ac_cv_dirent_d_off = yes; then
3563 cat >> confdefs.h <<\EOF
3564 #define HAVE_DIRENT_D_OFF 1
3569 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3570 echo "configure:3571: checking for ino_t" >&5
3571 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 #include <sys/types.h>
3583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3584 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3586 ac_cv_type_ino_t=yes
3594 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3595 if test $ac_cv_type_ino_t = no; then
3596 cat >> confdefs.h <<\EOF
3597 #define ino_t unsigned
3602 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3603 echo "configure:3604: checking for loff_t" >&5
3604 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 #include <sys/types.h>
3616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3617 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3619 ac_cv_type_loff_t=yes
3622 ac_cv_type_loff_t=no
3627 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3628 if test $ac_cv_type_loff_t = no; then
3629 cat >> confdefs.h <<\EOF
3630 #define loff_t off_t
3635 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3636 echo "configure:3637: checking for offset_t" >&5
3637 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 #include <sys/types.h>
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3652 ac_cv_type_offset_t=yes
3655 ac_cv_type_offset_t=no
3660 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3661 if test $ac_cv_type_offset_t = no; then
3662 cat >> confdefs.h <<\EOF
3663 #define offset_t loff_t
3668 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3669 echo "configure:3670: checking for ssize_t" >&5
3670 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <sys/types.h>
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3685 ac_cv_type_ssize_t=yes
3688 ac_cv_type_ssize_t=no
3693 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3694 if test $ac_cv_type_ssize_t = no; then
3695 cat >> confdefs.h <<\EOF
3701 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3702 echo "configure:3703: checking for wchar_t" >&5
3703 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <sys/types.h>
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3718 ac_cv_type_wchar_t=yes
3721 ac_cv_type_wchar_t=no
3726 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3727 if test $ac_cv_type_wchar_t = no; then
3728 cat >> confdefs.h <<\EOF
3729 #define wchar_t unsigned short
3735 ############################################
3736 # for cups support we need libcups, and a handful of header files
3738 # Check whether --enable-cups or --disable-cups was given.
3739 if test "${enable_cups+set}" = set; then
3740 enableval="$enable_cups"
3745 if test x$enable_cups != xno; then
3746 # Extract the first word of "cups-config", so it can be a program name with args.
3747 set dummy cups-config; ac_word=$2
3748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3749 echo "configure:3750: checking for $ac_word" >&5
3750 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3753 case "$CUPS_CONFIG" in
3755 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3758 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3763 for ac_dir in $ac_dummy; do
3764 test -z "$ac_dir" && ac_dir=.
3765 if test -f $ac_dir/$ac_word; then
3766 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3774 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3775 if test -n "$CUPS_CONFIG"; then
3776 echo "$ac_t""$CUPS_CONFIG" 1>&6
3778 echo "$ac_t""no" 1>&6
3782 if test "x$CUPS_CONFIG" != x; then
3783 cat >> confdefs.h <<\EOF
3787 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3788 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3789 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3793 ############################################
3794 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3795 for ac_func in dlopen
3797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3798 echo "configure:3799: checking for $ac_func" >&5
3799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 /* System header to define __stub macros and hopefully few prototypes,
3806 which can conflict with char $ac_func(); below. */
3808 /* Override any gcc2 internal prototype to avoid an error. */
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3815 /* The GNU C library defines this for functions which it implements
3816 to always fail with ENOSYS. Some functions are actually named
3817 something starting with __ and the normal name is an alias. */
3818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 eval "ac_cv_func_$ac_func=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 eval "ac_cv_func_$ac_func=no"
3838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3841 cat >> confdefs.h <<EOF
3842 #define $ac_tr_func 1
3846 echo "$ac_t""no" 1>&6
3850 if test x"$ac_cv_func_dlopen" = x"no"; then
3851 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3852 echo "configure:3853: checking for dlopen in -ldl" >&5
3853 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 ac_save_LIBS="$LIBS"
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3871 if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 eval "ac_cv_lib_$ac_lib_var=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3878 eval "ac_cv_lib_$ac_lib_var=no"
3881 LIBS="$ac_save_LIBS"
3884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3887 cat >> confdefs.h <<\EOF
3888 #define HAVE_DLOPEN 1
3892 echo "$ac_t""no" 1>&6
3896 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3898 ############################################
3899 # check if the compiler can do immediate structures
3900 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3901 echo "configure:3902: checking for immediate structures" >&5
3902 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3913 typedef struct {unsigned x;} FOOBAR;
3914 #define X_FOOBAR(x) ((FOOBAR) { x })
3915 #define FOO_ONE X_FOOBAR(1)
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 samba_cv_immediate_structures=yes
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 samba_cv_immediate_structures=no
3937 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3938 if test x"$samba_cv_immediate_structures" = x"yes"; then
3939 cat >> confdefs.h <<\EOF
3940 #define HAVE_IMMEDIATE_STRUCTURES 1
3945 ############################################
3946 # check for unix domain sockets
3947 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3948 echo "configure:3949: checking for unix domain sockets" >&5
3949 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3957 #include <sys/types.h>
3960 #include <sys/socket.h>
3964 struct sockaddr_un sunaddr;
3965 sunaddr.sun_family = AF_UNIX;
3969 if { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3971 samba_cv_unixsocket=yes
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3976 samba_cv_unixsocket=no
3981 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3982 if test x"$samba_cv_unixsocket" = x"yes"; then
3983 cat >> confdefs.h <<\EOF
3984 #define HAVE_UNIXSOCKET 1
3990 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3991 echo "configure:3992: checking for socklen_t type" >&5
3992 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3996 cat > conftest.$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
4000 #include <sys/types.h>
4005 #include <sys/socket.h>
4010 if { (eval echo configure:4011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4012 samba_cv_socklen_t=yes
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 samba_cv_socklen_t=no
4022 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4023 if test x"$samba_cv_socklen_t" = x"yes"; then
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE_SOCKLEN_T_TYPE 1
4030 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4031 echo "configure:4032: checking for sig_atomic_t type" >&5
4032 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4040 #include <sys/types.h>
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 samba_cv_sig_atomic_t=yes
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4057 samba_cv_sig_atomic_t=no
4062 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4063 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4064 cat >> confdefs.h <<\EOF
4065 #define HAVE_SIG_ATOMIC_T_TYPE 1
4070 # stupid headers have the functions but no declaration. grrrr.
4072 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4073 echo "configure:4074: checking for errno declaration" >&5
4074 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4086 if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4088 ac_cv_have_errno_decl=yes
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4093 ac_cv_have_errno_decl=no
4098 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4099 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4100 cat >> confdefs.h <<\EOF
4101 #define HAVE_ERRNO_DECL 1
4107 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4108 echo "configure:4109: checking for setresuid declaration" >&5
4109 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4118 int i = (int)setresuid
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 ac_cv_have_setresuid_decl=yes
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 ac_cv_have_setresuid_decl=no
4133 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4134 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4135 cat >> confdefs.h <<\EOF
4136 #define HAVE_SETRESUID_DECL 1
4142 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4143 echo "configure:4144: checking for setresgid declaration" >&5
4144 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4153 int i = (int)setresgid
4156 if { (eval echo configure:4157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4158 ac_cv_have_setresgid_decl=yes
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 ac_cv_have_setresgid_decl=no
4168 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4169 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_SETRESGID_DECL 1
4177 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4178 echo "configure:4179: checking for asprintf declaration" >&5
4179 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4188 int i = (int)asprintf
4191 if { (eval echo configure:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 ac_cv_have_asprintf_decl=yes
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4198 ac_cv_have_asprintf_decl=no
4203 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4204 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4205 cat >> confdefs.h <<\EOF
4206 #define HAVE_ASPRINTF_DECL 1
4212 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4213 echo "configure:4214: checking for vasprintf declaration" >&5
4214 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 int i = (int)vasprintf
4226 if { (eval echo configure:4227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4228 ac_cv_have_vasprintf_decl=yes
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 ac_cv_have_vasprintf_decl=no
4238 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4239 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4240 cat >> confdefs.h <<\EOF
4241 #define HAVE_VASPRINTF_DECL 1
4247 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4248 echo "configure:4249: checking for vsnprintf declaration" >&5
4249 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4258 int i = (int)vsnprintf
4261 if { (eval echo configure:4262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4263 ac_cv_have_vsnprintf_decl=yes
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 ac_cv_have_vsnprintf_decl=no
4273 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4274 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4275 cat >> confdefs.h <<\EOF
4276 #define HAVE_VSNPRINTF_DECL 1
4282 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4283 echo "configure:4284: checking for snprintf declaration" >&5
4284 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4288 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4293 int i = (int)snprintf
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4298 ac_cv_have_snprintf_decl=yes
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4303 ac_cv_have_snprintf_decl=no
4308 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4309 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4310 cat >> confdefs.h <<\EOF
4311 #define HAVE_SNPRINTF_DECL 1
4317 # and glibc has setresuid under linux but the function does
4318 # nothing until kernel 2.1.44! very dumb.
4319 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4320 echo "configure:4321: checking for real setresuid" >&5
4321 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4325 if test "$cross_compiling" = yes; then
4326 samba_cv_have_setresuid=cross
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4332 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4334 if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4336 samba_cv_have_setresuid=yes
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4341 samba_cv_have_setresuid=no
4348 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4349 if test x"$samba_cv_have_setresuid" = x"yes"; then
4350 cat >> confdefs.h <<\EOF
4351 #define HAVE_SETRESUID 1
4356 # Do the same check for setresguid...
4358 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4359 echo "configure:4360: checking for real setresgid" >&5
4360 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4364 if test "$cross_compiling" = yes; then
4365 samba_cv_have_setresgid=cross
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4372 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4376 samba_cv_have_setresgid=yes
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4381 samba_cv_have_setresgid=no
4388 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4389 if test x"$samba_cv_have_setresgid" = x"yes"; then
4390 cat >> confdefs.h <<\EOF
4391 #define HAVE_SETRESGID 1
4396 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4397 echo "configure:4398: checking for 8-bit clean memcmp" >&5
4398 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 if test "$cross_compiling" = yes; then
4402 ac_cv_func_memcmp_clean=no
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4410 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4411 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4417 ac_cv_func_memcmp_clean=yes
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4422 ac_cv_func_memcmp_clean=no
4429 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4430 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4433 ###############################################
4434 # test for where we get crypt() from
4435 for ac_func in crypt
4437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4438 echo "configure:4439: checking for $ac_func" >&5
4439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4445 /* System header to define __stub macros and hopefully few prototypes,
4446 which can conflict with char $ac_func(); below. */
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 /* We use char because int might match the return type of a gcc2
4450 builtin and then its argument prototype would still apply. */
4455 /* The GNU C library defines this for functions which it implements
4456 to always fail with ENOSYS. Some functions are actually named
4457 something starting with __ and the normal name is an alias. */
4458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 eval "ac_cv_func_$ac_func=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_func_$ac_func=no"
4478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4481 cat >> confdefs.h <<EOF
4482 #define $ac_tr_func 1
4486 echo "$ac_t""no" 1>&6
4490 if test x"$ac_cv_func_crypt" = x"no"; then
4491 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4492 echo "configure:4493: checking for crypt in -lcrypt" >&5
4493 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4497 ac_save_LIBS="$LIBS"
4498 LIBS="-lcrypt $LIBS"
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 eval "ac_cv_lib_$ac_lib_var=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_lib_$ac_lib_var=no"
4521 LIBS="$ac_save_LIBS"
4524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4525 echo "$ac_t""yes" 1>&6
4526 LIBS="$LIBS -lcrypt";
4527 cat >> confdefs.h <<\EOF
4528 #define HAVE_CRYPT 1
4532 echo "$ac_t""no" 1>&6
4538 ###############################################
4539 # Readline included by default unless explicitly asked not to
4540 test "${with_readline+set}" != "set" && with_readline=yes
4542 # test for where we get readline() from
4543 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4544 echo "configure:4545: checking whether to use readline" >&5
4545 # Check whether --with-readline or --without-readline was given.
4546 if test "${with_readline+set}" = set; then
4547 withval="$with_readline"
4548 case "$with_readline" in
4550 echo "$ac_t""yes" 1>&6
4552 for ac_hdr in readline.h history.h readline/readline.h
4554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_hdr" >&5
4557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4566 { (eval echo configure:4567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4568 if test -z "$ac_err"; then
4570 eval "ac_cv_header_$ac_safe=yes"
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4576 eval "ac_cv_header_$ac_safe=no"
4580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4583 cat >> confdefs.h <<EOF
4584 #define $ac_tr_hdr 1
4588 echo "$ac_t""no" 1>&6
4592 for ac_hdr in readline/history.h
4594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4596 echo "configure:4597: checking for $ac_hdr" >&5
4597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4606 { (eval echo configure:4607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4608 if test -z "$ac_err"; then
4610 eval "ac_cv_header_$ac_safe=yes"
4613 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4616 eval "ac_cv_header_$ac_safe=no"
4620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4621 echo "$ac_t""yes" 1>&6
4622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4623 cat >> confdefs.h <<EOF
4624 #define $ac_tr_hdr 1
4628 echo "$ac_t""no" 1>&6
4633 for ac_hdr in readline.h readline/readline.h
4635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4637 echo "configure:4638: checking for $ac_hdr" >&5
4638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 cat > conftest.$ac_ext <<EOF
4642 #line 4643 "configure"
4643 #include "confdefs.h"
4646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4647 { (eval echo configure:4648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4649 if test -z "$ac_err"; then
4651 eval "ac_cv_header_$ac_safe=yes"
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4657 eval "ac_cv_header_$ac_safe=no"
4661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4662 echo "$ac_t""yes" 1>&6
4663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4664 cat >> confdefs.h <<EOF
4665 #define $ac_tr_hdr 1
4668 for termlib in ncurses curses termcap terminfo termlib; do
4669 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4670 echo "configure:4671: checking for tgetent in -l${termlib}" >&5
4671 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4675 ac_save_LIBS="$LIBS"
4676 LIBS="-l${termlib} $LIBS"
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 /* Override any gcc2 internal prototype to avoid an error. */
4681 /* We use char because int might match the return type of a gcc2
4682 builtin and then its argument prototype would still apply. */
4689 if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4691 eval "ac_cv_lib_$ac_lib_var=yes"
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4696 eval "ac_cv_lib_$ac_lib_var=no"
4699 LIBS="$ac_save_LIBS"
4702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 TERMLIBS="-l${termlib}"; break
4706 echo "$ac_t""no" 1>&6
4710 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4711 echo "configure:4712: checking for rl_callback_handler_install in -lreadline" >&5
4712 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 ac_save_LIBS="$LIBS"
4717 LIBS="-lreadline $TERMLIBS $LIBS"
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4724 char rl_callback_handler_install();
4727 rl_callback_handler_install()
4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732 eval "ac_cv_lib_$ac_lib_var=yes"
4734 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4737 eval "ac_cv_lib_$ac_lib_var=no"
4740 LIBS="$ac_save_LIBS"
4743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4744 echo "$ac_t""yes" 1>&6
4745 TERMLIBS="-lreadline $TERMLIBS"
4746 cat >> confdefs.h <<\EOF
4747 #define HAVE_LIBREADLINE 1
4752 echo "$ac_t""no" 1>&6
4757 echo "$ac_t""no" 1>&6
4763 echo "$ac_t""no" 1>&6
4766 echo "$ac_t""yes" 1>&6
4768 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4769 # alternate readline path
4771 _cppflags=${CPPFLAGS}
4773 # Add additional search path
4774 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4775 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4777 for ac_hdr in readline.h history.h readline/readline.h
4779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4781 echo "configure:4782: checking for $ac_hdr" >&5
4782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4791 { (eval echo configure:4792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4793 if test -z "$ac_err"; then
4795 eval "ac_cv_header_$ac_safe=yes"
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4801 eval "ac_cv_header_$ac_safe=no"
4805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4808 cat >> confdefs.h <<EOF
4809 #define $ac_tr_hdr 1
4813 echo "$ac_t""no" 1>&6
4817 for ac_hdr in readline/history.h
4819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4821 echo "configure:4822: checking for $ac_hdr" >&5
4822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4831 { (eval echo configure:4832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4833 if test -z "$ac_err"; then
4835 eval "ac_cv_header_$ac_safe=yes"
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4841 eval "ac_cv_header_$ac_safe=no"
4845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4846 echo "$ac_t""yes" 1>&6
4847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4848 cat >> confdefs.h <<EOF
4849 #define $ac_tr_hdr 1
4853 echo "$ac_t""no" 1>&6
4858 for ac_hdr in readline.h readline/readline.h
4860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4862 echo "configure:4863: checking for $ac_hdr" >&5
4863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4872 { (eval echo configure:4873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4874 if test -z "$ac_err"; then
4876 eval "ac_cv_header_$ac_safe=yes"
4879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4882 eval "ac_cv_header_$ac_safe=no"
4886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4887 echo "$ac_t""yes" 1>&6
4888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4889 cat >> confdefs.h <<EOF
4890 #define $ac_tr_hdr 1
4893 for termlib in ncurses curses termcap terminfo termlib; do
4894 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4895 echo "configure:4896: checking for tgetent in -l${termlib}" >&5
4896 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4900 ac_save_LIBS="$LIBS"
4901 LIBS="-l${termlib} $LIBS"
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 /* We use char because int might match the return type of a gcc2
4907 builtin and then its argument prototype would still apply. */
4914 if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4916 eval "ac_cv_lib_$ac_lib_var=yes"
4918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4921 eval "ac_cv_lib_$ac_lib_var=no"
4924 LIBS="$ac_save_LIBS"
4927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4929 TERMLIBS="-l${termlib}"; break
4931 echo "$ac_t""no" 1>&6
4935 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4936 echo "configure:4937: checking for rl_callback_handler_install in -lreadline" >&5
4937 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 ac_save_LIBS="$LIBS"
4942 LIBS="-lreadline $TERMLIBS $LIBS"
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4949 char rl_callback_handler_install();
4952 rl_callback_handler_install()
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_lib_$ac_lib_var=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_lib_$ac_lib_var=no"
4965 LIBS="$ac_save_LIBS"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4970 TERMLDFLAGS="-L$with_readline/lib"
4971 TERMCPPFLAGS="-I$with_readline/include"
4972 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4973 TERMLIBS="-lreadline $TERMLIBS"
4974 cat >> confdefs.h <<\EOF
4975 #define HAVE_LIBREADLINE 1
4980 echo "$ac_t""no" 1>&6
4981 TERMLIBS= CPPFLAGS=$_cppflags
4985 echo "$ac_t""no" 1>&6
4994 echo "$ac_t""no" 1>&6
5001 # The readline API changed slightly from readline3 to readline4, so
5002 # code will generate warnings on one of them unless we have a few
5004 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5005 echo "configure:5006: checking for rl_completion_matches in -lreadline" >&5
5006 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 ac_save_LIBS="$LIBS"
5011 LIBS="-lreadline $TERMLIBS $LIBS"
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */
5018 char rl_completion_matches();
5021 rl_completion_matches()
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 eval "ac_cv_lib_$ac_lib_var=yes"
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5031 eval "ac_cv_lib_$ac_lib_var=no"
5034 LIBS="$ac_save_LIBS"
5037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5038 echo "$ac_t""yes" 1>&6
5039 cat >> confdefs.h <<\EOF
5040 #define HAVE_NEW_LIBREADLINE 1
5044 echo "$ac_t""no" 1>&6
5048 # The following test taken from the cvs sources
5049 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5050 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5051 # libsocket.so which has a bad implementation of gethostbyname (it
5052 # only looks in /etc/hosts), so we only look for -lsocket if we need
5054 for ac_func in connect
5056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5057 echo "configure:5058: checking for $ac_func" >&5
5058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char $ac_func(); below. */
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5074 /* The GNU C library defines this for functions which it implements
5075 to always fail with ENOSYS. Some functions are actually named
5076 something starting with __ and the normal name is an alias. */
5077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5085 if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5087 eval "ac_cv_func_$ac_func=yes"
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5092 eval "ac_cv_func_$ac_func=no"
5097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5098 echo "$ac_t""yes" 1>&6
5099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5100 cat >> confdefs.h <<EOF
5101 #define $ac_tr_func 1
5105 echo "$ac_t""no" 1>&6
5109 if test x"$ac_cv_func_connect" = x"no"; then
5112 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5113 echo "configure:5114: checking for printf in -lnsl_s" >&5
5114 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 ac_save_LIBS="$LIBS"
5119 LIBS="-lnsl_s $LIBS"
5120 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5123 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5134 eval "ac_cv_lib_$ac_lib_var=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5139 eval "ac_cv_lib_$ac_lib_var=no"
5142 LIBS="$ac_save_LIBS"
5145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5149 cat >> confdefs.h <<EOF
5150 #define $ac_tr_lib 1
5153 LIBS="-lnsl_s $LIBS"
5156 echo "$ac_t""no" 1>&6
5162 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5163 echo "configure:5164: checking for printf in -lnsl" >&5
5164 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 ac_save_LIBS="$LIBS"
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5184 eval "ac_cv_lib_$ac_lib_var=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 eval "ac_cv_lib_$ac_lib_var=no"
5192 LIBS="$ac_save_LIBS"
5195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5199 cat >> confdefs.h <<EOF
5200 #define $ac_tr_lib 1
5206 echo "$ac_t""no" 1>&6
5212 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5213 echo "configure:5214: checking for connect in -lsocket" >&5
5214 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 ac_save_LIBS="$LIBS"
5219 LIBS="-lsocket $LIBS"
5220 cat > conftest.$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5223 /* Override any gcc2 internal prototype to avoid an error. */
5224 /* We use char because int might match the return type of a gcc2
5225 builtin and then its argument prototype would still apply. */
5232 if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5234 eval "ac_cv_lib_$ac_lib_var=yes"
5236 echo "configure: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5239 eval "ac_cv_lib_$ac_lib_var=no"
5242 LIBS="$ac_save_LIBS"
5245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5246 echo "$ac_t""yes" 1>&6
5247 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5249 cat >> confdefs.h <<EOF
5250 #define $ac_tr_lib 1
5253 LIBS="-lsocket $LIBS"
5256 echo "$ac_t""no" 1>&6
5262 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5263 echo "configure:5264: checking for connect in -linet" >&5
5264 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5268 ac_save_LIBS="$LIBS"
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5273 /* Override any gcc2 internal prototype to avoid an error. */
5274 /* We use char because int might match the return type of a gcc2
5275 builtin and then its argument prototype would still apply. */
5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5284 eval "ac_cv_lib_$ac_lib_var=yes"
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5289 eval "ac_cv_lib_$ac_lib_var=no"
5292 LIBS="$ac_save_LIBS"
5295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5298 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5299 cat >> confdefs.h <<EOF
5300 #define $ac_tr_lib 1
5306 echo "$ac_t""no" 1>&6
5310 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5311 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5312 # ac_cv_func_connect=yes
5313 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5314 cat >> confdefs.h <<\EOF
5315 #define HAVE_CONNECT 1
5321 ###############################################
5322 # test for where we get get_yp_default_domain() from
5323 for ac_func in yp_get_default_domain
5325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5326 echo "configure:5327: checking for $ac_func" >&5
5327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 /* System header to define __stub macros and hopefully few prototypes,
5334 which can conflict with char $ac_func(); below. */
5336 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356 eval "ac_cv_func_$ac_func=yes"
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5361 eval "ac_cv_func_$ac_func=no"
5366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5369 cat >> confdefs.h <<EOF
5370 #define $ac_tr_func 1
5374 echo "$ac_t""no" 1>&6
5378 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5379 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5380 echo "configure:5381: checking for yp_get_default_domain in -lnsl" >&5
5381 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5383 echo $ac_n "(cached) $ac_c" 1>&6
5385 ac_save_LIBS="$LIBS"
5387 cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5390 /* Override any gcc2 internal prototype to avoid an error. */
5391 /* We use char because int might match the return type of a gcc2
5392 builtin and then its argument prototype would still apply. */
5393 char yp_get_default_domain();
5396 yp_get_default_domain()
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401 eval "ac_cv_lib_$ac_lib_var=yes"
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5406 eval "ac_cv_lib_$ac_lib_var=no"
5409 LIBS="$ac_save_LIBS"
5412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5415 cat >> confdefs.h <<\EOF
5416 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5420 echo "$ac_t""no" 1>&6
5425 # Check if we have execl, if not we need to compile smbrun.
5426 for ac_func in execl
5428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5429 echo "configure:5430: checking for $ac_func" >&5
5430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 /* System header to define __stub macros and hopefully few prototypes,
5437 which can conflict with char $ac_func(); below. */
5439 /* Override any gcc2 internal prototype to avoid an error. */
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5446 /* The GNU C library defines this for functions which it implements
5447 to always fail with ENOSYS. Some functions are actually named
5448 something starting with __ and the normal name is an alias. */
5449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459 eval "ac_cv_func_$ac_func=yes"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 eval "ac_cv_func_$ac_func=no"
5469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5470 echo "$ac_t""yes" 1>&6
5471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5472 cat >> confdefs.h <<EOF
5473 #define $ac_tr_func 1
5477 echo "$ac_t""no" 1>&6
5481 if test x"$ac_cv_func_execl" = x"no"; then
5482 RUNPROG="bin/smbrun"
5487 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5490 echo "configure:5491: checking for $ac_func" >&5
5491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5497 /* System header to define __stub macros and hopefully few prototypes,
5498 which can conflict with char $ac_func(); below. */
5500 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */
5507 /* The GNU C library defines this for functions which it implements
5508 to always fail with ENOSYS. Some functions are actually named
5509 something starting with __ and the normal name is an alias. */
5510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5518 if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5520 eval "ac_cv_func_$ac_func=yes"
5522 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5525 eval "ac_cv_func_$ac_func=no"
5530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5531 echo "$ac_t""yes" 1>&6
5532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5533 cat >> confdefs.h <<EOF
5534 #define $ac_tr_func 1
5538 echo "$ac_t""no" 1>&6
5542 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5545 echo "configure:5546: checking for $ac_func" >&5
5546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5549 cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5552 /* System header to define __stub macros and hopefully few prototypes,
5553 which can conflict with char $ac_func(); below. */
5555 /* Override any gcc2 internal prototype to avoid an error. */
5556 /* We use char because int might match the return type of a gcc2
5557 builtin and then its argument prototype would still apply. */
5562 /* The GNU C library defines this for functions which it implements
5563 to always fail with ENOSYS. Some functions are actually named
5564 something starting with __ and the normal name is an alias. */
5565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5573 if { (eval echo configure:5574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5575 eval "ac_cv_func_$ac_func=yes"
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5580 eval "ac_cv_func_$ac_func=no"
5585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5586 echo "$ac_t""yes" 1>&6
5587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5588 cat >> confdefs.h <<EOF
5589 #define $ac_tr_func 1
5593 echo "$ac_t""no" 1>&6
5597 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5600 echo "configure:5601: checking for $ac_func" >&5
5601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5607 /* System header to define __stub macros and hopefully few prototypes,
5608 which can conflict with char $ac_func(); below. */
5610 /* Override any gcc2 internal prototype to avoid an error. */
5611 /* We use char because int might match the return type of a gcc2
5612 builtin and then its argument prototype would still apply. */
5617 /* The GNU C library defines this for functions which it implements
5618 to always fail with ENOSYS. Some functions are actually named
5619 something starting with __ and the normal name is an alias. */
5620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5628 if { (eval echo configure:5629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5630 eval "ac_cv_func_$ac_func=yes"
5632 echo "configure: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5635 eval "ac_cv_func_$ac_func=no"
5640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5641 echo "$ac_t""yes" 1>&6
5642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5643 cat >> confdefs.h <<EOF
5644 #define $ac_tr_func 1
5648 echo "$ac_t""no" 1>&6
5652 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5655 echo "configure:5656: checking for $ac_func" >&5
5656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5657 echo $ac_n "(cached) $ac_c" 1>&6
5659 cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5662 /* System header to define __stub macros and hopefully few prototypes,
5663 which can conflict with char $ac_func(); below. */
5665 /* Override any gcc2 internal prototype to avoid an error. */
5666 /* We use char because int might match the return type of a gcc2
5667 builtin and then its argument prototype would still apply. */
5672 /* The GNU C library defines this for functions which it implements
5673 to always fail with ENOSYS. Some functions are actually named
5674 something starting with __ and the normal name is an alias. */
5675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5683 if { (eval echo configure:5684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5685 eval "ac_cv_func_$ac_func=yes"
5687 echo "configure: failed program was:" >&5
5688 cat conftest.$ac_ext >&5
5690 eval "ac_cv_func_$ac_func=no"
5695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5696 echo "$ac_t""yes" 1>&6
5697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5698 cat >> confdefs.h <<EOF
5699 #define $ac_tr_func 1
5703 echo "$ac_t""no" 1>&6
5707 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5710 echo "configure:5711: checking for $ac_func" >&5
5711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 cat > conftest.$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5717 /* System header to define __stub macros and hopefully few prototypes,
5718 which can conflict with char $ac_func(); below. */
5720 /* Override any gcc2 internal prototype to avoid an error. */
5721 /* We use char because int might match the return type of a gcc2
5722 builtin and then its argument prototype would still apply. */
5727 /* The GNU C library defines this for functions which it implements
5728 to always fail with ENOSYS. Some functions are actually named
5729 something starting with __ and the normal name is an alias. */
5730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5738 if { (eval echo configure:5739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5740 eval "ac_cv_func_$ac_func=yes"
5742 echo "configure: failed program was:" >&5
5743 cat conftest.$ac_ext >&5
5745 eval "ac_cv_func_$ac_func=no"
5750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5751 echo "$ac_t""yes" 1>&6
5752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5753 cat >> confdefs.h <<EOF
5754 #define $ac_tr_func 1
5758 echo "$ac_t""no" 1>&6
5762 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5765 echo "configure:5766: checking for $ac_func" >&5
5766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5772 /* System header to define __stub macros and hopefully few prototypes,
5773 which can conflict with char $ac_func(); below. */
5775 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5782 /* The GNU C library defines this for functions which it implements
5783 to always fail with ENOSYS. Some functions are actually named
5784 something starting with __ and the normal name is an alias. */
5785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5793 if { (eval echo configure:5794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5795 eval "ac_cv_func_$ac_func=yes"
5797 echo "configure: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5800 eval "ac_cv_func_$ac_func=no"
5805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5806 echo "$ac_t""yes" 1>&6
5807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5808 cat >> confdefs.h <<EOF
5809 #define $ac_tr_func 1
5813 echo "$ac_t""no" 1>&6
5817 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5820 echo "configure:5821: checking for $ac_func" >&5
5821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 cat > conftest.$ac_ext <<EOF
5825 #line 5826 "configure"
5826 #include "confdefs.h"
5827 /* System header to define __stub macros and hopefully few prototypes,
5828 which can conflict with char $ac_func(); below. */
5830 /* Override any gcc2 internal prototype to avoid an error. */
5831 /* We use char because int might match the return type of a gcc2
5832 builtin and then its argument prototype would still apply. */
5837 /* The GNU C library defines this for functions which it implements
5838 to always fail with ENOSYS. Some functions are actually named
5839 something starting with __ and the normal name is an alias. */
5840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5848 if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5850 eval "ac_cv_func_$ac_func=yes"
5852 echo "configure: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5855 eval "ac_cv_func_$ac_func=no"
5860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5863 cat >> confdefs.h <<EOF
5864 #define $ac_tr_func 1
5868 echo "$ac_t""no" 1>&6
5872 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5875 echo "configure:5876: checking for $ac_func" >&5
5876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5877 echo $ac_n "(cached) $ac_c" 1>&6
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5882 /* System header to define __stub macros and hopefully few prototypes,
5883 which can conflict with char $ac_func(); below. */
5885 /* Override any gcc2 internal prototype to avoid an error. */
5886 /* We use char because int might match the return type of a gcc2
5887 builtin and then its argument prototype would still apply. */
5892 /* The GNU C library defines this for functions which it implements
5893 to always fail with ENOSYS. Some functions are actually named
5894 something starting with __ and the normal name is an alias. */
5895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5905 eval "ac_cv_func_$ac_func=yes"
5907 echo "configure: failed program was:" >&5
5908 cat conftest.$ac_ext >&5
5910 eval "ac_cv_func_$ac_func=no"
5915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5918 cat >> confdefs.h <<EOF
5919 #define $ac_tr_func 1
5923 echo "$ac_t""no" 1>&6
5927 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5930 echo "configure:5931: checking for $ac_func" >&5
5931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 /* System header to define __stub macros and hopefully few prototypes,
5938 which can conflict with char $ac_func(); below. */
5940 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5947 /* The GNU C library defines this for functions which it implements
5948 to always fail with ENOSYS. Some functions are actually named
5949 something starting with __ and the normal name is an alias. */
5950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 eval "ac_cv_func_$ac_func=yes"
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 eval "ac_cv_func_$ac_func=no"
5970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5973 cat >> confdefs.h <<EOF
5974 #define $ac_tr_func 1
5978 echo "$ac_t""no" 1>&6
5982 for ac_func in syslog vsyslog getgrouplist
5984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5985 echo "configure:5986: checking for $ac_func" >&5
5986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 /* System header to define __stub macros and hopefully few prototypes,
5993 which can conflict with char $ac_func(); below. */
5995 /* Override any gcc2 internal prototype to avoid an error. */
5996 /* We use char because int might match the return type of a gcc2
5997 builtin and then its argument prototype would still apply. */
6002 /* The GNU C library defines this for functions which it implements
6003 to always fail with ENOSYS. Some functions are actually named
6004 something starting with __ and the normal name is an alias. */
6005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6015 eval "ac_cv_func_$ac_func=yes"
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 eval "ac_cv_func_$ac_func=no"
6025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6026 echo "$ac_t""yes" 1>&6
6027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6028 cat >> confdefs.h <<EOF
6029 #define $ac_tr_func 1
6033 echo "$ac_t""no" 1>&6
6037 # setbuffer is needed for smbtorture
6038 for ac_func in setbuffer
6040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6041 echo "configure:6042: checking for $ac_func" >&5
6042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 /* System header to define __stub macros and hopefully few prototypes,
6049 which can conflict with char $ac_func(); below. */
6051 /* Override any gcc2 internal prototype to avoid an error. */
6052 /* We use char because int might match the return type of a gcc2
6053 builtin and then its argument prototype would still apply. */
6058 /* The GNU C library defines this for functions which it implements
6059 to always fail with ENOSYS. Some functions are actually named
6060 something starting with __ and the normal name is an alias. */
6061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6069 if { (eval echo configure:6070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6071 eval "ac_cv_func_$ac_func=yes"
6073 echo "configure: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6076 eval "ac_cv_func_$ac_func=no"
6081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6082 echo "$ac_t""yes" 1>&6
6083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6084 cat >> confdefs.h <<EOF
6085 #define $ac_tr_func 1
6089 echo "$ac_t""no" 1>&6
6094 # syscall() is needed for smbwrapper.
6095 for ac_func in syscall
6097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6098 echo "configure:6099: checking for $ac_func" >&5
6099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6100 echo $ac_n "(cached) $ac_c" 1>&6
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 /* System header to define __stub macros and hopefully few prototypes,
6106 which can conflict with char $ac_func(); below. */
6108 /* Override any gcc2 internal prototype to avoid an error. */
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6115 /* The GNU C library defines this for functions which it implements
6116 to always fail with ENOSYS. Some functions are actually named
6117 something starting with __ and the normal name is an alias. */
6118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6126 if { (eval echo configure:6127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6128 eval "ac_cv_func_$ac_func=yes"
6130 echo "configure: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6133 eval "ac_cv_func_$ac_func=no"
6138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6139 echo "$ac_t""yes" 1>&6
6140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6141 cat >> confdefs.h <<EOF
6142 #define $ac_tr_func 1
6146 echo "$ac_t""no" 1>&6
6151 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_func" >&5
6155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6161 /* System header to define __stub macros and hopefully few prototypes,
6162 which can conflict with char $ac_func(); below. */
6164 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6171 /* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
6174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6182 if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6184 eval "ac_cv_func_$ac_func=yes"
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6189 eval "ac_cv_func_$ac_func=no"
6194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6197 cat >> confdefs.h <<EOF
6198 #define $ac_tr_func 1
6202 echo "$ac_t""no" 1>&6
6206 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6209 echo "configure:6210: checking for $ac_func" >&5
6210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char $ac_func(); below. */
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6226 /* The GNU C library defines this for functions which it implements
6227 to always fail with ENOSYS. Some functions are actually named
6228 something starting with __ and the normal name is an alias. */
6229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6239 eval "ac_cv_func_$ac_func=yes"
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 eval "ac_cv_func_$ac_func=no"
6249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6250 echo "$ac_t""yes" 1>&6
6251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6252 cat >> confdefs.h <<EOF
6253 #define $ac_tr_func 1
6257 echo "$ac_t""no" 1>&6
6261 for ac_func in __getcwd _getcwd
6263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6264 echo "configure:6265: checking for $ac_func" >&5
6265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6268 cat > conftest.$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6271 /* System header to define __stub macros and hopefully few prototypes,
6272 which can conflict with char $ac_func(); below. */
6274 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6281 /* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
6284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6292 if { (eval echo configure:6293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6294 eval "ac_cv_func_$ac_func=yes"
6296 echo "configure: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6299 eval "ac_cv_func_$ac_func=no"
6304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6305 echo "$ac_t""yes" 1>&6
6306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6307 cat >> confdefs.h <<EOF
6308 #define $ac_tr_func 1
6312 echo "$ac_t""no" 1>&6
6316 for ac_func in __xstat __fxstat __lxstat
6318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6319 echo "configure:6320: checking for $ac_func" >&5
6320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* System header to define __stub macros and hopefully few prototypes,
6327 which can conflict with char $ac_func(); below. */
6329 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6347 if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6349 eval "ac_cv_func_$ac_func=yes"
6351 echo "configure: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6354 eval "ac_cv_func_$ac_func=no"
6359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6360 echo "$ac_t""yes" 1>&6
6361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6362 cat >> confdefs.h <<EOF
6363 #define $ac_tr_func 1
6367 echo "$ac_t""no" 1>&6
6371 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6374 echo "configure:6375: checking for $ac_func" >&5
6375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6376 echo $ac_n "(cached) $ac_c" 1>&6
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6381 /* System header to define __stub macros and hopefully few prototypes,
6382 which can conflict with char $ac_func(); below. */
6384 /* Override any gcc2 internal prototype to avoid an error. */
6385 /* We use char because int might match the return type of a gcc2
6386 builtin and then its argument prototype would still apply. */
6391 /* The GNU C library defines this for functions which it implements
6392 to always fail with ENOSYS. Some functions are actually named
6393 something starting with __ and the normal name is an alias. */
6394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 eval "ac_cv_func_$ac_func=yes"
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_func_$ac_func=no"
6414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6415 echo "$ac_t""yes" 1>&6
6416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6417 cat >> confdefs.h <<EOF
6418 #define $ac_tr_func 1
6422 echo "$ac_t""no" 1>&6
6426 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6429 echo "configure:6430: checking for $ac_func" >&5
6430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6433 cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* System header to define __stub macros and hopefully few prototypes,
6437 which can conflict with char $ac_func(); below. */
6439 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6446 /* The GNU C library defines this for functions which it implements
6447 to always fail with ENOSYS. Some functions are actually named
6448 something starting with __ and the normal name is an alias. */
6449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6457 if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6459 eval "ac_cv_func_$ac_func=yes"
6461 echo "configure: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6464 eval "ac_cv_func_$ac_func=no"
6469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6470 echo "$ac_t""yes" 1>&6
6471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6472 cat >> confdefs.h <<EOF
6473 #define $ac_tr_func 1
6477 echo "$ac_t""no" 1>&6
6481 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6484 echo "configure:6485: checking for $ac_func" >&5
6485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6491 /* System header to define __stub macros and hopefully few prototypes,
6492 which can conflict with char $ac_func(); below. */
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6501 /* The GNU C library defines this for functions which it implements
6502 to always fail with ENOSYS. Some functions are actually named
6503 something starting with __ and the normal name is an alias. */
6504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6514 eval "ac_cv_func_$ac_func=yes"
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6519 eval "ac_cv_func_$ac_func=no"
6524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6525 echo "$ac_t""yes" 1>&6
6526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6527 cat >> confdefs.h <<EOF
6528 #define $ac_tr_func 1
6532 echo "$ac_t""no" 1>&6
6536 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6539 echo "configure:6540: checking for $ac_func" >&5
6540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* System header to define __stub macros and hopefully few prototypes,
6547 which can conflict with char $ac_func(); below. */
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6556 /* The GNU C library defines this for functions which it implements
6557 to always fail with ENOSYS. Some functions are actually named
6558 something starting with __ and the normal name is an alias. */
6559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6567 if { (eval echo configure:6568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6569 eval "ac_cv_func_$ac_func=yes"
6571 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6574 eval "ac_cv_func_$ac_func=no"
6579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6582 cat >> confdefs.h <<EOF
6583 #define $ac_tr_func 1
6587 echo "$ac_t""no" 1>&6
6591 for ac_func in _write __write _fork __fork
6593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6594 echo "configure:6595: checking for $ac_func" >&5
6595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6596 echo $ac_n "(cached) $ac_c" 1>&6
6598 cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6601 /* System header to define __stub macros and hopefully few prototypes,
6602 which can conflict with char $ac_func(); below. */
6604 /* Override any gcc2 internal prototype to avoid an error. */
6605 /* We use char because int might match the return type of a gcc2
6606 builtin and then its argument prototype would still apply. */
6611 /* The GNU C library defines this for functions which it implements
6612 to always fail with ENOSYS. Some functions are actually named
6613 something starting with __ and the normal name is an alias. */
6614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6624 eval "ac_cv_func_$ac_func=yes"
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 eval "ac_cv_func_$ac_func=no"
6634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6635 echo "$ac_t""yes" 1>&6
6636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6637 cat >> confdefs.h <<EOF
6638 #define $ac_tr_func 1
6642 echo "$ac_t""no" 1>&6
6646 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6649 echo "configure:6650: checking for $ac_func" >&5
6650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure"
6655 #include "confdefs.h"
6656 /* System header to define __stub macros and hopefully few prototypes,
6657 which can conflict with char $ac_func(); below. */
6659 /* Override any gcc2 internal prototype to avoid an error. */
6660 /* We use char because int might match the return type of a gcc2
6661 builtin and then its argument prototype would still apply. */
6666 /* The GNU C library defines this for functions which it implements
6667 to always fail with ENOSYS. Some functions are actually named
6668 something starting with __ and the normal name is an alias. */
6669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6677 if { (eval echo configure:6678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6679 eval "ac_cv_func_$ac_func=yes"
6681 echo "configure: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6684 eval "ac_cv_func_$ac_func=no"
6689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6690 echo "$ac_t""yes" 1>&6
6691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6692 cat >> confdefs.h <<EOF
6693 #define $ac_tr_func 1
6697 echo "$ac_t""no" 1>&6
6701 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6704 echo "configure:6705: checking for $ac_func" >&5
6705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 /* System header to define __stub macros and hopefully few prototypes,
6712 which can conflict with char $ac_func(); below. */
6714 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6721 /* The GNU C library defines this for functions which it implements
6722 to always fail with ENOSYS. Some functions are actually named
6723 something starting with __ and the normal name is an alias. */
6724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6734 eval "ac_cv_func_$ac_func=yes"
6736 echo "configure: failed program was:" >&5
6737 cat conftest.$ac_ext >&5
6739 eval "ac_cv_func_$ac_func=no"
6744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6747 cat >> confdefs.h <<EOF
6748 #define $ac_tr_func 1
6752 echo "$ac_t""no" 1>&6
6756 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6759 echo "configure:6760: checking for $ac_func" >&5
6760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6761 echo $ac_n "(cached) $ac_c" 1>&6
6763 cat > conftest.$ac_ext <<EOF
6764 #line 6765 "configure"
6765 #include "confdefs.h"
6766 /* System header to define __stub macros and hopefully few prototypes,
6767 which can conflict with char $ac_func(); below. */
6769 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6776 /* The GNU C library defines this for functions which it implements
6777 to always fail with ENOSYS. Some functions are actually named
6778 something starting with __ and the normal name is an alias. */
6779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6787 if { (eval echo configure:6788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6789 eval "ac_cv_func_$ac_func=yes"
6791 echo "configure: failed program was:" >&5
6792 cat conftest.$ac_ext >&5
6794 eval "ac_cv_func_$ac_func=no"
6799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6800 echo "$ac_t""yes" 1>&6
6801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6802 cat >> confdefs.h <<EOF
6803 #define $ac_tr_func 1
6807 echo "$ac_t""no" 1>&6
6811 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6814 echo "configure:6815: checking for $ac_func" >&5
6815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 /* System header to define __stub macros and hopefully few prototypes,
6822 which can conflict with char $ac_func(); below. */
6824 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6831 /* The GNU C library defines this for functions which it implements
6832 to always fail with ENOSYS. Some functions are actually named
6833 something starting with __ and the normal name is an alias. */
6834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6842 if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 eval "ac_cv_func_$ac_func=yes"
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 eval "ac_cv_func_$ac_func=no"
6854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6857 cat >> confdefs.h <<EOF
6858 #define $ac_tr_func 1
6862 echo "$ac_t""no" 1>&6
6866 for ac_func in open64 _open64 __open64 creat64
6868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6869 echo "configure:6870: checking for $ac_func" >&5
6870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6876 /* System header to define __stub macros and hopefully few prototypes,
6877 which can conflict with char $ac_func(); below. */
6879 /* Override any gcc2 internal prototype to avoid an error. */
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6886 /* The GNU C library defines this for functions which it implements
6887 to always fail with ENOSYS. Some functions are actually named
6888 something starting with __ and the normal name is an alias. */
6889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6897 if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6899 eval "ac_cv_func_$ac_func=yes"
6901 echo "configure: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 eval "ac_cv_func_$ac_func=no"
6909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6910 echo "$ac_t""yes" 1>&6
6911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6912 cat >> confdefs.h <<EOF
6913 #define $ac_tr_func 1
6917 echo "$ac_t""no" 1>&6
6923 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6926 if test x$ac_cv_func_stat64 = xno ; then
6927 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6928 echo "configure:6929: checking for stat64 in <sys/stat.h>" >&5
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6933 #if defined(HAVE_UNISTD_H)
6936 #include <sys/stat.h>
6939 struct stat64 st64; exit(stat64(".",&st64));
6942 if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6944 ac_cv_func_stat64=yes
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6950 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6951 if test x$ac_cv_func_stat64 = xyes ; then
6952 cat >> confdefs.h <<\EOF
6953 #define HAVE_STAT64 1
6959 if test x$ac_cv_func_lstat64 = xno ; then
6960 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6961 echo "configure:6962: checking for lstat64 in <sys/stat.h>" >&5
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6966 #if defined(HAVE_UNISTD_H)
6969 #include <sys/stat.h>
6972 struct stat64 st64; exit(lstat64(".",&st64));
6975 if { (eval echo configure:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6977 ac_cv_func_lstat64=yes
6979 echo "configure: failed program was:" >&5
6980 cat conftest.$ac_ext >&5
6983 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6984 if test x$ac_cv_func_lstat64 = xyes ; then
6985 cat >> confdefs.h <<\EOF
6986 #define HAVE_LSTAT64 1
6992 if test x$ac_cv_func_fstat64 = xno ; then
6993 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6994 echo "configure:6995: checking for fstat64 in <sys/stat.h>" >&5
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6999 #if defined(HAVE_UNISTD_H)
7002 #include <sys/stat.h>
7005 struct stat64 st64; exit(fstat64(0,&st64));
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 ac_cv_func_fstat64=yes
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7016 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7017 if test x$ac_cv_func_fstat64 = xyes ; then
7018 cat >> confdefs.h <<\EOF
7019 #define HAVE_FSTAT64 1
7025 #####################################
7026 # we might need the resolv library on some systems
7027 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7028 echo "configure:7029: checking for dn_expand in -lresolv" >&5
7029 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7033 ac_save_LIBS="$LIBS"
7034 LIBS="-lresolv $LIBS"
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7038 /* Override any gcc2 internal prototype to avoid an error. */
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7047 if { (eval echo configure:7048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7049 eval "ac_cv_lib_$ac_lib_var=yes"
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 eval "ac_cv_lib_$ac_lib_var=no"
7057 LIBS="$ac_save_LIBS"
7060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7062 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7063 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7064 cat >> confdefs.h <<EOF
7065 #define $ac_tr_lib 1
7068 LIBS="-lresolv $LIBS"
7071 echo "$ac_t""no" 1>&6
7076 # Check for the functions putprpwnam, set_auth_parameters,
7077 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7078 # Needed for OSF1 and HPUX.
7082 *-lsecurity*) for ac_func in putprpwnam
7084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7085 echo "configure:7086: checking for $ac_func" >&5
7086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 cat > conftest.$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7092 /* System header to define __stub macros and hopefully few prototypes,
7093 which can conflict with char $ac_func(); below. */
7095 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7102 /* The GNU C library defines this for functions which it implements
7103 to always fail with ENOSYS. Some functions are actually named
7104 something starting with __ and the normal name is an alias. */
7105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7115 eval "ac_cv_func_$ac_func=yes"
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7120 eval "ac_cv_func_$ac_func=no"
7125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7128 cat >> confdefs.h <<EOF
7129 #define $ac_tr_func 1
7133 echo "$ac_t""no" 1>&6
7137 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7138 echo "configure:7139: checking for putprpwnam in -lsecurity" >&5
7139 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 ac_save_LIBS="$LIBS"
7144 LIBS="-lsecurity $LIBS"
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* Override any gcc2 internal prototype to avoid an error. */
7149 /* We use char because int might match the return type of a gcc2
7150 builtin and then its argument prototype would still apply. */
7157 if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7159 eval "ac_cv_lib_$ac_lib_var=yes"
7161 echo "configure: failed program was:" >&5
7162 cat conftest.$ac_ext >&5
7164 eval "ac_cv_lib_$ac_lib_var=no"
7167 LIBS="$ac_save_LIBS"
7170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7174 cat >> confdefs.h <<EOF
7175 #define $ac_tr_lib 1
7178 LIBS="-lsecurity $LIBS"
7181 echo "$ac_t""no" 1>&6
7184 for ac_func in putprpwnam
7186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7187 echo "configure:7188: checking for $ac_func" >&5
7188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* System header to define __stub macros and hopefully few prototypes,
7195 which can conflict with char $ac_func(); below. */
7197 /* Override any gcc2 internal prototype to avoid an error. */
7198 /* We use char because int might match the return type of a gcc2
7199 builtin and then its argument prototype would still apply. */
7204 /* The GNU C library defines this for functions which it implements
7205 to always fail with ENOSYS. Some functions are actually named
7206 something starting with __ and the normal name is an alias. */
7207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7217 eval "ac_cv_func_$ac_func=yes"
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7222 eval "ac_cv_func_$ac_func=no"
7227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7230 cat >> confdefs.h <<EOF
7231 #define $ac_tr_func 1
7235 echo "$ac_t""no" 1>&6
7243 *-lsec*) for ac_func in putprpwnam
7245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7246 echo "configure:7247: checking for $ac_func" >&5
7247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7250 cat > conftest.$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7253 /* System header to define __stub macros and hopefully few prototypes,
7254 which can conflict with char $ac_func(); below. */
7256 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7276 eval "ac_cv_func_$ac_func=yes"
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7281 eval "ac_cv_func_$ac_func=no"
7286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7289 cat >> confdefs.h <<EOF
7290 #define $ac_tr_func 1
7294 echo "$ac_t""no" 1>&6
7298 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7299 echo "configure:7300: checking for putprpwnam in -lsec" >&5
7300 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7304 ac_save_LIBS="$LIBS"
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 /* Override any gcc2 internal prototype to avoid an error. */
7310 /* We use char because int might match the return type of a gcc2
7311 builtin and then its argument prototype would still apply. */
7318 if { (eval echo configure:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7320 eval "ac_cv_lib_$ac_lib_var=yes"
7322 echo "configure: failed program was:" >&5
7323 cat conftest.$ac_ext >&5
7325 eval "ac_cv_lib_$ac_lib_var=no"
7328 LIBS="$ac_save_LIBS"
7331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7332 echo "$ac_t""yes" 1>&6
7333 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7335 cat >> confdefs.h <<EOF
7336 #define $ac_tr_lib 1
7342 echo "$ac_t""no" 1>&6
7345 for ac_func in putprpwnam
7347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7348 echo "configure:7349: checking for $ac_func" >&5
7349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 /* System header to define __stub macros and hopefully few prototypes,
7356 which can conflict with char $ac_func(); below. */
7358 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7365 /* The GNU C library defines this for functions which it implements
7366 to always fail with ENOSYS. Some functions are actually named
7367 something starting with __ and the normal name is an alias. */
7368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7376 if { (eval echo configure:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7378 eval "ac_cv_func_$ac_func=yes"
7380 echo "configure: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7383 eval "ac_cv_func_$ac_func=no"
7388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7389 echo "$ac_t""yes" 1>&6
7390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7391 cat >> confdefs.h <<EOF
7392 #define $ac_tr_func 1
7396 echo "$ac_t""no" 1>&6
7405 *-lsecurity*) for ac_func in set_auth_parameters
7407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7408 echo "configure:7409: checking for $ac_func" >&5
7409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7412 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7415 /* System header to define __stub macros and hopefully few prototypes,
7416 which can conflict with char $ac_func(); below. */
7418 /* Override any gcc2 internal prototype to avoid an error. */
7419 /* We use char because int might match the return type of a gcc2
7420 builtin and then its argument prototype would still apply. */
7425 /* The GNU C library defines this for functions which it implements
7426 to always fail with ENOSYS. Some functions are actually named
7427 something starting with __ and the normal name is an alias. */
7428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7438 eval "ac_cv_func_$ac_func=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 eval "ac_cv_func_$ac_func=no"
7448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7451 cat >> confdefs.h <<EOF
7452 #define $ac_tr_func 1
7456 echo "$ac_t""no" 1>&6
7460 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7461 echo "configure:7462: checking for set_auth_parameters in -lsecurity" >&5
7462 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7466 ac_save_LIBS="$LIBS"
7467 LIBS="-lsecurity $LIBS"
7468 cat > conftest.$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7474 char set_auth_parameters();
7477 set_auth_parameters()
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482 eval "ac_cv_lib_$ac_lib_var=yes"
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7487 eval "ac_cv_lib_$ac_lib_var=no"
7490 LIBS="$ac_save_LIBS"
7493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7497 cat >> confdefs.h <<EOF
7498 #define $ac_tr_lib 1
7501 LIBS="-lsecurity $LIBS"
7504 echo "$ac_t""no" 1>&6
7507 for ac_func in set_auth_parameters
7509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_func" >&5
7511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 /* System header to define __stub macros and hopefully few prototypes,
7518 which can conflict with char $ac_func(); below. */
7520 /* Override any gcc2 internal prototype to avoid an error. */
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7527 /* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540 eval "ac_cv_func_$ac_func=yes"
7542 echo "configure: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7545 eval "ac_cv_func_$ac_func=no"
7550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7553 cat >> confdefs.h <<EOF
7554 #define $ac_tr_func 1
7558 echo "$ac_t""no" 1>&6
7566 *-lsec*) for ac_func in set_auth_parameters
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7573 cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7599 eval "ac_cv_func_$ac_func=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 eval "ac_cv_func_$ac_func=no"
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h <<EOF
7613 #define $ac_tr_func 1
7617 echo "$ac_t""no" 1>&6
7621 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7622 echo "configure:7623: checking for set_auth_parameters in -lsec" >&5
7623 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 ac_save_LIBS="$LIBS"
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7635 char set_auth_parameters();
7638 set_auth_parameters()
7641 if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7643 eval "ac_cv_lib_$ac_lib_var=yes"
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7648 eval "ac_cv_lib_$ac_lib_var=no"
7651 LIBS="$ac_save_LIBS"
7654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7658 cat >> confdefs.h <<EOF
7659 #define $ac_tr_lib 1
7665 echo "$ac_t""no" 1>&6
7668 for ac_func in set_auth_parameters
7670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7671 echo "configure:7672: checking for $ac_func" >&5
7672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 cat > conftest.$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func(); below. */
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7701 eval "ac_cv_func_$ac_func=yes"
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7706 eval "ac_cv_func_$ac_func=no"
7711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7714 cat >> confdefs.h <<EOF
7715 #define $ac_tr_func 1
7719 echo "$ac_t""no" 1>&6
7727 # UnixWare 7.x has its getspnam in -lgen
7729 *-lgen*) for ac_func in getspnam
7731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7732 echo "configure:7733: checking for $ac_func" >&5
7733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7736 cat > conftest.$ac_ext <<EOF
7737 #line 7738 "configure"
7738 #include "confdefs.h"
7739 /* System header to define __stub macros and hopefully few prototypes,
7740 which can conflict with char $ac_func(); below. */
7742 /* Override any gcc2 internal prototype to avoid an error. */
7743 /* We use char because int might match the return type of a gcc2
7744 builtin and then its argument prototype would still apply. */
7749 /* The GNU C library defines this for functions which it implements
7750 to always fail with ENOSYS. Some functions are actually named
7751 something starting with __ and the normal name is an alias. */
7752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7760 if { (eval echo configure:7761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7762 eval "ac_cv_func_$ac_func=yes"
7764 echo "configure: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7767 eval "ac_cv_func_$ac_func=no"
7772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7773 echo "$ac_t""yes" 1>&6
7774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7775 cat >> confdefs.h <<EOF
7776 #define $ac_tr_func 1
7780 echo "$ac_t""no" 1>&6
7784 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7785 echo "configure:7786: checking for getspnam in -lgen" >&5
7786 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7790 ac_save_LIBS="$LIBS"
7792 cat > conftest.$ac_ext <<EOF
7793 #line 7794 "configure"
7794 #include "confdefs.h"
7795 /* Override any gcc2 internal prototype to avoid an error. */
7796 /* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806 eval "ac_cv_lib_$ac_lib_var=yes"
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7811 eval "ac_cv_lib_$ac_lib_var=no"
7814 LIBS="$ac_save_LIBS"
7817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7818 echo "$ac_t""yes" 1>&6
7819 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7820 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7821 cat >> confdefs.h <<EOF
7822 #define $ac_tr_lib 1
7828 echo "$ac_t""no" 1>&6
7831 for ac_func in getspnam
7833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7834 echo "configure:7835: checking for $ac_func" >&5
7835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* System header to define __stub macros and hopefully few prototypes,
7842 which can conflict with char $ac_func(); below. */
7844 /* Override any gcc2 internal prototype to avoid an error. */
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7851 /* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 eval "ac_cv_func_$ac_func=yes"
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 eval "ac_cv_func_$ac_func=no"
7874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7875 echo "$ac_t""yes" 1>&6
7876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7877 cat >> confdefs.h <<EOF
7878 #define $ac_tr_func 1
7882 echo "$ac_t""no" 1>&6
7891 *-lsecurity*) for ac_func in getspnam
7893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7894 echo "configure:7895: checking for $ac_func" >&5
7895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7901 /* System header to define __stub macros and hopefully few prototypes,
7902 which can conflict with char $ac_func(); below. */
7904 /* Override any gcc2 internal prototype to avoid an error. */
7905 /* We use char because int might match the return type of a gcc2
7906 builtin and then its argument prototype would still apply. */
7911 /* The GNU C library defines this for functions which it implements
7912 to always fail with ENOSYS. Some functions are actually named
7913 something starting with __ and the normal name is an alias. */
7914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7922 if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7924 eval "ac_cv_func_$ac_func=yes"
7926 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7929 eval "ac_cv_func_$ac_func=no"
7934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7935 echo "$ac_t""yes" 1>&6
7936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7937 cat >> confdefs.h <<EOF
7938 #define $ac_tr_func 1
7942 echo "$ac_t""no" 1>&6
7946 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7947 echo "configure:7948: checking for getspnam in -lsecurity" >&5
7948 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7950 echo $ac_n "(cached) $ac_c" 1>&6
7952 ac_save_LIBS="$LIBS"
7953 LIBS="-lsecurity $LIBS"
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 /* Override any gcc2 internal prototype to avoid an error. */
7958 /* We use char because int might match the return type of a gcc2
7959 builtin and then its argument prototype would still apply. */
7966 if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7968 eval "ac_cv_lib_$ac_lib_var=yes"
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 eval "ac_cv_lib_$ac_lib_var=no"
7976 LIBS="$ac_save_LIBS"
7979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7980 echo "$ac_t""yes" 1>&6
7981 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7982 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7983 cat >> confdefs.h <<EOF
7984 #define $ac_tr_lib 1
7987 LIBS="-lsecurity $LIBS"
7990 echo "$ac_t""no" 1>&6
7993 for ac_func in getspnam
7995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7996 echo "configure:7997: checking for $ac_func" >&5
7997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
8000 cat > conftest.$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8003 /* System header to define __stub macros and hopefully few prototypes,
8004 which can conflict with char $ac_func(); below. */
8006 /* Override any gcc2 internal prototype to avoid an error. */
8007 /* We use char because int might match the return type of a gcc2
8008 builtin and then its argument prototype would still apply. */
8013 /* The GNU C library defines this for functions which it implements
8014 to always fail with ENOSYS. Some functions are actually named
8015 something starting with __ and the normal name is an alias. */
8016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8026 eval "ac_cv_func_$ac_func=yes"
8028 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8031 eval "ac_cv_func_$ac_func=no"
8036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8037 echo "$ac_t""yes" 1>&6
8038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8039 cat >> confdefs.h <<EOF
8040 #define $ac_tr_func 1
8044 echo "$ac_t""no" 1>&6
8052 *-lsec*) for ac_func in getspnam
8054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8055 echo "configure:8056: checking for $ac_func" >&5
8056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8057 echo $ac_n "(cached) $ac_c" 1>&6
8059 cat > conftest.$ac_ext <<EOF
8060 #line 8061 "configure"
8061 #include "confdefs.h"
8062 /* System header to define __stub macros and hopefully few prototypes,
8063 which can conflict with char $ac_func(); below. */
8065 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8072 /* The GNU C library defines this for functions which it implements
8073 to always fail with ENOSYS. Some functions are actually named
8074 something starting with __ and the normal name is an alias. */
8075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8083 if { (eval echo configure:8084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8085 eval "ac_cv_func_$ac_func=yes"
8087 echo "configure: failed program was:" >&5
8088 cat conftest.$ac_ext >&5
8090 eval "ac_cv_func_$ac_func=no"
8095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8096 echo "$ac_t""yes" 1>&6
8097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8098 cat >> confdefs.h <<EOF
8099 #define $ac_tr_func 1
8103 echo "$ac_t""no" 1>&6
8107 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8108 echo "configure:8109: checking for getspnam in -lsec" >&5
8109 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8113 ac_save_LIBS="$LIBS"
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 /* Override any gcc2 internal prototype to avoid an error. */
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8127 if { (eval echo configure:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8129 eval "ac_cv_lib_$ac_lib_var=yes"
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8134 eval "ac_cv_lib_$ac_lib_var=no"
8137 LIBS="$ac_save_LIBS"
8140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8141 echo "$ac_t""yes" 1>&6
8142 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8144 cat >> confdefs.h <<EOF
8145 #define $ac_tr_lib 1
8151 echo "$ac_t""no" 1>&6
8154 for ac_func in getspnam
8156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8157 echo "configure:8158: checking for $ac_func" >&5
8158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8159 echo $ac_n "(cached) $ac_c" 1>&6
8161 cat > conftest.$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8164 /* System header to define __stub macros and hopefully few prototypes,
8165 which can conflict with char $ac_func(); below. */
8167 /* Override any gcc2 internal prototype to avoid an error. */
8168 /* We use char because int might match the return type of a gcc2
8169 builtin and then its argument prototype would still apply. */
8174 /* The GNU C library defines this for functions which it implements
8175 to always fail with ENOSYS. Some functions are actually named
8176 something starting with __ and the normal name is an alias. */
8177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8185 if { (eval echo configure:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8187 eval "ac_cv_func_$ac_func=yes"
8189 echo "configure: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8192 eval "ac_cv_func_$ac_func=no"
8197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8198 echo "$ac_t""yes" 1>&6
8199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8200 cat >> confdefs.h <<EOF
8201 #define $ac_tr_func 1
8205 echo "$ac_t""no" 1>&6
8214 *-lsecurity*) for ac_func in bigcrypt
8216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8217 echo "configure:8218: checking for $ac_func" >&5
8218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8219 echo $ac_n "(cached) $ac_c" 1>&6
8221 cat > conftest.$ac_ext <<EOF
8222 #line 8223 "configure"
8223 #include "confdefs.h"
8224 /* System header to define __stub macros and hopefully few prototypes,
8225 which can conflict with char $ac_func(); below. */
8227 /* Override any gcc2 internal prototype to avoid an error. */
8228 /* We use char because int might match the return type of a gcc2
8229 builtin and then its argument prototype would still apply. */
8234 /* The GNU C library defines this for functions which it implements
8235 to always fail with ENOSYS. Some functions are actually named
8236 something starting with __ and the normal name is an alias. */
8237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8245 if { (eval echo configure:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8247 eval "ac_cv_func_$ac_func=yes"
8249 echo "configure: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8252 eval "ac_cv_func_$ac_func=no"
8257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8258 echo "$ac_t""yes" 1>&6
8259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8260 cat >> confdefs.h <<EOF
8261 #define $ac_tr_func 1
8265 echo "$ac_t""no" 1>&6
8269 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8270 echo "configure:8271: checking for bigcrypt in -lsecurity" >&5
8271 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8275 ac_save_LIBS="$LIBS"
8276 LIBS="-lsecurity $LIBS"
8277 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8280 /* Override any gcc2 internal prototype to avoid an error. */
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8289 if { (eval echo configure:8290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8291 eval "ac_cv_lib_$ac_lib_var=yes"
8293 echo "configure: failed program was:" >&5
8294 cat conftest.$ac_ext >&5
8296 eval "ac_cv_lib_$ac_lib_var=no"
8299 LIBS="$ac_save_LIBS"
8302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8303 echo "$ac_t""yes" 1>&6
8304 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8306 cat >> confdefs.h <<EOF
8307 #define $ac_tr_lib 1
8310 LIBS="-lsecurity $LIBS"
8313 echo "$ac_t""no" 1>&6
8316 for ac_func in bigcrypt
8318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8319 echo "configure:8320: checking for $ac_func" >&5
8320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8321 echo $ac_n "(cached) $ac_c" 1>&6
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* System header to define __stub macros and hopefully few prototypes,
8327 which can conflict with char $ac_func(); below. */
8329 /* Override any gcc2 internal prototype to avoid an error. */
8330 /* We use char because int might match the return type of a gcc2
8331 builtin and then its argument prototype would still apply. */
8336 /* The GNU C library defines this for functions which it implements
8337 to always fail with ENOSYS. Some functions are actually named
8338 something starting with __ and the normal name is an alias. */
8339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8349 eval "ac_cv_func_$ac_func=yes"
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8354 eval "ac_cv_func_$ac_func=no"
8359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8360 echo "$ac_t""yes" 1>&6
8361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8362 cat >> confdefs.h <<EOF
8363 #define $ac_tr_func 1
8367 echo "$ac_t""no" 1>&6
8375 *-lsec*) for ac_func in bigcrypt
8377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8378 echo "configure:8379: checking for $ac_func" >&5
8379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8382 cat > conftest.$ac_ext <<EOF
8383 #line 8384 "configure"
8384 #include "confdefs.h"
8385 /* System header to define __stub macros and hopefully few prototypes,
8386 which can conflict with char $ac_func(); below. */
8388 /* Override any gcc2 internal prototype to avoid an error. */
8389 /* We use char because int might match the return type of a gcc2
8390 builtin and then its argument prototype would still apply. */
8395 /* The GNU C library defines this for functions which it implements
8396 to always fail with ENOSYS. Some functions are actually named
8397 something starting with __ and the normal name is an alias. */
8398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8406 if { (eval echo configure:8407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8408 eval "ac_cv_func_$ac_func=yes"
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8413 eval "ac_cv_func_$ac_func=no"
8418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8419 echo "$ac_t""yes" 1>&6
8420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8421 cat >> confdefs.h <<EOF
8422 #define $ac_tr_func 1
8426 echo "$ac_t""no" 1>&6
8430 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8431 echo "configure:8432: checking for bigcrypt in -lsec" >&5
8432 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6
8436 ac_save_LIBS="$LIBS"
8438 cat > conftest.$ac_ext <<EOF
8439 #line 8440 "configure"
8440 #include "confdefs.h"
8441 /* Override any gcc2 internal prototype to avoid an error. */
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8450 if { (eval echo configure:8451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8452 eval "ac_cv_lib_$ac_lib_var=yes"
8454 echo "configure: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8457 eval "ac_cv_lib_$ac_lib_var=no"
8460 LIBS="$ac_save_LIBS"
8463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8464 echo "$ac_t""yes" 1>&6
8465 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8467 cat >> confdefs.h <<EOF
8468 #define $ac_tr_lib 1
8474 echo "$ac_t""no" 1>&6
8477 for ac_func in bigcrypt
8479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8480 echo "configure:8481: checking for $ac_func" >&5
8481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* System header to define __stub macros and hopefully few prototypes,
8488 which can conflict with char $ac_func(); below. */
8490 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8497 /* The GNU C library defines this for functions which it implements
8498 to always fail with ENOSYS. Some functions are actually named
8499 something starting with __ and the normal name is an alias. */
8500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8510 eval "ac_cv_func_$ac_func=yes"
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8515 eval "ac_cv_func_$ac_func=no"
8520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8521 echo "$ac_t""yes" 1>&6
8522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8523 cat >> confdefs.h <<EOF
8524 #define $ac_tr_func 1
8528 echo "$ac_t""no" 1>&6
8537 *-lsecurity*) for ac_func in getprpwnam
8539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8540 echo "configure:8541: checking for $ac_func" >&5
8541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8544 cat > conftest.$ac_ext <<EOF
8545 #line 8546 "configure"
8546 #include "confdefs.h"
8547 /* System header to define __stub macros and hopefully few prototypes,
8548 which can conflict with char $ac_func(); below. */
8550 /* Override any gcc2 internal prototype to avoid an error. */
8551 /* We use char because int might match the return type of a gcc2
8552 builtin and then its argument prototype would still apply. */
8557 /* The GNU C library defines this for functions which it implements
8558 to always fail with ENOSYS. Some functions are actually named
8559 something starting with __ and the normal name is an alias. */
8560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8570 eval "ac_cv_func_$ac_func=yes"
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 eval "ac_cv_func_$ac_func=no"
8580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8581 echo "$ac_t""yes" 1>&6
8582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8583 cat >> confdefs.h <<EOF
8584 #define $ac_tr_func 1
8588 echo "$ac_t""no" 1>&6
8592 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8593 echo "configure:8594: checking for getprpwnam in -lsecurity" >&5
8594 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8596 echo $ac_n "(cached) $ac_c" 1>&6
8598 ac_save_LIBS="$LIBS"
8599 LIBS="-lsecurity $LIBS"
8600 cat > conftest.$ac_ext <<EOF
8601 #line 8602 "configure"
8602 #include "confdefs.h"
8603 /* Override any gcc2 internal prototype to avoid an error. */
8604 /* We use char because int might match the return type of a gcc2
8605 builtin and then its argument prototype would still apply. */
8612 if { (eval echo configure:8613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8614 eval "ac_cv_lib_$ac_lib_var=yes"
8616 echo "configure: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8619 eval "ac_cv_lib_$ac_lib_var=no"
8622 LIBS="$ac_save_LIBS"
8625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8626 echo "$ac_t""yes" 1>&6
8627 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8629 cat >> confdefs.h <<EOF
8630 #define $ac_tr_lib 1
8633 LIBS="-lsecurity $LIBS"
8636 echo "$ac_t""no" 1>&6
8639 for ac_func in getprpwnam
8641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8642 echo "configure:8643: checking for $ac_func" >&5
8643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8646 cat > conftest.$ac_ext <<EOF
8647 #line 8648 "configure"
8648 #include "confdefs.h"
8649 /* System header to define __stub macros and hopefully few prototypes,
8650 which can conflict with char $ac_func(); below. */
8652 /* Override any gcc2 internal prototype to avoid an error. */
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8659 /* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8670 if { (eval echo configure:8671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8672 eval "ac_cv_func_$ac_func=yes"
8674 echo "configure: failed program was:" >&5
8675 cat conftest.$ac_ext >&5
8677 eval "ac_cv_func_$ac_func=no"
8682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8683 echo "$ac_t""yes" 1>&6
8684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8685 cat >> confdefs.h <<EOF
8686 #define $ac_tr_func 1
8690 echo "$ac_t""no" 1>&6
8698 *-lsec*) for ac_func in getprpwnam
8700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8701 echo "configure:8702: checking for $ac_func" >&5
8702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8703 echo $ac_n "(cached) $ac_c" 1>&6
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 /* System header to define __stub macros and hopefully few prototypes,
8709 which can conflict with char $ac_func(); below. */
8711 /* Override any gcc2 internal prototype to avoid an error. */
8712 /* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8718 /* The GNU C library defines this for functions which it implements
8719 to always fail with ENOSYS. Some functions are actually named
8720 something starting with __ and the normal name is an alias. */
8721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8731 eval "ac_cv_func_$ac_func=yes"
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 eval "ac_cv_func_$ac_func=no"
8741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8742 echo "$ac_t""yes" 1>&6
8743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8744 cat >> confdefs.h <<EOF
8745 #define $ac_tr_func 1
8749 echo "$ac_t""no" 1>&6
8753 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8754 echo "configure:8755: checking for getprpwnam in -lsec" >&5
8755 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8757 echo $ac_n "(cached) $ac_c" 1>&6
8759 ac_save_LIBS="$LIBS"
8761 cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 /* Override any gcc2 internal prototype to avoid an error. */
8765 /* We use char because int might match the return type of a gcc2
8766 builtin and then its argument prototype would still apply. */
8773 if { (eval echo configure:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8775 eval "ac_cv_lib_$ac_lib_var=yes"
8777 echo "configure: failed program was:" >&5
8778 cat conftest.$ac_ext >&5
8780 eval "ac_cv_lib_$ac_lib_var=no"
8783 LIBS="$ac_save_LIBS"
8786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8787 echo "$ac_t""yes" 1>&6
8788 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8790 cat >> confdefs.h <<EOF
8791 #define $ac_tr_lib 1
8797 echo "$ac_t""no" 1>&6
8800 for ac_func in getprpwnam
8802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8803 echo "configure:8804: checking for $ac_func" >&5
8804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8807 cat > conftest.$ac_ext <<EOF
8808 #line 8809 "configure"
8809 #include "confdefs.h"
8810 /* System header to define __stub macros and hopefully few prototypes,
8811 which can conflict with char $ac_func(); below. */
8813 /* Override any gcc2 internal prototype to avoid an error. */
8814 /* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8820 /* The GNU C library defines this for functions which it implements
8821 to always fail with ENOSYS. Some functions are actually named
8822 something starting with __ and the normal name is an alias. */
8823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8831 if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8833 eval "ac_cv_func_$ac_func=yes"
8835 echo "configure: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8838 eval "ac_cv_func_$ac_func=no"
8843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8844 echo "$ac_t""yes" 1>&6
8845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8846 cat >> confdefs.h <<EOF
8847 #define $ac_tr_func 1
8851 echo "$ac_t""no" 1>&6
8859 # this bit needs to be modified for each OS that is suported by
8860 # smbwrapper. You need to specify how to created a shared library and
8861 # how to compile C code to produce PIC object files
8863 # these are the defaults, good for lots of systems
8872 # Assume non-shared by default and override below
8874 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8875 echo "configure:8876: checking ability to build shared libraries" >&5
8877 # and these are for particular systems
8879 *linux*) cat >> confdefs.h <<\EOF
8885 DYNEXP="-Wl,--export-dynamic"
8887 SONAMEFLAG="-Wl,-soname="
8888 cat >> confdefs.h <<\EOF
8889 #define STAT_ST_BLOCKSIZE 512
8893 *solaris*) cat >> confdefs.h <<\EOF
8900 if test "${GCC}" = "yes"; then
8902 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8907 ## ${CFLAGS} added for building 64-bit shared
8908 ## libs using Sun's Compiler
8909 LDSHFLAGS="-G \${CFLAGS}"
8913 cat >> confdefs.h <<\EOF
8914 #define STAT_ST_BLOCKSIZE 512
8918 *sunos*) cat >> confdefs.h <<\EOF
8924 SONAMEFLAG="-Wl,-h,"
8925 PICFLAG="-KPIC" # Is this correct for SunOS
8927 *bsd*) BLDSHARED="true"
8929 DYNEXP="-Wl,-Bdynamic"
8930 SONAMEFLAG="-Wl,-soname,"
8932 cat >> confdefs.h <<\EOF
8933 #define STAT_ST_BLOCKSIZE 512
8937 *irix*) cat >> confdefs.h <<\EOF
8942 *irix6*) cat >> confdefs.h <<\EOF
8948 ATTEMPT_WRAP32_BUILD=yes
8950 LDSHFLAGS="-set_version sgi1.0 -shared"
8951 SONAMEFLAG="-soname "
8953 if test "${GCC}" = "yes"; then
8958 cat >> confdefs.h <<\EOF
8959 #define STAT_ST_BLOCKSIZE 512
8963 *aix*) cat >> confdefs.h <<\EOF
8968 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8969 DYNEXP="-Wl,-brtl,-bexpall"
8970 if test "${GCC}" = "yes"; then
8973 PICFLAG="-O2 -qmaxmem=6000"
8974 ## for funky AIX compiler using strncpy()
8975 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8978 cat >> confdefs.h <<\EOF
8979 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8983 *hpux*) cat >> confdefs.h <<\EOF
8988 # Use special PIC flags for the native HP-UX compiler.
8989 if test $ac_cv_prog_cc_Ae = yes; then
8992 LDSHFLAGS="-B symbolic -b -z"
8997 cat >> confdefs.h <<\EOF
8998 #define STAT_ST_BLOCKSIZE 8192
9002 *qnx*) cat >> confdefs.h <<\EOF
9006 *osf*) cat >> confdefs.h <<\EOF
9012 SONAMEFLAG="-Wl,-soname,"
9015 *sco*) cat >> confdefs.h <<\EOF
9019 *unixware*) cat >> confdefs.h <<\EOF
9025 SONAMEFLAG="-Wl,-soname,"
9028 *next2*) cat >> confdefs.h <<\EOF
9032 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9033 set dummy groff; ac_word=$2
9034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9035 echo "configure:9036: checking for $ac_word" >&5
9036 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9039 if test -n "$ROFF"; then
9040 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9044 for ac_dir in $ac_dummy; do
9045 test -z "$ac_dir" && ac_dir=.
9046 if test -f $ac_dir/$ac_word; then
9047 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9054 ROFF="$ac_cv_prog_ROFF"
9055 if test -n "$ROFF"; then
9056 echo "$ac_t""$ROFF" 1>&6
9058 echo "$ac_t""no" 1>&6
9063 *-univel-*) if test "$GCC" != yes ; then
9064 cat >> confdefs.h <<\EOF
9065 #define HAVE_MEMSET 1
9072 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9073 #define RELIANTUNIX 1
9080 if test "$GCC" != yes ; then
9081 cat >> confdefs.h <<\EOF
9082 #define HAVE_MEMSET 1
9090 echo "$ac_t""$BLDSHARED" 1>&6
9091 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9092 echo "configure:9093: checking linker flags for shared libraries" >&5
9093 echo "$ac_t""$LDSHFLAGS" 1>&6
9094 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9095 echo "configure:9096: checking compiler flags for position-independent code" >&5
9096 echo "$ac_t""$PICFLAGS" 1>&6
9098 #######################################################
9099 # test whether building a shared library actually works
9100 if test $BLDSHARED = true; then
9101 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9102 echo "configure:9103: checking whether building shared libraries actually works" >&5
9103 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9107 ac_cv_shlib_works=no
9108 # try building a trivial shared library
9109 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9110 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9111 ac_cv_shlib_works=yes
9112 rm -f shlib.so shlib.po
9116 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9117 if test $ac_cv_shlib_works = no; then
9123 # this updates our target list if we can build shared libs
9124 if test $BLDSHARED = true; then
9125 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9127 LIBSMBCLIENT_SHARED=
9132 echo $ac_n "checking for long long""... $ac_c" 1>&6
9133 echo "configure:9134: checking for long long" >&5
9134 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9135 echo $ac_n "(cached) $ac_c" 1>&6
9138 if test "$cross_compiling" = yes; then
9139 samba_cv_have_longlong=cross
9141 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure"
9143 #include "confdefs.h"
9145 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9147 if { (eval echo configure:9148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9149 samba_cv_have_longlong=yes
9151 echo "configure: failed program was:" >&5
9152 cat conftest.$ac_ext >&5
9154 samba_cv_have_longlong=no
9161 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9162 if test x"$samba_cv_have_longlong" = x"yes"; then
9163 cat >> confdefs.h <<\EOF
9164 #define HAVE_LONGLONG 1
9170 # Check if the compiler supports the LL prefix on long long integers.
9173 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9174 echo "configure:9175: checking for LL suffix on long long integers" >&5
9175 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9176 echo $ac_n "(cached) $ac_c" 1>&6
9179 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9184 long long i = 0x8000000000LL
9187 if { (eval echo configure:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9189 samba_cv_compiler_supports_ll=yes
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9194 samba_cv_compiler_supports_ll=no
9199 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9200 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9201 cat >> confdefs.h <<\EOF
9202 #define COMPILER_SUPPORTS_LL 1
9208 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9209 echo "configure:9210: checking for 64 bit off_t" >&5
9210 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9211 echo $ac_n "(cached) $ac_c" 1>&6
9214 if test "$cross_compiling" = yes; then
9215 samba_cv_SIZEOF_OFF_T=cross
9217 cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9221 #include <sys/stat.h>
9222 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9224 if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9226 samba_cv_SIZEOF_OFF_T=yes
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9231 samba_cv_SIZEOF_OFF_T=no
9238 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9239 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9240 cat >> confdefs.h <<\EOF
9241 #define SIZEOF_OFF_T 8
9246 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9247 echo "configure:9248: checking for off64_t" >&5
9248 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9252 if test "$cross_compiling" = yes; then
9253 samba_cv_HAVE_OFF64_T=cross
9255 cat > conftest.$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9259 #if defined(HAVE_UNISTD_H)
9263 #include <sys/stat.h>
9264 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9266 if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9268 samba_cv_HAVE_OFF64_T=yes
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9273 samba_cv_HAVE_OFF64_T=no
9280 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9281 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9282 cat >> confdefs.h <<\EOF
9283 #define HAVE_OFF64_T 1
9288 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9289 echo "configure:9290: checking for 64 bit ino_t" >&5
9290 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9291 echo $ac_n "(cached) $ac_c" 1>&6
9294 if test "$cross_compiling" = yes; then
9295 samba_cv_SIZEOF_INO_T=cross
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9301 #include <sys/stat.h>
9302 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9306 samba_cv_SIZEOF_INO_T=yes
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9311 samba_cv_SIZEOF_INO_T=no
9318 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9319 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9320 cat >> confdefs.h <<\EOF
9321 #define SIZEOF_INO_T 8
9326 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9327 echo "configure:9328: checking for ino64_t" >&5
9328 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9332 if test "$cross_compiling" = yes; then
9333 samba_cv_HAVE_INO64_T=cross
9335 cat > conftest.$ac_ext <<EOF
9336 #line 9337 "configure"
9337 #include "confdefs.h"
9339 #if defined(HAVE_UNISTD_H)
9343 #include <sys/stat.h>
9344 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9346 if { (eval echo configure:9347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9348 samba_cv_HAVE_INO64_T=yes
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9353 samba_cv_HAVE_INO64_T=no
9360 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9361 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9362 cat >> confdefs.h <<\EOF
9363 #define HAVE_INO64_T 1
9368 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9369 echo "configure:9370: checking for dev64_t" >&5
9370 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9374 if test "$cross_compiling" = yes; then
9375 samba_cv_HAVE_DEV64_T=cross
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9381 #if defined(HAVE_UNISTD_H)
9385 #include <sys/stat.h>
9386 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9388 if { (eval echo configure:9389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9390 samba_cv_HAVE_DEV64_T=yes
9392 echo "configure: failed program was:" >&5
9393 cat conftest.$ac_ext >&5
9395 samba_cv_HAVE_DEV64_T=no
9402 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9403 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9404 cat >> confdefs.h <<\EOF
9405 #define HAVE_DEV64_T 1
9410 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9411 echo "configure:9412: checking for struct dirent64" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9420 #if defined(HAVE_UNISTD_H)
9423 #include <sys/types.h>
9429 if { (eval echo configure:9430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9431 samba_cv_HAVE_STRUCT_DIRENT64=yes
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9436 samba_cv_HAVE_STRUCT_DIRENT64=no
9441 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9442 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9443 cat >> confdefs.h <<\EOF
9444 #define HAVE_STRUCT_DIRENT64 1
9449 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9450 echo "configure:9451: checking for major macro" >&5
9451 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9455 if test "$cross_compiling" = yes; then
9456 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9462 #if defined(HAVE_UNISTD_H)
9465 #include <sys/types.h>
9466 main() { dev_t dev; int i = major(dev); return 0; }
9468 if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9470 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9472 echo "configure: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9475 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9482 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9483 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9484 cat >> confdefs.h <<\EOF
9485 #define HAVE_DEVICE_MAJOR_FN 1
9490 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9491 echo "configure:9492: checking for minor macro" >&5
9492 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9496 if test "$cross_compiling" = yes; then
9497 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9499 cat > conftest.$ac_ext <<EOF
9500 #line 9501 "configure"
9501 #include "confdefs.h"
9503 #if defined(HAVE_UNISTD_H)
9506 #include <sys/types.h>
9507 main() { dev_t dev; int i = minor(dev); return 0; }
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9511 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 samba_cv_HAVE_DEVICE_MINOR_FN=no
9523 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9524 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9525 cat >> confdefs.h <<\EOF
9526 #define HAVE_DEVICE_MINOR_FN 1
9531 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9532 echo "configure:9533: checking for unsigned char" >&5
9533 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9534 echo $ac_n "(cached) $ac_c" 1>&6
9537 if test "$cross_compiling" = yes; then
9538 samba_cv_HAVE_UNSIGNED_CHAR=cross
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9544 main() { char c; c=250; exit((c > 0)?0:1); }
9546 if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9548 samba_cv_HAVE_UNSIGNED_CHAR=yes
9550 echo "configure: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9553 samba_cv_HAVE_UNSIGNED_CHAR=no
9560 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9561 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9562 cat >> confdefs.h <<\EOF
9563 #define HAVE_UNSIGNED_CHAR 1
9568 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9569 echo "configure:9570: checking for sin_len in sock" >&5
9570 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9571 echo $ac_n "(cached) $ac_c" 1>&6
9574 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure"
9576 #include "confdefs.h"
9577 #include <sys/types.h>
9578 #include <sys/socket.h>
9579 #include <netinet/in.h>
9581 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9584 if { (eval echo configure:9585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9586 samba_cv_HAVE_SOCK_SIN_LEN=yes
9588 echo "configure: failed program was:" >&5
9589 cat conftest.$ac_ext >&5
9591 samba_cv_HAVE_SOCK_SIN_LEN=no
9596 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9597 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9598 cat >> confdefs.h <<\EOF
9599 #define HAVE_SOCK_SIN_LEN 1
9604 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9605 echo "configure:9606: checking whether seekdir returns void" >&5
9606 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9607 echo $ac_n "(cached) $ac_c" 1>&6
9610 cat > conftest.$ac_ext <<EOF
9611 #line 9612 "configure"
9612 #include "confdefs.h"
9613 #include <sys/types.h>
9615 void seekdir(DIR *d, long loc) { return; }
9620 if { (eval echo configure:9621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9622 samba_cv_SEEKDIR_RETURNS_VOID=yes
9624 echo "configure: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9627 samba_cv_SEEKDIR_RETURNS_VOID=no
9632 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9633 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9634 cat >> confdefs.h <<\EOF
9635 #define SEEKDIR_RETURNS_VOID 1
9640 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9641 echo "configure:9642: checking for __FILE__ macro" >&5
9642 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9646 cat > conftest.$ac_ext <<EOF
9647 #line 9648 "configure"
9648 #include "confdefs.h"
9651 printf("%s\n", __FILE__);
9654 if { (eval echo configure:9655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9656 samba_cv_HAVE_FILE_MACRO=yes
9658 echo "configure: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
9661 samba_cv_HAVE_FILE_MACRO=no
9666 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9667 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9668 cat >> confdefs.h <<\EOF
9669 #define HAVE_FILE_MACRO 1
9674 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9675 echo "configure:9676: checking for __FUNCTION__ macro" >&5
9676 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9677 echo $ac_n "(cached) $ac_c" 1>&6
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9685 printf("%s\n", __FUNCTION__);
9688 if { (eval echo configure:9689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9690 samba_cv_HAVE_FUNCTION_MACRO=yes
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9695 samba_cv_HAVE_FUNCTION_MACRO=no
9700 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9701 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9702 cat >> confdefs.h <<\EOF
9703 #define HAVE_FUNCTION_MACRO 1
9708 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9709 echo "configure:9710: checking if gettimeofday takes tz argument" >&5
9710 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9714 if test "$cross_compiling" = yes; then
9715 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9717 cat > conftest.$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9721 #include <sys/time.h>
9723 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9727 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9729 echo "configure: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9739 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9740 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9741 cat >> confdefs.h <<\EOF
9742 #define HAVE_GETTIMEOFDAY_TZ 1
9747 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9748 echo "configure:9749: checking for __va_copy" >&5
9749 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9762 if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9764 samba_cv_HAVE_VA_COPY=yes
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9769 samba_cv_HAVE_VA_COPY=no
9774 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9775 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9776 cat >> confdefs.h <<\EOF
9777 #define HAVE_VA_COPY 1
9782 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9783 echo "configure:9784: checking for C99 vsnprintf" >&5
9784 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9785 echo $ac_n "(cached) $ac_c" 1>&6
9788 if test "$cross_compiling" = yes; then
9789 samba_cv_HAVE_C99_VSNPRINTF=cross
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9795 #include <sys/types.h>
9797 void foo(const char *format, ...) {
9802 va_start(ap, format);
9803 len = vsnprintf(buf, 0, format, ap);
9805 if (len != 5) exit(1);
9807 va_start(ap, format);
9808 len = vsnprintf(0, 0, format, ap);
9810 if (len != 5) exit(1);
9812 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9816 main() { foo("hello"); }
9819 if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9821 samba_cv_HAVE_C99_VSNPRINTF=yes
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9826 samba_cv_HAVE_C99_VSNPRINTF=no
9833 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9834 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9835 cat >> confdefs.h <<\EOF
9836 #define HAVE_C99_VSNPRINTF 1
9841 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9842 echo "configure:9843: checking for broken readdir" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9847 if test "$cross_compiling" = yes; then
9848 samba_cv_HAVE_BROKEN_READDIR=cross
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 #include <sys/types.h>
9855 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9856 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9857 di->d_name[0] == 0) exit(0); exit(1);}
9859 if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9861 samba_cv_HAVE_BROKEN_READDIR=yes
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9866 samba_cv_HAVE_BROKEN_READDIR=no
9873 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9874 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9875 cat >> confdefs.h <<\EOF
9876 #define HAVE_BROKEN_READDIR 1
9881 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9882 echo "configure:9883: checking for utimbuf" >&5
9883 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9884 echo $ac_n "(cached) $ac_c" 1>&6
9887 cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9890 #include <sys/types.h>
9893 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9896 if { (eval echo configure:9897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9898 samba_cv_HAVE_UTIMBUF=yes
9900 echo "configure: failed program was:" >&5
9901 cat conftest.$ac_ext >&5
9903 samba_cv_HAVE_UTIMBUF=no
9908 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9909 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9910 cat >> confdefs.h <<\EOF
9911 #define HAVE_UTIMBUF 1
9917 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9920 echo "configure:9921: checking for $ac_func" >&5
9921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 /* System header to define __stub macros and hopefully few prototypes,
9928 which can conflict with char $ac_func(); below. */
9930 /* Override any gcc2 internal prototype to avoid an error. */
9931 /* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9937 /* The GNU C library defines this for functions which it implements
9938 to always fail with ENOSYS. Some functions are actually named
9939 something starting with __ and the normal name is an alias. */
9940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9948 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9950 eval "ac_cv_func_$ac_func=yes"
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9955 eval "ac_cv_func_$ac_func=no"
9960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9961 echo "$ac_t""yes" 1>&6
9962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9963 cat >> confdefs.h <<EOF
9964 #define $ac_tr_func 1
9968 echo "$ac_t""no" 1>&6
9973 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9974 echo "configure:9975: checking for ut_name in utmp" >&5
9975 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9976 echo $ac_n "(cached) $ac_c" 1>&6
9979 cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982 #include <sys/types.h>
9985 struct utmp ut; ut.ut_name[0] = 'a';
9988 if { (eval echo configure:9989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9990 samba_cv_HAVE_UT_UT_NAME=yes
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9995 samba_cv_HAVE_UT_UT_NAME=no
10000 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10001 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10002 cat >> confdefs.h <<\EOF
10003 #define HAVE_UT_UT_NAME 1
10008 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10009 echo "configure:10010: checking for ut_user in utmp" >&5
10010 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10014 cat > conftest.$ac_ext <<EOF
10015 #line 10016 "configure"
10016 #include "confdefs.h"
10017 #include <sys/types.h>
10020 struct utmp ut; ut.ut_user[0] = 'a';
10023 if { (eval echo configure:10024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10025 samba_cv_HAVE_UT_UT_USER=yes
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10030 samba_cv_HAVE_UT_UT_USER=no
10035 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10036 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10037 cat >> confdefs.h <<\EOF
10038 #define HAVE_UT_UT_USER 1
10043 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10044 echo "configure:10045: checking for ut_id in utmp" >&5
10045 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10046 echo $ac_n "(cached) $ac_c" 1>&6
10049 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 #include <sys/types.h>
10055 struct utmp ut; ut.ut_id[0] = 'a';
10058 if { (eval echo configure:10059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10060 samba_cv_HAVE_UT_UT_ID=yes
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10065 samba_cv_HAVE_UT_UT_ID=no
10070 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10071 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10072 cat >> confdefs.h <<\EOF
10073 #define HAVE_UT_UT_ID 1
10078 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10079 echo "configure:10080: checking for ut_host in utmp" >&5
10080 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 #include <sys/types.h>
10090 struct utmp ut; ut.ut_host[0] = 'a';
10093 if { (eval echo configure:10094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10095 samba_cv_HAVE_UT_UT_HOST=yes
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 samba_cv_HAVE_UT_UT_HOST=no
10105 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10106 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10107 cat >> confdefs.h <<\EOF
10108 #define HAVE_UT_UT_HOST 1
10113 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10114 echo "configure:10115: checking for ut_time in utmp" >&5
10115 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10116 echo $ac_n "(cached) $ac_c" 1>&6
10119 cat > conftest.$ac_ext <<EOF
10120 #line 10121 "configure"
10121 #include "confdefs.h"
10122 #include <sys/types.h>
10125 struct utmp ut; time_t t; ut.ut_time = t;
10128 if { (eval echo configure:10129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10130 samba_cv_HAVE_UT_UT_TIME=yes
10132 echo "configure: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10135 samba_cv_HAVE_UT_UT_TIME=no
10140 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10141 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10142 cat >> confdefs.h <<\EOF
10143 #define HAVE_UT_UT_TIME 1
10148 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10149 echo "configure:10150: checking for ut_tv in utmp" >&5
10150 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10151 echo $ac_n "(cached) $ac_c" 1>&6
10154 cat > conftest.$ac_ext <<EOF
10155 #line 10156 "configure"
10156 #include "confdefs.h"
10157 #include <sys/types.h>
10160 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10163 if { (eval echo configure:10164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10165 samba_cv_HAVE_UT_UT_TV=yes
10167 echo "configure: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10170 samba_cv_HAVE_UT_UT_TV=no
10175 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10176 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_UT_UT_TV 1
10183 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10184 echo "configure:10185: checking for ut_type in utmp" >&5
10185 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10186 echo $ac_n "(cached) $ac_c" 1>&6
10189 cat > conftest.$ac_ext <<EOF
10190 #line 10191 "configure"
10191 #include "confdefs.h"
10192 #include <sys/types.h>
10195 struct utmp ut; ut.ut_type = 0;
10198 if { (eval echo configure:10199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10200 samba_cv_HAVE_UT_UT_TYPE=yes
10202 echo "configure: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10205 samba_cv_HAVE_UT_UT_TYPE=no
10210 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10211 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10212 cat >> confdefs.h <<\EOF
10213 #define HAVE_UT_UT_TYPE 1
10218 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10219 echo "configure:10220: checking for ut_pid in utmp" >&5
10220 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10221 echo $ac_n "(cached) $ac_c" 1>&6
10224 cat > conftest.$ac_ext <<EOF
10225 #line 10226 "configure"
10226 #include "confdefs.h"
10227 #include <sys/types.h>
10230 struct utmp ut; ut.ut_pid = 0;
10233 if { (eval echo configure:10234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10235 samba_cv_HAVE_UT_UT_PID=yes
10237 echo "configure: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10240 samba_cv_HAVE_UT_UT_PID=no
10245 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10246 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10247 cat >> confdefs.h <<\EOF
10248 #define HAVE_UT_UT_PID 1
10253 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10254 echo "configure:10255: checking for ut_exit in utmp" >&5
10255 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10256 echo $ac_n "(cached) $ac_c" 1>&6
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10262 #include <sys/types.h>
10265 struct utmp ut; ut.ut_exit.e_exit = 0;
10268 if { (eval echo configure:10269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10270 samba_cv_HAVE_UT_UT_EXIT=yes
10272 echo "configure: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10275 samba_cv_HAVE_UT_UT_EXIT=no
10280 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10281 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10282 cat >> confdefs.h <<\EOF
10283 #define HAVE_UT_UT_EXIT 1
10288 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10289 echo "configure:10290: checking for ut_addr in utmp" >&5
10290 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10291 echo $ac_n "(cached) $ac_c" 1>&6
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10297 #include <sys/types.h>
10300 struct utmp ut; ut.ut_addr = 0;
10303 if { (eval echo configure:10304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10305 samba_cv_HAVE_UT_UT_ADDR=yes
10307 echo "configure: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10310 samba_cv_HAVE_UT_UT_ADDR=no
10315 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10316 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10317 cat >> confdefs.h <<\EOF
10318 #define HAVE_UT_UT_ADDR 1
10323 if test x$ac_cv_func_pututline = xyes ; then
10324 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10325 echo "configure:10326: checking whether pututline returns pointer" >&5
10326 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 #include <sys/types.h>
10336 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10339 if { (eval echo configure:10340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10341 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10346 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10351 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10352 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10353 cat >> confdefs.h <<\EOF
10354 #define PUTUTLINE_RETURNS_UTMP 1
10360 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10361 echo "configure:10362: checking for ut_syslen in utmpx" >&5
10362 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10366 cat > conftest.$ac_ext <<EOF
10367 #line 10368 "configure"
10368 #include "confdefs.h"
10369 #include <sys/types.h>
10372 struct utmpx ux; ux.ut_syslen = 0;
10375 if { (eval echo configure:10376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10377 samba_cv_HAVE_UX_UT_SYSLEN=yes
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10382 samba_cv_HAVE_UX_UT_SYSLEN=no
10387 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10388 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10389 cat >> confdefs.h <<\EOF
10390 #define HAVE_UX_UT_SYSLEN 1
10396 #################################################
10397 # check for libiconv support
10398 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10399 echo "configure:10400: checking whether to use libiconv" >&5
10400 # Check whether --with-libiconv or --without-libiconv was given.
10401 if test "${with_libiconv+set}" = set; then
10402 withval="$with_libiconv"
10405 echo "$ac_t""no" 1>&6
10408 echo "$ac_t""yes" 1>&6
10409 CFLAGS="$CFLAGS -I$withval/include"
10410 LDFLAGS="$LDFLAGS -L$withval/lib"
10411 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10412 echo "configure:10413: checking for iconv_open in -liconv" >&5
10413 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10415 echo $ac_n "(cached) $ac_c" 1>&6
10417 ac_save_LIBS="$LIBS"
10418 LIBS="-liconv $LIBS"
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 /* Override any gcc2 internal prototype to avoid an error. */
10423 /* We use char because int might match the return type of a gcc2
10424 builtin and then its argument prototype would still apply. */
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10433 eval "ac_cv_lib_$ac_lib_var=yes"
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10438 eval "ac_cv_lib_$ac_lib_var=no"
10441 LIBS="$ac_save_LIBS"
10444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10446 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10448 cat >> confdefs.h <<EOF
10449 #define $ac_tr_lib 1
10452 LIBS="-liconv $LIBS"
10455 echo "$ac_t""no" 1>&6
10458 cat >> confdefs.h <<EOF
10459 #define WITH_LIBICONV "${withval}"
10465 echo "$ac_t""no" 1>&6
10472 # check for iconv in libc
10473 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10474 echo "configure:10475: checking for working iconv" >&5
10475 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10479 if test "$cross_compiling" = yes; then
10480 samba_cv_HAVE_NATIVE_ICONV=cross
10482 cat > conftest.$ac_ext <<EOF
10483 #line 10484 "configure"
10484 #include "confdefs.h"
10488 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10489 if (cd == 0 || cd == (iconv_t)-1) return -1;
10494 if { (eval echo configure:10495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10496 samba_cv_HAVE_NATIVE_ICONV=yes
10498 echo "configure: failed program was:" >&5
10499 cat conftest.$ac_ext >&5
10501 samba_cv_HAVE_NATIVE_ICONV=no
10508 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10509 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10510 cat >> confdefs.h <<\EOF
10511 #define HAVE_NATIVE_ICONV 1
10517 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10518 echo "configure:10519: checking for Linux kernel oplocks" >&5
10519 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10520 echo $ac_n "(cached) $ac_c" 1>&6
10523 if test "$cross_compiling" = yes; then
10524 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10526 cat > conftest.$ac_ext <<EOF
10527 #line 10528 "configure"
10528 #include "confdefs.h"
10530 #include <sys/types.h>
10533 #define F_GETLEASE 1025
10536 int fd = open("/dev/null", O_RDONLY);
10537 return fcntl(fd, F_GETLEASE, 0) == -1;
10541 if { (eval echo configure:10542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10543 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10545 echo "configure: failed program was:" >&5
10546 cat conftest.$ac_ext >&5
10548 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10555 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10556 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10557 cat >> confdefs.h <<\EOF
10558 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10563 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10564 echo "configure:10565: checking for kernel change notify support" >&5
10565 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10566 echo $ac_n "(cached) $ac_c" 1>&6
10569 if test "$cross_compiling" = yes; then
10570 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure"
10574 #include "confdefs.h"
10576 #include <sys/types.h>
10578 #include <signal.h>
10580 #define F_NOTIFY 1026
10583 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10587 if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10589 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10594 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10601 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10602 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10603 cat >> confdefs.h <<\EOF
10604 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10609 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10610 echo "configure:10611: checking for kernel share modes" >&5
10611 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10612 echo $ac_n "(cached) $ac_c" 1>&6
10615 if test "$cross_compiling" = yes; then
10616 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10622 #include <sys/types.h>
10624 #include <signal.h>
10625 #include <sys/file.h>
10627 #define LOCK_MAND 32
10628 #define LOCK_READ 64
10631 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10635 if { (eval echo configure:10636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10637 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10639 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10642 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10649 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10650 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10651 cat >> confdefs.h <<\EOF
10652 #define HAVE_KERNEL_SHARE_MODES 1
10660 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10661 echo "configure:10662: checking for IRIX kernel oplock type definitions" >&5
10662 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10663 echo $ac_n "(cached) $ac_c" 1>&6
10666 cat > conftest.$ac_ext <<EOF
10667 #line 10668 "configure"
10668 #include "confdefs.h"
10669 #include <sys/types.h>
10672 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10675 if { (eval echo configure:10676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10677 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10687 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10688 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10689 cat >> confdefs.h <<\EOF
10690 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10695 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10696 echo "configure:10697: checking for irix specific capabilities" >&5
10697 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10701 if test "$cross_compiling" = yes; then
10702 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <sys/types.h>
10708 #include <sys/capability.h>
10711 if ((cap = cap_get_proc()) == NULL)
10713 cap->cap_effective |= CAP_NETWORK_MGT;
10714 cap->cap_inheritable |= CAP_NETWORK_MGT;
10720 if { (eval echo configure:10721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10722 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10724 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10727 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10734 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10735 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10736 cat >> confdefs.h <<\EOF
10737 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10743 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10744 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10747 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10748 echo "configure:10749: checking for int16 typedef included by rpc/rpc.h" >&5
10749 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10756 #include <sys/types.h>
10757 #if defined(HAVE_RPC_RPC_H)
10758 #include <rpc/rpc.h>
10764 if { (eval echo configure:10765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10766 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10768 echo "configure: failed program was:" >&5
10769 cat conftest.$ac_ext >&5
10771 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10776 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10777 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10778 cat >> confdefs.h <<\EOF
10779 #define HAVE_INT16_FROM_RPC_RPC_H 1
10784 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10785 echo "configure:10786: checking for uint16 typedef included by rpc/rpc.h" >&5
10786 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10787 echo $ac_n "(cached) $ac_c" 1>&6
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793 #include <sys/types.h>
10794 #if defined(HAVE_RPC_RPC_H)
10795 #include <rpc/rpc.h>
10801 if { (eval echo configure:10802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10803 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10813 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10814 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10815 cat >> confdefs.h <<\EOF
10816 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10821 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10822 echo "configure:10823: checking for int32 typedef included by rpc/rpc.h" >&5
10823 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10824 echo $ac_n "(cached) $ac_c" 1>&6
10827 cat > conftest.$ac_ext <<EOF
10828 #line 10829 "configure"
10829 #include "confdefs.h"
10830 #include <sys/types.h>
10831 #if defined(HAVE_RPC_RPC_H)
10832 #include <rpc/rpc.h>
10838 if { (eval echo configure:10839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10840 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10842 echo "configure: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10845 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10850 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10851 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10852 cat >> confdefs.h <<\EOF
10853 #define HAVE_INT32_FROM_RPC_RPC_H 1
10858 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10859 echo "configure:10860: checking for uint32 typedef included by rpc/rpc.h" >&5
10860 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10864 cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure"
10866 #include "confdefs.h"
10867 #include <sys/types.h>
10868 #if defined(HAVE_RPC_RPC_H)
10869 #include <rpc/rpc.h>
10875 if { (eval echo configure:10876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10877 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10882 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10887 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10888 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10889 cat >> confdefs.h <<\EOF
10890 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10896 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10897 echo "configure:10898: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10898 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10899 echo $ac_n "(cached) $ac_c" 1>&6
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 #include <sys/types.h>
10906 #ifdef HAVE_SYS_SECURITY_H
10907 #include <sys/security.h>
10909 #endif /* HAVE_SYS_SECURITY_H */
10910 #if defined(HAVE_RPC_RPC_H)
10911 #include <rpc/rpc.h>
10917 if { (eval echo configure:10918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10919 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10921 echo "configure: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10924 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10929 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10930 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10931 cat >> confdefs.h <<\EOF
10932 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10937 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10938 echo "configure:10939: checking for test routines" >&5
10939 if test "$cross_compiling" = yes; then
10940 echo "configure: warning: cannot run when cross-compiling" 1>&2
10942 cat > conftest.$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10945 #include "${srcdir-.}/tests/trivial.c"
10947 if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10949 echo "$ac_t""yes" 1>&6
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10954 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10960 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10961 echo "configure:10962: checking for ftruncate extend" >&5
10962 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10963 echo $ac_n "(cached) $ac_c" 1>&6
10966 if test "$cross_compiling" = yes; then
10967 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10969 cat > conftest.$ac_ext <<EOF
10970 #line 10971 "configure"
10971 #include "confdefs.h"
10972 #include "${srcdir-.}/tests/ftruncate.c"
10974 if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10976 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10981 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10988 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10989 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10990 cat >> confdefs.h <<\EOF
10991 #define HAVE_FTRUNCATE_EXTEND 1
10996 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10997 echo "configure:10998: checking for AF_LOCAL socket support" >&5
10998 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10999 echo $ac_n "(cached) $ac_c" 1>&6
11002 if test "$cross_compiling" = yes; then
11003 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11008 #include "${srcdir-.}/tests/unixsock.c"
11010 if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11012 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11014 echo "configure: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11017 samba_cv_HAVE_WORKING_AF_LOCAL=no
11024 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11025 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11027 cat >> confdefs.h <<\EOF
11028 #define HAVE_WORKING_AF_LOCAL 1
11033 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11034 echo "configure:11035: checking for broken getgroups" >&5
11035 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11036 echo $ac_n "(cached) $ac_c" 1>&6
11039 if test "$cross_compiling" = yes; then
11040 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11045 #include "${srcdir-.}/tests/getgroups.c"
11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11049 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11054 samba_cv_HAVE_BROKEN_GETGROUPS=no
11061 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11062 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11063 cat >> confdefs.h <<\EOF
11064 #define HAVE_BROKEN_GETGROUPS 1
11069 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11070 echo "configure:11071: checking whether getpass should be replaced" >&5
11071 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11075 SAVE_CPPFLAGS="$CPPFLAGS"
11076 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11081 #define REPLACE_GETPASS 1
11082 #define NO_CONFIG_H 1
11083 #define main dont_declare_main
11084 #include "${srcdir-.}/lib/getsmbpass.c"
11091 if { (eval echo configure:11092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11093 samba_cv_REPLACE_GETPASS=yes
11095 echo "configure: failed program was:" >&5
11096 cat conftest.$ac_ext >&5
11098 samba_cv_REPLACE_GETPASS=no
11101 CPPFLAGS="$SAVE_CPPFLAGS"
11105 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11106 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11107 cat >> confdefs.h <<\EOF
11108 #define REPLACE_GETPASS 1
11113 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11114 echo "configure:11115: checking for broken inet_ntoa" >&5
11115 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11119 if test "$cross_compiling" = yes; then
11120 samba_cv_REPLACE_INET_NTOA=cross
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11127 #include <sys/types.h>
11128 #include <netinet/in.h>
11129 #ifdef HAVE_ARPA_INET_H
11130 #include <arpa/inet.h>
11132 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11133 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11134 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11137 if { (eval echo configure:11138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11139 samba_cv_REPLACE_INET_NTOA=yes
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 samba_cv_REPLACE_INET_NTOA=no
11151 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11152 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11153 cat >> confdefs.h <<\EOF
11154 #define REPLACE_INET_NTOA 1
11159 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11160 echo "configure:11161: checking for secure mkstemp" >&5
11161 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11165 if test "$cross_compiling" = yes; then
11166 samba_cv_HAVE_SECURE_MKSTEMP=cross
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11171 #include <stdlib.h>
11172 #include <sys/types.h>
11173 #include <sys/stat.h>
11174 #include <unistd.h>
11177 char tpl[20]="/tmp/test.XXXXXX";
11178 int fd = mkstemp(tpl);
11179 if (fd == -1) exit(1);
11181 if (fstat(fd, &st) != 0) exit(1);
11182 if ((st.st_mode & 0777) != 0600) exit(1);
11186 if { (eval echo configure:11187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11188 samba_cv_HAVE_SECURE_MKSTEMP=yes
11190 echo "configure: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11193 samba_cv_HAVE_SECURE_MKSTEMP=no
11200 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11201 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11202 cat >> confdefs.h <<\EOF
11203 #define HAVE_SECURE_MKSTEMP 1
11208 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11209 echo "configure:11210: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11210 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11214 if test "$cross_compiling" = yes; then
11215 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11217 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11220 #include <unistd.h>
11221 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11223 if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11225 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11227 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11230 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11237 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11238 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11239 cat >> confdefs.h <<\EOF
11240 #define SYSCONF_SC_NGROUPS_MAX 1
11245 echo $ac_n "checking for root""... $ac_c" 1>&6
11246 echo "configure:11247: checking for root" >&5
11247 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11248 echo $ac_n "(cached) $ac_c" 1>&6
11251 if test "$cross_compiling" = yes; then
11252 samba_cv_HAVE_ROOT=cross
11254 cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11257 main() { exit(getuid() != 0); }
11259 if { (eval echo configure:11260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11261 samba_cv_HAVE_ROOT=yes
11263 echo "configure: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11266 samba_cv_HAVE_ROOT=no
11273 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11274 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11275 cat >> confdefs.h <<\EOF
11276 #define HAVE_ROOT 1
11280 echo "configure: warning: running as non-root will disable some tests" 1>&2
11284 # look for a method of finding the list of network interfaces
11286 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11287 echo "configure:11288: checking for iface AIX" >&5
11288 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11292 if test "$cross_compiling" = yes; then
11293 samba_cv_HAVE_IFACE_AIX=cross
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11299 #define HAVE_IFACE_AIX 1
11300 #define AUTOCONF_TEST 1
11301 #include "confdefs.h"
11302 #include "${srcdir-.}/lib/interfaces.c"
11304 if { (eval echo configure:11305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11306 samba_cv_HAVE_IFACE_AIX=yes
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11311 samba_cv_HAVE_IFACE_AIX=no
11318 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11319 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11320 iface=yes;cat >> confdefs.h <<\EOF
11321 #define HAVE_IFACE_AIX 1
11326 if test $iface = no; then
11327 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11328 echo "configure:11329: checking for iface ifconf" >&5
11329 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11330 echo $ac_n "(cached) $ac_c" 1>&6
11333 if test "$cross_compiling" = yes; then
11334 samba_cv_HAVE_IFACE_IFCONF=cross
11336 cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11340 #define HAVE_IFACE_IFCONF 1
11341 #define AUTOCONF_TEST 1
11342 #include "confdefs.h"
11343 #include "${srcdir-.}/lib/interfaces.c"
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11347 samba_cv_HAVE_IFACE_IFCONF=yes
11349 echo "configure: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11352 samba_cv_HAVE_IFACE_IFCONF=no
11359 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11360 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11361 iface=yes;cat >> confdefs.h <<\EOF
11362 #define HAVE_IFACE_IFCONF 1
11368 if test $iface = no; then
11369 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11370 echo "configure:11371: checking for iface ifreq" >&5
11371 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11375 if test "$cross_compiling" = yes; then
11376 samba_cv_HAVE_IFACE_IFREQ=cross
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11382 #define HAVE_IFACE_IFREQ 1
11383 #define AUTOCONF_TEST 1
11384 #include "confdefs.h"
11385 #include "${srcdir-.}/lib/interfaces.c"
11387 if { (eval echo configure:11388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11389 samba_cv_HAVE_IFACE_IFREQ=yes
11391 echo "configure: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
11394 samba_cv_HAVE_IFACE_IFREQ=no
11401 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11402 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11403 iface=yes;cat >> confdefs.h <<\EOF
11404 #define HAVE_IFACE_IFREQ 1
11411 ################################################
11412 # look for a method of setting the effective uid
11414 if test $seteuid = no; then
11415 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11416 echo "configure:11417: checking for setresuid" >&5
11417 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11418 echo $ac_n "(cached) $ac_c" 1>&6
11421 if test "$cross_compiling" = yes; then
11422 samba_cv_USE_SETRESUID=cross
11424 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11428 #define AUTOCONF_TEST 1
11429 #define USE_SETRESUID 1
11430 #include "confdefs.h"
11431 #include "${srcdir-.}/lib/util_sec.c"
11433 if { (eval echo configure:11434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11435 samba_cv_USE_SETRESUID=yes
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11440 samba_cv_USE_SETRESUID=no
11447 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11448 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11449 seteuid=yes;cat >> confdefs.h <<\EOF
11450 #define USE_SETRESUID 1
11457 if test $seteuid = no; then
11458 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11459 echo "configure:11460: checking for setreuid" >&5
11460 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11461 echo $ac_n "(cached) $ac_c" 1>&6
11464 if test "$cross_compiling" = yes; then
11465 samba_cv_USE_SETREUID=cross
11467 cat > conftest.$ac_ext <<EOF
11468 #line 11469 "configure"
11469 #include "confdefs.h"
11471 #define AUTOCONF_TEST 1
11472 #define USE_SETREUID 1
11473 #include "confdefs.h"
11474 #include "${srcdir-.}/lib/util_sec.c"
11476 if { (eval echo configure:11477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11478 samba_cv_USE_SETREUID=yes
11480 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11483 samba_cv_USE_SETREUID=no
11490 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11491 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11492 seteuid=yes;cat >> confdefs.h <<\EOF
11493 #define USE_SETREUID 1
11499 if test $seteuid = no; then
11500 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11501 echo "configure:11502: checking for seteuid" >&5
11502 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11506 if test "$cross_compiling" = yes; then
11507 samba_cv_USE_SETEUID=cross
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11513 #define AUTOCONF_TEST 1
11514 #define USE_SETEUID 1
11515 #include "confdefs.h"
11516 #include "${srcdir-.}/lib/util_sec.c"
11518 if { (eval echo configure:11519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11520 samba_cv_USE_SETEUID=yes
11522 echo "configure: failed program was:" >&5
11523 cat conftest.$ac_ext >&5
11525 samba_cv_USE_SETEUID=no
11532 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11533 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11534 seteuid=yes;cat >> confdefs.h <<\EOF
11535 #define USE_SETEUID 1
11541 if test $seteuid = no; then
11542 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11543 echo "configure:11544: checking for setuidx" >&5
11544 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
11548 if test "$cross_compiling" = yes; then
11549 samba_cv_USE_SETUIDX=cross
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11555 #define AUTOCONF_TEST 1
11556 #define USE_SETUIDX 1
11557 #include "confdefs.h"
11558 #include "${srcdir-.}/lib/util_sec.c"
11560 if { (eval echo configure:11561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11562 samba_cv_USE_SETUIDX=yes
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11567 samba_cv_USE_SETUIDX=no
11574 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11575 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11576 seteuid=yes;cat >> confdefs.h <<\EOF
11577 #define USE_SETUIDX 1
11584 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11585 echo "configure:11586: checking for working mmap" >&5
11586 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11587 echo $ac_n "(cached) $ac_c" 1>&6
11590 if test "$cross_compiling" = yes; then
11591 samba_cv_HAVE_MMAP=cross
11593 cat > conftest.$ac_ext <<EOF
11594 #line 11595 "configure"
11595 #include "confdefs.h"
11596 #include "${srcdir-.}/tests/shared_mmap.c"
11598 if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11600 samba_cv_HAVE_MMAP=yes
11602 echo "configure: failed program was:" >&5
11603 cat conftest.$ac_ext >&5
11605 samba_cv_HAVE_MMAP=no
11612 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11613 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11614 cat >> confdefs.h <<\EOF
11615 #define HAVE_MMAP 1
11620 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11621 echo "configure:11622: checking for ftruncate needs root" >&5
11622 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
11626 if test "$cross_compiling" = yes; then
11627 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include "${srcdir-.}/tests/ftruncroot.c"
11634 if { (eval echo configure:11635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11636 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11638 echo "configure: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11641 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11648 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11649 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11650 cat >> confdefs.h <<\EOF
11651 #define FTRUNCATE_NEEDS_ROOT 1
11656 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11657 echo "configure:11658: checking for fcntl locking" >&5
11658 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11659 echo $ac_n "(cached) $ac_c" 1>&6
11662 if test "$cross_compiling" = yes; then
11663 samba_cv_HAVE_FCNTL_LOCK=cross
11665 cat > conftest.$ac_ext <<EOF
11666 #line 11667 "configure"
11667 #include "confdefs.h"
11668 #include "${srcdir-.}/tests/fcntl_lock.c"
11670 if { (eval echo configure:11671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11672 samba_cv_HAVE_FCNTL_LOCK=yes
11674 echo "configure: failed program was:" >&5
11675 cat conftest.$ac_ext >&5
11677 samba_cv_HAVE_FCNTL_LOCK=no
11684 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11685 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11686 cat >> confdefs.h <<\EOF
11687 #define HAVE_FCNTL_LOCK 1
11692 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11693 echo "configure:11694: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11694 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11695 echo $ac_n "(cached) $ac_c" 1>&6
11698 if test "$cross_compiling" = yes; then
11699 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11701 cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 #include "${srcdir-.}/tests/fcntl_lock64.c"
11706 if { (eval echo configure:11707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11708 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11710 echo "configure: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11713 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11720 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11721 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11722 cat >> confdefs.h <<\EOF
11723 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11730 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11731 echo "configure:11732: checking for 64 bit fcntl locking" >&5
11732 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11733 echo $ac_n "(cached) $ac_c" 1>&6
11736 if test "$cross_compiling" = yes; then
11737 samba_cv_HAVE_STRUCT_FLOCK64=cross
11739 cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11743 #if defined(HAVE_UNISTD_H)
11744 #include <unistd.h>
11747 #include <stdlib.h>
11749 #ifdef HAVE_FCNTL_H
11753 #ifdef HAVE_SYS_FCNTL_H
11754 #include <sys/fcntl.h>
11756 main() { struct flock64 fl64;
11757 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11764 if { (eval echo configure:11765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11766 samba_cv_HAVE_STRUCT_FLOCK64=yes
11768 echo "configure: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11771 samba_cv_HAVE_STRUCT_FLOCK64=no
11778 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11780 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11781 cat >> confdefs.h <<\EOF
11782 #define HAVE_STRUCT_FLOCK64 1
11788 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11789 echo "configure:11790: checking for st_blocks in struct stat" >&5
11790 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11791 echo $ac_n "(cached) $ac_c" 1>&6
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 #include <sys/types.h>
11798 #include <sys/stat.h>
11799 #include <unistd.h>
11801 struct stat st; st.st_blocks = 0;
11804 if { (eval echo configure:11805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11806 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11811 samba_cv_HAVE_STAT_ST_BLOCKS=no
11816 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11817 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11818 cat >> confdefs.h <<\EOF
11819 #define HAVE_STAT_ST_BLOCKS 1
11824 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11825 echo "configure:11826: checking for st_blksize in struct stat" >&5
11826 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 #include <sys/types.h>
11834 #include <sys/stat.h>
11835 #include <unistd.h>
11837 struct stat st; st.st_blksize = 0;
11840 if { (eval echo configure:11841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11842 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11844 echo "configure: failed program was:" >&5
11845 cat conftest.$ac_ext >&5
11847 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11852 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11853 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11854 cat >> confdefs.h <<\EOF
11855 #define HAVE_STAT_ST_BLKSIZE 1
11862 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11863 echo "configure:11864: checking for broken RedHat 7.2 system header files" >&5
11864 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11868 cat > conftest.$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11872 #ifdef HAVE_SYS_VFS_H
11873 #include <sys/vfs.h>
11875 #ifdef HAVE_SYS_CAPABILITY_H
11876 #include <sys/capability.h>
11883 if { (eval echo configure:11884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11885 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11887 echo "configure: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11890 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11895 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11896 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11897 cat >> confdefs.h <<\EOF
11898 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11905 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11906 echo "configure:11907: checking for broken nisplus include files" >&5
11907 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11911 cat > conftest.$ac_ext <<EOF
11912 #line 11913 "configure"
11913 #include "confdefs.h"
11914 #include <sys/acl.h>
11915 #if defined(HAVE_RPCSVC_NIS_H)
11916 #include <rpcsvc/nis.h>
11922 if { (eval echo configure:11923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11924 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11926 echo "configure: failed program was:" >&5
11927 cat conftest.$ac_ext >&5
11929 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11934 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11935 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11936 cat >> confdefs.h <<\EOF
11937 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11943 #################################################
11944 # check for smbwrapper support
11945 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11946 echo "configure:11947: checking whether to use smbwrapper" >&5
11947 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11948 if test "${with_smbwrapper+set}" = set; then
11949 withval="$with_smbwrapper"
11952 echo "$ac_t""yes" 1>&6
11953 cat >> confdefs.h <<\EOF
11954 #define WITH_SMBWRAPPER 1
11957 WRAPPROG="bin/smbsh"
11958 WRAP="bin/smbwrapper.$SHLIBEXT"
11960 if test x$ATTEMPT_WRAP32_BUILD = x; then
11963 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11966 # Conditions under which smbwrapper should not be built.
11968 if test x$PICFLAG = x; then
11969 echo No support for PIC code - disabling smbwrapper and smbsh
11973 elif test x$ac_cv_func_syscall = xno; then
11974 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11981 echo "$ac_t""no" 1>&6
11985 echo "$ac_t""no" 1>&6
11990 #################################################
11991 # check for AFS clear-text auth support
11992 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11993 echo "configure:11994: checking whether to use AFS clear-text auth" >&5
11994 # Check whether --with-afs or --without-afs was given.
11995 if test "${with_afs+set}" = set; then
11996 withval="$with_afs"
11999 echo "$ac_t""yes" 1>&6
12000 cat >> confdefs.h <<\EOF
12006 echo "$ac_t""no" 1>&6
12010 echo "$ac_t""no" 1>&6
12016 #################################################
12017 # check for the DFS clear-text auth system
12018 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12019 echo "configure:12020: checking whether to use DFS clear-text auth" >&5
12020 # Check whether --with-dfs or --without-dfs was given.
12021 if test "${with_dfs+set}" = set; then
12022 withval="$with_dfs"
12025 echo "$ac_t""yes" 1>&6
12026 cat >> confdefs.h <<\EOF
12032 echo "$ac_t""no" 1>&6
12036 echo "$ac_t""no" 1>&6
12042 #################################################
12043 # see if this box has the RedHat location for kerberos
12044 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12045 echo "configure:12046: checking for /usr/kerberos" >&5
12046 if test -d /usr/kerberos; then
12047 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12048 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12049 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12050 echo "$ac_t""yes" 1>&6
12052 echo "$ac_t""no" 1>&6
12055 #################################################
12056 # check for location of Kerberos 5 install
12057 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12058 echo "configure:12059: checking for kerberos 5 install path" >&5
12059 # Check whether --with-krb5 or --without-krb5 was given.
12060 if test "${with_krb5+set}" = set; then
12061 withval="$with_krb5"
12064 echo "$ac_t""no" 1>&6
12067 echo "$ac_t""yes" 1>&6
12068 LIBS="$LIBS -lkrb5"
12069 CFLAGS="$CFLAGS -I$withval/include"
12070 CPPFLAGS="$CPPFLAGS -I$withval/include"
12071 LDFLAGS="$LDFLAGS -L$withval/lib"
12075 echo "$ac_t""no" 1>&6
12080 # now check for krb5.h. Some systems have the libraries without the headers!
12081 # note that this check is done here to allow for different kerberos
12083 for ac_hdr in krb5.h
12085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12087 echo "configure:12088: checking for $ac_hdr" >&5
12088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
12091 cat > conftest.$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12097 { (eval echo configure:12098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12099 if test -z "$ac_err"; then
12101 eval "ac_cv_header_$ac_safe=yes"
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12107 eval "ac_cv_header_$ac_safe=no"
12111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12112 echo "$ac_t""yes" 1>&6
12113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12114 cat >> confdefs.h <<EOF
12115 #define $ac_tr_hdr 1
12119 echo "$ac_t""no" 1>&6
12124 # now check for gssapi headers. This is also done here to allow for
12125 # different kerberos include paths
12126 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12130 echo "configure:12131: checking for $ac_hdr" >&5
12131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12132 echo $ac_n "(cached) $ac_c" 1>&6
12134 cat > conftest.$ac_ext <<EOF
12135 #line 12136 "configure"
12136 #include "confdefs.h"
12139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12140 { (eval echo configure:12141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12142 if test -z "$ac_err"; then
12144 eval "ac_cv_header_$ac_safe=yes"
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12150 eval "ac_cv_header_$ac_safe=no"
12154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12157 cat >> confdefs.h <<EOF
12158 #define $ac_tr_hdr 1
12162 echo "$ac_t""no" 1>&6
12167 ##################################################################
12168 # we might need the k5crypto and com_err libraries on some systems
12169 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12170 echo "configure:12171: checking for _et_list in -lcom_err" >&5
12171 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12173 echo $ac_n "(cached) $ac_c" 1>&6
12175 ac_save_LIBS="$LIBS"
12176 LIBS="-lcom_err $LIBS"
12177 cat > conftest.$ac_ext <<EOF
12178 #line 12179 "configure"
12179 #include "confdefs.h"
12180 /* Override any gcc2 internal prototype to avoid an error. */
12181 /* We use char because int might match the return type of a gcc2
12182 builtin and then its argument prototype would still apply. */
12189 if { (eval echo configure:12190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12191 eval "ac_cv_lib_$ac_lib_var=yes"
12193 echo "configure: failed program was:" >&5
12194 cat conftest.$ac_ext >&5
12196 eval "ac_cv_lib_$ac_lib_var=no"
12199 LIBS="$ac_save_LIBS"
12202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12203 echo "$ac_t""yes" 1>&6
12204 LIBS="$LIBS -lcom_err"
12206 echo "$ac_t""no" 1>&6
12209 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12210 echo "configure:12211: checking for krb5_encrypt_data in -lk5crypto" >&5
12211 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12213 echo $ac_n "(cached) $ac_c" 1>&6
12215 ac_save_LIBS="$LIBS"
12216 LIBS="-lk5crypto $LIBS"
12217 cat > conftest.$ac_ext <<EOF
12218 #line 12219 "configure"
12219 #include "confdefs.h"
12220 /* Override any gcc2 internal prototype to avoid an error. */
12221 /* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12223 char krb5_encrypt_data();
12226 krb5_encrypt_data()
12229 if { (eval echo configure:12230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12231 eval "ac_cv_lib_$ac_lib_var=yes"
12233 echo "configure: failed program was:" >&5
12234 cat conftest.$ac_ext >&5
12236 eval "ac_cv_lib_$ac_lib_var=no"
12239 LIBS="$ac_save_LIBS"
12242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12243 echo "$ac_t""yes" 1>&6
12244 LIBS="$LIBS -lk5crypto"
12246 echo "$ac_t""no" 1>&6
12250 ########################################################
12251 # now see if we can find the krb5 libs in standard paths
12252 # or as specified above
12253 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12254 echo "configure:12255: checking for krb5_mk_req_extended in -lkrb5" >&5
12255 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12257 echo $ac_n "(cached) $ac_c" 1>&6
12259 ac_save_LIBS="$LIBS"
12260 LIBS="-lkrb5 $LIBS"
12261 cat > conftest.$ac_ext <<EOF
12262 #line 12263 "configure"
12263 #include "confdefs.h"
12264 /* Override any gcc2 internal prototype to avoid an error. */
12265 /* We use char because int might match the return type of a gcc2
12266 builtin and then its argument prototype would still apply. */
12267 char krb5_mk_req_extended();
12270 krb5_mk_req_extended()
12273 if { (eval echo configure:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12275 eval "ac_cv_lib_$ac_lib_var=yes"
12277 echo "configure: failed program was:" >&5
12278 cat conftest.$ac_ext >&5
12280 eval "ac_cv_lib_$ac_lib_var=no"
12283 LIBS="$ac_save_LIBS"
12286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12287 echo "$ac_t""yes" 1>&6
12288 LIBS="$LIBS -lkrb5";
12289 cat >> confdefs.h <<\EOF
12290 #define HAVE_KRB5 1
12294 echo "$ac_t""no" 1>&6
12298 ########################################################
12299 # now see if we can find the gssapi libs in standard paths
12300 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12301 echo "configure:12302: checking for gss_display_status in -lgssapi_krb5" >&5
12302 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12304 echo $ac_n "(cached) $ac_c" 1>&6
12306 ac_save_LIBS="$LIBS"
12307 LIBS="-lgssapi_krb5 $LIBS"
12308 cat > conftest.$ac_ext <<EOF
12309 #line 12310 "configure"
12310 #include "confdefs.h"
12311 /* Override any gcc2 internal prototype to avoid an error. */
12312 /* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12314 char gss_display_status();
12317 gss_display_status()
12320 if { (eval echo configure:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12322 eval "ac_cv_lib_$ac_lib_var=yes"
12324 echo "configure: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12327 eval "ac_cv_lib_$ac_lib_var=no"
12330 LIBS="$ac_save_LIBS"
12333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12334 echo "$ac_t""yes" 1>&6
12335 LIBS="$LIBS -lgssapi_krb5";
12336 cat >> confdefs.h <<\EOF
12337 #define HAVE_GSSAPI 1
12341 echo "$ac_t""no" 1>&6
12345 ##################################################################
12346 # we might need the lber lib on some systems. To avoid link errors
12347 # this test must be before the libldap test
12348 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12349 echo "configure:12350: checking for ber_scanf in -llber" >&5
12350 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12352 echo $ac_n "(cached) $ac_c" 1>&6
12354 ac_save_LIBS="$LIBS"
12355 LIBS="-llber $LIBS"
12356 cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 /* Override any gcc2 internal prototype to avoid an error. */
12360 /* We use char because int might match the return type of a gcc2
12361 builtin and then its argument prototype would still apply. */
12368 if { (eval echo configure:12369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12370 eval "ac_cv_lib_$ac_lib_var=yes"
12372 echo "configure: failed program was:" >&5
12373 cat conftest.$ac_ext >&5
12375 eval "ac_cv_lib_$ac_lib_var=no"
12378 LIBS="$ac_save_LIBS"
12381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12382 echo "$ac_t""yes" 1>&6
12383 LIBS="$LIBS -llber"
12385 echo "$ac_t""no" 1>&6
12389 ########################################################
12390 # now see if we can find the ldap libs in standard paths
12391 if test x$have_ldap != xyes; then
12392 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12393 echo "configure:12394: checking for ldap_domain2hostlist in -lldap" >&5
12394 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12396 echo $ac_n "(cached) $ac_c" 1>&6
12398 ac_save_LIBS="$LIBS"
12399 LIBS="-lldap $LIBS"
12400 cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 /* Override any gcc2 internal prototype to avoid an error. */
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12406 char ldap_domain2hostlist();
12409 ldap_domain2hostlist()
12412 if { (eval echo configure:12413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12414 eval "ac_cv_lib_$ac_lib_var=yes"
12416 echo "configure: failed program was:" >&5
12417 cat conftest.$ac_ext >&5
12419 eval "ac_cv_lib_$ac_lib_var=no"
12422 LIBS="$ac_save_LIBS"
12425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12426 echo "$ac_t""yes" 1>&6
12427 LIBS="$LIBS -lldap";
12428 cat >> confdefs.h <<\EOF
12429 #define HAVE_LDAP 1
12433 echo "$ac_t""no" 1>&6
12437 ########################################################
12438 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12439 # Check found in pam_ldap 145.
12440 for ac_func in ldap_set_rebind_proc
12442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12443 echo "configure:12444: checking for $ac_func" >&5
12444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12445 echo $ac_n "(cached) $ac_c" 1>&6
12447 cat > conftest.$ac_ext <<EOF
12448 #line 12449 "configure"
12449 #include "confdefs.h"
12450 /* System header to define __stub macros and hopefully few prototypes,
12451 which can conflict with char $ac_func(); below. */
12452 #include <assert.h>
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12460 /* The GNU C library defines this for functions which it implements
12461 to always fail with ENOSYS. Some functions are actually named
12462 something starting with __ and the normal name is an alias. */
12463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12471 if { (eval echo configure:12472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12473 eval "ac_cv_func_$ac_func=yes"
12475 echo "configure: failed program was:" >&5
12476 cat conftest.$ac_ext >&5
12478 eval "ac_cv_func_$ac_func=no"
12483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12484 echo "$ac_t""yes" 1>&6
12485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12486 cat >> confdefs.h <<EOF
12487 #define $ac_tr_func 1
12491 echo "$ac_t""no" 1>&6
12495 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12496 echo "configure:12497: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12497 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12498 echo $ac_n "(cached) $ac_c" 1>&6
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12508 ldap_set_rebind_proc(0, 0, 0);
12511 if { (eval echo configure:12512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12513 pam_ldap_cv_ldap_set_rebind_proc=3
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12518 pam_ldap_cv_ldap_set_rebind_proc=2
12523 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12524 cat >> confdefs.h <<EOF
12525 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12530 #################################################
12531 # check for automount support
12532 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12533 echo "configure:12534: checking whether to use AUTOMOUNT" >&5
12534 # Check whether --with-automount or --without-automount was given.
12535 if test "${with_automount+set}" = set; then
12536 withval="$with_automount"
12539 echo "$ac_t""yes" 1>&6
12540 cat >> confdefs.h <<\EOF
12541 #define WITH_AUTOMOUNT 1
12546 echo "$ac_t""no" 1>&6
12550 echo "$ac_t""no" 1>&6
12555 #################################################
12556 # check for smbmount support
12557 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12558 echo "configure:12559: checking whether to use SMBMOUNT" >&5
12559 # Check whether --with-smbmount or --without-smbmount was given.
12560 if test "${with_smbmount+set}" = set; then
12561 withval="$with_smbmount"
12566 echo "$ac_t""yes" 1>&6
12567 cat >> confdefs.h <<\EOF
12568 #define WITH_SMBMOUNT 1
12571 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12574 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12579 echo "$ac_t""no" 1>&6
12584 echo "$ac_t""no" 1>&6
12591 #################################################
12592 # check for a PAM clear-text auth, accounts, password and session support
12593 with_pam_for_crypt=no
12594 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12595 echo "configure:12596: checking whether to use PAM" >&5
12596 # Check whether --with-pam or --without-pam was given.
12597 if test "${with_pam+set}" = set; then
12598 withval="$with_pam"
12601 echo "$ac_t""yes" 1>&6
12602 cat >> confdefs.h <<\EOF
12607 with_pam_for_crypt=yes
12610 echo "$ac_t""no" 1>&6
12614 echo "$ac_t""no" 1>&6
12619 # we can't build a pam module if we don't have pam.
12620 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12621 echo "configure:12622: checking for pam_get_data in -lpam" >&5
12622 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12626 ac_save_LIBS="$LIBS"
12628 cat > conftest.$ac_ext <<EOF
12629 #line 12630 "configure"
12630 #include "confdefs.h"
12631 /* Override any gcc2 internal prototype to avoid an error. */
12632 /* We use char because int might match the return type of a gcc2
12633 builtin and then its argument prototype would still apply. */
12634 char pam_get_data();
12640 if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 eval "ac_cv_lib_$ac_lib_var=yes"
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12647 eval "ac_cv_lib_$ac_lib_var=no"
12650 LIBS="$ac_save_LIBS"
12653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12654 echo "$ac_t""yes" 1>&6
12655 cat >> confdefs.h <<\EOF
12656 #define HAVE_LIBPAM 1
12660 echo "$ac_t""no" 1>&6
12664 #################################################
12665 # check for pam_smbpass support
12666 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12667 echo "configure:12668: checking whether to use pam_smbpass" >&5
12668 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12669 if test "${with_pam_smbpass+set}" = set; then
12670 withval="$with_pam_smbpass"
12673 echo "$ac_t""yes" 1>&6
12675 # Conditions under which pam_smbpass should not be built.
12677 if test x$PICFLAG = x; then
12678 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12680 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12681 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12684 PAM_MOD="bin/pam_smbpass.so"
12688 echo "$ac_t""no" 1>&6
12692 echo "$ac_t""no" 1>&6
12698 ###############################################
12699 # test for where we get crypt() from, but only
12701 if test $with_pam_for_crypt = no; then
12702 for ac_func in crypt
12704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12705 echo "configure:12706: checking for $ac_func" >&5
12706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12707 echo $ac_n "(cached) $ac_c" 1>&6
12709 cat > conftest.$ac_ext <<EOF
12710 #line 12711 "configure"
12711 #include "confdefs.h"
12712 /* System header to define __stub macros and hopefully few prototypes,
12713 which can conflict with char $ac_func(); below. */
12714 #include <assert.h>
12715 /* Override any gcc2 internal prototype to avoid an error. */
12716 /* We use char because int might match the return type of a gcc2
12717 builtin and then its argument prototype would still apply. */
12722 /* The GNU C library defines this for functions which it implements
12723 to always fail with ENOSYS. Some functions are actually named
12724 something starting with __ and the normal name is an alias. */
12725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12733 if { (eval echo configure:12734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12735 eval "ac_cv_func_$ac_func=yes"
12737 echo "configure: failed program was:" >&5
12738 cat conftest.$ac_ext >&5
12740 eval "ac_cv_func_$ac_func=no"
12745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12746 echo "$ac_t""yes" 1>&6
12747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12748 cat >> confdefs.h <<EOF
12749 #define $ac_tr_func 1
12753 echo "$ac_t""no" 1>&6
12757 if test x"$ac_cv_func_crypt" = x"no"; then
12758 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12759 echo "configure:12760: checking for crypt in -lcrypt" >&5
12760 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12762 echo $ac_n "(cached) $ac_c" 1>&6
12764 ac_save_LIBS="$LIBS"
12765 LIBS="-lcrypt $LIBS"
12766 cat > conftest.$ac_ext <<EOF
12767 #line 12768 "configure"
12768 #include "confdefs.h"
12769 /* Override any gcc2 internal prototype to avoid an error. */
12770 /* We use char because int might match the return type of a gcc2
12771 builtin and then its argument prototype would still apply. */
12778 if { (eval echo configure:12779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12780 eval "ac_cv_lib_$ac_lib_var=yes"
12782 echo "configure: failed program was:" >&5
12783 cat conftest.$ac_ext >&5
12785 eval "ac_cv_lib_$ac_lib_var=no"
12788 LIBS="$ac_save_LIBS"
12791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12792 echo "$ac_t""yes" 1>&6
12793 LIBS="$LIBS -lcrypt";
12794 cat >> confdefs.h <<\EOF
12795 #define HAVE_CRYPT 1
12799 echo "$ac_t""no" 1>&6
12806 ## moved after the check for -lcrypt in order to
12807 ## ensure that the necessary libraries are included
12808 ## check checking for truncated salt. Wrapped by the
12809 ## $with_pam_for_crypt variable as above --jerry
12811 if test $with_pam_for_crypt = no; then
12812 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12813 echo "configure:12814: checking for a crypt that needs truncated salt" >&5
12814 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12815 echo $ac_n "(cached) $ac_c" 1>&6
12818 if test "$cross_compiling" = yes; then
12819 samba_cv_HAVE_TRUNCATED_SALT=cross
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 #include "${srcdir-.}/tests/crypttest.c"
12826 if { (eval echo configure:12827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12828 samba_cv_HAVE_TRUNCATED_SALT=no
12830 echo "configure: failed program was:" >&5
12831 cat conftest.$ac_ext >&5
12833 samba_cv_HAVE_TRUNCATED_SALT=yes
12840 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12841 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12842 cat >> confdefs.h <<\EOF
12843 #define HAVE_TRUNCATED_SALT 1
12849 # New experimental SAM system
12851 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
12852 echo "configure:12853: checking whether to build the new (experimental) SAM database" >&5
12853 # Check whether --with-sam or --without-sam was given.
12854 if test "${with_sam+set}" = set; then
12855 withval="$with_sam"
12858 echo "$ac_t""yes" 1>&6
12859 cat >> confdefs.h <<\EOF
12865 echo "$ac_t""no" 1>&6
12869 echo "$ac_t""no" 1>&6
12875 ########################################################################################
12877 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12879 ########################################################################################
12881 #################################################
12882 # check for a TDB password database
12883 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12884 echo "configure:12885: checking whether to use TDB SAM database" >&5
12885 # Check whether --with-tdbsam or --without-tdbsam was given.
12886 if test "${with_tdbsam+set}" = set; then
12887 withval="$with_tdbsam"
12890 echo "$ac_t""yes" 1>&6
12891 cat >> confdefs.h <<\EOF
12892 #define WITH_TDB_SAM 1
12897 echo "$ac_t""no" 1>&6
12901 echo "$ac_t""no" 1>&6
12906 #################################################
12907 # check for a NISPLUS password database
12908 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12909 echo "configure:12910: checking whether to use NISPLUS SAM database" >&5
12910 # Check whether --with-nisplussam or --without-nisplussam was given.
12911 if test "${with_nisplussam+set}" = set; then
12912 withval="$with_nisplussam"
12915 echo "$ac_t""yes" 1>&6
12916 cat >> confdefs.h <<\EOF
12917 #define WITH_NISPLUS_SAM 1
12922 echo "$ac_t""no" 1>&6
12926 echo "$ac_t""no" 1>&6
12931 ########################################################################################
12933 ## END OF TESTS FOR SAM BACKENDS.
12935 ########################################################################################
12937 #################################################
12938 # check for a NISPLUS_HOME support
12939 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12940 echo "configure:12941: checking whether to use NISPLUS_HOME" >&5
12941 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12942 if test "${with_nisplus_home+set}" = set; then
12943 withval="$with_nisplus_home"
12946 echo "$ac_t""yes" 1>&6
12947 cat >> confdefs.h <<\EOF
12948 #define WITH_NISPLUS_HOME 1
12953 echo "$ac_t""no" 1>&6
12957 echo "$ac_t""no" 1>&6
12962 #################################################
12963 # check for syslog logging
12964 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12965 echo "configure:12966: checking whether to use syslog logging" >&5
12966 # Check whether --with-syslog or --without-syslog was given.
12967 if test "${with_syslog+set}" = set; then
12968 withval="$with_syslog"
12971 echo "$ac_t""yes" 1>&6
12972 cat >> confdefs.h <<\EOF
12973 #define WITH_SYSLOG 1
12978 echo "$ac_t""no" 1>&6
12982 echo "$ac_t""no" 1>&6
12987 #################################################
12988 # check for a shared memory profiling support
12989 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12990 echo "configure:12991: checking whether to use profiling" >&5
12991 # Check whether --with-profiling-data or --without-profiling-data was given.
12992 if test "${with_profiling_data+set}" = set; then
12993 withval="$with_profiling_data"
12996 echo "$ac_t""yes" 1>&6
12997 cat >> confdefs.h <<\EOF
12998 #define WITH_PROFILE 1
13003 echo "$ac_t""no" 1>&6
13007 echo "$ac_t""no" 1>&6
13013 #################################################
13014 # check for experimental disk-quotas support
13015 QUOTAOBJS=smbd/noquotas.o
13017 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13018 echo "configure:13019: checking whether to support disk-quotas" >&5
13019 # Check whether --with-quotas or --without-quotas was given.
13020 if test "${with_quotas+set}" = set; then
13021 withval="$with_quotas"
13024 echo "$ac_t""yes" 1>&6
13027 # Check for kernel 2.4.x quota braindamage...
13028 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13029 echo "configure:13030: checking for linux 2.4.x quota braindamage.." >&5
13030 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13031 echo $ac_n "(cached) $ac_c" 1>&6
13034 cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure"
13036 #include "confdefs.h"
13038 #include <sys/types.h>
13039 #include <asm/types.h>
13040 #include <linux/quota.h>
13041 #include <mntent.h>
13042 #include <linux/unistd.h>
13044 struct mem_dqblk D;
13047 if { (eval echo configure:13048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13049 samba_cv_linux_2_4_quota_braindamage=yes
13051 echo "configure: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13054 samba_cv_linux_2_4_quota_braindamage=no
13059 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13060 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13061 cat >> confdefs.h <<\EOF
13062 #define LINUX_QUOTAS_2 1
13066 cat >> confdefs.h <<\EOF
13067 #define LINUX_QUOTAS_1 1
13075 QUOTAOBJS=smbd/quotas.o
13076 cat >> confdefs.h <<\EOF
13077 #define WITH_QUOTAS 1
13082 echo "$ac_t""no" 1>&6
13086 echo "$ac_t""no" 1>&6
13092 #################################################
13093 # check for experimental utmp accounting
13095 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13096 echo "configure:13097: checking whether to support utmp accounting" >&5
13097 # Check whether --with-utmp or --without-utmp was given.
13098 if test "${with_utmp+set}" = set; then
13099 withval="$with_utmp"
13102 echo "$ac_t""yes" 1>&6
13103 cat >> confdefs.h <<\EOF
13104 #define WITH_UTMP 1
13109 echo "$ac_t""no" 1>&6
13113 echo "$ac_t""no" 1>&6
13118 #################################################
13119 # choose native language(s) of man pages
13120 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13121 echo "configure:13122: checking chosen man pages' language(s)" >&5
13122 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13123 if test "${with_manpages_langs+set}" = set; then
13124 withval="$with_manpages_langs"
13127 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13131 manlangs="$withval"
13135 echo "$ac_t""$manlangs" 1>&6
13136 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13140 echo "$ac_t""$manlangs" 1>&6
13146 #################################################
13147 # should we build libsmbclient?
13149 LIBSMBCLIENT_SHARED=
13151 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13152 echo "configure:13153: checking whether to build the libsmbclient shared library" >&5
13153 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13154 if test "${with_libsmbclient+set}" = set; then
13155 withval="$with_libsmbclient"
13158 echo "$ac_t""no" 1>&6
13161 if test $BLDSHARED = true; then
13162 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13163 LIBSMBCLIENT=libsmbclient
13164 echo "$ac_t""yes" 1>&6
13166 echo "$ac_t""no shared library support" 1>&6
13171 echo "$ac_t""yes" 1>&6
13177 #################################################
13178 # these tests are taken from the GNU fileutils package
13179 echo "checking how to get filesystem space usage" 1>&6
13180 echo "configure:13181: checking how to get filesystem space usage" >&5
13183 # Test for statvfs64.
13184 if test $space = no; then
13186 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13187 echo "configure:13188: checking statvfs64 function (SVR4)" >&5
13188 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13189 echo $ac_n "(cached) $ac_c" 1>&6
13191 if test "$cross_compiling" = yes; then
13192 fu_cv_sys_stat_statvfs64=cross
13194 cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13198 #if defined(HAVE_UNISTD_H)
13199 #include <unistd.h>
13201 #include <sys/types.h>
13202 #include <sys/statvfs.h>
13205 struct statvfs64 fsd;
13206 exit (statvfs64 (".", &fsd));
13209 if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13211 fu_cv_sys_stat_statvfs64=yes
13213 echo "configure: failed program was:" >&5
13214 cat conftest.$ac_ext >&5
13216 fu_cv_sys_stat_statvfs64=no
13223 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13224 if test $fu_cv_sys_stat_statvfs64 = yes; then
13226 cat >> confdefs.h <<\EOF
13227 #define STAT_STATVFS64 1
13233 # Perform only the link test since it seems there are no variants of the
13234 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13235 # because that got a false positive on SCO OSR5. Adding the declaration
13236 # of a `struct statvfs' causes this test to fail (as it should) on such
13237 # systems. That system is reported to work fine with STAT_STATFS4 which
13238 # is what it gets when this test fails.
13239 if test $space = no; then
13241 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13242 echo "configure:13243: checking statvfs function (SVR4)" >&5
13243 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13244 echo $ac_n "(cached) $ac_c" 1>&6
13246 cat > conftest.$ac_ext <<EOF
13247 #line 13248 "configure"
13248 #include "confdefs.h"
13249 #include <sys/types.h>
13250 #include <sys/statvfs.h>
13252 struct statvfs fsd; statvfs (0, &fsd);
13255 if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13257 fu_cv_sys_stat_statvfs=yes
13259 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13262 fu_cv_sys_stat_statvfs=no
13267 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13268 if test $fu_cv_sys_stat_statvfs = yes; then
13270 cat >> confdefs.h <<\EOF
13271 #define STAT_STATVFS 1
13277 if test $space = no; then
13278 # DEC Alpha running OSF/1
13279 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13280 echo "configure:13281: checking for 3-argument statfs function (DEC OSF/1)" >&5
13281 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13282 echo $ac_n "(cached) $ac_c" 1>&6
13284 if test "$cross_compiling" = yes; then
13285 fu_cv_sys_stat_statfs3_osf1=no
13287 cat > conftest.$ac_ext <<EOF
13288 #line 13289 "configure"
13289 #include "confdefs.h"
13291 #include <sys/param.h>
13292 #include <sys/types.h>
13293 #include <sys/mount.h>
13298 exit (statfs (".", &fsd, sizeof (struct statfs)));
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13303 fu_cv_sys_stat_statfs3_osf1=yes
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13308 fu_cv_sys_stat_statfs3_osf1=no
13315 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13316 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13318 cat >> confdefs.h <<\EOF
13319 #define STAT_STATFS3_OSF1 1
13325 if test $space = no; then
13327 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13328 echo "configure:13329: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13329 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13330 echo $ac_n "(cached) $ac_c" 1>&6
13332 if test "$cross_compiling" = yes; then
13333 fu_cv_sys_stat_statfs2_bsize=no
13335 cat > conftest.$ac_ext <<EOF
13336 #line 13337 "configure"
13337 #include "confdefs.h"
13339 #ifdef HAVE_SYS_PARAM_H
13340 #include <sys/param.h>
13342 #ifdef HAVE_SYS_MOUNT_H
13343 #include <sys/mount.h>
13345 #ifdef HAVE_SYS_VFS_H
13346 #include <sys/vfs.h>
13352 exit (statfs (".", &fsd));
13355 if { (eval echo configure:13356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13357 fu_cv_sys_stat_statfs2_bsize=yes
13359 echo "configure: failed program was:" >&5
13360 cat conftest.$ac_ext >&5
13362 fu_cv_sys_stat_statfs2_bsize=no
13369 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13370 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13372 cat >> confdefs.h <<\EOF
13373 #define STAT_STATFS2_BSIZE 1
13379 if test $space = no; then
13381 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13382 echo "configure:13383: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13383 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13384 echo $ac_n "(cached) $ac_c" 1>&6
13386 if test "$cross_compiling" = yes; then
13387 fu_cv_sys_stat_statfs4=no
13389 cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13392 #include <sys/types.h>
13393 #include <sys/statfs.h>
13397 exit (statfs (".", &fsd, sizeof fsd, 0));
13400 if { (eval echo configure:13401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13402 fu_cv_sys_stat_statfs4=yes
13404 echo "configure: failed program was:" >&5
13405 cat conftest.$ac_ext >&5
13407 fu_cv_sys_stat_statfs4=no
13414 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13415 if test $fu_cv_sys_stat_statfs4 = yes; then
13417 cat >> confdefs.h <<\EOF
13418 #define STAT_STATFS4 1
13424 if test $space = no; then
13425 # 4.4BSD and NetBSD
13426 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13427 echo "configure:13428: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13428 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13429 echo $ac_n "(cached) $ac_c" 1>&6
13431 if test "$cross_compiling" = yes; then
13432 fu_cv_sys_stat_statfs2_fsize=no
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13437 #include <sys/types.h>
13438 #ifdef HAVE_SYS_PARAM_H
13439 #include <sys/param.h>
13441 #ifdef HAVE_SYS_MOUNT_H
13442 #include <sys/mount.h>
13448 exit (statfs (".", &fsd));
13451 if { (eval echo configure:13452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13453 fu_cv_sys_stat_statfs2_fsize=yes
13455 echo "configure: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13458 fu_cv_sys_stat_statfs2_fsize=no
13465 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13466 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13468 cat >> confdefs.h <<\EOF
13469 #define STAT_STATFS2_FSIZE 1
13475 if test $space = no; then
13477 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13478 echo "configure:13479: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13479 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13480 echo $ac_n "(cached) $ac_c" 1>&6
13482 if test "$cross_compiling" = yes; then
13483 fu_cv_sys_stat_fs_data=no
13485 cat > conftest.$ac_ext <<EOF
13486 #line 13487 "configure"
13487 #include "confdefs.h"
13488 #include <sys/types.h>
13489 #ifdef HAVE_SYS_PARAM_H
13490 #include <sys/param.h>
13492 #ifdef HAVE_SYS_MOUNT_H
13493 #include <sys/mount.h>
13495 #ifdef HAVE_SYS_FS_TYPES_H
13496 #include <sys/fs_types.h>
13500 struct fs_data fsd;
13501 /* Ultrix's statfs returns 1 for success,
13502 0 for not mounted, -1 for failure. */
13503 exit (statfs (".", &fsd) != 1);
13506 if { (eval echo configure:13507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13508 fu_cv_sys_stat_fs_data=yes
13510 echo "configure: failed program was:" >&5
13511 cat conftest.$ac_ext >&5
13513 fu_cv_sys_stat_fs_data=no
13520 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13521 if test $fu_cv_sys_stat_fs_data = yes; then
13523 cat >> confdefs.h <<\EOF
13524 #define STAT_STATFS2_FS_DATA 1
13531 # As a gating factor for large file support, in order to
13532 # use <4GB files we must have the following minimal support
13534 # long long, and a 64 bit off_t or off64_t.
13535 # If we don't have all of these then disable large
13538 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13539 echo "configure:13540: checking if large file support can be enabled" >&5
13540 cat > conftest.$ac_ext <<EOF
13541 #line 13542 "configure"
13542 #include "confdefs.h"
13544 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13545 #include <sys/types.h>
13554 if { (eval echo configure:13555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13556 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13561 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13564 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13565 cat >> confdefs.h <<\EOF
13566 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13570 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13572 # Check whether --with-spinlocks or --without-spinlocks was given.
13573 if test "${with_spinlocks+set}" = set; then
13574 withval="$with_spinlocks"
13578 if test "x$with_spinlocks" = "xyes"; then
13579 cat >> confdefs.h <<\EOF
13580 #define USE_SPINLOCKS 1
13584 case "$host_cpu" in
13586 cat >> confdefs.h <<\EOF
13587 #define SPARC_SPINLOCKS 1
13592 i386|i486|i586|i686)
13593 cat >> confdefs.h <<\EOF
13594 #define INTEL_SPINLOCKS 1
13600 cat >> confdefs.h <<\EOF
13601 #define MIPS_SPINLOCKS 1
13607 cat >> confdefs.h <<\EOF
13608 #define POWERPC_SPINLOCKS 1
13615 #################################################
13616 # check for ACL support
13618 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13619 echo "configure:13620: checking whether to support ACLs" >&5
13620 # Check whether --with-acl-support or --without-acl-support was given.
13621 if test "${with_acl_support+set}" = set; then
13622 withval="$with_acl_support"
13628 echo "$ac_t""Using UnixWare ACLs" 1>&6
13629 cat >> confdefs.h <<\EOF
13630 #define HAVE_UNIXWARE_ACLS 1
13635 echo "$ac_t""Using solaris ACLs" 1>&6
13636 cat >> confdefs.h <<\EOF
13637 #define HAVE_SOLARIS_ACLS 1
13642 echo "$ac_t""Using HPUX ACLs" 1>&6
13643 cat >> confdefs.h <<\EOF
13644 #define HAVE_HPUX_ACLS 1
13649 echo "$ac_t""Using IRIX ACLs" 1>&6
13650 cat >> confdefs.h <<\EOF
13651 #define HAVE_IRIX_ACLS 1
13656 echo "$ac_t""Using AIX ACLs" 1>&6
13657 cat >> confdefs.h <<\EOF
13658 #define HAVE_AIX_ACLS 1
13663 echo "$ac_t""Using Tru64 ACLs" 1>&6
13664 cat >> confdefs.h <<\EOF
13665 #define HAVE_TRU64_ACLS 1
13668 LIBS="$LIBS -lpacl"
13671 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13672 echo "configure:13673: checking for acl_get_file in -lacl" >&5
13673 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13675 echo $ac_n "(cached) $ac_c" 1>&6
13677 ac_save_LIBS="$LIBS"
13679 cat > conftest.$ac_ext <<EOF
13680 #line 13681 "configure"
13681 #include "confdefs.h"
13682 /* Override any gcc2 internal prototype to avoid an error. */
13683 /* We use char because int might match the return type of a gcc2
13684 builtin and then its argument prototype would still apply. */
13685 char acl_get_file();
13691 if { (eval echo configure:13692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13693 eval "ac_cv_lib_$ac_lib_var=yes"
13695 echo "configure: failed program was:" >&5
13696 cat conftest.$ac_ext >&5
13698 eval "ac_cv_lib_$ac_lib_var=no"
13701 LIBS="$ac_save_LIBS"
13704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13705 echo "$ac_t""yes" 1>&6
13706 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13707 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13708 cat >> confdefs.h <<EOF
13709 #define $ac_tr_lib 1
13715 echo "$ac_t""no" 1>&6
13718 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13719 echo "configure:13720: checking for ACL support" >&5
13720 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13721 echo $ac_n "(cached) $ac_c" 1>&6
13724 cat > conftest.$ac_ext <<EOF
13725 #line 13726 "configure"
13726 #include "confdefs.h"
13727 #include <sys/types.h>
13728 #include <sys/acl.h>
13730 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13733 if { (eval echo configure:13734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13735 samba_cv_HAVE_POSIX_ACLS=yes
13737 echo "configure: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13740 samba_cv_HAVE_POSIX_ACLS=no
13745 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13746 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13747 echo "$ac_t""Using posix ACLs" 1>&6
13748 cat >> confdefs.h <<\EOF
13749 #define HAVE_POSIX_ACLS 1
13752 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13753 echo "configure:13754: checking for acl_get_perm_np" >&5
13754 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13755 echo $ac_n "(cached) $ac_c" 1>&6
13758 cat > conftest.$ac_ext <<EOF
13759 #line 13760 "configure"
13760 #include "confdefs.h"
13761 #include <sys/types.h>
13762 #include <sys/acl.h>
13764 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13767 if { (eval echo configure:13768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13769 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13771 echo "configure: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
13774 samba_cv_HAVE_ACL_GET_PERM_NP=no
13779 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13780 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13781 cat >> confdefs.h <<\EOF
13782 #define HAVE_ACL_GET_PERM_NP 1
13791 echo "$ac_t""no" 1>&6
13792 cat >> confdefs.h <<\EOF
13793 #define HAVE_NO_ACLS 1
13799 cat >> confdefs.h <<\EOF
13800 #define HAVE_NO_ACLS 1
13803 echo "$ac_t""no" 1>&6
13808 #################################################
13809 # check for sendfile support
13811 echo $ac_n "checking whether to support sendfile""... $ac_c" 1>&6
13812 echo "configure:13813: checking whether to support sendfile" >&5
13813 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13814 if test "${with_sendfile_support+set}" = set; then
13815 withval="$with_sendfile_support"
13821 echo $ac_n "checking for sendfile64 support""... $ac_c" 1>&6
13822 echo "configure:13823: checking for sendfile64 support" >&5
13823 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13824 echo $ac_n "(cached) $ac_c" 1>&6
13827 cat > conftest.$ac_ext <<EOF
13828 #line 13829 "configure"
13829 #include "confdefs.h"
13830 #include <sys/sendfile.h>
13836 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13840 if { (eval echo configure:13841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13842 samba_cv_HAVE_SENDFILE64=yes
13844 echo "configure: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13847 samba_cv_HAVE_SENDFILE64=no
13852 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13854 echo $ac_n "checking for sendfile support""... $ac_c" 1>&6
13855 echo "configure:13856: checking for sendfile support" >&5
13856 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13857 echo $ac_n "(cached) $ac_c" 1>&6
13860 cat > conftest.$ac_ext <<EOF
13861 #line 13862 "configure"
13862 #include "confdefs.h"
13863 #include <sys/sendfile.h>
13869 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13873 if { (eval echo configure:13874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13875 samba_cv_HAVE_SENDFILE=yes
13877 echo "configure: failed program was:" >&5
13878 cat conftest.$ac_ext >&5
13880 samba_cv_HAVE_SENDFILE=no
13885 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13887 # Try and cope with broken Linux sendfile....
13888 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13889 echo "configure:13890: checking for broken linux sendfile support" >&5
13890 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13891 echo $ac_n "(cached) $ac_c" 1>&6
13894 cat > conftest.$ac_ext <<EOF
13895 #line 13896 "configure"
13896 #include "confdefs.h"
13898 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13899 #undef _FILE_OFFSET_BITS
13901 #include <sys/sendfile.h>
13907 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13911 if { (eval echo configure:13912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13913 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
13915 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13918 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
13923 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13925 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13926 cat >> confdefs.h <<\EOF
13927 #define HAVE_SENDFILE64 1
13930 cat >> confdefs.h <<\EOF
13931 #define LINUX_SENDFILE_API 1
13934 cat >> confdefs.h <<\EOF
13935 #define WITH_SENDFILE 1
13938 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13939 cat >> confdefs.h <<\EOF
13940 #define HAVE_SENDFILE 1
13943 cat >> confdefs.h <<\EOF
13944 #define LINUX_SENDFILE_API 1
13947 cat >> confdefs.h <<\EOF
13948 #define WITH_SENDFILE 1
13951 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
13952 cat >> confdefs.h <<\EOF
13953 #define LINUX_BROKEN_SENDFILE_API 1
13956 cat >> confdefs.h <<\EOF
13957 #define WITH_SENDFILE 1
13961 echo "$ac_t""no" 1>&6;
13970 echo "$ac_t""no" 1>&6
13974 echo "$ac_t""no" 1>&6
13980 #################################################
13981 # Check whether winbind is supported on this platform. If so we need to
13982 # build and install client programs (WINBIND_TARGETS), sbin programs
13983 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13985 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13986 echo "configure:13987: checking whether to build winbind" >&5
13988 # Initially, the value of $host_os decides whether winbind is supported
13996 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13997 WINBIND_NSS_EXTRA_LIBS="-lsocket"
14001 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
14005 winbind_no_reason=", unsupported on $host_os"
14009 # Check the setting of --with-winbindd
14011 # Check whether --with-winbind or --without-winbind was given.
14012 if test "${with_winbind+set}" = set; then
14013 withval="$with_winbind"
14027 # We need unix domain sockets for winbind
14029 if test x"$HAVE_WINBIND" = x"yes"; then
14030 if test x"$samba_cv_unixsocket" = x"no"; then
14031 winbind_no_reason=", no unix domain socket support on $host_os"
14036 # Display test results
14039 WINBIND_STARGETS=""
14040 WINBIND_LTARGETS=""
14041 WINBIND_PAM_PROGS=""
14043 if test x"$HAVE_WINBIND" = x"yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 cat >> confdefs.h <<\EOF
14046 #define WITH_WINBIND 1
14050 WINBIND_TARGETS="bin/wbinfo"
14051 WINBIND_STARGETS="bin/winbindd"
14052 if test x"$BLDSHARED" = x"true"; then
14053 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
14054 if test x"$with_pam" = x"yes"; then
14055 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
14059 echo "$ac_t""no$winbind_no_reason" 1>&6
14063 # Substitution time!
14072 # Solaris has some extra fields in struct passwd that need to be
14073 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14074 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14077 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14078 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14079 # [#include <pwd.h>])
14081 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14082 echo "configure:14083: checking whether struct passwd has pw_comment" >&5
14083 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14084 echo $ac_n "(cached) $ac_c" 1>&6
14087 cat > conftest.$ac_ext <<EOF
14088 #line 14089 "configure"
14089 #include "confdefs.h"
14092 struct passwd p; p.pw_comment;
14095 if { (eval echo configure:14096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14097 samba_cv_passwd_pw_comment=yes
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14102 samba_cv_passwd_pw_comment=no
14107 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14108 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
14109 cat >> confdefs.h <<\EOF
14110 #define HAVE_PASSWD_PW_COMMENT 1
14115 #AC_CHECK_MEMBER(struct passwd.pw_age,
14116 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14117 # [#include <pwd.h>])
14119 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14120 echo "configure:14121: checking whether struct passwd has pw_age" >&5
14121 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14122 echo $ac_n "(cached) $ac_c" 1>&6
14125 cat > conftest.$ac_ext <<EOF
14126 #line 14127 "configure"
14127 #include "confdefs.h"
14130 struct passwd p; p.pw_age;
14133 if { (eval echo configure:14134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14135 samba_cv_passwd_pw_age=yes
14137 echo "configure: failed program was:" >&5
14138 cat conftest.$ac_ext >&5
14140 samba_cv_passwd_pw_age=no
14145 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14146 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
14147 cat >> confdefs.h <<\EOF
14148 #define HAVE_PASSWD_PW_AGE 1
14153 #################################################
14154 # Check to see if we should use the included popt
14156 # Check whether --with-included-popt or --without-included-popt was given.
14157 if test "${with_included_popt+set}" = set; then
14158 withval="$with_included_popt"
14170 if test x"$INCLUDED_POPT" != x"yes"; then
14171 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14172 echo "configure:14173: checking for poptGetContext in -lpopt" >&5
14173 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14177 ac_save_LIBS="$LIBS"
14178 LIBS="-lpopt $LIBS"
14179 cat > conftest.$ac_ext <<EOF
14180 #line 14181 "configure"
14181 #include "confdefs.h"
14182 /* Override any gcc2 internal prototype to avoid an error. */
14183 /* We use char because int might match the return type of a gcc2
14184 builtin and then its argument prototype would still apply. */
14185 char poptGetContext();
14191 if { (eval echo configure:14192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14193 eval "ac_cv_lib_$ac_lib_var=yes"
14195 echo "configure: failed program was:" >&5
14196 cat conftest.$ac_ext >&5
14198 eval "ac_cv_lib_$ac_lib_var=no"
14201 LIBS="$ac_save_LIBS"
14204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14205 echo "$ac_t""yes" 1>&6
14208 echo "$ac_t""no" 1>&6
14214 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14215 echo "configure:14216: checking whether to use included popt" >&5
14216 if test x"$INCLUDED_POPT" = x"yes"; then
14217 echo "$ac_t""yes" 1>&6
14218 BUILD_POPT='$(POPT_OBJS)'
14219 FLAGS1="-I$srcdir/popt"
14221 echo "$ac_t""no" 1>&6
14222 LIBS="$LIBS -lpopt"
14227 #################################################
14228 # Check if the user wants Python
14230 # At the moment, you can use this to set which Python binary to link
14231 # against. (Libraries built for Python2.2 can't be used by 2.1,
14232 # though they can coexist in different directories.) In the future
14233 # this might make the Python stuff be built by default.
14235 # Check whether --with-python or --without-python was given.
14236 if test "${with_python+set}" = set; then
14237 withval="$with_python"
14238 PYTHON=${withval-python}
14243 #################################################
14244 # do extra things if we are running insure
14246 if test "${ac_cv_prog_CC}" = "insure"; then
14247 CPPFLAGS="$CPPFLAGS -D__INSURE__"
14250 #################################################
14251 # final configure stuff
14253 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14254 echo "configure:14255: checking configure summary" >&5
14255 if test "$cross_compiling" = yes; then
14256 echo "configure: warning: cannot run when cross-compiling" 1>&2
14258 cat > conftest.$ac_ext <<EOF
14259 #line 14260 "configure"
14260 #include "confdefs.h"
14261 #include "${srcdir-.}/tests/summary.c"
14263 if { (eval echo configure:14264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14265 echo "$ac_t""yes" 1>&6
14267 echo "configure: failed program was:" >&5
14268 cat conftest.$ac_ext >&5
14270 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14279 # I added make files that are outside /source directory.
14280 # I know this is not a good solution, will work out a better
14281 # solution soon. --simo
14283 cat > confcache <<\EOF
14284 # This file is a shell script that caches the results of configure
14285 # tests run on this system so they can be shared between configure
14286 # scripts and configure runs. It is not useful on other systems.
14287 # If it contains results you don't want to keep, you may remove or edit it.
14289 # By default, configure uses ./config.cache as the cache file,
14290 # creating it if it does not exist already. You can give configure
14291 # the --cache-file=FILE option to use a different cache file; that is
14292 # what configure does when it calls configure scripts in
14293 # subdirectories, so they share the cache.
14294 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14295 # config.status only pays attention to the cache file if you give it the
14296 # --recheck option to rerun configure.
14299 # The following way of writing the cache mishandles newlines in values,
14300 # but we know of no workaround that is simple, portable, and efficient.
14301 # So, don't put newlines in cache variables' values.
14302 # Ultrix sh set writes to stderr and can't be redirected directly,
14303 # and sets the high bit in the cache file unless we assign to the vars.
14305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14307 # `set' does not quote correctly, so add quotes (double-quote substitution
14308 # turns \\\\ into \\, and sed turns \\ into \).
14310 -e "s/'/'\\\\''/g" \
14311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14314 # `set' quotes correctly as required by POSIX, so do not add quotes.
14315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14318 if cmp -s $cache_file confcache; then
14321 if test -w $cache_file; then
14322 echo "updating cache $cache_file"
14323 cat confcache > $cache_file
14325 echo "not updating unwritable cache $cache_file"
14330 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14333 # Let make expand exec_prefix.
14334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14336 # Any assignment to VPATH causes Sun make to only execute
14337 # the first set of double-colon rules, so remove it if not needed.
14338 # If there is a colon in the path, we need to keep it.
14339 if test "x$srcdir" = x.; then
14340 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14343 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14345 DEFS=-DHAVE_CONFIG_H
14347 # Without the "./", some shells look in PATH for config.status.
14348 : ${CONFIG_STATUS=./config.status}
14350 echo creating $CONFIG_STATUS
14351 rm -f $CONFIG_STATUS
14352 cat > $CONFIG_STATUS <<EOF
14354 # Generated automatically by configure.
14355 # Run this file to recreate the current configuration.
14356 # This directory was configured as follows,
14357 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14359 # $0 $ac_configure_args
14361 # Compiler output produced by configure, useful for debugging
14362 # configure, is in ./config.log if it exists.
14364 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14367 case "\$ac_option" in
14368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14369 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14370 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14371 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14372 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14374 -help | --help | --hel | --he | --h)
14375 echo "\$ac_cs_usage"; exit 0 ;;
14376 *) echo "\$ac_cs_usage"; exit 1 ;;
14380 ac_given_srcdir=$srcdir
14381 ac_given_INSTALL="$INSTALL"
14383 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
14385 cat >> $CONFIG_STATUS <<EOF
14387 # Protect against being on the right side of a sed subst in config.status.
14388 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14389 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14393 s%@CFLAGS@%$CFLAGS%g
14394 s%@CPPFLAGS@%$CPPFLAGS%g
14395 s%@CXXFLAGS@%$CXXFLAGS%g
14396 s%@FFLAGS@%$FFLAGS%g
14398 s%@LDFLAGS@%$LDFLAGS%g
14400 s%@exec_prefix@%$exec_prefix%g
14401 s%@prefix@%$prefix%g
14402 s%@program_transform_name@%$program_transform_name%g
14403 s%@bindir@%$bindir%g
14404 s%@sbindir@%$sbindir%g
14405 s%@libexecdir@%$libexecdir%g
14406 s%@datadir@%$datadir%g
14407 s%@sysconfdir@%$sysconfdir%g
14408 s%@sharedstatedir@%$sharedstatedir%g
14409 s%@localstatedir@%$localstatedir%g
14410 s%@libdir@%$libdir%g
14411 s%@includedir@%$includedir%g
14412 s%@oldincludedir@%$oldincludedir%g
14413 s%@infodir@%$infodir%g
14414 s%@mandir@%$mandir%g
14415 s%@configdir@%$configdir%g
14416 s%@lockdir@%$lockdir%g
14417 s%@piddir@%$piddir%g
14418 s%@logfilebase@%$logfilebase%g
14419 s%@privatedir@%$privatedir%g
14420 s%@swatdir@%$swatdir%g
14421 s%@RUNPROG@%$RUNPROG%g
14422 s%@MPROGS@%$MPROGS%g
14423 s%@LDSHFLAGS@%$LDSHFLAGS%g
14424 s%@SONAMEFLAG@%$SONAMEFLAG%g
14426 s%@HOST_OS@%$HOST_OS%g
14427 s%@PAM_MOD@%$PAM_MOD%g
14429 s%@WRAP32@%$WRAP32%g
14430 s%@WRAPPROG@%$WRAPPROG%g
14431 s%@PICFLAG@%$PICFLAG%g
14432 s%@PICSUFFIX@%$PICSUFFIX%g
14433 s%@POBAD_CC@%$POBAD_CC%g
14434 s%@SHLIBEXT@%$SHLIBEXT%g
14435 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14436 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14437 s%@PRINTLIBS@%$PRINTLIBS%g
14439 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14440 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14441 s%@INSTALL_DATA@%$INSTALL_DATA%g
14443 s%@BROKEN_CC@%$BROKEN_CC%g
14445 s%@host_alias@%$host_alias%g
14446 s%@host_cpu@%$host_cpu%g
14447 s%@host_vendor@%$host_vendor%g
14448 s%@host_os@%$host_os%g
14449 s%@target@%$target%g
14450 s%@target_alias@%$target_alias%g
14451 s%@target_cpu@%$target_cpu%g
14452 s%@target_vendor@%$target_vendor%g
14453 s%@target_os@%$target_os%g
14455 s%@build_alias@%$build_alias%g
14456 s%@build_cpu@%$build_cpu%g
14457 s%@build_vendor@%$build_vendor%g
14458 s%@build_os@%$build_os%g
14460 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14461 s%@LIBOBJS@%$LIBOBJS%g
14462 s%@TERMLIBS@%$TERMLIBS%g
14463 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14465 s%@DYNEXP@%$DYNEXP%g
14466 s%@QUOTAOBJS@%$QUOTAOBJS%g
14467 s%@manlangs@%$manlangs%g
14468 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14469 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14470 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14471 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14472 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14473 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14474 s%@BUILD_POPT@%$BUILD_POPT%g
14475 s%@FLAGS1@%$FLAGS1%g
14476 s%@PYTHON@%$PYTHON%g
14477 s%@builddir@%$builddir%g
14482 cat >> $CONFIG_STATUS <<\EOF
14484 # Split the substitutions into bite-sized pieces for seds with
14485 # small command number limits, like on Digital OSF/1 and HP-UX.
14486 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14487 ac_file=1 # Number of current file.
14488 ac_beg=1 # First line for current file.
14489 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14492 while $ac_more_lines; do
14493 if test $ac_beg -gt 1; then
14494 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14496 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14498 if test ! -s conftest.s$ac_file; then
14499 ac_more_lines=false
14500 rm -f conftest.s$ac_file
14502 if test -z "$ac_sed_cmds"; then
14503 ac_sed_cmds="sed -f conftest.s$ac_file"
14505 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14507 ac_file=`expr $ac_file + 1`
14509 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14512 if test -z "$ac_sed_cmds"; then
14517 cat >> $CONFIG_STATUS <<EOF
14519 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/pdb/mysql/Makefile ../examples/pdb/xml/Makefile ../examples/sam/Makefile"}
14521 cat >> $CONFIG_STATUS <<\EOF
14522 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14525 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14526 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14527 *) ac_file_in="${ac_file}.in" ;;
14530 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14532 # Remove last slash and all that follows it. Not all systems have dirname.
14533 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14535 # The file is in a subdirectory.
14536 test ! -d "$ac_dir" && mkdir "$ac_dir"
14537 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14538 # A "../" for each directory in $ac_dir_suffix.
14539 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14541 ac_dir_suffix= ac_dots=
14544 case "$ac_given_srcdir" in
14546 if test -z "$ac_dots"; then top_srcdir=.
14547 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14548 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14549 *) # Relative path.
14550 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14551 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14554 case "$ac_given_INSTALL" in
14555 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14556 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14559 echo creating "$ac_file"
14561 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14563 *Makefile*) ac_comsub="1i\\
14564 # $configure_input" ;;
14568 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14570 s%@configure_input@%$configure_input%g
14571 s%@srcdir@%$srcdir%g
14572 s%@top_srcdir@%$top_srcdir%g
14573 s%@INSTALL@%$INSTALL%g
14574 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14578 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14579 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14581 # ac_d sets the value in "#define NAME VALUE" lines.
14582 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14583 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14586 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14587 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14588 ac_uB='\([ ]\)%\1#\2define\3'
14591 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14592 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14593 ac_eB='$%\1#\2define\3'
14597 if test "${CONFIG_HEADERS+set}" != set; then
14599 cat >> $CONFIG_STATUS <<EOF
14600 CONFIG_HEADERS="include/config.h"
14602 cat >> $CONFIG_STATUS <<\EOF
14604 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14607 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14608 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14609 *) ac_file_in="${ac_file}.in" ;;
14612 echo creating $ac_file
14614 rm -f conftest.frag conftest.in conftest.out
14615 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14616 cat $ac_file_inputs > conftest.in
14620 # Transform confdefs.h into a sed script conftest.vals that substitutes
14621 # the proper values into config.h.in to produce config.h. And first:
14622 # Protect against being on the right side of a sed subst in config.status.
14623 # Protect against being in an unquoted here document in config.status.
14624 rm -f conftest.vals
14625 cat > conftest.hdr <<\EOF
14628 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14632 sed -n -f conftest.hdr confdefs.h > conftest.vals
14635 # This sed command replaces #undef with comments. This is necessary, for
14636 # example, in the case of _POSIX_SOURCE, which is predefined and required
14637 # on some systems where configure will not decide to define it.
14638 cat >> conftest.vals <<\EOF
14639 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14642 # Break up conftest.vals because some shells have a limit on
14643 # the size of here documents, and old seds have small limits too.
14645 rm -f conftest.tail
14648 ac_lines=`grep -c . conftest.vals`
14649 # grep -c gives empty output for an empty file on some AIX systems.
14650 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14651 # Write a limited-size here document to conftest.frag.
14652 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14653 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14655 sed -f conftest.frag conftest.in > conftest.out
14657 mv conftest.out conftest.in
14658 ' >> $CONFIG_STATUS
14659 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14660 rm -f conftest.vals
14661 mv conftest.tail conftest.vals
14663 rm -f conftest.vals
14665 cat >> $CONFIG_STATUS <<\EOF
14666 rm -f conftest.frag conftest.h
14667 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14668 cat conftest.in >> conftest.h
14670 if cmp -s $ac_file conftest.h 2>/dev/null; then
14671 echo "$ac_file is unchanged"
14674 # Remove last slash and all that follows it. Not all systems have dirname.
14675 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14676 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14677 # The file is in a subdirectory.
14678 test ! -d "$ac_dir" && mkdir "$ac_dir"
14681 mv conftest.h $ac_file
14686 cat >> $CONFIG_STATUS <<EOF
14689 cat >> $CONFIG_STATUS <<\EOF
14693 chmod +x $CONFIG_STATUS
14694 rm -fr confdefs* $ac_clean_files
14695 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14698 #################################################
14699 # Print very concise instructions on building/use
14700 if test "x$enable_dmalloc" = xyes
14702 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14703 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6