3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-cups Turn on CUPS support (default=auto)"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-ads Active Directory support (default yes)"
52 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
54 --with-ldap LDAP support (default yes)"
56 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)"
58 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)"
60 --disable-mysqltest Do not try to compile and run a test MYSQL program"
62 --with-xml-prefix=PFX Prefix where libxml is installed (optional)"
64 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)"
66 --disable-xmltest Do not try to compile and run a test LIBXML program"
68 --with-automount Include automount support (default=no)"
70 --with-smbmount Include smbmount (Linux only) support (default=no)"
72 --with-pam Include PAM support (default=no)"
74 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
76 --with-sam Build new (experimental) SAM database (default=no)"
78 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
80 --with-tdbsam Include experimental TDB SAM support (default=no)"
82 --with-nisplussam Include NISPLUS SAM support (default=no)"
84 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
86 --with-syslog Include experimental SYSLOG support (default=no)"
88 --with-profiling-data Include gathering source code profile information (default=no)"
90 --with-quotas Include experimental disk-quota support (default=no)"
92 --with-utmp Include experimental utmp accounting (default=no)"
94 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
96 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
98 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
100 --with-acl-support Include ACL support (default=no)"
102 --with-sendfile-support Check for sendfile support (default=yes)"
104 --with-winbind Build winbind (default, if supported by OS)"
106 --with-included-popt use bundled popt library, not from system"
108 --with-python=PYTHONNAME build Python libraries"
110 # Initialize some variables set by options.
111 # The variables have the same names as the options, with
112 # dashes changed to underlines.
114 cache_file=./config.cache
123 program_transform_name=s,x,x,
131 bindir='${exec_prefix}/bin'
132 sbindir='${exec_prefix}/sbin'
133 libexecdir='${exec_prefix}/libexec'
134 datadir='${prefix}/share'
135 sysconfdir='${prefix}/etc'
136 sharedstatedir='${prefix}/com'
137 localstatedir='${prefix}/var'
138 libdir='${exec_prefix}/lib'
139 includedir='${prefix}/include'
140 oldincludedir='/usr/include'
141 infodir='${prefix}/info'
142 mandir='${prefix}/man'
144 # Initialize some other variables.
147 SHELL=${CONFIG_SHELL-/bin/sh}
148 # Maximum number of lines to put in a shell here document.
155 # If the previous option needs an argument, assign it.
156 if test -n "$ac_prev"; then
157 eval "$ac_prev=\$ac_option"
163 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
174 bindir="$ac_optarg" ;;
176 -build | --build | --buil | --bui | --bu)
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build="$ac_optarg" ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file="$ac_optarg" ;;
188 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
190 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
192 datadir="$ac_optarg" ;;
194 -disable-* | --disable-*)
195 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
201 eval "enable_${ac_feature}=no" ;;
203 -enable-* | --enable-*)
204 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
205 # Reject names that are not valid shell variable names.
206 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
207 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
209 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
214 eval "enable_${ac_feature}='$ac_optarg'" ;;
216 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
217 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
218 | --exec | --exe | --ex)
219 ac_prev=exec_prefix ;;
220 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
221 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
222 | --exec=* | --exe=* | --ex=*)
223 exec_prefix="$ac_optarg" ;;
225 -gas | --gas | --ga | --g)
226 # Obsolete; use --with-gas.
229 -help | --help | --hel | --he)
230 # Omit some internal or obsolete options to make the list less imposing.
231 # This message is too long to be a string in the A/UX 3.1 sh.
233 Usage: configure [options] [host]
234 Options: [defaults in brackets after descriptions]
236 --cache-file=FILE cache test results in FILE
237 --help print this message
238 --no-create do not create output files
239 --quiet, --silent do not print \`checking...' messages
240 --version print the version of autoconf that created configure
241 Directory and file names:
242 --prefix=PREFIX install architecture-independent files in PREFIX
244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
246 --bindir=DIR user executables in DIR [EPREFIX/bin]
247 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
248 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
249 --datadir=DIR read-only architecture-independent data in DIR
251 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
252 --sharedstatedir=DIR modifiable architecture-independent data in DIR
254 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
255 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
256 --includedir=DIR C header files in DIR [PREFIX/include]
257 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
258 --infodir=DIR info documentation in DIR [PREFIX/info]
259 --mandir=DIR man documentation in DIR [PREFIX/man]
260 --srcdir=DIR find the sources in DIR [configure dir or ..]
261 --program-prefix=PREFIX prepend PREFIX to installed program names
262 --program-suffix=SUFFIX append SUFFIX to installed program names
263 --program-transform-name=PROGRAM
264 run sed PROGRAM on installed program names
268 --build=BUILD configure for building on BUILD [BUILD=HOST]
269 --host=HOST configure for HOST [guessed]
270 --target=TARGET configure for TARGET [TARGET=HOST]
271 Features and packages:
272 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
273 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
274 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
275 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
276 --x-includes=DIR X include files are in DIR
277 --x-libraries=DIR X library files are in DIR
279 if test -n "$ac_help"; then
280 echo "--enable and --with options recognized:$ac_help"
284 -host | --host | --hos | --ho)
286 -host=* | --host=* | --hos=* | --ho=*)
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir="$ac_optarg" ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir="$ac_optarg" ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
304 libdir="$ac_optarg" ;;
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir="$ac_optarg" ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir="$ac_optarg" ;;
322 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
324 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
325 mandir="$ac_optarg" ;;
328 # Obsolete; use --without-fp.
331 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
335 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
336 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
339 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
340 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
341 | --oldin | --oldi | --old | --ol | --o)
342 ac_prev=oldincludedir ;;
343 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
344 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
345 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
346 oldincludedir="$ac_optarg" ;;
348 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
350 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
351 prefix="$ac_optarg" ;;
353 -program-prefix | --program-prefix | --program-prefi | --program-pref \
354 | --program-pre | --program-pr | --program-p)
355 ac_prev=program_prefix ;;
356 -program-prefix=* | --program-prefix=* | --program-prefi=* \
357 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
358 program_prefix="$ac_optarg" ;;
360 -program-suffix | --program-suffix | --program-suffi | --program-suff \
361 | --program-suf | --program-su | --program-s)
362 ac_prev=program_suffix ;;
363 -program-suffix=* | --program-suffix=* | --program-suffi=* \
364 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
365 program_suffix="$ac_optarg" ;;
367 -program-transform-name | --program-transform-name \
368 | --program-transform-nam | --program-transform-na \
369 | --program-transform-n | --program-transform- \
370 | --program-transform | --program-transfor \
371 | --program-transfo | --program-transf \
372 | --program-trans | --program-tran \
373 | --progr-tra | --program-tr | --program-t)
374 ac_prev=program_transform_name ;;
375 -program-transform-name=* | --program-transform-name=* \
376 | --program-transform-nam=* | --program-transform-na=* \
377 | --program-transform-n=* | --program-transform-=* \
378 | --program-transform=* | --program-transfor=* \
379 | --program-transfo=* | --program-transf=* \
380 | --program-trans=* | --program-tran=* \
381 | --progr-tra=* | --program-tr=* | --program-t=*)
382 program_transform_name="$ac_optarg" ;;
384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
385 | -silent | --silent | --silen | --sile | --sil)
388 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
390 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
392 sbindir="$ac_optarg" ;;
394 -sharedstatedir | --sharedstatedir | --sharedstatedi \
395 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
396 | --sharedst | --shareds | --shared | --share | --shar \
398 ac_prev=sharedstatedir ;;
399 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
400 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
401 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
403 sharedstatedir="$ac_optarg" ;;
405 -site | --site | --sit)
407 -site=* | --site=* | --sit=*)
410 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
412 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
413 srcdir="$ac_optarg" ;;
415 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
416 | --syscon | --sysco | --sysc | --sys | --sy)
417 ac_prev=sysconfdir ;;
418 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
419 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
420 sysconfdir="$ac_optarg" ;;
422 -target | --target | --targe | --targ | --tar | --ta | --t)
424 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
425 target="$ac_optarg" ;;
427 -v | -verbose | --verbose | --verbos | --verbo | --verb)
430 -version | --version | --versio | --versi | --vers)
431 echo "configure generated by autoconf version 2.13"
435 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
436 # Reject names that are not valid shell variable names.
437 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
438 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
440 ac_package=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}='$ac_optarg'" ;;
447 -without-* | --without-*)
448 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
449 # Reject names that are not valid shell variable names.
450 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
453 ac_package=`echo $ac_package| sed 's/-/_/g'`
454 eval "with_${ac_package}=no" ;;
457 # Obsolete; use --with-x.
460 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
461 | --x-incl | --x-inc | --x-in | --x-i)
462 ac_prev=x_includes ;;
463 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
464 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
465 x_includes="$ac_optarg" ;;
467 -x-libraries | --x-libraries | --x-librarie | --x-librari \
468 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
469 ac_prev=x_libraries ;;
470 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
471 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
472 x_libraries="$ac_optarg" ;;
474 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
478 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
479 echo "configure: warning: $ac_option: invalid host type" 1>&2
481 if test "x$nonopt" != xNONE; then
482 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
490 if test -n "$ac_prev"; then
491 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
496 # File descriptor usage:
499 # 2 errors and warnings
500 # 3 some systems may open it to /dev/tty
501 # 4 used on the Kubota Titan
502 # 6 checking for... messages and results
503 # 5 compiler messages saved in config.log
504 if test "$silent" = yes; then
512 This file contains any messages produced by compilers while
513 running configure, to aid debugging if configure makes a mistake.
516 # Strip out --no-create and --no-recursion so they do not pile up.
517 # Also quote any args containing shell metacharacters.
522 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
523 | --no-cr | --no-c) ;;
524 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
525 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
527 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
528 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
533 # Only set these to C if already set. These must not be set unconditionally
534 # because not all systems understand e.g. LANG=C (notably SCO).
535 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
536 # Non-C LC_CTYPE values break the ctype check.
537 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
539 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
540 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
543 rm -rf conftest* confdefs.h
544 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
547 # A filename unique to this package, relative to the directory that
548 # configure is in, which we can look for to find out if srcdir is correct.
549 ac_unique_file=include/includes.h
551 # Find the source files, if location was not specified.
552 if test -z "$srcdir"; then
553 ac_srcdir_defaulted=yes
554 # Try the directory containing this script, then its parent.
556 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
557 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
559 if test ! -r $srcdir/$ac_unique_file; then
563 ac_srcdir_defaulted=no
565 if test ! -r $srcdir/$ac_unique_file; then
566 if test "$ac_srcdir_defaulted" = yes; then
567 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
569 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
572 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
574 # Prefer explicitly selected file to automatically selected ones.
575 if test -z "$CONFIG_SITE"; then
576 if test "x$prefix" != xNONE; then
577 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
579 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
582 for ac_site_file in $CONFIG_SITE; do
583 if test -r "$ac_site_file"; then
584 echo "loading site script $ac_site_file"
589 if test -r "$cache_file"; then
590 echo "loading cache $cache_file"
593 echo "creating cache $cache_file"
598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
599 ac_cpp='$CPP $CPPFLAGS'
600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
602 cross_compiling=$ac_cv_prog_cc_cross
606 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
607 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
608 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
615 ac_n= ac_c='\c' ac_t=
621 #################################################
622 # Directory handling stuff to support both the
623 # legacy SAMBA directories and FHS compliant
627 # Check whether --with-fhs or --without-fhs was given.
628 if test "${with_fhs+set}" = set; then
630 configdir="${sysconfdir}/samba"
631 lockdir="\${VARDIR}/cache/samba"
632 piddir="\${VARDIR}/run/samba"
633 logfilebase="\${VARDIR}/log/samba"
634 privatedir="\${CONFIGDIR}/private"
635 libdir="\${prefix}/lib/samba"
636 swatdir="\${DATADIR}/samba/swat"
638 configdir="\${LIBDIR}"
639 logfilebase="\${VARDIR}"
640 lockdir="\${VARDIR}/locks"
641 piddir="\${VARDIR}/locks"
642 privatedir="\${prefix}/private"
643 swatdir="\${prefix}/swat"
647 #################################################
648 # set private directory location
649 # Check whether --with-privatedir or --without-privatedir was given.
650 if test "${with_privatedir+set}" = set; then
651 withval="$with_privatedir"
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
660 privatedir="$withval"
666 #################################################
667 # set lock directory location
668 # Check whether --with-lockdir or --without-lockdir was given.
669 if test "${with_lockdir+set}" = set; then
670 withval="$with_lockdir"
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
685 #################################################
686 # set pid directory location
687 # Check whether --with-piddir or --without-piddir was given.
688 if test "${with_piddir+set}" = set; then
689 withval="$with_piddir"
693 # Just in case anybody calls it without argument
695 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
704 #################################################
705 # set SWAT directory location
706 # Check whether --with-swatdir or --without-swatdir was given.
707 if test "${with_swatdir+set}" = set; then
708 withval="$with_swatdir"
712 # Just in case anybody does it
714 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
723 #################################################
724 # set configuration directory location
725 # Check whether --with-configdir or --without-configdir was given.
726 if test "${with_configdir+set}" = set; then
727 withval="$with_configdir"
731 # Just in case anybody does it
733 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
742 #################################################
743 # set log directory location
744 # Check whether --with-logfilebase or --without-logfilebase was given.
745 if test "${with_logfilebase+set}" = set; then
746 withval="$with_logfilebase"
750 # Just in case anybody does it
752 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
755 logfilebase="$withval"
789 # compile with optimization and without debugging by default
790 CFLAGS="-O ${CFLAGS}"
792 # Check whether --enable-debug or --disable-debug was given.
793 if test "${enable_debug+set}" = set; then
794 enableval="$enable_debug"
795 if eval "test x$enable_debug = xyes"; then
796 CFLAGS="${CFLAGS} -g"
801 # Check whether --enable-developer or --disable-developer was given.
802 if test "${enable_developer+set}" = set; then
803 enableval="$enable_developer"
804 if eval "test x$enable_developer = xyes"; then
805 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
810 # Check whether --enable-krb5developer or --disable-krb5developer was given.
811 if test "${enable_krb5developer+set}" = set; then
812 enableval="$enable_krb5developer"
813 if eval "test x$enable_krb5developer = xyes"; then
814 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
819 # Check whether --enable-dmalloc or --disable-dmalloc was given.
820 if test "${enable_dmalloc+set}" = set; then
821 enableval="$enable_dmalloc"
826 if test "x$enable_dmalloc" = xyes
828 cat >> confdefs.h <<\EOF
829 #define ENABLE_DMALLOC 1
832 cat >> confdefs.h <<\EOF
833 #define DMALLOC_FUNC_CHECK 1
836 LIBS="$LIBS -ldmalloc"
839 # Extract the first word of "gcc", so it can be a program name with args.
840 set dummy gcc; ac_word=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 if test -n "$CC"; then
847 ac_cv_prog_CC="$CC" # Let the user override the test.
849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
851 for ac_dir in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir=.
853 if test -f $ac_dir/$ac_word; then
862 if test -n "$CC"; then
863 echo "$ac_t""$CC" 1>&6
865 echo "$ac_t""no" 1>&6
868 if test -z "$CC"; then
869 # Extract the first word of "cc", so it can be a program name with args.
870 set dummy cc; ac_word=$2
871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
872 echo "configure:873: checking for $ac_word" >&5
873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 if test -n "$CC"; then
877 ac_cv_prog_CC="$CC" # Let the user override the test.
879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
882 for ac_dir in $ac_dummy; do
883 test -z "$ac_dir" && ac_dir=.
884 if test -f $ac_dir/$ac_word; then
885 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
894 if test $ac_prog_rejected = yes; then
895 # We found a bogon in the path, so make sure we never use it.
896 set dummy $ac_cv_prog_CC
898 if test $# -gt 0; then
899 # We chose a different compiler from the bogus one.
900 # However, it has the same basename, so the bogon will be chosen
901 # first if we set CC to just the basename; use the full file name.
903 set dummy "$ac_dir/$ac_word" "$@"
911 if test -n "$CC"; then
912 echo "$ac_t""$CC" 1>&6
914 echo "$ac_t""no" 1>&6
917 if test -z "$CC"; then
920 # Extract the first word of "cl", so it can be a program name with args.
921 set dummy cl; ac_word=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 if test -n "$CC"; then
928 ac_cv_prog_CC="$CC" # Let the user override the test.
930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
932 for ac_dir in $ac_dummy; do
933 test -z "$ac_dir" && ac_dir=.
934 if test -f $ac_dir/$ac_word; then
943 if test -n "$CC"; then
944 echo "$ac_t""$CC" 1>&6
946 echo "$ac_t""no" 1>&6
951 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
954 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
955 echo "configure:956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
959 ac_cpp='$CPP $CPPFLAGS'
960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
962 cross_compiling=$ac_cv_prog_cc_cross
964 cat > conftest.$ac_ext << EOF
966 #line 967 "configure"
967 #include "confdefs.h"
971 if { (eval echo configure:972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
972 ac_cv_prog_cc_works=yes
973 # If we can't run a trivial program, we are probably using a cross compiler.
974 if (./conftest; exit) 2>/dev/null; then
975 ac_cv_prog_cc_cross=no
977 ac_cv_prog_cc_cross=yes
980 echo "configure: failed program was:" >&5
981 cat conftest.$ac_ext >&5
982 ac_cv_prog_cc_works=no
986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
987 ac_cpp='$CPP $CPPFLAGS'
988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
990 cross_compiling=$ac_cv_prog_cc_cross
992 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
993 if test $ac_cv_prog_cc_works = no; then
994 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
996 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
997 echo "configure:998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
998 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
999 cross_compiling=$ac_cv_prog_cc_cross
1001 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether we are using GNU C" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 cat > conftest.c <<EOF
1011 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1018 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1020 if test $ac_cv_prog_gcc = yes; then
1026 ac_test_CFLAGS="${CFLAGS+set}"
1027 ac_save_CFLAGS="$CFLAGS"
1029 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1030 echo "configure:1031: checking whether ${CC-cc} accepts -g" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 echo 'void f(){}' > conftest.c
1035 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1044 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1045 if test "$ac_test_CFLAGS" = set; then
1046 CFLAGS="$ac_save_CFLAGS"
1047 elif test $ac_cv_prog_cc_g = yes; then
1048 if test "$GCC" = yes; then
1054 if test "$GCC" = yes; then
1062 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1063 if test -f $ac_dir/install-sh; then
1065 ac_install_sh="$ac_aux_dir/install-sh -c"
1067 elif test -f $ac_dir/install.sh; then
1069 ac_install_sh="$ac_aux_dir/install.sh -c"
1073 if test -z "$ac_aux_dir"; then
1074 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1076 ac_config_guess=$ac_aux_dir/config.guess
1077 ac_config_sub=$ac_aux_dir/config.sub
1078 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1080 # Find a good install program. We prefer a C program (faster),
1081 # so one script is as good as another. But avoid the broken or
1082 # incompatible versions:
1083 # SysV /etc/install, /usr/sbin/install
1084 # SunOS /usr/etc/install
1085 # IRIX /sbin/install
1087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1090 # ./install, which can be erroneously created by make from ./install.sh.
1091 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1092 echo "configure:1093: checking for a BSD compatible install" >&5
1093 if test -z "$INSTALL"; then
1094 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1098 for ac_dir in $PATH; do
1099 # Account for people who put trailing slashes in PATH elements.
1101 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1103 # OSF1 and SCO ODT 3.0 have their own names for install.
1104 # Don't use installbsd from OSF since it installs stuff as root
1106 for ac_prog in ginstall scoinst install; do
1107 if test -f $ac_dir/$ac_prog; then
1108 if test $ac_prog = install &&
1109 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1110 # AIX install. It has an incompatible calling convention.
1113 ac_cv_path_install="$ac_dir/$ac_prog -c"
1124 if test "${ac_cv_path_install+set}" = set; then
1125 INSTALL="$ac_cv_path_install"
1127 # As a last resort, use the slow shell script. We don't cache a
1128 # path for INSTALL within a source directory, because that will
1129 # break other packages using the cache if that directory is
1130 # removed, or if the path is relative.
1131 INSTALL="$ac_install_sh"
1134 echo "$ac_t""$INSTALL" 1>&6
1136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1137 # It thinks the first close brace ends the variable substitution.
1138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1144 for ac_prog in gawk mawk nawk awk
1146 # Extract the first word of "$ac_prog", so it can be a program name with args.
1147 set dummy $ac_prog; ac_word=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$AWK"; then
1154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1158 for ac_dir in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_AWK="$ac_prog"
1168 AWK="$ac_cv_prog_AWK"
1169 if test -n "$AWK"; then
1170 echo "$ac_t""$AWK" 1>&6
1172 echo "$ac_t""no" 1>&6
1175 test -n "$AWK" && break
1180 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1181 echo "configure:1182: checking if the linker ($LD) is GNU ld" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1186 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1187 ac_cv_prog_gnu_ld=yes
1189 ac_cv_prog_gnu_ld=no
1193 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1196 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1197 echo "configure:1198: checking for POSIXized ISC" >&5
1198 if test -d /etc/conf/kconfig.d &&
1199 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1201 echo "$ac_t""yes" 1>&6
1202 ISC=yes # If later tests want to check for ISC.
1203 cat >> confdefs.h <<\EOF
1204 #define _POSIX_SOURCE 1
1207 if test "$GCC" = yes; then
1213 echo "$ac_t""no" 1>&6
1218 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1219 echo "configure:1220: checking for Cygwin environment" >&5
1220 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 cat > conftest.$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1230 #define __CYGWIN__ __CYGWIN32__
1235 if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1248 echo "$ac_t""$ac_cv_cygwin" 1>&6
1250 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1251 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1252 echo "configure:1253: checking for mingw32 environment" >&5
1253 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 cat > conftest.$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1264 if { (eval echo configure:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1277 echo "$ac_t""$ac_cv_mingw32" 1>&6
1279 test "$ac_cv_mingw32" = yes && MINGW32=yes
1282 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1283 echo "configure:1284: checking for executable suffix" >&5
1284 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1291 echo 'int main () { return 0; }' > conftest.$ac_ext
1293 if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1294 for file in conftest.*; do
1296 *.c | *.o | *.obj) ;;
1297 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1301 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1304 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1309 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1310 echo "$ac_t""${ac_cv_exeext}" 1>&6
1314 if test "x$CC" != xcc; then
1315 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1316 echo "configure:1317: checking whether $CC and cc understand -c and -o together" >&5
1318 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether cc understands -c and -o together" >&5
1321 set dummy $CC; ac_cc="`echo $2 |
1322 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1323 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 echo 'foo(){}' > conftest.c
1327 # Make sure it works both with $CC and with simple cc.
1328 # We do the test twice because some compilers refuse to overwrite an
1329 # existing .o file with -o, though they will create one.
1330 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1331 if { (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1332 test -f conftest.o && { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1334 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1335 if test "x$CC" != xcc; then
1336 # Test first that cc exists at all.
1337 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1338 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1339 if { (eval echo configure:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1340 test -f conftest.o && { (eval echo configure:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1345 # cc exists but doesn't like -o.
1346 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1351 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1356 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1357 echo "$ac_t""yes" 1>&6
1359 echo "$ac_t""no" 1>&6
1360 cat >> confdefs.h <<\EOF
1361 #define NO_MINUS_C_MINUS_O 1
1366 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1373 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1374 echo "configure:1375: checking that the C compiler understands volatile" >&5
1375 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <sys/types.h>
1387 if { (eval echo configure:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1389 samba_cv_volatile=yes
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1394 samba_cv_volatile=no
1399 echo "$ac_t""$samba_cv_volatile" 1>&6
1400 if test x"$samba_cv_volatile" = x"yes"; then
1401 cat >> confdefs.h <<\EOF
1402 #define HAVE_VOLATILE 1
1409 # Do some error checking and defaulting for the host and target type.
1411 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1414 # 1. You are not allowed to specify --host, --target, and nonopt at the
1416 # 2. Host defaults to nonopt.
1417 # 3. If nonopt is not specified, then host defaults to the current host,
1418 # as determined by config.guess.
1419 # 4. Target and build default to nonopt.
1420 # 5. If nonopt is not specified, then target and build default to host.
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 case $host---$target---$nonopt in
1425 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1426 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1430 # Make sure we can run config.sub.
1431 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1432 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1435 echo $ac_n "checking host system type""... $ac_c" 1>&6
1436 echo "configure:1437: checking host system type" >&5
1439 case "$host_alias" in
1443 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1444 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1446 *) host_alias=$nonopt ;;
1450 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1451 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$ac_t""$host" 1>&6
1456 echo $ac_n "checking target system type""... $ac_c" 1>&6
1457 echo "configure:1458: checking target system type" >&5
1459 target_alias=$target
1460 case "$target_alias" in
1463 NONE) target_alias=$host_alias ;;
1464 *) target_alias=$nonopt ;;
1468 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1469 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 echo "$ac_t""$target" 1>&6
1474 echo $ac_n "checking build system type""... $ac_c" 1>&6
1475 echo "configure:1476: checking build system type" >&5
1478 case "$build_alias" in
1481 NONE) build_alias=$host_alias ;;
1482 *) build_alias=$nonopt ;;
1486 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1487 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$ac_t""$build" 1>&6
1492 test "$host_alias" != "$target_alias" &&
1493 test "$program_prefix$program_suffix$program_transform_name" = \
1495 program_prefix=${target_alias}-
1499 *irix6*) cat >> confdefs.h <<\EOF
1500 #include <standards.h>
1508 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1509 echo "configure:1510: checking config.cache system type" >&5
1510 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1511 test x"$ac_cv_host_system_type" != x"$host"; } ||
1512 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1513 test x"$ac_cv_build_system_type" != x"$build"; } ||
1514 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1515 test x"$ac_cv_target_system_type" != x"$target"; }; then
1516 echo "$ac_t""different" 1>&6
1517 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1519 echo "$ac_t""same" 1>&6
1521 ac_cv_host_system_type="$host"
1522 ac_cv_build_system_type="$build"
1523 ac_cv_target_system_type="$target"
1529 # Config CPPFLAG settings for strange OS's that must be set
1530 # before other tests.
1533 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1536 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1537 echo "configure:1538: checking whether ${CC-cc} accepts -Ae" >&5
1538 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 echo 'void f(){}' > conftest.c
1542 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1543 ac_cv_prog_cc_Ae=yes
1551 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1552 # mmap on HPUX is completely broken...
1553 cat >> confdefs.h <<\EOF
1554 #define MMAP_BLACKLIST 1
1557 if test $ac_cv_prog_cc_Ae = yes; then
1558 CPPFLAGS="$CPPFLAGS -Ae"
1561 # Defines needed for HPUX support.
1562 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1563 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1567 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1568 cat >> confdefs.h <<\EOF
1569 #define USE_BOTH_CRYPT_CALLS 1
1572 cat >> confdefs.h <<\EOF
1573 #define _HPUX_SOURCE 1
1576 cat >> confdefs.h <<\EOF
1577 #define _POSIX_SOURCE 1
1580 cat >> confdefs.h <<\EOF
1581 #define _ALIGNMENT_REQUIRED 1
1584 cat >> confdefs.h <<\EOF
1585 #define _MAX_ALIGNMENT 4
1590 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1591 cat >> confdefs.h <<\EOF
1592 #define USE_BOTH_CRYPT_CALLS 1
1595 cat >> confdefs.h <<\EOF
1596 #define _HPUX_SOURCE 1
1599 cat >> confdefs.h <<\EOF
1600 #define _POSIX_SOURCE 1
1603 cat >> confdefs.h <<\EOF
1604 #define _LARGEFILE64_SOURCE 1
1607 cat >> confdefs.h <<\EOF
1608 #define _ALIGNMENT_REQUIRED 1
1611 cat >> confdefs.h <<\EOF
1612 #define _MAX_ALIGNMENT 4
1621 # CRAY Unicos has broken const handling
1623 echo "$ac_t""disabling const" 1>&6
1624 CPPFLAGS="$CPPFLAGS -Dconst="
1628 # AIX4.x doesn't even admit to having large
1629 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1632 echo "$ac_t""enabling large file support" 1>&6
1633 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1634 cat >> confdefs.h <<\EOF
1635 #define _LARGE_FILES 1
1640 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1641 # to the existance of large files..
1642 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1643 # recommendations on large file support, however it makes the
1644 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1645 # recommendation makes the compile fail on gcc2.7. JRA.
1649 5.0*|5.1*|5.2*|5.3*|5.5*)
1650 echo "$ac_t""no large file support" 1>&6
1653 echo "$ac_t""enabling large file support" 1>&6
1654 if test "$ac_cv_prog_gcc" = yes; then
1655 ${CC-cc} -v >conftest.c 2>&1
1656 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1658 case "$ac_cv_gcc_compiler_version_number" in
1659 *"gcc version 2.6"*|*"gcc version 2.7"*)
1660 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1661 cat >> confdefs.h <<\EOF
1662 #define _LARGEFILE64_SOURCE 1
1667 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1668 cat >> confdefs.h <<\EOF
1669 #define _LARGEFILE64_SOURCE 1
1672 cat >> confdefs.h <<\EOF
1673 #define _FILE_OFFSET_BITS 64
1679 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1680 cat >> confdefs.h <<\EOF
1681 #define _LARGEFILE64_SOURCE 1
1684 cat >> confdefs.h <<\EOF
1685 #define _FILE_OFFSET_BITS 64
1693 # Tests needed for SINIX large file support.
1696 if test $host = mips-sni-sysv4 ; then
1697 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1698 echo "configure:1699: checking for LFS support" >&5
1699 old_CPPFLAGS="$CPPFLAGS"
1700 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1701 if test "$cross_compiling" = yes; then
1702 SINIX_LFS_SUPPORT=cross
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1710 #if _LFS64_LARGEFILE == 1
1717 if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1719 SINIX_LFS_SUPPORT=yes
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1724 SINIX_LFS_SUPPORT=no
1729 CPPFLAGS="$old_CPPFLAGS"
1730 if test x$SINIX_LFS_SUPPORT = xyes ; then
1731 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1732 cat >> confdefs.h <<\EOF
1733 #define _LARGEFILE64_SOURCE 1
1736 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1737 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1738 LIBS="`getconf LFS64_LIBS` $LIBS"
1740 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1744 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1747 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1748 echo "configure:1749: checking for LFS support" >&5
1749 old_CPPFLAGS="$CPPFLAGS"
1750 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1751 if test "$cross_compiling" = yes; then
1752 LINUX_LFS_SUPPORT=cross
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1759 #include <sys/utsname.h>
1761 #if _LFS64_LARGEFILE == 1
1766 /* Ensure this is glibc 2.2 or higher */
1767 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1768 int libc_major = __GLIBC__;
1769 int libc_minor = __GLIBC_MINOR__;
1777 /* Ensure this is kernel 2.4 or higher */
1780 release = uts.release;
1781 major = atoi(strsep(&release, "."));
1782 minor = atoi(strsep(&release, "."));
1784 if (major > 2 || (major == 2 && minor > 3))
1793 if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1795 LINUX_LFS_SUPPORT=yes
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1800 LINUX_LFS_SUPPORT=no
1805 CPPFLAGS="$old_CPPFLAGS"
1806 if test x$LINUX_LFS_SUPPORT = xyes ; then
1807 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1808 cat >> confdefs.h <<\EOF
1809 #define _LARGEFILE64_SOURCE 1
1812 cat >> confdefs.h <<\EOF
1813 #define _FILE_OFFSET_BITS 64
1816 cat >> confdefs.h <<\EOF
1817 #define _GNU_SOURCE 1
1821 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1825 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1826 echo "configure:1827: checking for LFS support" >&5
1827 old_CPPFLAGS="$CPPFLAGS"
1828 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1829 if test "$cross_compiling" = yes; then
1830 GLIBC_LFS_SUPPORT=cross
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1838 #if _LFS64_LARGEFILE == 1
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1847 GLIBC_LFS_SUPPORT=yes
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 GLIBC_LFS_SUPPORT=no
1857 CPPFLAGS="$old_CPPFLAGS"
1858 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1859 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1860 cat >> confdefs.h <<\EOF
1861 #define _LARGEFILE64_SOURCE 1
1864 cat >> confdefs.h <<\EOF
1865 #define _GNU_SOURCE 1
1869 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1874 echo $ac_n "checking for inline""... $ac_c" 1>&6
1875 echo "configure:1876: checking for inline" >&5
1876 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1880 for ac_kw in inline __inline__ __inline; do
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1889 if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1891 ac_cv_c_inline=$ac_kw; break
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1901 echo "$ac_t""$ac_cv_c_inline" 1>&6
1902 case "$ac_cv_c_inline" in
1904 no) cat >> confdefs.h <<\EOF
1908 *) cat >> confdefs.h <<EOF
1909 #define inline $ac_cv_c_inline
1914 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1915 echo "configure:1916: checking how to run the C preprocessor" >&5
1916 # On Suns, sometimes $CPP names a directory.
1917 if test -n "$CPP" && test -d "$CPP"; then
1920 if test -z "$CPP"; then
1921 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 # This must be in double quotes, not single quotes, because CPP may get
1925 # substituted into the Makefile and "${CC-cc}" will confuse make.
1927 # On the NeXT, cc -E runs the code through the compiler's parser,
1928 # not just through cpp.
1929 cat > conftest.$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1936 { (eval echo configure:1937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1938 if test -z "$ac_err"; then
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1945 CPP="${CC-cc} -E -traditional-cpp"
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1955 if test -z "$ac_err"; then
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1962 CPP="${CC-cc} -nologo -E"
1963 cat > conftest.$ac_ext <<EOF
1964 #line 1965 "configure"
1965 #include "confdefs.h"
1969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1972 if test -z "$ac_err"; then
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1986 ac_cv_prog_CPP="$CPP"
1988 CPP="$ac_cv_prog_CPP"
1990 ac_cv_prog_CPP="$CPP"
1992 echo "$ac_t""$CPP" 1>&6
1994 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1995 echo "configure:1996: checking for ANSI C header files" >&5
1996 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2012 ac_cv_header_stdc=yes
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 ac_cv_header_stdc=no
2022 if test $ac_cv_header_stdc = yes; then
2023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2030 egrep "memchr" >/dev/null 2>&1; then
2034 ac_cv_header_stdc=no
2040 if test $ac_cv_header_stdc = yes; then
2041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2048 egrep "free" >/dev/null 2>&1; then
2052 ac_cv_header_stdc=no
2058 if test $ac_cv_header_stdc = yes; then
2059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2060 if test "$cross_compiling" = yes; then
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2067 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2068 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2070 int main () { int i; for (i = 0; i < 256; i++)
2071 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 ac_cv_header_stdc=no
2090 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2091 if test $ac_cv_header_stdc = yes; then
2092 cat >> confdefs.h <<\EOF
2093 #define STDC_HEADERS 1
2099 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2102 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_hdr that defines DIR" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2116 if { (eval echo configure:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2118 eval "ac_cv_header_dirent_$ac_safe=yes"
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2123 eval "ac_cv_header_dirent_$ac_safe=no"
2127 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2130 cat >> confdefs.h <<EOF
2131 #define $ac_tr_hdr 1
2133 ac_header_dirent=$ac_hdr; break
2135 echo "$ac_t""no" 1>&6
2138 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2139 if test $ac_header_dirent = dirent.h; then
2140 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2141 echo "configure:2142: checking for opendir in -ldir" >&5
2142 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 ac_save_LIBS="$LIBS"
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 /* Override any gcc2 internal prototype to avoid an error. */
2152 /* We use char because int might match the return type of a gcc2
2153 builtin and then its argument prototype would still apply. */
2160 if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2162 eval "ac_cv_lib_$ac_lib_var=yes"
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 eval "ac_cv_lib_$ac_lib_var=no"
2170 LIBS="$ac_save_LIBS"
2173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2177 echo "$ac_t""no" 1>&6
2181 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2182 echo "configure:2183: checking for opendir in -lx" >&5
2183 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 ac_save_LIBS="$LIBS"
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 /* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2201 if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2203 eval "ac_cv_lib_$ac_lib_var=yes"
2205 echo "configure: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2208 eval "ac_cv_lib_$ac_lib_var=no"
2211 LIBS="$ac_save_LIBS"
2214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2215 echo "$ac_t""yes" 1>&6
2218 echo "$ac_t""no" 1>&6
2223 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2224 echo "configure:2225: checking whether time.h and sys/time.h may both be included" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 #include <sys/types.h>
2232 #include <sys/time.h>
2238 if { (eval echo configure:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2240 ac_cv_header_time=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 ac_cv_header_time=no
2250 echo "$ac_t""$ac_cv_header_time" 1>&6
2251 if test $ac_cv_header_time = yes; then
2252 cat >> confdefs.h <<\EOF
2253 #define TIME_WITH_SYS_TIME 1
2258 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2259 echo "configure:2260: checking for sys/wait.h that is POSIX.1 compatible" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2267 #include <sys/wait.h>
2269 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2272 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2280 if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282 ac_cv_header_sys_wait_h=yes
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2287 ac_cv_header_sys_wait_h=no
2292 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2293 if test $ac_cv_header_sys_wait_h = yes; then
2294 cat >> confdefs.h <<\EOF
2295 #define HAVE_SYS_WAIT_H 1
2300 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2318 eval "ac_cv_header_$ac_safe=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_header_$ac_safe=no"
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h <<EOF
2332 #define $ac_tr_hdr 1
2336 echo "$ac_t""no" 1>&6
2340 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h <<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2380 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2420 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2460 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
2462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2478 eval "ac_cv_header_$ac_safe=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 eval "ac_cv_header_$ac_safe=no"
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h <<EOF
2492 #define $ac_tr_hdr 1
2496 echo "$ac_t""no" 1>&6
2500 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2540 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h <<EOF
2572 #define $ac_tr_hdr 1
2576 echo "$ac_t""no" 1>&6
2580 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2584 echo "configure:2585: checking for $ac_hdr" >&5
2585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2594 { (eval echo configure:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2596 if test -z "$ac_err"; then
2598 eval "ac_cv_header_$ac_safe=yes"
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2604 eval "ac_cv_header_$ac_safe=no"
2608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2611 cat >> confdefs.h <<EOF
2612 #define $ac_tr_hdr 1
2616 echo "$ac_t""no" 1>&6
2620 for ac_hdr in sys/syslog.h syslog.h
2622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_hdr" >&5
2625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2634 { (eval echo configure:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2636 if test -z "$ac_err"; then
2638 eval "ac_cv_header_$ac_safe=yes"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 eval "ac_cv_header_$ac_safe=no"
2648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2651 cat >> confdefs.h <<EOF
2652 #define $ac_tr_hdr 1
2656 echo "$ac_t""no" 1>&6
2662 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2663 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2675 if { (eval echo configure:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2677 ac_cv_header_shadow_h=yes
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2682 ac_cv_header_shadow_h=no
2685 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2686 cat >> confdefs.h <<\EOF
2687 #define HAVE_SHADOW_H 1
2693 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2711 eval "ac_cv_header_$ac_safe=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 eval "ac_cv_header_$ac_safe=no"
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h <<EOF
2725 #define $ac_tr_hdr 1
2729 echo "$ac_t""no" 1>&6
2733 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_hdr" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2751 eval "ac_cv_header_$ac_safe=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "ac_cv_header_$ac_safe=no"
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2764 cat >> confdefs.h <<EOF
2765 #define $ac_tr_hdr 1
2769 echo "$ac_t""no" 1>&6
2773 for ac_hdr in stropts.h poll.h
2775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_hdr" >&5
2778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2789 if test -z "$ac_err"; then
2791 eval "ac_cv_header_$ac_safe=yes"
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2797 eval "ac_cv_header_$ac_safe=no"
2801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2804 cat >> confdefs.h <<EOF
2805 #define $ac_tr_hdr 1
2809 echo "$ac_t""no" 1>&6
2813 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_hdr" >&5
2818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2827 { (eval echo configure:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2829 if test -z "$ac_err"; then
2831 eval "ac_cv_header_$ac_safe=yes"
2834 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2837 eval "ac_cv_header_$ac_safe=no"
2841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2844 cat >> confdefs.h <<EOF
2845 #define $ac_tr_hdr 1
2849 echo "$ac_t""no" 1>&6
2853 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_hdr" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2871 eval "ac_cv_header_$ac_safe=yes"
2874 echo "configure: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2877 eval "ac_cv_header_$ac_safe=no"
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2884 cat >> confdefs.h <<EOF
2885 #define $ac_tr_hdr 1
2889 echo "$ac_t""no" 1>&6
2894 # For experimental utmp support (lastlog on some BSD-like systems)
2895 for ac_hdr in utmp.h utmpx.h lastlog.h
2897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_hdr" >&5
2900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2909 { (eval echo configure:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2911 if test -z "$ac_err"; then
2913 eval "ac_cv_header_$ac_safe=yes"
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2919 eval "ac_cv_header_$ac_safe=no"
2923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2926 cat >> confdefs.h <<EOF
2927 #define $ac_tr_hdr 1
2931 echo "$ac_t""no" 1>&6
2936 # For quotas on Veritas VxFS filesystems
2937 for ac_hdr in sys/fs/vx_quota.h
2939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2941 echo "configure:2942: checking for $ac_hdr" >&5
2942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2951 { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2953 if test -z "$ac_err"; then
2955 eval "ac_cv_header_$ac_safe=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 eval "ac_cv_header_$ac_safe=no"
2965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2968 cat >> confdefs.h <<EOF
2969 #define $ac_tr_hdr 1
2973 echo "$ac_t""no" 1>&6
2978 # For quotas on Linux XFS filesystems
2979 for ac_hdr in linux/xqm.h
2981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_hdr" >&5
2984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2993 { (eval echo configure:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2995 if test -z "$ac_err"; then
2997 eval "ac_cv_header_$ac_safe=yes"
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3003 eval "ac_cv_header_$ac_safe=no"
3007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3010 cat >> confdefs.h <<EOF
3011 #define $ac_tr_hdr 1
3015 echo "$ac_t""no" 1>&6
3019 for ac_hdr in xfs/xqm.h
3021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_hdr" >&5
3024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3033 { (eval echo configure:3034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3035 if test -z "$ac_err"; then
3037 eval "ac_cv_header_$ac_safe=yes"
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3043 eval "ac_cv_header_$ac_safe=no"
3047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3048 echo "$ac_t""yes" 1>&6
3049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3050 cat >> confdefs.h <<EOF
3051 #define $ac_tr_hdr 1
3055 echo "$ac_t""no" 1>&6
3060 echo $ac_n "checking size of int""... $ac_c" 1>&6
3061 echo "configure:3062: checking size of int" >&5
3062 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 if test "$cross_compiling" = yes; then
3066 ac_cv_sizeof_int=cross
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3074 FILE *f=fopen("conftestval", "w");
3076 fprintf(f, "%d\n", sizeof(int));
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3082 ac_cv_sizeof_int=`cat conftestval`
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3093 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3094 cat >> confdefs.h <<EOF
3095 #define SIZEOF_INT $ac_cv_sizeof_int
3099 echo $ac_n "checking size of long""... $ac_c" 1>&6
3100 echo "configure:3101: checking size of long" >&5
3101 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 if test "$cross_compiling" = yes; then
3105 ac_cv_sizeof_long=cross
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3113 FILE *f=fopen("conftestval", "w");
3115 fprintf(f, "%d\n", sizeof(long));
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3121 ac_cv_sizeof_long=`cat conftestval`
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3132 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3133 cat >> confdefs.h <<EOF
3134 #define SIZEOF_LONG $ac_cv_sizeof_long
3138 echo $ac_n "checking size of short""... $ac_c" 1>&6
3139 echo "configure:3140: checking size of short" >&5
3140 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 if test "$cross_compiling" = yes; then
3144 ac_cv_sizeof_short=cross
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3152 FILE *f=fopen("conftestval", "w");
3154 fprintf(f, "%d\n", sizeof(short));
3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3160 ac_cv_sizeof_short=`cat conftestval`
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3165 ac_cv_sizeof_short=0
3171 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3172 cat >> confdefs.h <<EOF
3173 #define SIZEOF_SHORT $ac_cv_sizeof_short
3178 echo $ac_n "checking for working const""... $ac_c" 1>&6
3179 echo "configure:3180: checking for working const" >&5
3180 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3189 /* Ultrix mips cc rejects this. */
3190 typedef int charset[2]; const charset x;
3191 /* SunOS 4.1.1 cc rejects this. */
3192 char const *const *ccp;
3194 /* NEC SVR4.0.2 mips cc rejects this. */
3195 struct point {int x, y;};
3196 static struct point const zero = {0,0};
3197 /* AIX XL C 1.02.0.0 rejects this.
3198 It does not let you subtract one const X* pointer from another in an arm
3199 of an if-expression whose if-part is not a constant expression */
3200 const char *g = "string";
3201 ccp = &g + (g ? g-g : 0);
3202 /* HPUX 7.0 cc rejects these. */
3205 ccp = (char const *const *) p;
3206 { /* SCO 3.2v4 cc rejects this. */
3208 char const *s = 0 ? (char *) 0 : (char const *) 0;
3212 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3214 const int *foo = &x[0];
3217 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3218 typedef const int *iptr;
3222 { /* AIX XL C 1.02.0.0 rejects this saying
3223 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3224 struct s { int j; const int *ap[3]; };
3225 struct s *b; b->j = 5;
3227 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3233 if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3245 echo "$ac_t""$ac_cv_c_const" 1>&6
3246 if test $ac_cv_c_const = no; then
3247 cat >> confdefs.h <<\EOF
3253 echo $ac_n "checking for inline""... $ac_c" 1>&6
3254 echo "configure:3255: checking for inline" >&5
3255 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3259 for ac_kw in inline __inline__ __inline; do
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270 ac_cv_c_inline=$ac_kw; break
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3280 echo "$ac_t""$ac_cv_c_inline" 1>&6
3281 case "$ac_cv_c_inline" in
3283 no) cat >> confdefs.h <<\EOF
3287 *) cat >> confdefs.h <<EOF
3288 #define inline $ac_cv_c_inline
3293 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3294 echo "configure:3295: checking whether byte ordering is bigendian" >&5
3295 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 ac_cv_c_bigendian=unknown
3299 # See if sys/param.h defines the BYTE_ORDER macro.
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3304 #include <sys/param.h>
3307 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3312 if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314 # It does; now see whether it defined to BIG_ENDIAN or not.
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <sys/types.h>
3319 #include <sys/param.h>
3322 #if BYTE_ORDER != BIG_ENDIAN
3327 if { (eval echo configure:3328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3329 ac_cv_c_bigendian=yes
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3334 ac_cv_c_bigendian=no
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3342 if test $ac_cv_c_bigendian = unknown; then
3343 if test "$cross_compiling" = yes; then
3344 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3350 /* Are we little or big endian? From Harbison&Steele. */
3354 char c[sizeof (long)];
3357 exit (u.c[sizeof (long) - 1] == 1);
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3362 ac_cv_c_bigendian=no
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 ac_cv_c_bigendian=yes
3375 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3376 if test $ac_cv_c_bigendian = yes; then
3377 cat >> confdefs.h <<\EOF
3378 #define WORDS_BIGENDIAN 1
3383 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3384 echo "configure:3385: checking whether char is unsigned" >&5
3385 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 if test "$GCC" = yes; then
3389 # GCC predefines this symbol on systems where it applies.
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 #ifdef __CHAR_UNSIGNED__
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399 egrep "yes" >/dev/null 2>&1; then
3401 ac_cv_c_char_unsigned=yes
3404 ac_cv_c_char_unsigned=no
3409 if test "$cross_compiling" = yes; then
3410 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3416 #if !defined(__STDC__) || __STDC__ != 1
3420 volatile char c = 255; exit(c < 0);
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3425 ac_cv_c_char_unsigned=yes
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 ac_cv_c_char_unsigned=no
3438 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3439 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3440 cat >> confdefs.h <<\EOF
3441 #define __CHAR_UNSIGNED__ 1
3447 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3448 echo "configure:3449: checking return type of signal handlers" >&5
3449 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3461 extern "C" void (*signal (int, void (*)(int)))(int);
3463 void (*signal ()) ();
3470 if { (eval echo configure:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 ac_cv_type_signal=void
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3477 ac_cv_type_signal=int
3482 echo "$ac_t""$ac_cv_type_signal" 1>&6
3483 cat >> confdefs.h <<EOF
3484 #define RETSIGTYPE $ac_cv_type_signal
3488 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3489 echo "configure:3490: checking for uid_t in sys/types.h" >&5
3490 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 #include <sys/types.h>
3498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499 egrep "uid_t" >/dev/null 2>&1; then
3501 ac_cv_type_uid_t=yes
3510 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3511 if test $ac_cv_type_uid_t = no; then
3512 cat >> confdefs.h <<\EOF
3516 cat >> confdefs.h <<\EOF
3522 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3523 echo "configure:3524: checking for mode_t" >&5
3524 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #include <sys/types.h>
3536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3539 ac_cv_type_mode_t=yes
3542 ac_cv_type_mode_t=no
3547 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3548 if test $ac_cv_type_mode_t = no; then
3549 cat >> confdefs.h <<\EOF
3555 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3556 echo "configure:3557: checking for off_t" >&5
3557 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <sys/types.h>
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3572 ac_cv_type_off_t=yes
3580 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3581 if test $ac_cv_type_off_t = no; then
3582 cat >> confdefs.h <<\EOF
3588 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3589 echo "configure:3590: checking for size_t" >&5
3590 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3605 ac_cv_type_size_t=yes
3608 ac_cv_type_size_t=no
3613 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3614 if test $ac_cv_type_size_t = no; then
3615 cat >> confdefs.h <<\EOF
3616 #define size_t unsigned
3621 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3622 echo "configure:3623: checking for pid_t" >&5
3623 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <sys/types.h>
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3638 ac_cv_type_pid_t=yes
3646 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3647 if test $ac_cv_type_pid_t = no; then
3648 cat >> confdefs.h <<\EOF
3654 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3655 echo "configure:3656: checking for st_rdev in struct stat" >&5
3656 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3663 #include <sys/stat.h>
3665 struct stat s; s.st_rdev;
3668 if { (eval echo configure:3669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3670 ac_cv_struct_st_rdev=yes
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 ac_cv_struct_st_rdev=no
3680 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3681 if test $ac_cv_struct_st_rdev = yes; then
3682 cat >> confdefs.h <<\EOF
3683 #define HAVE_ST_RDEV 1
3688 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3689 echo "configure:3690: checking for d_off in dirent" >&5
3690 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3698 #include <sys/types.h>
3701 struct dirent d; d.d_off;
3704 if { (eval echo configure:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706 ac_cv_dirent_d_off=yes
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 ac_cv_dirent_d_off=no
3716 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3717 if test $ac_cv_dirent_d_off = yes; then
3718 cat >> confdefs.h <<\EOF
3719 #define HAVE_DIRENT_D_OFF 1
3724 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3725 echo "configure:3726: checking for ino_t" >&5
3726 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <sys/types.h>
3738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3741 ac_cv_type_ino_t=yes
3749 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3750 if test $ac_cv_type_ino_t = no; then
3751 cat >> confdefs.h <<\EOF
3752 #define ino_t unsigned
3757 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3758 echo "configure:3759: checking for loff_t" >&5
3759 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 #include <sys/types.h>
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3774 ac_cv_type_loff_t=yes
3777 ac_cv_type_loff_t=no
3782 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3783 if test $ac_cv_type_loff_t = no; then
3784 cat >> confdefs.h <<\EOF
3785 #define loff_t off_t
3790 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3791 echo "configure:3792: checking for offset_t" >&5
3792 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <sys/types.h>
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3807 ac_cv_type_offset_t=yes
3810 ac_cv_type_offset_t=no
3815 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3816 if test $ac_cv_type_offset_t = no; then
3817 cat >> confdefs.h <<\EOF
3818 #define offset_t loff_t
3823 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3824 echo "configure:3825: checking for ssize_t" >&5
3825 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <sys/types.h>
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3840 ac_cv_type_ssize_t=yes
3843 ac_cv_type_ssize_t=no
3848 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3849 if test $ac_cv_type_ssize_t = no; then
3850 cat >> confdefs.h <<\EOF
3856 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3857 echo "configure:3858: checking for wchar_t" >&5
3858 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 #include <sys/types.h>
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3873 ac_cv_type_wchar_t=yes
3876 ac_cv_type_wchar_t=no
3881 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3882 if test $ac_cv_type_wchar_t = no; then
3883 cat >> confdefs.h <<\EOF
3884 #define wchar_t unsigned short
3890 ############################################
3891 # for cups support we need libcups, and a handful of header files
3893 # Check whether --enable-cups or --disable-cups was given.
3894 if test "${enable_cups+set}" = set; then
3895 enableval="$enable_cups"
3900 if test x$enable_cups != xno; then
3901 # Extract the first word of "cups-config", so it can be a program name with args.
3902 set dummy cups-config; ac_word=$2
3903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3904 echo "configure:3905: checking for $ac_word" >&5
3905 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 case "$CUPS_CONFIG" in
3910 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3913 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3918 for ac_dir in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/$ac_word; then
3921 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3929 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3930 if test -n "$CUPS_CONFIG"; then
3931 echo "$ac_t""$CUPS_CONFIG" 1>&6
3933 echo "$ac_t""no" 1>&6
3937 if test "x$CUPS_CONFIG" != x; then
3938 cat >> confdefs.h <<\EOF
3942 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3943 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3944 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3948 ############################################
3949 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
3950 for ac_func in dlopen
3952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_func" >&5
3954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3960 /* System header to define __stub macros and hopefully few prototypes,
3961 which can conflict with char $ac_func(); below. */
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3970 /* The GNU C library defines this for functions which it implements
3971 to always fail with ENOSYS. Some functions are actually named
3972 something starting with __ and the normal name is an alias. */
3973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3981 if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3983 eval "ac_cv_func_$ac_func=yes"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3988 eval "ac_cv_func_$ac_func=no"
3993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3994 echo "$ac_t""yes" 1>&6
3995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3996 cat >> confdefs.h <<EOF
3997 #define $ac_tr_func 1
4001 echo "$ac_t""no" 1>&6
4005 if test x"$ac_cv_func_dlopen" = x"no"; then
4006 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4007 echo "configure:4008: checking for dlopen in -ldl" >&5
4008 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 ac_save_LIBS="$LIBS"
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4028 eval "ac_cv_lib_$ac_lib_var=yes"
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 eval "ac_cv_lib_$ac_lib_var=no"
4036 LIBS="$ac_save_LIBS"
4039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4042 cat >> confdefs.h <<\EOF
4043 #define HAVE_DLOPEN 1
4047 echo "$ac_t""no" 1>&6
4051 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4053 ############################################
4054 # check if the compiler can do immediate structures
4055 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4056 echo "configure:4057: checking for immediate structures" >&5
4057 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4068 typedef struct {unsigned x;} FOOBAR;
4069 #define X_FOOBAR(x) ((FOOBAR) { x })
4070 #define FOO_ONE X_FOOBAR(1)
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4082 samba_cv_immediate_structures=yes
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4087 samba_cv_immediate_structures=no
4092 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4093 if test x"$samba_cv_immediate_structures" = x"yes"; then
4094 cat >> confdefs.h <<\EOF
4095 #define HAVE_IMMEDIATE_STRUCTURES 1
4100 ############################################
4101 # check for unix domain sockets
4102 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4103 echo "configure:4104: checking for unix domain sockets" >&5
4104 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4112 #include <sys/types.h>
4115 #include <sys/socket.h>
4119 struct sockaddr_un sunaddr;
4120 sunaddr.sun_family = AF_UNIX;
4124 if { (eval echo configure:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4126 samba_cv_unixsocket=yes
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 samba_cv_unixsocket=no
4136 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4137 if test x"$samba_cv_unixsocket" = x"yes"; then
4138 cat >> confdefs.h <<\EOF
4139 #define HAVE_UNIXSOCKET 1
4145 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4146 echo "configure:4147: checking for socklen_t type" >&5
4147 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4155 #include <sys/types.h>
4160 #include <sys/socket.h>
4165 if { (eval echo configure:4166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4167 samba_cv_socklen_t=yes
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4172 samba_cv_socklen_t=no
4177 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4178 if test x"$samba_cv_socklen_t" = x"yes"; then
4179 cat >> confdefs.h <<\EOF
4180 #define HAVE_SOCKLEN_T_TYPE 1
4185 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4186 echo "configure:4187: checking for sig_atomic_t type" >&5
4187 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4195 #include <sys/types.h>
4205 if { (eval echo configure:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4207 samba_cv_sig_atomic_t=yes
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4212 samba_cv_sig_atomic_t=no
4217 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4218 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4219 cat >> confdefs.h <<\EOF
4220 #define HAVE_SIG_ATOMIC_T_TYPE 1
4225 # stupid headers have the functions but no declaration. grrrr.
4227 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4228 echo "configure:4229: checking for errno declaration" >&5
4229 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4241 if { (eval echo configure:4242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4243 ac_cv_have_errno_decl=yes
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 ac_cv_have_errno_decl=no
4253 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4254 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4255 cat >> confdefs.h <<\EOF
4256 #define HAVE_ERRNO_DECL 1
4262 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4263 echo "configure:4264: checking for setresuid declaration" >&5
4264 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4268 cat > conftest.$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4273 int i = (int)setresuid
4276 if { (eval echo configure:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4278 ac_cv_have_setresuid_decl=yes
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 ac_cv_have_setresuid_decl=no
4288 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4289 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4290 cat >> confdefs.h <<\EOF
4291 #define HAVE_SETRESUID_DECL 1
4297 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4298 echo "configure:4299: checking for setresgid declaration" >&5
4299 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4308 int i = (int)setresgid
4311 if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4313 ac_cv_have_setresgid_decl=yes
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 ac_cv_have_setresgid_decl=no
4323 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4324 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4325 cat >> confdefs.h <<\EOF
4326 #define HAVE_SETRESGID_DECL 1
4332 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4333 echo "configure:4334: checking for asprintf declaration" >&5
4334 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4343 int i = (int)asprintf
4346 if { (eval echo configure:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 ac_cv_have_asprintf_decl=yes
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 ac_cv_have_asprintf_decl=no
4358 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4359 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4360 cat >> confdefs.h <<\EOF
4361 #define HAVE_ASPRINTF_DECL 1
4367 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4368 echo "configure:4369: checking for vasprintf declaration" >&5
4369 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4378 int i = (int)vasprintf
4381 if { (eval echo configure:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4383 ac_cv_have_vasprintf_decl=yes
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4388 ac_cv_have_vasprintf_decl=no
4393 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4394 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4395 cat >> confdefs.h <<\EOF
4396 #define HAVE_VASPRINTF_DECL 1
4402 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4403 echo "configure:4404: checking for vsnprintf declaration" >&5
4404 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4413 int i = (int)vsnprintf
4416 if { (eval echo configure:4417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4418 ac_cv_have_vsnprintf_decl=yes
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4423 ac_cv_have_vsnprintf_decl=no
4428 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4429 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4430 cat >> confdefs.h <<\EOF
4431 #define HAVE_VSNPRINTF_DECL 1
4437 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4438 echo "configure:4439: checking for snprintf declaration" >&5
4439 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4448 int i = (int)snprintf
4451 if { (eval echo configure:4452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4453 ac_cv_have_snprintf_decl=yes
4455 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4458 ac_cv_have_snprintf_decl=no
4463 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4464 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4465 cat >> confdefs.h <<\EOF
4466 #define HAVE_SNPRINTF_DECL 1
4472 # and glibc has setresuid under linux but the function does
4473 # nothing until kernel 2.1.44! very dumb.
4474 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4475 echo "configure:4476: checking for real setresuid" >&5
4476 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4480 if test "$cross_compiling" = yes; then
4481 samba_cv_have_setresuid=cross
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4487 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4491 samba_cv_have_setresuid=yes
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4496 samba_cv_have_setresuid=no
4503 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4504 if test x"$samba_cv_have_setresuid" = x"yes"; then
4505 cat >> confdefs.h <<\EOF
4506 #define HAVE_SETRESUID 1
4511 # Do the same check for setresguid...
4513 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4514 echo "configure:4515: checking for real setresgid" >&5
4515 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4519 if test "$cross_compiling" = yes; then
4520 samba_cv_have_setresgid=cross
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4527 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4531 samba_cv_have_setresgid=yes
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4536 samba_cv_have_setresgid=no
4543 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4544 if test x"$samba_cv_have_setresgid" = x"yes"; then
4545 cat >> confdefs.h <<\EOF
4546 #define HAVE_SETRESGID 1
4551 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4552 echo "configure:4553: checking for 8-bit clean memcmp" >&5
4553 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 if test "$cross_compiling" = yes; then
4557 ac_cv_func_memcmp_clean=no
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4565 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4566 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4572 ac_cv_func_memcmp_clean=yes
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 ac_cv_func_memcmp_clean=no
4584 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4585 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4588 ###############################################
4589 # test for where we get crypt() from
4590 for ac_func in crypt
4592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_func" >&5
4594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4600 /* System header to define __stub macros and hopefully few prototypes,
4601 which can conflict with char $ac_func(); below. */
4603 /* Override any gcc2 internal prototype to avoid an error. */
4604 /* We use char because int might match the return type of a gcc2
4605 builtin and then its argument prototype would still apply. */
4610 /* The GNU C library defines this for functions which it implements
4611 to always fail with ENOSYS. Some functions are actually named
4612 something starting with __ and the normal name is an alias. */
4613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4623 eval "ac_cv_func_$ac_func=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4628 eval "ac_cv_func_$ac_func=no"
4633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4636 cat >> confdefs.h <<EOF
4637 #define $ac_tr_func 1
4641 echo "$ac_t""no" 1>&6
4645 if test x"$ac_cv_func_crypt" = x"no"; then
4646 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4647 echo "configure:4648: checking for crypt in -lcrypt" >&5
4648 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 ac_save_LIBS="$LIBS"
4653 LIBS="-lcrypt $LIBS"
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 /* Override any gcc2 internal prototype to avoid an error. */
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4666 if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4668 eval "ac_cv_lib_$ac_lib_var=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_lib_$ac_lib_var=no"
4676 LIBS="$ac_save_LIBS"
4679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4680 echo "$ac_t""yes" 1>&6
4681 AUTHLIBS="$AUTHLIBS -lcrypt";
4682 cat >> confdefs.h <<\EOF
4683 #define HAVE_CRYPT 1
4687 echo "$ac_t""no" 1>&6
4693 ###############################################
4694 # Readline included by default unless explicitly asked not to
4695 test "${with_readline+set}" != "set" && with_readline=yes
4697 # test for where we get readline() from
4698 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4699 echo "configure:4700: checking whether to use readline" >&5
4700 # Check whether --with-readline or --without-readline was given.
4701 if test "${with_readline+set}" = set; then
4702 withval="$with_readline"
4703 case "$with_readline" in
4705 echo "$ac_t""yes" 1>&6
4707 for ac_hdr in readline.h history.h readline/readline.h
4709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_hdr" >&5
4712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721 { (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723 if test -z "$ac_err"; then
4725 eval "ac_cv_header_$ac_safe=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 eval "ac_cv_header_$ac_safe=no"
4735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h <<EOF
4739 #define $ac_tr_hdr 1
4743 echo "$ac_t""no" 1>&6
4747 for ac_hdr in readline/history.h
4749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_hdr" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then
4765 eval "ac_cv_header_$ac_safe=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_header_$ac_safe=no"
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4778 cat >> confdefs.h <<EOF
4779 #define $ac_tr_hdr 1
4783 echo "$ac_t""no" 1>&6
4788 for ac_hdr in readline.h readline/readline.h
4790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4792 echo "configure:4793: checking for $ac_hdr" >&5
4793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4802 { (eval echo configure:4803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4804 if test -z "$ac_err"; then
4806 eval "ac_cv_header_$ac_safe=yes"
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4812 eval "ac_cv_header_$ac_safe=no"
4816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4819 cat >> confdefs.h <<EOF
4820 #define $ac_tr_hdr 1
4823 for termlib in ncurses curses termcap terminfo termlib; do
4824 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4825 echo "configure:4826: checking for tgetent in -l${termlib}" >&5
4826 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 ac_save_LIBS="$LIBS"
4831 LIBS="-l${termlib} $LIBS"
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* Override any gcc2 internal prototype to avoid an error. */
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4846 eval "ac_cv_lib_$ac_lib_var=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 eval "ac_cv_lib_$ac_lib_var=no"
4854 LIBS="$ac_save_LIBS"
4857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 TERMLIBS="-l${termlib}"; break
4861 echo "$ac_t""no" 1>&6
4865 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4866 echo "configure:4867: checking for rl_callback_handler_install in -lreadline" >&5
4867 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 ac_save_LIBS="$LIBS"
4872 LIBS="-lreadline $TERMLIBS $LIBS"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4879 char rl_callback_handler_install();
4882 rl_callback_handler_install()
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 eval "ac_cv_lib_$ac_lib_var=yes"
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4892 eval "ac_cv_lib_$ac_lib_var=no"
4895 LIBS="$ac_save_LIBS"
4898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4900 TERMLIBS="-lreadline $TERMLIBS"
4901 cat >> confdefs.h <<\EOF
4902 #define HAVE_LIBREADLINE 1
4907 echo "$ac_t""no" 1>&6
4912 echo "$ac_t""no" 1>&6
4918 echo "$ac_t""no" 1>&6
4921 echo "$ac_t""yes" 1>&6
4923 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4924 # alternate readline path
4926 _cppflags=${CPPFLAGS}
4928 # Add additional search path
4929 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4930 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4932 for ac_hdr in readline.h history.h readline/readline.h
4934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_hdr" >&5
4937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4946 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4948 if test -z "$ac_err"; then
4950 eval "ac_cv_header_$ac_safe=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_header_$ac_safe=no"
4960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_hdr 1
4968 echo "$ac_t""no" 1>&6
4972 for ac_hdr in readline/history.h
4974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4976 echo "configure:4977: checking for $ac_hdr" >&5
4977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4986 { (eval echo configure:4987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4988 if test -z "$ac_err"; then
4990 eval "ac_cv_header_$ac_safe=yes"
4993 echo "configure: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
4996 eval "ac_cv_header_$ac_safe=no"
5000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5001 echo "$ac_t""yes" 1>&6
5002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5003 cat >> confdefs.h <<EOF
5004 #define $ac_tr_hdr 1
5008 echo "$ac_t""no" 1>&6
5013 for ac_hdr in readline.h readline/readline.h
5015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5017 echo "configure:5018: checking for $ac_hdr" >&5
5018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5027 { (eval echo configure:5028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5029 if test -z "$ac_err"; then
5031 eval "ac_cv_header_$ac_safe=yes"
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5037 eval "ac_cv_header_$ac_safe=no"
5041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5044 cat >> confdefs.h <<EOF
5045 #define $ac_tr_hdr 1
5048 for termlib in ncurses curses termcap terminfo termlib; do
5049 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5050 echo "configure:5051: checking for tgetent in -l${termlib}" >&5
5051 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5055 ac_save_LIBS="$LIBS"
5056 LIBS="-l${termlib} $LIBS"
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 /* Override any gcc2 internal prototype to avoid an error. */
5061 /* We use char because int might match the return type of a gcc2
5062 builtin and then its argument prototype would still apply. */
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 eval "ac_cv_lib_$ac_lib_var=no"
5079 LIBS="$ac_save_LIBS"
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 TERMLIBS="-l${termlib}"; break
5086 echo "$ac_t""no" 1>&6
5090 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5091 echo "configure:5092: checking for rl_callback_handler_install in -lreadline" >&5
5092 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS="$LIBS"
5097 LIBS="-lreadline $TERMLIBS $LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5104 char rl_callback_handler_install();
5107 rl_callback_handler_install()
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 eval "ac_cv_lib_$ac_lib_var=no"
5120 LIBS="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 TERMLDFLAGS="-L$with_readline/lib"
5126 TERMCPPFLAGS="-I$with_readline/include"
5127 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
5128 TERMLIBS="-lreadline $TERMLIBS"
5129 cat >> confdefs.h <<\EOF
5130 #define HAVE_LIBREADLINE 1
5135 echo "$ac_t""no" 1>&6
5136 TERMLIBS= CPPFLAGS=$_cppflags
5140 echo "$ac_t""no" 1>&6
5149 echo "$ac_t""no" 1>&6
5156 # The readline API changed slightly from readline3 to readline4, so
5157 # code will generate warnings on one of them unless we have a few
5159 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5160 echo "configure:5161: checking for rl_completion_matches in -lreadline" >&5
5161 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 ac_save_LIBS="$LIBS"
5166 LIBS="-lreadline $TERMLIBS $LIBS"
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 /* Override any gcc2 internal prototype to avoid an error. */
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5173 char rl_completion_matches();
5176 rl_completion_matches()
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5181 eval "ac_cv_lib_$ac_lib_var=yes"
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5186 eval "ac_cv_lib_$ac_lib_var=no"
5189 LIBS="$ac_save_LIBS"
5192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5193 echo "$ac_t""yes" 1>&6
5194 cat >> confdefs.h <<\EOF
5195 #define HAVE_NEW_LIBREADLINE 1
5199 echo "$ac_t""no" 1>&6
5203 # The following test taken from the cvs sources
5204 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5205 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5206 # libsocket.so which has a bad implementation of gethostbyname (it
5207 # only looks in /etc/hosts), so we only look for -lsocket if we need
5209 for ac_func in connect
5211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5212 echo "configure:5213: checking for $ac_func" >&5
5213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 /* System header to define __stub macros and hopefully few prototypes,
5220 which can conflict with char $ac_func(); below. */
5222 /* Override any gcc2 internal prototype to avoid an error. */
5223 /* We use char because int might match the return type of a gcc2
5224 builtin and then its argument prototype would still apply. */
5229 /* The GNU C library defines this for functions which it implements
5230 to always fail with ENOSYS. Some functions are actually named
5231 something starting with __ and the normal name is an alias. */
5232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5240 if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5242 eval "ac_cv_func_$ac_func=yes"
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5247 eval "ac_cv_func_$ac_func=no"
5252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5255 cat >> confdefs.h <<EOF
5256 #define $ac_tr_func 1
5260 echo "$ac_t""no" 1>&6
5264 if test x"$ac_cv_func_connect" = x"no"; then
5267 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5268 echo "configure:5269: checking for printf in -lnsl_s" >&5
5269 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5273 ac_save_LIBS="$LIBS"
5274 LIBS="-lnsl_s $LIBS"
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* Override any gcc2 internal prototype to avoid an error. */
5279 /* We use char because int might match the return type of a gcc2
5280 builtin and then its argument prototype would still apply. */
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5289 eval "ac_cv_lib_$ac_lib_var=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 eval "ac_cv_lib_$ac_lib_var=no"
5297 LIBS="$ac_save_LIBS"
5300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5304 cat >> confdefs.h <<EOF
5305 #define $ac_tr_lib 1
5308 LIBS="-lnsl_s $LIBS"
5311 echo "$ac_t""no" 1>&6
5317 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5318 echo "configure:5319: checking for printf in -lnsl" >&5
5319 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 ac_save_LIBS="$LIBS"
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 eval "ac_cv_lib_$ac_lib_var=no"
5347 LIBS="$ac_save_LIBS"
5350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5352 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5354 cat >> confdefs.h <<EOF
5355 #define $ac_tr_lib 1
5361 echo "$ac_t""no" 1>&6
5367 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5368 echo "configure:5369: checking for connect in -lsocket" >&5
5369 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 ac_save_LIBS="$LIBS"
5374 LIBS="-lsocket $LIBS"
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5389 eval "ac_cv_lib_$ac_lib_var=yes"
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 eval "ac_cv_lib_$ac_lib_var=no"
5397 LIBS="$ac_save_LIBS"
5400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5401 echo "$ac_t""yes" 1>&6
5402 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5404 cat >> confdefs.h <<EOF
5405 #define $ac_tr_lib 1
5408 LIBS="-lsocket $LIBS"
5411 echo "$ac_t""no" 1>&6
5417 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5418 echo "configure:5419: checking for connect in -linet" >&5
5419 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5423 ac_save_LIBS="$LIBS"
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* Override any gcc2 internal prototype to avoid an error. */
5429 /* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */
5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 eval "ac_cv_lib_$ac_lib_var=yes"
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 eval "ac_cv_lib_$ac_lib_var=no"
5447 LIBS="$ac_save_LIBS"
5450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5451 echo "$ac_t""yes" 1>&6
5452 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5454 cat >> confdefs.h <<EOF
5455 #define $ac_tr_lib 1
5461 echo "$ac_t""no" 1>&6
5465 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5466 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5467 # ac_cv_func_connect=yes
5468 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5469 cat >> confdefs.h <<\EOF
5470 #define HAVE_CONNECT 1
5476 ###############################################
5477 # test for where we get get_yp_default_domain() from
5478 for ac_func in yp_get_default_domain
5480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5481 echo "configure:5482: checking for $ac_func" >&5
5482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char $ac_func(); below. */
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5498 /* The GNU C library defines this for functions which it implements
5499 to always fail with ENOSYS. Some functions are actually named
5500 something starting with __ and the normal name is an alias. */
5501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5511 eval "ac_cv_func_$ac_func=yes"
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5516 eval "ac_cv_func_$ac_func=no"
5521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5524 cat >> confdefs.h <<EOF
5525 #define $ac_tr_func 1
5529 echo "$ac_t""no" 1>&6
5533 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5534 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5535 echo "configure:5536: checking for yp_get_default_domain in -lnsl" >&5
5536 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5540 ac_save_LIBS="$LIBS"
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5548 char yp_get_default_domain();
5551 yp_get_default_domain()
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5556 eval "ac_cv_lib_$ac_lib_var=yes"
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 eval "ac_cv_lib_$ac_lib_var=no"
5564 LIBS="$ac_save_LIBS"
5567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5568 echo "$ac_t""yes" 1>&6
5570 cat >> confdefs.h <<\EOF
5571 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5575 echo "$ac_t""no" 1>&6
5580 # Check if we have execl, if not we need to compile smbrun.
5581 for ac_func in execl
5583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5584 echo "configure:5585: checking for $ac_func" >&5
5585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 /* System header to define __stub macros and hopefully few prototypes,
5592 which can conflict with char $ac_func(); below. */
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5601 /* The GNU C library defines this for functions which it implements
5602 to always fail with ENOSYS. Some functions are actually named
5603 something starting with __ and the normal name is an alias. */
5604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5612 if { (eval echo configure:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5614 eval "ac_cv_func_$ac_func=yes"
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5619 eval "ac_cv_func_$ac_func=no"
5624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5627 cat >> confdefs.h <<EOF
5628 #define $ac_tr_func 1
5632 echo "$ac_t""no" 1>&6
5636 if test x"$ac_cv_func_execl" = x"no"; then
5637 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5640 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5673 eval "ac_cv_func_$ac_func=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5678 eval "ac_cv_func_$ac_func=no"
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h <<EOF
5687 #define $ac_tr_func 1
5691 echo "$ac_t""no" 1>&6
5695 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_func" >&5
5699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* System header to define __stub macros and hopefully few prototypes,
5706 which can conflict with char $ac_func(); below. */
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5726 if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5728 eval "ac_cv_func_$ac_func=yes"
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5733 eval "ac_cv_func_$ac_func=no"
5738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5741 cat >> confdefs.h <<EOF
5742 #define $ac_tr_func 1
5746 echo "$ac_t""no" 1>&6
5750 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 cat > conftest.$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5783 eval "ac_cv_func_$ac_func=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 eval "ac_cv_func_$ac_func=no"
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h <<EOF
5797 #define $ac_tr_func 1
5801 echo "$ac_t""no" 1>&6
5805 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5808 echo "configure:5809: checking for $ac_func" >&5
5809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char $ac_func(); below. */
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5836 if { (eval echo configure:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5838 eval "ac_cv_func_$ac_func=yes"
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5843 eval "ac_cv_func_$ac_func=no"
5848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5851 cat >> confdefs.h <<EOF
5852 #define $ac_tr_func 1
5856 echo "$ac_t""no" 1>&6
5860 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 eval "ac_cv_func_$ac_func=yes"
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 eval "ac_cv_func_$ac_func=no"
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5906 cat >> confdefs.h <<EOF
5907 #define $ac_tr_func 1
5911 echo "$ac_t""no" 1>&6
5915 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char $ac_func(); below. */
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5948 eval "ac_cv_func_$ac_func=yes"
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5953 eval "ac_cv_func_$ac_func=no"
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961 cat >> confdefs.h <<EOF
5962 #define $ac_tr_func 1
5966 echo "$ac_t""no" 1>&6
5970 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_func" >&5
5974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 /* System header to define __stub macros and hopefully few prototypes,
5981 which can conflict with char $ac_func(); below. */
5983 /* Override any gcc2 internal prototype to avoid an error. */
5984 /* We use char because int might match the return type of a gcc2
5985 builtin and then its argument prototype would still apply. */
5990 /* The GNU C library defines this for functions which it implements
5991 to always fail with ENOSYS. Some functions are actually named
5992 something starting with __ and the normal name is an alias. */
5993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6003 eval "ac_cv_func_$ac_func=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 eval "ac_cv_func_$ac_func=no"
6013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6016 cat >> confdefs.h <<EOF
6017 #define $ac_tr_func 1
6021 echo "$ac_t""no" 1>&6
6025 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6028 echo "configure:6029: checking for $ac_func" >&5
6029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 /* System header to define __stub macros and hopefully few prototypes,
6036 which can conflict with char $ac_func(); below. */
6038 /* Override any gcc2 internal prototype to avoid an error. */
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6045 /* The GNU C library defines this for functions which it implements
6046 to always fail with ENOSYS. Some functions are actually named
6047 something starting with __ and the normal name is an alias. */
6048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058 eval "ac_cv_func_$ac_func=yes"
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6063 eval "ac_cv_func_$ac_func=no"
6068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6071 cat >> confdefs.h <<EOF
6072 #define $ac_tr_func 1
6076 echo "$ac_t""no" 1>&6
6080 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
6082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_func" >&5
6084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* System header to define __stub macros and hopefully few prototypes,
6091 which can conflict with char $ac_func(); below. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6113 eval "ac_cv_func_$ac_func=yes"
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6118 eval "ac_cv_func_$ac_func=no"
6123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6126 cat >> confdefs.h <<EOF
6127 #define $ac_tr_func 1
6131 echo "$ac_t""no" 1>&6
6135 for ac_func in syslog vsyslog getgrouplist timegm
6137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6138 echo "configure:6139: checking for $ac_func" >&5
6139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 /* System header to define __stub macros and hopefully few prototypes,
6146 which can conflict with char $ac_func(); below. */
6148 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6155 /* The GNU C library defines this for functions which it implements
6156 to always fail with ENOSYS. Some functions are actually named
6157 something starting with __ and the normal name is an alias. */
6158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6166 if { (eval echo configure:6167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6168 eval "ac_cv_func_$ac_func=yes"
6170 echo "configure: failed program was:" >&5
6171 cat conftest.$ac_ext >&5
6173 eval "ac_cv_func_$ac_func=no"
6178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6181 cat >> confdefs.h <<EOF
6182 #define $ac_tr_func 1
6186 echo "$ac_t""no" 1>&6
6190 # setbuffer, shmget, shm_open are needed for smbtorture
6191 for ac_func in setbuffer shmget shm_open
6193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6194 echo "configure:6195: checking for $ac_func" >&5
6195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 /* System header to define __stub macros and hopefully few prototypes,
6202 which can conflict with char $ac_func(); below. */
6204 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6211 /* The GNU C library defines this for functions which it implements
6212 to always fail with ENOSYS. Some functions are actually named
6213 something starting with __ and the normal name is an alias. */
6214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6224 eval "ac_cv_func_$ac_func=yes"
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 eval "ac_cv_func_$ac_func=no"
6234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6237 cat >> confdefs.h <<EOF
6238 #define $ac_tr_func 1
6242 echo "$ac_t""no" 1>&6
6247 # syscall() is needed for smbwrapper.
6248 for ac_func in syscall
6250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6251 echo "configure:6252: checking for $ac_func" >&5
6252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6261 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6281 eval "ac_cv_func_$ac_func=yes"
6283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6286 eval "ac_cv_func_$ac_func=no"
6291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6294 cat >> confdefs.h <<EOF
6295 #define $ac_tr_func 1
6299 echo "$ac_t""no" 1>&6
6304 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6307 echo "configure:6308: checking for $ac_func" >&5
6308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6311 cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func(); below. */
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6324 /* The GNU C library defines this for functions which it implements
6325 to always fail with ENOSYS. Some functions are actually named
6326 something starting with __ and the normal name is an alias. */
6327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 eval "ac_cv_func_$ac_func=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 eval "ac_cv_func_$ac_func=no"
6347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6350 cat >> confdefs.h <<EOF
6351 #define $ac_tr_func 1
6355 echo "$ac_t""no" 1>&6
6359 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6362 echo "configure:6363: checking for $ac_func" >&5
6363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6369 /* System header to define __stub macros and hopefully few prototypes,
6370 which can conflict with char $ac_func(); below. */
6372 /* Override any gcc2 internal prototype to avoid an error. */
6373 /* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */
6379 /* The GNU C library defines this for functions which it implements
6380 to always fail with ENOSYS. Some functions are actually named
6381 something starting with __ and the normal name is an alias. */
6382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6392 eval "ac_cv_func_$ac_func=yes"
6394 echo "configure: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6397 eval "ac_cv_func_$ac_func=no"
6402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6403 echo "$ac_t""yes" 1>&6
6404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6405 cat >> confdefs.h <<EOF
6406 #define $ac_tr_func 1
6410 echo "$ac_t""no" 1>&6
6414 for ac_func in __getcwd _getcwd
6416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6417 echo "configure:6418: checking for $ac_func" >&5
6418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 /* System header to define __stub macros and hopefully few prototypes,
6425 which can conflict with char $ac_func(); below. */
6427 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6434 /* The GNU C library defines this for functions which it implements
6435 to always fail with ENOSYS. Some functions are actually named
6436 something starting with __ and the normal name is an alias. */
6437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6447 eval "ac_cv_func_$ac_func=yes"
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6452 eval "ac_cv_func_$ac_func=no"
6457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6458 echo "$ac_t""yes" 1>&6
6459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6460 cat >> confdefs.h <<EOF
6461 #define $ac_tr_func 1
6465 echo "$ac_t""no" 1>&6
6469 for ac_func in __xstat __fxstat __lxstat
6471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6472 echo "configure:6473: checking for $ac_func" >&5
6473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 /* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char $ac_func(); below. */
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6500 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6502 eval "ac_cv_func_$ac_func=yes"
6504 echo "configure: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6507 eval "ac_cv_func_$ac_func=no"
6512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6515 cat >> confdefs.h <<EOF
6516 #define $ac_tr_func 1
6520 echo "$ac_t""no" 1>&6
6524 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_func" >&5
6528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* System header to define __stub macros and hopefully few prototypes,
6535 which can conflict with char $ac_func(); below. */
6537 /* Override any gcc2 internal prototype to avoid an error. */
6538 /* We use char because int might match the return type of a gcc2
6539 builtin and then its argument prototype would still apply. */
6544 /* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6557 eval "ac_cv_func_$ac_func=yes"
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 eval "ac_cv_func_$ac_func=no"
6567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6568 echo "$ac_t""yes" 1>&6
6569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6570 cat >> confdefs.h <<EOF
6571 #define $ac_tr_func 1
6575 echo "$ac_t""no" 1>&6
6579 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6582 echo "configure:6583: checking for $ac_func" >&5
6583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6584 echo $ac_n "(cached) $ac_c" 1>&6
6586 cat > conftest.$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 /* System header to define __stub macros and hopefully few prototypes,
6590 which can conflict with char $ac_func(); below. */
6592 /* Override any gcc2 internal prototype to avoid an error. */
6593 /* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */
6599 /* The GNU C library defines this for functions which it implements
6600 to always fail with ENOSYS. Some functions are actually named
6601 something starting with __ and the normal name is an alias. */
6602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6612 eval "ac_cv_func_$ac_func=yes"
6614 echo "configure: failed program was:" >&5
6615 cat conftest.$ac_ext >&5
6617 eval "ac_cv_func_$ac_func=no"
6622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6625 cat >> confdefs.h <<EOF
6626 #define $ac_tr_func 1
6630 echo "$ac_t""no" 1>&6
6634 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6637 echo "configure:6638: checking for $ac_func" >&5
6638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func(); below. */
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6654 /* The GNU C library defines this for functions which it implements
6655 to always fail with ENOSYS. Some functions are actually named
6656 something starting with __ and the normal name is an alias. */
6657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 eval "ac_cv_func_$ac_func=yes"
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6672 eval "ac_cv_func_$ac_func=no"
6677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6680 cat >> confdefs.h <<EOF
6681 #define $ac_tr_func 1
6685 echo "$ac_t""no" 1>&6
6689 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700 which can conflict with char $ac_func(); below. */
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6709 /* The GNU C library defines this for functions which it implements
6710 to always fail with ENOSYS. Some functions are actually named
6711 something starting with __ and the normal name is an alias. */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6722 eval "ac_cv_func_$ac_func=yes"
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 eval "ac_cv_func_$ac_func=no"
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733 echo "$ac_t""yes" 1>&6
6734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735 cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6740 echo "$ac_t""no" 1>&6
6744 for ac_func in _write __write _fork __fork
6746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6747 echo "configure:6748: checking for $ac_func" >&5
6748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6754 /* System header to define __stub macros and hopefully few prototypes,
6755 which can conflict with char $ac_func(); below. */
6757 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6764 /* The GNU C library defines this for functions which it implements
6765 to always fail with ENOSYS. Some functions are actually named
6766 something starting with __ and the normal name is an alias. */
6767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6775 if { (eval echo configure:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6777 eval "ac_cv_func_$ac_func=yes"
6779 echo "configure: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6782 eval "ac_cv_func_$ac_func=no"
6787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6788 echo "$ac_t""yes" 1>&6
6789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6790 cat >> confdefs.h <<EOF
6791 #define $ac_tr_func 1
6795 echo "$ac_t""no" 1>&6
6799 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6802 echo "configure:6803: checking for $ac_func" >&5
6803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 /* System header to define __stub macros and hopefully few prototypes,
6810 which can conflict with char $ac_func(); below. */
6812 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6819 /* The GNU C library defines this for functions which it implements
6820 to always fail with ENOSYS. Some functions are actually named
6821 something starting with __ and the normal name is an alias. */
6822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6832 eval "ac_cv_func_$ac_func=yes"
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6837 eval "ac_cv_func_$ac_func=no"
6842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6845 cat >> confdefs.h <<EOF
6846 #define $ac_tr_func 1
6850 echo "$ac_t""no" 1>&6
6854 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6857 echo "configure:6858: checking for $ac_func" >&5
6858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 /* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func(); below. */
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6874 /* The GNU C library defines this for functions which it implements
6875 to always fail with ENOSYS. Some functions are actually named
6876 something starting with __ and the normal name is an alias. */
6877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6887 eval "ac_cv_func_$ac_func=yes"
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6892 eval "ac_cv_func_$ac_func=no"
6897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6900 cat >> confdefs.h <<EOF
6901 #define $ac_tr_func 1
6905 echo "$ac_t""no" 1>&6
6909 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6912 echo "configure:6913: checking for $ac_func" >&5
6913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6914 echo $ac_n "(cached) $ac_c" 1>&6
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6919 /* System header to define __stub macros and hopefully few prototypes,
6920 which can conflict with char $ac_func(); below. */
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6929 /* The GNU C library defines this for functions which it implements
6930 to always fail with ENOSYS. Some functions are actually named
6931 something starting with __ and the normal name is an alias. */
6932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6942 eval "ac_cv_func_$ac_func=yes"
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6947 eval "ac_cv_func_$ac_func=no"
6952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6953 echo "$ac_t""yes" 1>&6
6954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6955 cat >> confdefs.h <<EOF
6956 #define $ac_tr_func 1
6960 echo "$ac_t""no" 1>&6
6964 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6967 echo "configure:6968: checking for $ac_func" >&5
6968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char $ac_func(); below. */
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6995 if { (eval echo configure:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6997 eval "ac_cv_func_$ac_func=yes"
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7002 eval "ac_cv_func_$ac_func=no"
7007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7008 echo "$ac_t""yes" 1>&6
7009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7010 cat >> confdefs.h <<EOF
7011 #define $ac_tr_func 1
7015 echo "$ac_t""no" 1>&6
7019 for ac_func in open64 _open64 __open64 creat64
7021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7022 echo "configure:7023: checking for $ac_func" >&5
7023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* System header to define __stub macros and hopefully few prototypes,
7030 which can conflict with char $ac_func(); below. */
7032 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7039 /* The GNU C library defines this for functions which it implements
7040 to always fail with ENOSYS. Some functions are actually named
7041 something starting with __ and the normal name is an alias. */
7042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 eval "ac_cv_func_$ac_func=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 eval "ac_cv_func_$ac_func=no"
7062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7065 cat >> confdefs.h <<EOF
7066 #define $ac_tr_func 1
7070 echo "$ac_t""no" 1>&6
7076 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7079 if test x$ac_cv_func_stat64 = xno ; then
7080 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7081 echo "configure:7082: checking for stat64 in <sys/stat.h>" >&5
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7086 #if defined(HAVE_UNISTD_H)
7089 #include <sys/stat.h>
7092 struct stat64 st64; exit(stat64(".",&st64));
7095 if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7097 ac_cv_func_stat64=yes
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7103 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7104 if test x$ac_cv_func_stat64 = xyes ; then
7105 cat >> confdefs.h <<\EOF
7106 #define HAVE_STAT64 1
7112 if test x$ac_cv_func_lstat64 = xno ; then
7113 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7114 echo "configure:7115: checking for lstat64 in <sys/stat.h>" >&5
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7119 #if defined(HAVE_UNISTD_H)
7122 #include <sys/stat.h>
7125 struct stat64 st64; exit(lstat64(".",&st64));
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7130 ac_cv_func_lstat64=yes
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7136 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7137 if test x$ac_cv_func_lstat64 = xyes ; then
7138 cat >> confdefs.h <<\EOF
7139 #define HAVE_LSTAT64 Whether lstat64() is available
7145 if test x$ac_cv_func_fstat64 = xno ; then
7146 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7147 echo "configure:7148: checking for fstat64 in <sys/stat.h>" >&5
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7152 #if defined(HAVE_UNISTD_H)
7155 #include <sys/stat.h>
7158 struct stat64 st64; exit(fstat64(0,&st64));
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7163 ac_cv_func_fstat64=yes
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7169 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7170 if test x$ac_cv_func_fstat64 = xyes ; then
7171 cat >> confdefs.h <<\EOF
7172 #define HAVE_FSTAT64 1
7178 #####################################
7179 # we might need the resolv library on some systems
7180 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7181 echo "configure:7182: checking for dn_expand in -lresolv" >&5
7182 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7186 ac_save_LIBS="$LIBS"
7187 LIBS="-lresolv $LIBS"
7188 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7191 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7202 eval "ac_cv_lib_$ac_lib_var=yes"
7204 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7207 eval "ac_cv_lib_$ac_lib_var=no"
7210 LIBS="$ac_save_LIBS"
7213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_lib 1
7221 LIBS="-lresolv $LIBS"
7224 echo "$ac_t""no" 1>&6
7229 # Check for the functions putprpwnam, set_auth_parameters,
7230 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7231 # Needed for OSF1 and HPUX.
7235 *-lsecurity*) for ac_func in putprpwnam
7237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7238 echo "configure:7239: checking for $ac_func" >&5
7239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 /* System header to define __stub macros and hopefully few prototypes,
7246 which can conflict with char $ac_func(); below. */
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7255 /* The GNU C library defines this for functions which it implements
7256 to always fail with ENOSYS. Some functions are actually named
7257 something starting with __ and the normal name is an alias. */
7258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7266 if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7268 eval "ac_cv_func_$ac_func=yes"
7270 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7273 eval "ac_cv_func_$ac_func=no"
7278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7279 echo "$ac_t""yes" 1>&6
7280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7281 cat >> confdefs.h <<EOF
7282 #define $ac_tr_func 1
7286 echo "$ac_t""no" 1>&6
7290 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7291 echo "configure:7292: checking for putprpwnam in -lsecurity" >&5
7292 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7296 ac_save_LIBS="$LIBS"
7297 LIBS="-lsecurity $LIBS"
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7312 eval "ac_cv_lib_$ac_lib_var=yes"
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7317 eval "ac_cv_lib_$ac_lib_var=no"
7320 LIBS="$ac_save_LIBS"
7323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7324 echo "$ac_t""yes" 1>&6
7325 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7327 cat >> confdefs.h <<EOF
7328 #define $ac_tr_lib 1
7331 LIBS="-lsecurity $LIBS"
7334 echo "$ac_t""no" 1>&6
7337 for ac_func in putprpwnam
7339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7340 echo "configure:7341: checking for $ac_func" >&5
7341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 /* System header to define __stub macros and hopefully few prototypes,
7348 which can conflict with char $ac_func(); below. */
7350 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */
7357 /* The GNU C library defines this for functions which it implements
7358 to always fail with ENOSYS. Some functions are actually named
7359 something starting with __ and the normal name is an alias. */
7360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7368 if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7370 eval "ac_cv_func_$ac_func=yes"
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7375 eval "ac_cv_func_$ac_func=no"
7380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7381 echo "$ac_t""yes" 1>&6
7382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7383 cat >> confdefs.h <<EOF
7384 #define $ac_tr_func 1
7388 echo "$ac_t""no" 1>&6
7396 *-lsec*) for ac_func in putprpwnam
7398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7399 echo "configure:7400: checking for $ac_func" >&5
7400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char $ac_func(); below. */
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7416 /* The GNU C library defines this for functions which it implements
7417 to always fail with ENOSYS. Some functions are actually named
7418 something starting with __ and the normal name is an alias. */
7419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7427 if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7429 eval "ac_cv_func_$ac_func=yes"
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7434 eval "ac_cv_func_$ac_func=no"
7439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7440 echo "$ac_t""yes" 1>&6
7441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7442 cat >> confdefs.h <<EOF
7443 #define $ac_tr_func 1
7447 echo "$ac_t""no" 1>&6
7451 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7452 echo "configure:7453: checking for putprpwnam in -lsec" >&5
7453 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7457 ac_save_LIBS="$LIBS"
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7473 eval "ac_cv_lib_$ac_lib_var=yes"
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7478 eval "ac_cv_lib_$ac_lib_var=no"
7481 LIBS="$ac_save_LIBS"
7484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7488 cat >> confdefs.h <<EOF
7489 #define $ac_tr_lib 1
7495 echo "$ac_t""no" 1>&6
7498 for ac_func in putprpwnam
7500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7501 echo "configure:7502: checking for $ac_func" >&5
7502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 /* System header to define __stub macros and hopefully few prototypes,
7509 which can conflict with char $ac_func(); below. */
7511 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7518 /* The GNU C library defines this for functions which it implements
7519 to always fail with ENOSYS. Some functions are actually named
7520 something starting with __ and the normal name is an alias. */
7521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7529 if { (eval echo configure:7530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7531 eval "ac_cv_func_$ac_func=yes"
7533 echo "configure: failed program was:" >&5
7534 cat conftest.$ac_ext >&5
7536 eval "ac_cv_func_$ac_func=no"
7541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7542 echo "$ac_t""yes" 1>&6
7543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7544 cat >> confdefs.h <<EOF
7545 #define $ac_tr_func 1
7549 echo "$ac_t""no" 1>&6
7558 *-lsecurity*) for ac_func in set_auth_parameters
7560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_func" >&5
7562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7565 cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char $ac_func(); below. */
7571 /* Override any gcc2 internal prototype to avoid an error. */
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7578 /* The GNU C library defines this for functions which it implements
7579 to always fail with ENOSYS. Some functions are actually named
7580 something starting with __ and the normal name is an alias. */
7581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7591 eval "ac_cv_func_$ac_func=yes"
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 eval "ac_cv_func_$ac_func=no"
7601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7604 cat >> confdefs.h <<EOF
7605 #define $ac_tr_func 1
7609 echo "$ac_t""no" 1>&6
7613 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7614 echo "configure:7615: checking for set_auth_parameters in -lsecurity" >&5
7615 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 ac_save_LIBS="$LIBS"
7620 LIBS="-lsecurity $LIBS"
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 /* Override any gcc2 internal prototype to avoid an error. */
7625 /* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7627 char set_auth_parameters();
7630 set_auth_parameters()
7633 if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7635 eval "ac_cv_lib_$ac_lib_var=yes"
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7640 eval "ac_cv_lib_$ac_lib_var=no"
7643 LIBS="$ac_save_LIBS"
7646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7650 cat >> confdefs.h <<EOF
7651 #define $ac_tr_lib 1
7654 LIBS="-lsecurity $LIBS"
7657 echo "$ac_t""no" 1>&6
7660 for ac_func in set_auth_parameters
7662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7663 echo "configure:7664: checking for $ac_func" >&5
7664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 /* System header to define __stub macros and hopefully few prototypes,
7671 which can conflict with char $ac_func(); below. */
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7691 if { (eval echo configure:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7693 eval "ac_cv_func_$ac_func=yes"
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7698 eval "ac_cv_func_$ac_func=no"
7703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7704 echo "$ac_t""yes" 1>&6
7705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7706 cat >> confdefs.h <<EOF
7707 #define $ac_tr_func 1
7711 echo "$ac_t""no" 1>&6
7719 *-lsec*) for ac_func in set_auth_parameters
7721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7722 echo "configure:7723: checking for $ac_func" >&5
7723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7726 cat > conftest.$ac_ext <<EOF
7727 #line 7728 "configure"
7728 #include "confdefs.h"
7729 /* System header to define __stub macros and hopefully few prototypes,
7730 which can conflict with char $ac_func(); below. */
7732 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7739 /* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7750 if { (eval echo configure:7751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7752 eval "ac_cv_func_$ac_func=yes"
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7757 eval "ac_cv_func_$ac_func=no"
7762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7765 cat >> confdefs.h <<EOF
7766 #define $ac_tr_func 1
7770 echo "$ac_t""no" 1>&6
7774 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7775 echo "configure:7776: checking for set_auth_parameters in -lsec" >&5
7776 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7780 ac_save_LIBS="$LIBS"
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7788 char set_auth_parameters();
7791 set_auth_parameters()
7794 if { (eval echo configure:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7796 eval "ac_cv_lib_$ac_lib_var=yes"
7798 echo "configure: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7801 eval "ac_cv_lib_$ac_lib_var=no"
7804 LIBS="$ac_save_LIBS"
7807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7809 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7810 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7811 cat >> confdefs.h <<EOF
7812 #define $ac_tr_lib 1
7818 echo "$ac_t""no" 1>&6
7821 for ac_func in set_auth_parameters
7823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_func" >&5
7825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* System header to define __stub macros and hopefully few prototypes,
7832 which can conflict with char $ac_func(); below. */
7834 /* Override any gcc2 internal prototype to avoid an error. */
7835 /* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7841 /* The GNU C library defines this for functions which it implements
7842 to always fail with ENOSYS. Some functions are actually named
7843 something starting with __ and the normal name is an alias. */
7844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7852 if { (eval echo configure:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7854 eval "ac_cv_func_$ac_func=yes"
7856 echo "configure: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7859 eval "ac_cv_func_$ac_func=no"
7864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7867 cat >> confdefs.h <<EOF
7868 #define $ac_tr_func 1
7872 echo "$ac_t""no" 1>&6
7880 # UnixWare 7.x has its getspnam in -lgen
7882 *-lgen*) for ac_func in getspnam
7884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7885 echo "configure:7886: checking for $ac_func" >&5
7886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7889 cat > conftest.$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 /* System header to define __stub macros and hopefully few prototypes,
7893 which can conflict with char $ac_func(); below. */
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7902 /* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7915 eval "ac_cv_func_$ac_func=yes"
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7920 eval "ac_cv_func_$ac_func=no"
7925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7926 echo "$ac_t""yes" 1>&6
7927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7928 cat >> confdefs.h <<EOF
7929 #define $ac_tr_func 1
7933 echo "$ac_t""no" 1>&6
7937 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7938 echo "configure:7939: checking for getspnam in -lgen" >&5
7939 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7941 echo $ac_n "(cached) $ac_c" 1>&6
7943 ac_save_LIBS="$LIBS"
7945 cat > conftest.$ac_ext <<EOF
7946 #line 7947 "configure"
7947 #include "confdefs.h"
7948 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7957 if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7959 eval "ac_cv_lib_$ac_lib_var=yes"
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7964 eval "ac_cv_lib_$ac_lib_var=no"
7967 LIBS="$ac_save_LIBS"
7970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7971 echo "$ac_t""yes" 1>&6
7972 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7974 cat >> confdefs.h <<EOF
7975 #define $ac_tr_lib 1
7981 echo "$ac_t""no" 1>&6
7984 for ac_func in getspnam
7986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7987 echo "configure:7988: checking for $ac_func" >&5
7988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7989 echo $ac_n "(cached) $ac_c" 1>&6
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 /* System header to define __stub macros and hopefully few prototypes,
7995 which can conflict with char $ac_func(); below. */
7997 /* Override any gcc2 internal prototype to avoid an error. */
7998 /* We use char because int might match the return type of a gcc2
7999 builtin and then its argument prototype would still apply. */
8004 /* The GNU C library defines this for functions which it implements
8005 to always fail with ENOSYS. Some functions are actually named
8006 something starting with __ and the normal name is an alias. */
8007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8015 if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8017 eval "ac_cv_func_$ac_func=yes"
8019 echo "configure: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8022 eval "ac_cv_func_$ac_func=no"
8027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8030 cat >> confdefs.h <<EOF
8031 #define $ac_tr_func 1
8035 echo "$ac_t""no" 1>&6
8044 *-lsecurity*) for ac_func in getspnam
8046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8047 echo "configure:8048: checking for $ac_func" >&5
8048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8051 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8054 /* System header to define __stub macros and hopefully few prototypes,
8055 which can conflict with char $ac_func(); below. */
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8064 /* The GNU C library defines this for functions which it implements
8065 to always fail with ENOSYS. Some functions are actually named
8066 something starting with __ and the normal name is an alias. */
8067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8075 if { (eval echo configure:8076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8077 eval "ac_cv_func_$ac_func=yes"
8079 echo "configure: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8082 eval "ac_cv_func_$ac_func=no"
8087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8088 echo "$ac_t""yes" 1>&6
8089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8090 cat >> confdefs.h <<EOF
8091 #define $ac_tr_func 1
8095 echo "$ac_t""no" 1>&6
8099 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8100 echo "configure:8101: checking for getspnam in -lsecurity" >&5
8101 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8105 ac_save_LIBS="$LIBS"
8106 LIBS="-lsecurity $LIBS"
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8119 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8121 eval "ac_cv_lib_$ac_lib_var=yes"
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 eval "ac_cv_lib_$ac_lib_var=no"
8129 LIBS="$ac_save_LIBS"
8132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8133 echo "$ac_t""yes" 1>&6
8134 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8136 cat >> confdefs.h <<EOF
8137 #define $ac_tr_lib 1
8140 LIBS="-lsecurity $LIBS"
8143 echo "$ac_t""no" 1>&6
8146 for ac_func in getspnam
8148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8149 echo "configure:8150: checking for $ac_func" >&5
8150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* System header to define __stub macros and hopefully few prototypes,
8157 which can conflict with char $ac_func(); below. */
8159 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8166 /* The GNU C library defines this for functions which it implements
8167 to always fail with ENOSYS. Some functions are actually named
8168 something starting with __ and the normal name is an alias. */
8169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8177 if { (eval echo configure:8178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8179 eval "ac_cv_func_$ac_func=yes"
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8184 eval "ac_cv_func_$ac_func=no"
8189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8190 echo "$ac_t""yes" 1>&6
8191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8192 cat >> confdefs.h <<EOF
8193 #define $ac_tr_func 1
8197 echo "$ac_t""no" 1>&6
8205 *-lsec*) for ac_func in getspnam
8207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8208 echo "configure:8209: checking for $ac_func" >&5
8209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8212 cat > conftest.$ac_ext <<EOF
8213 #line 8214 "configure"
8214 #include "confdefs.h"
8215 /* System header to define __stub macros and hopefully few prototypes,
8216 which can conflict with char $ac_func(); below. */
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8225 /* The GNU C library defines this for functions which it implements
8226 to always fail with ENOSYS. Some functions are actually named
8227 something starting with __ and the normal name is an alias. */
8228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8238 eval "ac_cv_func_$ac_func=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 eval "ac_cv_func_$ac_func=no"
8248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8249 echo "$ac_t""yes" 1>&6
8250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8251 cat >> confdefs.h <<EOF
8252 #define $ac_tr_func 1
8256 echo "$ac_t""no" 1>&6
8260 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8261 echo "configure:8262: checking for getspnam in -lsec" >&5
8262 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8266 ac_save_LIBS="$LIBS"
8268 cat > conftest.$ac_ext <<EOF
8269 #line 8270 "configure"
8270 #include "confdefs.h"
8271 /* Override any gcc2 internal prototype to avoid an error. */
8272 /* We use char because int might match the return type of a gcc2
8273 builtin and then its argument prototype would still apply. */
8280 if { (eval echo configure:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8282 eval "ac_cv_lib_$ac_lib_var=yes"
8284 echo "configure: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8287 eval "ac_cv_lib_$ac_lib_var=no"
8290 LIBS="$ac_save_LIBS"
8293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8297 cat >> confdefs.h <<EOF
8298 #define $ac_tr_lib 1
8304 echo "$ac_t""no" 1>&6
8307 for ac_func in getspnam
8309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8310 echo "configure:8311: checking for $ac_func" >&5
8311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* System header to define __stub macros and hopefully few prototypes,
8318 which can conflict with char $ac_func(); below. */
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8327 /* The GNU C library defines this for functions which it implements
8328 to always fail with ENOSYS. Some functions are actually named
8329 something starting with __ and the normal name is an alias. */
8330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8338 if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8340 eval "ac_cv_func_$ac_func=yes"
8342 echo "configure: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8345 eval "ac_cv_func_$ac_func=no"
8350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8353 cat >> confdefs.h <<EOF
8354 #define $ac_tr_func 1
8358 echo "$ac_t""no" 1>&6
8367 *-lsecurity*) for ac_func in bigcrypt
8369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8370 echo "configure:8371: checking for $ac_func" >&5
8371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8374 cat > conftest.$ac_ext <<EOF
8375 #line 8376 "configure"
8376 #include "confdefs.h"
8377 /* System header to define __stub macros and hopefully few prototypes,
8378 which can conflict with char $ac_func(); below. */
8380 /* Override any gcc2 internal prototype to avoid an error. */
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8387 /* The GNU C library defines this for functions which it implements
8388 to always fail with ENOSYS. Some functions are actually named
8389 something starting with __ and the normal name is an alias. */
8390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8398 if { (eval echo configure:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8400 eval "ac_cv_func_$ac_func=yes"
8402 echo "configure: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8405 eval "ac_cv_func_$ac_func=no"
8410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8411 echo "$ac_t""yes" 1>&6
8412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8413 cat >> confdefs.h <<EOF
8414 #define $ac_tr_func 1
8418 echo "$ac_t""no" 1>&6
8422 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8423 echo "configure:8424: checking for bigcrypt in -lsecurity" >&5
8424 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8428 ac_save_LIBS="$LIBS"
8429 LIBS="-lsecurity $LIBS"
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 /* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8442 if { (eval echo configure:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8444 eval "ac_cv_lib_$ac_lib_var=yes"
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8449 eval "ac_cv_lib_$ac_lib_var=no"
8452 LIBS="$ac_save_LIBS"
8455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8459 cat >> confdefs.h <<EOF
8460 #define $ac_tr_lib 1
8463 LIBS="-lsecurity $LIBS"
8466 echo "$ac_t""no" 1>&6
8469 for ac_func in bigcrypt
8471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8472 echo "configure:8473: checking for $ac_func" >&5
8473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8474 echo $ac_n "(cached) $ac_c" 1>&6
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 /* System header to define __stub macros and hopefully few prototypes,
8480 which can conflict with char $ac_func(); below. */
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 /* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8489 /* The GNU C library defines this for functions which it implements
8490 to always fail with ENOSYS. Some functions are actually named
8491 something starting with __ and the normal name is an alias. */
8492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8502 eval "ac_cv_func_$ac_func=yes"
8504 echo "configure: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8507 eval "ac_cv_func_$ac_func=no"
8512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8513 echo "$ac_t""yes" 1>&6
8514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8515 cat >> confdefs.h <<EOF
8516 #define $ac_tr_func 1
8520 echo "$ac_t""no" 1>&6
8528 *-lsec*) for ac_func in bigcrypt
8530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8531 echo "configure:8532: checking for $ac_func" >&5
8532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8535 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8538 /* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char $ac_func(); below. */
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8548 /* The GNU C library defines this for functions which it implements
8549 to always fail with ENOSYS. Some functions are actually named
8550 something starting with __ and the normal name is an alias. */
8551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8559 if { (eval echo configure:8560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8561 eval "ac_cv_func_$ac_func=yes"
8563 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8566 eval "ac_cv_func_$ac_func=no"
8571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8572 echo "$ac_t""yes" 1>&6
8573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8574 cat >> confdefs.h <<EOF
8575 #define $ac_tr_func 1
8579 echo "$ac_t""no" 1>&6
8583 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8584 echo "configure:8585: checking for bigcrypt in -lsec" >&5
8585 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8589 ac_save_LIBS="$LIBS"
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 /* Override any gcc2 internal prototype to avoid an error. */
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8605 eval "ac_cv_lib_$ac_lib_var=yes"
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8610 eval "ac_cv_lib_$ac_lib_var=no"
8613 LIBS="$ac_save_LIBS"
8616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8618 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8619 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8620 cat >> confdefs.h <<EOF
8621 #define $ac_tr_lib 1
8627 echo "$ac_t""no" 1>&6
8630 for ac_func in bigcrypt
8632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8633 echo "configure:8634: checking for $ac_func" >&5
8634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8635 echo $ac_n "(cached) $ac_c" 1>&6
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 /* System header to define __stub macros and hopefully few prototypes,
8641 which can conflict with char $ac_func(); below. */
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8650 /* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8663 eval "ac_cv_func_$ac_func=yes"
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8668 eval "ac_cv_func_$ac_func=no"
8673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8676 cat >> confdefs.h <<EOF
8677 #define $ac_tr_func 1
8681 echo "$ac_t""no" 1>&6
8690 *-lsecurity*) for ac_func in getprpwnam
8692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8693 echo "configure:8694: checking for $ac_func" >&5
8694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* System header to define __stub macros and hopefully few prototypes,
8701 which can conflict with char $ac_func(); below. */
8703 /* Override any gcc2 internal prototype to avoid an error. */
8704 /* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
8710 /* The GNU C library defines this for functions which it implements
8711 to always fail with ENOSYS. Some functions are actually named
8712 something starting with __ and the normal name is an alias. */
8713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8721 if { (eval echo configure:8722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8723 eval "ac_cv_func_$ac_func=yes"
8725 echo "configure: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8728 eval "ac_cv_func_$ac_func=no"
8733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8734 echo "$ac_t""yes" 1>&6
8735 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8736 cat >> confdefs.h <<EOF
8737 #define $ac_tr_func 1
8741 echo "$ac_t""no" 1>&6
8745 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8746 echo "configure:8747: checking for getprpwnam in -lsecurity" >&5
8747 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8751 ac_save_LIBS="$LIBS"
8752 LIBS="-lsecurity $LIBS"
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 /* Override any gcc2 internal prototype to avoid an error. */
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8767 eval "ac_cv_lib_$ac_lib_var=yes"
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8772 eval "ac_cv_lib_$ac_lib_var=no"
8775 LIBS="$ac_save_LIBS"
8778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8779 echo "$ac_t""yes" 1>&6
8780 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8781 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8782 cat >> confdefs.h <<EOF
8783 #define $ac_tr_lib 1
8786 LIBS="-lsecurity $LIBS"
8789 echo "$ac_t""no" 1>&6
8792 for ac_func in getprpwnam
8794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8795 echo "configure:8796: checking for $ac_func" >&5
8796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8797 echo $ac_n "(cached) $ac_c" 1>&6
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char $ac_func(); below. */
8805 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8812 /* The GNU C library defines this for functions which it implements
8813 to always fail with ENOSYS. Some functions are actually named
8814 something starting with __ and the normal name is an alias. */
8815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8823 if { (eval echo configure:8824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8825 eval "ac_cv_func_$ac_func=yes"
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8830 eval "ac_cv_func_$ac_func=no"
8835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8836 echo "$ac_t""yes" 1>&6
8837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8838 cat >> confdefs.h <<EOF
8839 #define $ac_tr_func 1
8843 echo "$ac_t""no" 1>&6
8851 *-lsec*) for ac_func in getprpwnam
8853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8854 echo "configure:8855: checking for $ac_func" >&5
8855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char $ac_func(); below. */
8864 /* Override any gcc2 internal prototype to avoid an error. */
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8871 /* The GNU C library defines this for functions which it implements
8872 to always fail with ENOSYS. Some functions are actually named
8873 something starting with __ and the normal name is an alias. */
8874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8882 if { (eval echo configure:8883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8884 eval "ac_cv_func_$ac_func=yes"
8886 echo "configure: failed program was:" >&5
8887 cat conftest.$ac_ext >&5
8889 eval "ac_cv_func_$ac_func=no"
8894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8895 echo "$ac_t""yes" 1>&6
8896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8897 cat >> confdefs.h <<EOF
8898 #define $ac_tr_func 1
8902 echo "$ac_t""no" 1>&6
8906 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8907 echo "configure:8908: checking for getprpwnam in -lsec" >&5
8908 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8912 ac_save_LIBS="$LIBS"
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 /* Override any gcc2 internal prototype to avoid an error. */
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8926 if { (eval echo configure:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8928 eval "ac_cv_lib_$ac_lib_var=yes"
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8933 eval "ac_cv_lib_$ac_lib_var=no"
8936 LIBS="$ac_save_LIBS"
8939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8940 echo "$ac_t""yes" 1>&6
8941 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8943 cat >> confdefs.h <<EOF
8944 #define $ac_tr_lib 1
8950 echo "$ac_t""no" 1>&6
8953 for ac_func in getprpwnam
8955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8956 echo "configure:8957: checking for $ac_func" >&5
8957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8960 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 /* System header to define __stub macros and hopefully few prototypes,
8964 which can conflict with char $ac_func(); below. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8984 if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8986 eval "ac_cv_func_$ac_func=yes"
8988 echo "configure: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8991 eval "ac_cv_func_$ac_func=no"
8996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8997 echo "$ac_t""yes" 1>&6
8998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8999 cat >> confdefs.h <<EOF
9000 #define $ac_tr_func 1
9004 echo "$ac_t""no" 1>&6
9012 # this bit needs to be modified for each OS that is suported by
9013 # smbwrapper. You need to specify how to created a shared library and
9014 # how to compile C code to produce PIC object files
9016 # these are the defaults, good for lots of systems
9025 # Assume non-shared by default and override below
9027 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9028 echo "configure:9029: checking ability to build shared libraries" >&5
9030 # and these are for particular systems
9032 *linux*) cat >> confdefs.h <<\EOF
9038 DYNEXP="-Wl,--export-dynamic"
9040 SONAMEFLAG="-Wl,-soname="
9041 cat >> confdefs.h <<\EOF
9042 #define STAT_ST_BLOCKSIZE 512
9046 *solaris*) cat >> confdefs.h <<\EOF
9053 if test "${GCC}" = "yes"; then
9055 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9060 ## ${CFLAGS} added for building 64-bit shared
9061 ## libs using Sun's Compiler
9062 LDSHFLAGS="-G \${CFLAGS}"
9066 cat >> confdefs.h <<\EOF
9067 #define STAT_ST_BLOCKSIZE 512
9071 *sunos*) cat >> confdefs.h <<\EOF
9077 SONAMEFLAG="-Wl,-h,"
9078 PICFLAG="-KPIC" # Is this correct for SunOS
9079 cat >> confdefs.h <<\EOF
9080 #define STAT_ST_BLOCKSIZE 512
9084 *freebsd*) BLDSHARED="true"
9086 DYNEXP="-Wl,--export-dynamic"
9087 SONAMEFLAG="-Wl,-soname,"
9088 PICFLAG="-fPIC -DPIC"
9089 cat >> confdefs.h <<\EOF
9090 #define STAT_ST_BLOCKSIZE 512
9094 *openbsd*) BLDSHARED="true"
9096 DYNEXP="-Wl,-Bdynamic"
9097 SONAMEFLAG="-Wl,-soname,"
9099 cat >> confdefs.h <<\EOF
9100 #define STAT_ST_BLOCKSIZE 512
9104 *irix*) cat >> confdefs.h <<\EOF
9109 *irix6*) cat >> confdefs.h <<\EOF
9115 ATTEMPT_WRAP32_BUILD=yes
9117 LDSHFLAGS="-set_version sgi1.0 -shared"
9118 SONAMEFLAG="-soname "
9120 if test "${GCC}" = "yes"; then
9125 cat >> confdefs.h <<\EOF
9126 #define STAT_ST_BLOCKSIZE 512
9130 *aix*) cat >> confdefs.h <<\EOF
9135 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
9136 DYNEXP="-Wl,-brtl,-bexpall"
9138 if test "${GCC}" != "yes"; then
9139 ## for funky AIX compiler using strncpy()
9140 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9143 cat >> confdefs.h <<\EOF
9144 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9148 *hpux*) cat >> confdefs.h <<\EOF
9153 # Use special PIC flags for the native HP-UX compiler.
9154 if test $ac_cv_prog_cc_Ae = yes; then
9157 LDSHFLAGS="-B symbolic -b -z"
9162 cat >> confdefs.h <<\EOF
9163 #define STAT_ST_BLOCKSIZE 8192
9167 *qnx*) cat >> confdefs.h <<\EOF
9171 cat >> confdefs.h <<\EOF
9172 #define STAT_ST_BLOCKSIZE 512
9176 *osf*) cat >> confdefs.h <<\EOF
9182 SONAMEFLAG="-Wl,-soname,"
9184 cat >> confdefs.h <<\EOF
9185 #define STAT_ST_BLOCKSIZE 512
9189 *sco*) cat >> confdefs.h <<\EOF
9193 cat >> confdefs.h <<\EOF
9194 #define STAT_ST_BLOCKSIZE 512
9198 *unixware*) cat >> confdefs.h <<\EOF
9204 SONAMEFLAG="-Wl,-soname,"
9206 cat >> confdefs.h <<\EOF
9207 #define STAT_ST_BLOCKSIZE 512
9211 *next2*) cat >> confdefs.h <<\EOF
9215 cat >> confdefs.h <<\EOF
9216 #define STAT_ST_BLOCKSIZE 512
9220 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9221 set dummy groff; ac_word=$2
9222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9223 echo "configure:9224: checking for $ac_word" >&5
9224 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
9227 if test -n "$ROFF"; then
9228 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9232 for ac_dir in $ac_dummy; do
9233 test -z "$ac_dir" && ac_dir=.
9234 if test -f $ac_dir/$ac_word; then
9235 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9242 ROFF="$ac_cv_prog_ROFF"
9243 if test -n "$ROFF"; then
9244 echo "$ac_t""$ROFF" 1>&6
9246 echo "$ac_t""no" 1>&6
9249 cat >> confdefs.h <<\EOF
9250 #define STAT_ST_BLOCKSIZE 512
9254 *sysv4*) cat >> confdefs.h <<\EOF
9259 *-univel-*) if test "$GCC" != yes ; then
9260 cat >> confdefs.h <<\EOF
9261 #define HAVE_MEMSET 1
9268 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9269 #define RELIANTUNIX 1
9273 cat >> confdefs.h <<\EOF
9274 #define STAT_ST_BLOCKSIZE 512
9279 *sysv5*) cat >> confdefs.h <<\EOF
9283 if test "$GCC" != yes ; then
9284 cat >> confdefs.h <<\EOF
9285 #define HAVE_MEMSET 1
9290 cat >> confdefs.h <<\EOF
9291 #define STAT_ST_BLOCKSIZE 512
9296 cat >> confdefs.h <<\EOF
9297 #define STAT_ST_BLOCKSIZE 512
9303 echo "$ac_t""$BLDSHARED" 1>&6
9304 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9305 echo "configure:9306: checking linker flags for shared libraries" >&5
9306 echo "$ac_t""$LDSHFLAGS" 1>&6
9307 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9308 echo "configure:9309: checking compiler flags for position-independent code" >&5
9309 echo "$ac_t""$PICFLAGS" 1>&6
9311 #######################################################
9312 # test whether building a shared library actually works
9313 if test $BLDSHARED = true; then
9314 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9315 echo "configure:9316: checking whether building shared libraries actually works" >&5
9316 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9317 echo $ac_n "(cached) $ac_c" 1>&6
9320 ac_cv_shlib_works=no
9321 # try building a trivial shared library
9322 if test "$PICSUFFIX" = "po"; then
9323 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9324 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9325 ac_cv_shlib_works=yes
9327 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
9328 mv shlib.$PICSUFFIX shlib.po &&
9329 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9330 ac_cv_shlib_works=yes
9332 rm -f shlib.so shlib.po
9336 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9337 if test $ac_cv_shlib_works = no; then
9343 # this updates our target list if we can build shared libs
9344 if test $BLDSHARED = true; then
9345 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9347 LIBSMBCLIENT_SHARED=
9352 echo $ac_n "checking for long long""... $ac_c" 1>&6
9353 echo "configure:9354: checking for long long" >&5
9354 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9355 echo $ac_n "(cached) $ac_c" 1>&6
9358 if test "$cross_compiling" = yes; then
9359 samba_cv_have_longlong=cross
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9365 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9367 if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9369 samba_cv_have_longlong=yes
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9374 samba_cv_have_longlong=no
9381 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9382 if test x"$samba_cv_have_longlong" = x"yes"; then
9383 cat >> confdefs.h <<\EOF
9384 #define HAVE_LONGLONG 1
9390 # Check if the compiler supports the LL prefix on long long integers.
9393 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9394 echo "configure:9395: checking for LL suffix on long long integers" >&5
9395 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9399 cat > conftest.$ac_ext <<EOF
9400 #line 9401 "configure"
9401 #include "confdefs.h"
9404 long long i = 0x8000000000LL
9407 if { (eval echo configure:9408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9409 samba_cv_compiler_supports_ll=yes
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9414 samba_cv_compiler_supports_ll=no
9419 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9420 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9421 cat >> confdefs.h <<\EOF
9422 #define COMPILER_SUPPORTS_LL 1
9428 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9429 echo "configure:9430: checking for 64 bit off_t" >&5
9430 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
9434 if test "$cross_compiling" = yes; then
9435 samba_cv_SIZEOF_OFF_T=cross
9437 cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9441 #include <sys/stat.h>
9442 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9444 if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9446 samba_cv_SIZEOF_OFF_T=yes
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9451 samba_cv_SIZEOF_OFF_T=no
9458 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9459 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9460 cat >> confdefs.h <<\EOF
9461 #define SIZEOF_OFF_T 8
9466 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9467 echo "configure:9468: checking for off64_t" >&5
9468 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9472 if test "$cross_compiling" = yes; then
9473 samba_cv_HAVE_OFF64_T=cross
9475 cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9479 #if defined(HAVE_UNISTD_H)
9483 #include <sys/stat.h>
9484 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9486 if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9488 samba_cv_HAVE_OFF64_T=yes
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9493 samba_cv_HAVE_OFF64_T=no
9500 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9501 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9502 cat >> confdefs.h <<\EOF
9503 #define HAVE_OFF64_T 1
9508 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9509 echo "configure:9510: checking for 64 bit ino_t" >&5
9510 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9514 if test "$cross_compiling" = yes; then
9515 samba_cv_SIZEOF_INO_T=cross
9517 cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9521 #include <sys/stat.h>
9522 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9524 if { (eval echo configure:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9526 samba_cv_SIZEOF_INO_T=yes
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9531 samba_cv_SIZEOF_INO_T=no
9538 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9539 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9540 cat >> confdefs.h <<\EOF
9541 #define SIZEOF_INO_T 8
9546 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9547 echo "configure:9548: checking for ino64_t" >&5
9548 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9552 if test "$cross_compiling" = yes; then
9553 samba_cv_HAVE_INO64_T=cross
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9559 #if defined(HAVE_UNISTD_H)
9563 #include <sys/stat.h>
9564 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9566 if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9568 samba_cv_HAVE_INO64_T=yes
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9573 samba_cv_HAVE_INO64_T=no
9580 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9581 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9582 cat >> confdefs.h <<\EOF
9583 #define HAVE_INO64_T 1
9588 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9589 echo "configure:9590: checking for dev64_t" >&5
9590 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9594 if test "$cross_compiling" = yes; then
9595 samba_cv_HAVE_DEV64_T=cross
9597 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9601 #if defined(HAVE_UNISTD_H)
9605 #include <sys/stat.h>
9606 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9608 if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9610 samba_cv_HAVE_DEV64_T=yes
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9615 samba_cv_HAVE_DEV64_T=no
9622 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9623 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9624 cat >> confdefs.h <<\EOF
9625 #define HAVE_DEV64_T 1
9630 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9631 echo "configure:9632: checking for struct dirent64" >&5
9632 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9636 cat > conftest.$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9640 #if defined(HAVE_UNISTD_H)
9643 #include <sys/types.h>
9649 if { (eval echo configure:9650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9651 samba_cv_HAVE_STRUCT_DIRENT64=yes
9653 echo "configure: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9656 samba_cv_HAVE_STRUCT_DIRENT64=no
9661 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9662 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9663 cat >> confdefs.h <<\EOF
9664 #define HAVE_STRUCT_DIRENT64 1
9669 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9670 echo "configure:9671: checking for major macro" >&5
9671 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9675 if test "$cross_compiling" = yes; then
9676 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9678 cat > conftest.$ac_ext <<EOF
9679 #line 9680 "configure"
9680 #include "confdefs.h"
9682 #if defined(HAVE_UNISTD_H)
9685 #include <sys/types.h>
9686 main() { dev_t dev; int i = major(dev); return 0; }
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_DEVICE_MAJOR_FN=yes
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9695 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9702 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9703 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9704 cat >> confdefs.h <<\EOF
9705 #define HAVE_DEVICE_MAJOR_FN 1
9710 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9711 echo "configure:9712: checking for minor macro" >&5
9712 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9713 echo $ac_n "(cached) $ac_c" 1>&6
9716 if test "$cross_compiling" = yes; then
9717 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9719 cat > conftest.$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9723 #if defined(HAVE_UNISTD_H)
9726 #include <sys/types.h>
9727 main() { dev_t dev; int i = minor(dev); return 0; }
9729 if { (eval echo configure:9730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9731 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9736 samba_cv_HAVE_DEVICE_MINOR_FN=no
9743 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9744 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9745 cat >> confdefs.h <<\EOF
9746 #define HAVE_DEVICE_MINOR_FN 1
9751 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9752 echo "configure:9753: checking for unsigned char" >&5
9753 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9757 if test "$cross_compiling" = yes; then
9758 samba_cv_HAVE_UNSIGNED_CHAR=cross
9760 cat > conftest.$ac_ext <<EOF
9761 #line 9762 "configure"
9762 #include "confdefs.h"
9764 main() { char c; c=250; exit((c > 0)?0:1); }
9766 if { (eval echo configure:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9768 samba_cv_HAVE_UNSIGNED_CHAR=yes
9770 echo "configure: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9773 samba_cv_HAVE_UNSIGNED_CHAR=no
9780 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9781 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9782 cat >> confdefs.h <<\EOF
9783 #define HAVE_UNSIGNED_CHAR 1
9788 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9789 echo "configure:9790: checking for sin_len in sock" >&5
9790 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <sys/types.h>
9798 #include <sys/socket.h>
9799 #include <netinet/in.h>
9801 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9804 if { (eval echo configure:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9806 samba_cv_HAVE_SOCK_SIN_LEN=yes
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9811 samba_cv_HAVE_SOCK_SIN_LEN=no
9816 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9817 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9818 cat >> confdefs.h <<\EOF
9819 #define HAVE_SOCK_SIN_LEN 1
9824 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9825 echo "configure:9826: checking whether seekdir returns void" >&5
9826 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9830 cat > conftest.$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9833 #include <sys/types.h>
9835 void seekdir(DIR *d, long loc) { return; }
9840 if { (eval echo configure:9841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9842 samba_cv_SEEKDIR_RETURNS_VOID=yes
9844 echo "configure: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9847 samba_cv_SEEKDIR_RETURNS_VOID=no
9852 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9853 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9854 cat >> confdefs.h <<\EOF
9855 #define SEEKDIR_RETURNS_VOID 1
9860 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9861 echo "configure:9862: checking for __FILE__ macro" >&5
9862 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9866 cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9871 printf("%s\n", __FILE__);
9874 if { (eval echo configure:9875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9876 samba_cv_HAVE_FILE_MACRO=yes
9878 echo "configure: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9881 samba_cv_HAVE_FILE_MACRO=no
9886 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9887 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9888 cat >> confdefs.h <<\EOF
9889 #define HAVE_FILE_MACRO 1
9894 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9895 echo "configure:9896: checking for __FUNCTION__ macro" >&5
9896 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9897 echo $ac_n "(cached) $ac_c" 1>&6
9900 cat > conftest.$ac_ext <<EOF
9901 #line 9902 "configure"
9902 #include "confdefs.h"
9905 printf("%s\n", __FUNCTION__);
9908 if { (eval echo configure:9909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9910 samba_cv_HAVE_FUNCTION_MACRO=yes
9912 echo "configure: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9915 samba_cv_HAVE_FUNCTION_MACRO=no
9920 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9921 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9922 cat >> confdefs.h <<\EOF
9923 #define HAVE_FUNCTION_MACRO 1
9928 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9929 echo "configure:9930: checking if gettimeofday takes tz argument" >&5
9930 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9934 if test "$cross_compiling" = yes; then
9935 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9941 #include <sys/time.h>
9943 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9945 if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9947 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9949 echo "configure: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9952 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9959 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9960 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9961 cat >> confdefs.h <<\EOF
9962 #define HAVE_GETTIMEOFDAY_TZ 1
9967 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9968 echo "configure:9969: checking for __va_copy" >&5
9969 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9973 cat > conftest.$ac_ext <<EOF
9974 #line 9975 "configure"
9975 #include "confdefs.h"
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 samba_cv_HAVE_VA_COPY=yes
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 samba_cv_HAVE_VA_COPY=no
9994 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9995 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9996 cat >> confdefs.h <<\EOF
9997 #define HAVE_VA_COPY 1
10002 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
10003 echo "configure:10004: checking for C99 vsnprintf" >&5
10004 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10008 if test "$cross_compiling" = yes; then
10009 samba_cv_HAVE_C99_VSNPRINTF=cross
10011 cat > conftest.$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10015 #include <sys/types.h>
10016 #include <stdarg.h>
10017 void foo(const char *format, ...) {
10022 va_start(ap, format);
10023 len = vsnprintf(buf, 0, format, ap);
10025 if (len != 5) exit(1);
10027 va_start(ap, format);
10028 len = vsnprintf(0, 0, format, ap);
10030 if (len != 5) exit(1);
10032 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10036 main() { foo("hello"); }
10039 if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10041 samba_cv_HAVE_C99_VSNPRINTF=yes
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10046 samba_cv_HAVE_C99_VSNPRINTF=no
10053 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10054 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
10055 cat >> confdefs.h <<\EOF
10056 #define HAVE_C99_VSNPRINTF 1
10061 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10062 echo "configure:10063: checking for broken readdir" >&5
10063 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10064 echo $ac_n "(cached) $ac_c" 1>&6
10067 if test "$cross_compiling" = yes; then
10068 samba_cv_HAVE_BROKEN_READDIR=cross
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 #include <sys/types.h>
10074 #include <dirent.h>
10075 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10076 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10077 di->d_name[0] == 0) exit(0); exit(1);}
10079 if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10081 samba_cv_HAVE_BROKEN_READDIR=yes
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10086 samba_cv_HAVE_BROKEN_READDIR=no
10093 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10094 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
10095 cat >> confdefs.h <<\EOF
10096 #define HAVE_BROKEN_READDIR 1
10101 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10102 echo "configure:10103: checking for utimbuf" >&5
10103 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10104 echo $ac_n "(cached) $ac_c" 1>&6
10107 cat > conftest.$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 #include <sys/types.h>
10113 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10116 if { (eval echo configure:10117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10118 samba_cv_HAVE_UTIMBUF=yes
10120 echo "configure: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10123 samba_cv_HAVE_UTIMBUF=no
10128 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10129 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_UTIMBUF 1
10137 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
10139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10140 echo "configure:10141: checking for $ac_func" >&5
10141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10142 echo $ac_n "(cached) $ac_c" 1>&6
10144 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 /* System header to define __stub macros and hopefully few prototypes,
10148 which can conflict with char $ac_func(); below. */
10149 #include <assert.h>
10150 /* Override any gcc2 internal prototype to avoid an error. */
10151 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10157 /* The GNU C library defines this for functions which it implements
10158 to always fail with ENOSYS. Some functions are actually named
10159 something starting with __ and the normal name is an alias. */
10160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10168 if { (eval echo configure:10169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10170 eval "ac_cv_func_$ac_func=yes"
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10175 eval "ac_cv_func_$ac_func=no"
10180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10181 echo "$ac_t""yes" 1>&6
10182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10183 cat >> confdefs.h <<EOF
10184 #define $ac_tr_func 1
10188 echo "$ac_t""no" 1>&6
10193 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10194 echo "configure:10195: checking for ut_name in utmp" >&5
10195 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10196 echo $ac_n "(cached) $ac_c" 1>&6
10199 cat > conftest.$ac_ext <<EOF
10200 #line 10201 "configure"
10201 #include "confdefs.h"
10202 #include <sys/types.h>
10205 struct utmp ut; ut.ut_name[0] = 'a';
10208 if { (eval echo configure:10209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10210 samba_cv_HAVE_UT_UT_NAME=yes
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10215 samba_cv_HAVE_UT_UT_NAME=no
10220 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10221 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10222 cat >> confdefs.h <<\EOF
10223 #define HAVE_UT_UT_NAME 1
10228 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10229 echo "configure:10230: checking for ut_user in utmp" >&5
10230 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10234 cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10237 #include <sys/types.h>
10240 struct utmp ut; ut.ut_user[0] = 'a';
10243 if { (eval echo configure:10244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10245 samba_cv_HAVE_UT_UT_USER=yes
10247 echo "configure: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10250 samba_cv_HAVE_UT_UT_USER=no
10255 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10256 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10257 cat >> confdefs.h <<\EOF
10258 #define HAVE_UT_UT_USER 1
10263 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10264 echo "configure:10265: checking for ut_id in utmp" >&5
10265 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10269 cat > conftest.$ac_ext <<EOF
10270 #line 10271 "configure"
10271 #include "confdefs.h"
10272 #include <sys/types.h>
10275 struct utmp ut; ut.ut_id[0] = 'a';
10278 if { (eval echo configure:10279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10280 samba_cv_HAVE_UT_UT_ID=yes
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10285 samba_cv_HAVE_UT_UT_ID=no
10290 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10291 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10292 cat >> confdefs.h <<\EOF
10293 #define HAVE_UT_UT_ID 1
10298 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10299 echo "configure:10300: checking for ut_host in utmp" >&5
10300 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 #include <sys/types.h>
10310 struct utmp ut; ut.ut_host[0] = 'a';
10313 if { (eval echo configure:10314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10315 samba_cv_HAVE_UT_UT_HOST=yes
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10320 samba_cv_HAVE_UT_UT_HOST=no
10325 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10326 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10327 cat >> confdefs.h <<\EOF
10328 #define HAVE_UT_UT_HOST 1
10333 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10334 echo "configure:10335: checking for ut_time in utmp" >&5
10335 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10336 echo $ac_n "(cached) $ac_c" 1>&6
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10342 #include <sys/types.h>
10345 struct utmp ut; time_t t; ut.ut_time = t;
10348 if { (eval echo configure:10349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10350 samba_cv_HAVE_UT_UT_TIME=yes
10352 echo "configure: failed program was:" >&5
10353 cat conftest.$ac_ext >&5
10355 samba_cv_HAVE_UT_UT_TIME=no
10360 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10361 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_UT_UT_TIME 1
10368 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10369 echo "configure:10370: checking for ut_tv in utmp" >&5
10370 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10371 echo $ac_n "(cached) $ac_c" 1>&6
10374 cat > conftest.$ac_ext <<EOF
10375 #line 10376 "configure"
10376 #include "confdefs.h"
10377 #include <sys/types.h>
10380 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10383 if { (eval echo configure:10384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10385 samba_cv_HAVE_UT_UT_TV=yes
10387 echo "configure: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10390 samba_cv_HAVE_UT_UT_TV=no
10395 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10396 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10397 cat >> confdefs.h <<\EOF
10398 #define HAVE_UT_UT_TV 1
10403 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10404 echo "configure:10405: checking for ut_type in utmp" >&5
10405 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412 #include <sys/types.h>
10415 struct utmp ut; ut.ut_type = 0;
10418 if { (eval echo configure:10419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10420 samba_cv_HAVE_UT_UT_TYPE=yes
10422 echo "configure: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10425 samba_cv_HAVE_UT_UT_TYPE=no
10430 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10431 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10432 cat >> confdefs.h <<\EOF
10433 #define HAVE_UT_UT_TYPE 1
10438 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10439 echo "configure:10440: checking for ut_pid in utmp" >&5
10440 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10441 echo $ac_n "(cached) $ac_c" 1>&6
10444 cat > conftest.$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10447 #include <sys/types.h>
10450 struct utmp ut; ut.ut_pid = 0;
10453 if { (eval echo configure:10454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10455 samba_cv_HAVE_UT_UT_PID=yes
10457 echo "configure: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10460 samba_cv_HAVE_UT_UT_PID=no
10465 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10466 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10467 cat >> confdefs.h <<\EOF
10468 #define HAVE_UT_UT_PID 1
10473 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10474 echo "configure:10475: checking for ut_exit in utmp" >&5
10475 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10482 #include <sys/types.h>
10485 struct utmp ut; ut.ut_exit.e_exit = 0;
10488 if { (eval echo configure:10489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10490 samba_cv_HAVE_UT_UT_EXIT=yes
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10495 samba_cv_HAVE_UT_UT_EXIT=no
10500 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10501 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10502 cat >> confdefs.h <<\EOF
10503 #define HAVE_UT_UT_EXIT 1
10508 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10509 echo "configure:10510: checking for ut_addr in utmp" >&5
10510 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10517 #include <sys/types.h>
10520 struct utmp ut; ut.ut_addr = 0;
10523 if { (eval echo configure:10524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10525 samba_cv_HAVE_UT_UT_ADDR=yes
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 samba_cv_HAVE_UT_UT_ADDR=no
10535 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10536 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10537 cat >> confdefs.h <<\EOF
10538 #define HAVE_UT_UT_ADDR 1
10543 if test x$ac_cv_func_pututline = xyes ; then
10544 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10545 echo "configure:10546: checking whether pututline returns pointer" >&5
10546 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <sys/types.h>
10556 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10559 if { (eval echo configure:10560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10561 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10563 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10566 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10571 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10572 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10573 cat >> confdefs.h <<\EOF
10574 #define PUTUTLINE_RETURNS_UTMP 1
10580 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10581 echo "configure:10582: checking for ut_syslen in utmpx" >&5
10582 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10583 echo $ac_n "(cached) $ac_c" 1>&6
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10589 #include <sys/types.h>
10592 struct utmpx ux; ux.ut_syslen = 0;
10595 if { (eval echo configure:10596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10597 samba_cv_HAVE_UX_UT_SYSLEN=yes
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10602 samba_cv_HAVE_UX_UT_SYSLEN=no
10607 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10608 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10609 cat >> confdefs.h <<\EOF
10610 #define HAVE_UX_UT_SYSLEN 1
10616 #################################################
10617 # check for libiconv support
10618 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10619 echo "configure:10620: checking whether to use libiconv" >&5
10620 # Check whether --with-libiconv or --without-libiconv was given.
10621 if test "${with_libiconv+set}" = set; then
10622 withval="$with_libiconv"
10625 echo "$ac_t""no" 1>&6
10628 echo "$ac_t""yes" 1>&6
10629 CFLAGS="$CFLAGS -I$withval/include"
10630 LDFLAGS="$LDFLAGS -L$withval/lib"
10631 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10632 echo "configure:10633: checking for iconv_open in -liconv" >&5
10633 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10635 echo $ac_n "(cached) $ac_c" 1>&6
10637 ac_save_LIBS="$LIBS"
10638 LIBS="-liconv $LIBS"
10639 cat > conftest.$ac_ext <<EOF
10640 #line 10641 "configure"
10641 #include "confdefs.h"
10642 /* Override any gcc2 internal prototype to avoid an error. */
10643 /* We use char because int might match the return type of a gcc2
10644 builtin and then its argument prototype would still apply. */
10651 if { (eval echo configure:10652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10653 eval "ac_cv_lib_$ac_lib_var=yes"
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10658 eval "ac_cv_lib_$ac_lib_var=no"
10661 LIBS="$ac_save_LIBS"
10664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10665 echo "$ac_t""yes" 1>&6
10666 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10668 cat >> confdefs.h <<EOF
10669 #define $ac_tr_lib 1
10672 LIBS="-liconv $LIBS"
10675 echo "$ac_t""no" 1>&6
10678 cat >> confdefs.h <<EOF
10679 #define WITH_LIBICONV "${withval}"
10685 echo "$ac_t""no" 1>&6
10692 # check for iconv in libc
10693 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10694 echo "configure:10695: checking for working iconv" >&5
10695 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10696 echo $ac_n "(cached) $ac_c" 1>&6
10699 if test "$cross_compiling" = yes; then
10700 samba_cv_HAVE_NATIVE_ICONV=cross
10702 cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure"
10704 #include "confdefs.h"
10708 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10709 if (cd == 0 || cd == (iconv_t)-1) return -1;
10714 if { (eval echo configure:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10716 samba_cv_HAVE_NATIVE_ICONV=yes
10718 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10721 samba_cv_HAVE_NATIVE_ICONV=no
10728 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10729 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10730 cat >> confdefs.h <<\EOF
10731 #define HAVE_NATIVE_ICONV 1
10737 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10738 echo "configure:10739: checking for Linux kernel oplocks" >&5
10739 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10743 if test "$cross_compiling" = yes; then
10744 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10750 #include <sys/types.h>
10753 #define F_GETLEASE 1025
10756 int fd = open("/dev/null", O_RDONLY);
10757 return fcntl(fd, F_GETLEASE, 0) == -1;
10761 if { (eval echo configure:10762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10763 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10765 echo "configure: failed program was:" >&5
10766 cat conftest.$ac_ext >&5
10768 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10775 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10776 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10777 cat >> confdefs.h <<\EOF
10778 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10783 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10784 echo "configure:10785: checking for kernel change notify support" >&5
10785 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10786 echo $ac_n "(cached) $ac_c" 1>&6
10789 if test "$cross_compiling" = yes; then
10790 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10796 #include <sys/types.h>
10798 #include <signal.h>
10800 #define F_NOTIFY 1026
10803 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10807 if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10809 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10811 echo "configure: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10814 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10821 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10822 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10823 cat >> confdefs.h <<\EOF
10824 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10829 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10830 echo "configure:10831: checking for kernel share modes" >&5
10831 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10835 if test "$cross_compiling" = yes; then
10836 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10838 cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10842 #include <sys/types.h>
10844 #include <signal.h>
10845 #include <sys/file.h>
10847 #define LOCK_MAND 32
10848 #define LOCK_READ 64
10851 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10855 if { (eval echo configure:10856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10857 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10859 echo "configure: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10862 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10869 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10870 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10871 cat >> confdefs.h <<\EOF
10872 #define HAVE_KERNEL_SHARE_MODES 1
10880 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10881 echo "configure:10882: checking for IRIX kernel oplock type definitions" >&5
10882 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 #include <sys/types.h>
10892 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10895 if { (eval echo configure:10896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10897 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10899 echo "configure: failed program was:" >&5
10900 cat conftest.$ac_ext >&5
10902 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10907 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10908 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10909 cat >> confdefs.h <<\EOF
10910 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10915 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10916 echo "configure:10917: checking for irix specific capabilities" >&5
10917 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10918 echo $ac_n "(cached) $ac_c" 1>&6
10921 if test "$cross_compiling" = yes; then
10922 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 #include <sys/types.h>
10928 #include <sys/capability.h>
10931 if ((cap = cap_get_proc()) == NULL)
10933 cap->cap_effective |= CAP_NETWORK_MGT;
10934 cap->cap_inheritable |= CAP_NETWORK_MGT;
10940 if { (eval echo configure:10941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10942 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10944 echo "configure: failed program was:" >&5
10945 cat conftest.$ac_ext >&5
10947 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10954 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10955 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10956 cat >> confdefs.h <<\EOF
10957 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10963 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10964 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10967 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10968 echo "configure:10969: checking for int16 typedef included by rpc/rpc.h" >&5
10969 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
10973 cat > conftest.$ac_ext <<EOF
10974 #line 10975 "configure"
10975 #include "confdefs.h"
10976 #include <sys/types.h>
10977 #if defined(HAVE_RPC_RPC_H)
10978 #include <rpc/rpc.h>
10984 if { (eval echo configure:10985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10986 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10988 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10991 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10996 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10997 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10998 cat >> confdefs.h <<\EOF
10999 #define HAVE_INT16_FROM_RPC_RPC_H 1
11004 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11005 echo "configure:11006: checking for uint16 typedef included by rpc/rpc.h" >&5
11006 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
11007 echo $ac_n "(cached) $ac_c" 1>&6
11010 cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11013 #include <sys/types.h>
11014 #if defined(HAVE_RPC_RPC_H)
11015 #include <rpc/rpc.h>
11021 if { (eval echo configure:11022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11023 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
11025 echo "configure: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11028 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
11033 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
11034 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
11035 cat >> confdefs.h <<\EOF
11036 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11041 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11042 echo "configure:11043: checking for int32 typedef included by rpc/rpc.h" >&5
11043 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11050 #include <sys/types.h>
11051 #if defined(HAVE_RPC_RPC_H)
11052 #include <rpc/rpc.h>
11058 if { (eval echo configure:11059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11060 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
11062 echo "configure: failed program was:" >&5
11063 cat conftest.$ac_ext >&5
11065 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
11070 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11071 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
11072 cat >> confdefs.h <<\EOF
11073 #define HAVE_INT32_FROM_RPC_RPC_H 1
11078 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11079 echo "configure:11080: checking for uint32 typedef included by rpc/rpc.h" >&5
11080 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11084 cat > conftest.$ac_ext <<EOF
11085 #line 11086 "configure"
11086 #include "confdefs.h"
11087 #include <sys/types.h>
11088 #if defined(HAVE_RPC_RPC_H)
11089 #include <rpc/rpc.h>
11095 if { (eval echo configure:11096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11097 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
11099 echo "configure: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11102 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
11107 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11108 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
11109 cat >> confdefs.h <<\EOF
11110 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11116 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11117 echo "configure:11118: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11118 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11125 #include <sys/types.h>
11126 #ifdef HAVE_SYS_SECURITY_H
11127 #include <sys/security.h>
11129 #endif /* HAVE_SYS_SECURITY_H */
11130 #if defined(HAVE_RPC_RPC_H)
11131 #include <rpc/rpc.h>
11137 if { (eval echo configure:11138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11139 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
11149 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11150 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
11151 cat >> confdefs.h <<\EOF
11152 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11157 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11158 echo "configure:11159: checking for test routines" >&5
11159 if test "$cross_compiling" = yes; then
11160 echo "configure: warning: cannot run when cross-compiling" 1>&2
11162 cat > conftest.$ac_ext <<EOF
11163 #line 11164 "configure"
11164 #include "confdefs.h"
11165 #include "${srcdir-.}/tests/trivial.c"
11167 if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11169 echo "$ac_t""yes" 1>&6
11171 echo "configure: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11174 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11180 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11181 echo "configure:11182: checking for ftruncate extend" >&5
11182 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11186 if test "$cross_compiling" = yes; then
11187 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 #include "${srcdir-.}/tests/ftruncate.c"
11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11196 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11201 samba_cv_HAVE_FTRUNCATE_EXTEND=no
11208 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11209 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
11210 cat >> confdefs.h <<\EOF
11211 #define HAVE_FTRUNCATE_EXTEND 1
11216 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11217 echo "configure:11218: checking for AF_LOCAL socket support" >&5
11218 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11219 echo $ac_n "(cached) $ac_c" 1>&6
11222 if test "$cross_compiling" = yes; then
11223 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11228 #include "${srcdir-.}/tests/unixsock.c"
11230 if { (eval echo configure:11231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11232 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11234 echo "configure: failed program was:" >&5
11235 cat conftest.$ac_ext >&5
11237 samba_cv_HAVE_WORKING_AF_LOCAL=no
11244 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11245 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11247 cat >> confdefs.h <<\EOF
11248 #define HAVE_WORKING_AF_LOCAL 1
11253 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11254 echo "configure:11255: checking for broken getgroups" >&5
11255 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11256 echo $ac_n "(cached) $ac_c" 1>&6
11259 if test "$cross_compiling" = yes; then
11260 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11262 cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11265 #include "${srcdir-.}/tests/getgroups.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_BROKEN_GETGROUPS=yes
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11274 samba_cv_HAVE_BROKEN_GETGROUPS=no
11281 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11282 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11283 cat >> confdefs.h <<\EOF
11284 #define HAVE_BROKEN_GETGROUPS 1
11289 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11290 echo "configure:11291: checking whether getpass should be replaced" >&5
11291 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11295 SAVE_CPPFLAGS="$CPPFLAGS"
11296 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11297 cat > conftest.$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11301 #define REPLACE_GETPASS 1
11302 #define NO_CONFIG_H 1
11303 #define main dont_declare_main
11304 #include "${srcdir-.}/lib/getsmbpass.c"
11311 if { (eval echo configure:11312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11313 samba_cv_REPLACE_GETPASS=yes
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 samba_cv_REPLACE_GETPASS=no
11321 CPPFLAGS="$SAVE_CPPFLAGS"
11325 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11326 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11327 cat >> confdefs.h <<\EOF
11328 #define REPLACE_GETPASS 1
11333 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11334 echo "configure:11335: checking for broken inet_ntoa" >&5
11335 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11336 echo $ac_n "(cached) $ac_c" 1>&6
11339 if test "$cross_compiling" = yes; then
11340 samba_cv_REPLACE_INET_NTOA=cross
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11347 #include <sys/types.h>
11348 #include <netinet/in.h>
11349 #ifdef HAVE_ARPA_INET_H
11350 #include <arpa/inet.h>
11352 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11353 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11354 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11359 samba_cv_REPLACE_INET_NTOA=yes
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11364 samba_cv_REPLACE_INET_NTOA=no
11371 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11372 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11373 cat >> confdefs.h <<\EOF
11374 #define REPLACE_INET_NTOA 1
11379 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11380 echo "configure:11381: checking for secure mkstemp" >&5
11381 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11385 if test "$cross_compiling" = yes; then
11386 samba_cv_HAVE_SECURE_MKSTEMP=cross
11388 cat > conftest.$ac_ext <<EOF
11389 #line 11390 "configure"
11390 #include "confdefs.h"
11391 #include <stdlib.h>
11392 #include <sys/types.h>
11393 #include <sys/stat.h>
11394 #include <unistd.h>
11397 char tpl[20]="/tmp/test.XXXXXX";
11398 int fd = mkstemp(tpl);
11399 if (fd == -1) exit(1);
11401 if (fstat(fd, &st) != 0) exit(1);
11402 if ((st.st_mode & 0777) != 0600) exit(1);
11406 if { (eval echo configure:11407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11408 samba_cv_HAVE_SECURE_MKSTEMP=yes
11410 echo "configure: failed program was:" >&5
11411 cat conftest.$ac_ext >&5
11413 samba_cv_HAVE_SECURE_MKSTEMP=no
11420 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11421 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11422 cat >> confdefs.h <<\EOF
11423 #define HAVE_SECURE_MKSTEMP 1
11428 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11429 echo "configure:11430: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11430 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11434 if test "$cross_compiling" = yes; then
11435 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11440 #include <unistd.h>
11441 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11443 if { (eval echo configure:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11445 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11450 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11457 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11458 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11459 cat >> confdefs.h <<\EOF
11460 #define SYSCONF_SC_NGROUPS_MAX 1
11465 echo $ac_n "checking for root""... $ac_c" 1>&6
11466 echo "configure:11467: checking for root" >&5
11467 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11468 echo $ac_n "(cached) $ac_c" 1>&6
11471 if test "$cross_compiling" = yes; then
11472 samba_cv_HAVE_ROOT=cross
11474 cat > conftest.$ac_ext <<EOF
11475 #line 11476 "configure"
11476 #include "confdefs.h"
11477 main() { exit(getuid() != 0); }
11479 if { (eval echo configure:11480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11481 samba_cv_HAVE_ROOT=yes
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11486 samba_cv_HAVE_ROOT=no
11493 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11494 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11495 cat >> confdefs.h <<\EOF
11496 #define HAVE_ROOT 1
11500 echo "configure: warning: running as non-root will disable some tests" 1>&2
11504 # look for a method of finding the list of network interfaces
11506 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11507 echo "configure:11508: checking for iface AIX" >&5
11508 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11509 echo $ac_n "(cached) $ac_c" 1>&6
11512 if test "$cross_compiling" = yes; then
11513 samba_cv_HAVE_IFACE_AIX=cross
11515 cat > conftest.$ac_ext <<EOF
11516 #line 11517 "configure"
11517 #include "confdefs.h"
11519 #define HAVE_IFACE_AIX 1
11520 #define AUTOCONF_TEST 1
11521 #include "confdefs.h"
11522 #include "${srcdir-.}/lib/interfaces.c"
11524 if { (eval echo configure:11525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11526 samba_cv_HAVE_IFACE_AIX=yes
11528 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11531 samba_cv_HAVE_IFACE_AIX=no
11538 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11539 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11540 iface=yes;cat >> confdefs.h <<\EOF
11541 #define HAVE_IFACE_AIX 1
11546 if test $iface = no; then
11547 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11548 echo "configure:11549: checking for iface ifconf" >&5
11549 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11553 if test "$cross_compiling" = yes; then
11554 samba_cv_HAVE_IFACE_IFCONF=cross
11556 cat > conftest.$ac_ext <<EOF
11557 #line 11558 "configure"
11558 #include "confdefs.h"
11560 #define HAVE_IFACE_IFCONF 1
11561 #define AUTOCONF_TEST 1
11562 #include "confdefs.h"
11563 #include "${srcdir-.}/lib/interfaces.c"
11565 if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11567 samba_cv_HAVE_IFACE_IFCONF=yes
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11572 samba_cv_HAVE_IFACE_IFCONF=no
11579 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11580 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11581 iface=yes;cat >> confdefs.h <<\EOF
11582 #define HAVE_IFACE_IFCONF 1
11588 if test $iface = no; then
11589 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11590 echo "configure:11591: checking for iface ifreq" >&5
11591 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11595 if test "$cross_compiling" = yes; then
11596 samba_cv_HAVE_IFACE_IFREQ=cross
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11600 "configure"
11600 #include "confdefs.h"
11602 #define HAVE_IFACE_IFREQ 1
11603 #define AUTOCONF_TEST 1
11604 #include "confdefs.h"
11605 #include "${srcdir-.}/lib/interfaces.c"
11607 if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11609 samba_cv_HAVE_IFACE_IFREQ=yes
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11614 samba_cv_HAVE_IFACE_IFREQ=no
11621 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11622 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11623 iface=yes;cat >> confdefs.h <<\EOF
11624 #define HAVE_IFACE_IFREQ 1
11631 ################################################
11632 # look for a method of setting the effective uid
11634 if test $seteuid = no; then
11635 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11636 echo "configure:11637: checking for setresuid" >&5
11637 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11638 echo $ac_n "(cached) $ac_c" 1>&6
11641 if test "$cross_compiling" = yes; then
11642 samba_cv_USE_SETRESUID=cross
11644 cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11648 #define AUTOCONF_TEST 1
11649 #define USE_SETRESUID 1
11650 #include "confdefs.h"
11651 #include "${srcdir-.}/lib/util_sec.c"
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11655 samba_cv_USE_SETRESUID=yes
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11660 samba_cv_USE_SETRESUID=no
11667 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11668 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11669 seteuid=yes;cat >> confdefs.h <<\EOF
11670 #define USE_SETRESUID 1
11677 if test $seteuid = no; then
11678 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11679 echo "configure:11680: checking for setreuid" >&5
11680 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11684 if test "$cross_compiling" = yes; then
11685 samba_cv_USE_SETREUID=cross
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11691 #define AUTOCONF_TEST 1
11692 #define USE_SETREUID 1
11693 #include "confdefs.h"
11694 #include "${srcdir-.}/lib/util_sec.c"
11696 if { (eval echo configure:11697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11698 samba_cv_USE_SETREUID=yes
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11703 samba_cv_USE_SETREUID=no
11710 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11711 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11712 seteuid=yes;cat >> confdefs.h <<\EOF
11713 #define USE_SETREUID 1
11719 if test $seteuid = no; then
11720 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11721 echo "configure:11722: checking for seteuid" >&5
11722 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11723 echo $ac_n "(cached) $ac_c" 1>&6
11726 if test "$cross_compiling" = yes; then
11727 samba_cv_USE_SETEUID=cross
11729 cat > conftest.$ac_ext <<EOF
11730 #line 11731 "configure"
11731 #include "confdefs.h"
11733 #define AUTOCONF_TEST 1
11734 #define USE_SETEUID 1
11735 #include "confdefs.h"
11736 #include "${srcdir-.}/lib/util_sec.c"
11738 if { (eval echo configure:11739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11740 samba_cv_USE_SETEUID=yes
11742 echo "configure: failed program was:" >&5
11743 cat conftest.$ac_ext >&5
11745 samba_cv_USE_SETEUID=no
11752 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11753 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11754 seteuid=yes;cat >> confdefs.h <<\EOF
11755 #define USE_SETEUID 1
11761 if test $seteuid = no; then
11762 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11763 echo "configure:11764: checking for setuidx" >&5
11764 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11765 echo $ac_n "(cached) $ac_c" 1>&6
11768 if test "$cross_compiling" = yes; then
11769 samba_cv_USE_SETUIDX=cross
11771 cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11775 #define AUTOCONF_TEST 1
11776 #define USE_SETUIDX 1
11777 #include "confdefs.h"
11778 #include "${srcdir-.}/lib/util_sec.c"
11780 if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11782 samba_cv_USE_SETUIDX=yes
11784 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11787 samba_cv_USE_SETUIDX=no
11794 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11795 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11796 seteuid=yes;cat >> confdefs.h <<\EOF
11797 #define USE_SETUIDX 1
11804 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11805 echo "configure:11806: checking for working mmap" >&5
11806 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11807 echo $ac_n "(cached) $ac_c" 1>&6
11810 if test "$cross_compiling" = yes; then
11811 samba_cv_HAVE_MMAP=cross
11813 cat > conftest.$ac_ext <<EOF
11814 #line 11815 "configure"
11815 #include "confdefs.h"
11816 #include "${srcdir-.}/tests/shared_mmap.c"
11818 if { (eval echo configure:11819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11820 samba_cv_HAVE_MMAP=yes
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11825 samba_cv_HAVE_MMAP=no
11832 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11833 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11834 cat >> confdefs.h <<\EOF
11835 #define HAVE_MMAP 1
11840 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11841 echo "configure:11842: checking for ftruncate needs root" >&5
11842 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11843 echo $ac_n "(cached) $ac_c" 1>&6
11846 if test "$cross_compiling" = yes; then
11847 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 #include "${srcdir-.}/tests/ftruncroot.c"
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11856 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11858 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11861 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11868 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11869 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11870 cat >> confdefs.h <<\EOF
11871 #define FTRUNCATE_NEEDS_ROOT 1
11876 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11877 echo "configure:11878: checking for fcntl locking" >&5
11878 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11879 echo $ac_n "(cached) $ac_c" 1>&6
11882 if test "$cross_compiling" = yes; then
11883 samba_cv_HAVE_FCNTL_LOCK=cross
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 #include "${srcdir-.}/tests/fcntl_lock.c"
11890 if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11892 samba_cv_HAVE_FCNTL_LOCK=yes
11894 echo "configure: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11897 samba_cv_HAVE_FCNTL_LOCK=no
11904 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11905 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11906 cat >> confdefs.h <<\EOF
11907 #define HAVE_FCNTL_LOCK 1
11912 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11913 echo "configure:11914: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11914 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11918 if test "$cross_compiling" = yes; then
11919 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11921 cat > conftest.$ac_ext <<EOF
11922 #line 11923 "configure"
11923 #include "confdefs.h"
11924 #include "${srcdir-.}/tests/fcntl_lock64.c"
11926 if { (eval echo configure:11927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11928 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11930 echo "configure: failed program was:" >&5
11931 cat conftest.$ac_ext >&5
11933 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11940 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11941 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11942 cat >> confdefs.h <<\EOF
11943 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11950 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11951 echo "configure:11952: checking for 64 bit fcntl locking" >&5
11952 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11953 echo $ac_n "(cached) $ac_c" 1>&6
11956 if test "$cross_compiling" = yes; then
11957 samba_cv_HAVE_STRUCT_FLOCK64=cross
11959 cat > conftest.$ac_ext <<EOF
11960 #line 11961 "configure"
11961 #include "confdefs.h"
11963 #if defined(HAVE_UNISTD_H)
11964 #include <unistd.h>
11967 #include <stdlib.h>
11969 #ifdef HAVE_FCNTL_H
11973 #ifdef HAVE_SYS_FCNTL_H
11974 #include <sys/fcntl.h>
11976 main() { struct flock64 fl64;
11977 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11984 if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11986 samba_cv_HAVE_STRUCT_FLOCK64=yes
11988 echo "configure: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11991 samba_cv_HAVE_STRUCT_FLOCK64=no
11998 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
12000 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
12001 cat >> confdefs.h <<\EOF
12002 #define HAVE_STRUCT_FLOCK64 1
12008 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
12009 echo "configure:12010: checking for st_blocks in struct stat" >&5
12010 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
12014 cat > conftest.$ac_ext <<EOF
12015 #line 12016 "configure"
12016 #include "confdefs.h"
12017 #include <sys/types.h>
12018 #include <sys/stat.h>
12019 #include <unistd.h>
12021 struct stat st; st.st_blocks = 0;
12024 if { (eval echo configure:12025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12026 samba_cv_HAVE_STAT_ST_BLOCKS=yes
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12031 samba_cv_HAVE_STAT_ST_BLOCKS=no
12036 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12037 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
12038 cat >> confdefs.h <<\EOF
12039 #define HAVE_STAT_ST_BLOCKS 1
12044 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12045 echo "configure:12046: checking for st_blksize in struct stat" >&5
12046 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12047 echo $ac_n "(cached) $ac_c" 1>&6
12050 cat > conftest.$ac_ext <<EOF
12051 #line 12052 "configure"
12052 #include "confdefs.h"
12053 #include <sys/types.h>
12054 #include <sys/stat.h>
12055 #include <unistd.h>
12057 struct stat st; st.st_blksize = 0;
12060 if { (eval echo configure:12061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12062 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
12064 echo "configure: failed program was:" >&5
12065 cat conftest.$ac_ext >&5
12067 samba_cv_HAVE_STAT_ST_BLKSIZE=no
12072 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12073 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
12074 cat >> confdefs.h <<\EOF
12075 #define HAVE_STAT_ST_BLKSIZE 1
12082 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12083 echo "configure:12084: checking for broken RedHat 7.2 system header files" >&5
12084 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12088 cat > conftest.$ac_ext <<EOF
12089 #line 12090 "configure"
12090 #include "confdefs.h"
12092 #ifdef HAVE_SYS_VFS_H
12093 #include <sys/vfs.h>
12095 #ifdef HAVE_SYS_CAPABILITY_H
12096 #include <sys/capability.h>
12103 if { (eval echo configure:12104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12105 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
12115 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12116 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
12117 cat >> confdefs.h <<\EOF
12118 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12125 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12126 echo "configure:12127: checking for broken nisplus include files" >&5
12127 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12131 cat > conftest.$ac_ext <<EOF
12132 #line 12133 "configure"
12133 #include "confdefs.h"
12134 #include <sys/acl.h>
12135 #if defined(HAVE_RPCSVC_NIS_H)
12136 #include <rpcsvc/nis.h>
12142 if { (eval echo configure:12143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12144 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
12146 echo "configure: failed program was:" >&5
12147 cat conftest.$ac_ext >&5
12149 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
12154 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12155 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
12156 cat >> confdefs.h <<\EOF
12157 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12163 #################################################
12164 # check for smbwrapper support
12165 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12166 echo "configure:12167: checking whether to use smbwrapper" >&5
12167 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12168 if test "${with_smbwrapper+set}" = set; then
12169 withval="$with_smbwrapper"
12172 echo "$ac_t""yes" 1>&6
12173 cat >> confdefs.h <<\EOF
12174 #define WITH_SMBWRAPPER 1
12177 WRAPPROG="bin/smbsh\$(EXEEXT)"
12178 WRAP="bin/smbwrapper.$SHLIBEXT"
12180 if test x$ATTEMPT_WRAP32_BUILD = x; then
12183 WRAP32=bin/smbwrapper.32.$SHLIBEXT
12186 # Conditions under which smbwrapper should not be built.
12188 if test x$PICFLAG = x; then
12189 echo No support for PIC code - disabling smbwrapper and smbsh
12193 elif test x$ac_cv_func_syscall = xno; then
12194 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12199 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12200 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
12203 echo "$ac_t""no" 1>&6
12207 echo "$ac_t""no" 1>&6
12212 #################################################
12213 # check for AFS clear-text auth support
12214 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12215 echo "configure:12216: checking whether to use AFS clear-text auth" >&5
12216 # Check whether --with-afs or --without-afs was given.
12217 if test "${with_afs+set}" = set; then
12218 withval="$with_afs"
12221 echo "$ac_t""yes" 1>&6
12222 cat >> confdefs.h <<\EOF
12228 echo "$ac_t""no" 1>&6
12232 echo "$ac_t""no" 1>&6
12238 #################################################
12239 # check for the DFS clear-text auth system
12240 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12241 echo "configure:12242: checking whether to use DFS clear-text auth" >&5
12242 # Check whether --with-dfs or --without-dfs was given.
12243 if test "${with_dfs+set}" = set; then
12244 withval="$with_dfs"
12247 echo "$ac_t""yes" 1>&6
12248 cat >> confdefs.h <<\EOF
12254 echo "$ac_t""no" 1>&6
12258 echo "$ac_t""no" 1>&6
12263 #################################################
12264 # active directory support
12266 with_ads_support=yes
12267 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12268 echo "configure:12269: checking whether to use Active Directory" >&5
12270 # Check whether --with-ads or --without-ads was given.
12271 if test "${with_ads+set}" = set; then
12272 withval="$with_ads"
12275 with_ads_support=no
12281 if test x"$with_ads_support" = x"yes"; then
12282 cat >> confdefs.h <<\EOF
12288 echo "$ac_t""$with_ads_support" 1>&6
12291 if test x"$with_ads_support" = x"yes"; then
12293 #################################################
12294 # check for location of Kerberos 5 install
12295 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12296 echo "configure:12297: checking for kerberos 5 install path" >&5
12297 # Check whether --with-krb5 or --without-krb5 was given.
12298 if test "${with_krb5+set}" = set; then
12299 withval="$with_krb5"
12302 echo "$ac_t""no" 1>&6
12305 echo "$ac_t""yes" 1>&6
12306 LIBS="$LIBS -lkrb5"
12307 CFLAGS="$CFLAGS -I$withval/include"
12308 CPPFLAGS="$CPPFLAGS -I$withval/include"
12309 LDFLAGS="$LDFLAGS -L$withval/lib"
12314 echo "$ac_t""no" 1>&6
12320 if test x$FOUND_KRB5 = x"no"; then
12321 #################################################
12322 # see if this box has the SuSE location for the heimdal kerberos implementation
12323 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12324 echo "configure:12325: checking for /usr/include/heimdal" >&5
12325 if test -d /usr/include/heimdal; then
12326 CFLAGS="$CFLAGS -I/usr/include/heimdal"
12327 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
12328 echo "$ac_t""yes" 1>&6
12330 echo "$ac_t""no" 1>&6
12335 if test x$FOUND_KRB5 = x"no"; then
12336 #################################################
12337 # see if this box has the RedHat location for kerberos
12338 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12339 echo "configure:12340: checking for /usr/kerberos" >&5
12340 if test -d /usr/kerberos; then
12341 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12342 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12343 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12344 echo "$ac_t""yes" 1>&6
12346 echo "$ac_t""no" 1>&6
12351 # now check for krb5.h. Some systems have the libraries without the headers!
12352 # note that this check is done here to allow for different kerberos
12354 for ac_hdr in krb5.h
12356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12358 echo "configure:12359: checking for $ac_hdr" >&5
12359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12360 echo $ac_n "(cached) $ac_c" 1>&6
12362 cat > conftest.$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12368 { (eval echo configure:12369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12370 if test -z "$ac_err"; then
12372 eval "ac_cv_header_$ac_safe=yes"
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12378 eval "ac_cv_header_$ac_safe=no"
12382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12383 echo "$ac_t""yes" 1>&6
12384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12385 cat >> confdefs.h <<EOF
12386 #define $ac_tr_hdr 1
12390 echo "$ac_t""no" 1>&6
12395 # now check for gssapi headers. This is also done here to allow for
12396 # different kerberos include paths
12397 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12401 echo "configure:12402: checking for $ac_hdr" >&5
12402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12403 echo $ac_n "(cached) $ac_c" 1>&6
12405 cat > conftest.$ac_ext <<EOF
12406 #line 12407 "configure"
12407 #include "confdefs.h"
12410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12411 { (eval echo configure:12412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12413 if test -z "$ac_err"; then
12415 eval "ac_cv_header_$ac_safe=yes"
12418 echo "configure: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12421 eval "ac_cv_header_$ac_safe=no"
12425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12426 echo "$ac_t""yes" 1>&6
12427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12428 cat >> confdefs.h <<EOF
12429 #define $ac_tr_hdr 1
12433 echo "$ac_t""no" 1>&6
12438 ##################################################################
12439 # we might need the k5crypto and com_err libraries on some systems
12440 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12441 echo "configure:12442: checking for _et_list in -lcom_err" >&5
12442 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12446 ac_save_LIBS="$LIBS"
12447 LIBS="-lcom_err $LIBS"
12448 cat > conftest.$ac_ext <<EOF
12449 #line 12450 "configure"
12450 #include "confdefs.h"
12451 /* Override any gcc2 internal prototype to avoid an error. */
12452 /* We use char because int might match the return type of a gcc2
12453 builtin and then its argument prototype would still apply. */
12460 if { (eval echo configure:12461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462 eval "ac_cv_lib_$ac_lib_var=yes"
12464 echo "configure: failed program was:" >&5
12465 cat conftest.$ac_ext >&5
12467 eval "ac_cv_lib_$ac_lib_var=no"
12470 LIBS="$ac_save_LIBS"
12473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12474 echo "$ac_t""yes" 1>&6
12475 LIBS="$LIBS -lcom_err"
12477 echo "$ac_t""no" 1>&6
12480 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12481 echo "configure:12482: checking for krb5_encrypt_data in -lk5crypto" >&5
12482 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12484 echo $ac_n "(cached) $ac_c" 1>&6
12486 ac_save_LIBS="$LIBS"
12487 LIBS="-lk5crypto $LIBS"
12488 cat > conftest.$ac_ext <<EOF
12489 #line 12490 "configure"
12490 #include "confdefs.h"
12491 /* Override any gcc2 internal prototype to avoid an error. */
12492 /* We use char because int might match the return type of a gcc2
12493 builtin and then its argument prototype would still apply. */
12494 char krb5_encrypt_data();
12497 krb5_encrypt_data()
12500 if { (eval echo configure:12501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12502 eval "ac_cv_lib_$ac_lib_var=yes"
12504 echo "configure: failed program was:" >&5
12505 cat conftest.$ac_ext >&5
12507 eval "ac_cv_lib_$ac_lib_var=no"
12510 LIBS="$ac_save_LIBS"
12513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12514 echo "$ac_t""yes" 1>&6
12515 LIBS="$LIBS -lk5crypto"
12517 echo "$ac_t""no" 1>&6
12521 ########################################################
12522 # now see if we can find the krb5 libs in standard paths
12523 # or as specified above
12524 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12525 echo "configure:12526: checking for krb5_mk_req_extended in -lkrb5" >&5
12526 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12530 ac_save_LIBS="$LIBS"
12531 LIBS="-lkrb5 $LIBS"
12532 cat > conftest.$ac_ext <<EOF
12533 #line 12534 "configure"
12534 #include "confdefs.h"
12535 /* Override any gcc2 internal prototype to avoid an error. */
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538 char krb5_mk_req_extended();
12541 krb5_mk_req_extended()
12544 if { (eval echo configure:12545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12546 eval "ac_cv_lib_$ac_lib_var=yes"
12548 echo "configure: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12551 eval "ac_cv_lib_$ac_lib_var=no"
12554 LIBS="$ac_save_LIBS"
12557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12558 echo "$ac_t""yes" 1>&6
12559 LIBS="$LIBS -lkrb5";
12560 cat >> confdefs.h <<\EOF
12561 #define HAVE_KRB5 1
12565 echo "$ac_t""no" 1>&6
12569 ########################################################
12570 # now see if we can find the gssapi libs in standard paths
12571 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12572 echo "configure:12573: checking for gss_display_status in -lgssapi_krb5" >&5
12573 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12575 echo $ac_n "(cached) $ac_c" 1>&6
12577 ac_save_LIBS="$LIBS"
12578 LIBS="-lgssapi_krb5 $LIBS"
12579 cat > conftest.$ac_ext <<EOF
12580 #line 12581 "configure"
12581 #include "confdefs.h"
12582 /* Override any gcc2 internal prototype to avoid an error. */
12583 /* We use char because int might match the return type of a gcc2
12584 builtin and then its argument prototype would still apply. */
12585 char gss_display_status();
12588 gss_display_status()
12591 if { (eval echo configure:12592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12593 eval "ac_cv_lib_$ac_lib_var=yes"
12595 echo "configure: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12598 eval "ac_cv_lib_$ac_lib_var=no"
12601 LIBS="$ac_save_LIBS"
12604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12605 echo "$ac_t""yes" 1>&6
12606 LIBS="$LIBS -lgssapi_krb5";
12607 cat >> confdefs.h <<\EOF
12608 #define HAVE_GSSAPI 1
12612 echo "$ac_t""no" 1>&6
12617 ########################################################
12618 # Compile with LDAP support?
12620 with_ldap_support=yes
12621 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12622 echo "configure:12623: checking whether to use LDAP" >&5
12624 # Check whether --with-ldap or --without-ldap was given.
12625 if test "${with_ldap+set}" = set; then
12626 withval="$with_ldap"
12629 with_ldap_support=no
12635 echo "$ac_t""$with_ldap_support" 1>&6
12637 if test x"$with_ldap_support" = x"yes"; then
12639 ##################################################################
12640 # we might need the lber lib on some systems. To avoid link errors
12641 # this test must be before the libldap test
12642 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12643 echo "configure:12644: checking for ber_scanf in -llber" >&5
12644 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12646 echo $ac_n "(cached) $ac_c" 1>&6
12648 ac_save_LIBS="$LIBS"
12649 LIBS="-llber $LIBS"
12650 cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12653 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12662 if { (eval echo configure:12663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12664 eval "ac_cv_lib_$ac_lib_var=yes"
12666 echo "configure: failed program was:" >&5
12667 cat conftest.$ac_ext >&5
12669 eval "ac_cv_lib_$ac_lib_var=no"
12672 LIBS="$ac_save_LIBS"
12675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12676 echo "$ac_t""yes" 1>&6
12677 LIBS="$LIBS -llber"
12679 echo "$ac_t""no" 1>&6
12683 ########################################################
12684 # now see if we can find the ldap libs in standard paths
12685 if test x$have_ldap != xyes; then
12686 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12687 echo "configure:12688: checking for ldap_domain2hostlist in -lldap" >&5
12688 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12690 echo $ac_n "(cached) $ac_c" 1>&6
12692 ac_save_LIBS="$LIBS"
12693 LIBS="-lldap $LIBS"
12694 cat > conftest.$ac_ext <<EOF
12695 #line 12696 "configure"
12696 #include "confdefs.h"
12697 /* Override any gcc2 internal prototype to avoid an error. */
12698 /* We use char because int might match the return type of a gcc2
12699 builtin and then its argument prototype would still apply. */
12700 char ldap_domain2hostlist();
12703 ldap_domain2hostlist()
12706 if { (eval echo configure:12707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12708 eval "ac_cv_lib_$ac_lib_var=yes"
12710 echo "configure: failed program was:" >&5
12711 cat conftest.$ac_ext >&5
12713 eval "ac_cv_lib_$ac_lib_var=no"
12716 LIBS="$ac_save_LIBS"
12719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12720 echo "$ac_t""yes" 1>&6
12721 LIBS="$LIBS -lldap";
12722 cat >> confdefs.h <<\EOF
12723 #define HAVE_LDAP 1
12727 echo "$ac_t""no" 1>&6
12731 ########################################################
12732 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12733 # Check found in pam_ldap 145.
12734 for ac_func in ldap_set_rebind_proc
12736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12737 echo "configure:12738: checking for $ac_func" >&5
12738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12739 echo $ac_n "(cached) $ac_c" 1>&6
12741 cat > conftest.$ac_ext <<EOF
12742 #line 12743 "configure"
12743 #include "confdefs.h"
12744 /* System header to define __stub macros and hopefully few prototypes,
12745 which can conflict with char $ac_func(); below. */
12746 #include <assert.h>
12747 /* Override any gcc2 internal prototype to avoid an error. */
12748 /* We use char because int might match the return type of a gcc2
12749 builtin and then its argument prototype would still apply. */
12754 /* The GNU C library defines this for functions which it implements
12755 to always fail with ENOSYS. Some functions are actually named
12756 something starting with __ and the normal name is an alias. */
12757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12765 if { (eval echo configure:12766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12767 eval "ac_cv_func_$ac_func=yes"
12769 echo "configure: failed program was:" >&5
12770 cat conftest.$ac_ext >&5
12772 eval "ac_cv_func_$ac_func=no"
12777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12778 echo "$ac_t""yes" 1>&6
12779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12780 cat >> confdefs.h <<EOF
12781 #define $ac_tr_func 1
12785 echo "$ac_t""no" 1>&6
12789 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12790 echo "configure:12791: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12791 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12792 echo $ac_n "(cached) $ac_c" 1>&6
12795 cat > conftest.$ac_ext <<EOF
12796 #line 12797 "configure"
12797 #include "confdefs.h"
12802 ldap_set_rebind_proc(0, 0, 0);
12805 if { (eval echo configure:12806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12807 pam_ldap_cv_ldap_set_rebind_proc=3
12809 echo "configure: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12812 pam_ldap_cv_ldap_set_rebind_proc=2
12817 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12818 cat >> confdefs.h <<EOF
12819 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12825 ########################################################
12826 # Compile with MySQL support?
12827 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
12828 if test "${with_mysql_prefix+set}" = set; then
12829 withval="$with_mysql_prefix"
12830 mysql_prefix="$withval"
12835 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
12836 if test "${with_mysql_exec_prefix+set}" = set; then
12837 withval="$with_mysql_exec_prefix"
12838 mysql_exec_prefix="$withval"
12840 mysql_exec_prefix=""
12843 # Check whether --enable-mysqltest or --disable-mysqltest was given.
12844 if test "${enable_mysqltest+set}" = set; then
12845 enableval="$enable_mysqltest"
12848 enable_mysqltest=yes
12852 if test x$mysql_exec_prefix != x ; then
12853 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
12854 if test x${MYSQL_CONFIG+set} != xset ; then
12855 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
12858 if test x$mysql_prefix != x ; then
12859 mysql_args="$mysql_args --prefix=$mysql_prefix"
12860 if test x${MYSQL_CONFIG+set} != xset ; then
12861 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
12866 # Extract the first word of "mysql_config", so it can be a program name with args.
12867 set dummy mysql_config; ac_word=$2
12868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12869 echo "configure:12870: checking for $ac_word" >&5
12870 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
12871 echo $ac_n "(cached) $ac_c" 1>&6
12873 case "$MYSQL_CONFIG" in
12875 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
12878 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a dos path.
12881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12883 for ac_dir in $ac_dummy; do
12884 test -z "$ac_dir" && ac_dir=.
12885 if test -f $ac_dir/$ac_word; then
12886 ac_cv_path_MYSQL_CONFIG="$ac_dir/$ac_word"
12891 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
12895 MYSQL_CONFIG="$ac_cv_path_MYSQL_CONFIG"
12896 if test -n "$MYSQL_CONFIG"; then
12897 echo "$ac_t""$MYSQL_CONFIG" 1>&6
12899 echo "$ac_t""no" 1>&6
12902 min_mysql_version=0.11.0
12903 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
12904 echo "configure:12905: checking for MYSQL - version >= $min_mysql_version" >&5
12906 if test "$MYSQL_CONFIG" = "no" ; then
12909 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
12910 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
12912 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
12913 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12914 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
12915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12916 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
12917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12918 if test "x$enable_mysqltest" = "xyes" ; then
12919 ac_save_CFLAGS="$CFLAGS"
12920 ac_save_LIBS="$LIBS"
12921 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
12922 LIBS="$LIBS $MYSQL_LIBS"
12923 rm -f conf.mysqltest
12924 if test "$cross_compiling" = yes; then
12925 echo $ac_n "cross compiling; assumed OK... $ac_c"
12927 cat > conftest.$ac_ext <<EOF
12928 #line 12929 "configure"
12929 #include "confdefs.h"
12932 #include <stdlib.h>
12933 #include <string.h>
12937 my_strdup (char *str)
12943 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12944 strcpy (new_str, str);
12952 int main (int argc, char *argv[])
12954 int major, minor, micro;
12957 /* This hangs on some systems (?)
12958 system ("touch conf.mysqltest");
12960 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
12962 /* HP/UX 9 (%@#!) writes to sscanf strings */
12963 tmp_version = my_strdup("$min_mysql_version");
12964 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12965 printf("%s, bad version string\n", "$min_mysql_version");
12969 if (($mysql_major_version > major) ||
12970 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
12971 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
12977 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
12978 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
12979 printf("*** best to upgrade to the required version.\n");
12980 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
12981 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
12982 printf("*** config.cache before re-running configure\n");
12989 if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
13001 CFLAGS="$ac_save_CFLAGS"
13002 LIBS="$ac_save_LIBS"
13005 if test "x$no_mysql" = x ; then
13006 echo "$ac_t""yes" 1>&6
13007 MODULE_MYSQL=bin/mysql.so
13009 echo "$ac_t""no" 1>&6
13010 if test "$MYSQL_CONFIG" = "no" ; then
13011 echo "*** The mysql_config script installed by MYSQL could not be found"
13012 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
13013 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
13014 echo "*** full path to mysql_config."
13016 if test -f conf.mysqltest ; then
13019 echo "*** Could not run MYSQL test program, checking why..."
13020 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13021 LIBS="$LIBS $MYSQL_LIBS"
13022 cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13029 int main(int argc, char *argv[])
13032 #define main K_and_R_C_main
13038 if { (eval echo configure:13039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13040 echo "*** The test program compiled, but did not run. This usually means"
13041 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13042 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13043 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13044 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13045 echo "*** is required on your system"
13047 echo "*** If you have an old version installed, it is best to remove it, although"
13048 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13050 echo "configure: failed program was:" >&5
13051 cat conftest.$ac_ext >&5
13053 echo "*** The test program failed to compile or link. See the file config.log for the"
13054 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13055 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13056 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13059 CFLAGS="$ac_save_CFLAGS"
13060 LIBS="$ac_save_LIBS"
13069 rm -f conf.mysqltest
13071 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13074 ########################################################
13075 # Compile with XML support?
13077 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13078 if test "${with_xml_prefix+set}" = set; then
13079 withval="$with_xml_prefix"
13080 xml_config_prefix="$withval"
13082 xml_config_prefix=""
13085 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13086 if test "${with_xml_exec_prefix+set}" = set; then
13087 withval="$with_xml_exec_prefix"
13088 xml_config_exec_prefix="$withval"
13090 xml_config_exec_prefix=""
13093 # Check whether --enable-xmltest or --disable-xmltest was given.
13094 if test "${enable_xmltest+set}" = set; then
13095 enableval="$enable_xmltest"
13102 if test x$xml_config_exec_prefix != x ; then
13103 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13104 if test x${XML2_CONFIG+set} != xset ; then
13105 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
13108 if test x$xml_config_prefix != x ; then
13109 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
13110 if test x${XML2_CONFIG+set} != xset ; then
13111 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
13115 # Extract the first word of "xml2-config", so it can be a program name with args.
13116 set dummy xml2-config; ac_word=$2
13117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13118 echo "configure:13119: checking for $ac_word" >&5
13119 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13120 echo $ac_n "(cached) $ac_c" 1>&6
13122 case "$XML2_CONFIG" in
13124 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
13127 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a dos path.
13130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13132 for ac_dir in $ac_dummy; do
13133 test -z "$ac_dir" && ac_dir=.
13134 if test -f $ac_dir/$ac_word; then
13135 ac_cv_path_XML2_CONFIG="$ac_dir/$ac_word"
13140 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
13144 XML2_CONFIG="$ac_cv_path_XML2_CONFIG"
13145 if test -n "$XML2_CONFIG"; then
13146 echo "$ac_t""$XML2_CONFIG" 1>&6
13148 echo "$ac_t""no" 1>&6
13151 min_xml_version=2.0.0
13152 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13153 echo "configure:13154: checking for libxml - version >= $min_xml_version" >&5
13155 if test "$XML2_CONFIG" = "no" ; then
13158 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
13159 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
13160 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
13161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13162 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
13163 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13164 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
13165 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13166 if test "x$enable_xmltest" = "xyes" ; then
13167 ac_save_CFLAGS="$CFLAGS"
13168 ac_save_LIBS="$LIBS"
13169 CFLAGS="$CFLAGS $XML_CFLAGS"
13170 LIBS="$XML_LIBS $LIBS"
13172 if test "$cross_compiling" = yes; then
13173 echo $ac_n "cross compiling; assumed OK... $ac_c"
13175 cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13179 #include <stdlib.h>
13181 #include <string.h>
13182 #include <libxml/xmlversion.h>
13187 int xml_major_version, xml_minor_version, xml_micro_version;
13188 int major, minor, micro;
13191 system("touch conf.xmltest");
13193 /* Capture xml2-config output via autoconf/configure variables */
13194 /* HP/UX 9 (%@#!) writes to sscanf strings */
13195 tmp_version = (char *)strdup("$min_xml_version");
13196 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13197 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13202 /* Capture the version information from the header files */
13203 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13204 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13205 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13210 /* Compare xml2-config output to the libxml headers */
13211 if ((xml_major_version != $xml_config_major_version) ||
13212 (xml_minor_version != $xml_config_minor_version) ||
13213 (xml_micro_version != $xml_config_micro_version))
13215 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13216 xml_major_version, xml_minor_version, xml_micro_version);
13217 printf("*** xml2-config (version %d.%d.%d)\n",
13218 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13221 /* Compare the headers to the library to make sure we match */
13222 /* Less than ideal -- doesn't provide us with return value feedback,
13223 * only exits if there's a serious mismatch between header and library.
13225 LIBXML_TEST_VERSION;
13227 /* Test that the library is greater than our minimum version */
13228 if ((xml_major_version > major) ||
13229 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13230 ((xml_major_version == major) && (xml_minor_version == minor) &&
13231 (xml_micro_version >= micro)))
13237 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13238 xml_major_version, xml_minor_version, xml_micro_version);
13239 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13240 major, minor, micro);
13241 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13243 printf("*** If you have already installed a sufficiently new version, this error\n");
13244 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13245 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13246 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13247 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13248 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13249 printf("*** so that the correct libraries are found at run-time))\n");
13255 if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13259 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13267 CFLAGS="$ac_save_CFLAGS"
13268 LIBS="$ac_save_LIBS"
13272 if test "x$no_xml" = x ; then
13273 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13274 MODULE_XML=bin/xml.so
13276 echo "$ac_t""no" 1>&6
13277 if test "$XML2_CONFIG" = "no" ; then
13278 echo "*** The xml2-config script installed by LIBXML could not be found"
13279 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13280 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13281 echo "*** full path to xml2-config."
13283 if test -f conf.xmltest ; then
13286 echo "*** Could not run libxml test program, checking why..."
13287 CFLAGS="$CFLAGS $XML_CFLAGS"
13288 LIBS="$LIBS $XML_LIBS"
13289 cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13293 #include <libxml/xmlversion.h>
13297 LIBXML_TEST_VERSION; return 0;
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13302 echo "*** The test program compiled, but did not run. This usually means"
13303 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13304 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13305 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13306 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13307 echo "*** is required on your system"
13309 echo "*** If you have an old version installed, it is best to remove it, although"
13310 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13312 echo "configure: failed program was:" >&5
13313 cat conftest.$ac_ext >&5
13315 echo "*** The test program failed to compile or link. See the file config.log for the"
13316 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13317 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13318 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13321 CFLAGS="$ac_save_CFLAGS"
13322 LIBS="$ac_save_LIBS"
13334 CFLAGS="$CFLAGS $XML_CFLAGS"
13337 #################################################
13338 # check for automount support
13339 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13340 echo "configure:13341: checking whether to use automount" >&5
13341 # Check whether --with-automount or --without-automount was given.
13342 if test "${with_automount+set}" = set; then
13343 withval="$with_automount"
13346 echo "$ac_t""yes" 1>&6
13347 cat >> confdefs.h <<\EOF
13348 #define WITH_AUTOMOUNT 1
13353 echo "$ac_t""no" 1>&6
13357 echo "$ac_t""no" 1>&6
13362 #################################################
13363 # check for smbmount support
13364 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13365 echo "configure:13366: checking whether to use smbmount" >&5
13366 # Check whether --with-smbmount or --without-smbmount was given.
13367 if test "${with_smbmount+set}" = set; then
13368 withval="$with_smbmount"
13373 echo "$ac_t""yes" 1>&6
13374 cat >> confdefs.h <<\EOF
13375 #define WITH_SMBMOUNT 1
13378 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13381 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13386 echo "$ac_t""no" 1>&6
13390 echo "$ac_t""no" 1>&6
13396 #################################################
13397 # check for a PAM clear-text auth, accounts, password and session support
13398 with_pam_for_crypt=no
13399 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13400 echo "configure:13401: checking whether to use PAM" >&5
13401 # Check whether --with-pam or --without-pam was given.
13402 if test "${with_pam+set}" = set; then
13403 withval="$with_pam"
13406 echo "$ac_t""yes" 1>&6
13407 cat >> confdefs.h <<\EOF
13411 AUTHLIBS="$AUTHLIBS -lpam"
13412 with_pam_for_crypt=yes
13415 echo "$ac_t""no" 1>&6
13419 echo "$ac_t""no" 1>&6
13424 # we can't build a pam module if we don't have pam.
13425 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13426 echo "configure:13427: checking for pam_get_data in -lpam" >&5
13427 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13429 echo $ac_n "(cached) $ac_c" 1>&6
13431 ac_save_LIBS="$LIBS"
13433 cat > conftest.$ac_ext <<EOF
13434 #line 13435 "configure"
13435 #include "confdefs.h"
13436 /* Override any gcc2 internal prototype to avoid an error. */
13437 /* We use char because int might match the return type of a gcc2
13438 builtin and then its argument prototype would still apply. */
13439 char pam_get_data();
13445 if { (eval echo configure:13446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13447 eval "ac_cv_lib_$ac_lib_var=yes"
13449 echo "configure: failed program was:" >&5
13450 cat conftest.$ac_ext >&5
13452 eval "ac_cv_lib_$ac_lib_var=no"
13455 LIBS="$ac_save_LIBS"
13458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13459 echo "$ac_t""yes" 1>&6
13460 cat >> confdefs.h <<\EOF
13461 #define HAVE_LIBPAM 1
13465 echo "$ac_t""no" 1>&6
13469 #################################################
13470 # check for pam_smbpass support
13471 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13472 echo "configure:13473: checking whether to use pam_smbpass" >&5
13473 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13474 if test "${with_pam_smbpass+set}" = set; then
13475 withval="$with_pam_smbpass"
13478 echo "$ac_t""yes" 1>&6
13480 # Conditions under which pam_smbpass should not be built.
13482 if test x$PICFLAG = x; then
13483 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13484 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
13485 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13487 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
13491 echo "$ac_t""no" 1>&6
13495 echo "$ac_t""no" 1>&6
13501 ###############################################
13502 # test for where we get crypt() from, but only
13504 if test x"$with_pam_for_crypt" = x"no"; then
13505 for ac_func in crypt
13507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13508 echo "configure:13509: checking for $ac_func" >&5
13509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13515 /* System header to define __stub macros and hopefully few prototypes,
13516 which can conflict with char $ac_func(); below. */
13517 #include <assert.h>
13518 /* Override any gcc2 internal prototype to avoid an error. */
13519 /* We use char because int might match the return type of a gcc2
13520 builtin and then its argument prototype would still apply. */
13525 /* The GNU C library defines this for functions which it implements
13526 to always fail with ENOSYS. Some functions are actually named
13527 something starting with __ and the normal name is an alias. */
13528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13536 if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13538 eval "ac_cv_func_$ac_func=yes"
13540 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13543 eval "ac_cv_func_$ac_func=no"
13548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13549 echo "$ac_t""yes" 1>&6
13550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13551 cat >> confdefs.h <<EOF
13552 #define $ac_tr_func 1
13556 echo "$ac_t""no" 1>&6
13560 if test x"$ac_cv_func_crypt" = x"no"; then
13561 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13562 echo "configure:13563: checking for crypt in -lcrypt" >&5
13563 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13565 echo $ac_n "(cached) $ac_c" 1>&6
13567 ac_save_LIBS="$LIBS"
13568 LIBS="-lcrypt $LIBS"
13569 cat > conftest.$ac_ext <<EOF
13570 #line 13571 "configure"
13571 #include "confdefs.h"
13572 /* Override any gcc2 internal prototype to avoid an error. */
13573 /* We use char because int might match the return type of a gcc2
13574 builtin and then its argument prototype would still apply. */
13581 if { (eval echo configure:13582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13583 eval "ac_cv_lib_$ac_lib_var=yes"
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13588 eval "ac_cv_lib_$ac_lib_var=no"
13591 LIBS="$ac_save_LIBS"
13594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13595 echo "$ac_t""yes" 1>&6
13596 AUTHLIBS="$AUTHLIBS -lcrypt";
13597 cat >> confdefs.h <<\EOF
13598 #define HAVE_CRYPT 1
13602 echo "$ac_t""no" 1>&6
13609 ## moved after the check for -lcrypt in order to
13610 ## ensure that the necessary libraries are included
13611 ## check checking for truncated salt. Wrapped by the
13612 ## $with_pam_for_crypt variable as above --jerry
13614 if test $with_pam_for_crypt = no; then
13615 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13616 echo "configure:13617: checking for a crypt that needs truncated salt" >&5
13617 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13618 echo $ac_n "(cached) $ac_c" 1>&6
13622 LIBS="$AUTHLIBS $LIBS"
13623 if test "$cross_compiling" = yes; then
13624 samba_cv_HAVE_TRUNCATED_SALT=cross
13626 cat > conftest.$ac_ext <<EOF
13627 #line 13628 "configure"
13628 #include "confdefs.h"
13629 #include "${srcdir-.}/tests/crypttest.c"
13631 if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13633 samba_cv_HAVE_TRUNCATED_SALT=no
13635 echo "configure: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13638 samba_cv_HAVE_TRUNCATED_SALT=yes
13646 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
13647 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
13648 cat >> confdefs.h <<\EOF
13649 #define HAVE_TRUNCATED_SALT 1
13655 # New experimental SAM system
13657 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
13658 echo "configure:13659: checking whether to build the new (experimental) SAM database" >&5
13659 # Check whether --with-sam or --without-sam was given.
13660 if test "${with_sam+set}" = set; then
13661 withval="$with_sam"
13664 echo "$ac_t""yes" 1>&6
13665 cat >> confdefs.h <<\EOF
13671 echo "$ac_t""no" 1>&6
13675 echo "$ac_t""no" 1>&6
13681 ########################################################################################
13683 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
13685 ########################################################################################
13687 #################################################
13688 # check for a LDAP password database configuration backwards compatibility
13689 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
13690 echo "configure:13691: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
13691 # Check whether --with-ldapsam or --without-ldapsam was given.
13692 if test "${with_ldapsam+set}" = set; then
13693 withval="$with_ldapsam"
13696 echo "$ac_t""yes" 1>&6
13697 cat >> confdefs.h <<\EOF
13698 #define WITH_LDAP_SAMCONFIG 1
13703 echo "$ac_t""no" 1>&6
13707 echo "$ac_t""no" 1>&6
13712 #################################################
13713 # check for a TDB password database
13714 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
13715 echo "configure:13716: checking whether to use TDB SAM database" >&5
13716 # Check whether --with-tdbsam or --without-tdbsam was given.
13717 if test "${with_tdbsam+set}" = set; then
13718 withval="$with_tdbsam"
13721 echo "$ac_t""yes" 1>&6
13722 cat >> confdefs.h <<\EOF
13723 #define WITH_TDB_SAM 1
13728 echo "$ac_t""no" 1>&6
13732 echo "$ac_t""no" 1>&6
13737 #################################################
13738 # check for a NISPLUS password database
13739 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
13740 echo "configure:13741: checking whether to use NISPLUS SAM database" >&5
13741 # Check whether --with-nisplussam or --without-nisplussam was given.
13742 if test "${with_nisplussam+set}" = set; then
13743 withval="$with_nisplussam"
13746 echo "$ac_t""yes" 1>&6
13747 cat >> confdefs.h <<\EOF
13748 #define WITH_NISPLUS_SAM 1
13753 echo "$ac_t""no" 1>&6
13757 echo "$ac_t""no" 1>&6
13762 ########################################################################################
13764 ## END OF TESTS FOR SAM BACKENDS.
13766 ########################################################################################
13768 #################################################
13769 # check for a NISPLUS_HOME support
13770 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
13771 echo "configure:13772: checking whether to use NISPLUS_HOME" >&5
13772 # Check whether --with-nisplus-home or --without-nisplus-home was given.
13773 if test "${with_nisplus_home+set}" = set; then
13774 withval="$with_nisplus_home"
13777 echo "$ac_t""yes" 1>&6
13778 cat >> confdefs.h <<\EOF
13779 #define WITH_NISPLUS_HOME 1
13784 echo "$ac_t""no" 1>&6
13788 echo "$ac_t""no" 1>&6
13793 #################################################
13794 # check for syslog logging
13795 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
13796 echo "configure:13797: checking whether to use syslog logging" >&5
13797 # Check whether --with-syslog or --without-syslog was given.
13798 if test "${with_syslog+set}" = set; then
13799 withval="$with_syslog"
13802 echo "$ac_t""yes" 1>&6
13803 cat >> confdefs.h <<\EOF
13804 #define WITH_SYSLOG 1
13809 echo "$ac_t""no" 1>&6
13813 echo "$ac_t""no" 1>&6
13818 #################################################
13819 # check for a shared memory profiling support
13820 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
13821 echo "configure:13822: checking whether to use profiling" >&5
13822 # Check whether --with-profiling-data or --without-profiling-data was given.
13823 if test "${with_profiling_data+set}" = set; then
13824 withval="$with_profiling_data"
13827 echo "$ac_t""yes" 1>&6
13828 cat >> confdefs.h <<\EOF
13829 #define WITH_PROFILE 1
13834 echo "$ac_t""no" 1>&6
13838 echo "$ac_t""no" 1>&6
13844 #################################################
13845 # check for experimental disk-quotas support
13846 QUOTAOBJS=smbd/noquotas.o
13848 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13849 echo "configure:13850: checking whether to support disk-quotas" >&5
13850 # Check whether --with-quotas or --without-quotas was given.
13851 if test "${with_quotas+set}" = set; then
13852 withval="$with_quotas"
13855 echo "$ac_t""yes" 1>&6
13858 # Check for kernel 2.4.x quota braindamage...
13859 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13860 echo "configure:13861: checking for linux 2.4.x quota braindamage.." >&5
13861 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13862 echo $ac_n "(cached) $ac_c" 1>&6
13865 cat > conftest.$ac_ext <<EOF
13866 #line 13867 "configure"
13867 #include "confdefs.h"
13869 #include <sys/types.h>
13870 #include <asm/types.h>
13871 #include <linux/quota.h>
13872 #include <mntent.h>
13873 #include <linux/unistd.h>
13875 struct mem_dqblk D;
13878 if { (eval echo configure:13879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13880 samba_cv_linux_2_4_quota_braindamage=yes
13882 echo "configure: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13885 samba_cv_linux_2_4_quota_braindamage=no
13890 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13891 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13892 cat >> confdefs.h <<\EOF
13893 #define LINUX_QUOTAS_2 1
13897 cat >> confdefs.h <<\EOF
13898 #define LINUX_QUOTAS_1 1
13906 QUOTAOBJS=smbd/quotas.o
13907 cat >> confdefs.h <<\EOF
13908 #define WITH_QUOTAS 1
13913 echo "$ac_t""no" 1>&6
13917 echo "$ac_t""no" 1>&6
13923 #################################################
13924 # check for experimental utmp accounting
13926 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13927 echo "configure:13928: checking whether to support utmp accounting" >&5
13928 # Check whether --with-utmp or --without-utmp was given.
13929 if test "${with_utmp+set}" = set; then
13930 withval="$with_utmp"
13933 echo "$ac_t""yes" 1>&6
13934 cat >> confdefs.h <<\EOF
13935 #define WITH_UTMP 1
13940 echo "$ac_t""no" 1>&6
13944 echo "$ac_t""no" 1>&6
13949 #################################################
13950 # choose native language(s) of man pages
13951 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13952 echo "configure:13953: checking chosen man pages' language(s)" >&5
13953 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13954 if test "${with_manpages_langs+set}" = set; then
13955 withval="$with_manpages_langs"
13958 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13962 manlangs="$withval"
13966 echo "$ac_t""$manlangs" 1>&6
13967 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
13971 echo "$ac_t""$manlangs" 1>&6
13977 #################################################
13978 # should we build libsmbclient?
13980 LIBSMBCLIENT_SHARED=
13982 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13983 echo "configure:13984: checking whether to build the libsmbclient shared library" >&5
13984 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13985 if test "${with_libsmbclient+set}" = set; then
13986 withval="$with_libsmbclient"
13989 echo "$ac_t""no" 1>&6
13992 if test $BLDSHARED = true; then
13993 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13994 LIBSMBCLIENT=libsmbclient
13995 echo "$ac_t""yes" 1>&6
13997 echo "$ac_t""no shared library support" 1>&6
14002 echo "$ac_t""yes" 1>&6
14008 #################################################
14009 # these tests are taken from the GNU fileutils package
14010 echo "checking how to get filesystem space usage" 1>&6
14011 echo "configure:14012: checking how to get filesystem space usage" >&5
14014 # Test for statvfs64.
14015 if test $space = no; then
14017 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
14018 echo "configure:14019: checking statvfs64 function (SVR4)" >&5
14019 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
14020 echo $ac_n "(cached) $ac_c" 1>&6
14022 if test "$cross_compiling" = yes; then
14023 fu_cv_sys_stat_statvfs64=cross
14025 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14029 #if defined(HAVE_UNISTD_H)
14030 #include <unistd.h>
14032 #include <sys/types.h>
14033 #include <sys/statvfs.h>
14036 struct statvfs64 fsd;
14037 exit (statvfs64 (".", &fsd));
14040 if { (eval echo configure:14041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14042 fu_cv_sys_stat_statvfs64=yes
14044 echo "configure: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14047 fu_cv_sys_stat_statvfs64=no
14054 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
14055 if test $fu_cv_sys_stat_statvfs64 = yes; then
14057 cat >> confdefs.h <<\EOF
14058 #define STAT_STATVFS64 1
14064 # Perform only the link test since it seems there are no variants of the
14065 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14066 # because that got a false positive on SCO OSR5. Adding the declaration
14067 # of a `struct statvfs' causes this test to fail (as it should) on such
14068 # systems. That system is reported to work fine with STAT_STATFS4 which
14069 # is what it gets when this test fails.
14070 if test $space = no; then
14072 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14073 echo "configure:14074: checking statvfs function (SVR4)" >&5
14074 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14075 echo $ac_n "(cached) $ac_c" 1>&6
14077 cat > conftest.$ac_ext <<EOF
14078 #line 14079 "configure"
14079 #include "confdefs.h"
14080 #include <sys/types.h>
14081 #include <sys/statvfs.h>
14083 struct statvfs fsd; statvfs (0, &fsd);
14086 if { (eval echo configure:14087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14088 fu_cv_sys_stat_statvfs=yes
14090 echo "configure: failed program was:" >&5
14091 cat conftest.$ac_ext >&5
14093 fu_cv_sys_stat_statvfs=no
14098 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14099 if test $fu_cv_sys_stat_statvfs = yes; then
14101 cat >> confdefs.h <<\EOF
14102 #define STAT_STATVFS 1
14108 if test $space = no; then
14109 # DEC Alpha running OSF/1
14110 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14111 echo "configure:14112: checking for 3-argument statfs function (DEC OSF/1)" >&5
14112 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14113 echo $ac_n "(cached) $ac_c" 1>&6
14115 if test "$cross_compiling" = yes; then
14116 fu_cv_sys_stat_statfs3_osf1=no
14118 cat > conftest.$ac_ext <<EOF
14119 #line 14120 "configure"
14120 #include "confdefs.h"
14122 #include <sys/param.h>
14123 #include <sys/types.h>
14124 #include <sys/mount.h>
14129 exit (statfs (".", &fsd, sizeof (struct statfs)));
14132 if { (eval echo configure:14133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14134 fu_cv_sys_stat_statfs3_osf1=yes
14136 echo "configure: failed program was:" >&5
14137 cat conftest.$ac_ext >&5
14139 fu_cv_sys_stat_statfs3_osf1=no
14146 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14147 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14149 cat >> confdefs.h <<\EOF
14150 #define STAT_STATFS3_OSF1 1
14156 if test $space = no; then
14158 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14159 echo "configure:14160: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14160 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14163 if test "$cross_compiling" = yes; then
14164 fu_cv_sys_stat_statfs2_bsize=no
14166 cat > conftest.$ac_ext <<EOF
14167 #line 14168 "configure"
14168 #include "confdefs.h"
14170 #ifdef HAVE_SYS_PARAM_H
14171 #include <sys/param.h>
14173 #ifdef HAVE_SYS_MOUNT_H
14174 #include <sys/mount.h>
14176 #ifdef HAVE_SYS_VFS_H
14177 #include <sys/vfs.h>
14183 exit (statfs (".", &fsd));
14186 if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14188 fu_cv_sys_stat_statfs2_bsize=yes
14190 echo "configure: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14193 fu_cv_sys_stat_statfs2_bsize=no
14200 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14201 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14203 cat >> confdefs.h <<\EOF
14204 #define STAT_STATFS2_BSIZE 1
14210 if test $space = no; then
14212 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14213 echo "configure:14214: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14214 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14215 echo $ac_n "(cached) $ac_c" 1>&6
14217 if test "$cross_compiling" = yes; then
14218 fu_cv_sys_stat_statfs4=no
14220 cat > conftest.$ac_ext <<EOF
14221 #line 14222 "configure"
14222 #include "confdefs.h"
14223 #include <sys/types.h>
14224 #include <sys/statfs.h>
14228 exit (statfs (".", &fsd, sizeof fsd, 0));
14231 if { (eval echo configure:14232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14233 fu_cv_sys_stat_statfs4=yes
14235 echo "configure: failed program was:" >&5
14236 cat conftest.$ac_ext >&5
14238 fu_cv_sys_stat_statfs4=no
14245 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14246 if test $fu_cv_sys_stat_statfs4 = yes; then
14248 cat >> confdefs.h <<\EOF
14249 #define STAT_STATFS4 1
14255 if test $space = no; then
14256 # 4.4BSD and NetBSD
14257 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14258 echo "configure:14259: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14259 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14260 echo $ac_n "(cached) $ac_c" 1>&6
14262 if test "$cross_compiling" = yes; then
14263 fu_cv_sys_stat_statfs2_fsize=no
14265 cat > conftest.$ac_ext <<EOF
14266 #line 14267 "configure"
14267 #include "confdefs.h"
14268 #include <sys/types.h>
14269 #ifdef HAVE_SYS_PARAM_H
14270 #include <sys/param.h>
14272 #ifdef HAVE_SYS_MOUNT_H
14273 #include <sys/mount.h>
14279 exit (statfs (".", &fsd));
14282 if { (eval echo configure:14283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14284 fu_cv_sys_stat_statfs2_fsize=yes
14286 echo "configure: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14289 fu_cv_sys_stat_statfs2_fsize=no
14296 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14297 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14299 cat >> confdefs.h <<\EOF
14300 #define STAT_STATFS2_FSIZE 1
14306 if test $space = no; then
14308 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14309 echo "configure:14310: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14310 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14311 echo $ac_n "(cached) $ac_c" 1>&6
14313 if test "$cross_compiling" = yes; then
14314 fu_cv_sys_stat_fs_data=no
14316 cat > conftest.$ac_ext <<EOF
14317 #line 14318 "configure"
14318 #include "confdefs.h"
14319 #include <sys/types.h>
14320 #ifdef HAVE_SYS_PARAM_H
14321 #include <sys/param.h>
14323 #ifdef HAVE_SYS_MOUNT_H
14324 #include <sys/mount.h>
14326 #ifdef HAVE_SYS_FS_TYPES_H
14327 #include <sys/fs_types.h>
14331 struct fs_data fsd;
14332 /* Ultrix's statfs returns 1 for success,
14333 0 for not mounted, -1 for failure. */
14334 exit (statfs (".", &fsd) != 1);
14337 if { (eval echo configure:14338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14339 fu_cv_sys_stat_fs_data=yes
14341 echo "configure: failed program was:" >&5
14342 cat conftest.$ac_ext >&5
14344 fu_cv_sys_stat_fs_data=no
14351 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14352 if test $fu_cv_sys_stat_fs_data = yes; then
14354 cat >> confdefs.h <<\EOF
14355 #define STAT_STATFS2_FS_DATA 1
14362 # As a gating factor for large file support, in order to
14363 # use <4GB files we must have the following minimal support
14365 # long long, and a 64 bit off_t or off64_t.
14366 # If we don't have all of these then disable large
14369 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14370 echo "configure:14371: checking if large file support can be enabled" >&5
14371 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14375 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14376 #include <sys/types.h>
14385 if { (eval echo configure:14386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14387 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
14389 echo "configure: failed program was:" >&5
14390 cat conftest.$ac_ext >&5
14392 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
14395 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
14396 cat >> confdefs.h <<\EOF
14397 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14401 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14403 # Check whether --with-spinlocks or --without-spinlocks was given.
14404 if test "${with_spinlocks+set}" = set; then
14405 withval="$with_spinlocks"
14409 if test "x$with_spinlocks" = "xyes"; then
14410 cat >> confdefs.h <<\EOF
14411 #define USE_SPINLOCKS 1
14415 case "$host_cpu" in
14417 cat >> confdefs.h <<\EOF
14418 #define SPARC_SPINLOCKS 1
14423 i386|i486|i586|i686)
14424 cat >> confdefs.h <<\EOF
14425 #define INTEL_SPINLOCKS 1
14431 cat >> confdefs.h <<\EOF
14432 #define MIPS_SPINLOCKS 1
14438 cat >> confdefs.h <<\EOF
14439 #define POWERPC_SPINLOCKS 1
14446 #################################################
14447 # check for ACL support
14449 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14450 echo "configure:14451: checking whether to support ACLs" >&5
14451 # Check whether --with-acl-support or --without-acl-support was given.
14452 if test "${with_acl_support+set}" = set; then
14453 withval="$with_acl_support"
14459 echo "$ac_t""Using UnixWare ACLs" 1>&6
14460 cat >> confdefs.h <<\EOF
14461 #define HAVE_UNIXWARE_ACLS 1
14466 echo "$ac_t""Using solaris ACLs" 1>&6
14467 cat >> confdefs.h <<\EOF
14468 #define HAVE_SOLARIS_ACLS 1
14473 echo "$ac_t""Using HPUX ACLs" 1>&6
14474 cat >> confdefs.h <<\EOF
14475 #define HAVE_HPUX_ACLS 1
14480 echo "$ac_t""Using IRIX ACLs" 1>&6
14481 cat >> confdefs.h <<\EOF
14482 #define HAVE_IRIX_ACLS 1
14487 echo "$ac_t""Using AIX ACLs" 1>&6
14488 cat >> confdefs.h <<\EOF
14489 #define HAVE_AIX_ACLS 1
14494 echo "$ac_t""Using Tru64 ACLs" 1>&6
14495 cat >> confdefs.h <<\EOF
14496 #define HAVE_TRU64_ACLS 1
14499 LIBS="$LIBS -lpacl"
14502 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14503 echo "configure:14504: checking for acl_get_file in -lacl" >&5
14504 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14506 echo $ac_n "(cached) $ac_c" 1>&6
14508 ac_save_LIBS="$LIBS"
14510 cat > conftest.$ac_ext <<EOF
14511 #line 14512 "configure"
14512 #include "confdefs.h"
14513 /* Override any gcc2 internal prototype to avoid an error. */
14514 /* We use char because int might match the return type of a gcc2
14515 builtin and then its argument prototype would still apply. */
14516 char acl_get_file();
14522 if { (eval echo configure:14523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14524 eval "ac_cv_lib_$ac_lib_var=yes"
14526 echo "configure: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14529 eval "ac_cv_lib_$ac_lib_var=no"
14532 LIBS="$ac_save_LIBS"
14535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14536 echo "$ac_t""yes" 1>&6
14537 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14539 cat >> confdefs.h <<EOF
14540 #define $ac_tr_lib 1
14546 echo "$ac_t""no" 1>&6
14549 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14550 echo "configure:14551: checking for ACL support" >&5
14551 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14555 cat > conftest.$ac_ext <<EOF
14556 #line 14557 "configure"
14557 #include "confdefs.h"
14558 #include <sys/types.h>
14559 #include <sys/acl.h>
14561 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14564 if { (eval echo configure:14565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14566 samba_cv_HAVE_POSIX_ACLS=yes
14568 echo "configure: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14571 samba_cv_HAVE_POSIX_ACLS=no
14576 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14577 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
14578 echo "$ac_t""Using posix ACLs" 1>&6
14579 cat >> confdefs.h <<\EOF
14580 #define HAVE_POSIX_ACLS 1
14583 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14584 echo "configure:14585: checking for acl_get_perm_np" >&5
14585 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
14589 cat > conftest.$ac_ext <<EOF
14590 #line 14591 "configure"
14591 #include "confdefs.h"
14592 #include <sys/types.h>
14593 #include <sys/acl.h>
14595 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14598 if { (eval echo configure:14599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14600 samba_cv_HAVE_ACL_GET_PERM_NP=yes
14602 echo "configure: failed program was:" >&5
14603 cat conftest.$ac_ext >&5
14605 samba_cv_HAVE_ACL_GET_PERM_NP=no
14610 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14611 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
14612 cat >> confdefs.h <<\EOF
14613 #define HAVE_ACL_GET_PERM_NP 1
14622 echo "$ac_t""no" 1>&6
14623 cat >> confdefs.h <<\EOF
14624 #define HAVE_NO_ACLS 1
14630 cat >> confdefs.h <<\EOF
14631 #define HAVE_NO_ACLS 1
14634 echo "$ac_t""no" 1>&6
14639 #################################################
14640 # check for sendfile support
14642 with_sendfile_support=yes
14643 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
14644 echo "configure:14645: checking whether to check to support sendfile" >&5
14645 # Check whether --with-sendfile-support or --without-sendfile-support was given.
14646 if test "${with_sendfile_support+set}" = set; then
14647 withval="$with_sendfile_support"
14651 echo "$ac_t""yes" 1>&6;
14655 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
14656 echo "configure:14657: checking for linux sendfile64 support" >&5
14657 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14658 echo $ac_n "(cached) $ac_c" 1>&6
14661 cat > conftest.$ac_ext <<EOF
14662 #line 14663 "configure"
14663 #include "confdefs.h"
14664 #include <sys/sendfile.h>
14670 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
14674 if { (eval echo configure:14675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14676 samba_cv_HAVE_SENDFILE64=yes
14678 echo "configure: failed program was:" >&5
14679 cat conftest.$ac_ext >&5
14681 samba_cv_HAVE_SENDFILE64=no
14686 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14688 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
14689 echo "configure:14690: checking for linux sendfile support" >&5
14690 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14691 echo $ac_n "(cached) $ac_c" 1>&6
14694 cat > conftest.$ac_ext <<EOF
14695 #line 14696 "configure"
14696 #include "confdefs.h"
14697 #include <sys/sendfile.h>
14703 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14707 if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14709 samba_cv_HAVE_SENDFILE=yes
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14714 samba_cv_HAVE_SENDFILE=no
14719 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14721 # Try and cope with broken Linux sendfile....
14722 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
14723 echo "configure:14724: checking for broken linux sendfile support" >&5
14724 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
14725 echo $ac_n "(cached) $ac_c" 1>&6
14728 cat > conftest.$ac_ext <<EOF
14729 #line 14730 "configure"
14730 #include "confdefs.h"
14732 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
14733 #undef _FILE_OFFSET_BITS
14735 #include <sys/sendfile.h>
14741 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14745 if { (eval echo configure:14746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14747 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
14749 echo "configure: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14752 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
14757 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
14759 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14760 cat >> confdefs.h <<\EOF
14761 #define HAVE_SENDFILE64 1
14764 cat >> confdefs.h <<\EOF
14765 #define LINUX_SENDFILE_API 1
14768 cat >> confdefs.h <<\EOF
14769 #define WITH_SENDFILE 1
14772 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14773 cat >> confdefs.h <<\EOF
14774 #define HAVE_SENDFILE 1
14777 cat >> confdefs.h <<\EOF
14778 #define LINUX_SENDFILE_API 1
14781 cat >> confdefs.h <<\EOF
14782 #define WITH_SENDFILE 1
14785 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
14786 cat >> confdefs.h <<\EOF
14787 #define LINUX_BROKEN_SENDFILE_API 1
14790 cat >> confdefs.h <<\EOF
14791 #define WITH_SENDFILE 1
14795 echo "$ac_t""no" 1>&6;
14800 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
14801 echo "configure:14802: checking for freebsd sendfile support" >&5
14802 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14803 echo $ac_n "(cached) $ac_c" 1>&6
14806 cat > conftest.$ac_ext <<EOF
14807 #line 14808 "configure"
14808 #include "confdefs.h"
14810 #include <sys/types.h>
14811 #include <sys/socket.h>
14812 #include <sys/uio.h>
14816 off_t offset, nwritten;
14817 struct sf_hdtr hdr;
14818 struct iovec hdtrl;
14819 hdr->headers = &hdtrl;
14821 hdr->trailers = NULL;
14823 hdtrl.iov_base = NULL;
14825 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
14829 if { (eval echo configure:14830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14831 samba_cv_HAVE_SENDFILE=yes
14833 echo "configure: failed program was:" >&5
14834 cat conftest.$ac_ext >&5
14836 samba_cv_HAVE_SENDFILE=no
14841 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14843 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14844 cat >> confdefs.h <<\EOF
14845 #define HAVE_SENDFILE 1
14848 cat >> confdefs.h <<\EOF
14849 #define FREEBSD_SENDFILE_API 1
14852 cat >> confdefs.h <<\EOF
14853 #define WITH_SENDFILE 1
14857 echo "$ac_t""no" 1>&6;
14862 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
14863 echo "configure:14864: checking for hpux sendfile64 support" >&5
14864 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14865 echo $ac_n "(cached) $ac_c" 1>&6
14868 cat > conftest.$ac_ext <<EOF
14869 #line 14870 "configure"
14870 #include "confdefs.h"
14872 #include <sys/socket.h>
14873 #include <sys/uio.h>
14878 struct iovec hdtrl[2];
14882 hdtrl[0].iov_base = 0;
14883 hdtrl[0].iov_len = 0;
14885 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
14889 if { (eval echo configure:14890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14891 samba_cv_HAVE_SENDFILE64=yes
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14896 samba_cv_HAVE_SENDFILE64=no
14901 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14902 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14903 cat >> confdefs.h <<\EOF
14904 #define HAVE_SENDFILE64 1
14907 cat >> confdefs.h <<\EOF
14908 #define HPUX_SENDFILE_API 1
14911 cat >> confdefs.h <<\EOF
14912 #define WITH_SENDFILE 1
14916 echo "$ac_t""no" 1>&6;
14919 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
14920 echo "configure:14921: checking for hpux sendfile support" >&5
14921 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14922 echo $ac_n "(cached) $ac_c" 1>&6
14925 cat > conftest.$ac_ext <<EOF
14926 #line 14927 "configure"
14927 #include "confdefs.h"
14929 #include <sys/socket.h>
14930 #include <sys/uio.h>
14935 struct iovec hdtrl[2];
14939 hdtrl[0].iov_base = 0;
14940 hdtrl[0].iov_len = 0;
14942 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
14946 if { (eval echo configure:14947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14948 samba_cv_HAVE_SENDFILE=yes
14950 echo "configure: failed program was:" >&5
14951 cat conftest.$ac_ext >&5
14953 samba_cv_HAVE_SENDFILE=no
14958 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14959 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14960 cat >> confdefs.h <<\EOF
14961 #define HAVE_SENDFILE 1
14964 cat >> confdefs.h <<\EOF
14965 #define HPUX_SENDFILE_API 1
14968 cat >> confdefs.h <<\EOF
14969 #define WITH_SENDFILE 1
14973 echo "$ac_t""no" 1>&6;
14978 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
14979 echo "configure:14980: checking for sendfilev in -lsendfile" >&5
14980 ac_lib_var=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
14981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14982 echo $ac_n "(cached) $ac_c" 1>&6
14984 ac_save_LIBS="$LIBS"
14985 LIBS="-lsendfile $LIBS"
14986 cat > conftest.$ac_ext <<EOF
14987 #line 14988 "configure"
14988 #include "confdefs.h"
14989 /* Override any gcc2 internal prototype to avoid an error. */
14990 /* We use char because int might match the return type of a gcc2
14991 builtin and then its argument prototype would still apply. */
14998 if { (eval echo configure:14999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15000 eval "ac_cv_lib_$ac_lib_var=yes"
15002 echo "configure: failed program was:" >&5
15003 cat conftest.$ac_ext >&5
15005 eval "ac_cv_lib_$ac_lib_var=no"
15008 LIBS="$ac_save_LIBS"
15011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15012 echo "$ac_t""yes" 1>&6
15013 ac_tr_lib=HAVE_LIB`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15015 cat >> confdefs.h <<EOF
15016 #define $ac_tr_lib 1
15019 LIBS="-lsendfile $LIBS"
15022 echo "$ac_t""no" 1>&6
15025 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
15026 echo "configure:15027: checking for solaris sendfilev64 support" >&5
15027 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
15028 echo $ac_n "(cached) $ac_c" 1>&6
15031 cat > conftest.$ac_ext <<EOF
15032 #line 15033 "configure"
15033 #include "confdefs.h"
15035 #include <sys/sendfile.h>
15040 struct sendfilevec vec[2];
15046 vec[0].sfv_fd = SFV_FD_SELF;
15047 vec[0].sfv_flag = 0;
15048 vec[0].sfv_off = 0;
15049 vec[0].sfv_len = 0;
15052 vec[1].sfv_flag = 0;
15053 vec[1].sfv_off = 0;
15054 vec[1].sfv_len = 0;
15055 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
15059 if { (eval echo configure:15060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15061 samba_cv_HAVE_SENDFILEV64=yes
15063 echo "configure: failed program was:" >&5
15064 cat conftest.$ac_ext >&5
15066 samba_cv_HAVE_SENDFILEV64=no
15071 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15073 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
15074 cat >> confdefs.h <<\EOF
15075 #define HAVE_SENDFILEV64 1
15078 cat >> confdefs.h <<\EOF
15079 #define SOLARIS_SENDFILE_API 1
15082 cat >> confdefs.h <<\EOF
15083 #define WITH_SENDFILE 1
15087 echo "$ac_t""no" 1>&6;
15090 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15091 echo "configure:15092: checking for solaris sendfilev support" >&5
15092 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15093 echo $ac_n "(cached) $ac_c" 1>&6
15096 cat > conftest.$ac_ext <<EOF
15097 #line 15098 "configure"
15098 #include "confdefs.h"
15100 #include <sys/sendfile.h>
15105 struct sendfilevec vec[2];
15111 vec[0].sfv_fd = SFV_FD_SELF;
15112 vec[0].sfv_flag = 0;
15113 vec[0].sfv_off = 0;
15114 vec[0].sfv_len = 0;
15117 vec[1].sfv_flag = 0;
15118 vec[1].sfv_off = 0;
15119 vec[1].sfv_len = 0;
15120 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15124 if { (eval echo configure:15125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15126 samba_cv_HAVE_SENDFILEV=yes
15128 echo "configure: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15131 samba_cv_HAVE_SENDFILEV=no
15136 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15138 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
15139 cat >> confdefs.h <<\EOF
15140 #define HAVE_SENDFILEV 1
15143 cat >> confdefs.h <<\EOF
15144 #define SOLARIS_SENDFILE_API 1
15147 cat >> confdefs.h <<\EOF
15148 #define WITH_SENDFILE 1
15152 echo "$ac_t""no" 1>&6;
15161 echo "$ac_t""no" 1>&6
15165 echo "$ac_t""yes" 1>&6
15171 #################################################
15172 # Check whether winbind is supported on this platform. If so we need to
15173 # build and install client programs, sbin programs and shared libraries
15175 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15176 echo "configure:15177: checking whether to build winbind" >&5
15178 # Initially, the value of $host_os decides whether winbind is supported
15186 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15187 WINBIND_NSS_EXTRA_LIBS="-lsocket"
15191 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15195 winbind_no_reason=", unsupported on $host_os"
15202 # Check the setting of --with-winbindd
15204 # Check whether --with-winbind or --without-winbind was given.
15205 if test "${with_winbind+set}" = set; then
15206 withval="$with_winbind"
15220 # We need unix domain sockets for winbind
15222 if test x"$HAVE_WINBIND" = x"yes"; then
15223 if test x"$samba_cv_unixsocket" = x"no"; then
15224 winbind_no_reason=", no unix domain socket support on $host_os"
15229 # Display test results
15231 if test x"$HAVE_WINBIND" = x"yes"; then
15232 echo "$ac_t""yes" 1>&6
15233 cat >> confdefs.h <<\EOF
15234 #define WITH_WINBIND 1
15238 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15239 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15240 if test x"$BLDSHARED" = x"true"; then
15241 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15242 if test x"$with_pam" = x"yes"; then
15243 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
15247 echo "$ac_t""no$winbind_no_reason" 1>&6
15250 # Solaris has some extra fields in struct passwd that need to be
15251 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15252 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15255 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15256 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15257 # [#include <pwd.h>])
15259 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15260 echo "configure:15261: checking whether struct passwd has pw_comment" >&5
15261 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15262 echo $ac_n "(cached) $ac_c" 1>&6
15265 cat > conftest.$ac_ext <<EOF
15266 #line 15267 "configure"
15267 #include "confdefs.h"
15270 struct passwd p; p.pw_comment;
15273 if { (eval echo configure:15274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15275 samba_cv_passwd_pw_comment=yes
15277 echo "configure: failed program was:" >&5
15278 cat conftest.$ac_ext >&5
15280 samba_cv_passwd_pw_comment=no
15285 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15286 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
15287 cat >> confdefs.h <<\EOF
15288 #define HAVE_PASSWD_PW_COMMENT 1
15293 #AC_CHECK_MEMBER(struct passwd.pw_age,
15294 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15295 # [#include <pwd.h>])
15297 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15298 echo "configure:15299: checking whether struct passwd has pw_age" >&5
15299 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15300 echo $ac_n "(cached) $ac_c" 1>&6
15303 cat > conftest.$ac_ext <<EOF
15304 #line 15305 "configure"
15305 #include "confdefs.h"
15308 struct passwd p; p.pw_age;
15311 if { (eval echo configure:15312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15313 samba_cv_passwd_pw_age=yes
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15318 samba_cv_passwd_pw_age=no
15323 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15324 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
15325 cat >> confdefs.h <<\EOF
15326 #define HAVE_PASSWD_PW_AGE 1
15331 #################################################
15332 # Check to see if we should use the included popt
15334 # Check whether --with-included-popt or --without-included-popt was given.
15335 if test "${with_included_popt+set}" = set; then
15336 withval="$with_included_popt"
15348 if test x"$INCLUDED_POPT" != x"yes"; then
15349 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15350 echo "configure:15351: checking for poptGetContext in -lpopt" >&5
15351 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15353 echo $ac_n "(cached) $ac_c" 1>&6
15355 ac_save_LIBS="$LIBS"
15356 LIBS="-lpopt $LIBS"
15357 cat > conftest.$ac_ext <<EOF
15358 #line 15359 "configure"
15359 #include "confdefs.h"
15360 /* Override any gcc2 internal prototype to avoid an error. */
15361 /* We use char because int might match the return type of a gcc2
15362 builtin and then its argument prototype would still apply. */
15363 char poptGetContext();
15369 if { (eval echo configure:15370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15371 eval "ac_cv_lib_$ac_lib_var=yes"
15373 echo "configure: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15376 eval "ac_cv_lib_$ac_lib_var=no"
15379 LIBS="$ac_save_LIBS"
15382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15383 echo "$ac_t""yes" 1>&6
15386 echo "$ac_t""no" 1>&6
15392 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15393 echo "configure:15394: checking whether to use included popt" >&5
15394 if test x"$INCLUDED_POPT" = x"yes"; then
15395 echo "$ac_t""yes" 1>&6
15396 BUILD_POPT='$(POPT_OBJS)'
15397 FLAGS1="-I$srcdir/popt"
15399 echo "$ac_t""no" 1>&6
15400 LIBS="$LIBS -lpopt"
15405 #################################################
15406 # Check if the user wants Python
15408 # At the moment, you can use this to set which Python binary to link
15409 # against. (Libraries built for Python2.2 can't be used by 2.1,
15410 # though they can coexist in different directories.) In the future
15411 # this might make the Python stuff be built by default.
15413 # Defaulting python breaks the clean target if python isn't installed
15417 # Check whether --with-python or --without-python was given.
15418 if test "${with_python+set}" = set; then
15419 withval="$with_python"
15420 case "${withval-python}" in
15423 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
15429 PYTHON=${withval-python}
15436 #################################################
15437 # do extra things if we are running insure
15439 if test "${ac_cv_prog_CC}" = "insure"; then
15440 CPPFLAGS="$CPPFLAGS -D__INSURE__"
15443 #################################################
15444 # final configure stuff
15446 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15447 echo "configure:15448: checking configure summary" >&5
15448 if test "$cross_compiling" = yes; then
15449 echo "configure: warning: cannot run when cross-compiling" 1>&2
15451 cat > conftest.$ac_ext <<EOF
15452 #line 15453 "configure"
15453 #include "confdefs.h"
15454 #include "${srcdir-.}/tests/summary.c"
15456 if { (eval echo configure:15457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15458 echo "$ac_t""yes" 1>&6
15460 echo "configure: failed program was:" >&5
15461 cat conftest.$ac_ext >&5
15463 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15473 cat > confcache <<\EOF
15474 # This file is a shell script that caches the results of configure
15475 # tests run on this system so they can be shared between configure
15476 # scripts and configure runs. It is not useful on other systems.
15477 # If it contains results you don't want to keep, you may remove or edit it.
15479 # By default, configure uses ./config.cache as the cache file,
15480 # creating it if it does not exist already. You can give configure
15481 # the --cache-file=FILE option to use a different cache file; that is
15482 # what configure does when it calls configure scripts in
15483 # subdirectories, so they share the cache.
15484 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15485 # config.status only pays attention to the cache file if you give it the
15486 # --recheck option to rerun configure.
15489 # The following way of writing the cache mishandles newlines in values,
15490 # but we know of no workaround that is simple, portable, and efficient.
15491 # So, don't put newlines in cache variables' values.
15492 # Ultrix sh set writes to stderr and can't be redirected directly,
15493 # and sets the high bit in the cache file unless we assign to the vars.
15495 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15497 # `set' does not quote correctly, so add quotes (double-quote substitution
15498 # turns \\\\ into \\, and sed turns \\ into \).
15500 -e "s/'/'\\\\''/g" \
15501 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15504 # `set' quotes correctly as required by POSIX, so do not add quotes.
15505 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15508 if cmp -s $cache_file confcache; then
15511 if test -w $cache_file; then
15512 echo "updating cache $cache_file"
15513 cat confcache > $cache_file
15515 echo "not updating unwritable cache $cache_file"
15520 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15523 # Let make expand exec_prefix.
15524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15526 # Any assignment to VPATH causes Sun make to only execute
15527 # the first set of double-colon rules, so remove it if not needed.
15528 # If there is a colon in the path, we need to keep it.
15529 if test "x$srcdir" = x.; then
15530 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15533 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15535 DEFS=-DHAVE_CONFIG_H
15537 # Without the "./", some shells look in PATH for config.status.
15538 : ${CONFIG_STATUS=./config.status}
15540 echo creating $CONFIG_STATUS
15541 rm -f $CONFIG_STATUS
15542 cat > $CONFIG_STATUS <<EOF
15544 # Generated automatically by configure.
15545 # Run this file to recreate the current configuration.
15546 # This directory was configured as follows,
15547 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15549 # $0 $ac_configure_args
15551 # Compiler output produced by configure, useful for debugging
15552 # configure, is in ./config.log if it exists.
15554 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15557 case "\$ac_option" in
15558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15559 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15560 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15561 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15562 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15564 -help | --help | --hel | --he | --h)
15565 echo "\$ac_cs_usage"; exit 0 ;;
15566 *) echo "\$ac_cs_usage"; exit 1 ;;
15570 ac_given_srcdir=$srcdir
15571 ac_given_INSTALL="$INSTALL"
15573 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15575 cat >> $CONFIG_STATUS <<EOF
15577 # Protect against being on the right side of a sed subst in config.status.
15578 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15579 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15583 s%@CFLAGS@%$CFLAGS%g
15584 s%@CPPFLAGS@%$CPPFLAGS%g
15585 s%@CXXFLAGS@%$CXXFLAGS%g
15586 s%@FFLAGS@%$FFLAGS%g
15588 s%@LDFLAGS@%$LDFLAGS%g
15590 s%@exec_prefix@%$exec_prefix%g
15591 s%@prefix@%$prefix%g
15592 s%@program_transform_name@%$program_transform_name%g
15593 s%@bindir@%$bindir%g
15594 s%@sbindir@%$sbindir%g
15595 s%@libexecdir@%$libexecdir%g
15596 s%@datadir@%$datadir%g
15597 s%@sysconfdir@%$sysconfdir%g
15598 s%@sharedstatedir@%$sharedstatedir%g
15599 s%@localstatedir@%$localstatedir%g
15600 s%@libdir@%$libdir%g
15601 s%@includedir@%$includedir%g
15602 s%@oldincludedir@%$oldincludedir%g
15603 s%@infodir@%$infodir%g
15604 s%@mandir@%$mandir%g
15605 s%@configdir@%$configdir%g
15606 s%@lockdir@%$lockdir%g
15607 s%@piddir@%$piddir%g
15608 s%@logfilebase@%$logfilebase%g
15609 s%@privatedir@%$privatedir%g
15610 s%@swatdir@%$swatdir%g
15611 s%@LDSHFLAGS@%$LDSHFLAGS%g
15612 s%@SONAMEFLAG@%$SONAMEFLAG%g
15614 s%@HOST_OS@%$HOST_OS%g
15615 s%@PICFLAG@%$PICFLAG%g
15616 s%@PICSUFFIX@%$PICSUFFIX%g
15617 s%@POBAD_CC@%$POBAD_CC%g
15618 s%@SHLIBEXT@%$SHLIBEXT%g
15619 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
15620 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
15621 s%@PRINTLIBS@%$PRINTLIBS%g
15622 s%@AUTHLIBS@%$AUTHLIBS%g
15623 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
15624 s%@SMBWRAPPER@%$SMBWRAPPER%g
15625 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
15626 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
15627 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
15629 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15630 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15631 s%@INSTALL_DATA@%$INSTALL_DATA%g
15633 s%@EXEEXT@%$EXEEXT%g
15634 s%@BROKEN_CC@%$BROKEN_CC%g
15636 s%@host_alias@%$host_alias%g
15637 s%@host_cpu@%$host_cpu%g
15638 s%@host_vendor@%$host_vendor%g
15639 s%@host_os@%$host_os%g
15640 s%@target@%$target%g
15641 s%@target_alias@%$target_alias%g
15642 s%@target_cpu@%$target_cpu%g
15643 s%@target_vendor@%$target_vendor%g
15644 s%@target_os@%$target_os%g
15646 s%@build_alias@%$build_alias%g
15647 s%@build_cpu@%$build_cpu%g
15648 s%@build_vendor@%$build_vendor%g
15649 s%@build_os@%$build_os%g
15651 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
15652 s%@LIBOBJS@%$LIBOBJS%g
15653 s%@TERMLIBS@%$TERMLIBS%g
15654 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
15656 s%@DYNEXP@%$DYNEXP%g
15657 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
15658 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
15659 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
15660 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
15661 s%@XML2_CONFIG@%$XML2_CONFIG%g
15662 s%@XML_CFLAGS@%$XML_CFLAGS%g
15663 s%@XML_LIBS@%$XML_LIBS%g
15664 s%@MODULE_XML@%$MODULE_XML%g
15665 s%@QUOTAOBJS@%$QUOTAOBJS%g
15666 s%@manlangs@%$manlangs%g
15667 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
15668 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
15669 s%@BUILD_POPT@%$BUILD_POPT%g
15670 s%@FLAGS1@%$FLAGS1%g
15671 s%@PYTHON@%$PYTHON%g
15672 s%@builddir@%$builddir%g
15677 cat >> $CONFIG_STATUS <<\EOF
15679 # Split the substitutions into bite-sized pieces for seds with
15680 # small command number limits, like on Digital OSF/1 and HP-UX.
15681 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15682 ac_file=1 # Number of current file.
15683 ac_beg=1 # First line for current file.
15684 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15687 while $ac_more_lines; do
15688 if test $ac_beg -gt 1; then
15689 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15691 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15693 if test ! -s conftest.s$ac_file; then
15694 ac_more_lines=false
15695 rm -f conftest.s$ac_file
15697 if test -z "$ac_sed_cmds"; then
15698 ac_sed_cmds="sed -f conftest.s$ac_file"
15700 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15702 ac_file=`expr $ac_file + 1`
15704 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15707 if test -z "$ac_sed_cmds"; then
15712 cat >> $CONFIG_STATUS <<EOF
15714 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
15716 cat >> $CONFIG_STATUS <<\EOF
15717 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15720 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15721 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15722 *) ac_file_in="${ac_file}.in" ;;
15725 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15727 # Remove last slash and all that follows it. Not all systems have dirname.
15728 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15729 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15730 # The file is in a subdirectory.
15731 test ! -d "$ac_dir" && mkdir "$ac_dir"
15732 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15733 # A "../" for each directory in $ac_dir_suffix.
15734 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15736 ac_dir_suffix= ac_dots=
15739 case "$ac_given_srcdir" in
15741 if test -z "$ac_dots"; then top_srcdir=.
15742 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15743 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15744 *) # Relative path.
15745 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15746 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15749 case "$ac_given_INSTALL" in
15750 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15751 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15754 echo creating "$ac_file"
15756 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15758 *Makefile*) ac_comsub="1i\\
15759 # $configure_input" ;;
15763 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15765 s%@configure_input@%$configure_input%g
15766 s%@srcdir@%$srcdir%g
15767 s%@top_srcdir@%$top_srcdir%g
15768 s%@INSTALL@%$INSTALL%g
15769 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15773 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15774 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15776 # ac_d sets the value in "#define NAME VALUE" lines.
15777 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15778 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15781 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15782 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15783 ac_uB='\([ ]\)%\1#\2define\3'
15786 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15787 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15788 ac_eB='$%\1#\2define\3'
15792 if test "${CONFIG_HEADERS+set}" != set; then
15794 cat >> $CONFIG_STATUS <<EOF
15795 CONFIG_HEADERS="include/config.h"
15797 cat >> $CONFIG_STATUS <<\EOF
15799 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15802 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15803 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15804 *) ac_file_in="${ac_file}.in" ;;
15807 echo creating $ac_file
15809 rm -f conftest.frag conftest.in conftest.out
15810 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15811 cat $ac_file_inputs > conftest.in
15815 # Transform confdefs.h into a sed script conftest.vals that substitutes
15816 # the proper values into config.h.in to produce config.h. And first:
15817 # Protect against being on the right side of a sed subst in config.status.
15818 # Protect against being in an unquoted here document in config.status.
15819 rm -f conftest.vals
15820 cat > conftest.hdr <<\EOF
15823 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15827 sed -n -f conftest.hdr confdefs.h > conftest.vals
15830 # This sed command replaces #undef with comments. This is necessary, for
15831 # example, in the case of _POSIX_SOURCE, which is predefined and required
15832 # on some systems where configure will not decide to define it.
15833 cat >> conftest.vals <<\EOF
15834 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15837 # Break up conftest.vals because some shells have a limit on
15838 # the size of here documents, and old seds have small limits too.
15840 rm -f conftest.tail
15843 ac_lines=`grep -c . conftest.vals`
15844 # grep -c gives empty output for an empty file on some AIX systems.
15845 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15846 # Write a limited-size here document to conftest.frag.
15847 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15848 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15850 sed -f conftest.frag conftest.in > conftest.out
15852 mv conftest.out conftest.in
15853 ' >> $CONFIG_STATUS
15854 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15855 rm -f conftest.vals
15856 mv conftest.tail conftest.vals
15858 rm -f conftest.vals
15860 cat >> $CONFIG_STATUS <<\EOF
15861 rm -f conftest.frag conftest.h
15862 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15863 cat conftest.in >> conftest.h
15865 if cmp -s $ac_file conftest.h 2>/dev/null; then
15866 echo "$ac_file is unchanged"
15869 # Remove last slash and all that follows it. Not all systems have dirname.
15870 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15871 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15872 # The file is in a subdirectory.
15873 test ! -d "$ac_dir" && mkdir "$ac_dir"
15876 mv conftest.h $ac_file
15881 cat >> $CONFIG_STATUS <<EOF
15884 cat >> $CONFIG_STATUS <<\EOF
15888 chmod +x $CONFIG_STATUS
15889 rm -fr confdefs* $ac_clean_files
15890 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15893 #################################################
15894 # Print very concise instructions on building/use
15895 if test "x$enable_dmalloc" = xyes
15897 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
15898 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6