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-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-developer Turn on developer warnings and debugging (default=no)"
36 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
38 --enable-dmalloc Enable heap debugging [default=no]"
40 --enable-cups Turn on CUPS support (default=auto)"
42 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
44 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
46 --with-smbwrapper Include SMB wrapper support (default=no) "
48 --with-afs Include AFS clear-text auth support (default=no) "
50 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
52 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
54 --with-automount Include AUTOMOUNT support (default=no)"
56 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
58 --with-pam Include PAM support (default=no)"
60 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (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-spinlocks Use spin locks instead of fcntl locks (default=no) "
80 --with-acl-support Include ACL support (default=no)"
82 --with-winbind Build winbind (default, if supported by OS)"
84 --with-included-popt use bundled popt library, not from system"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file=./config.cache
99 program_transform_name=s,x,x,
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
123 SHELL=${CONFIG_SHELL-/bin/sh}
124 # Maximum number of lines to put in a shell here document.
131 # If the previous option needs an argument, assign it.
132 if test -n "$ac_prev"; then
133 eval "$ac_prev=\$ac_option"
139 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143 # Accept the important Cygnus configure options, so we can diagnose typos.
147 -bindir | --bindir | --bindi | --bind | --bin | --bi)
149 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
150 bindir="$ac_optarg" ;;
152 -build | --build | --buil | --bui | --bu)
154 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
155 build="$ac_optarg" ;;
157 -cache-file | --cache-file | --cache-fil | --cache-fi \
158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
159 ac_prev=cache_file ;;
160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
162 cache_file="$ac_optarg" ;;
164 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
166 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
168 datadir="$ac_optarg" ;;
170 -disable-* | --disable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}=no" ;;
179 -enable-* | --enable-*)
180 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}='$ac_optarg'" ;;
192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
194 | --exec | --exe | --ex)
195 ac_prev=exec_prefix ;;
196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
198 | --exec=* | --exe=* | --ex=*)
199 exec_prefix="$ac_optarg" ;;
201 -gas | --gas | --ga | --g)
202 # Obsolete; use --with-gas.
205 -help | --help | --hel | --he)
206 # Omit some internal or obsolete options to make the list less imposing.
207 # This message is too long to be a string in the A/UX 3.1 sh.
209 Usage: configure [options] [host]
210 Options: [defaults in brackets after descriptions]
212 --cache-file=FILE cache test results in FILE
213 --help print this message
214 --no-create do not create output files
215 --quiet, --silent do not print \`checking...' messages
216 --version print the version of autoconf that created configure
217 Directory and file names:
218 --prefix=PREFIX install architecture-independent files in PREFIX
220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 --bindir=DIR user executables in DIR [EPREFIX/bin]
223 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
224 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
225 --datadir=DIR read-only architecture-independent data in DIR
227 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
228 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
231 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
232 --includedir=DIR C header files in DIR [PREFIX/include]
233 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
234 --infodir=DIR info documentation in DIR [PREFIX/info]
235 --mandir=DIR man documentation in DIR [PREFIX/man]
236 --srcdir=DIR find the sources in DIR [configure dir or ..]
237 --program-prefix=PREFIX prepend PREFIX to installed program names
238 --program-suffix=SUFFIX append SUFFIX to installed program names
239 --program-transform-name=PROGRAM
240 run sed PROGRAM on installed program names
244 --build=BUILD configure for building on BUILD [BUILD=HOST]
245 --host=HOST configure for HOST [guessed]
246 --target=TARGET configure for TARGET [TARGET=HOST]
247 Features and packages:
248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
250 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
251 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
252 --x-includes=DIR X include files are in DIR
253 --x-libraries=DIR X library files are in DIR
255 if test -n "$ac_help"; then
256 echo "--enable and --with options recognized:$ac_help"
260 -host | --host | --hos | --ho)
262 -host=* | --host=* | --hos=* | --ho=*)
265 -includedir | --includedir | --includedi | --included | --include \
266 | --includ | --inclu | --incl | --inc)
267 ac_prev=includedir ;;
268 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
269 | --includ=* | --inclu=* | --incl=* | --inc=*)
270 includedir="$ac_optarg" ;;
272 -infodir | --infodir | --infodi | --infod | --info | --inf)
274 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
275 infodir="$ac_optarg" ;;
277 -libdir | --libdir | --libdi | --libd)
279 -libdir=* | --libdir=* | --libdi=* | --libd=*)
280 libdir="$ac_optarg" ;;
282 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
283 | --libexe | --libex | --libe)
284 ac_prev=libexecdir ;;
285 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
286 | --libexe=* | --libex=* | --libe=*)
287 libexecdir="$ac_optarg" ;;
289 -localstatedir | --localstatedir | --localstatedi | --localstated \
290 | --localstate | --localstat | --localsta | --localst \
291 | --locals | --local | --loca | --loc | --lo)
292 ac_prev=localstatedir ;;
293 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
294 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
295 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
296 localstatedir="$ac_optarg" ;;
298 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
300 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
301 mandir="$ac_optarg" ;;
304 # Obsolete; use --without-fp.
307 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
312 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
316 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
317 | --oldin | --oldi | --old | --ol | --o)
318 ac_prev=oldincludedir ;;
319 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
320 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
321 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
322 oldincludedir="$ac_optarg" ;;
324 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
326 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
327 prefix="$ac_optarg" ;;
329 -program-prefix | --program-prefix | --program-prefi | --program-pref \
330 | --program-pre | --program-pr | --program-p)
331 ac_prev=program_prefix ;;
332 -program-prefix=* | --program-prefix=* | --program-prefi=* \
333 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
334 program_prefix="$ac_optarg" ;;
336 -program-suffix | --program-suffix | --program-suffi | --program-suff \
337 | --program-suf | --program-su | --program-s)
338 ac_prev=program_suffix ;;
339 -program-suffix=* | --program-suffix=* | --program-suffi=* \
340 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
341 program_suffix="$ac_optarg" ;;
343 -program-transform-name | --program-transform-name \
344 | --program-transform-nam | --program-transform-na \
345 | --program-transform-n | --program-transform- \
346 | --program-transform | --program-transfor \
347 | --program-transfo | --program-transf \
348 | --program-trans | --program-tran \
349 | --progr-tra | --program-tr | --program-t)
350 ac_prev=program_transform_name ;;
351 -program-transform-name=* | --program-transform-name=* \
352 | --program-transform-nam=* | --program-transform-na=* \
353 | --program-transform-n=* | --program-transform-=* \
354 | --program-transform=* | --program-transfor=* \
355 | --program-transfo=* | --program-transf=* \
356 | --program-trans=* | --program-tran=* \
357 | --progr-tra=* | --program-tr=* | --program-t=*)
358 program_transform_name="$ac_optarg" ;;
360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
361 | -silent | --silent | --silen | --sile | --sil)
364 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
366 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
368 sbindir="$ac_optarg" ;;
370 -sharedstatedir | --sharedstatedir | --sharedstatedi \
371 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
372 | --sharedst | --shareds | --shared | --share | --shar \
374 ac_prev=sharedstatedir ;;
375 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
376 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
377 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
379 sharedstatedir="$ac_optarg" ;;
381 -site | --site | --sit)
383 -site=* | --site=* | --sit=*)
386 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
388 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
389 srcdir="$ac_optarg" ;;
391 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
392 | --syscon | --sysco | --sysc | --sys | --sy)
393 ac_prev=sysconfdir ;;
394 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
395 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
396 sysconfdir="$ac_optarg" ;;
398 -target | --target | --targe | --targ | --tar | --ta | --t)
400 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
401 target="$ac_optarg" ;;
403 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 -version | --version | --versio | --versi | --vers)
407 echo "configure generated by autoconf version 2.13"
411 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}='$ac_optarg'" ;;
423 -without-* | --without-*)
424 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 eval "with_${ac_package}=no" ;;
433 # Obsolete; use --with-x.
436 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
437 | --x-incl | --x-inc | --x-in | --x-i)
438 ac_prev=x_includes ;;
439 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
440 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
441 x_includes="$ac_optarg" ;;
443 -x-libraries | --x-libraries | --x-librarie | --x-librari \
444 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
445 ac_prev=x_libraries ;;
446 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
447 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
448 x_libraries="$ac_optarg" ;;
450 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
455 echo "configure: warning: $ac_option: invalid host type" 1>&2
457 if test "x$nonopt" != xNONE; then
458 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 if test -n "$ac_prev"; then
467 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
472 # File descriptor usage:
475 # 2 errors and warnings
476 # 3 some systems may open it to /dev/tty
477 # 4 used on the Kubota Titan
478 # 6 checking for... messages and results
479 # 5 compiler messages saved in config.log
480 if test "$silent" = yes; then
488 This file contains any messages produced by compilers while
489 running configure, to aid debugging if configure makes a mistake.
492 # Strip out --no-create and --no-recursion so they do not pile up.
493 # Also quote any args containing shell metacharacters.
498 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
499 | --no-cr | --no-c) ;;
500 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
501 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
503 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
504 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 # Only set these to C if already set. These must not be set unconditionally
510 # because not all systems understand e.g. LANG=C (notably SCO).
511 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
512 # Non-C LC_CTYPE values break the ctype check.
513 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
514 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
515 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
516 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
519 rm -rf conftest* confdefs.h
520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 # A filename unique to this package, relative to the directory that
524 # configure is in, which we can look for to find out if srcdir is correct.
525 ac_unique_file=include/includes.h
527 # Find the source files, if location was not specified.
528 if test -z "$srcdir"; then
529 ac_srcdir_defaulted=yes
530 # Try the directory containing this script, then its parent.
532 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
533 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
535 if test ! -r $srcdir/$ac_unique_file; then
539 ac_srcdir_defaulted=no
541 if test ! -r $srcdir/$ac_unique_file; then
542 if test "$ac_srcdir_defaulted" = yes; then
543 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
550 # Prefer explicitly selected file to automatically selected ones.
551 if test -z "$CONFIG_SITE"; then
552 if test "x$prefix" != xNONE; then
553 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
555 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 for ac_site_file in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp='$CPP $CPPFLAGS'
576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling=$ac_cv_prog_cc_cross
582 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
584 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='\c' ac_t=
597 #################################################
598 # Directory handling stuff to support both the
599 # legacy SAMBA directories and FHS compliant
603 # Check whether --with-fhs or --without-fhs was given.
604 if test "${with_fhs+set}" = set; then
606 codepagedir="\$(DATADIR)/samba/codepages"
607 configdir="${sysconfdir}/samba"
608 lockdir="\${VARDIR}/cache/samba"
609 piddir="\$(VARDIR)/run/samba"
610 logfilebase="\${VARDIR}/log/samba"
611 privatedir="\${CONFIGDIR}/private"
612 swatdir="\${DATADIR}/samba/swat"
614 codepagedir="\$(LIBDIR)/codepages"
615 configdir="\$(LIBDIR)"
616 logfilebase="\$(VARDIR)"
617 lockdir="\${VARDIR}/locks"
618 piddir="\$(VARDIR)/locks"
619 privatedir="\${prefix}/private"
620 swatdir="\${prefix}/swat"
624 #################################################
625 # set private directory location
626 # Check whether --with-privatedir or --without-privatedir was given.
627 if test "${with_privatedir+set}" = set; then
628 withval="$with_privatedir"
632 # Just in case anybody calls it without argument
634 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
637 privatedir="$withval"
643 #################################################
644 # set lock directory location
645 # Check whether --with-lockdir or --without-lockdir was given.
646 if test "${with_lockdir+set}" = set; then
647 withval="$with_lockdir"
651 # Just in case anybody calls it without argument
653 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
662 #################################################
663 # set pid directory location
664 # Check whether --with-piddir or --without-piddir was given.
665 if test "${with_piddir+set}" = set; then
666 withval="$with_piddir"
670 # Just in case anybody calls it without argument
672 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
681 #################################################
682 # set SWAT directory location
683 # Check whether --with-swatdir or --without-swatdir was given.
684 if test "${with_swatdir+set}" = set; then
685 withval="$with_swatdir"
689 # Just in case anybody does it
691 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
700 #################################################
701 # set configuration directory location
702 # Check whether --with-configdir or --without-configdir was given.
703 if test "${with_configdir+set}" = set; then
704 withval="$with_configdir"
708 # Just in case anybody does it
710 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
719 #################################################
720 # set codepage directory location
721 # Check whether --with-codepagedir or --without-codepagedir was given.
722 if test "${with_codepagedir+set}" = set; then
723 withval="$with_codepagedir"
727 # Just in case anybody does it
729 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
732 codepagedir="$withval"
738 #################################################
739 # set log directory location
740 # Check whether --with-logfilebase or --without-logfilebase was given.
741 if test "${with_logfilebase+set}" = set; then
742 withval="$with_logfilebase"
746 # Just in case anybody does it
748 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
751 logfilebase="$withval"
782 # compile with optimisation and without debugging by default
783 CFLAGS="-O ${CFLAGS}"
785 # Check whether --enable-debug or --disable-debug was given.
786 if test "${enable_debug+set}" = set; then
787 enableval="$enable_debug"
788 if eval "test x$enable_debug = xyes"; then
789 CFLAGS="${CFLAGS} -g"
794 # Check whether --enable-developer or --disable-developer was given.
795 if test "${enable_developer+set}" = set; then
796 enableval="$enable_developer"
797 if eval "test x$enable_developer = xyes"; then
798 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
803 # Check whether --enable-krb5developer or --disable-krb5developer was given.
804 if test "${enable_krb5developer+set}" = set; then
805 enableval="$enable_krb5developer"
806 if eval "test x$enable_krb5developer = xyes"; then
807 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
812 # Check whether --enable-dmalloc or --disable-dmalloc was given.
813 if test "${enable_dmalloc+set}" = set; then
814 enableval="$enable_dmalloc"
819 if test "x$enable_dmalloc" = xyes
821 cat >> confdefs.h <<\EOF
822 #define ENABLE_DMALLOC 1
825 cat >> confdefs.h <<\EOF
826 #define DMALLOC_FUNC_CHECK 1
829 LIBS="$LIBS -ldmalloc"
832 # Extract the first word of "gcc", so it can be a program name with args.
833 set dummy gcc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$CC"; then
840 ac_cv_prog_CC="$CC" # Let the user override the test.
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
844 for ac_dir in $ac_dummy; do
845 test -z "$ac_dir" && ac_dir=.
846 if test -f $ac_dir/$ac_word; then
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
858 echo "$ac_t""no" 1>&6
861 if test -z "$CC"; then
862 # Extract the first word of "cc", so it can be a program name with args.
863 set dummy cc; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
887 if test $ac_prog_rejected = yes; then
888 # We found a bogon in the path, so make sure we never use it.
889 set dummy $ac_cv_prog_CC
891 if test $# -gt 0; then
892 # We chose a different compiler from the bogus one.
893 # However, it has the same basename, so the bogon will be chosen
894 # first if we set CC to just the basename; use the full file name.
896 set dummy "$ac_dir/$ac_word" "$@"
904 if test -n "$CC"; then
905 echo "$ac_t""$CC" 1>&6
907 echo "$ac_t""no" 1>&6
910 if test -z "$CC"; then
913 # Extract the first word of "cl", so it can be a program name with args.
914 set dummy cl; ac_word=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 echo "configure:917: checking for $ac_word" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 if test -n "$CC"; then
921 ac_cv_prog_CC="$CC" # Let the user override the test.
923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
925 for ac_dir in $ac_dummy; do
926 test -z "$ac_dir" && ac_dir=.
927 if test -f $ac_dir/$ac_word; then
936 if test -n "$CC"; then
937 echo "$ac_t""$CC" 1>&6
939 echo "$ac_t""no" 1>&6
944 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 cat > conftest.$ac_ext << EOF
959 #line 960 "configure"
960 #include "confdefs.h"
964 if { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
965 ac_cv_prog_cc_works=yes
966 # If we can't run a trivial program, we are probably using a cross compiler.
967 if (./conftest; exit) 2>/dev/null; then
968 ac_cv_prog_cc_cross=no
970 ac_cv_prog_cc_cross=yes
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
975 ac_cv_prog_cc_works=no
979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
980 ac_cpp='$CPP $CPPFLAGS'
981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
983 cross_compiling=$ac_cv_prog_cc_cross
985 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
986 if test $ac_cv_prog_cc_works = no; then
987 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
989 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
990 echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
991 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
992 cross_compiling=$ac_cv_prog_cc_cross
994 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
995 echo "configure:996: checking whether we are using GNU C" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 cat > conftest.c <<EOF
1004 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1011 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1013 if test $ac_cv_prog_gcc = yes; then
1019 ac_test_CFLAGS="${CFLAGS+set}"
1020 ac_save_CFLAGS="$CFLAGS"
1022 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether ${CC-cc} accepts -g" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 echo 'void f(){}' > conftest.c
1028 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1037 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1038 if test "$ac_test_CFLAGS" = set; then
1039 CFLAGS="$ac_save_CFLAGS"
1040 elif test $ac_cv_prog_cc_g = yes; then
1041 if test "$GCC" = yes; then
1047 if test "$GCC" = yes; then
1055 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1056 if test -f $ac_dir/install-sh; then
1058 ac_install_sh="$ac_aux_dir/install-sh -c"
1060 elif test -f $ac_dir/install.sh; then
1062 ac_install_sh="$ac_aux_dir/install.sh -c"
1066 if test -z "$ac_aux_dir"; then
1067 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1069 ac_config_guess=$ac_aux_dir/config.guess
1070 ac_config_sub=$ac_aux_dir/config.sub
1071 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1073 # Find a good install program. We prefer a C program (faster),
1074 # so one script is as good as another. But avoid the broken or
1075 # incompatible versions:
1076 # SysV /etc/install, /usr/sbin/install
1077 # SunOS /usr/etc/install
1078 # IRIX /sbin/install
1080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1083 # ./install, which can be erroneously created by make from ./install.sh.
1084 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1085 echo "configure:1086: checking for a BSD compatible install" >&5
1086 if test -z "$INSTALL"; then
1087 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1091 for ac_dir in $PATH; do
1092 # Account for people who put trailing slashes in PATH elements.
1094 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1096 # OSF1 and SCO ODT 3.0 have their own names for install.
1097 # Don't use installbsd from OSF since it installs stuff as root
1099 for ac_prog in ginstall scoinst install; do
1100 if test -f $ac_dir/$ac_prog; then
1101 if test $ac_prog = install &&
1102 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1103 # AIX install. It has an incompatible calling convention.
1106 ac_cv_path_install="$ac_dir/$ac_prog -c"
1117 if test "${ac_cv_path_install+set}" = set; then
1118 INSTALL="$ac_cv_path_install"
1120 # As a last resort, use the slow shell script. We don't cache a
1121 # path for INSTALL within a source directory, because that will
1122 # break other packages using the cache if that directory is
1123 # removed, or if the path is relative.
1124 INSTALL="$ac_install_sh"
1127 echo "$ac_t""$INSTALL" 1>&6
1129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1130 # It thinks the first close brace ends the variable substitution.
1131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1135 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1137 for ac_prog in gawk mawk nawk awk
1139 # Extract the first word of "$ac_prog", so it can be a program name with args.
1140 set dummy $ac_prog; ac_word=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$AWK"; then
1147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1151 for ac_dir in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir=.
1153 if test -f $ac_dir/$ac_word; then
1154 ac_cv_prog_AWK="$ac_prog"
1161 AWK="$ac_cv_prog_AWK"
1162 if test -n "$AWK"; then
1163 echo "$ac_t""$AWK" 1>&6
1165 echo "$ac_t""no" 1>&6
1168 test -n "$AWK" && break
1173 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1174 echo "configure:1175: checking if the linker ($LD) is GNU ld" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1179 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1180 ac_cv_prog_gnu_ld=yes
1182 ac_cv_prog_gnu_ld=no
1186 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1189 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1190 echo "configure:1191: checking for POSIXized ISC" >&5
1191 if test -d /etc/conf/kconfig.d &&
1192 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1194 echo "$ac_t""yes" 1>&6
1195 ISC=yes # If later tests want to check for ISC.
1196 cat >> confdefs.h <<\EOF
1197 #define _POSIX_SOURCE 1
1200 if test "$GCC" = yes; then
1206 echo "$ac_t""no" 1>&6
1211 if test "x$CC" != xcc; then
1212 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether $CC and cc understand -c and -o together" >&5
1215 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether cc understands -c and -o together" >&5
1218 set dummy $CC; ac_cc="`echo $2 |
1219 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1220 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 echo 'foo(){}' > conftest.c
1224 # Make sure it works both with $CC and with simple cc.
1225 # We do the test twice because some compilers refuse to overwrite an
1226 # existing .o file with -o, though they will create one.
1227 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1228 if { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1229 test -f conftest.o && { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1231 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1232 if test "x$CC" != xcc; then
1233 # Test first that cc exists at all.
1234 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1235 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1236 if { (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1237 test -f conftest.o && { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1242 # cc exists but doesn't like -o.
1243 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1248 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1253 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1254 echo "$ac_t""yes" 1>&6
1256 echo "$ac_t""no" 1>&6
1257 cat >> confdefs.h <<\EOF
1258 #define NO_MINUS_C_MINUS_O 1
1263 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1270 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1271 echo "configure:1272: checking that the C compiler understands volatile" >&5
1272 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 #include <sys/types.h>
1284 if { (eval echo configure:1285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1286 samba_cv_volatile=yes
1288 echo "configure: failed program was:" >&5
1289 cat conftest.$ac_ext >&5
1291 samba_cv_volatile=no
1296 echo "$ac_t""$samba_cv_volatile" 1>&6
1297 if test x"$samba_cv_volatile" = x"yes"; then
1298 cat >> confdefs.h <<\EOF
1299 #define HAVE_VOLATILE 1
1306 # Do some error checking and defaulting for the host and target type.
1308 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1311 # 1. You are not allowed to specify --host, --target, and nonopt at the
1313 # 2. Host defaults to nonopt.
1314 # 3. If nonopt is not specified, then host defaults to the current host,
1315 # as determined by config.guess.
1316 # 4. Target and build default to nonopt.
1317 # 5. If nonopt is not specified, then target and build default to host.
1319 # The aliases save the names the user supplied, while $host etc.
1320 # will get canonicalized.
1321 case $host---$target---$nonopt in
1322 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1323 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1327 # Make sure we can run config.sub.
1328 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1329 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1332 echo $ac_n "checking host system type""... $ac_c" 1>&6
1333 echo "configure:1334: checking host system type" >&5
1336 case "$host_alias" in
1340 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1341 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1343 *) host_alias=$nonopt ;;
1347 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1348 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1351 echo "$ac_t""$host" 1>&6
1353 echo $ac_n "checking target system type""... $ac_c" 1>&6
1354 echo "configure:1355: checking target system type" >&5
1356 target_alias=$target
1357 case "$target_alias" in
1360 NONE) target_alias=$host_alias ;;
1361 *) target_alias=$nonopt ;;
1365 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1366 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369 echo "$ac_t""$target" 1>&6
1371 echo $ac_n "checking build system type""... $ac_c" 1>&6
1372 echo "configure:1373: checking build system type" >&5
1375 case "$build_alias" in
1378 NONE) build_alias=$host_alias ;;
1379 *) build_alias=$nonopt ;;
1383 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1384 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1385 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1386 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1387 echo "$ac_t""$build" 1>&6
1389 test "$host_alias" != "$target_alias" &&
1390 test "$program_prefix$program_suffix$program_transform_name" = \
1392 program_prefix=${target_alias}-
1396 *irix6*) cat >> confdefs.h <<\EOF
1397 #include <standards.h>
1405 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1406 echo "configure:1407: checking config.cache system type" >&5
1407 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1408 test x"$ac_cv_host_system_type" != x"$host"; } ||
1409 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1410 test x"$ac_cv_build_system_type" != x"$build"; } ||
1411 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1412 test x"$ac_cv_target_system_type" != x"$target"; }; then
1413 echo "$ac_t""different" 1>&6
1414 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1416 echo "$ac_t""same" 1>&6
1418 ac_cv_host_system_type="$host"
1419 ac_cv_build_system_type="$build"
1420 ac_cv_target_system_type="$target"
1426 # Config CPPFLAG settings for strange OS's that must be set
1427 # before other tests.
1430 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1433 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1434 echo "configure:1435: checking whether ${CC-cc} accepts -Ae" >&5
1435 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 echo 'void f(){}' > conftest.c
1439 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1440 ac_cv_prog_cc_Ae=yes
1448 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1449 # mmap on HPUX is completely broken...
1450 cat >> confdefs.h <<\EOF
1451 #define MMAP_BLACKLIST 1
1454 if test $ac_cv_prog_cc_Ae = yes; then
1455 CPPFLAGS="$CPPFLAGS -Ae"
1458 # Defines needed for HPUX support.
1459 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1460 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1464 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1465 cat >> confdefs.h <<\EOF
1466 #define USE_BOTH_CRYPT_CALLS 1
1469 cat >> confdefs.h <<\EOF
1470 #define _HPUX_SOURCE 1
1473 cat >> confdefs.h <<\EOF
1474 #define _POSIX_SOURCE 1
1477 cat >> confdefs.h <<\EOF
1478 #define _ALIGNMENT_REQUIRED 1
1481 cat >> confdefs.h <<\EOF
1482 #define _MAX_ALIGNMENT 4
1487 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1488 cat >> confdefs.h <<\EOF
1489 #define USE_BOTH_CRYPT_CALLS 1
1492 cat >> confdefs.h <<\EOF
1493 #define _HPUX_SOURCE 1
1496 cat >> confdefs.h <<\EOF
1497 #define _POSIX_SOURCE 1
1500 cat >> confdefs.h <<\EOF
1501 #define _LARGEFILE64_SOURCE 1
1504 cat >> confdefs.h <<\EOF
1505 #define _ALIGNMENT_REQUIRED 1
1508 cat >> confdefs.h <<\EOF
1509 #define _MAX_ALIGNMENT 4
1518 # CRAY Unicos has broken const handling
1520 echo "$ac_t""disabling const" 1>&6
1521 CPPFLAGS="$CPPFLAGS -Dconst="
1525 # AIX4.x doesn't even admit to having large
1526 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1529 echo "$ac_t""enabling large file support" 1>&6
1530 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1531 cat >> confdefs.h <<\EOF
1532 #define _LARGE_FILES 1
1537 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1538 # to the existance of large files..
1539 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1540 # recommendations on large file support, however it makes the
1541 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1542 # recommendation makes the compile fail on gcc2.7. JRA.
1546 5.0*|5.1*|5.2*|5.3*|5.5*)
1547 echo "$ac_t""no large file support" 1>&6
1550 echo "$ac_t""enabling large file support" 1>&6
1551 if test "$ac_cv_prog_gcc" = yes; then
1552 ${CC-cc} -v >conftest.c 2>&1
1553 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1555 case "$ac_cv_gcc_compiler_version_number" in
1556 *"gcc version 2.6"*|*"gcc version 2.7"*)
1557 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1558 cat >> confdefs.h <<\EOF
1559 #define _LARGEFILE64_SOURCE 1
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
1576 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1577 cat >> confdefs.h <<\EOF
1578 #define _LARGEFILE64_SOURCE 1
1581 cat >> confdefs.h <<\EOF
1582 #define _FILE_OFFSET_BITS 64
1590 # Tests needed for SINIX large file support.
1593 if test $host = mips-sni-sysv4 ; then
1594 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1595 echo "configure:1596: checking for LFS support" >&5
1596 old_CPPFLAGS="$CPPFLAGS"
1597 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1598 if test "$cross_compiling" = yes; then
1599 SINIX_LFS_SUPPORT=cross
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1607 #if _LFS64_LARGEFILE == 1
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1616 SINIX_LFS_SUPPORT=yes
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 SINIX_LFS_SUPPORT=no
1626 CPPFLAGS="$old_CPPFLAGS"
1627 if test x$SINIX_LFS_SUPPORT = xyes ; then
1628 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1629 cat >> confdefs.h <<\EOF
1630 #define _LARGEFILE64_SOURCE 1
1633 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1634 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1635 LIBS="`getconf LFS64_LIBS` $LIBS"
1637 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1641 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1644 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1645 echo "configure:1646: checking for LFS support" >&5
1646 old_CPPFLAGS="$CPPFLAGS"
1647 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1648 if test "$cross_compiling" = yes; then
1649 LINUX_LFS_SUPPORT=cross
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1656 #include <sys/utsname.h>
1658 #if _LFS64_LARGEFILE == 1
1663 /* Ensure this is glibc 2.2 or higher */
1664 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1665 int libc_major = __GLIBC__;
1666 int libc_minor = __GLIBC_MINOR__;
1674 /* Ensure this is kernel 2.4 or higher */
1677 release = uts.release;
1678 major = atoi(strsep(&release, "."));
1679 minor = atoi(strsep(&release, "."));
1681 if (major > 2 || (major == 2 && minor > 3))
1690 if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1692 LINUX_LFS_SUPPORT=yes
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1697 LINUX_LFS_SUPPORT=no
1702 CPPFLAGS="$old_CPPFLAGS"
1703 if test x$LINUX_LFS_SUPPORT = xyes ; then
1704 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1705 cat >> confdefs.h <<\EOF
1706 #define _LARGEFILE64_SOURCE 1
1709 cat >> confdefs.h <<\EOF
1710 #define _FILE_OFFSET_BITS 64
1713 cat >> confdefs.h <<\EOF
1714 #define _GNU_SOURCE 1
1718 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1722 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1723 echo "configure:1724: checking for LFS support" >&5
1724 old_CPPFLAGS="$CPPFLAGS"
1725 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1726 if test "$cross_compiling" = yes; then
1727 GLIBC_LFS_SUPPORT=cross
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1735 #if _LFS64_LARGEFILE == 1
1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1744 GLIBC_LFS_SUPPORT=yes
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1749 GLIBC_LFS_SUPPORT=no
1754 CPPFLAGS="$old_CPPFLAGS"
1755 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1756 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1757 cat >> confdefs.h <<\EOF
1758 #define _LARGEFILE64_SOURCE 1
1761 cat >> confdefs.h <<\EOF
1762 #define _GNU_SOURCE 1
1766 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1771 echo $ac_n "checking for inline""... $ac_c" 1>&6
1772 echo "configure:1773: checking for inline" >&5
1773 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1777 for ac_kw in inline __inline__ __inline; do
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1786 if { (eval echo configure:1787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1788 ac_cv_c_inline=$ac_kw; break
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1798 echo "$ac_t""$ac_cv_c_inline" 1>&6
1799 case "$ac_cv_c_inline" in
1801 no) cat >> confdefs.h <<\EOF
1805 *) cat >> confdefs.h <<EOF
1806 #define inline $ac_cv_c_inline
1811 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1812 echo "configure:1813: checking how to run the C preprocessor" >&5
1813 # On Suns, sometimes $CPP names a directory.
1814 if test -n "$CPP" && test -d "$CPP"; then
1817 if test -z "$CPP"; then
1818 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 # This must be in double quotes, not single quotes, because CPP may get
1822 # substituted into the Makefile and "${CC-cc}" will confuse make.
1824 # On the NeXT, cc -E runs the code through the compiler's parser,
1825 # not just through cpp.
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1833 { (eval echo configure:1834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1835 if test -z "$ac_err"; then
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 CPP="${CC-cc} -E -traditional-cpp"
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1850 { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1852 if test -z "$ac_err"; then
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 CPP="${CC-cc} -nologo -E"
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1883 ac_cv_prog_CPP="$CPP"
1885 CPP="$ac_cv_prog_CPP"
1887 ac_cv_prog_CPP="$CPP"
1889 echo "$ac_t""$CPP" 1>&6
1891 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1892 echo "configure:1893: checking for ANSI C header files" >&5
1893 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 cat > conftest.$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1905 { (eval echo configure:1906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1907 if test -z "$ac_err"; then
1909 ac_cv_header_stdc=yes
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 ac_cv_header_stdc=no
1919 if test $ac_cv_header_stdc = yes; then
1920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1927 egrep "memchr" >/dev/null 2>&1; then
1931 ac_cv_header_stdc=no
1937 if test $ac_cv_header_stdc = yes; then
1938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1945 egrep "free" >/dev/null 2>&1; then
1949 ac_cv_header_stdc=no
1955 if test $ac_cv_header_stdc = yes; then
1956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1957 if test "$cross_compiling" = yes; then
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1964 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1965 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1967 int main () { int i; for (i = 0; i < 256; i++)
1968 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1972 if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1979 ac_cv_header_stdc=no
1987 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1988 if test $ac_cv_header_stdc = yes; then
1989 cat >> confdefs.h <<\EOF
1990 #define STDC_HEADERS 1
1996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1999 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_hdr that defines DIR" >&5
2001 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 #include <sys/types.h>
2013 if { (eval echo configure:2014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2015 eval "ac_cv_header_dirent_$ac_safe=yes"
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 eval "ac_cv_header_dirent_$ac_safe=no"
2024 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2025 echo "$ac_t""yes" 1>&6
2026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2027 cat >> confdefs.h <<EOF
2028 #define $ac_tr_hdr 1
2030 ac_header_dirent=$ac_hdr; break
2032 echo "$ac_t""no" 1>&6
2035 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2036 if test $ac_header_dirent = dirent.h; then
2037 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2038 echo "configure:2039: checking for opendir in -ldir" >&5
2039 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 ac_save_LIBS="$LIBS"
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 /* Override any gcc2 internal prototype to avoid an error. */
2049 /* We use char because int might match the return type of a gcc2
2050 builtin and then its argument prototype would still apply. */
2057 if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2059 eval "ac_cv_lib_$ac_lib_var=yes"
2061 echo "configure: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2064 eval "ac_cv_lib_$ac_lib_var=no"
2067 LIBS="$ac_save_LIBS"
2070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2071 echo "$ac_t""yes" 1>&6
2074 echo "$ac_t""no" 1>&6
2078 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2079 echo "configure:2080: checking for opendir in -lx" >&5
2080 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 ac_save_LIBS="$LIBS"
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 /* Override any gcc2 internal prototype to avoid an error. */
2090 /* We use char because int might match the return type of a gcc2
2091 builtin and then its argument prototype would still apply. */
2098 if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2100 eval "ac_cv_lib_$ac_lib_var=yes"
2102 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2105 eval "ac_cv_lib_$ac_lib_var=no"
2108 LIBS="$ac_save_LIBS"
2111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2112 echo "$ac_t""yes" 1>&6
2115 echo "$ac_t""no" 1>&6
2120 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2121 echo "configure:2122: checking whether time.h and sys/time.h may both be included" >&5
2122 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <sys/types.h>
2129 #include <sys/time.h>
2135 if { (eval echo configure:2136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2137 ac_cv_header_time=yes
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 ac_cv_header_time=no
2147 echo "$ac_t""$ac_cv_header_time" 1>&6
2148 if test $ac_cv_header_time = yes; then
2149 cat >> confdefs.h <<\EOF
2150 #define TIME_WITH_SYS_TIME 1
2155 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2156 echo "configure:2157: checking for sys/wait.h that is POSIX.1 compatible" >&5
2157 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 #include <sys/types.h>
2164 #include <sys/wait.h>
2166 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2169 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2174 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2177 if { (eval echo configure:2178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2179 ac_cv_header_sys_wait_h=yes
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 ac_cv_header_sys_wait_h=no
2189 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2190 if test $ac_cv_header_sys_wait_h = yes; then
2191 cat >> confdefs.h <<\EOF
2192 #define HAVE_SYS_WAIT_H 1
2197 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_hdr" >&5
2202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2211 { (eval echo configure:2212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2213 if test -z "$ac_err"; then
2215 eval "ac_cv_header_$ac_safe=yes"
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2221 eval "ac_cv_header_$ac_safe=no"
2225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2228 cat >> confdefs.h <<EOF
2229 #define $ac_tr_hdr 1
2233 echo "$ac_t""no" 1>&6
2237 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2241 echo "configure:2242: checking for $ac_hdr" >&5
2242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2251 { (eval echo configure:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2253 if test -z "$ac_err"; then
2255 eval "ac_cv_header_$ac_safe=yes"
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2261 eval "ac_cv_header_$ac_safe=no"
2265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2268 cat >> confdefs.h <<EOF
2269 #define $ac_tr_hdr 1
2273 echo "$ac_t""no" 1>&6
2277 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_hdr" >&5
2282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2291 { (eval echo configure:2292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2293 if test -z "$ac_err"; then
2295 eval "ac_cv_header_$ac_safe=yes"
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2301 eval "ac_cv_header_$ac_safe=no"
2305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2308 cat >> confdefs.h <<EOF
2309 #define $ac_tr_hdr 1
2313 echo "$ac_t""no" 1>&6
2317 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_hdr" >&5
2322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2331 { (eval echo configure:2332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2333 if test -z "$ac_err"; then
2335 eval "ac_cv_header_$ac_safe=yes"
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 eval "ac_cv_header_$ac_safe=no"
2345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2348 cat >> confdefs.h <<EOF
2349 #define $ac_tr_hdr 1
2353 echo "$ac_t""no" 1>&6
2357 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
2359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2361 echo "configure:2362: checking for $ac_hdr" >&5
2362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2371 { (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2373 if test -z "$ac_err"; then
2375 eval "ac_cv_header_$ac_safe=yes"
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2381 eval "ac_cv_header_$ac_safe=no"
2385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2388 cat >> confdefs.h <<EOF
2389 #define $ac_tr_hdr 1
2393 echo "$ac_t""no" 1>&6
2397 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2401 echo "configure:2402: checking for $ac_hdr" >&5
2402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2411 { (eval echo configure:2412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2413 if test -z "$ac_err"; then
2415 eval "ac_cv_header_$ac_safe=yes"
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 eval "ac_cv_header_$ac_safe=no"
2425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2428 cat >> confdefs.h <<EOF
2429 #define $ac_tr_hdr 1
2433 echo "$ac_t""no" 1>&6
2437 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_hdr" >&5
2442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2451 { (eval echo configure:2452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2453 if test -z "$ac_err"; then
2455 eval "ac_cv_header_$ac_safe=yes"
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2461 eval "ac_cv_header_$ac_safe=no"
2465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2466 echo "$ac_t""yes" 1>&6
2467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2468 cat >> confdefs.h <<EOF
2469 #define $ac_tr_hdr 1
2473 echo "$ac_t""no" 1>&6
2477 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2481 echo "configure:2482: checking for $ac_hdr" >&5
2482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2491 { (eval echo configure:2492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2493 if test -z "$ac_err"; then
2495 eval "ac_cv_header_$ac_safe=yes"
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 eval "ac_cv_header_$ac_safe=no"
2505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2506 echo "$ac_t""yes" 1>&6
2507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2508 cat >> confdefs.h <<EOF
2509 #define $ac_tr_hdr 1
2513 echo "$ac_t""no" 1>&6
2519 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2520 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2532 if { (eval echo configure:2533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2534 ac_cv_header_shadow_h=yes
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2539 ac_cv_header_shadow_h=no
2542 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2543 cat >> confdefs.h <<\EOF
2544 #define HAVE_SHADOW_H 1
2550 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2554 echo "configure:2555: checking for $ac_hdr" >&5
2555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2564 { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2566 if test -z "$ac_err"; then
2568 eval "ac_cv_header_$ac_safe=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_header_$ac_safe=no"
2578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2581 cat >> confdefs.h <<EOF
2582 #define $ac_tr_hdr 1
2586 echo "$ac_t""no" 1>&6
2590 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_hdr" >&5
2595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2608 eval "ac_cv_header_$ac_safe=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 eval "ac_cv_header_$ac_safe=no"
2618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2621 cat >> confdefs.h <<EOF
2622 #define $ac_tr_hdr 1
2626 echo "$ac_t""no" 1>&6
2630 for ac_hdr in stropts.h poll.h
2632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2634 echo "configure:2635: checking for $ac_hdr" >&5
2635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2644 { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2646 if test -z "$ac_err"; then
2648 eval "ac_cv_header_$ac_safe=yes"
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2654 eval "ac_cv_header_$ac_safe=no"
2658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2659 echo "$ac_t""yes" 1>&6
2660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2661 cat >> confdefs.h <<EOF
2662 #define $ac_tr_hdr 1
2666 echo "$ac_t""no" 1>&6
2670 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $ac_hdr" >&5
2675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2684 { (eval echo configure:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2686 if test -z "$ac_err"; then
2688 eval "ac_cv_header_$ac_safe=yes"
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2694 eval "ac_cv_header_$ac_safe=no"
2698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2701 cat >> confdefs.h <<EOF
2702 #define $ac_tr_hdr 1
2706 echo "$ac_t""no" 1>&6
2710 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2714 echo "configure:2715: checking for $ac_hdr" >&5
2715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726 if test -z "$ac_err"; then
2728 eval "ac_cv_header_$ac_safe=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2734 eval "ac_cv_header_$ac_safe=no"
2738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6
2740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2741 cat >> confdefs.h <<EOF
2742 #define $ac_tr_hdr 1
2746 echo "$ac_t""no" 1>&6
2751 # For experimental utmp support (lastlog on some BSD-like systems)
2752 for ac_hdr in utmp.h utmpx.h lastlog.h
2754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_hdr" >&5
2757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2766 { (eval echo configure:2767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2768 if test -z "$ac_err"; then
2770 eval "ac_cv_header_$ac_safe=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2776 eval "ac_cv_header_$ac_safe=no"
2780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2781 echo "$ac_t""yes" 1>&6
2782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2783 cat >> confdefs.h <<EOF
2784 #define $ac_tr_hdr 1
2788 echo "$ac_t""no" 1>&6
2793 # For quotas on Veritas VxFS filesystems
2794 for ac_hdr in sys/fs/vx_quota.h
2796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_hdr" >&5
2799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2808 { (eval echo configure:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2810 if test -z "$ac_err"; then
2812 eval "ac_cv_header_$ac_safe=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2818 eval "ac_cv_header_$ac_safe=no"
2822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2825 cat >> confdefs.h <<EOF
2826 #define $ac_tr_hdr 1
2830 echo "$ac_t""no" 1>&6
2835 # For quotas on Linux XFS filesystems
2836 for ac_hdr in linux/xqm.h
2838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2840 echo "configure:2841: checking for $ac_hdr" >&5
2841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2850 { (eval echo configure:2851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2852 if test -z "$ac_err"; then
2854 eval "ac_cv_header_$ac_safe=yes"
2857 echo "configure: failed program was:" >&5
2858 cat conftest.$ac_ext >&5
2860 eval "ac_cv_header_$ac_safe=no"
2864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2865 echo "$ac_t""yes" 1>&6
2866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2867 cat >> confdefs.h <<EOF
2868 #define $ac_tr_hdr 1
2872 echo "$ac_t""no" 1>&6
2877 echo $ac_n "checking size of int""... $ac_c" 1>&6
2878 echo "configure:2879: checking size of int" >&5
2879 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 if test "$cross_compiling" = yes; then
2883 ac_cv_sizeof_int=cross
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2891 FILE *f=fopen("conftestval", "w");
2893 fprintf(f, "%d\n", sizeof(int));
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2899 ac_cv_sizeof_int=`cat conftestval`
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2910 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2911 cat >> confdefs.h <<EOF
2912 #define SIZEOF_INT $ac_cv_sizeof_int
2916 echo $ac_n "checking size of long""... $ac_c" 1>&6
2917 echo "configure:2918: checking size of long" >&5
2918 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 if test "$cross_compiling" = yes; then
2922 ac_cv_sizeof_long=cross
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2930 FILE *f=fopen("conftestval", "w");
2932 fprintf(f, "%d\n", sizeof(long));
2936 if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2938 ac_cv_sizeof_long=`cat conftestval`
2940 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2949 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2950 cat >> confdefs.h <<EOF
2951 #define SIZEOF_LONG $ac_cv_sizeof_long
2955 echo $ac_n "checking size of short""... $ac_c" 1>&6
2956 echo "configure:2957: checking size of short" >&5
2957 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 if test "$cross_compiling" = yes; then
2961 ac_cv_sizeof_short=cross
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2969 FILE *f=fopen("conftestval", "w");
2971 fprintf(f, "%d\n", sizeof(short));
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2977 ac_cv_sizeof_short=`cat conftestval`
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 ac_cv_sizeof_short=0
2988 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2989 cat >> confdefs.h <<EOF
2990 #define SIZEOF_SHORT $ac_cv_sizeof_short
2995 echo $ac_n "checking for working const""... $ac_c" 1>&6
2996 echo "configure:2997: checking for working const" >&5
2997 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3006 /* Ultrix mips cc rejects this. */
3007 typedef int charset[2]; const charset x;
3008 /* SunOS 4.1.1 cc rejects this. */
3009 char const *const *ccp;
3011 /* NEC SVR4.0.2 mips cc rejects this. */
3012 struct point {int x, y;};
3013 static struct point const zero = {0,0};
3014 /* AIX XL C 1.02.0.0 rejects this.
3015 It does not let you subtract one const X* pointer from another in an arm
3016 of an if-expression whose if-part is not a constant expression */
3017 const char *g = "string";
3018 ccp = &g + (g ? g-g : 0);
3019 /* HPUX 7.0 cc rejects these. */
3022 ccp = (char const *const *) p;
3023 { /* SCO 3.2v4 cc rejects this. */
3025 char const *s = 0 ? (char *) 0 : (char const *) 0;
3029 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3031 const int *foo = &x[0];
3034 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3035 typedef const int *iptr;
3039 { /* AIX XL C 1.02.0.0 rejects this saying
3040 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3041 struct s { int j; const int *ap[3]; };
3042 struct s *b; b->j = 5;
3044 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3050 if { (eval echo configure:3051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3062 echo "$ac_t""$ac_cv_c_const" 1>&6
3063 if test $ac_cv_c_const = no; then
3064 cat >> confdefs.h <<\EOF
3070 echo $ac_n "checking for inline""... $ac_c" 1>&6
3071 echo "configure:3072: checking for inline" >&5
3072 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3076 for ac_kw in inline __inline__ __inline; do
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087 ac_cv_c_inline=$ac_kw; break
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3097 echo "$ac_t""$ac_cv_c_inline" 1>&6
3098 case "$ac_cv_c_inline" in
3100 no) cat >> confdefs.h <<\EOF
3104 *) cat >> confdefs.h <<EOF
3105 #define inline $ac_cv_c_inline
3110 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3111 echo "configure:3112: checking whether byte ordering is bigendian" >&5
3112 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 ac_cv_c_bigendian=unknown
3116 # See if sys/param.h defines the BYTE_ORDER macro.
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <sys/types.h>
3121 #include <sys/param.h>
3124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3129 if { (eval echo configure:3130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3131 # It does; now see whether it defined to BIG_ENDIAN or not.
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3135 #include <sys/types.h>
3136 #include <sys/param.h>
3139 #if BYTE_ORDER != BIG_ENDIAN
3144 if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3146 ac_cv_c_bigendian=yes
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 ac_cv_c_bigendian=no
3155 echo "configure: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3159 if test $ac_cv_c_bigendian = unknown; then
3160 if test "$cross_compiling" = yes; then
3161 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3167 /* Are we little or big endian? From Harbison&Steele. */
3171 char c[sizeof (long)];
3174 exit (u.c[sizeof (long) - 1] == 1);
3177 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3179 ac_cv_c_bigendian=no
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3184 ac_cv_c_bigendian=yes
3192 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3193 if test $ac_cv_c_bigendian = yes; then
3194 cat >> confdefs.h <<\EOF
3195 #define WORDS_BIGENDIAN 1
3200 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3201 echo "configure:3202: checking whether char is unsigned" >&5
3202 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 if test "$GCC" = yes; then
3206 # GCC predefines this symbol on systems where it applies.
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #ifdef __CHAR_UNSIGNED__
3215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3216 egrep "yes" >/dev/null 2>&1; then
3218 ac_cv_c_char_unsigned=yes
3221 ac_cv_c_char_unsigned=no
3226 if test "$cross_compiling" = yes; then
3227 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3233 #if !defined(__STDC__) || __STDC__ != 1
3237 volatile char c = 255; exit(c < 0);
3240 if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3242 ac_cv_c_char_unsigned=yes
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 ac_cv_c_char_unsigned=no
3255 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3256 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3257 cat >> confdefs.h <<\EOF
3258 #define __CHAR_UNSIGNED__ 1
3264 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3265 echo "configure:3266: checking return type of signal handlers" >&5
3266 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 #include <sys/types.h>
3278 extern "C" void (*signal (int, void (*)(int)))(int);
3280 void (*signal ()) ();
3287 if { (eval echo configure:3288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289 ac_cv_type_signal=void
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3294 ac_cv_type_signal=int
3299 echo "$ac_t""$ac_cv_type_signal" 1>&6
3300 cat >> confdefs.h <<EOF
3301 #define RETSIGTYPE $ac_cv_type_signal
3305 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3306 echo "configure:3307: checking for uid_t in sys/types.h" >&5
3307 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <sys/types.h>
3315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3316 egrep "uid_t" >/dev/null 2>&1; then
3318 ac_cv_type_uid_t=yes
3327 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3328 if test $ac_cv_type_uid_t = no; then
3329 cat >> confdefs.h <<\EOF
3333 cat >> confdefs.h <<\EOF
3339 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3340 echo "configure:3341: checking for mode_t" >&5
3341 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <sys/types.h>
3353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3354 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3356 ac_cv_type_mode_t=yes
3359 ac_cv_type_mode_t=no
3364 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3365 if test $ac_cv_type_mode_t = no; then
3366 cat >> confdefs.h <<\EOF
3372 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3373 echo "configure:3374: checking for off_t" >&5
3374 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <sys/types.h>
3386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3387 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3389 ac_cv_type_off_t=yes
3397 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3398 if test $ac_cv_type_off_t = no; then
3399 cat >> confdefs.h <<\EOF
3405 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3406 echo "configure:3407: checking for size_t" >&5
3407 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3422 ac_cv_type_size_t=yes
3425 ac_cv_type_size_t=no
3430 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3431 if test $ac_cv_type_size_t = no; then
3432 cat >> confdefs.h <<\EOF
3433 #define size_t unsigned
3438 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3439 echo "configure:3440: checking for pid_t" >&5
3440 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 #include <sys/types.h>
3452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3455 ac_cv_type_pid_t=yes
3463 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3464 if test $ac_cv_type_pid_t = no; then
3465 cat >> confdefs.h <<\EOF
3471 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3472 echo "configure:3473: checking for st_rdev in struct stat" >&5
3473 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 #include <sys/types.h>
3480 #include <sys/stat.h>
3482 struct stat s; s.st_rdev;
3485 if { (eval echo configure:3486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3487 ac_cv_struct_st_rdev=yes
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3492 ac_cv_struct_st_rdev=no
3497 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3498 if test $ac_cv_struct_st_rdev = yes; then
3499 cat >> confdefs.h <<\EOF
3500 #define HAVE_ST_RDEV 1
3505 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3506 echo "configure:3507: checking for d_off in dirent" >&5
3507 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3515 #include <sys/types.h>
3518 struct dirent d; d.d_off;
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3523 ac_cv_dirent_d_off=yes
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3528 ac_cv_dirent_d_off=no
3533 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3534 if test $ac_cv_dirent_d_off = yes; then
3535 cat >> confdefs.h <<\EOF
3536 #define HAVE_DIRENT_D_OFF 1
3541 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3542 echo "configure:3543: checking for ino_t" >&5
3543 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 #include <sys/types.h>
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3558 ac_cv_type_ino_t=yes
3566 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3567 if test $ac_cv_type_ino_t = no; then
3568 cat >> confdefs.h <<\EOF
3569 #define ino_t unsigned
3574 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3575 echo "configure:3576: checking for loff_t" >&5
3576 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <sys/types.h>
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3591 ac_cv_type_loff_t=yes
3594 ac_cv_type_loff_t=no
3599 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3600 if test $ac_cv_type_loff_t = no; then
3601 cat >> confdefs.h <<\EOF
3602 #define loff_t off_t
3607 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3608 echo "configure:3609: checking for offset_t" >&5
3609 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <sys/types.h>
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3624 ac_cv_type_offset_t=yes
3627 ac_cv_type_offset_t=no
3632 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3633 if test $ac_cv_type_offset_t = no; then
3634 cat >> confdefs.h <<\EOF
3635 #define offset_t loff_t
3640 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3641 echo "configure:3642: checking for ssize_t" >&5
3642 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3655 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3657 ac_cv_type_ssize_t=yes
3660 ac_cv_type_ssize_t=no
3665 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3666 if test $ac_cv_type_ssize_t = no; then
3667 cat >> confdefs.h <<\EOF
3673 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3674 echo "configure:3675: checking for wchar_t" >&5
3675 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 #include <sys/types.h>
3687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3690 ac_cv_type_wchar_t=yes
3693 ac_cv_type_wchar_t=no
3698 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3699 if test $ac_cv_type_wchar_t = no; then
3700 cat >> confdefs.h <<\EOF
3701 #define wchar_t unsigned short
3707 ############################################
3708 # for cups support we need libcups, and a handful of header files
3710 # Check whether --enable-cups or --disable-cups was given.
3711 if test "${enable_cups+set}" = set; then
3712 enableval="$enable_cups"
3717 if test x$enable_cups != xno; then
3718 # Extract the first word of "cups-config", so it can be a program name with args.
3719 set dummy cups-config; ac_word=$2
3720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3721 echo "configure:3722: checking for $ac_word" >&5
3722 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 case "$CUPS_CONFIG" in
3727 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3730 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3735 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f $ac_dir/$ac_word; then
3738 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3746 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3747 if test -n "$CUPS_CONFIG"; then
3748 echo "$ac_t""$CUPS_CONFIG" 1>&6
3750 echo "$ac_t""no" 1>&6
3754 if test "x$CUPS_CONFIG" != x; then
3755 cat >> confdefs.h <<\EOF
3759 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3760 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3761 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3765 ############################################
3766 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3767 for ac_func in dlopen
3769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3770 echo "configure:3771: checking for $ac_func" >&5
3771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 /* System header to define __stub macros and hopefully few prototypes,
3778 which can conflict with char $ac_func(); below. */
3780 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3787 /* The GNU C library defines this for functions which it implements
3788 to always fail with ENOSYS. Some functions are actually named
3789 something starting with __ and the normal name is an alias. */
3790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3800 eval "ac_cv_func_$ac_func=yes"
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3805 eval "ac_cv_func_$ac_func=no"
3810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3813 cat >> confdefs.h <<EOF
3814 #define $ac_tr_func 1
3818 echo "$ac_t""no" 1>&6
3822 if test x"$ac_cv_func_dlopen" = x"no"; then
3823 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3824 echo "configure:3825: checking for dlopen in -ldl" >&5
3825 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 ac_save_LIBS="$LIBS"
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3843 if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3845 eval "ac_cv_lib_$ac_lib_var=yes"
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3850 eval "ac_cv_lib_$ac_lib_var=no"
3853 LIBS="$ac_save_LIBS"
3856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3859 cat >> confdefs.h <<\EOF
3860 #define HAVE_DLOPEN 1
3864 echo "$ac_t""no" 1>&6
3868 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3870 ############################################
3871 # check if the compiler can do immediate structures
3872 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3873 echo "configure:3874: checking for immediate structures" >&5
3874 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3885 typedef struct {unsigned x;} FOOBAR;
3886 #define X_FOOBAR(x) ((FOOBAR) { x })
3887 #define FOO_ONE X_FOOBAR(1)
3897 if { (eval echo configure:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3899 samba_cv_immediate_structures=yes
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 samba_cv_immediate_structures=no
3909 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3910 if test x"$samba_cv_immediate_structures" = x"yes"; then
3911 cat >> confdefs.h <<\EOF
3912 #define HAVE_IMMEDIATE_STRUCTURES 1
3917 ############################################
3918 # check for unix domain sockets
3919 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3920 echo "configure:3921: checking for unix domain sockets" >&5
3921 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3929 #include <sys/types.h>
3932 #include <sys/socket.h>
3936 struct sockaddr_un sunaddr;
3937 sunaddr.sun_family = AF_UNIX;
3941 if { (eval echo configure:3942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3943 samba_cv_unixsocket=yes
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 samba_cv_unixsocket=no
3953 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3954 if test x"$samba_cv_unixsocket" = x"yes"; then
3955 cat >> confdefs.h <<\EOF
3956 #define HAVE_UNIXSOCKET 1
3962 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3963 echo "configure:3964: checking for socklen_t type" >&5
3964 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3972 #include <sys/types.h>
3977 #include <sys/socket.h>
3982 if { (eval echo configure:3983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3984 samba_cv_socklen_t=yes
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3989 samba_cv_socklen_t=no
3994 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3995 if test x"$samba_cv_socklen_t" = x"yes"; then
3996 cat >> confdefs.h <<\EOF
3997 #define HAVE_SOCKLEN_T_TYPE 1
4002 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4003 echo "configure:4004: checking for sig_atomic_t type" >&5
4004 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4012 #include <sys/types.h>
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4024 samba_cv_sig_atomic_t=yes
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 samba_cv_sig_atomic_t=no
4034 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4035 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_SIG_ATOMIC_T_TYPE 1
4042 # stupid headers have the functions but no declaration. grrrr.
4044 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4045 echo "configure:4046: checking for errno declaration" >&5
4046 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4058 if { (eval echo configure:4059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4060 ac_cv_have_errno_decl=yes
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4065 ac_cv_have_errno_decl=no
4070 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4071 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4072 cat >> confdefs.h <<\EOF
4073 #define HAVE_ERRNO_DECL 1
4079 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4080 echo "configure:4081: checking for setresuid declaration" >&5
4081 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4090 int i = (int)setresuid
4093 if { (eval echo configure:4094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095 ac_cv_have_setresuid_decl=yes
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4100 ac_cv_have_setresuid_decl=no
4105 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4106 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_SETRESUID_DECL 1
4114 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4115 echo "configure:4116: checking for setresgid declaration" >&5
4116 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4125 int i = (int)setresgid
4128 if { (eval echo configure:4129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4130 ac_cv_have_setresgid_decl=yes
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4135 ac_cv_have_setresgid_decl=no
4140 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4141 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4142 cat >> confdefs.h <<\EOF
4143 #define HAVE_SETRESGID_DECL 1
4149 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4150 echo "configure:4151: checking for asprintf declaration" >&5
4151 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4160 int i = (int)asprintf
4163 if { (eval echo configure:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 ac_cv_have_asprintf_decl=yes
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 ac_cv_have_asprintf_decl=no
4175 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4176 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_ASPRINTF_DECL 1
4184 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4185 echo "configure:4186: checking for vasprintf declaration" >&5
4186 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4195 int i = (int)vasprintf
4198 if { (eval echo configure:4199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4200 ac_cv_have_vasprintf_decl=yes
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 ac_cv_have_vasprintf_decl=no
4210 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4211 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_VASPRINTF_DECL 1
4219 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4220 echo "configure:4221: checking for vsnprintf declaration" >&5
4221 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4230 int i = (int)vsnprintf
4233 if { (eval echo configure:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4235 ac_cv_have_vsnprintf_decl=yes
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 ac_cv_have_vsnprintf_decl=no
4245 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4246 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4247 cat >> confdefs.h <<\EOF
4248 #define HAVE_VSNPRINTF_DECL 1
4254 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4255 echo "configure:4256: checking for snprintf declaration" >&5
4256 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4265 int i = (int)snprintf
4268 if { (eval echo configure:4269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4270 ac_cv_have_snprintf_decl=yes
4272 echo "configure: failed program was:" >&5
4273 cat conftest.$ac_ext >&5
4275 ac_cv_have_snprintf_decl=no
4280 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4281 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4282 cat >> confdefs.h <<\EOF
4283 #define HAVE_SNPRINTF_DECL 1
4289 # and glibc has setresuid under linux but the function does
4290 # nothing until kernel 2.1.44! very dumb.
4291 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4292 echo "configure:4293: checking for real setresuid" >&5
4293 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4297 if test "$cross_compiling" = yes; then
4298 samba_cv_have_setresuid=cross
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4304 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4308 samba_cv_have_setresuid=yes
4310 echo "configure: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4313 samba_cv_have_setresuid=no
4320 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4321 if test x"$samba_cv_have_setresuid" = x"yes"; then
4322 cat >> confdefs.h <<\EOF
4323 #define HAVE_SETRESUID 1
4328 # Do the same check for setresguid...
4330 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4331 echo "configure:4332: checking for real setresgid" >&5
4332 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4336 if test "$cross_compiling" = yes; then
4337 samba_cv_have_setresgid=cross
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4344 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4348 samba_cv_have_setresgid=yes
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 samba_cv_have_setresgid=no
4360 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4361 if test x"$samba_cv_have_setresgid" = x"yes"; then
4362 cat >> confdefs.h <<\EOF
4363 #define HAVE_SETRESGID 1
4368 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4369 echo "configure:4370: checking for 8-bit clean memcmp" >&5
4370 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 if test "$cross_compiling" = yes; then
4374 ac_cv_func_memcmp_clean=no
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4382 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4383 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4389 ac_cv_func_memcmp_clean=yes
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 ac_cv_func_memcmp_clean=no
4401 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4402 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4405 ###############################################
4406 # test for where we get crypt() from
4407 for ac_func in crypt
4409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4410 echo "configure:4411: checking for $ac_func" >&5
4411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* System header to define __stub macros and hopefully few prototypes,
4418 which can conflict with char $ac_func(); below. */
4420 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4427 /* The GNU C library defines this for functions which it implements
4428 to always fail with ENOSYS. Some functions are actually named
4429 something starting with __ and the normal name is an alias. */
4430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440 eval "ac_cv_func_$ac_func=yes"
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 eval "ac_cv_func_$ac_func=no"
4450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4453 cat >> confdefs.h <<EOF
4454 #define $ac_tr_func 1
4458 echo "$ac_t""no" 1>&6
4462 if test x"$ac_cv_func_crypt" = x"no"; then
4463 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4464 echo "configure:4465: checking for crypt in -lcrypt" >&5
4465 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 ac_save_LIBS="$LIBS"
4470 LIBS="-lcrypt $LIBS"
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 eval "ac_cv_lib_$ac_lib_var=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 eval "ac_cv_lib_$ac_lib_var=no"
4493 LIBS="$ac_save_LIBS"
4496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 LIBS="$LIBS -lcrypt";
4499 cat >> confdefs.h <<\EOF
4500 #define HAVE_CRYPT 1
4504 echo "$ac_t""no" 1>&6
4510 ###############################################
4511 # Readline included by default unless explicitly asked not to
4512 test "${with_readline+set}" != "set" && with_readline=yes
4514 # test for where we get readline() from
4515 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4516 echo "configure:4517: checking whether to use readline" >&5
4517 # Check whether --with-readline or --without-readline was given.
4518 if test "${with_readline+set}" = set; then
4519 withval="$with_readline"
4520 case "$with_readline" in
4522 echo "$ac_t""yes" 1>&6
4524 for ac_hdr in readline.h history.h readline/readline.h
4526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_hdr" >&5
4529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4538 { (eval echo configure:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4540 if test -z "$ac_err"; then
4542 eval "ac_cv_header_$ac_safe=yes"
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4548 eval "ac_cv_header_$ac_safe=no"
4552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4553 echo "$ac_t""yes" 1>&6
4554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4555 cat >> confdefs.h <<EOF
4556 #define $ac_tr_hdr 1
4560 echo "$ac_t""no" 1>&6
4564 for ac_hdr in readline/history.h
4566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4568 echo "configure:4569: checking for $ac_hdr" >&5
4569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4578 { (eval echo configure:4579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4580 if test -z "$ac_err"; then
4582 eval "ac_cv_header_$ac_safe=yes"
4585 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5
4588 eval "ac_cv_header_$ac_safe=no"
4592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4593 echo "$ac_t""yes" 1>&6
4594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4595 cat >> confdefs.h <<EOF
4596 #define $ac_tr_hdr 1
4600 echo "$ac_t""no" 1>&6
4605 for ac_hdr in readline.h readline/readline.h
4607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_hdr" >&5
4610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4619 { (eval echo configure:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4621 if test -z "$ac_err"; then
4623 eval "ac_cv_header_$ac_safe=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 eval "ac_cv_header_$ac_safe=no"
4633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4636 cat >> confdefs.h <<EOF
4637 #define $ac_tr_hdr 1
4640 for termlib in ncurses curses termcap terminfo termlib; do
4641 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4642 echo "configure:4643: checking for tgetent in -l${termlib}" >&5
4643 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 ac_save_LIBS="$LIBS"
4648 LIBS="-l${termlib} $LIBS"
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 /* Override any gcc2 internal prototype to avoid an error. */
4653 /* We use char because int might match the return type of a gcc2
4654 builtin and then its argument prototype would still apply. */
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4663 eval "ac_cv_lib_$ac_lib_var=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 eval "ac_cv_lib_$ac_lib_var=no"
4671 LIBS="$ac_save_LIBS"
4674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4675 echo "$ac_t""yes" 1>&6
4676 TERMLIBS="-l${termlib}"; break
4678 echo "$ac_t""no" 1>&6
4682 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4683 echo "configure:4684: checking for rl_callback_handler_install in -lreadline" >&5
4684 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 ac_save_LIBS="$LIBS"
4689 LIBS="-lreadline $TERMLIBS $LIBS"
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 /* Override any gcc2 internal prototype to avoid an error. */
4694 /* We use char because int might match the return type of a gcc2
4695 builtin and then its argument prototype would still apply. */
4696 char rl_callback_handler_install();
4699 rl_callback_handler_install()
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4704 eval "ac_cv_lib_$ac_lib_var=yes"
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 eval "ac_cv_lib_$ac_lib_var=no"
4712 LIBS="$ac_save_LIBS"
4715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4716 echo "$ac_t""yes" 1>&6
4717 TERMLIBS="-lreadline $TERMLIBS"
4718 cat >> confdefs.h <<\EOF
4719 #define HAVE_LIBREADLINE 1
4724 echo "$ac_t""no" 1>&6
4729 echo "$ac_t""no" 1>&6
4735 echo "$ac_t""no" 1>&6
4738 echo "$ac_t""yes" 1>&6
4740 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4741 # alternate readline path
4743 _cppflags=${CPPFLAGS}
4745 # Add additional search path
4746 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4747 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4749 for ac_hdr in readline.h history.h readline/readline.h
4751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_hdr" >&5
4754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4763 { (eval echo configure:4764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4765 if test -z "$ac_err"; then
4767 eval "ac_cv_header_$ac_safe=yes"
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4773 eval "ac_cv_header_$ac_safe=no"
4777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4780 cat >> confdefs.h <<EOF
4781 #define $ac_tr_hdr 1
4785 echo "$ac_t""no" 1>&6
4789 for ac_hdr in readline/history.h
4791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4793 echo "configure:4794: checking for $ac_hdr" >&5
4794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4803 { (eval echo configure:4804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4805 if test -z "$ac_err"; then
4807 eval "ac_cv_header_$ac_safe=yes"
4810 echo "configure: failed program was:" >&5
4811 cat conftest.$ac_ext >&5
4813 eval "ac_cv_header_$ac_safe=no"
4817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4820 cat >> confdefs.h <<EOF
4821 #define $ac_tr_hdr 1
4825 echo "$ac_t""no" 1>&6
4830 for ac_hdr in readline.h readline/readline.h
4832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4834 echo "configure:4835: checking for $ac_hdr" >&5
4835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4844 { (eval echo configure:4845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4846 if test -z "$ac_err"; then
4848 eval "ac_cv_header_$ac_safe=yes"
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4854 eval "ac_cv_header_$ac_safe=no"
4858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4861 cat >> confdefs.h <<EOF
4862 #define $ac_tr_hdr 1
4865 for termlib in ncurses curses termcap terminfo termlib; do
4866 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4867 echo "configure:4868: checking for tgetent in -l${termlib}" >&5
4868 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 ac_save_LIBS="$LIBS"
4873 LIBS="-l${termlib} $LIBS"
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* Override any gcc2 internal prototype to avoid an error. */
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4886 if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4888 eval "ac_cv_lib_$ac_lib_var=yes"
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4893 eval "ac_cv_lib_$ac_lib_var=no"
4896 LIBS="$ac_save_LIBS"
4899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4901 TERMLIBS="-l${termlib}"; break
4903 echo "$ac_t""no" 1>&6
4907 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4908 echo "configure:4909: checking for rl_callback_handler_install in -lreadline" >&5
4909 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 ac_save_LIBS="$LIBS"
4914 LIBS="-lreadline $TERMLIBS $LIBS"
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char rl_callback_handler_install();
4924 rl_callback_handler_install()
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4929 eval "ac_cv_lib_$ac_lib_var=yes"
4931 echo "configure: failed program was:" >&5
4932 cat conftest.$ac_ext >&5
4934 eval "ac_cv_lib_$ac_lib_var=no"
4937 LIBS="$ac_save_LIBS"
4940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4941 echo "$ac_t""yes" 1>&6
4942 TERMLDFLAGS="-L$with_readline/lib"
4943 TERMCPPFLAGS="-I$with_readline/include"
4944 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4945 TERMLIBS="-lreadline $TERMLIBS"
4946 cat >> confdefs.h <<\EOF
4947 #define HAVE_LIBREADLINE 1
4952 echo "$ac_t""no" 1>&6
4953 TERMLIBS= CPPFLAGS=$_cppflags
4957 echo "$ac_t""no" 1>&6
4966 echo "$ac_t""no" 1>&6
4973 # The readline API changed slightly from readline3 to readline4, so
4974 # code will generate warnings on one of them unless we have a few
4976 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4977 echo "configure:4978: checking for rl_completion_matches in -lreadline" >&5
4978 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4982 ac_save_LIBS="$LIBS"
4983 LIBS="-lreadline $TERMLIBS $LIBS"
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4990 char rl_completion_matches();
4993 rl_completion_matches()
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 eval "ac_cv_lib_$ac_lib_var=yes"
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5003 eval "ac_cv_lib_$ac_lib_var=no"
5006 LIBS="$ac_save_LIBS"
5009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5011 cat >> confdefs.h <<\EOF
5012 #define HAVE_NEW_LIBREADLINE 1
5016 echo "$ac_t""no" 1>&6
5020 # The following test taken from the cvs sources
5021 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5022 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5023 # libsocket.so which has a bad implementation of gethostbyname (it
5024 # only looks in /etc/hosts), so we only look for -lsocket if we need
5026 for ac_func in connect
5028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5029 echo "configure:5030: checking for $ac_func" >&5
5030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036 /* System header to define __stub macros and hopefully few prototypes,
5037 which can conflict with char $ac_func(); below. */
5039 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5046 /* The GNU C library defines this for functions which it implements
5047 to always fail with ENOSYS. Some functions are actually named
5048 something starting with __ and the normal name is an alias. */
5049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5057 if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5059 eval "ac_cv_func_$ac_func=yes"
5061 echo "configure: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5064 eval "ac_cv_func_$ac_func=no"
5069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5070 echo "$ac_t""yes" 1>&6
5071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5072 cat >> confdefs.h <<EOF
5073 #define $ac_tr_func 1
5077 echo "$ac_t""no" 1>&6
5081 if test x"$ac_cv_func_connect" = x"no"; then
5084 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5085 echo "configure:5086: checking for printf in -lnsl_s" >&5
5086 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 ac_save_LIBS="$LIBS"
5091 LIBS="-lnsl_s $LIBS"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 eval "ac_cv_lib_$ac_lib_var=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 eval "ac_cv_lib_$ac_lib_var=no"
5114 LIBS="$ac_save_LIBS"
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_lib 1
5125 LIBS="-lnsl_s $LIBS"
5128 echo "$ac_t""no" 1>&6
5134 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5135 echo "configure:5136: checking for printf in -lnsl" >&5
5136 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 ac_save_LIBS="$LIBS"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156 eval "ac_cv_lib_$ac_lib_var=yes"
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5161 eval "ac_cv_lib_$ac_lib_var=no"
5164 LIBS="$ac_save_LIBS"
5167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5171 cat >> confdefs.h <<EOF
5172 #define $ac_tr_lib 1
5178 echo "$ac_t""no" 1>&6
5184 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5185 echo "configure:5186: checking for connect in -lsocket" >&5
5186 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 ac_save_LIBS="$LIBS"
5191 LIBS="-lsocket $LIBS"
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5206 eval "ac_cv_lib_$ac_lib_var=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 eval "ac_cv_lib_$ac_lib_var=no"
5214 LIBS="$ac_save_LIBS"
5217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5221 cat >> confdefs.h <<EOF
5222 #define $ac_tr_lib 1
5225 LIBS="-lsocket $LIBS"
5228 echo "$ac_t""no" 1>&6
5234 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5235 echo "configure:5236: checking for connect in -linet" >&5
5236 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 ac_save_LIBS="$LIBS"
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 /* Override any gcc2 internal prototype to avoid an error. */
5246 /* We use char because int might match the return type of a gcc2
5247 builtin and then its argument prototype would still apply. */
5254 if { (eval echo configure:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 eval "ac_cv_lib_$ac_lib_var=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 eval "ac_cv_lib_$ac_lib_var=no"
5264 LIBS="$ac_save_LIBS"
5267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5269 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5271 cat >> confdefs.h <<EOF
5272 #define $ac_tr_lib 1
5278 echo "$ac_t""no" 1>&6
5282 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5283 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5284 # ac_cv_func_connect=yes
5285 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5286 cat >> confdefs.h <<\EOF
5287 #define HAVE_CONNECT 1
5293 ###############################################
5294 # test for where we get get_yp_default_domain() from
5295 for ac_func in yp_get_default_domain
5297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5298 echo "configure:5299: checking for $ac_func" >&5
5299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 /* System header to define __stub macros and hopefully few prototypes,
5306 which can conflict with char $ac_func(); below. */
5308 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5315 /* The GNU C library defines this for functions which it implements
5316 to always fail with ENOSYS. Some functions are actually named
5317 something starting with __ and the normal name is an alias. */
5318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5328 eval "ac_cv_func_$ac_func=yes"
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 eval "ac_cv_func_$ac_func=no"
5338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5339 echo "$ac_t""yes" 1>&6
5340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5341 cat >> confdefs.h <<EOF
5342 #define $ac_tr_func 1
5346 echo "$ac_t""no" 1>&6
5350 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5351 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5352 echo "configure:5353: checking for yp_get_default_domain in -lnsl" >&5
5353 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 ac_save_LIBS="$LIBS"
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5362 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5365 char yp_get_default_domain();
5368 yp_get_default_domain()
5371 if { (eval echo configure:5372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5373 eval "ac_cv_lib_$ac_lib_var=yes"
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5378 eval "ac_cv_lib_$ac_lib_var=no"
5381 LIBS="$ac_save_LIBS"
5384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5385 echo "$ac_t""yes" 1>&6
5387 cat >> confdefs.h <<\EOF
5388 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5392 echo "$ac_t""no" 1>&6
5397 # Check if we have execl, if not we need to compile smbrun.
5398 for ac_func in execl
5400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5401 echo "configure:5402: checking for $ac_func" >&5
5402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 /* System header to define __stub macros and hopefully few prototypes,
5409 which can conflict with char $ac_func(); below. */
5411 /* Override any gcc2 internal prototype to avoid an error. */
5412 /* We use char because int might match the return type of a gcc2
5413 builtin and then its argument prototype would still apply. */
5418 /* The GNU C library defines this for functions which it implements
5419 to always fail with ENOSYS. Some functions are actually named
5420 something starting with __ and the normal name is an alias. */
5421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 eval "ac_cv_func_$ac_func=yes"
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5436 eval "ac_cv_func_$ac_func=no"
5441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5442 echo "$ac_t""yes" 1>&6
5443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5444 cat >> confdefs.h <<EOF
5445 #define $ac_tr_func 1
5449 echo "$ac_t""no" 1>&6
5453 if test x"$ac_cv_func_execl" = x"no"; then
5454 RUNPROG="bin/smbrun"
5459 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5462 echo "configure:5463: checking for $ac_func" >&5
5463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 cat > conftest.$ac_ext <<EOF
5467 #line 5468 "configure"
5468 #include "confdefs.h"
5469 /* System header to define __stub macros and hopefully few prototypes,
5470 which can conflict with char $ac_func(); below. */
5472 /* Override any gcc2 internal prototype to avoid an error. */
5473 /* We use char because int might match the return type of a gcc2
5474 builtin and then its argument prototype would still apply. */
5479 /* The GNU C library defines this for functions which it implements
5480 to always fail with ENOSYS. Some functions are actually named
5481 something starting with __ and the normal name is an alias. */
5482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5490 if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5492 eval "ac_cv_func_$ac_func=yes"
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5497 eval "ac_cv_func_$ac_func=no"
5502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5505 cat >> confdefs.h <<EOF
5506 #define $ac_tr_func 1
5510 echo "$ac_t""no" 1>&6
5514 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5517 echo "configure:5518: checking for $ac_func" >&5
5518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 /* System header to define __stub macros and hopefully few prototypes,
5525 which can conflict with char $ac_func(); below. */
5527 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5534 /* The GNU C library defines this for functions which it implements
5535 to always fail with ENOSYS. Some functions are actually named
5536 something starting with __ and the normal name is an alias. */
5537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5545 if { (eval echo configure:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5547 eval "ac_cv_func_$ac_func=yes"
5549 echo "configure: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5552 eval "ac_cv_func_$ac_func=no"
5557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5558 echo "$ac_t""yes" 1>&6
5559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5560 cat >> confdefs.h <<EOF
5561 #define $ac_tr_func 1
5565 echo "$ac_t""no" 1>&6
5569 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5572 echo "configure:5573: checking for $ac_func" >&5
5573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5574 echo $ac_n "(cached) $ac_c" 1>&6
5576 cat > conftest.$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5579 /* System header to define __stub macros and hopefully few prototypes,
5580 which can conflict with char $ac_func(); below. */
5582 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5589 /* The GNU C library defines this for functions which it implements
5590 to always fail with ENOSYS. Some functions are actually named
5591 something starting with __ and the normal name is an alias. */
5592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5600 if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5602 eval "ac_cv_func_$ac_func=yes"
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5607 eval "ac_cv_func_$ac_func=no"
5612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5613 echo "$ac_t""yes" 1>&6
5614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5615 cat >> confdefs.h <<EOF
5616 #define $ac_tr_func 1
5620 echo "$ac_t""no" 1>&6
5624 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5627 echo "configure:5628: checking for $ac_func" >&5
5628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5629 echo $ac_n "(cached) $ac_c" 1>&6
5631 cat > conftest.$ac_ext <<EOF
5632 #line 5633 "configure"
5633 #include "confdefs.h"
5634 /* System header to define __stub macros and hopefully few prototypes,
5635 which can conflict with char $ac_func(); below. */
5637 /* Override any gcc2 internal prototype to avoid an error. */
5638 /* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5644 /* The GNU C library defines this for functions which it implements
5645 to always fail with ENOSYS. Some functions are actually named
5646 something starting with __ and the normal name is an alias. */
5647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5655 if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5657 eval "ac_cv_func_$ac_func=yes"
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5662 eval "ac_cv_func_$ac_func=no"
5667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5668 echo "$ac_t""yes" 1>&6
5669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5670 cat >> confdefs.h <<EOF
5671 #define $ac_tr_func 1
5675 echo "$ac_t""no" 1>&6
5679 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5682 echo "configure:5683: checking for $ac_func" >&5
5683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5684 echo $ac_n "(cached) $ac_c" 1>&6
5686 cat > conftest.$ac_ext <<EOF
5687 #line 5688 "configure"
5688 #include "confdefs.h"
5689 /* System header to define __stub macros and hopefully few prototypes,
5690 which can conflict with char $ac_func(); below. */
5692 /* Override any gcc2 internal prototype to avoid an error. */
5693 /* We use char because int might match the return type of a gcc2
5694 builtin and then its argument prototype would still apply. */
5699 /* The GNU C library defines this for functions which it implements
5700 to always fail with ENOSYS. Some functions are actually named
5701 something starting with __ and the normal name is an alias. */
5702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5710 if { (eval echo configure:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5712 eval "ac_cv_func_$ac_func=yes"
5714 echo "configure: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5717 eval "ac_cv_func_$ac_func=no"
5722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5723 echo "$ac_t""yes" 1>&6
5724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5725 cat >> confdefs.h <<EOF
5726 #define $ac_tr_func 1
5730 echo "$ac_t""no" 1>&6
5734 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5737 echo "configure:5738: checking for $ac_func" >&5
5738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* System header to define __stub macros and hopefully few prototypes,
5745 which can conflict with char $ac_func(); below. */
5747 /* Override any gcc2 internal prototype to avoid an error. */
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5754 /* The GNU C library defines this for functions which it implements
5755 to always fail with ENOSYS. Some functions are actually named
5756 something starting with __ and the normal name is an alias. */
5757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5767 eval "ac_cv_func_$ac_func=yes"
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5772 eval "ac_cv_func_$ac_func=no"
5777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5778 echo "$ac_t""yes" 1>&6
5779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5780 cat >> confdefs.h <<EOF
5781 #define $ac_tr_func 1
5785 echo "$ac_t""no" 1>&6
5789 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5792 echo "configure:5793: checking for $ac_func" >&5
5793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5799 /* System header to define __stub macros and hopefully few prototypes,
5800 which can conflict with char $ac_func(); below. */
5802 /* Override any gcc2 internal prototype to avoid an error. */
5803 /* We use char because int might match the return type of a gcc2
5804 builtin and then its argument prototype would still apply. */
5809 /* The GNU C library defines this for functions which it implements
5810 to always fail with ENOSYS. Some functions are actually named
5811 something starting with __ and the normal name is an alias. */
5812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 eval "ac_cv_func_$ac_func=yes"
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5827 eval "ac_cv_func_$ac_func=no"
5832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5833 echo "$ac_t""yes" 1>&6
5834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5835 cat >> confdefs.h <<EOF
5836 #define $ac_tr_func 1
5840 echo "$ac_t""no" 1>&6
5844 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5847 echo "configure:5848: checking for $ac_func" >&5
5848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5854 /* System header to define __stub macros and hopefully few prototypes,
5855 which can conflict with char $ac_func(); below. */
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */
5864 /* The GNU C library defines this for functions which it implements
5865 to always fail with ENOSYS. Some functions are actually named
5866 something starting with __ and the normal name is an alias. */
5867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5877 eval "ac_cv_func_$ac_func=yes"
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5882 eval "ac_cv_func_$ac_func=no"
5887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5888 echo "$ac_t""yes" 1>&6
5889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5890 cat >> confdefs.h <<EOF
5891 #define $ac_tr_func 1
5895 echo "$ac_t""no" 1>&6
5899 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5902 echo "configure:5903: checking for $ac_func" >&5
5903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5909 /* System header to define __stub macros and hopefully few prototypes,
5910 which can conflict with char $ac_func(); below. */
5912 /* Override any gcc2 internal prototype to avoid an error. */
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
5919 /* The GNU C library defines this for functions which it implements
5920 to always fail with ENOSYS. Some functions are actually named
5921 something starting with __ and the normal name is an alias. */
5922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5930 if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5932 eval "ac_cv_func_$ac_func=yes"
5934 echo "configure: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5937 eval "ac_cv_func_$ac_func=no"
5942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5943 echo "$ac_t""yes" 1>&6
5944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5945 cat >> confdefs.h <<EOF
5946 #define $ac_tr_func 1
5950 echo "$ac_t""no" 1>&6
5954 for ac_func in syslog vsyslog
5956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5957 echo "configure:5958: checking for $ac_func" >&5
5958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 /* System header to define __stub macros and hopefully few prototypes,
5965 which can conflict with char $ac_func(); below. */
5967 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5974 /* The GNU C library defines this for functions which it implements
5975 to always fail with ENOSYS. Some functions are actually named
5976 something starting with __ and the normal name is an alias. */
5977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5985 if { (eval echo configure:5986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5987 eval "ac_cv_func_$ac_func=yes"
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5992 eval "ac_cv_func_$ac_func=no"
5997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5998 echo "$ac_t""yes" 1>&6
5999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6000 cat >> confdefs.h <<EOF
6001 #define $ac_tr_func 1
6005 echo "$ac_t""no" 1>&6
6009 # setbuffer is needed for smbtorture
6010 for ac_func in setbuffer
6012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6013 echo "configure:6014: checking for $ac_func" >&5
6014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6015 echo $ac_n "(cached) $ac_c" 1>&6
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6020 /* System header to define __stub macros and hopefully few prototypes,
6021 which can conflict with char $ac_func(); below. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6030 /* The GNU C library defines this for functions which it implements
6031 to always fail with ENOSYS. Some functions are actually named
6032 something starting with __ and the normal name is an alias. */
6033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6041 if { (eval echo configure:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6043 eval "ac_cv_func_$ac_func=yes"
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 eval "ac_cv_func_$ac_func=no"
6053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6054 echo "$ac_t""yes" 1>&6
6055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6056 cat >> confdefs.h <<EOF
6057 #define $ac_tr_func 1
6061 echo "$ac_t""no" 1>&6
6066 # syscall() is needed for smbwrapper.
6067 for ac_func in syscall
6069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6070 echo "configure:6071: checking for $ac_func" >&5
6071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6074 cat > conftest.$ac_ext <<EOF
6075 #line 6076 "configure"
6076 #include "confdefs.h"
6077 /* System header to define __stub macros and hopefully few prototypes,
6078 which can conflict with char $ac_func(); below. */
6080 /* Override any gcc2 internal prototype to avoid an error. */
6081 /* We use char because int might match the return type of a gcc2
6082 builtin and then its argument prototype would still apply. */
6087 /* The GNU C library defines this for functions which it implements
6088 to always fail with ENOSYS. Some functions are actually named
6089 something starting with __ and the normal name is an alias. */
6090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6100 eval "ac_cv_func_$ac_func=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6105 eval "ac_cv_func_$ac_func=no"
6110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6111 echo "$ac_t""yes" 1>&6
6112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6113 cat >> confdefs.h <<EOF
6114 #define $ac_tr_func 1
6118 echo "$ac_t""no" 1>&6
6123 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6126 echo "configure:6127: checking for $ac_func" >&5
6127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 /* System header to define __stub macros and hopefully few prototypes,
6134 which can conflict with char $ac_func(); below. */
6136 /* Override any gcc2 internal prototype to avoid an error. */
6137 /* We use char because int might match the return type of a gcc2
6138 builtin and then its argument prototype would still apply. */
6143 /* The GNU C library defines this for functions which it implements
6144 to always fail with ENOSYS. Some functions are actually named
6145 something starting with __ and the normal name is an alias. */
6146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6154 if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6156 eval "ac_cv_func_$ac_func=yes"
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6161 eval "ac_cv_func_$ac_func=no"
6166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6167 echo "$ac_t""yes" 1>&6
6168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6169 cat >> confdefs.h <<EOF
6170 #define $ac_tr_func 1
6174 echo "$ac_t""no" 1>&6
6178 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6181 echo "configure:6182: checking for $ac_func" >&5
6182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6188 /* System header to define __stub macros and hopefully few prototypes,
6189 which can conflict with char $ac_func(); below. */
6191 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */
6198 /* The GNU C library defines this for functions which it implements
6199 to always fail with ENOSYS. Some functions are actually named
6200 something starting with __ and the normal name is an alias. */
6201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6211 eval "ac_cv_func_$ac_func=yes"
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6216 eval "ac_cv_func_$ac_func=no"
6221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6222 echo "$ac_t""yes" 1>&6
6223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6224 cat >> confdefs.h <<EOF
6225 #define $ac_tr_func 1
6229 echo "$ac_t""no" 1>&6
6233 for ac_func in __getcwd _getcwd
6235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6236 echo "configure:6237: checking for $ac_func" >&5
6237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6238 echo $ac_n "(cached) $ac_c" 1>&6
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6243 /* System header to define __stub macros and hopefully few prototypes,
6244 which can conflict with char $ac_func(); below. */
6246 /* Override any gcc2 internal prototype to avoid an error. */
6247 /* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */
6253 /* The GNU C library defines this for functions which it implements
6254 to always fail with ENOSYS. Some functions are actually named
6255 something starting with __ and the normal name is an alias. */
6256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6264 if { (eval echo configure:6265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6266 eval "ac_cv_func_$ac_func=yes"
6268 echo "configure: failed program was:" >&5
6269 cat conftest.$ac_ext >&5
6271 eval "ac_cv_func_$ac_func=no"
6276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6277 echo "$ac_t""yes" 1>&6
6278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6279 cat >> confdefs.h <<EOF
6280 #define $ac_tr_func 1
6284 echo "$ac_t""no" 1>&6
6288 for ac_func in __xstat __fxstat __lxstat
6290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_func" >&5
6292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6298 /* System header to define __stub macros and hopefully few prototypes,
6299 which can conflict with char $ac_func(); below. */
6301 /* Override any gcc2 internal prototype to avoid an error. */
6302 /* We use char because int might match the return type of a gcc2
6303 builtin and then its argument prototype would still apply. */
6308 /* The GNU C library defines this for functions which it implements
6309 to always fail with ENOSYS. Some functions are actually named
6310 something starting with __ and the normal name is an alias. */
6311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6319 if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6321 eval "ac_cv_func_$ac_func=yes"
6323 echo "configure: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6326 eval "ac_cv_func_$ac_func=no"
6331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6332 echo "$ac_t""yes" 1>&6
6333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6334 cat >> confdefs.h <<EOF
6335 #define $ac_tr_func 1
6339 echo "$ac_t""no" 1>&6
6343 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6346 echo "configure:6347: checking for $ac_func" >&5
6347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 /* System header to define __stub macros and hopefully few prototypes,
6354 which can conflict with char $ac_func(); below. */
6356 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6376 eval "ac_cv_func_$ac_func=yes"
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 eval "ac_cv_func_$ac_func=no"
6386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6389 cat >> confdefs.h <<EOF
6390 #define $ac_tr_func 1
6394 echo "$ac_t""no" 1>&6
6398 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6401 echo "configure:6402: checking for $ac_func" >&5
6402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6403 echo $ac_n "(cached) $ac_c" 1>&6
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 /* System header to define __stub macros and hopefully few prototypes,
6409 which can conflict with char $ac_func(); below. */
6411 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6418 /* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6429 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6431 eval "ac_cv_func_$ac_func=yes"
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6436 eval "ac_cv_func_$ac_func=no"
6441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6442 echo "$ac_t""yes" 1>&6
6443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6444 cat >> confdefs.h <<EOF
6445 #define $ac_tr_func 1
6449 echo "$ac_t""no" 1>&6
6453 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6456 echo "configure:6457: checking for $ac_func" >&5
6457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6460 cat > conftest.$ac_ext <<EOF
6461 #line 6462 "configure"
6462 #include "confdefs.h"
6463 /* System header to define __stub macros and hopefully few prototypes,
6464 which can conflict with char $ac_func(); below. */
6466 /* Override any gcc2 internal prototype to avoid an error. */
6467 /* We use char because int might match the return type of a gcc2
6468 builtin and then its argument prototype would still apply. */
6473 /* The GNU C library defines this for functions which it implements
6474 to always fail with ENOSYS. Some functions are actually named
6475 something starting with __ and the normal name is an alias. */
6476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6484 if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6486 eval "ac_cv_func_$ac_func=yes"
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6491 eval "ac_cv_func_$ac_func=no"
6496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6497 echo "$ac_t""yes" 1>&6
6498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6499 cat >> confdefs.h <<EOF
6500 #define $ac_tr_func 1
6504 echo "$ac_t""no" 1>&6
6508 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6511 echo "configure:6512: checking for $ac_func" >&5
6512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6515 cat > conftest.$ac_ext <<EOF
6516 #line 6517 "configure"
6517 #include "confdefs.h"
6518 /* System header to define __stub macros and hopefully few prototypes,
6519 which can conflict with char $ac_func(); below. */
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6528 /* The GNU C library defines this for functions which it implements
6529 to always fail with ENOSYS. Some functions are actually named
6530 something starting with __ and the normal name is an alias. */
6531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6539 if { (eval echo configure:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6541 eval "ac_cv_func_$ac_func=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 eval "ac_cv_func_$ac_func=no"
6551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6552 echo "$ac_t""yes" 1>&6
6553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6554 cat >> confdefs.h <<EOF
6555 #define $ac_tr_func 1
6559 echo "$ac_t""no" 1>&6
6563 for ac_func in _write __write _fork __fork
6565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6566 echo "configure:6567: checking for $ac_func" >&5
6567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* System header to define __stub macros and hopefully few prototypes,
6574 which can conflict with char $ac_func(); below. */
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6594 if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6596 eval "ac_cv_func_$ac_func=yes"
6598 echo "configure: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6601 eval "ac_cv_func_$ac_func=no"
6606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6607 echo "$ac_t""yes" 1>&6
6608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6609 cat >> confdefs.h <<EOF
6610 #define $ac_tr_func 1
6614 echo "$ac_t""no" 1>&6
6618 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_func" >&5
6622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* System header to define __stub macros and hopefully few prototypes,
6629 which can conflict with char $ac_func(); below. */
6631 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6638 /* The GNU C library defines this for functions which it implements
6639 to always fail with ENOSYS. Some functions are actually named
6640 something starting with __ and the normal name is an alias. */
6641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6651 eval "ac_cv_func_$ac_func=yes"
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6656 eval "ac_cv_func_$ac_func=no"
6661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6662 echo "$ac_t""yes" 1>&6
6663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6664 cat >> confdefs.h <<EOF
6665 #define $ac_tr_func 1
6669 echo "$ac_t""no" 1>&6
6673 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6676 echo "configure:6677: checking for $ac_func" >&5
6677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6680 cat > conftest.$ac_ext <<EOF
6681 #line 6682 "configure"
6682 #include "confdefs.h"
6683 /* System header to define __stub macros and hopefully few prototypes,
6684 which can conflict with char $ac_func(); below. */
6686 /* Override any gcc2 internal prototype to avoid an error. */
6687 /* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
6693 /* The GNU C library defines this for functions which it implements
6694 to always fail with ENOSYS. Some functions are actually named
6695 something starting with __ and the normal name is an alias. */
6696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6704 if { (eval echo configure:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6706 eval "ac_cv_func_$ac_func=yes"
6708 echo "configure: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6711 eval "ac_cv_func_$ac_func=no"
6716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6717 echo "$ac_t""yes" 1>&6
6718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6719 cat >> confdefs.h <<EOF
6720 #define $ac_tr_func 1
6724 echo "$ac_t""no" 1>&6
6728 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6731 echo "configure:6732: checking for $ac_func" >&5
6732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 /* System header to define __stub macros and hopefully few prototypes,
6739 which can conflict with char $ac_func(); below. */
6741 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6748 /* The GNU C library defines this for functions which it implements
6749 to always fail with ENOSYS. Some functions are actually named
6750 something starting with __ and the normal name is an alias. */
6751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6759 if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 eval "ac_cv_func_$ac_func=yes"
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 eval "ac_cv_func_$ac_func=no"
6771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6772 echo "$ac_t""yes" 1>&6
6773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6774 cat >> confdefs.h <<EOF
6775 #define $ac_tr_func 1
6779 echo "$ac_t""no" 1>&6
6783 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6786 echo "configure:6787: checking for $ac_func" >&5
6787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 /* System header to define __stub macros and hopefully few prototypes,
6794 which can conflict with char $ac_func(); below. */
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 /* We use char because int might match the return type of a gcc2
6798 builtin and then its argument prototype would still apply. */
6803 /* The GNU C library defines this for functions which it implements
6804 to always fail with ENOSYS. Some functions are actually named
6805 something starting with __ and the normal name is an alias. */
6806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6816 eval "ac_cv_func_$ac_func=yes"
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6821 eval "ac_cv_func_$ac_func=no"
6826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6827 echo "$ac_t""yes" 1>&6
6828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6829 cat >> confdefs.h <<EOF
6830 #define $ac_tr_func 1
6834 echo "$ac_t""no" 1>&6
6838 for ac_func in open64 _open64 __open64 creat64
6840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6841 echo "configure:6842: checking for $ac_func" >&5
6842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func(); below. */
6851 /* Override any gcc2 internal prototype to avoid an error. */
6852 /* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6858 /* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 eval "ac_cv_func_$ac_func=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_func_$ac_func=no"
6881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6884 cat >> confdefs.h <<EOF
6885 #define $ac_tr_func 1
6889 echo "$ac_t""no" 1>&6
6895 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6898 if test x$ac_cv_func_stat64 = xno ; then
6899 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6900 echo "configure:6901: checking for stat64 in <sys/stat.h>" >&5
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6905 #if defined(HAVE_UNISTD_H)
6908 #include <sys/stat.h>
6911 struct stat64 st64; exit(stat64(".",&st64));
6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6916 ac_cv_func_stat64=yes
6918 echo "configure: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6922 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6923 if test x$ac_cv_func_stat64 = xyes ; then
6924 cat >> confdefs.h <<\EOF
6925 #define HAVE_STAT64 1
6931 if test x$ac_cv_func_lstat64 = xno ; then
6932 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6933 echo "configure:6934: checking for lstat64 in <sys/stat.h>" >&5
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6938 #if defined(HAVE_UNISTD_H)
6941 #include <sys/stat.h>
6944 struct stat64 st64; exit(lstat64(".",&st64));
6947 if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6949 ac_cv_func_lstat64=yes
6951 echo "configure: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6955 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6956 if test x$ac_cv_func_lstat64 = xyes ; then
6957 cat >> confdefs.h <<\EOF
6958 #define HAVE_LSTAT64 1
6964 if test x$ac_cv_func_fstat64 = xno ; then
6965 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6966 echo "configure:6967: checking for fstat64 in <sys/stat.h>" >&5
6967 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6971 #if defined(HAVE_UNISTD_H)
6974 #include <sys/stat.h>
6977 struct stat64 st64; exit(fstat64(0,&st64));
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6982 ac_cv_func_fstat64=yes
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6988 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6989 if test x$ac_cv_func_fstat64 = xyes ; then
6990 cat >> confdefs.h <<\EOF
6991 #define HAVE_FSTAT64 1
6997 #####################################
6998 # we might need the resolv library on some systems
6999 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7000 echo "configure:7001: checking for dn_expand in -lresolv" >&5
7001 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 ac_save_LIBS="$LIBS"
7006 LIBS="-lresolv $LIBS"
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* Override any gcc2 internal prototype to avoid an error. */
7011 /* We use char because int might match the return type of a gcc2
7012 builtin and then its argument prototype would still apply. */
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7021 eval "ac_cv_lib_$ac_lib_var=yes"
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7026 eval "ac_cv_lib_$ac_lib_var=no"
7029 LIBS="$ac_save_LIBS"
7032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7034 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7036 cat >> confdefs.h <<EOF
7037 #define $ac_tr_lib 1
7040 LIBS="-lresolv $LIBS"
7043 echo "$ac_t""no" 1>&6
7048 # Check for the functions putprpwnam, set_auth_parameters,
7049 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7050 # Needed for OSF1 and HPUX.
7054 *-lsecurity*) for ac_func in putprpwnam
7056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7057 echo "configure:7058: checking for $ac_func" >&5
7058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char $ac_func(); below. */
7067 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7074 /* The GNU C library defines this for functions which it implements
7075 to always fail with ENOSYS. Some functions are actually named
7076 something starting with __ and the normal name is an alias. */
7077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7087 eval "ac_cv_func_$ac_func=yes"
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7092 eval "ac_cv_func_$ac_func=no"
7097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7098 echo "$ac_t""yes" 1>&6
7099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7100 cat >> confdefs.h <<EOF
7101 #define $ac_tr_func 1
7105 echo "$ac_t""no" 1>&6
7109 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7110 echo "configure:7111: checking for putprpwnam in -lsecurity" >&5
7111 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7113 echo $ac_n "(cached) $ac_c" 1>&6
7115 ac_save_LIBS="$LIBS"
7116 LIBS="-lsecurity $LIBS"
7117 cat > conftest.$ac_ext <<EOF
7118 #line 7119 "configure"
7119 #include "confdefs.h"
7120 /* Override any gcc2 internal prototype to avoid an error. */
7121 /* We use char because int might match the return type of a gcc2
7122 builtin and then its argument prototype would still apply. */
7129 if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7131 eval "ac_cv_lib_$ac_lib_var=yes"
7133 echo "configure: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7136 eval "ac_cv_lib_$ac_lib_var=no"
7139 LIBS="$ac_save_LIBS"
7142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7143 echo "$ac_t""yes" 1>&6
7144 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7146 cat >> confdefs.h <<EOF
7147 #define $ac_tr_lib 1
7150 LIBS="-lsecurity $LIBS"
7153 echo "$ac_t""no" 1>&6
7156 for ac_func in putprpwnam
7158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7159 echo "configure:7160: checking for $ac_func" >&5
7160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6
7163 cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7166 /* System header to define __stub macros and hopefully few prototypes,
7167 which can conflict with char $ac_func(); below. */
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7176 /* The GNU C library defines this for functions which it implements
7177 to always fail with ENOSYS. Some functions are actually named
7178 something starting with __ and the normal name is an alias. */
7179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7187 if { (eval echo configure:7188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7189 eval "ac_cv_func_$ac_func=yes"
7191 echo "configure: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7194 eval "ac_cv_func_$ac_func=no"
7199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7200 echo "$ac_t""yes" 1>&6
7201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7202 cat >> confdefs.h <<EOF
7203 #define $ac_tr_func 1
7207 echo "$ac_t""no" 1>&6
7215 *-lsec*) for ac_func in putprpwnam
7217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7218 echo "configure:7219: checking for $ac_func" >&5
7219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 /* System header to define __stub macros and hopefully few prototypes,
7226 which can conflict with char $ac_func(); below. */
7228 /* Override any gcc2 internal prototype to avoid an error. */
7229 /* We use char because int might match the return type of a gcc2
7230 builtin and then its argument prototype would still apply. */
7235 /* The GNU C library defines this for functions which it implements
7236 to always fail with ENOSYS. Some functions are actually named
7237 something starting with __ and the normal name is an alias. */
7238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7246 if { (eval echo configure:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7248 eval "ac_cv_func_$ac_func=yes"
7250 echo "configure: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7253 eval "ac_cv_func_$ac_func=no"
7258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7259 echo "$ac_t""yes" 1>&6
7260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7261 cat >> confdefs.h <<EOF
7262 #define $ac_tr_func 1
7266 echo "$ac_t""no" 1>&6
7270 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7271 echo "configure:7272: checking for putprpwnam in -lsec" >&5
7272 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 ac_save_LIBS="$LIBS"
7278 cat > conftest.$ac_ext <<EOF
7279 #line 7280 "configure"
7280 #include "confdefs.h"
7281 /* Override any gcc2 internal prototype to avoid an error. */
7282 /* We use char because int might match the return type of a gcc2
7283 builtin and then its argument prototype would still apply. */
7290 if { (eval echo configure:7291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7292 eval "ac_cv_lib_$ac_lib_var=yes"
7294 echo "configure: failed program was:" >&5
7295 cat conftest.$ac_ext >&5
7297 eval "ac_cv_lib_$ac_lib_var=no"
7300 LIBS="$ac_save_LIBS"
7303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7304 echo "$ac_t""yes" 1>&6
7305 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7307 cat >> confdefs.h <<EOF
7308 #define $ac_tr_lib 1
7314 echo "$ac_t""no" 1>&6
7317 for ac_func in putprpwnam
7319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7320 echo "configure:7321: checking for $ac_func" >&5
7321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7322 echo $ac_n "(cached) $ac_c" 1>&6
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 /* System header to define __stub macros and hopefully few prototypes,
7328 which can conflict with char $ac_func(); below. */
7330 /* Override any gcc2 internal prototype to avoid an error. */
7331 /* We use char because int might match the return type of a gcc2
7332 builtin and then its argument prototype would still apply. */
7337 /* The GNU C library defines this for functions which it implements
7338 to always fail with ENOSYS. Some functions are actually named
7339 something starting with __ and the normal name is an alias. */
7340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7348 if { (eval echo configure:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7350 eval "ac_cv_func_$ac_func=yes"
7352 echo "configure: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7355 eval "ac_cv_func_$ac_func=no"
7360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7361 echo "$ac_t""yes" 1>&6
7362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7363 cat >> confdefs.h <<EOF
7364 #define $ac_tr_func 1
7368 echo "$ac_t""no" 1>&6
7377 *-lsecurity*) for ac_func in set_auth_parameters
7379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7380 echo "configure:7381: checking for $ac_func" >&5
7381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7384 cat > conftest.$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char $ac_func(); below. */
7390 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7397 /* The GNU C library defines this for functions which it implements
7398 to always fail with ENOSYS. Some functions are actually named
7399 something starting with __ and the normal name is an alias. */
7400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7408 if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7410 eval "ac_cv_func_$ac_func=yes"
7412 echo "configure: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7415 eval "ac_cv_func_$ac_func=no"
7420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7421 echo "$ac_t""yes" 1>&6
7422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7423 cat >> confdefs.h <<EOF
7424 #define $ac_tr_func 1
7428 echo "$ac_t""no" 1>&6
7432 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7433 echo "configure:7434: checking for set_auth_parameters in -lsecurity" >&5
7434 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 ac_save_LIBS="$LIBS"
7439 LIBS="-lsecurity $LIBS"
7440 cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 /* We use char because int might match the return type of a gcc2
7445 builtin and then its argument prototype would still apply. */
7446 char set_auth_parameters();
7449 set_auth_parameters()
7452 if { (eval echo configure:7453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7454 eval "ac_cv_lib_$ac_lib_var=yes"
7456 echo "configure: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7459 eval "ac_cv_lib_$ac_lib_var=no"
7462 LIBS="$ac_save_LIBS"
7465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7466 echo "$ac_t""yes" 1>&6
7467 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7468 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7469 cat >> confdefs.h <<EOF
7470 #define $ac_tr_lib 1
7473 LIBS="-lsecurity $LIBS"
7476 echo "$ac_t""no" 1>&6
7479 for ac_func in set_auth_parameters
7481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7482 echo "configure:7483: checking for $ac_func" >&5
7483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7489 /* System header to define __stub macros and hopefully few prototypes,
7490 which can conflict with char $ac_func(); below. */
7492 /* Override any gcc2 internal prototype to avoid an error. */
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7499 /* The GNU C library defines this for functions which it implements
7500 to always fail with ENOSYS. Some functions are actually named
7501 something starting with __ and the normal name is an alias. */
7502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7510 if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7512 eval "ac_cv_func_$ac_func=yes"
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 eval "ac_cv_func_$ac_func=no"
7522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7523 echo "$ac_t""yes" 1>&6
7524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7525 cat >> confdefs.h <<EOF
7526 #define $ac_tr_func 1
7530 echo "$ac_t""no" 1>&6
7538 *-lsec*) for ac_func in set_auth_parameters
7540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_func" >&5
7542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7548 /* System header to define __stub macros and hopefully few prototypes,
7549 which can conflict with char $ac_func(); below. */
7551 /* Override any gcc2 internal prototype to avoid an error. */
7552 /* We use char because int might match the return type of a gcc2
7553 builtin and then its argument prototype would still apply. */
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7569 if { (eval echo configure:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7571 eval "ac_cv_func_$ac_func=yes"
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7576 eval "ac_cv_func_$ac_func=no"
7581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7582 echo "$ac_t""yes" 1>&6
7583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7584 cat >> confdefs.h <<EOF
7585 #define $ac_tr_func 1
7589 echo "$ac_t""no" 1>&6
7593 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7594 echo "configure:7595: checking for set_auth_parameters in -lsec" >&5
7595 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7599 ac_save_LIBS="$LIBS"
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char set_auth_parameters();
7610 set_auth_parameters()
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7615 eval "ac_cv_lib_$ac_lib_var=yes"
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7620 eval "ac_cv_lib_$ac_lib_var=no"
7623 LIBS="$ac_save_LIBS"
7626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7627 echo "$ac_t""yes" 1>&6
7628 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7629 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7630 cat >> confdefs.h <<EOF
7631 #define $ac_tr_lib 1
7637 echo "$ac_t""no" 1>&6
7640 for ac_func in set_auth_parameters
7642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7643 echo "configure:7644: checking for $ac_func" >&5
7644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7647 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure"
7649 #include "confdefs.h"
7650 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char $ac_func(); below. */
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7660 /* The GNU C library defines this for functions which it implements
7661 to always fail with ENOSYS. Some functions are actually named
7662 something starting with __ and the normal name is an alias. */
7663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7671 if { (eval echo configure:7672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7673 eval "ac_cv_func_$ac_func=yes"
7675 echo "configure: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7678 eval "ac_cv_func_$ac_func=no"
7683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7684 echo "$ac_t""yes" 1>&6
7685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7686 cat >> confdefs.h <<EOF
7687 #define $ac_tr_func 1
7691 echo "$ac_t""no" 1>&6
7699 # UnixWare 7.x has its getspnam in -lgen
7701 *-lgen*) for ac_func in getspnam
7703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7704 echo "configure:7705: checking for $ac_func" >&5
7705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7706 echo $ac_n "(cached) $ac_c" 1>&6
7708 cat > conftest.$ac_ext <<EOF
7709 #line 7710 "configure"
7710 #include "confdefs.h"
7711 /* System header to define __stub macros and hopefully few prototypes,
7712 which can conflict with char $ac_func(); below. */
7714 /* Override any gcc2 internal prototype to avoid an error. */
7715 /* We use char because int might match the return type of a gcc2
7716 builtin and then its argument prototype would still apply. */
7721 /* The GNU C library defines this for functions which it implements
7722 to always fail with ENOSYS. Some functions are actually named
7723 something starting with __ and the normal name is an alias. */
7724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7732 if { (eval echo configure:7733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7734 eval "ac_cv_func_$ac_func=yes"
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7739 eval "ac_cv_func_$ac_func=no"
7744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7745 echo "$ac_t""yes" 1>&6
7746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7747 cat >> confdefs.h <<EOF
7748 #define $ac_tr_func 1
7752 echo "$ac_t""no" 1>&6
7756 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7757 echo "configure:7758: checking for getspnam in -lgen" >&5
7758 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6
7762 ac_save_LIBS="$LIBS"
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7778 eval "ac_cv_lib_$ac_lib_var=yes"
7780 echo "configure: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7783 eval "ac_cv_lib_$ac_lib_var=no"
7786 LIBS="$ac_save_LIBS"
7789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7790 echo "$ac_t""yes" 1>&6
7791 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7793 cat >> confdefs.h <<EOF
7794 #define $ac_tr_lib 1
7800 echo "$ac_t""no" 1>&6
7803 for ac_func in getspnam
7805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7806 echo "configure:7807: checking for $ac_func" >&5
7807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 /* System header to define __stub macros and hopefully few prototypes,
7814 which can conflict with char $ac_func(); below. */
7816 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7823 /* The GNU C library defines this for functions which it implements
7824 to always fail with ENOSYS. Some functions are actually named
7825 something starting with __ and the normal name is an alias. */
7826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7836 eval "ac_cv_func_$ac_func=yes"
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7841 eval "ac_cv_func_$ac_func=no"
7846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7847 echo "$ac_t""yes" 1>&6
7848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7849 cat >> confdefs.h <<EOF
7850 #define $ac_tr_func 1
7854 echo "$ac_t""no" 1>&6
7863 *-lsecurity*) for ac_func in getspnam
7865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7866 echo "configure:7867: checking for $ac_func" >&5
7867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7870 cat > conftest.$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7873 /* System header to define __stub macros and hopefully few prototypes,
7874 which can conflict with char $ac_func(); below. */
7876 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7894 if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7896 eval "ac_cv_func_$ac_func=yes"
7898 echo "configure: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7901 eval "ac_cv_func_$ac_func=no"
7906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7907 echo "$ac_t""yes" 1>&6
7908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7909 cat >> confdefs.h <<EOF
7910 #define $ac_tr_func 1
7914 echo "$ac_t""no" 1>&6
7918 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7919 echo "configure:7920: checking for getspnam in -lsecurity" >&5
7920 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7924 ac_save_LIBS="$LIBS"
7925 LIBS="-lsecurity $LIBS"
7926 cat > conftest.$ac_ext <<EOF
7927 #line 7928 "configure"
7928 #include "confdefs.h"
7929 /* Override any gcc2 internal prototype to avoid an error. */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7938 if { (eval echo configure:7939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7940 eval "ac_cv_lib_$ac_lib_var=yes"
7942 echo "configure: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7945 eval "ac_cv_lib_$ac_lib_var=no"
7948 LIBS="$ac_save_LIBS"
7951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7953 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7955 cat >> confdefs.h <<EOF
7956 #define $ac_tr_lib 1
7959 LIBS="-lsecurity $LIBS"
7962 echo "$ac_t""no" 1>&6
7965 for ac_func in getspnam
7967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7968 echo "configure:7969: checking for $ac_func" >&5
7969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 cat > conftest.$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7975 /* System header to define __stub macros and hopefully few prototypes,
7976 which can conflict with char $ac_func(); below. */
7978 /* Override any gcc2 internal prototype to avoid an error. */
7979 /* We use char because int might match the return type of a gcc2
7980 builtin and then its argument prototype would still apply. */
7985 /* The GNU C library defines this for functions which it implements
7986 to always fail with ENOSYS. Some functions are actually named
7987 something starting with __ and the normal name is an alias. */
7988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7996 if { (eval echo configure:7997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7998 eval "ac_cv_func_$ac_func=yes"
8000 echo "configure: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8003 eval "ac_cv_func_$ac_func=no"
8008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8009 echo "$ac_t""yes" 1>&6
8010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8011 cat >> confdefs.h <<EOF
8012 #define $ac_tr_func 1
8016 echo "$ac_t""no" 1>&6
8024 *-lsec*) for ac_func in getspnam
8026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_func" >&5
8028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8031 cat > conftest.$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8034 /* System header to define __stub macros and hopefully few prototypes,
8035 which can conflict with char $ac_func(); below. */
8037 /* Override any gcc2 internal prototype to avoid an error. */
8038 /* We use char because int might match the return type of a gcc2
8039 builtin and then its argument prototype would still apply. */
8044 /* The GNU C library defines this for functions which it implements
8045 to always fail with ENOSYS. Some functions are actually named
8046 something starting with __ and the normal name is an alias. */
8047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8057 eval "ac_cv_func_$ac_func=yes"
8059 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8062 eval "ac_cv_func_$ac_func=no"
8067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8068 echo "$ac_t""yes" 1>&6
8069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8070 cat >> confdefs.h <<EOF
8071 #define $ac_tr_func 1
8075 echo "$ac_t""no" 1>&6
8079 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8080 echo "configure:8081: checking for getspnam in -lsec" >&5
8081 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8085 ac_save_LIBS="$LIBS"
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 /* Override any gcc2 internal prototype to avoid an error. */
8091 /* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8099 if { (eval echo configure:8100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8101 eval "ac_cv_lib_$ac_lib_var=yes"
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8106 eval "ac_cv_lib_$ac_lib_var=no"
8109 LIBS="$ac_save_LIBS"
8112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8113 echo "$ac_t""yes" 1>&6
8114 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8115 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8116 cat >> confdefs.h <<EOF
8117 #define $ac_tr_lib 1
8123 echo "$ac_t""no" 1>&6
8126 for ac_func in getspnam
8128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8129 echo "configure:8130: checking for $ac_func" >&5
8130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8131 echo $ac_n "(cached) $ac_c" 1>&6
8133 cat > conftest.$ac_ext <<EOF
8134 #line 8135 "configure"
8135 #include "confdefs.h"
8136 /* System header to define __stub macros and hopefully few prototypes,
8137 which can conflict with char $ac_func(); below. */
8139 /* Override any gcc2 internal prototype to avoid an error. */
8140 /* We use char because int might match the return type of a gcc2
8141 builtin and then its argument prototype would still apply. */
8146 /* The GNU C library defines this for functions which it implements
8147 to always fail with ENOSYS. Some functions are actually named
8148 something starting with __ and the normal name is an alias. */
8149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8157 if { (eval echo configure:8158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8159 eval "ac_cv_func_$ac_func=yes"
8161 echo "configure: failed program was:" >&5
8162 cat conftest.$ac_ext >&5
8164 eval "ac_cv_func_$ac_func=no"
8169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8170 echo "$ac_t""yes" 1>&6
8171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8172 cat >> confdefs.h <<EOF
8173 #define $ac_tr_func 1
8177 echo "$ac_t""no" 1>&6
8186 *-lsecurity*) for ac_func in bigcrypt
8188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8189 echo "configure:8190: checking for $ac_func" >&5
8190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8191 echo $ac_n "(cached) $ac_c" 1>&6
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* System header to define __stub macros and hopefully few prototypes,
8197 which can conflict with char $ac_func(); below. */
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8206 /* The GNU C library defines this for functions which it implements
8207 to always fail with ENOSYS. Some functions are actually named
8208 something starting with __ and the normal name is an alias. */
8209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8217 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8219 eval "ac_cv_func_$ac_func=yes"
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8224 eval "ac_cv_func_$ac_func=no"
8229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8230 echo "$ac_t""yes" 1>&6
8231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8232 cat >> confdefs.h <<EOF
8233 #define $ac_tr_func 1
8237 echo "$ac_t""no" 1>&6
8241 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8242 echo "configure:8243: checking for bigcrypt in -lsecurity" >&5
8243 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8247 ac_save_LIBS="$LIBS"
8248 LIBS="-lsecurity $LIBS"
8249 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8261 if { (eval echo configure:8262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8263 eval "ac_cv_lib_$ac_lib_var=yes"
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8268 eval "ac_cv_lib_$ac_lib_var=no"
8271 LIBS="$ac_save_LIBS"
8274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8275 echo "$ac_t""yes" 1>&6
8276 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8277 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8278 cat >> confdefs.h <<EOF
8279 #define $ac_tr_lib 1
8282 LIBS="-lsecurity $LIBS"
8285 echo "$ac_t""no" 1>&6
8288 for ac_func in bigcrypt
8290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8291 echo "configure:8292: checking for $ac_func" >&5
8292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8295 cat > conftest.$ac_ext <<EOF
8296 #line 8297 "configure"
8297 #include "confdefs.h"
8298 /* System header to define __stub macros and hopefully few prototypes,
8299 which can conflict with char $ac_func(); below. */
8301 /* Override any gcc2 internal prototype to avoid an error. */
8302 /* We use char because int might match the return type of a gcc2
8303 builtin and then its argument prototype would still apply. */
8308 /* The GNU C library defines this for functions which it implements
8309 to always fail with ENOSYS. Some functions are actually named
8310 something starting with __ and the normal name is an alias. */
8311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8321 eval "ac_cv_func_$ac_func=yes"
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8326 eval "ac_cv_func_$ac_func=no"
8331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8332 echo "$ac_t""yes" 1>&6
8333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8334 cat >> confdefs.h <<EOF
8335 #define $ac_tr_func 1
8339 echo "$ac_t""no" 1>&6
8347 *-lsec*) for ac_func in bigcrypt
8349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8350 echo "configure:8351: checking for $ac_func" >&5
8351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8352 echo $ac_n "(cached) $ac_c" 1>&6
8354 cat > conftest.$ac_ext <<EOF
8355 #line 8356 "configure"
8356 #include "confdefs.h"
8357 /* System header to define __stub macros and hopefully few prototypes,
8358 which can conflict with char $ac_func(); below. */
8360 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8367 /* The GNU C library defines this for functions which it implements
8368 to always fail with ENOSYS. Some functions are actually named
8369 something starting with __ and the normal name is an alias. */
8370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8378 if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8380 eval "ac_cv_func_$ac_func=yes"
8382 echo "configure: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8385 eval "ac_cv_func_$ac_func=no"
8390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8391 echo "$ac_t""yes" 1>&6
8392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8393 cat >> confdefs.h <<EOF
8394 #define $ac_tr_func 1
8398 echo "$ac_t""no" 1>&6
8402 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8403 echo "configure:8404: checking for bigcrypt in -lsec" >&5
8404 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8408 ac_save_LIBS="$LIBS"
8410 cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8413 /* Override any gcc2 internal prototype to avoid an error. */
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8422 if { (eval echo configure:8423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8424 eval "ac_cv_lib_$ac_lib_var=yes"
8426 echo "configure: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8429 eval "ac_cv_lib_$ac_lib_var=no"
8432 LIBS="$ac_save_LIBS"
8435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8436 echo "$ac_t""yes" 1>&6
8437 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8439 cat >> confdefs.h <<EOF
8440 #define $ac_tr_lib 1
8446 echo "$ac_t""no" 1>&6
8449 for ac_func in bigcrypt
8451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8452 echo "configure:8453: checking for $ac_func" >&5
8453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 /* System header to define __stub macros and hopefully few prototypes,
8460 which can conflict with char $ac_func(); below. */
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8469 /* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8480 if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8482 eval "ac_cv_func_$ac_func=yes"
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8487 eval "ac_cv_func_$ac_func=no"
8492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8493 echo "$ac_t""yes" 1>&6
8494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8495 cat >> confdefs.h <<EOF
8496 #define $ac_tr_func 1
8500 echo "$ac_t""no" 1>&6
8509 *-lsecurity*) for ac_func in getprpwnam
8511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8512 echo "configure:8513: checking for $ac_func" >&5
8513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8516 cat > conftest.$ac_ext <<EOF
8517 #line 8518 "configure"
8518 #include "confdefs.h"
8519 /* System header to define __stub macros and hopefully few prototypes,
8520 which can conflict with char $ac_func(); below. */
8522 /* Override any gcc2 internal prototype to avoid an error. */
8523 /* We use char because int might match the return type of a gcc2
8524 builtin and then its argument prototype would still apply. */
8529 /* The GNU C library defines this for functions which it implements
8530 to always fail with ENOSYS. Some functions are actually named
8531 something starting with __ and the normal name is an alias. */
8532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8540 if { (eval echo configure:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8542 eval "ac_cv_func_$ac_func=yes"
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8547 eval "ac_cv_func_$ac_func=no"
8552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8553 echo "$ac_t""yes" 1>&6
8554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8555 cat >> confdefs.h <<EOF
8556 #define $ac_tr_func 1
8560 echo "$ac_t""no" 1>&6
8564 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8565 echo "configure:8566: checking for getprpwnam in -lsecurity" >&5
8566 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8568 echo $ac_n "(cached) $ac_c" 1>&6
8570 ac_save_LIBS="$LIBS"
8571 LIBS="-lsecurity $LIBS"
8572 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 /* Override any gcc2 internal prototype to avoid an error. */
8576 /* We use char because int might match the return type of a gcc2
8577 builtin and then its argument prototype would still apply. */
8584 if { (eval echo configure:8585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8586 eval "ac_cv_lib_$ac_lib_var=yes"
8588 echo "configure: failed program was:" >&5
8589 cat conftest.$ac_ext >&5
8591 eval "ac_cv_lib_$ac_lib_var=no"
8594 LIBS="$ac_save_LIBS"
8597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8598 echo "$ac_t""yes" 1>&6
8599 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8600 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8601 cat >> confdefs.h <<EOF
8602 #define $ac_tr_lib 1
8605 LIBS="-lsecurity $LIBS"
8608 echo "$ac_t""no" 1>&6
8611 for ac_func in getprpwnam
8613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8614 echo "configure:8615: checking for $ac_func" >&5
8615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8616 echo $ac_n "(cached) $ac_c" 1>&6
8618 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8621 /* System header to define __stub macros and hopefully few prototypes,
8622 which can conflict with char $ac_func(); below. */
8624 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8631 /* The GNU C library defines this for functions which it implements
8632 to always fail with ENOSYS. Some functions are actually named
8633 something starting with __ and the normal name is an alias. */
8634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8642 if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8644 eval "ac_cv_func_$ac_func=yes"
8646 echo "configure: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8649 eval "ac_cv_func_$ac_func=no"
8654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8655 echo "$ac_t""yes" 1>&6
8656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8657 cat >> confdefs.h <<EOF
8658 #define $ac_tr_func 1
8662 echo "$ac_t""no" 1>&6
8670 *-lsec*) for ac_func in getprpwnam
8672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8673 echo "configure:8674: checking for $ac_func" >&5
8674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8675 echo $ac_n "(cached) $ac_c" 1>&6
8677 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8680 /* System header to define __stub macros and hopefully few prototypes,
8681 which can conflict with char $ac_func(); below. */
8683 /* Override any gcc2 internal prototype to avoid an error. */
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8690 /* The GNU C library defines this for functions which it implements
8691 to always fail with ENOSYS. Some functions are actually named
8692 something starting with __ and the normal name is an alias. */
8693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8701 if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8703 eval "ac_cv_func_$ac_func=yes"
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8708 eval "ac_cv_func_$ac_func=no"
8713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8714 echo "$ac_t""yes" 1>&6
8715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8716 cat >> confdefs.h <<EOF
8717 #define $ac_tr_func 1
8721 echo "$ac_t""no" 1>&6
8725 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8726 echo "configure:8727: checking for getprpwnam in -lsec" >&5
8727 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
8731 ac_save_LIBS="$LIBS"
8733 cat > conftest.$ac_ext <<EOF
8734 #line 8735 "configure"
8735 #include "confdefs.h"
8736 /* Override any gcc2 internal prototype to avoid an error. */
8737 /* We use char because int might match the return type of a gcc2
8738 builtin and then its argument prototype would still apply. */
8745 if { (eval echo configure:8746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8747 eval "ac_cv_lib_$ac_lib_var=yes"
8749 echo "configure: failed program was:" >&5
8750 cat conftest.$ac_ext >&5
8752 eval "ac_cv_lib_$ac_lib_var=no"
8755 LIBS="$ac_save_LIBS"
8758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8759 echo "$ac_t""yes" 1>&6
8760 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8762 cat >> confdefs.h <<EOF
8763 #define $ac_tr_lib 1
8769 echo "$ac_t""no" 1>&6
8772 for ac_func in getprpwnam
8774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8775 echo "configure:8776: checking for $ac_func" >&5
8776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 /* System header to define __stub macros and hopefully few prototypes,
8783 which can conflict with char $ac_func(); below. */
8785 /* Override any gcc2 internal prototype to avoid an error. */
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8792 /* The GNU C library defines this for functions which it implements
8793 to always fail with ENOSYS. Some functions are actually named
8794 something starting with __ and the normal name is an alias. */
8795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8803 if { (eval echo configure:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8805 eval "ac_cv_func_$ac_func=yes"
8807 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8810 eval "ac_cv_func_$ac_func=no"
8815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8816 echo "$ac_t""yes" 1>&6
8817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8818 cat >> confdefs.h <<EOF
8819 #define $ac_tr_func 1
8823 echo "$ac_t""no" 1>&6
8831 # this bit needs to be modified for each OS that is suported by
8832 # smbwrapper. You need to specify how to created a shared library and
8833 # how to compile C code to produce PIC object files
8835 # these are the defaults, good for lots of systems
8843 # Assume non-shared by default and override below
8845 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8846 echo "configure:8847: checking ability to build shared libraries" >&5
8848 # and these are for particular systems
8850 *linux*) cat >> confdefs.h <<\EOF
8856 DYNEXP="-Wl,--export-dynamic"
8858 cat >> confdefs.h <<\EOF
8859 #define STAT_ST_BLOCKSIZE 512
8863 *solaris*) cat >> confdefs.h <<\EOF
8869 if test "${GCC}" = "yes"; then
8871 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8876 ## ${CFLAGS} added for building 64-bit shared
8877 ## libs using Sun's Compiler
8878 LDSHFLAGS="-G \${CFLAGS}"
8882 cat >> confdefs.h <<\EOF
8883 #define STAT_ST_BLOCKSIZE 512
8887 *sunos*) cat >> confdefs.h <<\EOF
8893 PICFLAG="-KPIC" # Is this correct for SunOS
8895 *bsd*) BLDSHARED="true"
8897 DYNEXP="-Wl,-Bdynamic"
8899 cat >> confdefs.h <<\EOF
8900 #define STAT_ST_BLOCKSIZE 512
8904 *irix*) cat >> confdefs.h <<\EOF
8909 *irix6*) cat >> confdefs.h <<\EOF
8915 ATTEMPT_WRAP32_BUILD=yes
8917 LDSHFLAGS="-set_version sgi1.0 -shared"
8919 if test "${GCC}" = "yes"; then
8924 cat >> confdefs.h <<\EOF
8925 #define STAT_ST_BLOCKSIZE 512
8929 *aix*) cat >> confdefs.h <<\EOF
8934 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8935 DYNEXP="-Wl,-brtl,-bexpall"
8936 if test "${GCC}" = "yes"; then
8939 PICFLAG="-O2 -qmaxmem=6000"
8940 ## for funky AIX compiler using strncpy()
8941 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8944 cat >> confdefs.h <<\EOF
8945 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8949 *hpux*) cat >> confdefs.h <<\EOF
8954 # Use special PIC flags for the native HP-UX compiler.
8955 if test $ac_cv_prog_cc_Ae = yes; then
8958 LDSHFLAGS="-B symbolic -b -z"
8962 cat >> confdefs.h <<\EOF
8963 #define STAT_ST_BLOCKSIZE 8192
8967 *qnx*) cat >> confdefs.h <<\EOF
8971 *osf*) cat >> confdefs.h <<\EOF
8979 *sco*) cat >> confdefs.h <<\EOF
8983 *unixware*) cat >> confdefs.h <<\EOF
8991 *next2*) cat >> confdefs.h <<\EOF
8995 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8996 set dummy groff; ac_word=$2
8997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8998 echo "configure:8999: checking for $ac_word" >&5
8999 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9002 if test -n "$ROFF"; then
9003 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9007 for ac_dir in $ac_dummy; do
9008 test -z "$ac_dir" && ac_dir=.
9009 if test -f $ac_dir/$ac_word; then
9010 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9017 ROFF="$ac_cv_prog_ROFF"
9018 if test -n "$ROFF"; then
9019 echo "$ac_t""$ROFF" 1>&6
9021 echo "$ac_t""no" 1>&6
9026 *-univel-*) if test "$GCC" != yes ; then
9027 cat >> confdefs.h <<\EOF
9028 #define HAVE_MEMSET 1
9035 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9036 #define RELIANTUNIX 1
9043 if test "$GCC" != yes ; then
9044 cat >> confdefs.h <<\EOF
9045 #define HAVE_MEMSET 1
9053 echo "$ac_t""$BLDSHARED" 1>&6
9054 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9055 echo "configure:9056: checking linker flags for shared libraries" >&5
9056 echo "$ac_t""$LDSHFLAGS" 1>&6
9057 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9058 echo "configure:9059: checking compiler flags for position-independent code" >&5
9059 echo "$ac_t""$PICFLAGS" 1>&6
9061 #######################################################
9062 # test whether building a shared library actually works
9063 if test $BLDSHARED = true; then
9064 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9065 echo "configure:9066: checking whether building shared libraries actually works" >&5
9066 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9067 echo $ac_n "(cached) $ac_c" 1>&6
9070 ac_cv_shlib_works=no
9071 # try building a trivial shared library
9072 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9073 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9074 ac_cv_shlib_works=yes
9075 rm -f shlib.so shlib.po
9079 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9080 if test $ac_cv_shlib_works = no; then
9086 # this updates our target list if we can build shared libs
9087 if test $BLDSHARED = true; then
9088 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9090 LIBSMBCLIENT_SHARED=
9095 echo $ac_n "checking for long long""... $ac_c" 1>&6
9096 echo "configure:9097: checking for long long" >&5
9097 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9098 echo $ac_n "(cached) $ac_c" 1>&6
9101 if test "$cross_compiling" = yes; then
9102 samba_cv_have_longlong=cross
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9108 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9110 if { (eval echo configure:9111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9112 samba_cv_have_longlong=yes
9114 echo "configure: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9117 samba_cv_have_longlong=no
9124 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9125 if test x"$samba_cv_have_longlong" = x"yes"; then
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_LONGLONG 1
9133 # Check if the compiler supports the LL prefix on long long integers.
9136 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9137 echo "configure:9138: checking for LL suffix on long long integers" >&5
9138 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9147 long long i = 0x8000000000LL
9150 if { (eval echo configure:9151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9152 samba_cv_compiler_supports_ll=yes
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9157 samba_cv_compiler_supports_ll=no
9162 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9163 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9164 cat >> confdefs.h <<\EOF
9165 #define COMPILER_SUPPORTS_LL 1
9171 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9172 echo "configure:9173: checking for 64 bit off_t" >&5
9173 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9174 echo $ac_n "(cached) $ac_c" 1>&6
9177 if test "$cross_compiling" = yes; then
9178 samba_cv_SIZEOF_OFF_T=cross
9180 cat > conftest.$ac_ext <<EOF
9181 #line 9182 "configure"
9182 #include "confdefs.h"
9184 #include <sys/stat.h>
9185 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9187 if { (eval echo configure:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9189 samba_cv_SIZEOF_OFF_T=yes
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9194 samba_cv_SIZEOF_OFF_T=no
9201 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9202 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9203 cat >> confdefs.h <<\EOF
9204 #define SIZEOF_OFF_T 8
9209 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9210 echo "configure:9211: checking for off64_t" >&5
9211 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9215 if test "$cross_compiling" = yes; then
9216 samba_cv_HAVE_OFF64_T=cross
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9222 #if defined(HAVE_UNISTD_H)
9226 #include <sys/stat.h>
9227 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9231 samba_cv_HAVE_OFF64_T=yes
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 samba_cv_HAVE_OFF64_T=no
9243 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9244 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9245 cat >> confdefs.h <<\EOF
9246 #define HAVE_OFF64_T 1
9251 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9252 echo "configure:9253: checking for 64 bit ino_t" >&5
9253 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9257 if test "$cross_compiling" = yes; then
9258 samba_cv_SIZEOF_INO_T=cross
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9264 #include <sys/stat.h>
9265 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9267 if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9269 samba_cv_SIZEOF_INO_T=yes
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9274 samba_cv_SIZEOF_INO_T=no
9281 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9282 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9283 cat >> confdefs.h <<\EOF
9284 #define SIZEOF_INO_T 8
9289 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9290 echo "configure:9291: checking for ino64_t" >&5
9291 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9292 echo $ac_n "(cached) $ac_c" 1>&6
9295 if test "$cross_compiling" = yes; then
9296 samba_cv_HAVE_INO64_T=cross
9298 cat > conftest.$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9302 #if defined(HAVE_UNISTD_H)
9306 #include <sys/stat.h>
9307 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9309 if { (eval echo configure:9310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9311 samba_cv_HAVE_INO64_T=yes
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9316 samba_cv_HAVE_INO64_T=no
9323 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9324 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9325 cat >> confdefs.h <<\EOF
9326 #define HAVE_INO64_T 1
9331 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9332 echo "configure:9333: checking for dev64_t" >&5
9333 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9337 if test "$cross_compiling" = yes; then
9338 samba_cv_HAVE_DEV64_T=cross
9340 cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9344 #if defined(HAVE_UNISTD_H)
9348 #include <sys/stat.h>
9349 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9351 if { (eval echo configure:9352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9353 samba_cv_HAVE_DEV64_T=yes
9355 echo "configure: failed program was:" >&5
9356 cat conftest.$ac_ext >&5
9358 samba_cv_HAVE_DEV64_T=no
9365 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9366 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9367 cat >> confdefs.h <<\EOF
9368 #define HAVE_DEV64_T 1
9373 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9374 echo "configure:9375: checking for struct dirent64" >&5
9375 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9379 cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9383 #if defined(HAVE_UNISTD_H)
9386 #include <sys/types.h>
9392 if { (eval echo configure:9393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9394 samba_cv_HAVE_STRUCT_DIRENT64=yes
9396 echo "configure: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9399 samba_cv_HAVE_STRUCT_DIRENT64=no
9404 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9405 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9406 cat >> confdefs.h <<\EOF
9407 #define HAVE_STRUCT_DIRENT64 1
9412 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9413 echo "configure:9414: checking for major macro" >&5
9414 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9415 echo $ac_n "(cached) $ac_c" 1>&6
9418 if test "$cross_compiling" = yes; then
9419 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9421 cat > conftest.$ac_ext <<EOF
9422 #line 9423 "configure"
9423 #include "confdefs.h"
9425 #if defined(HAVE_UNISTD_H)
9428 #include <sys/types.h>
9429 main() { dev_t dev; int i = major(dev); return 0; }
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9433 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9438 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9445 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9446 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9447 cat >> confdefs.h <<\EOF
9448 #define HAVE_DEVICE_MAJOR_FN 1
9453 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9454 echo "configure:9455: checking for minor macro" >&5
9455 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9459 if test "$cross_compiling" = yes; then
9460 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9462 cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9466 #if defined(HAVE_UNISTD_H)
9469 #include <sys/types.h>
9470 main() { dev_t dev; int i = minor(dev); return 0; }
9472 if { (eval echo configure:9473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9474 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9479 samba_cv_HAVE_DEVICE_MINOR_FN=no
9486 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9487 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9488 cat >> confdefs.h <<\EOF
9489 #define HAVE_DEVICE_MINOR_FN 1
9494 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9495 echo "configure:9496: checking for unsigned char" >&5
9496 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9497 echo $ac_n "(cached) $ac_c" 1>&6
9500 if test "$cross_compiling" = yes; then
9501 samba_cv_HAVE_UNSIGNED_CHAR=cross
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9507 main() { char c; c=250; exit((c > 0)?0:1); }
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_UNSIGNED_CHAR=yes
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 samba_cv_HAVE_UNSIGNED_CHAR=no
9523 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9524 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9525 cat >> confdefs.h <<\EOF
9526 #define HAVE_UNSIGNED_CHAR 1
9531 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9532 echo "configure:9533: checking for sin_len in sock" >&5
9533 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9534 echo $ac_n "(cached) $ac_c" 1>&6
9537 cat > conftest.$ac_ext <<EOF
9538 #line 9539 "configure"
9539 #include "confdefs.h"
9540 #include <sys/types.h>
9541 #include <sys/socket.h>
9542 #include <netinet/in.h>
9544 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9547 if { (eval echo configure:9548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9549 samba_cv_HAVE_SOCK_SIN_LEN=yes
9551 echo "configure: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9554 samba_cv_HAVE_SOCK_SIN_LEN=no
9559 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9560 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9561 cat >> confdefs.h <<\EOF
9562 #define HAVE_SOCK_SIN_LEN 1
9567 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9568 echo "configure:9569: checking whether seekdir returns void" >&5
9569 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9573 cat > conftest.$ac_ext <<EOF
9574 #line 9575 "configure"
9575 #include "confdefs.h"
9576 #include <sys/types.h>
9578 void seekdir(DIR *d, long loc) { return; }
9583 if { (eval echo configure:9584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9585 samba_cv_SEEKDIR_RETURNS_VOID=yes
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9590 samba_cv_SEEKDIR_RETURNS_VOID=no
9595 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9596 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9597 cat >> confdefs.h <<\EOF
9598 #define SEEKDIR_RETURNS_VOID 1
9603 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9604 echo "configure:9605: checking for __FILE__ macro" >&5
9605 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9609 cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9614 printf("%s\n", __FILE__);
9617 if { (eval echo configure:9618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9619 samba_cv_HAVE_FILE_MACRO=yes
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9624 samba_cv_HAVE_FILE_MACRO=no
9629 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9630 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9631 cat >> confdefs.h <<\EOF
9632 #define HAVE_FILE_MACRO 1
9637 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9638 echo "configure:9639: checking for __FUNCTION__ macro" >&5
9639 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9640 echo $ac_n "(cached) $ac_c" 1>&6
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9648 printf("%s\n", __FUNCTION__);
9651 if { (eval echo configure:9652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9653 samba_cv_HAVE_FUNCTION_MACRO=yes
9655 echo "configure: failed program was:" >&5
9656 cat conftest.$ac_ext >&5
9658 samba_cv_HAVE_FUNCTION_MACRO=no
9663 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9664 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9665 cat >> confdefs.h <<\EOF
9666 #define HAVE_FUNCTION_MACRO 1
9671 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9672 echo "configure:9673: checking if gettimeofday takes tz argument" >&5
9673 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9674 echo $ac_n "(cached) $ac_c" 1>&6
9677 if test "$cross_compiling" = yes; then
9678 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9684 #include <sys/time.h>
9686 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9690 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9695 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9702 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9703 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9704 cat >> confdefs.h <<\EOF
9705 #define HAVE_GETTIMEOFDAY_TZ 1
9710 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9711 echo "configure:9712: checking for __va_copy" >&5
9712 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9713 echo $ac_n "(cached) $ac_c" 1>&6
9716 cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure"
9718 #include "confdefs.h"
9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9727 samba_cv_HAVE_VA_COPY=yes
9729 echo "configure: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 samba_cv_HAVE_VA_COPY=no
9737 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9738 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9739 cat >> confdefs.h <<\EOF
9740 #define HAVE_VA_COPY 1
9745 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9746 echo "configure:9747: checking for C99 vsnprintf" >&5
9747 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9751 if test "$cross_compiling" = yes; then
9752 samba_cv_HAVE_C99_VSNPRINTF=cross
9754 cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9758 #include <sys/types.h>
9760 void foo(const char *format, ...) {
9765 va_start(ap, format);
9766 len = vsnprintf(buf, 0, format, ap);
9768 if (len != 5) exit(1);
9770 va_start(ap, format);
9771 len = vsnprintf(0, 0, format, ap);
9773 if (len != 5) exit(1);
9775 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9779 main() { foo("hello"); }
9782 if { (eval echo configure:9783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9784 samba_cv_HAVE_C99_VSNPRINTF=yes
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9789 samba_cv_HAVE_C99_VSNPRINTF=no
9796 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9797 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9798 cat >> confdefs.h <<\EOF
9799 #define HAVE_C99_VSNPRINTF 1
9804 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9805 echo "configure:9806: checking for broken readdir" >&5
9806 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9810 if test "$cross_compiling" = yes; then
9811 samba_cv_HAVE_BROKEN_READDIR=cross
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9816 #include <sys/types.h>
9818 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9819 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9820 di->d_name[0] == 0) exit(0); exit(1);}
9822 if { (eval echo configure:9823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9824 samba_cv_HAVE_BROKEN_READDIR=yes
9826 echo "configure: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9829 samba_cv_HAVE_BROKEN_READDIR=no
9836 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9837 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9838 cat >> confdefs.h <<\EOF
9839 #define HAVE_BROKEN_READDIR 1
9844 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9845 echo "configure:9846: checking for utimbuf" >&5
9846 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9847 echo $ac_n "(cached) $ac_c" 1>&6
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 #include <sys/types.h>
9856 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9859 if { (eval echo configure:9860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9861 samba_cv_HAVE_UTIMBUF=yes
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9866 samba_cv_HAVE_UTIMBUF=no
9871 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9872 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9873 cat >> confdefs.h <<\EOF
9874 #define HAVE_UTIMBUF 1
9880 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9883 echo "configure:9884: checking for $ac_func" >&5
9884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9885 echo $ac_n "(cached) $ac_c" 1>&6
9887 cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char $ac_func(); below. */
9893 /* Override any gcc2 internal prototype to avoid an error. */
9894 /* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9911 if { (eval echo configure:9912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9913 eval "ac_cv_func_$ac_func=yes"
9915 echo "configure: failed program was:" >&5
9916 cat conftest.$ac_ext >&5
9918 eval "ac_cv_func_$ac_func=no"
9923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9924 echo "$ac_t""yes" 1>&6
9925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9926 cat >> confdefs.h <<EOF
9927 #define $ac_tr_func 1
9931 echo "$ac_t""no" 1>&6
9936 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9937 echo "configure:9938: checking for ut_name in utmp" >&5
9938 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9939 echo $ac_n "(cached) $ac_c" 1>&6
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 #include <sys/types.h>
9948 struct utmp ut; ut.ut_name[0] = 'a';
9951 if { (eval echo configure:9952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9953 samba_cv_HAVE_UT_UT_NAME=yes
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9958 samba_cv_HAVE_UT_UT_NAME=no
9963 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9964 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9965 cat >> confdefs.h <<\EOF
9966 #define HAVE_UT_UT_NAME 1
9971 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9972 echo "configure:9973: checking for ut_user in utmp" >&5
9973 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9977 cat > conftest.$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9980 #include <sys/types.h>
9983 struct utmp ut; ut.ut_user[0] = 'a';
9986 if { (eval echo configure:9987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9988 samba_cv_HAVE_UT_UT_USER=yes
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9993 samba_cv_HAVE_UT_UT_USER=no
9998 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9999 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10000 cat >> confdefs.h <<\EOF
10001 #define HAVE_UT_UT_USER 1
10006 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10007 echo "configure:10008: checking for ut_id in utmp" >&5
10008 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10012 cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 #include <sys/types.h>
10018 struct utmp ut; ut.ut_id[0] = 'a';
10021 if { (eval echo configure:10022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10023 samba_cv_HAVE_UT_UT_ID=yes
10025 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10028 samba_cv_HAVE_UT_UT_ID=no
10033 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10034 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10035 cat >> confdefs.h <<\EOF
10036 #define HAVE_UT_UT_ID 1
10041 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10042 echo "configure:10043: checking for ut_host in utmp" >&5
10043 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10047 cat > conftest.$ac_ext <<EOF
10048 #line 10049 "configure"
10049 #include "confdefs.h"
10050 #include <sys/types.h>
10053 struct utmp ut; ut.ut_host[0] = 'a';
10056 if { (eval echo configure:10057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10058 samba_cv_HAVE_UT_UT_HOST=yes
10060 echo "configure: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10063 samba_cv_HAVE_UT_UT_HOST=no
10068 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10069 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10070 cat >> confdefs.h <<\EOF
10071 #define HAVE_UT_UT_HOST 1
10076 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10077 echo "configure:10078: checking for ut_time in utmp" >&5
10078 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10079 echo $ac_n "(cached) $ac_c" 1>&6
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10085 #include <sys/types.h>
10088 struct utmp ut; time_t t; ut.ut_time = t;
10091 if { (eval echo configure:10092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10093 samba_cv_HAVE_UT_UT_TIME=yes
10095 echo "configure: failed program was:" >&5
10096 cat conftest.$ac_ext >&5
10098 samba_cv_HAVE_UT_UT_TIME=no
10103 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10104 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10105 cat >> confdefs.h <<\EOF
10106 #define HAVE_UT_UT_TIME 1
10111 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10112 echo "configure:10113: checking for ut_tv in utmp" >&5
10113 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120 #include <sys/types.h>
10123 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10126 if { (eval echo configure:10127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10128 samba_cv_HAVE_UT_UT_TV=yes
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10133 samba_cv_HAVE_UT_UT_TV=no
10138 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10139 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10140 cat >> confdefs.h <<\EOF
10141 #define HAVE_UT_UT_TV 1
10146 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10147 echo "configure:10148: checking for ut_type in utmp" >&5
10148 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 #include <sys/types.h>
10158 struct utmp ut; ut.ut_type = 0;
10161 if { (eval echo configure:10162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10163 samba_cv_HAVE_UT_UT_TYPE=yes
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10168 samba_cv_HAVE_UT_UT_TYPE=no
10173 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10174 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10175 cat >> confdefs.h <<\EOF
10176 #define HAVE_UT_UT_TYPE 1
10181 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10182 echo "configure:10183: checking for ut_pid in utmp" >&5
10183 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10184 echo $ac_n "(cached) $ac_c" 1>&6
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 #include <sys/types.h>
10193 struct utmp ut; ut.ut_pid = 0;
10196 if { (eval echo configure:10197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10198 samba_cv_HAVE_UT_UT_PID=yes
10200 echo "configure: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10203 samba_cv_HAVE_UT_UT_PID=no
10208 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10209 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10210 cat >> confdefs.h <<\EOF
10211 #define HAVE_UT_UT_PID 1
10216 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10217 echo "configure:10218: checking for ut_exit in utmp" >&5
10218 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10222 cat > conftest.$ac_ext <<EOF
10223 #line 10224 "configure"
10224 #include "confdefs.h"
10225 #include <sys/types.h>
10228 struct utmp ut; ut.ut_exit.e_exit = 0;
10231 if { (eval echo configure:10232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10233 samba_cv_HAVE_UT_UT_EXIT=yes
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10238 samba_cv_HAVE_UT_UT_EXIT=no
10243 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10244 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10245 cat >> confdefs.h <<\EOF
10246 #define HAVE_UT_UT_EXIT 1
10251 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10252 echo "configure:10253: checking for ut_addr in utmp" >&5
10253 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10254 echo $ac_n "(cached) $ac_c" 1>&6
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10260 #include <sys/types.h>
10263 struct utmp ut; ut.ut_addr = 0;
10266 if { (eval echo configure:10267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10268 samba_cv_HAVE_UT_UT_ADDR=yes
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10273 samba_cv_HAVE_UT_UT_ADDR=no
10278 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10279 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10280 cat >> confdefs.h <<\EOF
10281 #define HAVE_UT_UT_ADDR 1
10286 if test x$ac_cv_func_pututline = xyes ; then
10287 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10288 echo "configure:10289: checking whether pututline returns pointer" >&5
10289 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10296 #include <sys/types.h>
10299 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10302 if { (eval echo configure:10303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10304 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10306 echo "configure: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10309 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10314 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10315 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10316 cat >> confdefs.h <<\EOF
10317 #define PUTUTLINE_RETURNS_UTMP 1
10323 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10324 echo "configure:10325: checking for ut_syslen in utmpx" >&5
10325 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10326 echo $ac_n "(cached) $ac_c" 1>&6
10329 cat > conftest.$ac_ext <<EOF
10330 #line 10331 "configure"
10331 #include "confdefs.h"
10332 #include <sys/types.h>
10335 struct utmpx ux; ux.ut_syslen = 0;
10338 if { (eval echo configure:10339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10340 samba_cv_HAVE_UX_UT_SYSLEN=yes
10342 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10345 samba_cv_HAVE_UX_UT_SYSLEN=no
10350 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10351 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10352 cat >> confdefs.h <<\EOF
10353 #define HAVE_UX_UT_SYSLEN 1
10359 #################################################
10360 # check for libiconv support
10361 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10362 echo "configure:10363: checking whether to use libiconv" >&5
10363 # Check whether --with-libiconv or --without-libiconv was given.
10364 if test "${with_libiconv+set}" = set; then
10365 withval="$with_libiconv"
10368 echo "$ac_t""no" 1>&6
10371 echo "$ac_t""yes" 1>&6
10372 CFLAGS="$CFLAGS -I$withval/include"
10373 LDFLAGS="$LDFLAGS -L$withval/lib"
10374 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10375 echo "configure:10376: checking for iconv_open in -liconv" >&5
10376 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10380 ac_save_LIBS="$LIBS"
10381 LIBS="-liconv $LIBS"
10382 cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 /* Override any gcc2 internal prototype to avoid an error. */
10386 /* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */
10394 if { (eval echo configure:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10396 eval "ac_cv_lib_$ac_lib_var=yes"
10398 echo "configure: failed program was:" >&5
10399 cat conftest.$ac_ext >&5
10401 eval "ac_cv_lib_$ac_lib_var=no"
10404 LIBS="$ac_save_LIBS"
10407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10408 echo "$ac_t""yes" 1>&6
10409 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10410 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10411 cat >> confdefs.h <<EOF
10412 #define $ac_tr_lib 1
10415 LIBS="-liconv $LIBS"
10418 echo "$ac_t""no" 1>&6
10421 cat >> confdefs.h <<EOF
10422 #define WITH_LIBICONV "${withval}"
10428 echo "$ac_t""no" 1>&6
10435 # check for iconv in libc
10436 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10437 echo "configure:10438: checking for working iconv" >&5
10438 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10442 if test "$cross_compiling" = yes; then
10443 samba_cv_HAVE_NATIVE_ICONV=cross
10445 cat > conftest.$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10451 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10452 if (cd == 0 || cd == (iconv_t)-1) return -1;
10457 if { (eval echo configure:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10459 samba_cv_HAVE_NATIVE_ICONV=yes
10461 echo "configure: failed program was:" >&5
10462 cat conftest.$ac_ext >&5
10464 samba_cv_HAVE_NATIVE_ICONV=no
10471 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10472 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10473 cat >> confdefs.h <<\EOF
10474 #define HAVE_NATIVE_ICONV 1
10480 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10481 echo "configure:10482: checking for Linux kernel oplocks" >&5
10482 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10483 echo $ac_n "(cached) $ac_c" 1>&6
10486 if test "$cross_compiling" = yes; then
10487 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure"
10491 #include "confdefs.h"
10493 #include <sys/types.h>
10496 #define F_GETLEASE 1025
10499 int fd = open("/dev/null", O_RDONLY);
10500 return fcntl(fd, F_GETLEASE, 0) == -1;
10504 if { (eval echo configure:10505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10506 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10508 echo "configure: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10511 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10518 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10519 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10520 cat >> confdefs.h <<\EOF
10521 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10526 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10527 echo "configure:10528: checking for kernel change notify support" >&5
10528 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10529 echo $ac_n "(cached) $ac_c" 1>&6
10532 if test "$cross_compiling" = yes; then
10533 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10539 #include <sys/types.h>
10541 #include <signal.h>
10543 #define F_NOTIFY 1026
10546 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10550 if { (eval echo configure:10551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10552 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10557 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10564 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10565 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10566 cat >> confdefs.h <<\EOF
10567 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10572 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10573 echo "configure:10574: checking for kernel share modes" >&5
10574 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10575 echo $ac_n "(cached) $ac_c" 1>&6
10578 if test "$cross_compiling" = yes; then
10579 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10581 cat > conftest.$ac_ext <<EOF
10582 #line 10583 "configure"
10583 #include "confdefs.h"
10585 #include <sys/types.h>
10587 #include <signal.h>
10588 #include <sys/file.h>
10590 #define LOCK_MAND 32
10591 #define LOCK_READ 64
10594 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10598 if { (eval echo configure:10599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10600 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10605 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10612 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10613 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10614 cat >> confdefs.h <<\EOF
10615 #define HAVE_KERNEL_SHARE_MODES 1
10623 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10624 echo "configure:10625: checking for IRIX kernel oplock type definitions" >&5
10625 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10632 #include <sys/types.h>
10635 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10638 if { (eval echo configure:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10640 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10645 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10650 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10651 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10652 cat >> confdefs.h <<\EOF
10653 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10658 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10659 echo "configure:10660: checking for irix specific capabilities" >&5
10660 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10661 echo $ac_n "(cached) $ac_c" 1>&6
10664 if test "$cross_compiling" = yes; then
10665 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10667 cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 #include <sys/types.h>
10671 #include <sys/capability.h>
10674 if ((cap = cap_get_proc()) == NULL)
10676 cap->cap_effective |= CAP_NETWORK_MGT;
10677 cap->cap_inheritable |= CAP_NETWORK_MGT;
10683 if { (eval echo configure:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10685 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10697 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10698 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10699 cat >> confdefs.h <<\EOF
10700 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10706 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10707 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10710 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10711 echo "configure:10712: checking for int16 typedef included by rpc/rpc.h" >&5
10712 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10713 echo $ac_n "(cached) $ac_c" 1>&6
10716 cat > conftest.$ac_ext <<EOF
10717 #line 10718 "configure"
10718 #include "confdefs.h"
10719 #include <sys/types.h>
10720 #if defined(HAVE_RPC_RPC_H)
10721 #include <rpc/rpc.h>
10727 if { (eval echo configure:10728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10729 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10734 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10739 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10740 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10741 cat >> confdefs.h <<\EOF
10742 #define HAVE_INT16_FROM_RPC_RPC_H 1
10747 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10748 echo "configure:10749: checking for uint16 typedef included by rpc/rpc.h" >&5
10749 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_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_UINT16_FROM_RPC_RPC_H=yes
10768 echo "configure: failed program was:" >&5
10769 cat conftest.$ac_ext >&5
10771 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10776 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10777 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10778 cat >> confdefs.h <<\EOF
10779 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10784 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10785 echo "configure:10786: checking for int32 typedef included by rpc/rpc.h" >&5
10786 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_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_INT32_FROM_RPC_RPC_H=yes
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10813 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10814 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10815 cat >> confdefs.h <<\EOF
10816 #define HAVE_INT32_FROM_RPC_RPC_H 1
10821 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10822 echo "configure:10823: checking for uint32 typedef included by rpc/rpc.h" >&5
10823 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_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_UINT32_FROM_RPC_RPC_H=yes
10842 echo "configure: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10845 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10850 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10851 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10852 cat >> confdefs.h <<\EOF
10853 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10859 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10860 echo "configure:10861: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10861 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10862 echo $ac_n "(cached) $ac_c" 1>&6
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 #include <sys/types.h>
10869 #ifdef HAVE_SYS_SECURITY_H
10870 #include <sys/security.h>
10872 #endif /* HAVE_SYS_SECURITY_H */
10873 #if defined(HAVE_RPC_RPC_H)
10874 #include <rpc/rpc.h>
10880 if { (eval echo configure:10881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10882 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10884 echo "configure: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10887 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10892 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10893 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10894 cat >> confdefs.h <<\EOF
10895 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10900 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10901 echo "configure:10902: checking for test routines" >&5
10902 if test "$cross_compiling" = yes; then
10903 echo "configure: warning: cannot run when cross-compiling" 1>&2
10905 cat > conftest.$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10908 #include "${srcdir-.}/tests/trivial.c"
10910 if { (eval echo configure:10911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10912 echo "$ac_t""yes" 1>&6
10914 echo "configure: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10917 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10923 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10924 echo "configure:10925: checking for ftruncate extend" >&5
10925 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10929 if test "$cross_compiling" = yes; then
10930 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10932 cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure"
10934 #include "confdefs.h"
10935 #include "${srcdir-.}/tests/ftruncate.c"
10937 if { (eval echo configure:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10939 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10944 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10951 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10952 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10953 cat >> confdefs.h <<\EOF
10954 #define HAVE_FTRUNCATE_EXTEND 1
10959 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10960 echo "configure:10961: checking for AF_LOCAL socket support" >&5
10961 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10962 echo $ac_n "(cached) $ac_c" 1>&6
10965 if test "$cross_compiling" = yes; then
10966 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10971 #include "${srcdir-.}/tests/unixsock.c"
10973 if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10975 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10980 samba_cv_HAVE_WORKING_AF_LOCAL=no
10987 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10988 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10990 cat >> confdefs.h <<\EOF
10991 #define HAVE_WORKING_AF_LOCAL 1
10996 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10997 echo "configure:10998: checking for broken getgroups" >&5
10998 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10999 echo $ac_n "(cached) $ac_c" 1>&6
11002 if test "$cross_compiling" = yes; then
11003 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11008 #include "${srcdir-.}/tests/getgroups.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_BROKEN_GETGROUPS=yes
11014 echo "configure: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11017 samba_cv_HAVE_BROKEN_GETGROUPS=no
11024 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11025 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11026 cat >> confdefs.h <<\EOF
11027 #define HAVE_BROKEN_GETGROUPS 1
11032 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11033 echo "configure:11034: checking whether getpass should be replaced" >&5
11034 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11035 echo $ac_n "(cached) $ac_c" 1>&6
11038 SAVE_CPPFLAGS="$CPPFLAGS"
11039 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11040 cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11044 #define REPLACE_GETPASS 1
11045 #define NO_CONFIG_H 1
11046 #define main dont_declare_main
11047 #include "${srcdir-.}/lib/getsmbpass.c"
11054 if { (eval echo configure:11055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11056 samba_cv_REPLACE_GETPASS=yes
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11061 samba_cv_REPLACE_GETPASS=no
11064 CPPFLAGS="$SAVE_CPPFLAGS"
11068 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11069 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11070 cat >> confdefs.h <<\EOF
11071 #define REPLACE_GETPASS 1
11076 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11077 echo "configure:11078: checking for broken inet_ntoa" >&5
11078 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11079 echo $ac_n "(cached) $ac_c" 1>&6
11082 if test "$cross_compiling" = yes; then
11083 samba_cv_REPLACE_INET_NTOA=cross
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11090 #include <sys/types.h>
11091 #include <netinet/in.h>
11092 #ifdef HAVE_ARPA_INET_H
11093 #include <arpa/inet.h>
11095 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11096 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11097 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11100 if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11102 samba_cv_REPLACE_INET_NTOA=yes
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11107 samba_cv_REPLACE_INET_NTOA=no
11114 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11115 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11116 cat >> confdefs.h <<\EOF
11117 #define REPLACE_INET_NTOA 1
11122 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11123 echo "configure:11124: checking for secure mkstemp" >&5
11124 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11125 echo $ac_n "(cached) $ac_c" 1>&6
11128 if test "$cross_compiling" = yes; then
11129 samba_cv_HAVE_SECURE_MKSTEMP=cross
11131 cat > conftest.$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11134 #include <stdlib.h>
11135 #include <sys/types.h>
11136 #include <sys/stat.h>
11137 #include <unistd.h>
11140 char tpl[20]="/tmp/test.XXXXXX";
11141 int fd = mkstemp(tpl);
11142 if (fd == -1) exit(1);
11144 if (fstat(fd, &st) != 0) exit(1);
11145 if ((st.st_mode & 0777) != 0600) exit(1);
11149 if { (eval echo configure:11150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11151 samba_cv_HAVE_SECURE_MKSTEMP=yes
11153 echo "configure: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11156 samba_cv_HAVE_SECURE_MKSTEMP=no
11163 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11164 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11165 cat >> confdefs.h <<\EOF
11166 #define HAVE_SECURE_MKSTEMP 1
11171 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11172 echo "configure:11173: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11173 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11177 if test "$cross_compiling" = yes; then
11178 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11180 cat > conftest.$ac_ext <<EOF
11181 #line 11182 "configure"
11182 #include "confdefs.h"
11183 #include <unistd.h>
11184 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
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_SYSCONF_SC_NGROUPS_MAX=yes
11190 echo "configure: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11193 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11200 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11201 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11202 cat >> confdefs.h <<\EOF
11203 #define SYSCONF_SC_NGROUPS_MAX 1
11208 echo $ac_n "checking for root""... $ac_c" 1>&6
11209 echo "configure:11210: checking for root" >&5
11210 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11214 if test "$cross_compiling" = yes; then
11215 samba_cv_HAVE_ROOT=cross
11217 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11220 main() { exit(getuid() != 0); }
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11224 samba_cv_HAVE_ROOT=yes
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 samba_cv_HAVE_ROOT=no
11236 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11237 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11238 cat >> confdefs.h <<\EOF
11239 #define HAVE_ROOT 1
11243 echo "configure: warning: running as non-root will disable some tests" 1>&2
11247 # look for a method of finding the list of network interfaces
11249 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11250 echo "configure:11251: checking for iface AIX" >&5
11251 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11255 if test "$cross_compiling" = yes; then
11256 samba_cv_HAVE_IFACE_AIX=cross
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11262 #define HAVE_IFACE_AIX 1
11263 #define AUTOCONF_TEST 1
11264 #include "confdefs.h"
11265 #include "${srcdir-.}/lib/interfaces.c"
11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11269 samba_cv_HAVE_IFACE_AIX=yes
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11274 samba_cv_HAVE_IFACE_AIX=no
11281 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11282 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11283 iface=yes;cat >> confdefs.h <<\EOF
11284 #define HAVE_IFACE_AIX 1
11289 if test $iface = no; then
11290 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11291 echo "configure:11292: checking for iface ifconf" >&5
11292 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11296 if test "$cross_compiling" = yes; then
11297 samba_cv_HAVE_IFACE_IFCONF=cross
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11303 #define HAVE_IFACE_IFCONF 1
11304 #define AUTOCONF_TEST 1
11305 #include "confdefs.h"
11306 #include "${srcdir-.}/lib/interfaces.c"
11308 if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11310 samba_cv_HAVE_IFACE_IFCONF=yes
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11315 samba_cv_HAVE_IFACE_IFCONF=no
11322 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11323 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11324 iface=yes;cat >> confdefs.h <<\EOF
11325 #define HAVE_IFACE_IFCONF 1
11331 if test $iface = no; then
11332 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11333 echo "configure:11334: checking for iface ifreq" >&5
11334 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11338 if test "$cross_compiling" = yes; then
11339 samba_cv_HAVE_IFACE_IFREQ=cross
11341 cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11345 #define HAVE_IFACE_IFREQ 1
11346 #define AUTOCONF_TEST 1
11347 #include "confdefs.h"
11348 #include "${srcdir-.}/lib/interfaces.c"
11350 if { (eval echo configure:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11352 samba_cv_HAVE_IFACE_IFREQ=yes
11354 echo "configure: failed program was:" >&5
11355 cat conftest.$ac_ext >&5
11357 samba_cv_HAVE_IFACE_IFREQ=no
11364 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11365 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11366 iface=yes;cat >> confdefs.h <<\EOF
11367 #define HAVE_IFACE_IFREQ 1
11374 ################################################
11375 # look for a method of setting the effective uid
11377 if test $seteuid = no; then
11378 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11379 echo "configure:11380: checking for setresuid" >&5
11380 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11384 if test "$cross_compiling" = yes; then
11385 samba_cv_USE_SETRESUID=cross
11387 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11391 #define AUTOCONF_TEST 1
11392 #define USE_SETRESUID 1
11393 #include "confdefs.h"
11394 #include "${srcdir-.}/lib/util_sec.c"
11396 if { (eval echo configure:11397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11398 samba_cv_USE_SETRESUID=yes
11400 echo "configure: failed program was:" >&5
11401 cat conftest.$ac_ext >&5
11403 samba_cv_USE_SETRESUID=no
11410 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11411 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11412 seteuid=yes;cat >> confdefs.h <<\EOF
11413 #define USE_SETRESUID 1
11420 if test $seteuid = no; then
11421 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11422 echo "configure:11423: checking for setreuid" >&5
11423 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11424 echo $ac_n "(cached) $ac_c" 1>&6
11427 if test "$cross_compiling" = yes; then
11428 samba_cv_USE_SETREUID=cross
11430 cat > conftest.$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11434 #define AUTOCONF_TEST 1
11435 #define USE_SETREUID 1
11436 #include "confdefs.h"
11437 #include "${srcdir-.}/lib/util_sec.c"
11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11441 samba_cv_USE_SETREUID=yes
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11446 samba_cv_USE_SETREUID=no
11453 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11454 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11455 seteuid=yes;cat >> confdefs.h <<\EOF
11456 #define USE_SETREUID 1
11462 if test $seteuid = no; then
11463 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11464 echo "configure:11465: checking for seteuid" >&5
11465 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11469 if test "$cross_compiling" = yes; then
11470 samba_cv_USE_SETEUID=cross
11472 cat > conftest.$ac_ext <<EOF
11473 #line 11474 "configure"
11474 #include "confdefs.h"
11476 #define AUTOCONF_TEST 1
11477 #define USE_SETEUID 1
11478 #include "confdefs.h"
11479 #include "${srcdir-.}/lib/util_sec.c"
11481 if { (eval echo configure:11482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11483 samba_cv_USE_SETEUID=yes
11485 echo "configure: failed program was:" >&5
11486 cat conftest.$ac_ext >&5
11488 samba_cv_USE_SETEUID=no
11495 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11496 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11497 seteuid=yes;cat >> confdefs.h <<\EOF
11498 #define USE_SETEUID 1
11504 if test $seteuid = no; then
11505 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11506 echo "configure:11507: checking for setuidx" >&5
11507 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11508 echo $ac_n "(cached) $ac_c" 1>&6
11511 if test "$cross_compiling" = yes; then
11512 samba_cv_USE_SETUIDX=cross
11514 cat > conftest.$ac_ext <<EOF
11515 #line 11516 "configure"
11516 #include "confdefs.h"
11518 #define AUTOCONF_TEST 1
11519 #define USE_SETUIDX 1
11520 #include "confdefs.h"
11521 #include "${srcdir-.}/lib/util_sec.c"
11523 if { (eval echo configure:11524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11525 samba_cv_USE_SETUIDX=yes
11527 echo "configure: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11530 samba_cv_USE_SETUIDX=no
11537 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11538 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11539 seteuid=yes;cat >> confdefs.h <<\EOF
11540 #define USE_SETUIDX 1
11547 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11548 echo "configure:11549: checking for working mmap" >&5
11549 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11553 if test "$cross_compiling" = yes; then
11554 samba_cv_HAVE_MMAP=cross
11556 cat > conftest.$ac_ext <<EOF
11557 #line 11558 "configure"
11558 #include "confdefs.h"
11559 #include "${srcdir-.}/tests/shared_mmap.c"
11561 if { (eval echo configure:11562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11563 samba_cv_HAVE_MMAP=yes
11565 echo "configure: failed program was:" >&5
11566 cat conftest.$ac_ext >&5
11568 samba_cv_HAVE_MMAP=no
11575 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11576 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11577 cat >> confdefs.h <<\EOF
11578 #define HAVE_MMAP 1
11583 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11584 echo "configure:11585: checking for ftruncate needs root" >&5
11585 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11586 echo $ac_n "(cached) $ac_c" 1>&6
11589 if test "$cross_compiling" = yes; then
11590 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11595 #include "${srcdir-.}/tests/ftruncroot.c"
11597 if { (eval echo configure:11598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11599 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11604 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11611 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11612 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11613 cat >> confdefs.h <<\EOF
11614 #define FTRUNCATE_NEEDS_ROOT 1
11619 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11620 echo "configure:11621: checking for fcntl locking" >&5
11621 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11622 echo $ac_n "(cached) $ac_c" 1>&6
11625 if test "$cross_compiling" = yes; then
11626 samba_cv_HAVE_FCNTL_LOCK=cross
11628 cat > conftest.$ac_ext <<EOF
11629 #line 11630 "configure"
11630 #include "confdefs.h"
11631 #include "${srcdir-.}/tests/fcntl_lock.c"
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11635 samba_cv_HAVE_FCNTL_LOCK=yes
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11640 samba_cv_HAVE_FCNTL_LOCK=no
11647 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11648 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11649 cat >> confdefs.h <<\EOF
11650 #define HAVE_FCNTL_LOCK 1
11655 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11656 echo "configure:11657: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11657 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11661 if test "$cross_compiling" = yes; then
11662 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11664 cat > conftest.$ac_ext <<EOF
11665 #line 11666 "configure"
11666 #include "confdefs.h"
11667 #include "${srcdir-.}/tests/fcntl_lock64.c"
11669 if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11671 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11676 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11683 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11684 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11685 cat >> confdefs.h <<\EOF
11686 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11693 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11694 echo "configure:11695: checking for 64 bit fcntl locking" >&5
11695 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11696 echo $ac_n "(cached) $ac_c" 1>&6
11699 if test "$cross_compiling" = yes; then
11700 samba_cv_HAVE_STRUCT_FLOCK64=cross
11702 cat > conftest.$ac_ext <<EOF
11703 #line 11704 "configure"
11704 #include "confdefs.h"
11706 #if defined(HAVE_UNISTD_H)
11707 #include <unistd.h>
11710 #include <stdlib.h>
11712 #ifdef HAVE_FCNTL_H
11716 #ifdef HAVE_SYS_FCNTL_H
11717 #include <sys/fcntl.h>
11719 main() { struct flock64 fl64;
11720 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11727 if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11729 samba_cv_HAVE_STRUCT_FLOCK64=yes
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11734 samba_cv_HAVE_STRUCT_FLOCK64=no
11741 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11743 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11744 cat >> confdefs.h <<\EOF
11745 #define HAVE_STRUCT_FLOCK64 1
11751 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11752 echo "configure:11753: checking for st_blocks in struct stat" >&5
11753 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11754 echo $ac_n "(cached) $ac_c" 1>&6
11757 cat > conftest.$ac_ext <<EOF
11758 #line 11759 "configure"
11759 #include "confdefs.h"
11760 #include <sys/types.h>
11761 #include <sys/stat.h>
11762 #include <unistd.h>
11764 struct stat st; st.st_blocks = 0;
11767 if { (eval echo configure:11768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11769 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11771 echo "configure: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11774 samba_cv_HAVE_STAT_ST_BLOCKS=no
11779 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11780 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11781 cat >> confdefs.h <<\EOF
11782 #define HAVE_STAT_ST_BLOCKS 1
11789 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11790 echo "configure:11791: checking for broken RedHat 7.2 system header files" >&5
11791 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11799 #ifdef HAVE_SYS_VFS_H
11800 #include <sys/vfs.h>
11802 #ifdef HAVE_SYS_CAPABILITY_H
11803 #include <sys/capability.h>
11810 if { (eval echo configure:11811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11812 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11817 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11822 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11823 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11824 cat >> confdefs.h <<\EOF
11825 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11832 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11833 echo "configure:11834: checking for broken nisplus include files" >&5
11834 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11835 echo $ac_n "(cached) $ac_c" 1>&6
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 #include <sys/acl.h>
11842 #if defined(HAVE_RPCSVC_NIS_H)
11843 #include <rpcsvc/nis.h>
11849 if { (eval echo configure:11850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11851 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11853 echo "configure: failed program was:" >&5
11854 cat conftest.$ac_ext >&5
11856 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11861 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11862 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11863 cat >> confdefs.h <<\EOF
11864 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11870 #################################################
11871 # check for smbwrapper support
11872 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11873 echo "configure:11874: checking whether to use smbwrapper" >&5
11874 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11875 if test "${with_smbwrapper+set}" = set; then
11876 withval="$with_smbwrapper"
11879 echo "$ac_t""yes" 1>&6
11880 cat >> confdefs.h <<\EOF
11881 #define WITH_SMBWRAPPER 1
11884 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11886 if test x$ATTEMPT_WRAP32_BUILD = x; then
11889 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11892 # Conditions under which smbwrapper should not be built.
11894 if test x$PICFLAG = x; then
11895 echo No support for PIC code - disabling smbwrapper and smbsh
11898 elif test x$ac_cv_func_syscall = xno; then
11899 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11905 echo "$ac_t""no" 1>&6
11909 echo "$ac_t""no" 1>&6
11914 #################################################
11915 # check for AFS clear-text auth support
11916 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11917 echo "configure:11918: checking whether to use AFS clear-text auth" >&5
11918 # Check whether --with-afs or --without-afs was given.
11919 if test "${with_afs+set}" = set; then
11920 withval="$with_afs"
11923 echo "$ac_t""yes" 1>&6
11924 cat >> confdefs.h <<\EOF
11930 echo "$ac_t""no" 1>&6
11934 echo "$ac_t""no" 1>&6
11940 #################################################
11941 # check for the DFS clear-text auth system
11942 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11943 echo "configure:11944: checking whether to use DFS clear-text auth" >&5
11944 # Check whether --with-dfs or --without-dfs was given.
11945 if test "${with_dfs+set}" = set; then
11946 withval="$with_dfs"
11949 echo "$ac_t""yes" 1>&6
11950 cat >> confdefs.h <<\EOF
11956 echo "$ac_t""no" 1>&6
11960 echo "$ac_t""no" 1>&6
11966 #################################################
11967 # see if this box has the RedHat location for kerberos
11968 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11969 echo "configure:11970: checking for /usr/kerberos" >&5
11970 if test -d /usr/kerberos; then
11971 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11972 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11973 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11974 echo "$ac_t""yes" 1>&6
11976 echo "$ac_t""no" 1>&6
11979 #################################################
11980 # check for location of Kerberos 5 install
11981 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11982 echo "configure:11983: checking for kerberos 5 install path" >&5
11983 # Check whether --with-krb5 or --without-krb5 was given.
11984 if test "${with_krb5+set}" = set; then
11985 withval="$with_krb5"
11988 echo "$ac_t""no" 1>&6
11991 echo "$ac_t""yes" 1>&6
11992 LIBS="$LIBS -lkrb5"
11993 CFLAGS="$CFLAGS -I$withval/include"
11994 CPPFLAGS="$CPPFLAGS -I$withval/include"
11995 LDFLAGS="$LDFLAGS -L$withval/lib"
11999 echo "$ac_t""no" 1>&6
12004 # now check for krb5.h. Some systems have the libraries without the headers!
12005 # note that this check is done here to allow for different kerberos
12007 for ac_hdr in krb5.h
12009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12011 echo "configure:12012: checking for $ac_hdr" >&5
12012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12015 cat > conftest.$ac_ext <<EOF
12016 #line 12017 "configure"
12017 #include "confdefs.h"
12020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12021 { (eval echo configure:12022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12023 if test -z "$ac_err"; then
12025 eval "ac_cv_header_$ac_safe=yes"
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12031 eval "ac_cv_header_$ac_safe=no"
12035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12036 echo "$ac_t""yes" 1>&6
12037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12038 cat >> confdefs.h <<EOF
12039 #define $ac_tr_hdr 1
12043 echo "$ac_t""no" 1>&6
12048 # now check for gssapi headers. This is also done here to allow for
12049 # different kerberos include paths
12050 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12054 echo "configure:12055: checking for $ac_hdr" >&5
12055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12058 cat > conftest.$ac_ext <<EOF
12059 #line 12060 "configure"
12060 #include "confdefs.h"
12063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12064 { (eval echo configure:12065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12066 if test -z "$ac_err"; then
12068 eval "ac_cv_header_$ac_safe=yes"
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12074 eval "ac_cv_header_$ac_safe=no"
12078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12079 echo "$ac_t""yes" 1>&6
12080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12081 cat >> confdefs.h <<EOF
12082 #define $ac_tr_hdr 1
12086 echo "$ac_t""no" 1>&6
12091 ##################################################################
12092 # we might need the k5crypto and com_err libraries on some systems
12093 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12094 echo "configure:12095: checking for _et_list in -lcom_err" >&5
12095 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12099 ac_save_LIBS="$LIBS"
12100 LIBS="-lcom_err $LIBS"
12101 cat > conftest.$ac_ext <<EOF
12102 #line 12103 "configure"
12103 #include "confdefs.h"
12104 /* Override any gcc2 internal prototype to avoid an error. */
12105 /* We use char because int might match the return type of a gcc2
12106 builtin and then its argument prototype would still apply. */
12113 if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12115 eval "ac_cv_lib_$ac_lib_var=yes"
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12120 eval "ac_cv_lib_$ac_lib_var=no"
12123 LIBS="$ac_save_LIBS"
12126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12127 echo "$ac_t""yes" 1>&6
12128 LIBS="$LIBS -lcom_err"
12130 echo "$ac_t""no" 1>&6
12133 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12134 echo "configure:12135: checking for krb5_encrypt_data in -lk5crypto" >&5
12135 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12137 echo $ac_n "(cached) $ac_c" 1>&6
12139 ac_save_LIBS="$LIBS"
12140 LIBS="-lk5crypto $LIBS"
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 /* Override any gcc2 internal prototype to avoid an error. */
12145 /* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12147 char krb5_encrypt_data();
12150 krb5_encrypt_data()
12153 if { (eval echo configure:12154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12155 eval "ac_cv_lib_$ac_lib_var=yes"
12157 echo "configure: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12160 eval "ac_cv_lib_$ac_lib_var=no"
12163 LIBS="$ac_save_LIBS"
12166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12167 echo "$ac_t""yes" 1>&6
12168 LIBS="$LIBS -lk5crypto"
12170 echo "$ac_t""no" 1>&6
12174 ########################################################
12175 # now see if we can find the krb5 libs in standard paths
12176 # or as specified above
12177 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12178 echo "configure:12179: checking for krb5_mk_req_extended in -lkrb5" >&5
12179 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12183 ac_save_LIBS="$LIBS"
12184 LIBS="-lkrb5 $LIBS"
12185 cat > conftest.$ac_ext <<EOF
12186 #line 12187 "configure"
12187 #include "confdefs.h"
12188 /* Override any gcc2 internal prototype to avoid an error. */
12189 /* We use char because int might match the return type of a gcc2
12190 builtin and then its argument prototype would still apply. */
12191 char krb5_mk_req_extended();
12194 krb5_mk_req_extended()
12197 if { (eval echo configure:12198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12199 eval "ac_cv_lib_$ac_lib_var=yes"
12201 echo "configure: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12204 eval "ac_cv_lib_$ac_lib_var=no"
12207 LIBS="$ac_save_LIBS"
12210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12211 echo "$ac_t""yes" 1>&6
12212 LIBS="$LIBS -lkrb5";
12213 cat >> confdefs.h <<\EOF
12214 #define HAVE_KRB5 1
12218 echo "$ac_t""no" 1>&6
12222 ########################################################
12223 # now see if we can find the gssapi libs in standard paths
12224 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12225 echo "configure:12226: checking for gss_display_status in -lgssapi_krb5" >&5
12226 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12228 echo $ac_n "(cached) $ac_c" 1>&6
12230 ac_save_LIBS="$LIBS"
12231 LIBS="-lgssapi_krb5 $LIBS"
12232 cat > conftest.$ac_ext <<EOF
12233 #line 12234 "configure"
12234 #include "confdefs.h"
12235 /* Override any gcc2 internal prototype to avoid an error. */
12236 /* We use char because int might match the return type of a gcc2
12237 builtin and then its argument prototype would still apply. */
12238 char gss_display_status();
12241 gss_display_status()
12244 if { (eval echo configure:12245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12246 eval "ac_cv_lib_$ac_lib_var=yes"
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12251 eval "ac_cv_lib_$ac_lib_var=no"
12254 LIBS="$ac_save_LIBS"
12257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12258 echo "$ac_t""yes" 1>&6
12259 LIBS="$LIBS -lgssapi_krb5";
12260 cat >> confdefs.h <<\EOF
12261 #define HAVE_GSSAPI 1
12265 echo "$ac_t""no" 1>&6
12269 ##################################################################
12270 # we might need the lber lib on some systems. To avoid link errors
12271 # this test must be before the libldap test
12272 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12273 echo "configure:12274: checking for ber_scanf in -llber" >&5
12274 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12276 echo $ac_n "(cached) $ac_c" 1>&6
12278 ac_save_LIBS="$LIBS"
12279 LIBS="-llber $LIBS"
12280 cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure"
12282 #include "confdefs.h"
12283 /* Override any gcc2 internal prototype to avoid an error. */
12284 /* We use char because int might match the return type of a gcc2
12285 builtin and then its argument prototype would still apply. */
12292 if { (eval echo configure:12293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12294 eval "ac_cv_lib_$ac_lib_var=yes"
12296 echo "configure: failed program was:" >&5
12297 cat conftest.$ac_ext >&5
12299 eval "ac_cv_lib_$ac_lib_var=no"
12302 LIBS="$ac_save_LIBS"
12305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12306 echo "$ac_t""yes" 1>&6
12307 LIBS="$LIBS -llber"
12309 echo "$ac_t""no" 1>&6
12313 ########################################################
12314 # now see if we can find the ldap libs in standard paths
12315 if test x$have_ldap != xyes; then
12316 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12317 echo "configure:12318: checking for ldap_domain2hostlist in -lldap" >&5
12318 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12320 echo $ac_n "(cached) $ac_c" 1>&6
12322 ac_save_LIBS="$LIBS"
12323 LIBS="-lldap $LIBS"
12324 cat > conftest.$ac_ext <<EOF
12325 #line 12326 "configure"
12326 #include "confdefs.h"
12327 /* Override any gcc2 internal prototype to avoid an error. */
12328 /* We use char because int might match the return type of a gcc2
12329 builtin and then its argument prototype would still apply. */
12330 char ldap_domain2hostlist();
12333 ldap_domain2hostlist()
12336 if { (eval echo configure:12337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12338 eval "ac_cv_lib_$ac_lib_var=yes"
12340 echo "configure: failed program was:" >&5
12341 cat conftest.$ac_ext >&5
12343 eval "ac_cv_lib_$ac_lib_var=no"
12346 LIBS="$ac_save_LIBS"
12349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12350 echo "$ac_t""yes" 1>&6
12351 LIBS="$LIBS -lldap";
12352 cat >> confdefs.h <<\EOF
12353 #define HAVE_LDAP 1
12357 echo "$ac_t""no" 1>&6
12361 ########################################################
12362 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12363 # Check found in pam_ldap 145.
12364 for ac_func in ldap_set_rebind_proc
12366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12367 echo "configure:12368: checking for $ac_func" >&5
12368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12369 echo $ac_n "(cached) $ac_c" 1>&6
12371 cat > conftest.$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12374 /* System header to define __stub macros and hopefully few prototypes,
12375 which can conflict with char $ac_func(); below. */
12376 #include <assert.h>
12377 /* Override any gcc2 internal prototype to avoid an error. */
12378 /* We use char because int might match the return type of a gcc2
12379 builtin and then its argument prototype would still apply. */
12384 /* The GNU C library defines this for functions which it implements
12385 to always fail with ENOSYS. Some functions are actually named
12386 something starting with __ and the normal name is an alias. */
12387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12395 if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12397 eval "ac_cv_func_$ac_func=yes"
12399 echo "configure: failed program was:" >&5
12400 cat conftest.$ac_ext >&5
12402 eval "ac_cv_func_$ac_func=no"
12407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12408 echo "$ac_t""yes" 1>&6
12409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12410 cat >> confdefs.h <<EOF
12411 #define $ac_tr_func 1
12415 echo "$ac_t""no" 1>&6
12419 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12420 echo "configure:12421: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12421 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12422 echo $ac_n "(cached) $ac_c" 1>&6
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12432 ldap_set_rebind_proc(0, 0, 0);
12435 if { (eval echo configure:12436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12437 pam_ldap_cv_ldap_set_rebind_proc=3
12439 echo "configure: failed program was:" >&5
12440 cat conftest.$ac_ext >&5
12442 pam_ldap_cv_ldap_set_rebind_proc=2
12447 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12448 cat >> confdefs.h <<EOF
12449 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12454 #################################################
12455 # check for automount support
12456 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12457 echo "configure:12458: checking whether to use AUTOMOUNT" >&5
12458 # Check whether --with-automount or --without-automount was given.
12459 if test "${with_automount+set}" = set; then
12460 withval="$with_automount"
12463 echo "$ac_t""yes" 1>&6
12464 cat >> confdefs.h <<\EOF
12465 #define WITH_AUTOMOUNT 1
12470 echo "$ac_t""no" 1>&6
12474 echo "$ac_t""no" 1>&6
12479 #################################################
12480 # check for smbmount support
12481 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12482 echo "configure:12483: checking whether to use SMBMOUNT" >&5
12483 # Check whether --with-smbmount or --without-smbmount was given.
12484 if test "${with_smbmount+set}" = set; then
12485 withval="$with_smbmount"
12490 echo "$ac_t""yes" 1>&6
12491 cat >> confdefs.h <<\EOF
12492 #define WITH_SMBMOUNT 1
12495 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12498 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12503 echo "$ac_t""no" 1>&6
12508 echo "$ac_t""no" 1>&6
12515 #################################################
12516 # check for a PAM clear-text auth, accounts, password and session support
12517 with_pam_for_crypt=no
12518 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12519 echo "configure:12520: checking whether to use PAM" >&5
12520 # Check whether --with-pam or --without-pam was given.
12521 if test "${with_pam+set}" = set; then
12522 withval="$with_pam"
12525 echo "$ac_t""yes" 1>&6
12526 cat >> confdefs.h <<\EOF
12531 with_pam_for_crypt=yes
12534 echo "$ac_t""no" 1>&6
12538 echo "$ac_t""no" 1>&6
12543 # we can't build a pam module if we don't have pam.
12544 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12545 echo "configure:12546: checking for pam_get_data in -lpam" >&5
12546 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12548 echo $ac_n "(cached) $ac_c" 1>&6
12550 ac_save_LIBS="$LIBS"
12552 cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12555 /* Override any gcc2 internal prototype to avoid an error. */
12556 /* We use char because int might match the return type of a gcc2
12557 builtin and then its argument prototype would still apply. */
12558 char pam_get_data();
12564 if { (eval echo configure:12565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12566 eval "ac_cv_lib_$ac_lib_var=yes"
12568 echo "configure: failed program was:" >&5
12569 cat conftest.$ac_ext >&5
12571 eval "ac_cv_lib_$ac_lib_var=no"
12574 LIBS="$ac_save_LIBS"
12577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12578 echo "$ac_t""yes" 1>&6
12579 cat >> confdefs.h <<\EOF
12580 #define HAVE_LIBPAM 1
12584 echo "$ac_t""no" 1>&6
12588 #################################################
12589 # check for pam_smbpass support
12590 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12591 echo "configure:12592: checking whether to use pam_smbpass" >&5
12592 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12593 if test "${with_pam_smbpass+set}" = set; then
12594 withval="$with_pam_smbpass"
12597 echo "$ac_t""yes" 1>&6
12599 # Conditions under which pam_smbpass should not be built.
12601 if test x$PICFLAG = x; then
12602 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12604 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12605 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12608 PAM_MOD="bin/pam_smbpass.so"
12612 echo "$ac_t""no" 1>&6
12616 echo "$ac_t""no" 1>&6
12622 ###############################################
12623 # test for where we get crypt() from, but only
12625 if test $with_pam_for_crypt = no; then
12626 for ac_func in crypt
12628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12629 echo "configure:12630: checking for $ac_func" >&5
12630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12635 "configure"
12635 #include "confdefs.h"
12636 /* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char $ac_func(); below. */
12638 #include <assert.h>
12639 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12659 eval "ac_cv_func_$ac_func=yes"
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12664 eval "ac_cv_func_$ac_func=no"
12669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12672 cat >> confdefs.h <<EOF
12673 #define $ac_tr_func 1
12677 echo "$ac_t""no" 1>&6
12681 if test x"$ac_cv_func_crypt" = x"no"; then
12682 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12683 echo "configure:12684: checking for crypt in -lcrypt" >&5
12684 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12686 echo $ac_n "(cached) $ac_c" 1>&6
12688 ac_save_LIBS="$LIBS"
12689 LIBS="-lcrypt $LIBS"
12690 cat > conftest.$ac_ext <<EOF
12691 #line 12692 "configure"
12692 #include "confdefs.h"
12693 /* Override any gcc2 internal prototype to avoid an error. */
12694 /* We use char because int might match the return type of a gcc2
12695 builtin and then its argument prototype would still apply. */
12702 if { (eval echo configure:12703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12704 eval "ac_cv_lib_$ac_lib_var=yes"
12706 echo "configure: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12709 eval "ac_cv_lib_$ac_lib_var=no"
12712 LIBS="$ac_save_LIBS"
12715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12716 echo "$ac_t""yes" 1>&6
12717 LIBS="$LIBS -lcrypt";
12718 cat >> confdefs.h <<\EOF
12719 #define HAVE_CRYPT 1
12723 echo "$ac_t""no" 1>&6
12730 ## moved after the check for -lcrypt in order to
12731 ## ensure that the necessary libraries are included
12732 ## check checking for truncated salt. Wrapped by the
12733 ## $with_pam_for_crypt variable as above --jerry
12735 if test $with_pam_for_crypt = no; then
12736 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12737 echo "configure:12738: checking for a crypt that needs truncated salt" >&5
12738 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12739 echo $ac_n "(cached) $ac_c" 1>&6
12742 if test "$cross_compiling" = yes; then
12743 samba_cv_HAVE_TRUNCATED_SALT=cross
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12748 #include "${srcdir-.}/tests/crypttest.c"
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12752 samba_cv_HAVE_TRUNCATED_SALT=no
12754 echo "configure: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12757 samba_cv_HAVE_TRUNCATED_SALT=yes
12764 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12765 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12766 cat >> confdefs.h <<\EOF
12767 #define HAVE_TRUNCATED_SALT 1
12775 ########################################################################################
12777 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12779 ########################################################################################
12781 #################################################
12782 # check for a TDB password database
12783 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12784 echo "configure:12785: checking whether to use TDB SAM database" >&5
12785 # Check whether --with-tdbsam or --without-tdbsam was given.
12786 if test "${with_tdbsam+set}" = set; then
12787 withval="$with_tdbsam"
12790 echo "$ac_t""yes" 1>&6
12791 cat >> confdefs.h <<\EOF
12792 #define WITH_TDB_SAM 1
12797 echo "$ac_t""no" 1>&6
12801 echo "$ac_t""no" 1>&6
12806 #################################################
12807 # check for a NISPLUS password database
12808 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12809 echo "configure:12810: checking whether to use NISPLUS SAM database" >&5
12810 # Check whether --with-nisplussam or --without-nisplussam was given.
12811 if test "${with_nisplussam+set}" = set; then
12812 withval="$with_nisplussam"
12815 echo "$ac_t""yes" 1>&6
12816 cat >> confdefs.h <<\EOF
12817 #define WITH_NISPLUS_SAM 1
12822 echo "$ac_t""no" 1>&6
12826 echo "$ac_t""no" 1>&6
12831 ########################################################################################
12833 ## END OF TESTS FOR SAM BACKENDS.
12835 ########################################################################################
12837 #################################################
12838 # check for a NISPLUS_HOME support
12839 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12840 echo "configure:12841: checking whether to use NISPLUS_HOME" >&5
12841 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12842 if test "${with_nisplus_home+set}" = set; then
12843 withval="$with_nisplus_home"
12846 echo "$ac_t""yes" 1>&6
12847 cat >> confdefs.h <<\EOF
12848 #define WITH_NISPLUS_HOME 1
12853 echo "$ac_t""no" 1>&6
12857 echo "$ac_t""no" 1>&6
12862 #################################################
12863 # check for syslog logging
12864 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12865 echo "configure:12866: checking whether to use syslog logging" >&5
12866 # Check whether --with-syslog or --without-syslog was given.
12867 if test "${with_syslog+set}" = set; then
12868 withval="$with_syslog"
12871 echo "$ac_t""yes" 1>&6
12872 cat >> confdefs.h <<\EOF
12873 #define WITH_SYSLOG 1
12878 echo "$ac_t""no" 1>&6
12882 echo "$ac_t""no" 1>&6
12887 #################################################
12888 # check for a shared memory profiling support
12889 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12890 echo "configure:12891: checking whether to use profiling" >&5
12891 # Check whether --with-profiling-data or --without-profiling-data was given.
12892 if test "${with_profiling_data+set}" = set; then
12893 withval="$with_profiling_data"
12896 echo "$ac_t""yes" 1>&6
12897 cat >> confdefs.h <<\EOF
12898 #define WITH_PROFILE 1
12903 echo "$ac_t""no" 1>&6
12907 echo "$ac_t""no" 1>&6
12913 #################################################
12914 # check for experimental disk-quotas support
12915 QUOTAOBJS=smbd/noquotas.o
12917 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12918 echo "configure:12919: checking whether to support disk-quotas" >&5
12919 # Check whether --with-quotas or --without-quotas was given.
12920 if test "${with_quotas+set}" = set; then
12921 withval="$with_quotas"
12924 echo "$ac_t""yes" 1>&6
12927 # Check for kernel 2.4.x quota braindamage...
12928 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12929 echo "configure:12930: checking for linux 2.4.x quota braindamage.." >&5
12930 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12931 echo $ac_n "(cached) $ac_c" 1>&6
12934 cat > conftest.$ac_ext <<EOF
12935 #line 12936 "configure"
12936 #include "confdefs.h"
12938 #include <sys/types.h>
12939 #include <asm/types.h>
12940 #include <linux/quota.h>
12941 #include <mntent.h>
12942 #include <linux/unistd.h>
12944 struct mem_dqblk D;
12947 if { (eval echo configure:12948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12949 samba_cv_linux_2_4_quota_braindamage=yes
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12954 samba_cv_linux_2_4_quota_braindamage=no
12959 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12960 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12961 cat >> confdefs.h <<\EOF
12962 #define LINUX_QUOTAS_2 1
12966 cat >> confdefs.h <<\EOF
12967 #define LINUX_QUOTAS_1 1
12975 QUOTAOBJS=smbd/quotas.o
12976 cat >> confdefs.h <<\EOF
12977 #define WITH_QUOTAS 1
12982 echo "$ac_t""no" 1>&6
12986 echo "$ac_t""no" 1>&6
12992 #################################################
12993 # check for experimental utmp accounting
12995 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12996 echo "configure:12997: checking whether to support utmp accounting" >&5
12997 # Check whether --with-utmp or --without-utmp was given.
12998 if test "${with_utmp+set}" = set; then
12999 withval="$with_utmp"
13002 echo "$ac_t""yes" 1>&6
13003 cat >> confdefs.h <<\EOF
13004 #define WITH_UTMP 1
13009 echo "$ac_t""no" 1>&6
13013 echo "$ac_t""no" 1>&6
13018 #################################################
13019 # choose native language(s) of man pages
13020 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13021 echo "configure:13022: checking chosen man pages' language(s)" >&5
13022 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13023 if test "${with_manpages_langs+set}" = set; then
13024 withval="$with_manpages_langs"
13027 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13031 manlangs="$withval"
13035 echo "$ac_t""$manlangs" 1>&6
13036 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13040 echo "$ac_t""$manlangs" 1>&6
13046 #################################################
13047 # these tests are taken from the GNU fileutils package
13048 echo "checking how to get filesystem space usage" 1>&6
13049 echo "configure:13050: checking how to get filesystem space usage" >&5
13052 # Test for statvfs64.
13053 if test $space = no; then
13055 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13056 echo "configure:13057: checking statvfs64 function (SVR4)" >&5
13057 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13058 echo $ac_n "(cached) $ac_c" 1>&6
13060 if test "$cross_compiling" = yes; then
13061 fu_cv_sys_stat_statvfs64=cross
13063 cat > conftest.$ac_ext <<EOF
13064 #line 13065 "configure"
13065 #include "confdefs.h"
13067 #if defined(HAVE_UNISTD_H)
13068 #include <unistd.h>
13070 #include <sys/types.h>
13071 #include <sys/statvfs.h>
13074 struct statvfs64 fsd;
13075 exit (statvfs64 (".", &fsd));
13078 if { (eval echo configure:13079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13080 fu_cv_sys_stat_statvfs64=yes
13082 echo "configure: failed program was:" >&5
13083 cat conftest.$ac_ext >&5
13085 fu_cv_sys_stat_statvfs64=no
13092 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13093 if test $fu_cv_sys_stat_statvfs64 = yes; then
13095 cat >> confdefs.h <<\EOF
13096 #define STAT_STATVFS64 1
13102 # Perform only the link test since it seems there are no variants of the
13103 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13104 # because that got a false positive on SCO OSR5. Adding the declaration
13105 # of a `struct statvfs' causes this test to fail (as it should) on such
13106 # systems. That system is reported to work fine with STAT_STATFS4 which
13107 # is what it gets when this test fails.
13108 if test $space = no; then
13110 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13111 echo "configure:13112: checking statvfs function (SVR4)" >&5
13112 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13113 echo $ac_n "(cached) $ac_c" 1>&6
13115 cat > conftest.$ac_ext <<EOF
13116 #line 13117 "configure"
13117 #include "confdefs.h"
13118 #include <sys/types.h>
13119 #include <sys/statvfs.h>
13121 struct statvfs fsd; statvfs (0, &fsd);
13124 if { (eval echo configure:13125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13126 fu_cv_sys_stat_statvfs=yes
13128 echo "configure: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13131 fu_cv_sys_stat_statvfs=no
13136 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13137 if test $fu_cv_sys_stat_statvfs = yes; then
13139 cat >> confdefs.h <<\EOF
13140 #define STAT_STATVFS 1
13146 if test $space = no; then
13147 # DEC Alpha running OSF/1
13148 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13149 echo "configure:13150: checking for 3-argument statfs function (DEC OSF/1)" >&5
13150 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13151 echo $ac_n "(cached) $ac_c" 1>&6
13153 if test "$cross_compiling" = yes; then
13154 fu_cv_sys_stat_statfs3_osf1=no
13156 cat > conftest.$ac_ext <<EOF
13157 #line 13158 "configure"
13158 #include "confdefs.h"
13160 #include <sys/param.h>
13161 #include <sys/types.h>
13162 #include <sys/mount.h>
13167 exit (statfs (".", &fsd, sizeof (struct statfs)));
13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13172 fu_cv_sys_stat_statfs3_osf1=yes
13174 echo "configure: failed program was:" >&5
13175 cat conftest.$ac_ext >&5
13177 fu_cv_sys_stat_statfs3_osf1=no
13184 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13185 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13187 cat >> confdefs.h <<\EOF
13188 #define STAT_STATFS3_OSF1 1
13194 if test $space = no; then
13196 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13197 echo "configure:13198: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13198 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13199 echo $ac_n "(cached) $ac_c" 1>&6
13201 if test "$cross_compiling" = yes; then
13202 fu_cv_sys_stat_statfs2_bsize=no
13204 cat > conftest.$ac_ext <<EOF
13205 #line 13206 "configure"
13206 #include "confdefs.h"
13208 #ifdef HAVE_SYS_PARAM_H
13209 #include <sys/param.h>
13211 #ifdef HAVE_SYS_MOUNT_H
13212 #include <sys/mount.h>
13214 #ifdef HAVE_SYS_VFS_H
13215 #include <sys/vfs.h>
13221 exit (statfs (".", &fsd));
13224 if { (eval echo configure:13225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13226 fu_cv_sys_stat_statfs2_bsize=yes
13228 echo "configure: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13231 fu_cv_sys_stat_statfs2_bsize=no
13238 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13239 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13241 cat >> confdefs.h <<\EOF
13242 #define STAT_STATFS2_BSIZE 1
13248 if test $space = no; then
13250 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13251 echo "configure:13252: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13252 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13253 echo $ac_n "(cached) $ac_c" 1>&6
13255 if test "$cross_compiling" = yes; then
13256 fu_cv_sys_stat_statfs4=no
13258 cat > conftest.$ac_ext <<EOF
13259 #line 13260 "configure"
13260 #include "confdefs.h"
13261 #include <sys/types.h>
13262 #include <sys/statfs.h>
13266 exit (statfs (".", &fsd, sizeof fsd, 0));
13269 if { (eval echo configure:13270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13271 fu_cv_sys_stat_statfs4=yes
13273 echo "configure: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13276 fu_cv_sys_stat_statfs4=no
13283 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13284 if test $fu_cv_sys_stat_statfs4 = yes; then
13286 cat >> confdefs.h <<\EOF
13287 #define STAT_STATFS4 1
13293 if test $space = no; then
13294 # 4.4BSD and NetBSD
13295 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13296 echo "configure:13297: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13297 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13298 echo $ac_n "(cached) $ac_c" 1>&6
13300 if test "$cross_compiling" = yes; then
13301 fu_cv_sys_stat_statfs2_fsize=no
13303 cat > conftest.$ac_ext <<EOF
13304 #line 13305 "configure"
13305 #include "confdefs.h"
13306 #include <sys/types.h>
13307 #ifdef HAVE_SYS_PARAM_H
13308 #include <sys/param.h>
13310 #ifdef HAVE_SYS_MOUNT_H
13311 #include <sys/mount.h>
13317 exit (statfs (".", &fsd));
13320 if { (eval echo configure:13321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13322 fu_cv_sys_stat_statfs2_fsize=yes
13324 echo "configure: failed program was:" >&5
13325 cat conftest.$ac_ext >&5
13327 fu_cv_sys_stat_statfs2_fsize=no
13334 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13335 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13337 cat >> confdefs.h <<\EOF
13338 #define STAT_STATFS2_FSIZE 1
13344 if test $space = no; then
13346 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13347 echo "configure:13348: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13348 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13349 echo $ac_n "(cached) $ac_c" 1>&6
13351 if test "$cross_compiling" = yes; then
13352 fu_cv_sys_stat_fs_data=no
13354 cat > conftest.$ac_ext <<EOF
13355 #line 13356 "configure"
13356 #include "confdefs.h"
13357 #include <sys/types.h>
13358 #ifdef HAVE_SYS_PARAM_H
13359 #include <sys/param.h>
13361 #ifdef HAVE_SYS_MOUNT_H
13362 #include <sys/mount.h>
13364 #ifdef HAVE_SYS_FS_TYPES_H
13365 #include <sys/fs_types.h>
13369 struct fs_data fsd;
13370 /* Ultrix's statfs returns 1 for success,
13371 0 for not mounted, -1 for failure. */
13372 exit (statfs (".", &fsd) != 1);
13375 if { (eval echo configure:13376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13377 fu_cv_sys_stat_fs_data=yes
13379 echo "configure: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13382 fu_cv_sys_stat_fs_data=no
13389 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13390 if test $fu_cv_sys_stat_fs_data = yes; then
13392 cat >> confdefs.h <<\EOF
13393 #define STAT_STATFS2_FS_DATA 1
13400 # As a gating factor for large file support, in order to
13401 # use <4GB files we must have the following minimal support
13403 # long long, and a 64 bit off_t or off64_t.
13404 # If we don't have all of these then disable large
13407 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13408 echo "configure:13409: checking if large file support can be enabled" >&5
13409 cat > conftest.$ac_ext <<EOF
13410 #line 13411 "configure"
13411 #include "confdefs.h"
13413 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13414 #include <sys/types.h>
13423 if { (eval echo configure:13424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13425 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13430 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13433 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13434 cat >> confdefs.h <<\EOF
13435 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13439 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13441 # Check whether --with-spinlocks or --without-spinlocks was given.
13442 if test "${with_spinlocks+set}" = set; then
13443 withval="$with_spinlocks"
13447 if test "x$with_spinlocks" = "xyes"; then
13448 cat >> confdefs.h <<\EOF
13449 #define USE_SPINLOCKS 1
13453 case "$host_cpu" in
13455 cat >> confdefs.h <<\EOF
13456 #define SPARC_SPINLOCKS 1
13461 i386|i486|i586|i686)
13462 cat >> confdefs.h <<\EOF
13463 #define INTEL_SPINLOCKS 1
13469 cat >> confdefs.h <<\EOF
13470 #define MIPS_SPINLOCKS 1
13476 cat >> confdefs.h <<\EOF
13477 #define POWERPC_SPINLOCKS 1
13484 #################################################
13485 # check for ACL support
13487 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13488 echo "configure:13489: checking whether to support ACLs" >&5
13489 # Check whether --with-acl-support or --without-acl-support was given.
13490 if test "${with_acl_support+set}" = set; then
13491 withval="$with_acl_support"
13497 echo "$ac_t""Using UnixWare ACLs" 1>&6
13498 cat >> confdefs.h <<\EOF
13499 #define HAVE_UNIXWARE_ACLS 1
13504 echo "$ac_t""Using solaris ACLs" 1>&6
13505 cat >> confdefs.h <<\EOF
13506 #define HAVE_SOLARIS_ACLS 1
13511 echo "$ac_t""Using HPUX ACLs" 1>&6
13512 cat >> confdefs.h <<\EOF
13513 #define HAVE_HPUX_ACLS 1
13518 echo "$ac_t""Using IRIX ACLs" 1>&6
13519 cat >> confdefs.h <<\EOF
13520 #define HAVE_IRIX_ACLS 1
13525 echo "$ac_t""Using AIX ACLs" 1>&6
13526 cat >> confdefs.h <<\EOF
13527 #define HAVE_AIX_ACLS 1
13532 echo "$ac_t""Using Tru64 ACLs" 1>&6
13533 cat >> confdefs.h <<\EOF
13534 #define HAVE_TRU64_ACLS 1
13537 LIBS="$LIBS -lpacl"
13540 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13541 echo "configure:13542: checking for acl_get_file in -lacl" >&5
13542 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13544 echo $ac_n "(cached) $ac_c" 1>&6
13546 ac_save_LIBS="$LIBS"
13548 cat > conftest.$ac_ext <<EOF
13549 #line 13550 "configure"
13550 #include "confdefs.h"
13551 /* Override any gcc2 internal prototype to avoid an error. */
13552 /* We use char because int might match the return type of a gcc2
13553 builtin and then its argument prototype would still apply. */
13554 char acl_get_file();
13560 if { (eval echo configure:13561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13562 eval "ac_cv_lib_$ac_lib_var=yes"
13564 echo "configure: failed program was:" >&5
13565 cat conftest.$ac_ext >&5
13567 eval "ac_cv_lib_$ac_lib_var=no"
13570 LIBS="$ac_save_LIBS"
13573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13574 echo "$ac_t""yes" 1>&6
13575 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13576 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13577 cat >> confdefs.h <<EOF
13578 #define $ac_tr_lib 1
13584 echo "$ac_t""no" 1>&6
13587 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13588 echo "configure:13589: checking for ACL support" >&5
13589 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
13593 cat > conftest.$ac_ext <<EOF
13594 #line 13595 "configure"
13595 #include "confdefs.h"
13596 #include <sys/types.h>
13597 #include <sys/acl.h>
13599 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13602 if { (eval echo configure:13603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13604 samba_cv_HAVE_POSIX_ACLS=yes
13606 echo "configure: failed program was:" >&5
13607 cat conftest.$ac_ext >&5
13609 samba_cv_HAVE_POSIX_ACLS=no
13614 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13615 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13616 echo "$ac_t""Using posix ACLs" 1>&6
13617 cat >> confdefs.h <<\EOF
13618 #define HAVE_POSIX_ACLS 1
13621 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13622 echo "configure:13623: checking for acl_get_perm_np" >&5
13623 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13624 echo $ac_n "(cached) $ac_c" 1>&6
13627 cat > conftest.$ac_ext <<EOF
13628 #line 13629 "configure"
13629 #include "confdefs.h"
13630 #include <sys/types.h>
13631 #include <sys/acl.h>
13633 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13636 if { (eval echo configure:13637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13638 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13640 echo "configure: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13643 samba_cv_HAVE_ACL_GET_PERM_NP=no
13648 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13649 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13650 cat >> confdefs.h <<\EOF
13651 #define HAVE_ACL_GET_PERM_NP 1
13660 echo "$ac_t""no" 1>&6
13661 cat >> confdefs.h <<\EOF
13662 #define HAVE_NO_ACLS 1
13668 cat >> confdefs.h <<\EOF
13669 #define HAVE_NO_ACLS 1
13672 echo "$ac_t""no" 1>&6
13677 #################################################
13678 # Check whether winbind is supported on this platform. If so we need to
13679 # build and install client programs (WINBIND_TARGETS), sbin programs
13680 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13682 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13683 echo "configure:13684: checking whether to build winbind" >&5
13685 # Initially, the value of $host_os decides whether winbind is supported
13693 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13694 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13698 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13702 winbind_no_reason=", unsupported on $host_os"
13706 # Check the setting of --with-winbindd
13708 # Check whether --with-winbind or --without-winbind was given.
13709 if test "${with_winbind+set}" = set; then
13710 withval="$with_winbind"
13724 # We need unix domain sockets for winbind
13726 if test x"$HAVE_WINBIND" = x"yes"; then
13727 if test x"$samba_cv_unixsocket" = x"no"; then
13728 winbind_no_reason=", no unix domain socket support on $host_os"
13733 # Display test results
13736 WINBIND_STARGETS=""
13737 WINBIND_LTARGETS=""
13738 WINBIND_PAM_PROGS=""
13740 if test x"$HAVE_WINBIND" = x"yes"; then
13741 echo "$ac_t""yes" 1>&6
13743 WINBIND_TARGETS="bin/wbinfo"
13744 WINBIND_STARGETS="bin/winbindd"
13745 if test x"$BLDSHARED" = x"true"; then
13746 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13747 if test x"$with_pam" = x"yes"; then
13748 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13752 echo "$ac_t""no$winbind_no_reason" 1>&6
13756 # Check for FreeBSD problem with getgroups
13757 # It returns EGID too many times in the list of groups
13758 # and causes a security problem
13759 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13760 echo "configure:13761: checking whether or not getgroups returns EGID too many times" >&5
13761 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13762 echo $ac_n "(cached) $ac_c" 1>&6
13764 if test "$cross_compiling" = yes; then
13765 samba_cv_have_getgroups_too_many_egids=cross
13767 cat > conftest.$ac_ext <<EOF
13768 #line 13769 "configure"
13769 #include "confdefs.h"
13771 #include <sys/types.h>
13774 int main(int argc, char *argv[])
13779 n = getgroups(n, &groups);
13780 /* Could actually pass back the number of EGIDs there ... */
13781 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13784 if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13786 samba_cv_have_getgroups_too_many_egids=no
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13791 samba_cv_have_getgroups_too_many_egids=yes
13798 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13799 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13800 cat >> confdefs.h <<\EOF
13801 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13808 # Substitution time!
13817 # Solaris has some extra fields in struct passwd that need to be
13818 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13819 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13822 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13823 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13824 # [#include <pwd.h>])
13826 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13827 echo "configure:13828: checking whether struct passwd has pw_comment" >&5
13828 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13829 echo $ac_n "(cached) $ac_c" 1>&6
13832 cat > conftest.$ac_ext <<EOF
13833 #line 13834 "configure"
13834 #include "confdefs.h"
13837 struct passwd p; p.pw_comment;
13840 if { (eval echo configure:13841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13842 samba_cv_passwd_pw_comment=yes
13844 echo "configure: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13847 samba_cv_passwd_pw_comment=no
13852 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13853 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13854 cat >> confdefs.h <<\EOF
13855 #define HAVE_PASSWD_PW_COMMENT 1
13860 #AC_CHECK_MEMBER(struct passwd.pw_age,
13861 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13862 # [#include <pwd.h>])
13864 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13865 echo "configure:13866: checking whether struct passwd has pw_age" >&5
13866 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13867 echo $ac_n "(cached) $ac_c" 1>&6
13870 cat > conftest.$ac_ext <<EOF
13871 #line 13872 "configure"
13872 #include "confdefs.h"
13875 struct passwd p; p.pw_age;
13878 if { (eval echo configure:13879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13880 samba_cv_passwd_pw_age=yes
13882 echo "configure: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13885 samba_cv_passwd_pw_age=no
13890 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13891 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13892 cat >> confdefs.h <<\EOF
13893 #define HAVE_PASSWD_PW_AGE 1
13898 #################################################
13899 # Check to see if we should use the included popt
13901 # Check whether --with-included-popt or --without-included-popt was given.
13902 if test "${with_included_popt+set}" = set; then
13903 withval="$with_included_popt"
13915 if test x"$INCLUDED_POPT" != x"yes"; then
13916 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13917 echo "configure:13918: checking for poptGetContext in -lpopt" >&5
13918 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13920 echo $ac_n "(cached) $ac_c" 1>&6
13922 ac_save_LIBS="$LIBS"
13923 LIBS="-lpopt $LIBS"
13924 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13927 /* Override any gcc2 internal prototype to avoid an error. */
13928 /* We use char because int might match the return type of a gcc2
13929 builtin and then its argument prototype would still apply. */
13930 char poptGetContext();
13936 if { (eval echo configure:13937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13938 eval "ac_cv_lib_$ac_lib_var=yes"
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13943 eval "ac_cv_lib_$ac_lib_var=no"
13946 LIBS="$ac_save_LIBS"
13949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13950 echo "$ac_t""yes" 1>&6
13953 echo "$ac_t""no" 1>&6
13959 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13960 echo "configure:13961: checking whether to use included popt" >&5
13961 if test x"$INCLUDED_POPT" = x"yes"; then
13962 echo "$ac_t""$srcdir/popt" 1>&6
13963 BUILD_POPT='$(POPT_OBJS)'
13964 FLAGS1="-I$srcdir/popt"
13966 echo "$ac_t""no" 1>&6
13967 LIBS="$LIBS -lpopt"
13972 #################################################
13973 # do extra things if we are running insure
13975 if test "${ac_cv_prog_CC}" = "insure"; then
13976 CPPFLAGS="$CPPFLAGS -D__INSURE__"
13979 #################################################
13980 # final configure stuff
13982 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13983 echo "configure:13984: checking configure summary" >&5
13984 if test "$cross_compiling" = yes; then
13985 echo "configure: warning: cannot run when cross-compiling" 1>&2
13987 cat > conftest.$ac_ext <<EOF
13988 #line 13989 "configure"
13989 #include "confdefs.h"
13990 #include "${srcdir-.}/tests/summary.c"
13992 if { (eval echo configure:13993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13994 echo "$ac_t""yes" 1>&6
13996 echo "configure: failed program was:" >&5
13997 cat conftest.$ac_ext >&5
13999 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14009 cat > confcache <<\EOF
14010 # This file is a shell script that caches the results of configure
14011 # tests run on this system so they can be shared between configure
14012 # scripts and configure runs. It is not useful on other systems.
14013 # If it contains results you don't want to keep, you may remove or edit it.
14015 # By default, configure uses ./config.cache as the cache file,
14016 # creating it if it does not exist already. You can give configure
14017 # the --cache-file=FILE option to use a different cache file; that is
14018 # what configure does when it calls configure scripts in
14019 # subdirectories, so they share the cache.
14020 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14021 # config.status only pays attention to the cache file if you give it the
14022 # --recheck option to rerun configure.
14025 # The following way of writing the cache mishandles newlines in values,
14026 # but we know of no workaround that is simple, portable, and efficient.
14027 # So, don't put newlines in cache variables' values.
14028 # Ultrix sh set writes to stderr and can't be redirected directly,
14029 # and sets the high bit in the cache file unless we assign to the vars.
14031 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14033 # `set' does not quote correctly, so add quotes (double-quote substitution
14034 # turns \\\\ into \\, and sed turns \\ into \).
14036 -e "s/'/'\\\\''/g" \
14037 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14040 # `set' quotes correctly as required by POSIX, so do not add quotes.
14041 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14044 if cmp -s $cache_file confcache; then
14047 if test -w $cache_file; then
14048 echo "updating cache $cache_file"
14049 cat confcache > $cache_file
14051 echo "not updating unwritable cache $cache_file"
14056 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14059 # Let make expand exec_prefix.
14060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14062 # Any assignment to VPATH causes Sun make to only execute
14063 # the first set of double-colon rules, so remove it if not needed.
14064 # If there is a colon in the path, we need to keep it.
14065 if test "x$srcdir" = x.; then
14066 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14069 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14071 DEFS=-DHAVE_CONFIG_H
14073 # Without the "./", some shells look in PATH for config.status.
14074 : ${CONFIG_STATUS=./config.status}
14076 echo creating $CONFIG_STATUS
14077 rm -f $CONFIG_STATUS
14078 cat > $CONFIG_STATUS <<EOF
14080 # Generated automatically by configure.
14081 # Run this file to recreate the current configuration.
14082 # This directory was configured as follows,
14083 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14085 # $0 $ac_configure_args
14087 # Compiler output produced by configure, useful for debugging
14088 # configure, is in ./config.log if it exists.
14090 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14093 case "\$ac_option" in
14094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14095 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14096 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14097 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14098 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14100 -help | --help | --hel | --he | --h)
14101 echo "\$ac_cs_usage"; exit 0 ;;
14102 *) echo "\$ac_cs_usage"; exit 1 ;;
14106 ac_given_srcdir=$srcdir
14107 ac_given_INSTALL="$INSTALL"
14109 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14111 cat >> $CONFIG_STATUS <<EOF
14113 # Protect against being on the right side of a sed subst in config.status.
14114 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14115 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14119 s%@CFLAGS@%$CFLAGS%g
14120 s%@CPPFLAGS@%$CPPFLAGS%g
14121 s%@CXXFLAGS@%$CXXFLAGS%g
14122 s%@FFLAGS@%$FFLAGS%g
14124 s%@LDFLAGS@%$LDFLAGS%g
14126 s%@exec_prefix@%$exec_prefix%g
14127 s%@prefix@%$prefix%g
14128 s%@program_transform_name@%$program_transform_name%g
14129 s%@bindir@%$bindir%g
14130 s%@sbindir@%$sbindir%g
14131 s%@libexecdir@%$libexecdir%g
14132 s%@datadir@%$datadir%g
14133 s%@sysconfdir@%$sysconfdir%g
14134 s%@sharedstatedir@%$sharedstatedir%g
14135 s%@localstatedir@%$localstatedir%g
14136 s%@libdir@%$libdir%g
14137 s%@includedir@%$includedir%g
14138 s%@oldincludedir@%$oldincludedir%g
14139 s%@infodir@%$infodir%g
14140 s%@mandir@%$mandir%g
14141 s%@codepagedir@%$codepagedir%g
14142 s%@configdir@%$configdir%g
14143 s%@lockdir@%$lockdir%g
14144 s%@piddir@%$piddir%g
14145 s%@logfilebase@%$logfilebase%g
14146 s%@privatedir@%$privatedir%g
14147 s%@swatdir@%$swatdir%g
14148 s%@RUNPROG@%$RUNPROG%g
14149 s%@MPROGS@%$MPROGS%g
14150 s%@LDSHFLAGS@%$LDSHFLAGS%g
14152 s%@HOST_OS@%$HOST_OS%g
14153 s%@PAM_MOD@%$PAM_MOD%g
14155 s%@WRAP32@%$WRAP32%g
14156 s%@PICFLAG@%$PICFLAG%g
14157 s%@PICSUFFIX@%$PICSUFFIX%g
14158 s%@POBAD_CC@%$POBAD_CC%g
14159 s%@SHLIBEXT@%$SHLIBEXT%g
14160 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14162 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14163 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14164 s%@INSTALL_DATA@%$INSTALL_DATA%g
14166 s%@BROKEN_CC@%$BROKEN_CC%g
14168 s%@host_alias@%$host_alias%g
14169 s%@host_cpu@%$host_cpu%g
14170 s%@host_vendor@%$host_vendor%g
14171 s%@host_os@%$host_os%g
14172 s%@target@%$target%g
14173 s%@target_alias@%$target_alias%g
14174 s%@target_cpu@%$target_cpu%g
14175 s%@target_vendor@%$target_vendor%g
14176 s%@target_os@%$target_os%g
14178 s%@build_alias@%$build_alias%g
14179 s%@build_cpu@%$build_cpu%g
14180 s%@build_vendor@%$build_vendor%g
14181 s%@build_os@%$build_os%g
14183 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14184 s%@LIBOBJS@%$LIBOBJS%g
14185 s%@TERMLIBS@%$TERMLIBS%g
14186 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14188 s%@DYNEXP@%$DYNEXP%g
14189 s%@QUOTAOBJS@%$QUOTAOBJS%g
14190 s%@manlangs@%$manlangs%g
14191 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14192 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14193 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14194 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14195 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14196 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14197 s%@BUILD_POPT@%$BUILD_POPT%g
14198 s%@FLAGS1@%$FLAGS1%g
14199 s%@builddir@%$builddir%g
14204 cat >> $CONFIG_STATUS <<\EOF
14206 # Split the substitutions into bite-sized pieces for seds with
14207 # small command number limits, like on Digital OSF/1 and HP-UX.
14208 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14209 ac_file=1 # Number of current file.
14210 ac_beg=1 # First line for current file.
14211 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14214 while $ac_more_lines; do
14215 if test $ac_beg -gt 1; then
14216 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14218 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14220 if test ! -s conftest.s$ac_file; then
14221 ac_more_lines=false
14222 rm -f conftest.s$ac_file
14224 if test -z "$ac_sed_cmds"; then
14225 ac_sed_cmds="sed -f conftest.s$ac_file"
14227 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14229 ac_file=`expr $ac_file + 1`
14231 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14234 if test -z "$ac_sed_cmds"; then
14239 cat >> $CONFIG_STATUS <<EOF
14241 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14243 cat >> $CONFIG_STATUS <<\EOF
14244 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14247 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14248 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14249 *) ac_file_in="${ac_file}.in" ;;
14252 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14254 # Remove last slash and all that follows it. Not all systems have dirname.
14255 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14256 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14257 # The file is in a subdirectory.
14258 test ! -d "$ac_dir" && mkdir "$ac_dir"
14259 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14260 # A "../" for each directory in $ac_dir_suffix.
14261 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14263 ac_dir_suffix= ac_dots=
14266 case "$ac_given_srcdir" in
14268 if test -z "$ac_dots"; then top_srcdir=.
14269 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14270 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14271 *) # Relative path.
14272 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14273 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14276 case "$ac_given_INSTALL" in
14277 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14278 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14281 echo creating "$ac_file"
14283 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14285 *Makefile*) ac_comsub="1i\\
14286 # $configure_input" ;;
14290 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14292 s%@configure_input@%$configure_input%g
14293 s%@srcdir@%$srcdir%g
14294 s%@top_srcdir@%$top_srcdir%g
14295 s%@INSTALL@%$INSTALL%g
14296 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14300 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14301 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14303 # ac_d sets the value in "#define NAME VALUE" lines.
14304 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14305 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14308 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14309 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14310 ac_uB='\([ ]\)%\1#\2define\3'
14313 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14314 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14315 ac_eB='$%\1#\2define\3'
14319 if test "${CONFIG_HEADERS+set}" != set; then
14321 cat >> $CONFIG_STATUS <<EOF
14322 CONFIG_HEADERS="include/config.h"
14324 cat >> $CONFIG_STATUS <<\EOF
14326 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14329 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14330 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14331 *) ac_file_in="${ac_file}.in" ;;
14334 echo creating $ac_file
14336 rm -f conftest.frag conftest.in conftest.out
14337 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14338 cat $ac_file_inputs > conftest.in
14342 # Transform confdefs.h into a sed script conftest.vals that substitutes
14343 # the proper values into config.h.in to produce config.h. And first:
14344 # Protect against being on the right side of a sed subst in config.status.
14345 # Protect against being in an unquoted here document in config.status.
14346 rm -f conftest.vals
14347 cat > conftest.hdr <<\EOF
14350 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14354 sed -n -f conftest.hdr confdefs.h > conftest.vals
14357 # This sed command replaces #undef with comments. This is necessary, for
14358 # example, in the case of _POSIX_SOURCE, which is predefined and required
14359 # on some systems where configure will not decide to define it.
14360 cat >> conftest.vals <<\EOF
14361 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14364 # Break up conftest.vals because some shells have a limit on
14365 # the size of here documents, and old seds have small limits too.
14367 rm -f conftest.tail
14370 ac_lines=`grep -c . conftest.vals`
14371 # grep -c gives empty output for an empty file on some AIX systems.
14372 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14373 # Write a limited-size here document to conftest.frag.
14374 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14375 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14377 sed -f conftest.frag conftest.in > conftest.out
14379 mv conftest.out conftest.in
14380 ' >> $CONFIG_STATUS
14381 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14382 rm -f conftest.vals
14383 mv conftest.tail conftest.vals
14385 rm -f conftest.vals
14387 cat >> $CONFIG_STATUS <<\EOF
14388 rm -f conftest.frag conftest.h
14389 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14390 cat conftest.in >> conftest.h
14392 if cmp -s $ac_file conftest.h 2>/dev/null; then
14393 echo "$ac_file is unchanged"
14396 # Remove last slash and all that follows it. Not all systems have dirname.
14397 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14398 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14399 # The file is in a subdirectory.
14400 test ! -d "$ac_dir" && mkdir "$ac_dir"
14403 mv conftest.h $ac_file
14408 cat >> $CONFIG_STATUS <<EOF
14411 cat >> $CONFIG_STATUS <<\EOF
14415 chmod +x $CONFIG_STATUS
14416 rm -fr confdefs* $ac_clean_files
14417 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14420 #################################################
14421 # Print very concise instructions on building/use
14422 if test "x$enable_dmalloc" = xyes
14424 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14425 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6