3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-developer turn on developer warnings and debugging [default=no]"
36 --enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
38 --enable-dmalloc enable heap debugging [default=no]"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
52 --with-automount Include AUTOMOUNT support (default=no)"
54 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
56 --with-pam Include PAM support (default=no)"
58 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
60 --with-tdbsam Include experimental TDB SAM support (default=no)"
62 --with-ldapsam Include experimental LDAP SAM support (default=no)"
64 --with-nisplussam Include NISPLUS SAM support (default=no)"
66 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
68 --with-ssl Include SSL support (default=no)
69 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
70 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
72 --with-syslog Include experimental SYSLOG support (default=no)"
74 --with-profiling-data Include gathering source code profile information (default=no)"
76 --with-quotas Include experimental disk-quota support (default=no)"
78 --with-utmp Include experimental utmp accounting (default=no)"
80 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
82 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
84 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
86 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
88 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
90 --with-acl-support Include ACL support (default=no)"
92 --with-winbind Build winbind (default, if supported by OS)"
94 --with-included-popt use bundled popt library, not from system"
96 # Initialize some variables set by options.
97 # The variables have the same names as the options, with
98 # dashes changed to underlines.
100 cache_file=./config.cache
109 program_transform_name=s,x,x,
117 bindir='${exec_prefix}/bin'
118 sbindir='${exec_prefix}/sbin'
119 libexecdir='${exec_prefix}/libexec'
120 datadir='${prefix}/share'
121 sysconfdir='${prefix}/etc'
122 sharedstatedir='${prefix}/com'
123 localstatedir='${prefix}/var'
124 libdir='${exec_prefix}/lib'
125 includedir='${prefix}/include'
126 oldincludedir='/usr/include'
127 infodir='${prefix}/info'
128 mandir='${prefix}/man'
130 # Initialize some other variables.
133 SHELL=${CONFIG_SHELL-/bin/sh}
134 # Maximum number of lines to put in a shell here document.
141 # If the previous option needs an argument, assign it.
142 if test -n "$ac_prev"; then
143 eval "$ac_prev=\$ac_option"
149 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153 # Accept the important Cygnus configure options, so we can diagnose typos.
157 -bindir | --bindir | --bindi | --bind | --bin | --bi)
159 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
160 bindir="$ac_optarg" ;;
162 -build | --build | --buil | --bui | --bu)
164 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
165 build="$ac_optarg" ;;
167 -cache-file | --cache-file | --cache-fil | --cache-fi \
168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
169 ac_prev=cache_file ;;
170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
172 cache_file="$ac_optarg" ;;
174 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
176 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
178 datadir="$ac_optarg" ;;
180 -disable-* | --disable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}=no" ;;
189 -enable-* | --enable-*)
190 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}='$ac_optarg'" ;;
202 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
203 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
204 | --exec | --exe | --ex)
205 ac_prev=exec_prefix ;;
206 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
207 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
208 | --exec=* | --exe=* | --ex=*)
209 exec_prefix="$ac_optarg" ;;
211 -gas | --gas | --ga | --g)
212 # Obsolete; use --with-gas.
215 -help | --help | --hel | --he)
216 # Omit some internal or obsolete options to make the list less imposing.
217 # This message is too long to be a string in the A/UX 3.1 sh.
219 Usage: configure [options] [host]
220 Options: [defaults in brackets after descriptions]
222 --cache-file=FILE cache test results in FILE
223 --help print this message
224 --no-create do not create output files
225 --quiet, --silent do not print \`checking...' messages
226 --version print the version of autoconf that created configure
227 Directory and file names:
228 --prefix=PREFIX install architecture-independent files in PREFIX
230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
232 --bindir=DIR user executables in DIR [EPREFIX/bin]
233 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
234 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
235 --datadir=DIR read-only architecture-independent data in DIR
237 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
238 --sharedstatedir=DIR modifiable architecture-independent data in DIR
240 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
241 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
242 --includedir=DIR C header files in DIR [PREFIX/include]
243 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
244 --infodir=DIR info documentation in DIR [PREFIX/info]
245 --mandir=DIR man documentation in DIR [PREFIX/man]
246 --srcdir=DIR find the sources in DIR [configure dir or ..]
247 --program-prefix=PREFIX prepend PREFIX to installed program names
248 --program-suffix=SUFFIX append SUFFIX to installed program names
249 --program-transform-name=PROGRAM
250 run sed PROGRAM on installed program names
254 --build=BUILD configure for building on BUILD [BUILD=HOST]
255 --host=HOST configure for HOST [guessed]
256 --target=TARGET configure for TARGET [TARGET=HOST]
257 Features and packages:
258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
262 --x-includes=DIR X include files are in DIR
263 --x-libraries=DIR X library files are in DIR
265 if test -n "$ac_help"; then
266 echo "--enable and --with options recognized:$ac_help"
270 -host | --host | --hos | --ho)
272 -host=* | --host=* | --hos=* | --ho=*)
275 -includedir | --includedir | --includedi | --included | --include \
276 | --includ | --inclu | --incl | --inc)
277 ac_prev=includedir ;;
278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
279 | --includ=* | --inclu=* | --incl=* | --inc=*)
280 includedir="$ac_optarg" ;;
282 -infodir | --infodir | --infodi | --infod | --info | --inf)
284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
285 infodir="$ac_optarg" ;;
287 -libdir | --libdir | --libdi | --libd)
289 -libdir=* | --libdir=* | --libdi=* | --libd=*)
290 libdir="$ac_optarg" ;;
292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
293 | --libexe | --libex | --libe)
294 ac_prev=libexecdir ;;
295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
296 | --libexe=* | --libex=* | --libe=*)
297 libexecdir="$ac_optarg" ;;
299 -localstatedir | --localstatedir | --localstatedi | --localstated \
300 | --localstate | --localstat | --localsta | --localst \
301 | --locals | --local | --loca | --loc | --lo)
302 ac_prev=localstatedir ;;
303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
306 localstatedir="$ac_optarg" ;;
308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
311 mandir="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
327 | --oldin | --oldi | --old | --ol | --o)
328 ac_prev=oldincludedir ;;
329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
332 oldincludedir="$ac_optarg" ;;
334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
337 prefix="$ac_optarg" ;;
339 -program-prefix | --program-prefix | --program-prefi | --program-pref \
340 | --program-pre | --program-pr | --program-p)
341 ac_prev=program_prefix ;;
342 -program-prefix=* | --program-prefix=* | --program-prefi=* \
343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
344 program_prefix="$ac_optarg" ;;
346 -program-suffix | --program-suffix | --program-suffi | --program-suff \
347 | --program-suf | --program-su | --program-s)
348 ac_prev=program_suffix ;;
349 -program-suffix=* | --program-suffix=* | --program-suffi=* \
350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
351 program_suffix="$ac_optarg" ;;
353 -program-transform-name | --program-transform-name \
354 | --program-transform-nam | --program-transform-na \
355 | --program-transform-n | --program-transform- \
356 | --program-transform | --program-transfor \
357 | --program-transfo | --program-transf \
358 | --program-trans | --program-tran \
359 | --progr-tra | --program-tr | --program-t)
360 ac_prev=program_transform_name ;;
361 -program-transform-name=* | --program-transform-name=* \
362 | --program-transform-nam=* | --program-transform-na=* \
363 | --program-transform-n=* | --program-transform-=* \
364 | --program-transform=* | --program-transfor=* \
365 | --program-transfo=* | --program-transf=* \
366 | --program-trans=* | --program-tran=* \
367 | --progr-tra=* | --program-tr=* | --program-t=*)
368 program_transform_name="$ac_optarg" ;;
370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
371 | -silent | --silent | --silen | --sile | --sil)
374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
378 sbindir="$ac_optarg" ;;
380 -sharedstatedir | --sharedstatedir | --sharedstatedi \
381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
382 | --sharedst | --shareds | --shared | --share | --shar \
384 ac_prev=sharedstatedir ;;
385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
389 sharedstatedir="$ac_optarg" ;;
391 -site | --site | --sit)
393 -site=* | --site=* | --sit=*)
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev=sysconfdir ;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.13"
421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev=x_includes ;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev=x_libraries ;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file=include/includes.h
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE; then
563 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp='$CPP $CPPFLAGS'
586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
601 ac_n= ac_c='\c' ac_t=
607 #################################################
608 # Directory handling stuff to support both the
609 # legacy SAMBA directories and FHS compliant
613 # Check whether --with-fhs or --without-fhs was given.
614 if test "${with_fhs+set}" = set; then
616 codepagedir="\$(DATADIR)/samba/codepages"
617 configdir="${sysconfdir}/samba"
618 lockdir="\${VARDIR}/cache/samba"
619 piddir="\$(VARDIR)/run/samba"
620 logfilebase="\${VARDIR}/log/samba"
621 privatedir="\${CONFIGDIR}/private"
622 swatdir="\${DATADIR}/samba/swat"
624 codepagedir="\$(LIBDIR)/codepages"
625 configdir="\$(LIBDIR)"
626 logfilebase="\$(VARDIR)"
627 lockdir="\${VARDIR}/locks"
628 piddir="\$(VARDIR)/locks"
629 privatedir="\${prefix}/private"
630 swatdir="\${prefix}/swat"
634 #################################################
635 # set private directory location
636 # Check whether --with-privatedir or --without-privatedir was given.
637 if test "${with_privatedir+set}" = set; then
638 withval="$with_privatedir"
642 # Just in case anybody calls it without argument
644 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
647 privatedir="$withval"
653 #################################################
654 # set lock directory location
655 # Check whether --with-lockdir or --without-lockdir was given.
656 if test "${with_lockdir+set}" = set; then
657 withval="$with_lockdir"
661 # Just in case anybody calls it without argument
663 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
672 #################################################
673 # set pid directory location
674 # Check whether --with-piddir or --without-piddir was given.
675 if test "${with_piddir+set}" = set; then
676 withval="$with_piddir"
680 # Just in case anybody calls it without argument
682 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
691 #################################################
692 # set SWAT directory location
693 # Check whether --with-swatdir or --without-swatdir was given.
694 if test "${with_swatdir+set}" = set; then
695 withval="$with_swatdir"
699 # Just in case anybody does it
701 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
710 #################################################
711 # set configuration directory location
712 # Check whether --with-configdir or --without-configdir was given.
713 if test "${with_configdir+set}" = set; then
714 withval="$with_configdir"
718 # Just in case anybody does it
720 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
729 #################################################
730 # set codepage directory location
731 # Check whether --with-codepagedir or --without-codepagedir was given.
732 if test "${with_codepagedir+set}" = set; then
733 withval="$with_codepagedir"
737 # Just in case anybody does it
739 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
742 codepagedir="$withval"
748 #################################################
749 # set log directory location
750 # Check whether --with-logfilebase or --without-logfilebase was given.
751 if test "${with_logfilebase+set}" = set; then
752 withval="$with_logfilebase"
756 # Just in case anybody does it
758 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
761 logfilebase="$withval"
792 # compile with optimisation and without debugging by default
793 CFLAGS="-O ${CFLAGS}"
795 # Check whether --enable-debug or --disable-debug was given.
796 if test "${enable_debug+set}" = set; then
797 enableval="$enable_debug"
798 if eval "test x$enable_debug = xyes"; then
799 CFLAGS="${CFLAGS} -g"
804 # Check whether --enable-developer or --disable-developer was given.
805 if test "${enable_developer+set}" = set; then
806 enableval="$enable_developer"
807 if eval "test x$enable_developer = xyes"; then
808 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
813 # Check whether --enable-krb5developer or --disable-krb5developer was given.
814 if test "${enable_krb5developer+set}" = set; then
815 enableval="$enable_krb5developer"
816 if eval "test x$enable_krb5developer = xyes"; then
817 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
822 # Check whether --enable-dmalloc or --disable-dmalloc was given.
823 if test "${enable_dmalloc+set}" = set; then
824 enableval="$enable_dmalloc"
829 if test "x$enable_dmalloc" = xyes
831 cat >> confdefs.h <<\EOF
832 #define ENABLE_DMALLOC 1
835 cat >> confdefs.h <<\EOF
836 #define DMALLOC_FUNC_CHECK 1
839 LIBS="$LIBS -ldmalloc"
842 # Extract the first word of "gcc", so it can be a program name with args.
843 set dummy gcc; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 if test -n "$CC"; then
850 ac_cv_prog_CC="$CC" # Let the user override the test.
852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
854 for ac_dir in $ac_dummy; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
872 # Extract the first word of "cc", so it can be a program name with args.
873 set dummy cc; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 if test -n "$CC"; then
880 ac_cv_prog_CC="$CC" # Let the user override the test.
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
885 for ac_dir in $ac_dummy; do
886 test -z "$ac_dir" && ac_dir=.
887 if test -f $ac_dir/$ac_word; then
888 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
897 if test $ac_prog_rejected = yes; then
898 # We found a bogon in the path, so make sure we never use it.
899 set dummy $ac_cv_prog_CC
901 if test $# -gt 0; then
902 # We chose a different compiler from the bogus one.
903 # However, it has the same basename, so the bogon will be chosen
904 # first if we set CC to just the basename; use the full file name.
906 set dummy "$ac_dir/$ac_word" "$@"
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
920 if test -z "$CC"; then
923 # Extract the first word of "cl", so it can be a program name with args.
924 set dummy cl; ac_word=$2
925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
926 echo "configure:927: checking for $ac_word" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 if test -n "$CC"; then
931 ac_cv_prog_CC="$CC" # Let the user override the test.
933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
935 for ac_dir in $ac_dummy; do
936 test -z "$ac_dir" && ac_dir=.
937 if test -f $ac_dir/$ac_word; then
946 if test -n "$CC"; then
947 echo "$ac_t""$CC" 1>&6
949 echo "$ac_t""no" 1>&6
954 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
957 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
958 echo "configure:959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
962 ac_cpp='$CPP $CPPFLAGS'
963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
965 cross_compiling=$ac_cv_prog_cc_cross
967 cat > conftest.$ac_ext << EOF
969 #line 970 "configure"
970 #include "confdefs.h"
974 if { (eval echo configure:975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
975 ac_cv_prog_cc_works=yes
976 # If we can't run a trivial program, we are probably using a cross compiler.
977 if (./conftest; exit) 2>/dev/null; then
978 ac_cv_prog_cc_cross=no
980 ac_cv_prog_cc_cross=yes
983 echo "configure: failed program was:" >&5
984 cat conftest.$ac_ext >&5
985 ac_cv_prog_cc_works=no
989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
990 ac_cpp='$CPP $CPPFLAGS'
991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
993 cross_compiling=$ac_cv_prog_cc_cross
995 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
996 if test $ac_cv_prog_cc_works = no; then
997 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
999 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1001 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1002 cross_compiling=$ac_cv_prog_cc_cross
1004 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1005 echo "configure:1006: checking whether we are using GNU C" >&5
1006 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 cat > conftest.c <<EOF
1014 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1021 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1023 if test $ac_cv_prog_gcc = yes; then
1029 ac_test_CFLAGS="${CFLAGS+set}"
1030 ac_save_CFLAGS="$CFLAGS"
1032 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether ${CC-cc} accepts -g" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1037 echo 'void f(){}' > conftest.c
1038 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1047 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1048 if test "$ac_test_CFLAGS" = set; then
1049 CFLAGS="$ac_save_CFLAGS"
1050 elif test $ac_cv_prog_cc_g = yes; then
1051 if test "$GCC" = yes; then
1057 if test "$GCC" = yes; then
1065 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1066 if test -f $ac_dir/install-sh; then
1068 ac_install_sh="$ac_aux_dir/install-sh -c"
1070 elif test -f $ac_dir/install.sh; then
1072 ac_install_sh="$ac_aux_dir/install.sh -c"
1076 if test -z "$ac_aux_dir"; then
1077 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1079 ac_config_guess=$ac_aux_dir/config.guess
1080 ac_config_sub=$ac_aux_dir/config.sub
1081 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1083 # Find a good install program. We prefer a C program (faster),
1084 # so one script is as good as another. But avoid the broken or
1085 # incompatible versions:
1086 # SysV /etc/install, /usr/sbin/install
1087 # SunOS /usr/etc/install
1088 # IRIX /sbin/install
1090 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1093 # ./install, which can be erroneously created by make from ./install.sh.
1094 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1095 echo "configure:1096: checking for a BSD compatible install" >&5
1096 if test -z "$INSTALL"; then
1097 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1101 for ac_dir in $PATH; do
1102 # Account for people who put trailing slashes in PATH elements.
1104 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1106 # OSF1 and SCO ODT 3.0 have their own names for install.
1107 # Don't use installbsd from OSF since it installs stuff as root
1109 for ac_prog in ginstall scoinst install; do
1110 if test -f $ac_dir/$ac_prog; then
1111 if test $ac_prog = install &&
1112 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1113 # AIX install. It has an incompatible calling convention.
1116 ac_cv_path_install="$ac_dir/$ac_prog -c"
1127 if test "${ac_cv_path_install+set}" = set; then
1128 INSTALL="$ac_cv_path_install"
1130 # As a last resort, use the slow shell script. We don't cache a
1131 # path for INSTALL within a source directory, because that will
1132 # break other packages using the cache if that directory is
1133 # removed, or if the path is relative.
1134 INSTALL="$ac_install_sh"
1137 echo "$ac_t""$INSTALL" 1>&6
1139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1140 # It thinks the first close brace ends the variable substitution.
1141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1143 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1145 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1147 for ac_prog in gawk mawk nawk awk
1149 # Extract the first word of "$ac_prog", so it can be a program name with args.
1150 set dummy $ac_prog; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$AWK"; then
1157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AWK="$ac_prog"
1171 AWK="$ac_cv_prog_AWK"
1172 if test -n "$AWK"; then
1173 echo "$ac_t""$AWK" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AWK" && break
1182 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1183 echo "configure:1184: checking for POSIXized ISC" >&5
1184 if test -d /etc/conf/kconfig.d &&
1185 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1187 echo "$ac_t""yes" 1>&6
1188 ISC=yes # If later tests want to check for ISC.
1189 cat >> confdefs.h <<\EOF
1190 #define _POSIX_SOURCE 1
1193 if test "$GCC" = yes; then
1199 echo "$ac_t""no" 1>&6
1204 if test "x$CC" != xcc; then
1205 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether $CC and cc understand -c and -o together" >&5
1208 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether cc understands -c and -o together" >&5
1211 set dummy $CC; ac_cc="`echo $2 |
1212 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1213 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 echo 'foo(){}' > conftest.c
1217 # Make sure it works both with $CC and with simple cc.
1218 # We do the test twice because some compilers refuse to overwrite an
1219 # existing .o file with -o, though they will create one.
1220 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1221 if { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1222 test -f conftest.o && { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1224 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1225 if test "x$CC" != xcc; then
1226 # Test first that cc exists at all.
1227 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1228 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1229 if { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1230 test -f conftest.o && { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1235 # cc exists but doesn't like -o.
1236 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1241 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1246 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1249 echo "$ac_t""no" 1>&6
1250 cat >> confdefs.h <<\EOF
1251 #define NO_MINUS_C_MINUS_O 1
1256 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1263 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1264 echo "configure:1265: checking that the C compiler understands volatile" >&5
1265 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1272 #include <sys/types.h>
1277 if { (eval echo configure:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1279 samba_cv_volatile=yes
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1284 samba_cv_volatile=no
1289 echo "$ac_t""$samba_cv_volatile" 1>&6
1290 if test x"$samba_cv_volatile" = x"yes"; then
1291 cat >> confdefs.h <<\EOF
1292 #define HAVE_VOLATILE 1
1299 # Do some error checking and defaulting for the host and target type.
1301 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1304 # 1. You are not allowed to specify --host, --target, and nonopt at the
1306 # 2. Host defaults to nonopt.
1307 # 3. If nonopt is not specified, then host defaults to the current host,
1308 # as determined by config.guess.
1309 # 4. Target and build default to nonopt.
1310 # 5. If nonopt is not specified, then target and build default to host.
1312 # The aliases save the names the user supplied, while $host etc.
1313 # will get canonicalized.
1314 case $host---$target---$nonopt in
1315 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1316 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1320 # Make sure we can run config.sub.
1321 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1322 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1325 echo $ac_n "checking host system type""... $ac_c" 1>&6
1326 echo "configure:1327: checking host system type" >&5
1329 case "$host_alias" in
1333 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1334 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1336 *) host_alias=$nonopt ;;
1340 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1341 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$ac_t""$host" 1>&6
1346 echo $ac_n "checking target system type""... $ac_c" 1>&6
1347 echo "configure:1348: checking target system type" >&5
1349 target_alias=$target
1350 case "$target_alias" in
1353 NONE) target_alias=$host_alias ;;
1354 *) target_alias=$nonopt ;;
1358 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1359 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$ac_t""$target" 1>&6
1364 echo $ac_n "checking build system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking build system type" >&5
1368 case "$build_alias" in
1371 NONE) build_alias=$host_alias ;;
1372 *) build_alias=$nonopt ;;
1376 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1377 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$ac_t""$build" 1>&6
1382 test "$host_alias" != "$target_alias" &&
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1385 program_prefix=${target_alias}-
1389 *irix6*) cat >> confdefs.h <<\EOF
1390 #include <standards.h>
1398 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1399 echo "configure:1400: checking config.cache system type" >&5
1400 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1401 test x"$ac_cv_host_system_type" != x"$host"; } ||
1402 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1403 test x"$ac_cv_build_system_type" != x"$build"; } ||
1404 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1405 test x"$ac_cv_target_system_type" != x"$target"; }; then
1406 echo "$ac_t""different" 1>&6
1407 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1409 echo "$ac_t""same" 1>&6
1411 ac_cv_host_system_type="$host"
1412 ac_cv_build_system_type="$build"
1413 ac_cv_target_system_type="$target"
1419 # Config CPPFLAG settings for strange OS's that must be set
1420 # before other tests.
1423 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1426 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether ${CC-cc} accepts -Ae" >&5
1428 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 echo 'void f(){}' > conftest.c
1432 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1433 ac_cv_prog_cc_Ae=yes
1441 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1442 # mmap on HPUX is completely broken...
1443 cat >> confdefs.h <<\EOF
1444 #define MMAP_BLACKLIST 1
1447 if test $ac_cv_prog_cc_Ae = yes; then
1448 CPPFLAGS="$CPPFLAGS -Ae"
1451 # Defines needed for HPUX support.
1452 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1453 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1457 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1458 cat >> confdefs.h <<\EOF
1459 #define USE_BOTH_CRYPT_CALLS 1
1462 cat >> confdefs.h <<\EOF
1463 #define _HPUX_SOURCE 1
1466 cat >> confdefs.h <<\EOF
1467 #define _POSIX_SOURCE 1
1470 cat >> confdefs.h <<\EOF
1471 #define _ALIGNMENT_REQUIRED 1
1474 cat >> confdefs.h <<\EOF
1475 #define _MAX_ALIGNMENT 4
1480 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1481 cat >> confdefs.h <<\EOF
1482 #define USE_BOTH_CRYPT_CALLS 1
1485 cat >> confdefs.h <<\EOF
1486 #define _HPUX_SOURCE 1
1489 cat >> confdefs.h <<\EOF
1490 #define _POSIX_SOURCE 1
1493 cat >> confdefs.h <<\EOF
1494 #define _LARGEFILE64_SOURCE 1
1497 cat >> confdefs.h <<\EOF
1498 #define _ALIGNMENT_REQUIRED 1
1501 cat >> confdefs.h <<\EOF
1502 #define _MAX_ALIGNMENT 4
1511 # CRAY Unicos has broken const handling
1513 echo "$ac_t""disabling const" 1>&6
1514 CPPFLAGS="$CPPFLAGS -Dconst="
1518 # AIX4.x doesn't even admit to having large
1519 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1522 echo "$ac_t""enabling large file support" 1>&6
1523 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1524 cat >> confdefs.h <<\EOF
1525 #define _LARGE_FILES 1
1530 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1531 # to the existance of large files..
1532 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1533 # recommendations on large file support, however it makes the
1534 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1535 # recommendation makes the compile fail on gcc2.7. JRA.
1539 5.0*|5.1*|5.2*|5.3*|5.5*)
1540 echo "$ac_t""no large file support" 1>&6
1543 echo "$ac_t""enabling large file support" 1>&6
1544 if test "$ac_cv_prog_gcc" = yes; then
1545 ${CC-cc} -v >conftest.c 2>&1
1546 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1548 case "$ac_cv_gcc_compiler_version_number" in
1549 *"gcc version 2.6"*|*"gcc version 2.7"*)
1550 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1551 cat >> confdefs.h <<\EOF
1552 #define _LARGEFILE64_SOURCE 1
1557 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1558 cat >> confdefs.h <<\EOF
1559 #define _LARGEFILE64_SOURCE 1
1562 cat >> confdefs.h <<\EOF
1563 #define _FILE_OFFSET_BITS 64
1569 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1570 cat >> confdefs.h <<\EOF
1571 #define _LARGEFILE64_SOURCE 1
1574 cat >> confdefs.h <<\EOF
1575 #define _FILE_OFFSET_BITS 64
1583 # Tests needed for SINIX large file support.
1586 if test $host = mips-sni-sysv4 ; then
1587 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1588 echo "configure:1589: checking for LFS support" >&5
1589 old_CPPFLAGS="$CPPFLAGS"
1590 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1591 if test "$cross_compiling" = yes; then
1592 SINIX_LFS_SUPPORT=cross
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1600 #if _LFS64_LARGEFILE == 1
1607 if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1609 SINIX_LFS_SUPPORT=yes
1611 echo "configure: failed program was:" >&5
1612 cat conftest.$ac_ext >&5
1614 SINIX_LFS_SUPPORT=no
1619 CPPFLAGS="$old_CPPFLAGS"
1620 if test x$SINIX_LFS_SUPPORT = xyes ; then
1621 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1622 cat >> confdefs.h <<\EOF
1623 #define _LARGEFILE64_SOURCE 1
1626 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1627 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1628 LIBS="`getconf LFS64_LIBS` $LIBS"
1630 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1634 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1637 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1638 echo "configure:1639: checking for LFS support" >&5
1639 old_CPPFLAGS="$CPPFLAGS"
1640 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1641 if test "$cross_compiling" = yes; then
1642 LINUX_LFS_SUPPORT=cross
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1649 #include <sys/utsname.h>
1651 #if _LFS64_LARGEFILE == 1
1656 /* Ensure this is glibc 2.2 or higher */
1657 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1658 int libc_major = __GLIBC__;
1659 int libc_minor = __GLIBC_MINOR__;
1667 /* Ensure this is kernel 2.4 or higher */
1670 release = uts.release;
1671 major = atoi(strsep(&release, "."));
1672 minor = atoi(strsep(&release, "."));
1674 if (major > 2 || (major == 2 && minor > 3))
1683 if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1685 LINUX_LFS_SUPPORT=yes
1687 echo "configure: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1690 LINUX_LFS_SUPPORT=no
1695 CPPFLAGS="$old_CPPFLAGS"
1696 if test x$LINUX_LFS_SUPPORT = xyes ; then
1697 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1698 cat >> confdefs.h <<\EOF
1699 #define _LARGEFILE64_SOURCE 1
1702 cat >> confdefs.h <<\EOF
1703 #define _FILE_OFFSET_BITS 64
1706 cat >> confdefs.h <<\EOF
1707 #define _GNU_SOURCE 1
1711 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1715 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1716 echo "configure:1717: checking for LFS support" >&5
1717 old_CPPFLAGS="$CPPFLAGS"
1718 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1719 if test "$cross_compiling" = yes; then
1720 GLIBC_LFS_SUPPORT=cross
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1728 #if _LFS64_LARGEFILE == 1
1735 if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1737 GLIBC_LFS_SUPPORT=yes
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1742 GLIBC_LFS_SUPPORT=no
1747 CPPFLAGS="$old_CPPFLAGS"
1748 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1749 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1750 cat >> confdefs.h <<\EOF
1751 #define _LARGEFILE64_SOURCE 1
1754 cat >> confdefs.h <<\EOF
1755 #define _GNU_SOURCE 1
1759 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1764 echo $ac_n "checking for inline""... $ac_c" 1>&6
1765 echo "configure:1766: checking for inline" >&5
1766 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1770 for ac_kw in inline __inline__ __inline; do
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1779 if { (eval echo configure:1780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1781 ac_cv_c_inline=$ac_kw; break
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1791 echo "$ac_t""$ac_cv_c_inline" 1>&6
1792 case "$ac_cv_c_inline" in
1794 no) cat >> confdefs.h <<\EOF
1798 *) cat >> confdefs.h <<EOF
1799 #define inline $ac_cv_c_inline
1804 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1805 echo "configure:1806: checking how to run the C preprocessor" >&5
1806 # On Suns, sometimes $CPP names a directory.
1807 if test -n "$CPP" && test -d "$CPP"; then
1810 if test -z "$CPP"; then
1811 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 # This must be in double quotes, not single quotes, because CPP may get
1815 # substituted into the Makefile and "${CC-cc}" will confuse make.
1817 # On the NeXT, cc -E runs the code through the compiler's parser,
1818 # not just through cpp.
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1826 { (eval echo configure:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1828 if test -z "$ac_err"; then
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 CPP="${CC-cc} -E -traditional-cpp"
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 CPP="${CC-cc} -nologo -E"
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1860 { (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1862 if test -z "$ac_err"; then
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1876 ac_cv_prog_CPP="$CPP"
1878 CPP="$ac_cv_prog_CPP"
1880 ac_cv_prog_CPP="$CPP"
1882 echo "$ac_t""$CPP" 1>&6
1884 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1885 echo "configure:1886: checking for ANSI C header files" >&5
1886 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1898 { (eval echo configure:1899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1900 if test -z "$ac_err"; then
1902 ac_cv_header_stdc=yes
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1908 ac_cv_header_stdc=no
1912 if test $ac_cv_header_stdc = yes; then
1913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1920 egrep "memchr" >/dev/null 2>&1; then
1924 ac_cv_header_stdc=no
1930 if test $ac_cv_header_stdc = yes; then
1931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1938 egrep "free" >/dev/null 2>&1; then
1942 ac_cv_header_stdc=no
1948 if test $ac_cv_header_stdc = yes; then
1949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1950 if test "$cross_compiling" = yes; then
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1957 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1958 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1960 int main () { int i; for (i = 0; i < 256; i++)
1961 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1972 ac_cv_header_stdc=no
1980 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1981 if test $ac_cv_header_stdc = yes; then
1982 cat >> confdefs.h <<\EOF
1983 #define STDC_HEADERS 1
1989 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1992 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1993 echo "configure:1994: checking for $ac_hdr that defines DIR" >&5
1994 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 #include <sys/types.h>
2006 if { (eval echo configure:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 eval "ac_cv_header_dirent_$ac_safe=yes"
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 eval "ac_cv_header_dirent_$ac_safe=no"
2017 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2018 echo "$ac_t""yes" 1>&6
2019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2020 cat >> confdefs.h <<EOF
2021 #define $ac_tr_hdr 1
2023 ac_header_dirent=$ac_hdr; break
2025 echo "$ac_t""no" 1>&6
2028 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2029 if test $ac_header_dirent = dirent.h; then
2030 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2031 echo "configure:2032: checking for opendir in -ldir" >&5
2032 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 ac_save_LIBS="$LIBS"
2038 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2041 /* Override any gcc2 internal prototype to avoid an error. */
2042 /* We use char because int might match the return type of a gcc2
2043 builtin and then its argument prototype would still apply. */
2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2052 eval "ac_cv_lib_$ac_lib_var=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 eval "ac_cv_lib_$ac_lib_var=no"
2060 LIBS="$ac_save_LIBS"
2063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2064 echo "$ac_t""yes" 1>&6
2067 echo "$ac_t""no" 1>&6
2071 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2072 echo "configure:2073: checking for opendir in -lx" >&5
2073 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 ac_save_LIBS="$LIBS"
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 /* Override any gcc2 internal prototype to avoid an error. */
2083 /* We use char because int might match the return type of a gcc2
2084 builtin and then its argument prototype would still apply. */
2091 if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2093 eval "ac_cv_lib_$ac_lib_var=yes"
2095 echo "configure: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2098 eval "ac_cv_lib_$ac_lib_var=no"
2101 LIBS="$ac_save_LIBS"
2104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2105 echo "$ac_t""yes" 1>&6
2108 echo "$ac_t""no" 1>&6
2113 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2114 echo "configure:2115: checking whether time.h and sys/time.h may both be included" >&5
2115 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 cat > conftest.$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 #include <sys/types.h>
2122 #include <sys/time.h>
2128 if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2130 ac_cv_header_time=yes
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2135 ac_cv_header_time=no
2140 echo "$ac_t""$ac_cv_header_time" 1>&6
2141 if test $ac_cv_header_time = yes; then
2142 cat >> confdefs.h <<\EOF
2143 #define TIME_WITH_SYS_TIME 1
2148 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2149 echo "configure:2150: checking for sys/wait.h that is POSIX.1 compatible" >&5
2150 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 #include <sys/types.h>
2157 #include <sys/wait.h>
2159 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2162 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2167 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2170 if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2172 ac_cv_header_sys_wait_h=yes
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2177 ac_cv_header_sys_wait_h=no
2182 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2183 if test $ac_cv_header_sys_wait_h = yes; then
2184 cat >> confdefs.h <<\EOF
2185 #define HAVE_SYS_WAIT_H 1
2190 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2194 echo "configure:2195: checking for $ac_hdr" >&5
2195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 cat > conftest.$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2204 { (eval echo configure:2205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2206 if test -z "$ac_err"; then
2208 eval "ac_cv_header_$ac_safe=yes"
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2214 eval "ac_cv_header_$ac_safe=no"
2218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2221 cat >> confdefs.h <<EOF
2222 #define $ac_tr_hdr 1
2226 echo "$ac_t""no" 1>&6
2230 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_hdr" >&5
2235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2248 eval "ac_cv_header_$ac_safe=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_header_$ac_safe=no"
2258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2261 cat >> confdefs.h <<EOF
2262 #define $ac_tr_hdr 1
2266 echo "$ac_t""no" 1>&6
2270 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_hdr" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2288 eval "ac_cv_header_$ac_safe=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 eval "ac_cv_header_$ac_safe=no"
2298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2301 cat >> confdefs.h <<EOF
2302 #define $ac_tr_hdr 1
2306 echo "$ac_t""no" 1>&6
2310 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_hdr" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2341 cat >> confdefs.h <<EOF
2342 #define $ac_tr_hdr 1
2346 echo "$ac_t""no" 1>&6
2350 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
2352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2354 echo "configure:2355: checking for $ac_hdr" >&5
2355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2366 if test -z "$ac_err"; then
2368 eval "ac_cv_header_$ac_safe=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 eval "ac_cv_header_$ac_safe=no"
2378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_hdr 1
2386 echo "$ac_t""no" 1>&6
2390 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_hdr" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_hdr 1
2426 echo "$ac_t""no" 1>&6
2430 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2434 echo "configure:2435: checking for $ac_hdr" >&5
2435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2444 { (eval echo configure:2445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2446 if test -z "$ac_err"; then
2448 eval "ac_cv_header_$ac_safe=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2454 eval "ac_cv_header_$ac_safe=no"
2458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2461 cat >> confdefs.h <<EOF
2462 #define $ac_tr_hdr 1
2466 echo "$ac_t""no" 1>&6
2470 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_hdr" >&5
2475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2484 { (eval echo configure:2485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2486 if test -z "$ac_err"; then
2488 eval "ac_cv_header_$ac_safe=yes"
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 eval "ac_cv_header_$ac_safe=no"
2498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_hdr 1
2506 echo "$ac_t""no" 1>&6
2512 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2513 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2525 if { (eval echo configure:2526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2527 ac_cv_header_shadow_h=yes
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2532 ac_cv_header_shadow_h=no
2535 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2536 cat >> confdefs.h <<\EOF
2537 #define HAVE_SHADOW_H 1
2543 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2547 echo "configure:2548: checking for $ac_hdr" >&5
2548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2557 { (eval echo configure:2558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2559 if test -z "$ac_err"; then
2561 eval "ac_cv_header_$ac_safe=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 eval "ac_cv_header_$ac_safe=no"
2571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2572 echo "$ac_t""yes" 1>&6
2573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2574 cat >> confdefs.h <<EOF
2575 #define $ac_tr_hdr 1
2579 echo "$ac_t""no" 1>&6
2583 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_hdr" >&5
2588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2597 { (eval echo configure:2598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2599 if test -z "$ac_err"; then
2601 eval "ac_cv_header_$ac_safe=yes"
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2607 eval "ac_cv_header_$ac_safe=no"
2611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2614 cat >> confdefs.h <<EOF
2615 #define $ac_tr_hdr 1
2619 echo "$ac_t""no" 1>&6
2623 for ac_hdr in stropts.h poll.h
2625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_hdr" >&5
2628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2637 { (eval echo configure:2638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2639 if test -z "$ac_err"; then
2641 eval "ac_cv_header_$ac_safe=yes"
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 eval "ac_cv_header_$ac_safe=no"
2651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2652 echo "$ac_t""yes" 1>&6
2653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2654 cat >> confdefs.h <<EOF
2655 #define $ac_tr_hdr 1
2659 echo "$ac_t""no" 1>&6
2663 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_hdr" >&5
2668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2677 { (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2679 if test -z "$ac_err"; then
2681 eval "ac_cv_header_$ac_safe=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 eval "ac_cv_header_$ac_safe=no"
2691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2692 echo "$ac_t""yes" 1>&6
2693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2694 cat >> confdefs.h <<EOF
2695 #define $ac_tr_hdr 1
2699 echo "$ac_t""no" 1>&6
2703 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2707 echo "configure:2708: checking for $ac_hdr" >&5
2708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2717 { (eval echo configure:2718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2719 if test -z "$ac_err"; then
2721 eval "ac_cv_header_$ac_safe=yes"
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2727 eval "ac_cv_header_$ac_safe=no"
2731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2732 echo "$ac_t""yes" 1>&6
2733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2734 cat >> confdefs.h <<EOF
2735 #define $ac_tr_hdr 1
2739 echo "$ac_t""no" 1>&6
2744 # For experimental utmp support (lastlog on some BSD-like systems)
2745 for ac_hdr in utmp.h utmpx.h lastlog.h
2747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2749 echo "configure:2750: checking for $ac_hdr" >&5
2750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2759 { (eval echo configure:2760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2761 if test -z "$ac_err"; then
2763 eval "ac_cv_header_$ac_safe=yes"
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 eval "ac_cv_header_$ac_safe=no"
2773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2774 echo "$ac_t""yes" 1>&6
2775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2776 cat >> confdefs.h <<EOF
2777 #define $ac_tr_hdr 1
2781 echo "$ac_t""no" 1>&6
2786 # For quotas on Veritas VxFS filesystems
2787 for ac_hdr in sys/fs/vx_quota.h
2789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_hdr" >&5
2792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2805 eval "ac_cv_header_$ac_safe=yes"
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2811 eval "ac_cv_header_$ac_safe=no"
2815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2818 cat >> confdefs.h <<EOF
2819 #define $ac_tr_hdr 1
2823 echo "$ac_t""no" 1>&6
2828 # For quotas on Linux XFS filesystems
2829 for ac_hdr in linux/xqm.h
2831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_hdr" >&5
2834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2843 { (eval echo configure:2844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2845 if test -z "$ac_err"; then
2847 eval "ac_cv_header_$ac_safe=yes"
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2853 eval "ac_cv_header_$ac_safe=no"
2857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2860 cat >> confdefs.h <<EOF
2861 #define $ac_tr_hdr 1
2865 echo "$ac_t""no" 1>&6
2870 echo $ac_n "checking size of int""... $ac_c" 1>&6
2871 echo "configure:2872: checking size of int" >&5
2872 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 if test "$cross_compiling" = yes; then
2876 ac_cv_sizeof_int=cross
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2884 FILE *f=fopen("conftestval", "w");
2886 fprintf(f, "%d\n", sizeof(int));
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2892 ac_cv_sizeof_int=`cat conftestval`
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2903 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2904 cat >> confdefs.h <<EOF
2905 #define SIZEOF_INT $ac_cv_sizeof_int
2909 echo $ac_n "checking size of long""... $ac_c" 1>&6
2910 echo "configure:2911: checking size of long" >&5
2911 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 if test "$cross_compiling" = yes; then
2915 ac_cv_sizeof_long=cross
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2923 FILE *f=fopen("conftestval", "w");
2925 fprintf(f, "%d\n", sizeof(long));
2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2931 ac_cv_sizeof_long=`cat conftestval`
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2942 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2943 cat >> confdefs.h <<EOF
2944 #define SIZEOF_LONG $ac_cv_sizeof_long
2948 echo $ac_n "checking size of short""... $ac_c" 1>&6
2949 echo "configure:2950: checking size of short" >&5
2950 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 if test "$cross_compiling" = yes; then
2954 ac_cv_sizeof_short=cross
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2962 FILE *f=fopen("conftestval", "w");
2964 fprintf(f, "%d\n", sizeof(short));
2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2970 ac_cv_sizeof_short=`cat conftestval`
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2975 ac_cv_sizeof_short=0
2981 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2982 cat >> confdefs.h <<EOF
2983 #define SIZEOF_SHORT $ac_cv_sizeof_short
2988 echo $ac_n "checking for working const""... $ac_c" 1>&6
2989 echo "configure:2990: checking for working const" >&5
2990 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2999 /* Ultrix mips cc rejects this. */
3000 typedef int charset[2]; const charset x;
3001 /* SunOS 4.1.1 cc rejects this. */
3002 char const *const *ccp;
3004 /* NEC SVR4.0.2 mips cc rejects this. */
3005 struct point {int x, y;};
3006 static struct point const zero = {0,0};
3007 /* AIX XL C 1.02.0.0 rejects this.
3008 It does not let you subtract one const X* pointer from another in an arm
3009 of an if-expression whose if-part is not a constant expression */
3010 const char *g = "string";
3011 ccp = &g + (g ? g-g : 0);
3012 /* HPUX 7.0 cc rejects these. */
3015 ccp = (char const *const *) p;
3016 { /* SCO 3.2v4 cc rejects this. */
3018 char const *s = 0 ? (char *) 0 : (char const *) 0;
3022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3024 const int *foo = &x[0];
3027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3028 typedef const int *iptr;
3032 { /* AIX XL C 1.02.0.0 rejects this saying
3033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3034 struct s { int j; const int *ap[3]; };
3035 struct s *b; b->j = 5;
3037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3043 if { (eval echo configure:3044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3055 echo "$ac_t""$ac_cv_c_const" 1>&6
3056 if test $ac_cv_c_const = no; then
3057 cat >> confdefs.h <<\EOF
3063 echo $ac_n "checking for inline""... $ac_c" 1>&6
3064 echo "configure:3065: checking for inline" >&5
3065 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3069 for ac_kw in inline __inline__ __inline; do
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3078 if { (eval echo configure:3079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3080 ac_cv_c_inline=$ac_kw; break
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3090 echo "$ac_t""$ac_cv_c_inline" 1>&6
3091 case "$ac_cv_c_inline" in
3093 no) cat >> confdefs.h <<\EOF
3097 *) cat >> confdefs.h <<EOF
3098 #define inline $ac_cv_c_inline
3103 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3104 echo "configure:3105: checking whether byte ordering is bigendian" >&5
3105 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 ac_cv_c_bigendian=unknown
3109 # See if sys/param.h defines the BYTE_ORDER macro.
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3113 #include <sys/types.h>
3114 #include <sys/param.h>
3117 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3122 if { (eval echo configure:3123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3124 # It does; now see whether it defined to BIG_ENDIAN or not.
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <sys/types.h>
3129 #include <sys/param.h>
3132 #if BYTE_ORDER != BIG_ENDIAN
3137 if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3139 ac_cv_c_bigendian=yes
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3144 ac_cv_c_bigendian=no
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3152 if test $ac_cv_c_bigendian = unknown; then
3153 if test "$cross_compiling" = yes; then
3154 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3160 /* Are we little or big endian? From Harbison&Steele. */
3164 char c[sizeof (long)];
3167 exit (u.c[sizeof (long) - 1] == 1);
3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3172 ac_cv_c_bigendian=no
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3177 ac_cv_c_bigendian=yes
3185 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3186 if test $ac_cv_c_bigendian = yes; then
3187 cat >> confdefs.h <<\EOF
3188 #define WORDS_BIGENDIAN 1
3193 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3194 echo "configure:3195: checking whether char is unsigned" >&5
3195 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 if test "$GCC" = yes; then
3199 # GCC predefines this symbol on systems where it applies.
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 #ifdef __CHAR_UNSIGNED__
3208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3209 egrep "yes" >/dev/null 2>&1; then
3211 ac_cv_c_char_unsigned=yes
3214 ac_cv_c_char_unsigned=no
3219 if test "$cross_compiling" = yes; then
3220 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3226 #if !defined(__STDC__) || __STDC__ != 1
3230 volatile char c = 255; exit(c < 0);
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3235 ac_cv_c_char_unsigned=yes
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 ac_cv_c_char_unsigned=no
3248 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3249 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3250 cat >> confdefs.h <<\EOF
3251 #define __CHAR_UNSIGNED__ 1
3257 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3258 echo "configure:3259: checking return type of signal handlers" >&5
3259 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <sys/types.h>
3271 extern "C" void (*signal (int, void (*)(int)))(int);
3273 void (*signal ()) ();
3280 if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3282 ac_cv_type_signal=void
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 ac_cv_type_signal=int
3292 echo "$ac_t""$ac_cv_type_signal" 1>&6
3293 cat >> confdefs.h <<EOF
3294 #define RETSIGTYPE $ac_cv_type_signal
3298 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3299 echo "configure:3300: checking for uid_t in sys/types.h" >&5
3300 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 #include <sys/types.h>
3308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3309 egrep "uid_t" >/dev/null 2>&1; then
3311 ac_cv_type_uid_t=yes
3320 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3321 if test $ac_cv_type_uid_t = no; then
3322 cat >> confdefs.h <<\EOF
3326 cat >> confdefs.h <<\EOF
3332 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3333 echo "configure:3334: checking for mode_t" >&5
3334 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3349 ac_cv_type_mode_t=yes
3352 ac_cv_type_mode_t=no
3357 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3358 if test $ac_cv_type_mode_t = no; then
3359 cat >> confdefs.h <<\EOF
3365 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3366 echo "configure:3367: checking for off_t" >&5
3367 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <sys/types.h>
3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3382 ac_cv_type_off_t=yes
3390 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3391 if test $ac_cv_type_off_t = no; then
3392 cat >> confdefs.h <<\EOF
3398 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3399 echo "configure:3400: checking for size_t" >&5
3400 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <sys/types.h>
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3415 ac_cv_type_size_t=yes
3418 ac_cv_type_size_t=no
3423 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3424 if test $ac_cv_type_size_t = no; then
3425 cat >> confdefs.h <<\EOF
3426 #define size_t unsigned
3431 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3432 echo "configure:3433: checking for pid_t" >&5
3433 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 #include <sys/types.h>
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3448 ac_cv_type_pid_t=yes
3456 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3457 if test $ac_cv_type_pid_t = no; then
3458 cat >> confdefs.h <<\EOF
3464 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3465 echo "configure:3466: checking for st_rdev in struct stat" >&5
3466 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 cat > conftest.$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 #include <sys/types.h>
3473 #include <sys/stat.h>
3475 struct stat s; s.st_rdev;
3478 if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3480 ac_cv_struct_st_rdev=yes
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3485 ac_cv_struct_st_rdev=no
3490 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3491 if test $ac_cv_struct_st_rdev = yes; then
3492 cat >> confdefs.h <<\EOF
3493 #define HAVE_ST_RDEV 1
3498 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3499 echo "configure:3500: checking for d_off in dirent" >&5
3500 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3508 #include <sys/types.h>
3511 struct dirent d; d.d_off;
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3516 ac_cv_dirent_d_off=yes
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 ac_cv_dirent_d_off=no
3526 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3527 if test $ac_cv_dirent_d_off = yes; then
3528 cat >> confdefs.h <<\EOF
3529 #define HAVE_DIRENT_D_OFF 1
3534 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3535 echo "configure:3536: checking for ino_t" >&5
3536 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3551 ac_cv_type_ino_t=yes
3559 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3560 if test $ac_cv_type_ino_t = no; then
3561 cat >> confdefs.h <<\EOF
3562 #define ino_t unsigned
3567 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3568 echo "configure:3569: checking for loff_t" >&5
3569 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 #include <sys/types.h>
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3584 ac_cv_type_loff_t=yes
3587 ac_cv_type_loff_t=no
3592 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3593 if test $ac_cv_type_loff_t = no; then
3594 cat >> confdefs.h <<\EOF
3595 #define loff_t off_t
3600 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3601 echo "configure:3602: checking for offset_t" >&5
3602 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <sys/types.h>
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3617 ac_cv_type_offset_t=yes
3620 ac_cv_type_offset_t=no
3625 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3626 if test $ac_cv_type_offset_t = no; then
3627 cat >> confdefs.h <<\EOF
3628 #define offset_t loff_t
3633 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3634 echo "configure:3635: checking for ssize_t" >&5
3635 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3650 ac_cv_type_ssize_t=yes
3653 ac_cv_type_ssize_t=no
3658 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3659 if test $ac_cv_type_ssize_t = no; then
3660 cat >> confdefs.h <<\EOF
3666 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3667 echo "configure:3668: checking for wchar_t" >&5
3668 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3683 ac_cv_type_wchar_t=yes
3686 ac_cv_type_wchar_t=no
3691 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3692 if test $ac_cv_type_wchar_t = no; then
3693 cat >> confdefs.h <<\EOF
3694 #define wchar_t unsigned short
3700 ############################################
3701 # for cups support we need libcups, and a handful of header files
3703 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3704 echo "configure:3705: checking for httpConnect in -lcups" >&5
3705 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 ac_save_LIBS="$LIBS"
3711 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 /* Override any gcc2 internal prototype to avoid an error. */
3715 /* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3723 if { (eval echo configure:3724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3725 eval "ac_cv_lib_$ac_lib_var=yes"
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3730 eval "ac_cv_lib_$ac_lib_var=no"
3733 LIBS="$ac_save_LIBS"
3736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3737 echo "$ac_t""yes" 1>&6
3738 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3739 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3740 cat >> confdefs.h <<EOF
3741 #define $ac_tr_lib 1
3747 echo "$ac_t""no" 1>&6
3751 # I wonder if there is a nicer way of doing this?
3753 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3754 for ac_hdr in cups/cups.h cups/language.h
3756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3758 echo "configure:3759: checking for $ac_hdr" >&5
3759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
3767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3768 { (eval echo configure:3769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3770 if test -z "$ac_err"; then
3772 eval "ac_cv_header_$ac_safe=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 eval "ac_cv_header_$ac_safe=no"
3782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3785 cat >> confdefs.h <<EOF
3786 #define $ac_tr_hdr 1
3790 echo "$ac_t""no" 1>&6
3794 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3795 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3796 cat >> confdefs.h <<\EOF
3804 ############################################
3805 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3806 for ac_func in dlopen
3808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3809 echo "configure:3810: checking for $ac_func" >&5
3810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 /* System header to define __stub macros and hopefully few prototypes,
3817 which can conflict with char $ac_func(); below. */
3819 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3826 /* The GNU C library defines this for functions which it implements
3827 to always fail with ENOSYS. Some functions are actually named
3828 something starting with __ and the normal name is an alias. */
3829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3837 if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3839 eval "ac_cv_func_$ac_func=yes"
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3844 eval "ac_cv_func_$ac_func=no"
3849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3852 cat >> confdefs.h <<EOF
3853 #define $ac_tr_func 1
3857 echo "$ac_t""no" 1>&6
3861 if test x"$ac_cv_func_dlopen" = x"no"; then
3862 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3863 echo "configure:3864: checking for dlopen in -ldl" >&5
3864 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS="$LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_lib_$ac_lib_var=no"
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3898 cat >> confdefs.h <<\EOF
3899 #define HAVE_DLOPEN 1
3903 echo "$ac_t""no" 1>&6
3907 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3909 ############################################
3910 # check if the compiler can do immediate structures
3911 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3912 echo "configure:3913: checking for immediate structures" >&5
3913 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3924 typedef struct {unsigned x;} FOOBAR;
3925 #define X_FOOBAR(x) ((FOOBAR) { x })
3926 #define FOO_ONE X_FOOBAR(1)
3936 if { (eval echo configure:3937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3938 samba_cv_immediate_structures=yes
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3943 samba_cv_immediate_structures=no
3948 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3949 if test x"$samba_cv_immediate_structures" = x"yes"; then
3950 cat >> confdefs.h <<\EOF
3951 #define HAVE_IMMEDIATE_STRUCTURES 1
3956 ############################################
3957 # check for unix domain sockets
3958 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3959 echo "configure:3960: checking for unix domain sockets" >&5
3960 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3968 #include <sys/types.h>
3971 #include <sys/socket.h>
3975 struct sockaddr_un sunaddr;
3976 sunaddr.sun_family = AF_UNIX;
3980 if { (eval echo configure:3981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3982 samba_cv_unixsocket=yes
3984 echo "configure: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3987 samba_cv_unixsocket=no
3992 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3993 if test x"$samba_cv_unixsocket" = x"yes"; then
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_UNIXSOCKET 1
4001 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4002 echo "configure:4003: checking for socklen_t type" >&5
4003 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4011 #include <sys/types.h>
4016 #include <sys/socket.h>
4021 if { (eval echo configure:4022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 samba_cv_socklen_t=yes
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 samba_cv_socklen_t=no
4033 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4034 if test x"$samba_cv_socklen_t" = x"yes"; then
4035 cat >> confdefs.h <<\EOF
4036 #define HAVE_SOCKLEN_T_TYPE 1
4041 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4042 echo "configure:4043: checking for sig_atomic_t type" >&5
4043 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4051 #include <sys/types.h>
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 samba_cv_sig_atomic_t=yes
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4068 samba_cv_sig_atomic_t=no
4073 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4074 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_SIG_ATOMIC_T_TYPE 1
4081 # stupid headers have the functions but no declaration. grrrr.
4083 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4084 echo "configure:4085: checking for errno declaration" >&5
4085 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4097 if { (eval echo configure:4098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4099 ac_cv_have_errno_decl=yes
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 ac_cv_have_errno_decl=no
4109 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4110 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4111 cat >> confdefs.h <<\EOF
4112 #define HAVE_ERRNO_DECL 1
4118 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4119 echo "configure:4120: checking for setresuid declaration" >&5
4120 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4129 int i = (int)setresuid
4132 if { (eval echo configure:4133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4134 ac_cv_have_setresuid_decl=yes
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4139 ac_cv_have_setresuid_decl=no
4144 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4145 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4146 cat >> confdefs.h <<\EOF
4147 #define HAVE_SETRESUID_DECL 1
4153 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4154 echo "configure:4155: checking for setresgid declaration" >&5
4155 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4164 int i = (int)setresgid
4167 if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4169 ac_cv_have_setresgid_decl=yes
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 ac_cv_have_setresgid_decl=no
4179 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4180 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4181 cat >> confdefs.h <<\EOF
4182 #define HAVE_SETRESGID_DECL 1
4188 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4189 echo "configure:4190: checking for asprintf declaration" >&5
4190 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4199 int i = (int)asprintf
4202 if { (eval echo configure:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4204 ac_cv_have_asprintf_decl=yes
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4209 ac_cv_have_asprintf_decl=no
4214 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4215 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4216 cat >> confdefs.h <<\EOF
4217 #define HAVE_ASPRINTF_DECL 1
4223 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4224 echo "configure:4225: checking for vasprintf declaration" >&5
4225 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4234 int i = (int)vasprintf
4237 if { (eval echo configure:4238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4239 ac_cv_have_vasprintf_decl=yes
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4244 ac_cv_have_vasprintf_decl=no
4249 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4250 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4251 cat >> confdefs.h <<\EOF
4252 #define HAVE_VASPRINTF_DECL 1
4258 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4259 echo "configure:4260: checking for vsnprintf declaration" >&5
4260 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4269 int i = (int)vsnprintf
4272 if { (eval echo configure:4273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4274 ac_cv_have_vsnprintf_decl=yes
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4279 ac_cv_have_vsnprintf_decl=no
4284 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4285 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4286 cat >> confdefs.h <<\EOF
4287 #define HAVE_VSNPRINTF_DECL 1
4293 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4294 echo "configure:4295: checking for snprintf declaration" >&5
4295 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4304 int i = (int)snprintf
4307 if { (eval echo configure:4308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4309 ac_cv_have_snprintf_decl=yes
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 ac_cv_have_snprintf_decl=no
4319 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4320 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4321 cat >> confdefs.h <<\EOF
4322 #define HAVE_SNPRINTF_DECL 1
4328 # and glibc has setresuid under linux but the function does
4329 # nothing until kernel 2.1.44! very dumb.
4330 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4331 echo "configure:4332: checking for real setresuid" >&5
4332 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4336 if test "$cross_compiling" = yes; then
4337 samba_cv_have_setresuid=cross
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4343 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4345 if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4347 samba_cv_have_setresuid=yes
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4352 samba_cv_have_setresuid=no
4359 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4360 if test x"$samba_cv_have_setresuid" = x"yes"; then
4361 cat >> confdefs.h <<\EOF
4362 #define HAVE_SETRESUID 1
4367 # Do the same check for setresguid...
4369 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4370 echo "configure:4371: checking for real setresgid" >&5
4371 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4375 if test "$cross_compiling" = yes; then
4376 samba_cv_have_setresgid=cross
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4383 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4387 samba_cv_have_setresgid=yes
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4392 samba_cv_have_setresgid=no
4399 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4400 if test x"$samba_cv_have_setresgid" = x"yes"; then
4401 cat >> confdefs.h <<\EOF
4402 #define HAVE_SETRESGID 1
4407 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4408 echo "configure:4409: checking for 8-bit clean memcmp" >&5
4409 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 if test "$cross_compiling" = yes; then
4413 ac_cv_func_memcmp_clean=no
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4421 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4422 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4428 ac_cv_func_memcmp_clean=yes
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 ac_cv_func_memcmp_clean=no
4440 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4441 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4444 ###############################################
4445 # test for where we get crypt() from
4446 for ac_func in crypt
4448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_func" >&5
4450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* System header to define __stub macros and hopefully few prototypes,
4457 which can conflict with char $ac_func(); below. */
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4466 /* The GNU C library defines this for functions which it implements
4467 to always fail with ENOSYS. Some functions are actually named
4468 something starting with __ and the normal name is an alias. */
4469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479 eval "ac_cv_func_$ac_func=yes"
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4484 eval "ac_cv_func_$ac_func=no"
4489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4492 cat >> confdefs.h <<EOF
4493 #define $ac_tr_func 1
4497 echo "$ac_t""no" 1>&6
4501 if test x"$ac_cv_func_crypt" = x"no"; then
4502 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4503 echo "configure:4504: checking for crypt in -lcrypt" >&5
4504 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 ac_save_LIBS="$LIBS"
4509 LIBS="-lcrypt $LIBS"
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* Override any gcc2 internal prototype to avoid an error. */
4514 /* We use char because int might match the return type of a gcc2
4515 builtin and then its argument prototype would still apply. */
4522 if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4524 eval "ac_cv_lib_$ac_lib_var=yes"
4526 echo "configure: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4529 eval "ac_cv_lib_$ac_lib_var=no"
4532 LIBS="$ac_save_LIBS"
4535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 LIBS="$LIBS -lcrypt";
4538 cat >> confdefs.h <<\EOF
4539 #define HAVE_CRYPT 1
4543 echo "$ac_t""no" 1>&6
4549 ###############################################
4550 # Readline included by default unless explicitly asked not to
4551 test "${with_readline+set}" != "set" && with_readline=yes
4553 # test for where we get readline() from
4554 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4555 echo "configure:4556: checking whether to use readline" >&5
4556 # Check whether --with-readline or --without-readline was given.
4557 if test "${with_readline+set}" = set; then
4558 withval="$with_readline"
4559 case "$with_readline" in
4561 echo "$ac_t""yes" 1>&6
4563 for ac_hdr in readline.h history.h readline/readline.h
4565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4567 echo "configure:4568: checking for $ac_hdr" >&5
4568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4577 { (eval echo configure:4578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4579 if test -z "$ac_err"; then
4581 eval "ac_cv_header_$ac_safe=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 eval "ac_cv_header_$ac_safe=no"
4591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4594 cat >> confdefs.h <<EOF
4595 #define $ac_tr_hdr 1
4599 echo "$ac_t""no" 1>&6
4603 for ac_hdr in readline/history.h
4605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4607 echo "configure:4608: checking for $ac_hdr" >&5
4608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4617 { (eval echo configure:4618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4619 if test -z "$ac_err"; then
4621 eval "ac_cv_header_$ac_safe=yes"
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4627 eval "ac_cv_header_$ac_safe=no"
4631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4634 cat >> confdefs.h <<EOF
4635 #define $ac_tr_hdr 1
4639 echo "$ac_t""no" 1>&6
4644 for ac_hdr in readline.h readline/readline.h
4646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4648 echo "configure:4649: checking for $ac_hdr" >&5
4649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4658 { (eval echo configure:4659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4660 if test -z "$ac_err"; then
4662 eval "ac_cv_header_$ac_safe=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 eval "ac_cv_header_$ac_safe=no"
4672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4675 cat >> confdefs.h <<EOF
4676 #define $ac_tr_hdr 1
4679 for termlib in ncurses curses termcap terminfo termlib; do
4680 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4681 echo "configure:4682: checking for tgetent in -l${termlib}" >&5
4682 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 ac_save_LIBS="$LIBS"
4687 LIBS="-l${termlib} $LIBS"
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 /* Override any gcc2 internal prototype to avoid an error. */
4692 /* We use char because int might match the return type of a gcc2
4693 builtin and then its argument prototype would still apply. */
4700 if { (eval echo configure:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4702 eval "ac_cv_lib_$ac_lib_var=yes"
4704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4707 eval "ac_cv_lib_$ac_lib_var=no"
4710 LIBS="$ac_save_LIBS"
4713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4714 echo "$ac_t""yes" 1>&6
4715 TERMLIBS="-l${termlib}"; break
4717 echo "$ac_t""no" 1>&6
4721 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4722 echo "configure:4723: checking for rl_callback_handler_install in -lreadline" >&5
4723 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 ac_save_LIBS="$LIBS"
4728 LIBS="-lreadline $TERMLIBS $LIBS"
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 /* Override any gcc2 internal prototype to avoid an error. */
4733 /* We use char because int might match the return type of a gcc2
4734 builtin and then its argument prototype would still apply. */
4735 char rl_callback_handler_install();
4738 rl_callback_handler_install()
4741 if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743 eval "ac_cv_lib_$ac_lib_var=yes"
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4748 eval "ac_cv_lib_$ac_lib_var=no"
4751 LIBS="$ac_save_LIBS"
4754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4755 echo "$ac_t""yes" 1>&6
4756 TERMLIBS="-lreadline $TERMLIBS"
4757 cat >> confdefs.h <<\EOF
4758 #define HAVE_LIBREADLINE 1
4763 echo "$ac_t""no" 1>&6
4768 echo "$ac_t""no" 1>&6
4774 echo "$ac_t""no" 1>&6
4777 echo "$ac_t""yes" 1>&6
4779 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4780 # alternate readline path
4782 _cppflags=${CPPFLAGS}
4784 # Add additional search path
4785 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4786 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4788 for ac_hdr in readline.h history.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
4824 echo "$ac_t""no" 1>&6
4828 for ac_hdr in readline/history.h
4830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4832 echo "configure:4833: checking for $ac_hdr" >&5
4833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4842 { (eval echo configure:4843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4844 if test -z "$ac_err"; then
4846 eval "ac_cv_header_$ac_safe=yes"
4849 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4852 eval "ac_cv_header_$ac_safe=no"
4856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4857 echo "$ac_t""yes" 1>&6
4858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4859 cat >> confdefs.h <<EOF
4860 #define $ac_tr_hdr 1
4864 echo "$ac_t""no" 1>&6
4869 for ac_hdr in readline.h readline/readline.h
4871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_hdr" >&5
4874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4883 { (eval echo configure:4884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4885 if test -z "$ac_err"; then
4887 eval "ac_cv_header_$ac_safe=yes"
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4893 eval "ac_cv_header_$ac_safe=no"
4897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4898 echo "$ac_t""yes" 1>&6
4899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4900 cat >> confdefs.h <<EOF
4901 #define $ac_tr_hdr 1
4904 for termlib in ncurses curses termcap terminfo termlib; do
4905 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4906 echo "configure:4907: checking for tgetent in -l${termlib}" >&5
4907 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 ac_save_LIBS="$LIBS"
4912 LIBS="-l${termlib} $LIBS"
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4925 if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927 eval "ac_cv_lib_$ac_lib_var=yes"
4929 echo "configure: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4932 eval "ac_cv_lib_$ac_lib_var=no"
4935 LIBS="$ac_save_LIBS"
4938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4940 TERMLIBS="-l${termlib}"; break
4942 echo "$ac_t""no" 1>&6
4946 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4947 echo "configure:4948: checking for rl_callback_handler_install in -lreadline" >&5
4948 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 ac_save_LIBS="$LIBS"
4953 LIBS="-lreadline $TERMLIBS $LIBS"
4954 cat > conftest.$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4960 char rl_callback_handler_install();
4963 rl_callback_handler_install()
4966 if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4968 eval "ac_cv_lib_$ac_lib_var=yes"
4970 echo "configure: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4973 eval "ac_cv_lib_$ac_lib_var=no"
4976 LIBS="$ac_save_LIBS"
4979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 TERMLDFLAGS="-L$with_readline/lib"
4982 TERMCPPFLAGS="-I$with_readline/include"
4983 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4984 TERMLIBS="-lreadline $TERMLIBS"
4985 cat >> confdefs.h <<\EOF
4986 #define HAVE_LIBREADLINE 1
4991 echo "$ac_t""no" 1>&6
4992 TERMLIBS= CPPFLAGS=$_cppflags
4996 echo "$ac_t""no" 1>&6
5005 echo "$ac_t""no" 1>&6
5012 # The readline API changed slightly from readline3 to readline4, so
5013 # code will generate warnings on one of them unless we have a few
5015 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5016 echo "configure:5017: checking for rl_completion_matches in -lreadline" >&5
5017 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 ac_save_LIBS="$LIBS"
5022 LIBS="-lreadline $TERMLIBS $LIBS"
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 /* Override any gcc2 internal prototype to avoid an error. */
5027 /* We use char because int might match the return type of a gcc2
5028 builtin and then its argument prototype would still apply. */
5029 char rl_completion_matches();
5032 rl_completion_matches()
5035 if { (eval echo configure:5036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5037 eval "ac_cv_lib_$ac_lib_var=yes"
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5042 eval "ac_cv_lib_$ac_lib_var=no"
5045 LIBS="$ac_save_LIBS"
5048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5050 cat >> confdefs.h <<\EOF
5051 #define HAVE_NEW_LIBREADLINE 1
5055 echo "$ac_t""no" 1>&6
5059 # The following test taken from the cvs sources
5060 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5061 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5062 # libsocket.so which has a bad implementation of gethostbyname (it
5063 # only looks in /etc/hosts), so we only look for -lsocket if we need
5065 for ac_func in connect
5067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $ac_func" >&5
5069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 /* System header to define __stub macros and hopefully few prototypes,
5076 which can conflict with char $ac_func(); below. */
5078 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5085 /* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5098 eval "ac_cv_func_$ac_func=yes"
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 eval "ac_cv_func_$ac_func=no"
5108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5111 cat >> confdefs.h <<EOF
5112 #define $ac_tr_func 1
5116 echo "$ac_t""no" 1>&6
5120 if test x"$ac_cv_func_connect" = x"no"; then
5123 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5124 echo "configure:5125: checking for printf in -lnsl_s" >&5
5125 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5129 ac_save_LIBS="$LIBS"
5130 LIBS="-lnsl_s $LIBS"
5131 cat > conftest.$ac_ext <<EOF
5132 #line 5133 "configure"
5133 #include "confdefs.h"
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5143 if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5145 eval "ac_cv_lib_$ac_lib_var=yes"
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5150 eval "ac_cv_lib_$ac_lib_var=no"
5153 LIBS="$ac_save_LIBS"
5156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5157 echo "$ac_t""yes" 1>&6
5158 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5159 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5160 cat >> confdefs.h <<EOF
5161 #define $ac_tr_lib 1
5164 LIBS="-lnsl_s $LIBS"
5167 echo "$ac_t""no" 1>&6
5173 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5174 echo "configure:5175: checking for printf in -lnsl" >&5
5175 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5179 ac_save_LIBS="$LIBS"
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 /* Override any gcc2 internal prototype to avoid an error. */
5185 /* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
5193 if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5195 eval "ac_cv_lib_$ac_lib_var=yes"
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5200 eval "ac_cv_lib_$ac_lib_var=no"
5203 LIBS="$ac_save_LIBS"
5206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5207 echo "$ac_t""yes" 1>&6
5208 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5209 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5210 cat >> confdefs.h <<EOF
5211 #define $ac_tr_lib 1
5217 echo "$ac_t""no" 1>&6
5223 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5224 echo "configure:5225: checking for connect in -lsocket" >&5
5225 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 ac_save_LIBS="$LIBS"
5230 LIBS="-lsocket $LIBS"
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245 eval "ac_cv_lib_$ac_lib_var=yes"
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5250 eval "ac_cv_lib_$ac_lib_var=no"
5253 LIBS="$ac_save_LIBS"
5256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5257 echo "$ac_t""yes" 1>&6
5258 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5259 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5260 cat >> confdefs.h <<EOF
5261 #define $ac_tr_lib 1
5264 LIBS="-lsocket $LIBS"
5267 echo "$ac_t""no" 1>&6
5273 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5274 echo "configure:5275: checking for connect in -linet" >&5
5275 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5279 ac_save_LIBS="$LIBS"
5281 cat > conftest.$ac_ext <<EOF
5282 #line 5283 "configure"
5283 #include "confdefs.h"
5284 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5293 if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5295 eval "ac_cv_lib_$ac_lib_var=yes"
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5300 eval "ac_cv_lib_$ac_lib_var=no"
5303 LIBS="$ac_save_LIBS"
5306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5307 echo "$ac_t""yes" 1>&6
5308 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5310 cat >> confdefs.h <<EOF
5311 #define $ac_tr_lib 1
5317 echo "$ac_t""no" 1>&6
5321 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5322 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5323 # ac_cv_func_connect=yes
5324 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5325 cat >> confdefs.h <<\EOF
5326 #define HAVE_CONNECT 1
5332 ###############################################
5333 # test for where we get get_yp_default_domain() from
5334 for ac_func in yp_get_default_domain
5336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5337 echo "configure:5338: checking for $ac_func" >&5
5338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5344 /* System header to define __stub macros and hopefully few prototypes,
5345 which can conflict with char $ac_func(); below. */
5347 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5354 /* The GNU C library defines this for functions which it implements
5355 to always fail with ENOSYS. Some functions are actually named
5356 something starting with __ and the normal name is an alias. */
5357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367 eval "ac_cv_func_$ac_func=yes"
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5372 eval "ac_cv_func_$ac_func=no"
5377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5378 echo "$ac_t""yes" 1>&6
5379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5380 cat >> confdefs.h <<EOF
5381 #define $ac_tr_func 1
5385 echo "$ac_t""no" 1>&6
5389 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5390 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5391 echo "configure:5392: checking for yp_get_default_domain in -lnsl" >&5
5392 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 ac_save_LIBS="$LIBS"
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5404 char yp_get_default_domain();
5407 yp_get_default_domain()
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 eval "ac_cv_lib_$ac_lib_var=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_lib_$ac_lib_var=no"
5420 LIBS="$ac_save_LIBS"
5423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5426 cat >> confdefs.h <<\EOF
5427 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5431 echo "$ac_t""no" 1>&6
5436 # Check if we have execl, if not we need to compile smbrun.
5437 for ac_func in execl
5439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5440 echo "configure:5441: checking for $ac_func" >&5
5441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6
5444 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5447 /* System header to define __stub macros and hopefully few prototypes,
5448 which can conflict with char $ac_func(); below. */
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 /* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5457 /* The GNU C library defines this for functions which it implements
5458 to always fail with ENOSYS. Some functions are actually named
5459 something starting with __ and the normal name is an alias. */
5460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5468 if { (eval echo configure:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5470 eval "ac_cv_func_$ac_func=yes"
5472 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5475 eval "ac_cv_func_$ac_func=no"
5480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5481 echo "$ac_t""yes" 1>&6
5482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5483 cat >> confdefs.h <<EOF
5484 #define $ac_tr_func 1
5488 echo "$ac_t""no" 1>&6
5492 if test x"$ac_cv_func_execl" = x"no"; then
5493 RUNPROG="bin/smbrun"
5498 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5501 echo "configure:5502: checking for $ac_func" >&5
5502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char $ac_func(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5518 /* The GNU C library defines this for functions which it implements
5519 to always fail with ENOSYS. Some functions are actually named
5520 something starting with __ and the normal name is an alias. */
5521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5529 if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5531 eval "ac_cv_func_$ac_func=yes"
5533 echo "configure: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5536 eval "ac_cv_func_$ac_func=no"
5541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5544 cat >> confdefs.h <<EOF
5545 #define $ac_tr_func 1
5549 echo "$ac_t""no" 1>&6
5553 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char $ac_func(); below. */
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 eval "ac_cv_func_$ac_func=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5591 eval "ac_cv_func_$ac_func=no"
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5599 cat >> confdefs.h <<EOF
5600 #define $ac_tr_func 1
5604 echo "$ac_t""no" 1>&6
5608 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5611 echo "configure:5612: checking for $ac_func" >&5
5612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 /* System header to define __stub macros and hopefully few prototypes,
5619 which can conflict with char $ac_func(); below. */
5621 /* Override any gcc2 internal prototype to avoid an error. */
5622 /* We use char because int might match the return type of a gcc2
5623 builtin and then its argument prototype would still apply. */
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 eval "ac_cv_func_$ac_func=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 eval "ac_cv_func_$ac_func=no"
5651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5654 cat >> confdefs.h <<EOF
5655 #define $ac_tr_func 1
5659 echo "$ac_t""no" 1>&6
5663 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5666 echo "configure:5667: checking for $ac_func" >&5
5667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 /* System header to define __stub macros and hopefully few prototypes,
5674 which can conflict with char $ac_func(); below. */
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5683 /* The GNU C library defines this for functions which it implements
5684 to always fail with ENOSYS. Some functions are actually named
5685 something starting with __ and the normal name is an alias. */
5686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5694 if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5696 eval "ac_cv_func_$ac_func=yes"
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5701 eval "ac_cv_func_$ac_func=no"
5706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5709 cat >> confdefs.h <<EOF
5710 #define $ac_tr_func 1
5714 echo "$ac_t""no" 1>&6
5718 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_func" >&5
5722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func(); below. */
5731 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5738 /* The GNU C library defines this for functions which it implements
5739 to always fail with ENOSYS. Some functions are actually named
5740 something starting with __ and the normal name is an alias. */
5741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 eval "ac_cv_func_$ac_func=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5756 eval "ac_cv_func_$ac_func=no"
5761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5764 cat >> confdefs.h <<EOF
5765 #define $ac_tr_func 1
5769 echo "$ac_t""no" 1>&6
5773 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_func" >&5
5777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 /* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char $ac_func(); below. */
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5793 /* The GNU C library defines this for functions which it implements
5794 to always fail with ENOSYS. Some functions are actually named
5795 something starting with __ and the normal name is an alias. */
5796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5806 eval "ac_cv_func_$ac_func=yes"
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5811 eval "ac_cv_func_$ac_func=no"
5816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5819 cat >> confdefs.h <<EOF
5820 #define $ac_tr_func 1
5824 echo "$ac_t""no" 1>&6
5828 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_func" >&5
5832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* System header to define __stub macros and hopefully few prototypes,
5839 which can conflict with char $ac_func(); below. */
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5848 /* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5861 eval "ac_cv_func_$ac_func=yes"
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5866 eval "ac_cv_func_$ac_func=no"
5871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5872 echo "$ac_t""yes" 1>&6
5873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5874 cat >> confdefs.h <<EOF
5875 #define $ac_tr_func 1
5879 echo "$ac_t""no" 1>&6
5883 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916 eval "ac_cv_func_$ac_func=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval "ac_cv_func_$ac_func=no"
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h <<EOF
5930 #define $ac_tr_func 1
5934 echo "$ac_t""no" 1>&6
5938 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_func" >&5
5942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* System header to define __stub macros and hopefully few prototypes,
5949 which can conflict with char $ac_func(); below. */
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5971 eval "ac_cv_func_$ac_func=yes"
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5976 eval "ac_cv_func_$ac_func=no"
5981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5984 cat >> confdefs.h <<EOF
5985 #define $ac_tr_func 1
5989 echo "$ac_t""no" 1>&6
5993 for ac_func in syslog vsyslog
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5
5997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6013 /* The GNU C library defines this for functions which it implements
6014 to always fail with ENOSYS. Some functions are actually named
6015 something starting with __ and the normal name is an alias. */
6016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 eval "ac_cv_func_$ac_func=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 eval "ac_cv_func_$ac_func=no"
6036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6039 cat >> confdefs.h <<EOF
6040 #define $ac_tr_func 1
6044 echo "$ac_t""no" 1>&6
6048 # setbuffer is needed for smbtorture
6049 for ac_func in setbuffer
6051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6052 echo "configure:6053: checking for $ac_func" >&5
6053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 /* System header to define __stub macros and hopefully few prototypes,
6060 which can conflict with char $ac_func(); below. */
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6069 /* The GNU C library defines this for functions which it implements
6070 to always fail with ENOSYS. Some functions are actually named
6071 something starting with __ and the normal name is an alias. */
6072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6080 if { (eval echo configure:6081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6082 eval "ac_cv_func_$ac_func=yes"
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6087 eval "ac_cv_func_$ac_func=no"
6092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6093 echo "$ac_t""yes" 1>&6
6094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6095 cat >> confdefs.h <<EOF
6096 #define $ac_tr_func 1
6100 echo "$ac_t""no" 1>&6
6105 # syscall() is needed for smbwrapper.
6106 for ac_func in syscall
6108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_func" >&5
6110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6113 cat > conftest.$ac_ext <<EOF
6114 #line 6115 "configure"
6115 #include "confdefs.h"
6116 /* System header to define __stub macros and hopefully few prototypes,
6117 which can conflict with char $ac_func(); below. */
6119 /* Override any gcc2 internal prototype to avoid an error. */
6120 /* We use char because int might match the return type of a gcc2
6121 builtin and then its argument prototype would still apply. */
6126 /* The GNU C library defines this for functions which it implements
6127 to always fail with ENOSYS. Some functions are actually named
6128 something starting with __ and the normal name is an alias. */
6129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6137 if { (eval echo configure:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 eval "ac_cv_func_$ac_func=yes"
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6144 eval "ac_cv_func_$ac_func=no"
6149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152 cat >> confdefs.h <<EOF
6153 #define $ac_tr_func 1
6157 echo "$ac_t""no" 1>&6
6162 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6165 echo "configure:6166: checking for $ac_func" >&5
6166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* System header to define __stub macros and hopefully few prototypes,
6173 which can conflict with char $ac_func(); below. */
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6182 /* The GNU C library defines this for functions which it implements
6183 to always fail with ENOSYS. Some functions are actually named
6184 something starting with __ and the normal name is an alias. */
6185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 eval "ac_cv_func_$ac_func=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_func_$ac_func=no"
6205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6208 cat >> confdefs.h <<EOF
6209 #define $ac_tr_func 1
6213 echo "$ac_t""no" 1>&6
6217 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6220 echo "configure:6221: checking for $ac_func" >&5
6221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6224 cat > conftest.$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6227 /* System header to define __stub macros and hopefully few prototypes,
6228 which can conflict with char $ac_func(); below. */
6230 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6237 /* The GNU C library defines this for functions which it implements
6238 to always fail with ENOSYS. Some functions are actually named
6239 something starting with __ and the normal name is an alias. */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6248 if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6250 eval "ac_cv_func_$ac_func=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 eval "ac_cv_func_$ac_func=no"
6260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6261 echo "$ac_t""yes" 1>&6
6262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6263 cat >> confdefs.h <<EOF
6264 #define $ac_tr_func 1
6268 echo "$ac_t""no" 1>&6
6272 for ac_func in __getcwd _getcwd
6274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6275 echo "configure:6276: checking for $ac_func" >&5
6276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6277 echo $ac_n "(cached) $ac_c" 1>&6
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 /* System header to define __stub macros and hopefully few prototypes,
6283 which can conflict with char $ac_func(); below. */
6285 /* Override any gcc2 internal prototype to avoid an error. */
6286 /* We use char because int might match the return type of a gcc2
6287 builtin and then its argument prototype would still apply. */
6292 /* The GNU C library defines this for functions which it implements
6293 to always fail with ENOSYS. Some functions are actually named
6294 something starting with __ and the normal name is an alias. */
6295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 eval "ac_cv_func_$ac_func=yes"
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6310 eval "ac_cv_func_$ac_func=no"
6315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6318 cat >> confdefs.h <<EOF
6319 #define $ac_tr_func 1
6323 echo "$ac_t""no" 1>&6
6327 for ac_func in __xstat __fxstat __lxstat
6329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6330 echo "configure:6331: checking for $ac_func" >&5
6331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char $ac_func(); below. */
6340 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6347 /* The GNU C library defines this for functions which it implements
6348 to always fail with ENOSYS. Some functions are actually named
6349 something starting with __ and the normal name is an alias. */
6350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6360 eval "ac_cv_func_$ac_func=yes"
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 eval "ac_cv_func_$ac_func=no"
6370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6373 cat >> confdefs.h <<EOF
6374 #define $ac_tr_func 1
6378 echo "$ac_t""no" 1>&6
6382 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_func" >&5
6386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6402 /* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6415 eval "ac_cv_func_$ac_func=yes"
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6420 eval "ac_cv_func_$ac_func=no"
6425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6428 cat >> confdefs.h <<EOF
6429 #define $ac_tr_func 1
6433 echo "$ac_t""no" 1>&6
6437 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_func" >&5
6441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func(); below. */
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6470 eval "ac_cv_func_$ac_func=yes"
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6475 eval "ac_cv_func_$ac_func=no"
6480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6483 cat >> confdefs.h <<EOF
6484 #define $ac_tr_func 1
6488 echo "$ac_t""no" 1>&6
6492 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_func" >&5
6496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6499 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6502 /* System header to define __stub macros and hopefully few prototypes,
6503 which can conflict with char $ac_func(); below. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6525 eval "ac_cv_func_$ac_func=yes"
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6530 eval "ac_cv_func_$ac_func=no"
6535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6538 cat >> confdefs.h <<EOF
6539 #define $ac_tr_func 1
6543 echo "$ac_t""no" 1>&6
6547 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_func" >&5
6551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* System header to define __stub macros and hopefully few prototypes,
6558 which can conflict with char $ac_func(); below. */
6560 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6567 /* The GNU C library defines this for functions which it implements
6568 to always fail with ENOSYS. Some functions are actually named
6569 something starting with __ and the normal name is an alias. */
6570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6580 eval "ac_cv_func_$ac_func=yes"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6585 eval "ac_cv_func_$ac_func=no"
6590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6591 echo "$ac_t""yes" 1>&6
6592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6593 cat >> confdefs.h <<EOF
6594 #define $ac_tr_func 1
6598 echo "$ac_t""no" 1>&6
6602 for ac_func in _write __write _fork __fork
6604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_func" >&5
6606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* System header to define __stub macros and hopefully few prototypes,
6613 which can conflict with char $ac_func(); below. */
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 eval "ac_cv_func_$ac_func=yes"
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 eval "ac_cv_func_$ac_func=no"
6645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6648 cat >> confdefs.h <<EOF
6649 #define $ac_tr_func 1
6653 echo "$ac_t""no" 1>&6
6657 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6660 echo "configure:6661: checking for $ac_func" >&5
6661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 /* System header to define __stub macros and hopefully few prototypes,
6668 which can conflict with char $ac_func(); below. */
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6677 /* The GNU C library defines this for functions which it implements
6678 to always fail with ENOSYS. Some functions are actually named
6679 something starting with __ and the normal name is an alias. */
6680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6688 if { (eval echo configure:6689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6690 eval "ac_cv_func_$ac_func=yes"
6692 echo "configure: failed program was:" >&5
6693 cat conftest.$ac_ext >&5
6695 eval "ac_cv_func_$ac_func=no"
6700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6701 echo "$ac_t""yes" 1>&6
6702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6703 cat >> confdefs.h <<EOF
6704 #define $ac_tr_func 1
6708 echo "$ac_t""no" 1>&6
6712 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6715 echo "configure:6716: checking for $ac_func" >&5
6716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6717 echo $ac_n "(cached) $ac_c" 1>&6
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* System header to define __stub macros and hopefully few prototypes,
6723 which can conflict with char $ac_func(); below. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6732 /* The GNU C library defines this for functions which it implements
6733 to always fail with ENOSYS. Some functions are actually named
6734 something starting with __ and the normal name is an alias. */
6735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 eval "ac_cv_func_$ac_func=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 eval "ac_cv_func_$ac_func=no"
6755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6758 cat >> confdefs.h <<EOF
6759 #define $ac_tr_func 1
6763 echo "$ac_t""no" 1>&6
6767 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6770 echo "configure:6771: checking for $ac_func" >&5
6771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 /* System header to define __stub macros and hopefully few prototypes,
6778 which can conflict with char $ac_func(); below. */
6780 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6787 /* The GNU C library defines this for functions which it implements
6788 to always fail with ENOSYS. Some functions are actually named
6789 something starting with __ and the normal name is an alias. */
6790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6800 eval "ac_cv_func_$ac_func=yes"
6802 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5
6805 eval "ac_cv_func_$ac_func=no"
6810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6813 cat >> confdefs.h <<EOF
6814 #define $ac_tr_func 1
6818 echo "$ac_t""no" 1>&6
6822 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6825 echo "configure:6826: checking for $ac_func" >&5
6826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* System header to define __stub macros and hopefully few prototypes,
6833 which can conflict with char $ac_func(); below. */
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6842 /* The GNU C library defines this for functions which it implements
6843 to always fail with ENOSYS. Some functions are actually named
6844 something starting with __ and the normal name is an alias. */
6845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855 eval "ac_cv_func_$ac_func=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 eval "ac_cv_func_$ac_func=no"
6865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6868 cat >> confdefs.h <<EOF
6869 #define $ac_tr_func 1
6873 echo "$ac_t""no" 1>&6
6877 for ac_func in open64 _open64 __open64 creat64
6879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6880 echo "configure:6881: checking for $ac_func" >&5
6881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* System header to define __stub macros and hopefully few prototypes,
6888 which can conflict with char $ac_func(); below. */
6890 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6897 /* The GNU C library defines this for functions which it implements
6898 to always fail with ENOSYS. Some functions are actually named
6899 something starting with __ and the normal name is an alias. */
6900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6908 if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6910 eval "ac_cv_func_$ac_func=yes"
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6915 eval "ac_cv_func_$ac_func=no"
6920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6921 echo "$ac_t""yes" 1>&6
6922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6923 cat >> confdefs.h <<EOF
6924 #define $ac_tr_func 1
6928 echo "$ac_t""no" 1>&6
6934 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6937 if test x$ac_cv_func_stat64 = xno ; then
6938 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6939 echo "configure:6940: checking for stat64 in <sys/stat.h>" >&5
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6944 #if defined(HAVE_UNISTD_H)
6947 #include <sys/stat.h>
6950 struct stat64 st64; exit(stat64(".",&st64));
6953 if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6955 ac_cv_func_stat64=yes
6957 echo "configure: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6961 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6962 if test x$ac_cv_func_stat64 = xyes ; then
6963 cat >> confdefs.h <<\EOF
6964 #define HAVE_STAT64 1
6970 if test x$ac_cv_func_lstat64 = xno ; then
6971 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6972 echo "configure:6973: checking for lstat64 in <sys/stat.h>" >&5
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6977 #if defined(HAVE_UNISTD_H)
6980 #include <sys/stat.h>
6983 struct stat64 st64; exit(lstat64(".",&st64));
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6988 ac_cv_func_lstat64=yes
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6994 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6995 if test x$ac_cv_func_lstat64 = xyes ; then
6996 cat >> confdefs.h <<\EOF
6997 #define HAVE_LSTAT64 1
7003 if test x$ac_cv_func_fstat64 = xno ; then
7004 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7005 echo "configure:7006: checking for fstat64 in <sys/stat.h>" >&5
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7010 #if defined(HAVE_UNISTD_H)
7013 #include <sys/stat.h>
7016 struct stat64 st64; exit(fstat64(0,&st64));
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7021 ac_cv_func_fstat64=yes
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7027 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7028 if test x$ac_cv_func_fstat64 = xyes ; then
7029 cat >> confdefs.h <<\EOF
7030 #define HAVE_FSTAT64 1
7036 #####################################
7037 # we might need the resolv library on some systems
7038 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7039 echo "configure:7040: checking for dn_expand in -lresolv" >&5
7040 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7042 echo $ac_n "(cached) $ac_c" 1>&6
7044 ac_save_LIBS="$LIBS"
7045 LIBS="-lresolv $LIBS"
7046 cat > conftest.$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7060 eval "ac_cv_lib_$ac_lib_var=yes"
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7065 eval "ac_cv_lib_$ac_lib_var=no"
7068 LIBS="$ac_save_LIBS"
7071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7072 echo "$ac_t""yes" 1>&6
7073 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7074 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7075 cat >> confdefs.h <<EOF
7076 #define $ac_tr_lib 1
7079 LIBS="-lresolv $LIBS"
7082 echo "$ac_t""no" 1>&6
7087 # Check for the functions putprpwnam, set_auth_parameters,
7088 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7089 # Needed for OSF1 and HPUX.
7093 *-lsecurity*) for ac_func in putprpwnam
7095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7096 echo "configure:7097: checking for $ac_func" >&5
7097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7100 cat > conftest.$ac_ext <<EOF
7101 #line 7102 "configure"
7102 #include "confdefs.h"
7103 /* System header to define __stub macros and hopefully few prototypes,
7104 which can conflict with char $ac_func(); below. */
7106 /* Override any gcc2 internal prototype to avoid an error. */
7107 /* We use char because int might match the return type of a gcc2
7108 builtin and then its argument prototype would still apply. */
7113 /* The GNU C library defines this for functions which it implements
7114 to always fail with ENOSYS. Some functions are actually named
7115 something starting with __ and the normal name is an alias. */
7116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7126 eval "ac_cv_func_$ac_func=yes"
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7131 eval "ac_cv_func_$ac_func=no"
7136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7137 echo "$ac_t""yes" 1>&6
7138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7139 cat >> confdefs.h <<EOF
7140 #define $ac_tr_func 1
7144 echo "$ac_t""no" 1>&6
7148 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7149 echo "configure:7150: checking for putprpwnam in -lsecurity" >&5
7150 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7152 echo $ac_n "(cached) $ac_c" 1>&6
7154 ac_save_LIBS="$LIBS"
7155 LIBS="-lsecurity $LIBS"
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7159 /* Override any gcc2 internal prototype to avoid an error. */
7160 /* We use char because int might match the return type of a gcc2
7161 builtin and then its argument prototype would still apply. */
7168 if { (eval echo configure:7169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7170 eval "ac_cv_lib_$ac_lib_var=yes"
7172 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7175 eval "ac_cv_lib_$ac_lib_var=no"
7178 LIBS="$ac_save_LIBS"
7181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7182 echo "$ac_t""yes" 1>&6
7183 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7184 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7185 cat >> confdefs.h <<EOF
7186 #define $ac_tr_lib 1
7189 LIBS="-lsecurity $LIBS"
7192 echo "$ac_t""no" 1>&6
7195 for ac_func in putprpwnam
7197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7198 echo "configure:7199: checking for $ac_func" >&5
7199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7200 echo $ac_n "(cached) $ac_c" 1>&6
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 /* System header to define __stub macros and hopefully few prototypes,
7206 which can conflict with char $ac_func(); below. */
7208 /* Override any gcc2 internal prototype to avoid an error. */
7209 /* We use char because int might match the return type of a gcc2
7210 builtin and then its argument prototype would still apply. */
7215 /* The GNU C library defines this for functions which it implements
7216 to always fail with ENOSYS. Some functions are actually named
7217 something starting with __ and the normal name is an alias. */
7218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7226 if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7228 eval "ac_cv_func_$ac_func=yes"
7230 echo "configure: failed program was:" >&5
7231 cat conftest.$ac_ext >&5
7233 eval "ac_cv_func_$ac_func=no"
7238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7239 echo "$ac_t""yes" 1>&6
7240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7241 cat >> confdefs.h <<EOF
7242 #define $ac_tr_func 1
7246 echo "$ac_t""no" 1>&6
7254 *-lsec*) for ac_func in putprpwnam
7256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7257 echo "configure:7258: checking for $ac_func" >&5
7258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7261 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 /* System header to define __stub macros and hopefully few prototypes,
7265 which can conflict with char $ac_func(); below. */
7267 /* Override any gcc2 internal prototype to avoid an error. */
7268 /* We use char because int might match the return type of a gcc2
7269 builtin and then its argument prototype would still apply. */
7274 /* The GNU C library defines this for functions which it implements
7275 to always fail with ENOSYS. Some functions are actually named
7276 something starting with __ and the normal name is an alias. */
7277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7287 eval "ac_cv_func_$ac_func=yes"
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7292 eval "ac_cv_func_$ac_func=no"
7297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7298 echo "$ac_t""yes" 1>&6
7299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7300 cat >> confdefs.h <<EOF
7301 #define $ac_tr_func 1
7305 echo "$ac_t""no" 1>&6
7309 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7310 echo "configure:7311: checking for putprpwnam in -lsec" >&5
7311 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7315 ac_save_LIBS="$LIBS"
7317 cat > conftest.$ac_ext <<EOF
7318 #line 7319 "configure"
7319 #include "confdefs.h"
7320 /* Override any gcc2 internal prototype to avoid an error. */
7321 /* We use char because int might match the return type of a gcc2
7322 builtin and then its argument prototype would still apply. */
7329 if { (eval echo configure:7330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7331 eval "ac_cv_lib_$ac_lib_var=yes"
7333 echo "configure: failed program was:" >&5
7334 cat conftest.$ac_ext >&5
7336 eval "ac_cv_lib_$ac_lib_var=no"
7339 LIBS="$ac_save_LIBS"
7342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7343 echo "$ac_t""yes" 1>&6
7344 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7346 cat >> confdefs.h <<EOF
7347 #define $ac_tr_lib 1
7353 echo "$ac_t""no" 1>&6
7356 for ac_func in putprpwnam
7358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7359 echo "configure:7360: checking for $ac_func" >&5
7360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7361 echo $ac_n "(cached) $ac_c" 1>&6
7363 cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure"
7365 #include "confdefs.h"
7366 /* System header to define __stub macros and hopefully few prototypes,
7367 which can conflict with char $ac_func(); below. */
7369 /* Override any gcc2 internal prototype to avoid an error. */
7370 /* We use char because int might match the return type of a gcc2
7371 builtin and then its argument prototype would still apply. */
7376 /* The GNU C library defines this for functions which it implements
7377 to always fail with ENOSYS. Some functions are actually named
7378 something starting with __ and the normal name is an alias. */
7379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7387 if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7389 eval "ac_cv_func_$ac_func=yes"
7391 echo "configure: failed program was:" >&5
7392 cat conftest.$ac_ext >&5
7394 eval "ac_cv_func_$ac_func=no"
7399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7400 echo "$ac_t""yes" 1>&6
7401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7402 cat >> confdefs.h <<EOF
7403 #define $ac_tr_func 1
7407 echo "$ac_t""no" 1>&6
7416 *-lsecurity*) for ac_func in set_auth_parameters
7418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7419 echo "configure:7420: checking for $ac_func" >&5
7420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7421 echo $ac_n "(cached) $ac_c" 1>&6
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7426 /* System header to define __stub macros and hopefully few prototypes,
7427 which can conflict with char $ac_func(); below. */
7429 /* Override any gcc2 internal prototype to avoid an error. */
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7436 /* The GNU C library defines this for functions which it implements
7437 to always fail with ENOSYS. Some functions are actually named
7438 something starting with __ and the normal name is an alias. */
7439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7449 eval "ac_cv_func_$ac_func=yes"
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7454 eval "ac_cv_func_$ac_func=no"
7459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7460 echo "$ac_t""yes" 1>&6
7461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7462 cat >> confdefs.h <<EOF
7463 #define $ac_tr_func 1
7467 echo "$ac_t""no" 1>&6
7471 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7472 echo "configure:7473: checking for set_auth_parameters in -lsecurity" >&5
7473 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7475 echo $ac_n "(cached) $ac_c" 1>&6
7477 ac_save_LIBS="$LIBS"
7478 LIBS="-lsecurity $LIBS"
7479 cat > conftest.$ac_ext <<EOF
7480 #line 7481 "configure"
7481 #include "confdefs.h"
7482 /* Override any gcc2 internal prototype to avoid an error. */
7483 /* We use char because int might match the return type of a gcc2
7484 builtin and then its argument prototype would still apply. */
7485 char set_auth_parameters();
7488 set_auth_parameters()
7491 if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7493 eval "ac_cv_lib_$ac_lib_var=yes"
7495 echo "configure: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7498 eval "ac_cv_lib_$ac_lib_var=no"
7501 LIBS="$ac_save_LIBS"
7504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7505 echo "$ac_t""yes" 1>&6
7506 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7507 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7508 cat >> confdefs.h <<EOF
7509 #define $ac_tr_lib 1
7512 LIBS="-lsecurity $LIBS"
7515 echo "$ac_t""no" 1>&6
7518 for ac_func in set_auth_parameters
7520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7521 echo "configure:7522: checking for $ac_func" >&5
7522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7525 cat > conftest.$ac_ext <<EOF
7526 #line 7527 "configure"
7527 #include "confdefs.h"
7528 /* System header to define __stub macros and hopefully few prototypes,
7529 which can conflict with char $ac_func(); below. */
7531 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7538 /* The GNU C library defines this for functions which it implements
7539 to always fail with ENOSYS. Some functions are actually named
7540 something starting with __ and the normal name is an alias. */
7541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7549 if { (eval echo configure:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7551 eval "ac_cv_func_$ac_func=yes"
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7556 eval "ac_cv_func_$ac_func=no"
7561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7562 echo "$ac_t""yes" 1>&6
7563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7564 cat >> confdefs.h <<EOF
7565 #define $ac_tr_func 1
7569 echo "$ac_t""no" 1>&6
7577 *-lsec*) for ac_func in set_auth_parameters
7579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7580 echo "configure:7581: checking for $ac_func" >&5
7581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7584 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 /* System header to define __stub macros and hopefully few prototypes,
7588 which can conflict with char $ac_func(); below. */
7590 /* Override any gcc2 internal prototype to avoid an error. */
7591 /* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */
7597 /* The GNU C library defines this for functions which it implements
7598 to always fail with ENOSYS. Some functions are actually named
7599 something starting with __ and the normal name is an alias. */
7600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7610 eval "ac_cv_func_$ac_func=yes"
7612 echo "configure: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7615 eval "ac_cv_func_$ac_func=no"
7620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7621 echo "$ac_t""yes" 1>&6
7622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7623 cat >> confdefs.h <<EOF
7624 #define $ac_tr_func 1
7628 echo "$ac_t""no" 1>&6
7632 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7633 echo "configure:7634: checking for set_auth_parameters in -lsec" >&5
7634 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7636 echo $ac_n "(cached) $ac_c" 1>&6
7638 ac_save_LIBS="$LIBS"
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7643 /* Override any gcc2 internal prototype to avoid an error. */
7644 /* We use char because int might match the return type of a gcc2
7645 builtin and then its argument prototype would still apply. */
7646 char set_auth_parameters();
7649 set_auth_parameters()
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7654 eval "ac_cv_lib_$ac_lib_var=yes"
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7659 eval "ac_cv_lib_$ac_lib_var=no"
7662 LIBS="$ac_save_LIBS"
7665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7666 echo "$ac_t""yes" 1>&6
7667 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7668 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7669 cat >> confdefs.h <<EOF
7670 #define $ac_tr_lib 1
7676 echo "$ac_t""no" 1>&6
7679 for ac_func in set_auth_parameters
7681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7682 echo "configure:7683: checking for $ac_func" >&5
7683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7684 echo $ac_n "(cached) $ac_c" 1>&6
7686 cat > conftest.$ac_ext <<EOF
7687 #line 7688 "configure"
7688 #include "confdefs.h"
7689 /* System header to define __stub macros and hopefully few prototypes,
7690 which can conflict with char $ac_func(); below. */
7692 /* Override any gcc2 internal prototype to avoid an error. */
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7699 /* The GNU C library defines this for functions which it implements
7700 to always fail with ENOSYS. Some functions are actually named
7701 something starting with __ and the normal name is an alias. */
7702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7710 if { (eval echo configure:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7712 eval "ac_cv_func_$ac_func=yes"
7714 echo "configure: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7717 eval "ac_cv_func_$ac_func=no"
7722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7723 echo "$ac_t""yes" 1>&6
7724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7725 cat >> confdefs.h <<EOF
7726 #define $ac_tr_func 1
7730 echo "$ac_t""no" 1>&6
7738 # UnixWare 7.x has its getspnam in -lgen
7740 *-lgen*) for ac_func in getspnam
7742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7743 echo "configure:7744: checking for $ac_func" >&5
7744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 /* System header to define __stub macros and hopefully few prototypes,
7751 which can conflict with char $ac_func(); below. */
7753 /* Override any gcc2 internal prototype to avoid an error. */
7754 /* We use char because int might match the return type of a gcc2
7755 builtin and then its argument prototype would still apply. */
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7771 if { (eval echo configure:7772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7773 eval "ac_cv_func_$ac_func=yes"
7775 echo "configure: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7778 eval "ac_cv_func_$ac_func=no"
7783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7784 echo "$ac_t""yes" 1>&6
7785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7786 cat >> confdefs.h <<EOF
7787 #define $ac_tr_func 1
7791 echo "$ac_t""no" 1>&6
7795 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7796 echo "configure:7797: checking for getspnam in -lgen" >&5
7797 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7801 ac_save_LIBS="$LIBS"
7803 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure"
7805 #include "confdefs.h"
7806 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7815 if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7817 eval "ac_cv_lib_$ac_lib_var=yes"
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7822 eval "ac_cv_lib_$ac_lib_var=no"
7825 LIBS="$ac_save_LIBS"
7828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7829 echo "$ac_t""yes" 1>&6
7830 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7832 cat >> confdefs.h <<EOF
7833 #define $ac_tr_lib 1
7839 echo "$ac_t""no" 1>&6
7842 for ac_func in getspnam
7844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7845 echo "configure:7846: checking for $ac_func" >&5
7846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7847 echo $ac_n "(cached) $ac_c" 1>&6
7849 cat > conftest.$ac_ext <<EOF
7850 #line 7851 "configure"
7851 #include "confdefs.h"
7852 /* System header to define __stub macros and hopefully few prototypes,
7853 which can conflict with char $ac_func(); below. */
7855 /* Override any gcc2 internal prototype to avoid an error. */
7856 /* We use char because int might match the return type of a gcc2
7857 builtin and then its argument prototype would still apply. */
7862 /* The GNU C library defines this for functions which it implements
7863 to always fail with ENOSYS. Some functions are actually named
7864 something starting with __ and the normal name is an alias. */
7865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7873 if { (eval echo configure:7874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7875 eval "ac_cv_func_$ac_func=yes"
7877 echo "configure: failed program was:" >&5
7878 cat conftest.$ac_ext >&5
7880 eval "ac_cv_func_$ac_func=no"
7885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7886 echo "$ac_t""yes" 1>&6
7887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7888 cat >> confdefs.h <<EOF
7889 #define $ac_tr_func 1
7893 echo "$ac_t""no" 1>&6
7902 *-lsecurity*) for ac_func in getspnam
7904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7905 echo "configure:7906: checking for $ac_func" >&5
7906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7907 echo $ac_n "(cached) $ac_c" 1>&6
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 /* System header to define __stub macros and hopefully few prototypes,
7913 which can conflict with char $ac_func(); below. */
7915 /* Override any gcc2 internal prototype to avoid an error. */
7916 /* We use char because int might match the return type of a gcc2
7917 builtin and then its argument prototype would still apply. */
7922 /* The GNU C library defines this for functions which it implements
7923 to always fail with ENOSYS. Some functions are actually named
7924 something starting with __ and the normal name is an alias. */
7925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7933 if { (eval echo configure:7934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7935 eval "ac_cv_func_$ac_func=yes"
7937 echo "configure: failed program was:" >&5
7938 cat conftest.$ac_ext >&5
7940 eval "ac_cv_func_$ac_func=no"
7945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7946 echo "$ac_t""yes" 1>&6
7947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7948 cat >> confdefs.h <<EOF
7949 #define $ac_tr_func 1
7953 echo "$ac_t""no" 1>&6
7957 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7958 echo "configure:7959: checking for getspnam in -lsecurity" >&5
7959 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7963 ac_save_LIBS="$LIBS"
7964 LIBS="-lsecurity $LIBS"
7965 cat > conftest.$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7968 /* Override any gcc2 internal prototype to avoid an error. */
7969 /* We use char because int might match the return type of a gcc2
7970 builtin and then its argument prototype would still apply. */
7977 if { (eval echo configure:7978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7979 eval "ac_cv_lib_$ac_lib_var=yes"
7981 echo "configure: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7984 eval "ac_cv_lib_$ac_lib_var=no"
7987 LIBS="$ac_save_LIBS"
7990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7991 echo "$ac_t""yes" 1>&6
7992 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7993 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7994 cat >> confdefs.h <<EOF
7995 #define $ac_tr_lib 1
7998 LIBS="-lsecurity $LIBS"
8001 echo "$ac_t""no" 1>&6
8004 for ac_func in getspnam
8006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8007 echo "configure:8008: checking for $ac_func" >&5
8008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8011 cat > conftest.$ac_ext <<EOF
8012 #line 8013 "configure"
8013 #include "confdefs.h"
8014 /* System header to define __stub macros and hopefully few prototypes,
8015 which can conflict with char $ac_func(); below. */
8017 /* Override any gcc2 internal prototype to avoid an error. */
8018 /* We use char because int might match the return type of a gcc2
8019 builtin and then its argument prototype would still apply. */
8024 /* The GNU C library defines this for functions which it implements
8025 to always fail with ENOSYS. Some functions are actually named
8026 something starting with __ and the normal name is an alias. */
8027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8037 eval "ac_cv_func_$ac_func=yes"
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8042 eval "ac_cv_func_$ac_func=no"
8047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8048 echo "$ac_t""yes" 1>&6
8049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8050 cat >> confdefs.h <<EOF
8051 #define $ac_tr_func 1
8055 echo "$ac_t""no" 1>&6
8063 *-lsec*) for ac_func in getspnam
8065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8066 echo "configure:8067: checking for $ac_func" >&5
8067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8070 cat > conftest.$ac_ext <<EOF
8071 #line 8072 "configure"
8072 #include "confdefs.h"
8073 /* System header to define __stub macros and hopefully few prototypes,
8074 which can conflict with char $ac_func(); below. */
8076 /* Override any gcc2 internal prototype to avoid an error. */
8077 /* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8083 /* The GNU C library defines this for functions which it implements
8084 to always fail with ENOSYS. Some functions are actually named
8085 something starting with __ and the normal name is an alias. */
8086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8094 if { (eval echo configure:8095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8096 eval "ac_cv_func_$ac_func=yes"
8098 echo "configure: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8101 eval "ac_cv_func_$ac_func=no"
8106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8107 echo "$ac_t""yes" 1>&6
8108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8109 cat >> confdefs.h <<EOF
8110 #define $ac_tr_func 1
8114 echo "$ac_t""no" 1>&6
8118 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8119 echo "configure:8120: checking for getspnam in -lsec" >&5
8120 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8122 echo $ac_n "(cached) $ac_c" 1>&6
8124 ac_save_LIBS="$LIBS"
8126 cat > conftest.$ac_ext <<EOF
8127 #line 8128 "configure"
8128 #include "confdefs.h"
8129 /* Override any gcc2 internal prototype to avoid an error. */
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8138 if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8140 eval "ac_cv_lib_$ac_lib_var=yes"
8142 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8145 eval "ac_cv_lib_$ac_lib_var=no"
8148 LIBS="$ac_save_LIBS"
8151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8152 echo "$ac_t""yes" 1>&6
8153 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8154 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8155 cat >> confdefs.h <<EOF
8156 #define $ac_tr_lib 1
8162 echo "$ac_t""no" 1>&6
8165 for ac_func in getspnam
8167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168 echo "configure:8169: checking for $ac_func" >&5
8169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8170 echo $ac_n "(cached) $ac_c" 1>&6
8172 cat > conftest.$ac_ext <<EOF
8173 #line 8174 "configure"
8174 #include "confdefs.h"
8175 /* System header to define __stub macros and hopefully few prototypes,
8176 which can conflict with char $ac_func(); below. */
8178 /* Override any gcc2 internal prototype to avoid an error. */
8179 /* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8185 /* The GNU C library defines this for functions which it implements
8186 to always fail with ENOSYS. Some functions are actually named
8187 something starting with __ and the normal name is an alias. */
8188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8196 if { (eval echo configure:8197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8198 eval "ac_cv_func_$ac_func=yes"
8200 echo "configure: failed program was:" >&5
8201 cat conftest.$ac_ext >&5
8203 eval "ac_cv_func_$ac_func=no"
8208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8209 echo "$ac_t""yes" 1>&6
8210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8211 cat >> confdefs.h <<EOF
8212 #define $ac_tr_func 1
8216 echo "$ac_t""no" 1>&6
8225 *-lsecurity*) for ac_func in bigcrypt
8227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8228 echo "configure:8229: checking for $ac_func" >&5
8229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8232 cat > conftest.$ac_ext <<EOF
8233 #line 8234 "configure"
8234 #include "confdefs.h"
8235 /* System header to define __stub macros and hopefully few prototypes,
8236 which can conflict with char $ac_func(); below. */
8238 /* Override any gcc2 internal prototype to avoid an error. */
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8245 /* The GNU C library defines this for functions which it implements
8246 to always fail with ENOSYS. Some functions are actually named
8247 something starting with __ and the normal name is an alias. */
8248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8256 if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8258 eval "ac_cv_func_$ac_func=yes"
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 eval "ac_cv_func_$ac_func=no"
8268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8269 echo "$ac_t""yes" 1>&6
8270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8271 cat >> confdefs.h <<EOF
8272 #define $ac_tr_func 1
8276 echo "$ac_t""no" 1>&6
8280 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8281 echo "configure:8282: checking for bigcrypt in -lsecurity" >&5
8282 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8286 ac_save_LIBS="$LIBS"
8287 LIBS="-lsecurity $LIBS"
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_lib_$ac_lib_var=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_lib_$ac_lib_var=no"
8310 LIBS="$ac_save_LIBS"
8313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8314 echo "$ac_t""yes" 1>&6
8315 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8316 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8317 cat >> confdefs.h <<EOF
8318 #define $ac_tr_lib 1
8321 LIBS="-lsecurity $LIBS"
8324 echo "$ac_t""no" 1>&6
8327 for ac_func in bigcrypt
8329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8330 echo "configure:8331: checking for $ac_func" >&5
8331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8334 cat > conftest.$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8337 /* System header to define __stub macros and hopefully few prototypes,
8338 which can conflict with char $ac_func(); below. */
8340 /* Override any gcc2 internal prototype to avoid an error. */
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8347 /* The GNU C library defines this for functions which it implements
8348 to always fail with ENOSYS. Some functions are actually named
8349 something starting with __ and the normal name is an alias. */
8350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8360 eval "ac_cv_func_$ac_func=yes"
8362 echo "configure: failed program was:" >&5
8363 cat conftest.$ac_ext >&5
8365 eval "ac_cv_func_$ac_func=no"
8370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8371 echo "$ac_t""yes" 1>&6
8372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8373 cat >> confdefs.h <<EOF
8374 #define $ac_tr_func 1
8378 echo "$ac_t""no" 1>&6
8386 *-lsec*) for ac_func in bigcrypt
8388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8389 echo "configure:8390: checking for $ac_func" >&5
8390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8393 cat > conftest.$ac_ext <<EOF
8394 #line 8395 "configure"
8395 #include "confdefs.h"
8396 /* System header to define __stub macros and hopefully few prototypes,
8397 which can conflict with char $ac_func(); below. */
8399 /* Override any gcc2 internal prototype to avoid an error. */
8400 /* We use char because int might match the return type of a gcc2
8401 builtin and then its argument prototype would still apply. */
8406 /* The GNU C library defines this for functions which it implements
8407 to always fail with ENOSYS. Some functions are actually named
8408 something starting with __ and the normal name is an alias. */
8409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8417 if { (eval echo configure:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8419 eval "ac_cv_func_$ac_func=yes"
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8424 eval "ac_cv_func_$ac_func=no"
8429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8430 echo "$ac_t""yes" 1>&6
8431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8432 cat >> confdefs.h <<EOF
8433 #define $ac_tr_func 1
8437 echo "$ac_t""no" 1>&6
8441 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8442 echo "configure:8443: checking for bigcrypt in -lsec" >&5
8443 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8445 echo $ac_n "(cached) $ac_c" 1>&6
8447 ac_save_LIBS="$LIBS"
8449 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure"
8451 #include "confdefs.h"
8452 /* Override any gcc2 internal prototype to avoid an error. */
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8461 if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8463 eval "ac_cv_lib_$ac_lib_var=yes"
8465 echo "configure: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8468 eval "ac_cv_lib_$ac_lib_var=no"
8471 LIBS="$ac_save_LIBS"
8474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8475 echo "$ac_t""yes" 1>&6
8476 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8478 cat >> confdefs.h <<EOF
8479 #define $ac_tr_lib 1
8485 echo "$ac_t""no" 1>&6
8488 for ac_func in bigcrypt
8490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8491 echo "configure:8492: checking for $ac_func" >&5
8492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8495 cat > conftest.$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8498 /* System header to define __stub macros and hopefully few prototypes,
8499 which can conflict with char $ac_func(); below. */
8501 /* Override any gcc2 internal prototype to avoid an error. */
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8508 /* The GNU C library defines this for functions which it implements
8509 to always fail with ENOSYS. Some functions are actually named
8510 something starting with __ and the normal name is an alias. */
8511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8519 if { (eval echo configure:8520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8521 eval "ac_cv_func_$ac_func=yes"
8523 echo "configure: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8526 eval "ac_cv_func_$ac_func=no"
8531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8532 echo "$ac_t""yes" 1>&6
8533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8534 cat >> confdefs.h <<EOF
8535 #define $ac_tr_func 1
8539 echo "$ac_t""no" 1>&6
8548 *-lsecurity*) for ac_func in getprpwnam
8550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8551 echo "configure:8552: checking for $ac_func" >&5
8552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 /* System header to define __stub macros and hopefully few prototypes,
8559 which can conflict with char $ac_func(); below. */
8561 /* Override any gcc2 internal prototype to avoid an error. */
8562 /* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8568 /* The GNU C library defines this for functions which it implements
8569 to always fail with ENOSYS. Some functions are actually named
8570 something starting with __ and the normal name is an alias. */
8571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8579 if { (eval echo configure:8580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8581 eval "ac_cv_func_$ac_func=yes"
8583 echo "configure: failed program was:" >&5
8584 cat conftest.$ac_ext >&5
8586 eval "ac_cv_func_$ac_func=no"
8591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8592 echo "$ac_t""yes" 1>&6
8593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8594 cat >> confdefs.h <<EOF
8595 #define $ac_tr_func 1
8599 echo "$ac_t""no" 1>&6
8603 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8604 echo "configure:8605: checking for getprpwnam in -lsecurity" >&5
8605 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
8609 ac_save_LIBS="$LIBS"
8610 LIBS="-lsecurity $LIBS"
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8625 eval "ac_cv_lib_$ac_lib_var=yes"
8627 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8630 eval "ac_cv_lib_$ac_lib_var=no"
8633 LIBS="$ac_save_LIBS"
8636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8639 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8640 cat >> confdefs.h <<EOF
8641 #define $ac_tr_lib 1
8644 LIBS="-lsecurity $LIBS"
8647 echo "$ac_t""no" 1>&6
8650 for ac_func in getprpwnam
8652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8653 echo "configure:8654: checking for $ac_func" >&5
8654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8655 echo $ac_n "(cached) $ac_c" 1>&6
8657 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8660 /* System header to define __stub macros and hopefully few prototypes,
8661 which can conflict with char $ac_func(); below. */
8663 /* Override any gcc2 internal prototype to avoid an error. */
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8681 if { (eval echo configure:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8683 eval "ac_cv_func_$ac_func=yes"
8685 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8688 eval "ac_cv_func_$ac_func=no"
8693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8694 echo "$ac_t""yes" 1>&6
8695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8696 cat >> confdefs.h <<EOF
8697 #define $ac_tr_func 1
8701 echo "$ac_t""no" 1>&6
8709 *-lsec*) for ac_func in getprpwnam
8711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8712 echo "configure:8713: checking for $ac_func" >&5
8713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8714 echo $ac_n "(cached) $ac_c" 1>&6
8716 cat > conftest.$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8719 /* System header to define __stub macros and hopefully few prototypes,
8720 which can conflict with char $ac_func(); below. */
8722 /* Override any gcc2 internal prototype to avoid an error. */
8723 /* We use char because int might match the return type of a gcc2
8724 builtin and then its argument prototype would still apply. */
8729 /* The GNU C library defines this for functions which it implements
8730 to always fail with ENOSYS. Some functions are actually named
8731 something starting with __ and the normal name is an alias. */
8732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8740 if { (eval echo configure:8741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8742 eval "ac_cv_func_$ac_func=yes"
8744 echo "configure: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8747 eval "ac_cv_func_$ac_func=no"
8752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8753 echo "$ac_t""yes" 1>&6
8754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8755 cat >> confdefs.h <<EOF
8756 #define $ac_tr_func 1
8760 echo "$ac_t""no" 1>&6
8764 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8765 echo "configure:8766: checking for getprpwnam in -lsec" >&5
8766 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8770 ac_save_LIBS="$LIBS"
8772 cat > conftest.$ac_ext <<EOF
8773 #line 8774 "configure"
8774 #include "confdefs.h"
8775 /* Override any gcc2 internal prototype to avoid an error. */
8776 /* We use char because int might match the return type of a gcc2
8777 builtin and then its argument prototype would still apply. */
8784 if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8786 eval "ac_cv_lib_$ac_lib_var=yes"
8788 echo "configure: failed program was:" >&5
8789 cat conftest.$ac_ext >&5
8791 eval "ac_cv_lib_$ac_lib_var=no"
8794 LIBS="$ac_save_LIBS"
8797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8798 echo "$ac_t""yes" 1>&6
8799 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8800 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8801 cat >> confdefs.h <<EOF
8802 #define $ac_tr_lib 1
8808 echo "$ac_t""no" 1>&6
8811 for ac_func in getprpwnam
8813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8814 echo "configure:8815: checking for $ac_func" >&5
8815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8818 cat > conftest.$ac_ext <<EOF
8819 #line 8820 "configure"
8820 #include "confdefs.h"
8821 /* System header to define __stub macros and hopefully few prototypes,
8822 which can conflict with char $ac_func(); below. */
8824 /* Override any gcc2 internal prototype to avoid an error. */
8825 /* We use char because int might match the return type of a gcc2
8826 builtin and then its argument prototype would still apply. */
8831 /* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */
8834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8842 if { (eval echo configure:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844 eval "ac_cv_func_$ac_func=yes"
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8849 eval "ac_cv_func_$ac_func=no"
8854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8855 echo "$ac_t""yes" 1>&6
8856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8857 cat >> confdefs.h <<EOF
8858 #define $ac_tr_func 1
8862 echo "$ac_t""no" 1>&6
8870 # this bit needs to be modified for each OS that is suported by
8871 # smbwrapper. You need to specify how to created a shared library and
8872 # how to compile C code to produce PIC object files
8874 # these are the defaults, good for lots of systems
8882 # Assume non-shared by default and override below
8884 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8885 echo "configure:8886: checking ability to build shared libraries" >&5
8887 # and these are for particular systems
8889 *linux*) cat >> confdefs.h <<\EOF
8895 DYNEXP="-Wl,--export-dynamic"
8897 cat >> confdefs.h <<\EOF
8898 #define STAT_ST_BLOCKSIZE 512
8903 cat >> confdefs.h <<\EOF
8908 LDSHFLAGS="-h \$@ -G"
8909 if test "${GCC}" = "yes"; then
8916 cat >> confdefs.h <<\EOF
8917 #define STAT_ST_BLOCKSIZE 512
8921 *sunos*) cat >> confdefs.h <<\EOF
8926 LDSHFLAGS="-Wl,-h,\$@ -G"
8927 PICFLAG="-KPIC" # Is this correct for SunOS
8929 *bsd*) BLDSHARED="true"
8930 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8931 DYNEXP="-Wl,-Bdynamic"
8933 cat >> confdefs.h <<\EOF
8934 #define STAT_ST_BLOCKSIZE 512
8938 *irix*) cat >> confdefs.h <<\EOF
8943 *irix6*) cat >> confdefs.h <<\EOF
8949 ATTEMPT_WRAP32_BUILD=yes
8951 LDSHFLAGS="-soname \$@ -shared"
8953 if test "${GCC}" = "yes"; then
8958 cat >> confdefs.h <<\EOF
8959 #define STAT_ST_BLOCKSIZE 512
8963 *aix*) cat >> confdefs.h <<\EOF
8968 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8969 PICFLAG="-O2 -qmaxmem=6000"
8970 cat >> confdefs.h <<\EOF
8971 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8975 *hpux*) cat >> confdefs.h <<\EOF
8980 # Use special PIC flags for the native HP-UX compiler.
8981 if test $ac_cv_prog_cc_Ae = yes; then
8984 LDSHFLAGS="-B symbolic -b -z +h \$@"
8988 cat >> confdefs.h <<\EOF
8989 #define STAT_ST_BLOCKSIZE 8192
8993 *qnx*) cat >> confdefs.h <<\EOF
8997 *osf*) cat >> confdefs.h <<\EOF
9002 LDSHFLAGS="-Wl,-soname,\$@ -shared"
9006 cat >> confdefs.h <<\EOF
9011 *unixware*) cat >> confdefs.h <<\EOF
9016 LDSHFLAGS="-Wl,-soname,\$@ -shared"
9019 *next2*) cat >> confdefs.h <<\EOF
9023 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9024 set dummy groff; ac_word=$2
9025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9026 echo "configure:9027: checking for $ac_word" >&5
9027 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9028 echo $ac_n "(cached) $ac_c" 1>&6
9030 if test -n "$ROFF"; then
9031 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9035 for ac_dir in $ac_dummy; do
9036 test -z "$ac_dir" && ac_dir=.
9037 if test -f $ac_dir/$ac_word; then
9038 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9045 ROFF="$ac_cv_prog_ROFF"
9046 if test -n "$ROFF"; then
9047 echo "$ac_t""$ROFF" 1>&6
9049 echo "$ac_t""no" 1>&6
9055 if test "$GCC" != yes ; then
9056 cat >> confdefs.h <<\EOF
9057 #define HAVE_MEMSET 1
9065 cat >> confdefs.h <<\EOF
9066 #define RELIANTUNIX 1
9074 if test "$GCC" != yes ; then
9075 cat >> confdefs.h <<\EOF
9076 #define HAVE_MEMSET 1
9084 echo "$ac_t""$BLDSHARED" 1>&6
9085 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9086 echo "configure:9087: checking linker flags for shared libraries" >&5
9087 echo "$ac_t""$LDSHFLAGS" 1>&6
9088 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9089 echo "configure:9090: checking compiler flags for position-independent code" >&5
9090 echo "$ac_t""$PICFLAGS" 1>&6
9092 #######################################################
9093 # test whether building a shared library actually works
9094 if test $BLDSHARED = true; then
9095 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9096 echo "configure:9097: checking whether building shared libraries actually works" >&5
9097 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9098 echo $ac_n "(cached) $ac_c" 1>&6
9101 ac_cv_shlib_works=no
9102 # try building a trivial shared library
9103 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9104 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9105 ac_cv_shlib_works=yes
9106 rm -f shlib.so shlib.po
9110 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9111 if test $ac_cv_shlib_works = no; then
9117 # this updates our target list if we can build shared libs
9118 if test $BLDSHARED = true; then
9119 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9121 LIBSMBCLIENT_SHARED=
9126 echo $ac_n "checking for long long""... $ac_c" 1>&6
9127 echo "configure:9128: checking for long long" >&5
9128 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9132 if test "$cross_compiling" = yes; then
9133 samba_cv_have_longlong=cross
9135 cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9139 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9143 samba_cv_have_longlong=yes
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9148 samba_cv_have_longlong=no
9155 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9156 if test x"$samba_cv_have_longlong" = x"yes"; then
9157 cat >> confdefs.h <<\EOF
9158 #define HAVE_LONGLONG 1
9164 # Check if the compiler supports the LL prefix on long long integers.
9167 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9168 echo "configure:9169: checking for LL suffix on long long integers" >&5
9169 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9170 echo $ac_n "(cached) $ac_c" 1>&6
9173 cat > conftest.$ac_ext <<EOF
9174 #line 9175 "configure"
9175 #include "confdefs.h"
9178 long long i = 0x8000000000LL
9181 if { (eval echo configure:9182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9183 samba_cv_compiler_supports_ll=yes
9185 echo "configure: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9188 samba_cv_compiler_supports_ll=no
9193 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9194 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9195 cat >> confdefs.h <<\EOF
9196 #define COMPILER_SUPPORTS_LL 1
9202 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9203 echo "configure:9204: checking for 64 bit off_t" >&5
9204 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9208 if test "$cross_compiling" = yes; then
9209 samba_cv_SIZEOF_OFF_T=cross
9211 cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9215 #include <sys/stat.h>
9216 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9218 if { (eval echo configure:9219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9220 samba_cv_SIZEOF_OFF_T=yes
9222 echo "configure: failed program was:" >&5
9223 cat conftest.$ac_ext >&5
9225 samba_cv_SIZEOF_OFF_T=no
9232 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9233 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9234 cat >> confdefs.h <<\EOF
9235 #define SIZEOF_OFF_T 8
9240 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9241 echo "configure:9242: checking for off64_t" >&5
9242 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9243 echo $ac_n "(cached) $ac_c" 1>&6
9246 if test "$cross_compiling" = yes; then
9247 samba_cv_HAVE_OFF64_T=cross
9249 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure"
9251 #include "confdefs.h"
9253 #if defined(HAVE_UNISTD_H)
9257 #include <sys/stat.h>
9258 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9260 if { (eval echo configure:9261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9262 samba_cv_HAVE_OFF64_T=yes
9264 echo "configure: failed program was:" >&5
9265 cat conftest.$ac_ext >&5
9267 samba_cv_HAVE_OFF64_T=no
9274 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9275 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9276 cat >> confdefs.h <<\EOF
9277 #define HAVE_OFF64_T 1
9282 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9283 echo "configure:9284: checking for 64 bit ino_t" >&5
9284 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9285 echo $ac_n "(cached) $ac_c" 1>&6
9288 if test "$cross_compiling" = yes; then
9289 samba_cv_SIZEOF_INO_T=cross
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9295 #include <sys/stat.h>
9296 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9298 if { (eval echo configure:9299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9300 samba_cv_SIZEOF_INO_T=yes
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 samba_cv_SIZEOF_INO_T=no
9312 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9313 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9314 cat >> confdefs.h <<\EOF
9315 #define SIZEOF_INO_T 8
9320 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9321 echo "configure:9322: checking for ino64_t" >&5
9322 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9326 if test "$cross_compiling" = yes; then
9327 samba_cv_HAVE_INO64_T=cross
9329 cat > conftest.$ac_ext <<EOF
9330 #line 9331 "configure"
9331 #include "confdefs.h"
9333 #if defined(HAVE_UNISTD_H)
9337 #include <sys/stat.h>
9338 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9340 if { (eval echo configure:9341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9342 samba_cv_HAVE_INO64_T=yes
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9347 samba_cv_HAVE_INO64_T=no
9354 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9355 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9356 cat >> confdefs.h <<\EOF
9357 #define HAVE_INO64_T 1
9362 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9363 echo "configure:9364: checking for dev64_t" >&5
9364 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9368 if test "$cross_compiling" = yes; then
9369 samba_cv_HAVE_DEV64_T=cross
9371 cat > conftest.$ac_ext <<EOF
9372 #line 9373 "configure"
9373 #include "confdefs.h"
9375 #if defined(HAVE_UNISTD_H)
9379 #include <sys/stat.h>
9380 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9382 if { (eval echo configure:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9384 samba_cv_HAVE_DEV64_T=yes
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9389 samba_cv_HAVE_DEV64_T=no
9396 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9397 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9398 cat >> confdefs.h <<\EOF
9399 #define HAVE_DEV64_T 1
9404 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9405 echo "configure:9406: checking for struct dirent64" >&5
9406 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9410 cat > conftest.$ac_ext <<EOF
9411 #line 9412 "configure"
9412 #include "confdefs.h"
9414 #if defined(HAVE_UNISTD_H)
9417 #include <sys/types.h>
9423 if { (eval echo configure:9424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9425 samba_cv_HAVE_STRUCT_DIRENT64=yes
9427 echo "configure: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9430 samba_cv_HAVE_STRUCT_DIRENT64=no
9435 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9436 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9437 cat >> confdefs.h <<\EOF
9438 #define HAVE_STRUCT_DIRENT64 1
9443 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9444 echo "configure:9445: checking for major macro" >&5
9445 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9449 if test "$cross_compiling" = yes; then
9450 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9452 cat > conftest.$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9456 #if defined(HAVE_UNISTD_H)
9459 #include <sys/types.h>
9460 main() { dev_t dev; int i = major(dev); return 0; }
9462 if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9464 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9466 echo "configure: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9469 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9476 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9477 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9478 cat >> confdefs.h <<\EOF
9479 #define HAVE_DEVICE_MAJOR_FN 1
9484 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9485 echo "configure:9486: checking for minor macro" >&5
9486 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9490 if test "$cross_compiling" = yes; then
9491 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9497 #if defined(HAVE_UNISTD_H)
9500 #include <sys/types.h>
9501 main() { dev_t dev; int i = minor(dev); return 0; }
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9505 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9510 samba_cv_HAVE_DEVICE_MINOR_FN=no
9517 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9518 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9519 cat >> confdefs.h <<\EOF
9520 #define HAVE_DEVICE_MINOR_FN 1
9525 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9526 echo "configure:9527: checking for unsigned char" >&5
9527 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9528 echo $ac_n "(cached) $ac_c" 1>&6
9531 if test "$cross_compiling" = yes; then
9532 samba_cv_HAVE_UNSIGNED_CHAR=cross
9534 cat > conftest.$ac_ext <<EOF
9535 #line 9536 "configure"
9536 #include "confdefs.h"
9538 main() { char c; c=250; exit((c > 0)?0:1); }
9540 if { (eval echo configure:9541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9542 samba_cv_HAVE_UNSIGNED_CHAR=yes
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9547 samba_cv_HAVE_UNSIGNED_CHAR=no
9554 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9555 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9556 cat >> confdefs.h <<\EOF
9557 #define HAVE_UNSIGNED_CHAR 1
9562 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9563 echo "configure:9564: checking for sin_len in sock" >&5
9564 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9572 #include <sys/socket.h>
9573 #include <netinet/in.h>
9575 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9578 if { (eval echo configure:9579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9580 samba_cv_HAVE_SOCK_SIN_LEN=yes
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9585 samba_cv_HAVE_SOCK_SIN_LEN=no
9590 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9591 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9592 cat >> confdefs.h <<\EOF
9593 #define HAVE_SOCK_SIN_LEN 1
9598 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9599 echo "configure:9600: checking whether seekdir returns void" >&5
9600 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 #include <sys/types.h>
9609 void seekdir(DIR *d, long loc) { return; }
9614 if { (eval echo configure:9615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9616 samba_cv_SEEKDIR_RETURNS_VOID=yes
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9621 samba_cv_SEEKDIR_RETURNS_VOID=no
9626 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9627 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9628 cat >> confdefs.h <<\EOF
9629 #define SEEKDIR_RETURNS_VOID 1
9634 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9635 echo "configure:9636: checking for __FILE__ macro" >&5
9636 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9640 cat > conftest.$ac_ext <<EOF
9641 #line 9642 "configure"
9642 #include "confdefs.h"
9645 printf("%s\n", __FILE__);
9648 if { (eval echo configure:9649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9650 samba_cv_HAVE_FILE_MACRO=yes
9652 echo "configure: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
9655 samba_cv_HAVE_FILE_MACRO=no
9660 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9661 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9662 cat >> confdefs.h <<\EOF
9663 #define HAVE_FILE_MACRO 1
9668 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9669 echo "configure:9670: checking for __FUNCTION__ macro" >&5
9670 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9679 printf("%s\n", __FUNCTION__);
9682 if { (eval echo configure:9683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9684 samba_cv_HAVE_FUNCTION_MACRO=yes
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9689 samba_cv_HAVE_FUNCTION_MACRO=no
9694 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9695 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9696 cat >> confdefs.h <<\EOF
9697 #define HAVE_FUNCTION_MACRO 1
9702 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9703 echo "configure:9704: checking if gettimeofday takes tz argument" >&5
9704 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9708 if test "$cross_compiling" = yes; then
9709 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9715 #include <sys/time.h>
9717 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9719 if { (eval echo configure:9720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9721 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9733 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9734 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9735 cat >> confdefs.h <<\EOF
9736 #define HAVE_GETTIMEOFDAY_TZ 1
9741 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9742 echo "configure:9743: checking for __va_copy" >&5
9743 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9744 echo $ac_n "(cached) $ac_c" 1>&6
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9756 if { (eval echo configure:9757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9758 samba_cv_HAVE_VA_COPY=yes
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9763 samba_cv_HAVE_VA_COPY=no
9768 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9769 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9770 cat >> confdefs.h <<\EOF
9771 #define HAVE_VA_COPY 1
9776 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9777 echo "configure:9778: checking for C99 vsnprintf" >&5
9778 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9782 if test "$cross_compiling" = yes; then
9783 samba_cv_HAVE_C99_VSNPRINTF=cross
9785 cat > conftest.$ac_ext <<EOF
9786 #line 9787 "configure"
9787 #include "confdefs.h"
9789 #include <sys/types.h>
9791 void foo(const char *format, ...) {
9796 va_start(ap, format);
9797 len = vsnprintf(buf, 0, format, ap);
9799 if (len != 5) exit(1);
9801 va_start(ap, format);
9802 len = vsnprintf(0, 0, format, ap);
9804 if (len != 5) exit(1);
9806 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9810 main() { foo("hello"); }
9813 if { (eval echo configure:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9815 samba_cv_HAVE_C99_VSNPRINTF=yes
9817 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9820 samba_cv_HAVE_C99_VSNPRINTF=no
9827 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9828 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9829 cat >> confdefs.h <<\EOF
9830 #define HAVE_C99_VSNPRINTF 1
9835 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9836 echo "configure:9837: checking for broken readdir" >&5
9837 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
9841 if test "$cross_compiling" = yes; then
9842 samba_cv_HAVE_BROKEN_READDIR=cross
9844 cat > conftest.$ac_ext <<EOF
9845 #line 9846 "configure"
9846 #include "confdefs.h"
9847 #include <sys/types.h>
9849 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9850 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9851 di->d_name[0] == 0) exit(0); exit(1);}
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9855 samba_cv_HAVE_BROKEN_READDIR=yes
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 samba_cv_HAVE_BROKEN_READDIR=no
9867 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9868 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9869 cat >> confdefs.h <<\EOF
9870 #define HAVE_BROKEN_READDIR 1
9875 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9876 echo "configure:9877: checking for utimbuf" >&5
9877 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9878 echo $ac_n "(cached) $ac_c" 1>&6
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9884 #include <sys/types.h>
9887 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9890 if { (eval echo configure:9891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9892 samba_cv_HAVE_UTIMBUF=yes
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9897 samba_cv_HAVE_UTIMBUF=no
9902 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9903 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9904 cat >> confdefs.h <<\EOF
9905 #define HAVE_UTIMBUF 1
9911 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9914 echo "configure:9915: checking for $ac_func" >&5
9915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* System header to define __stub macros and hopefully few prototypes,
9922 which can conflict with char $ac_func(); below. */
9924 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9942 if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9944 eval "ac_cv_func_$ac_func=yes"
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9949 eval "ac_cv_func_$ac_func=no"
9954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9955 echo "$ac_t""yes" 1>&6
9956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9957 cat >> confdefs.h <<EOF
9958 #define $ac_tr_func 1
9962 echo "$ac_t""no" 1>&6
9967 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9968 echo "configure:9969: checking for ut_name in utmp" >&5
9969 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+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"
9976 #include <sys/types.h>
9979 struct utmp ut; ut.ut_name[0] = 'a';
9982 if { (eval echo configure:9983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9984 samba_cv_HAVE_UT_UT_NAME=yes
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 samba_cv_HAVE_UT_UT_NAME=no
9994 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9995 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9996 cat >> confdefs.h <<\EOF
9997 #define HAVE_UT_UT_NAME 1
10002 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10003 echo "configure:10004: checking for ut_user in utmp" >&5
10004 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10008 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10011 #include <sys/types.h>
10014 struct utmp ut; ut.ut_user[0] = 'a';
10017 if { (eval echo configure:10018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10019 samba_cv_HAVE_UT_UT_USER=yes
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10024 samba_cv_HAVE_UT_UT_USER=no
10029 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10030 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10031 cat >> confdefs.h <<\EOF
10032 #define HAVE_UT_UT_USER 1
10037 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10038 echo "configure:10039: checking for ut_id in utmp" >&5
10039 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10040 echo $ac_n "(cached) $ac_c" 1>&6
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10046 #include <sys/types.h>
10049 struct utmp ut; ut.ut_id[0] = 'a';
10052 if { (eval echo configure:10053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10054 samba_cv_HAVE_UT_UT_ID=yes
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10059 samba_cv_HAVE_UT_UT_ID=no
10064 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10065 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10066 cat >> confdefs.h <<\EOF
10067 #define HAVE_UT_UT_ID 1
10072 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10073 echo "configure:10074: checking for ut_host in utmp" >&5
10074 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10075 echo $ac_n "(cached) $ac_c" 1>&6
10078 cat > conftest.$ac_ext <<EOF
10079 #line 10080 "configure"
10080 #include "confdefs.h"
10081 #include <sys/types.h>
10084 struct utmp ut; ut.ut_host[0] = 'a';
10087 if { (eval echo configure:10088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10089 samba_cv_HAVE_UT_UT_HOST=yes
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10094 samba_cv_HAVE_UT_UT_HOST=no
10099 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10100 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10101 cat >> confdefs.h <<\EOF
10102 #define HAVE_UT_UT_HOST 1
10107 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10108 echo "configure:10109: checking for ut_time in utmp" >&5
10109 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 #include <sys/types.h>
10119 struct utmp ut; time_t t; ut.ut_time = t;
10122 if { (eval echo configure:10123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10124 samba_cv_HAVE_UT_UT_TIME=yes
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10129 samba_cv_HAVE_UT_UT_TIME=no
10134 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10135 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10136 cat >> confdefs.h <<\EOF
10137 #define HAVE_UT_UT_TIME 1
10142 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10143 echo "configure:10144: checking for ut_tv in utmp" >&5
10144 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10148 cat > conftest.$ac_ext <<EOF
10149 #line 10150 "configure"
10150 #include "confdefs.h"
10151 #include <sys/types.h>
10154 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10157 if { (eval echo configure:10158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10159 samba_cv_HAVE_UT_UT_TV=yes
10161 echo "configure: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10164 samba_cv_HAVE_UT_UT_TV=no
10169 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10170 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10171 cat >> confdefs.h <<\EOF
10172 #define HAVE_UT_UT_TV 1
10177 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10178 echo "configure:10179: checking for ut_type in utmp" >&5
10179 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10180 echo $ac_n "(cached) $ac_c" 1>&6
10183 cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10186 #include <sys/types.h>
10189 struct utmp ut; ut.ut_type = 0;
10192 if { (eval echo configure:10193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10194 samba_cv_HAVE_UT_UT_TYPE=yes
10196 echo "configure: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10199 samba_cv_HAVE_UT_UT_TYPE=no
10204 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10205 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10206 cat >> confdefs.h <<\EOF
10207 #define HAVE_UT_UT_TYPE 1
10212 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10213 echo "configure:10214: checking for ut_pid in utmp" >&5
10214 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10215 echo $ac_n "(cached) $ac_c" 1>&6
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 #include <sys/types.h>
10224 struct utmp ut; ut.ut_pid = 0;
10227 if { (eval echo configure:10228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10229 samba_cv_HAVE_UT_UT_PID=yes
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10234 samba_cv_HAVE_UT_UT_PID=no
10239 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10240 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10241 cat >> confdefs.h <<\EOF
10242 #define HAVE_UT_UT_PID 1
10247 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10248 echo "configure:10249: checking for ut_exit in utmp" >&5
10249 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10256 #include <sys/types.h>
10259 struct utmp ut; ut.ut_exit.e_exit = 0;
10262 if { (eval echo configure:10263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10264 samba_cv_HAVE_UT_UT_EXIT=yes
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10269 samba_cv_HAVE_UT_UT_EXIT=no
10274 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10275 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10276 cat >> confdefs.h <<\EOF
10277 #define HAVE_UT_UT_EXIT 1
10282 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10283 echo "configure:10284: checking for ut_addr in utmp" >&5
10284 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10285 echo $ac_n "(cached) $ac_c" 1>&6
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291 #include <sys/types.h>
10294 struct utmp ut; ut.ut_addr = 0;
10297 if { (eval echo configure:10298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10299 samba_cv_HAVE_UT_UT_ADDR=yes
10301 echo "configure: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10304 samba_cv_HAVE_UT_UT_ADDR=no
10309 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10310 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10311 cat >> confdefs.h <<\EOF
10312 #define HAVE_UT_UT_ADDR 1
10317 if test x$ac_cv_func_pututline = xyes ; then
10318 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10319 echo "configure:10320: checking whether pututline returns pointer" >&5
10320 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10324 cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 #include <sys/types.h>
10330 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10333 if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10335 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10345 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10346 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10347 cat >> confdefs.h <<\EOF
10348 #define PUTUTLINE_RETURNS_UTMP 1
10354 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10355 echo "configure:10356: checking for ut_syslen in utmpx" >&5
10356 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10360 cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure"
10362 #include "confdefs.h"
10363 #include <sys/types.h>
10366 struct utmpx ux; ux.ut_syslen = 0;
10369 if { (eval echo configure:10370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10371 samba_cv_HAVE_UX_UT_SYSLEN=yes
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10376 samba_cv_HAVE_UX_UT_SYSLEN=no
10381 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10382 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10383 cat >> confdefs.h <<\EOF
10384 #define HAVE_UX_UT_SYSLEN 1
10390 #################################################
10391 # check for libiconv support
10392 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10393 echo "configure:10394: checking whether to use libiconv" >&5
10394 # Check whether --with-libiconv or --without-libiconv was given.
10395 if test "${with_libiconv+set}" = set; then
10396 withval="$with_libiconv"
10399 echo "$ac_t""no" 1>&6
10402 echo "$ac_t""yes" 1>&6
10403 CFLAGS="$CFLAGS -I$withval/include"
10404 LDFLAGS="$LDFLAGS -L$withval/lib"
10405 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10406 echo "configure:10407: checking for iconv_open in -liconv" >&5
10407 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10409 echo $ac_n "(cached) $ac_c" 1>&6
10411 ac_save_LIBS="$LIBS"
10412 LIBS="-liconv $LIBS"
10413 cat > conftest.$ac_ext <<EOF
10414 #line 10415 "configure"
10415 #include "confdefs.h"
10416 /* Override any gcc2 internal prototype to avoid an error. */
10417 /* We use char because int might match the return type of a gcc2
10418 builtin and then its argument prototype would still apply. */
10425 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10427 eval "ac_cv_lib_$ac_lib_var=yes"
10429 echo "configure: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10432 eval "ac_cv_lib_$ac_lib_var=no"
10435 LIBS="$ac_save_LIBS"
10438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10439 echo "$ac_t""yes" 1>&6
10440 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10441 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10442 cat >> confdefs.h <<EOF
10443 #define $ac_tr_lib 1
10446 LIBS="-liconv $LIBS"
10449 echo "$ac_t""no" 1>&6
10452 cat >> confdefs.h <<EOF
10453 #define WITH_LIBICONV "${withval}"
10459 echo "$ac_t""no" 1>&6
10466 # check for iconv in libc
10467 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10468 echo "configure:10469: checking for working iconv" >&5
10469 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10470 echo $ac_n "(cached) $ac_c" 1>&6
10473 if test "$cross_compiling" = yes; then
10474 samba_cv_HAVE_NATIVE_ICONV=cross
10476 cat > conftest.$ac_ext <<EOF
10477 #line 10478 "configure"
10478 #include "confdefs.h"
10482 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10483 if (cd == 0 || cd == (iconv_t)-1) return -1;
10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10490 samba_cv_HAVE_NATIVE_ICONV=yes
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10495 samba_cv_HAVE_NATIVE_ICONV=no
10502 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10503 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10504 cat >> confdefs.h <<\EOF
10505 #define HAVE_NATIVE_ICONV 1
10511 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10512 echo "configure:10513: checking for Linux kernel oplocks" >&5
10513 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10517 if test "$cross_compiling" = yes; then
10518 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10520 cat > conftest.$ac_ext <<EOF
10521 #line 10522 "configure"
10522 #include "confdefs.h"
10524 #include <sys/types.h>
10527 #define F_GETLEASE 1025
10530 int fd = open("/dev/null", O_RDONLY);
10531 return fcntl(fd, F_GETLEASE, 0) == -1;
10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10537 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10542 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10549 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10550 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10551 cat >> confdefs.h <<\EOF
10552 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10557 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10558 echo "configure:10559: checking for kernel change notify support" >&5
10559 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10563 if test "$cross_compiling" = yes; then
10564 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10566 cat > conftest.$ac_ext <<EOF
10567 #line 10568 "configure"
10568 #include "confdefs.h"
10570 #include <sys/types.h>
10572 #include <signal.h>
10574 #define F_NOTIFY 1026
10577 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10581 if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10583 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10588 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10595 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10596 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10597 cat >> confdefs.h <<\EOF
10598 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10603 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10604 echo "configure:10605: checking for kernel share modes" >&5
10605 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10609 if test "$cross_compiling" = yes; then
10610 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10616 #include <sys/types.h>
10618 #include <signal.h>
10619 #include <sys/file.h>
10621 #define LOCK_MAND 32
10622 #define LOCK_READ 64
10625 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10631 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10643 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10644 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10645 cat >> confdefs.h <<\EOF
10646 #define HAVE_KERNEL_SHARE_MODES 1
10654 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10655 echo "configure:10656: checking for IRIX kernel oplock type definitions" >&5
10656 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10660 cat > conftest.$ac_ext <<EOF
10661 #line 10662 "configure"
10662 #include "confdefs.h"
10663 #include <sys/types.h>
10666 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10669 if { (eval echo configure:10670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10671 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10681 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10682 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10683 cat >> confdefs.h <<\EOF
10684 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10689 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10690 echo "configure:10691: checking for irix specific capabilities" >&5
10691 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10692 echo $ac_n "(cached) $ac_c" 1>&6
10695 if test "$cross_compiling" = yes; then
10696 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10698 cat > conftest.$ac_ext <<EOF
10699 #line 10700 "configure"
10700 #include "confdefs.h"
10701 #include <sys/types.h>
10702 #include <sys/capability.h>
10705 if ((cap = cap_get_proc()) == NULL)
10707 cap->cap_effective |= CAP_NETWORK_MGT;
10708 cap->cap_inheritable |= CAP_NETWORK_MGT;
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_IRIX_SPECIFIC_CAPABILITIES=yes
10718 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10721 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10728 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10729 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10730 cat >> confdefs.h <<\EOF
10731 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10737 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10738 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10741 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10742 echo "configure:10743: checking for int16 typedef included by rpc/rpc.h" >&5
10743 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10744 echo $ac_n "(cached) $ac_c" 1>&6
10747 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10750 #include <sys/types.h>
10751 #if defined(HAVE_RPC_RPC_H)
10752 #include <rpc/rpc.h>
10758 if { (eval echo configure:10759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10760 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10762 echo "configure: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10765 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10770 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10771 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10772 cat >> confdefs.h <<\EOF
10773 #define HAVE_INT16_FROM_RPC_RPC_H 1
10778 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10779 echo "configure:10780: checking for uint16 typedef included by rpc/rpc.h" >&5
10780 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10781 echo $ac_n "(cached) $ac_c" 1>&6
10784 cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 #include <sys/types.h>
10788 #if defined(HAVE_RPC_RPC_H)
10789 #include <rpc/rpc.h>
10795 if { (eval echo configure:10796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10797 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10799 echo "configure: failed program was:" >&5
10800 cat conftest.$ac_ext >&5
10802 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10807 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10808 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10809 cat >> confdefs.h <<\EOF
10810 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10815 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10816 echo "configure:10817: checking for int32 typedef included by rpc/rpc.h" >&5
10817 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10818 echo $ac_n "(cached) $ac_c" 1>&6
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10824 #include <sys/types.h>
10825 #if defined(HAVE_RPC_RPC_H)
10826 #include <rpc/rpc.h>
10832 if { (eval echo configure:10833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10834 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10839 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10844 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10845 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10846 cat >> confdefs.h <<\EOF
10847 #define HAVE_INT32_FROM_RPC_RPC_H 1
10852 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10853 echo "configure:10854: checking for uint32 typedef included by rpc/rpc.h" >&5
10854 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10858 cat > conftest.$ac_ext <<EOF
10859 #line 10860 "configure"
10860 #include "confdefs.h"
10861 #include <sys/types.h>
10862 #if defined(HAVE_RPC_RPC_H)
10863 #include <rpc/rpc.h>
10869 if { (eval echo configure:10870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10871 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10876 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10881 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10882 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10883 cat >> confdefs.h <<\EOF
10884 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10890 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10891 echo "configure:10892: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10892 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10893 echo $ac_n "(cached) $ac_c" 1>&6
10896 cat > conftest.$ac_ext <<EOF
10897 #line 10898 "configure"
10898 #include "confdefs.h"
10899 #include <sys/types.h>
10900 #ifdef HAVE_SYS_SECURITY_H
10901 #include <sys/security.h>
10903 #endif /* HAVE_SYS_SECURITY_H */
10904 #if defined(HAVE_RPC_RPC_H)
10905 #include <rpc/rpc.h>
10911 if { (eval echo configure:10912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10913 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10918 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10923 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10924 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10925 cat >> confdefs.h <<\EOF
10926 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10931 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10932 echo "configure:10933: checking for test routines" >&5
10933 if test "$cross_compiling" = yes; then
10934 echo "configure: warning: cannot run when cross-compiling" 1>&2
10936 cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10939 #include "${srcdir-.}/tests/trivial.c"
10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10943 echo "$ac_t""yes" 1>&6
10945 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5
10948 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10954 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10955 echo "configure:10956: checking for ftruncate extend" >&5
10956 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10957 echo $ac_n "(cached) $ac_c" 1>&6
10960 if test "$cross_compiling" = yes; then
10961 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10963 cat > conftest.$ac_ext <<EOF
10964 #line 10965 "configure"
10965 #include "confdefs.h"
10966 #include "${srcdir-.}/tests/ftruncate.c"
10968 if { (eval echo configure:10969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10970 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10972 echo "configure: failed program was:" >&5
10973 cat conftest.$ac_ext >&5
10975 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10982 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10983 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10984 cat >> confdefs.h <<\EOF
10985 #define HAVE_FTRUNCATE_EXTEND 1
10990 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10991 echo "configure:10992: checking for AF_LOCAL socket support" >&5
10992 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10993 echo $ac_n "(cached) $ac_c" 1>&6
10996 if test "$cross_compiling" = yes; then
10997 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10999 cat > conftest.$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11002 #include "${srcdir-.}/tests/unixsock.c"
11004 if { (eval echo configure:11005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11006 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11008 echo "configure: failed program was:" >&5
11009 cat conftest.$ac_ext >&5
11011 samba_cv_HAVE_WORKING_AF_LOCAL=no
11018 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11019 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11021 cat >> confdefs.h <<\EOF
11022 #define HAVE_WORKING_AF_LOCAL 1
11027 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11028 echo "configure:11029: checking for broken getgroups" >&5
11029 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11030 echo $ac_n "(cached) $ac_c" 1>&6
11033 if test "$cross_compiling" = yes; then
11034 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 #include "${srcdir-.}/tests/getgroups.c"
11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11043 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11048 samba_cv_HAVE_BROKEN_GETGROUPS=no
11055 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11056 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11057 cat >> confdefs.h <<\EOF
11058 #define HAVE_BROKEN_GETGROUPS 1
11063 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11064 echo "configure:11065: checking whether getpass should be replaced" >&5
11065 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11069 SAVE_CPPFLAGS="$CPPFLAGS"
11070 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/popt -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
11071 cat > conftest.$ac_ext <<EOF
11072 #line 11073 "configure"
11073 #include "confdefs.h"
11075 #define REPLACE_GETPASS 1
11076 #define NO_CONFIG_H 1
11077 #define main dont_declare_main
11078 #include "${srcdir-.}/lib/getsmbpass.c"
11085 if { (eval echo configure:11086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11087 samba_cv_REPLACE_GETPASS=yes
11089 echo "configure: failed program was:" >&5
11090 cat conftest.$ac_ext >&5
11092 samba_cv_REPLACE_GETPASS=no
11095 CPPFLAGS="$SAVE_CPPFLAGS"
11099 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11100 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11101 cat >> confdefs.h <<\EOF
11102 #define REPLACE_GETPASS 1
11107 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11108 echo "configure:11109: checking for broken inet_ntoa" >&5
11109 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11110 echo $ac_n "(cached) $ac_c" 1>&6
11113 if test "$cross_compiling" = yes; then
11114 samba_cv_REPLACE_INET_NTOA=cross
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11121 #include <sys/types.h>
11122 #include <netinet/in.h>
11123 #ifdef HAVE_ARPA_INET_H
11124 #include <arpa/inet.h>
11126 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11127 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11128 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11131 if { (eval echo configure:11132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11133 samba_cv_REPLACE_INET_NTOA=yes
11135 echo "configure: failed program was:" >&5
11136 cat conftest.$ac_ext >&5
11138 samba_cv_REPLACE_INET_NTOA=no
11145 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11146 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11147 cat >> confdefs.h <<\EOF
11148 #define REPLACE_INET_NTOA 1
11153 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11154 echo "configure:11155: checking for secure mkstemp" >&5
11155 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11156 echo $ac_n "(cached) $ac_c" 1>&6
11159 if test "$cross_compiling" = yes; then
11160 samba_cv_HAVE_SECURE_MKSTEMP=cross
11162 cat > conftest.$ac_ext <<EOF
11163 #line 11164 "configure"
11164 #include "confdefs.h"
11165 #include <stdlib.h>
11166 #include <sys/types.h>
11167 #include <sys/stat.h>
11168 #include <unistd.h>
11171 char tpl[20]="/tmp/test.XXXXXX";
11172 int fd = mkstemp(tpl);
11173 if (fd == -1) exit(1);
11175 if (fstat(fd, &st) != 0) exit(1);
11176 if ((st.st_mode & 0777) != 0600) exit(1);
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11182 samba_cv_HAVE_SECURE_MKSTEMP=yes
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 samba_cv_HAVE_SECURE_MKSTEMP=no
11194 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11195 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11196 cat >> confdefs.h <<\EOF
11197 #define HAVE_SECURE_MKSTEMP 1
11202 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11203 echo "configure:11204: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11204 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11205 echo $ac_n "(cached) $ac_c" 1>&6
11208 if test "$cross_compiling" = yes; then
11209 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11211 cat > conftest.$ac_ext <<EOF
11212 #line 11213 "configure"
11213 #include "confdefs.h"
11214 #include <unistd.h>
11215 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11217 if { (eval echo configure:11218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11219 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11221 echo "configure: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11224 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11231 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11232 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11233 cat >> confdefs.h <<\EOF
11234 #define SYSCONF_SC_NGROUPS_MAX 1
11239 echo $ac_n "checking for root""... $ac_c" 1>&6
11240 echo "configure:11241: checking for root" >&5
11241 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11242 echo $ac_n "(cached) $ac_c" 1>&6
11245 if test "$cross_compiling" = yes; then
11246 samba_cv_HAVE_ROOT=cross
11248 cat > conftest.$ac_ext <<EOF
11249 #line 11250 "configure"
11250 #include "confdefs.h"
11251 main() { exit(getuid() != 0); }
11253 if { (eval echo configure:11254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11255 samba_cv_HAVE_ROOT=yes
11257 echo "configure: failed program was:" >&5
11258 cat conftest.$ac_ext >&5
11260 samba_cv_HAVE_ROOT=no
11267 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11268 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11269 cat >> confdefs.h <<\EOF
11270 #define HAVE_ROOT 1
11274 echo "configure: warning: running as non-root will disable some tests" 1>&2
11278 # look for a method of finding the list of network interfaces
11280 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11281 echo "configure:11282: checking for iface AIX" >&5
11282 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11286 if test "$cross_compiling" = yes; then
11287 samba_cv_HAVE_IFACE_AIX=cross
11289 cat > conftest.$ac_ext <<EOF
11290 #line 11291 "configure"
11291 #include "confdefs.h"
11293 #define HAVE_IFACE_AIX 1
11294 #define AUTOCONF_TEST 1
11295 #include "confdefs.h"
11296 #include "${srcdir-.}/lib/interfaces.c"
11298 if { (eval echo configure:11299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11300 samba_cv_HAVE_IFACE_AIX=yes
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11305 samba_cv_HAVE_IFACE_AIX=no
11312 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11313 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11314 iface=yes;cat >> confdefs.h <<\EOF
11315 #define HAVE_IFACE_AIX 1
11320 if test $iface = no; then
11321 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11322 echo "configure:11323: checking for iface ifconf" >&5
11323 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
11327 if test "$cross_compiling" = yes; then
11328 samba_cv_HAVE_IFACE_IFCONF=cross
11330 cat > conftest.$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11334 #define HAVE_IFACE_IFCONF 1
11335 #define AUTOCONF_TEST 1
11336 #include "confdefs.h"
11337 #include "${srcdir-.}/lib/interfaces.c"
11339 if { (eval echo configure:11340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11341 samba_cv_HAVE_IFACE_IFCONF=yes
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11346 samba_cv_HAVE_IFACE_IFCONF=no
11353 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11354 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11355 iface=yes;cat >> confdefs.h <<\EOF
11356 #define HAVE_IFACE_IFCONF 1
11362 if test $iface = no; then
11363 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11364 echo "configure:11365: checking for iface ifreq" >&5
11365 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11366 echo $ac_n "(cached) $ac_c" 1>&6
11369 if test "$cross_compiling" = yes; then
11370 samba_cv_HAVE_IFACE_IFREQ=cross
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11376 #define HAVE_IFACE_IFREQ 1
11377 #define AUTOCONF_TEST 1
11378 #include "confdefs.h"
11379 #include "${srcdir-.}/lib/interfaces.c"
11381 if { (eval echo configure:11382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11383 samba_cv_HAVE_IFACE_IFREQ=yes
11385 echo "configure: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11388 samba_cv_HAVE_IFACE_IFREQ=no
11395 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11396 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11397 iface=yes;cat >> confdefs.h <<\EOF
11398 #define HAVE_IFACE_IFREQ 1
11405 ################################################
11406 # look for a method of setting the effective uid
11408 if test $seteuid = no; then
11409 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11410 echo "configure:11411: checking for setresuid" >&5
11411 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11412 echo $ac_n "(cached) $ac_c" 1>&6
11415 if test "$cross_compiling" = yes; then
11416 samba_cv_USE_SETRESUID=cross
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11422 #define AUTOCONF_TEST 1
11423 #define USE_SETRESUID 1
11424 #include "confdefs.h"
11425 #include "${srcdir-.}/lib/util_sec.c"
11427 if { (eval echo configure:11428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11429 samba_cv_USE_SETRESUID=yes
11431 echo "configure: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11434 samba_cv_USE_SETRESUID=no
11441 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11442 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11443 seteuid=yes;cat >> confdefs.h <<\EOF
11444 #define USE_SETRESUID 1
11451 if test $seteuid = no; then
11452 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11453 echo "configure:11454: checking for setreuid" >&5
11454 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11458 if test "$cross_compiling" = yes; then
11459 samba_cv_USE_SETREUID=cross
11461 cat > conftest.$ac_ext <<EOF
11462 #line 11463 "configure"
11463 #include "confdefs.h"
11465 #define AUTOCONF_TEST 1
11466 #define USE_SETREUID 1
11467 #include "confdefs.h"
11468 #include "${srcdir-.}/lib/util_sec.c"
11470 if { (eval echo configure:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11472 samba_cv_USE_SETREUID=yes
11474 echo "configure: failed program was:" >&5
11475 cat conftest.$ac_ext >&5
11477 samba_cv_USE_SETREUID=no
11484 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11485 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11486 seteuid=yes;cat >> confdefs.h <<\EOF
11487 #define USE_SETREUID 1
11493 if test $seteuid = no; then
11494 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11495 echo "configure:11496: checking for seteuid" >&5
11496 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11500 if test "$cross_compiling" = yes; then
11501 samba_cv_USE_SETEUID=cross
11503 cat > conftest.$ac_ext <<EOF
11504 #line 11505 "configure"
11505 #include "confdefs.h"
11507 #define AUTOCONF_TEST 1
11508 #define USE_SETEUID 1
11509 #include "confdefs.h"
11510 #include "${srcdir-.}/lib/util_sec.c"
11512 if { (eval echo configure:11513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11514 samba_cv_USE_SETEUID=yes
11516 echo "configure: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11519 samba_cv_USE_SETEUID=no
11526 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11527 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11528 seteuid=yes;cat >> confdefs.h <<\EOF
11529 #define USE_SETEUID 1
11535 if test $seteuid = no; then
11536 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11537 echo "configure:11538: checking for setuidx" >&5
11538 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11539 echo $ac_n "(cached) $ac_c" 1>&6
11542 if test "$cross_compiling" = yes; then
11543 samba_cv_USE_SETUIDX=cross
11545 cat > conftest.$ac_ext <<EOF
11546 #line 11547 "configure"
11547 #include "confdefs.h"
11549 #define AUTOCONF_TEST 1
11550 #define USE_SETUIDX 1
11551 #include "confdefs.h"
11552 #include "${srcdir-.}/lib/util_sec.c"
11554 if { (eval echo configure:11555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11556 samba_cv_USE_SETUIDX=yes
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11561 samba_cv_USE_SETUIDX=no
11568 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11569 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11570 seteuid=yes;cat >> confdefs.h <<\EOF
11571 #define USE_SETUIDX 1
11578 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11579 echo "configure:11580: checking for working mmap" >&5
11580 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11581 echo $ac_n "(cached) $ac_c" 1>&6
11584 if test "$cross_compiling" = yes; then
11585 samba_cv_HAVE_MMAP=cross
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11590 #include "${srcdir-.}/tests/shared_mmap.c"
11592 if { (eval echo configure:11593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11594 samba_cv_HAVE_MMAP=yes
11596 echo "configure: failed program was:" >&5
11597 cat conftest.$ac_ext >&5
11599 samba_cv_HAVE_MMAP=no
11606 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11607 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11608 cat >> confdefs.h <<\EOF
11609 #define HAVE_MMAP 1
11614 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11615 echo "configure:11616: checking for ftruncate needs root" >&5
11616 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11620 if test "$cross_compiling" = yes; then
11621 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11623 cat > conftest.$ac_ext <<EOF
11624 #line 11625 "configure"
11625 #include "confdefs.h"
11626 #include "${srcdir-.}/tests/ftruncroot.c"
11628 if { (eval echo configure:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11630 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11635 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11642 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11643 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11644 cat >> confdefs.h <<\EOF
11645 #define FTRUNCATE_NEEDS_ROOT 1
11650 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11651 echo "configure:11652: checking for fcntl locking" >&5
11652 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11653 echo $ac_n "(cached) $ac_c" 1>&6
11656 if test "$cross_compiling" = yes; then
11657 samba_cv_HAVE_FCNTL_LOCK=cross
11659 cat > conftest.$ac_ext <<EOF
11660 #line 11661 "configure"
11661 #include "confdefs.h"
11662 #include "${srcdir-.}/tests/fcntl_lock.c"
11664 if { (eval echo configure:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11666 samba_cv_HAVE_FCNTL_LOCK=yes
11668 echo "configure: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11671 samba_cv_HAVE_FCNTL_LOCK=no
11678 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11679 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11680 cat >> confdefs.h <<\EOF
11681 #define HAVE_FCNTL_LOCK 1
11686 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11687 echo "configure:11688: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11688 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11689 echo $ac_n "(cached) $ac_c" 1>&6
11692 if test "$cross_compiling" = yes; then
11693 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11695 cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11698 #include "${srcdir-.}/tests/fcntl_lock64.c"
11700 if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11702 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11707 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11714 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11715 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11716 cat >> confdefs.h <<\EOF
11717 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11724 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11725 echo "configure:11726: checking for 64 bit fcntl locking" >&5
11726 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11727 echo $ac_n "(cached) $ac_c" 1>&6
11730 if test "$cross_compiling" = yes; then
11731 samba_cv_HAVE_STRUCT_FLOCK64=cross
11733 cat > conftest.$ac_ext <<EOF
11734 #line 11735 "configure"
11735 #include "confdefs.h"
11737 #if defined(HAVE_UNISTD_H)
11738 #include <unistd.h>
11741 #include <stdlib.h>
11743 #ifdef HAVE_FCNTL_H
11747 #ifdef HAVE_SYS_FCNTL_H
11748 #include <sys/fcntl.h>
11750 main() { struct flock64 fl64;
11751 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11758 if { (eval echo configure:11759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11760 samba_cv_HAVE_STRUCT_FLOCK64=yes
11762 echo "configure: failed program was:" >&5
11763 cat conftest.$ac_ext >&5
11765 samba_cv_HAVE_STRUCT_FLOCK64=no
11772 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11774 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11775 cat >> confdefs.h <<\EOF
11776 #define HAVE_STRUCT_FLOCK64 1
11782 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11783 echo "configure:11784: checking for st_blocks in struct stat" >&5
11784 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11791 #include <sys/types.h>
11792 #include <sys/stat.h>
11793 #include <unistd.h>
11795 struct stat st; st.st_blocks = 0;
11798 if { (eval echo configure:11799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11800 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11802 echo "configure: failed program was:" >&5
11803 cat conftest.$ac_ext >&5
11805 samba_cv_HAVE_STAT_ST_BLOCKS=no
11810 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11811 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11812 cat >> confdefs.h <<\EOF
11813 #define HAVE_STAT_ST_BLOCKS 1
11820 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11821 echo "configure:11822: checking for broken RedHat 7.2 system header files" >&5
11822 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11823 echo $ac_n "(cached) $ac_c" 1>&6
11826 cat > conftest.$ac_ext <<EOF
11827 #line 11828 "configure"
11828 #include "confdefs.h"
11830 #ifdef HAVE_SYS_VFS_H
11831 #include <sys/vfs.h>
11833 #ifdef HAVE_SYS_CAPABILITY_H
11834 #include <sys/capability.h>
11841 if { (eval echo configure:11842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11843 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11845 echo "configure: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11848 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11853 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11854 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11855 cat >> confdefs.h <<\EOF
11856 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11863 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11864 echo "configure:11865: checking for broken nisplus include files" >&5
11865 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11869 cat > conftest.$ac_ext <<EOF
11870 #line 11871 "configure"
11871 #include "confdefs.h"
11872 #include <sys/acl.h>
11873 #if defined(HAVE_RPCSVC_NIS_H)
11874 #include <rpcsvc/nis.h>
11880 if { (eval echo configure:11881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11882 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11887 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11892 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11893 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11894 cat >> confdefs.h <<\EOF
11895 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11901 #################################################
11902 # check for smbwrapper support
11903 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11904 echo "configure:11905: checking whether to use smbwrapper" >&5
11905 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11906 if test "${with_smbwrapper+set}" = set; then
11907 withval="$with_smbwrapper"
11910 echo "$ac_t""yes" 1>&6
11911 cat >> confdefs.h <<\EOF
11912 #define WITH_SMBWRAPPER 1
11915 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11917 if test x$ATTEMPT_WRAP32_BUILD = x; then
11920 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11923 # Conditions under which smbwrapper should not be built.
11925 if test x$PICFLAG = x; then
11926 echo No support for PIC code - disabling smbwrapper and smbsh
11929 elif test x$ac_cv_func_syscall = xno; then
11930 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11936 echo "$ac_t""no" 1>&6
11940 echo "$ac_t""no" 1>&6
11945 #################################################
11946 # check for AFS clear-text auth support
11947 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11948 echo "configure:11949: checking whether to use AFS clear-text auth" >&5
11949 # Check whether --with-afs or --without-afs was given.
11950 if test "${with_afs+set}" = set; then
11951 withval="$with_afs"
11954 echo "$ac_t""yes" 1>&6
11955 cat >> confdefs.h <<\EOF
11961 echo "$ac_t""no" 1>&6
11965 echo "$ac_t""no" 1>&6
11971 #################################################
11972 # check for the DFS clear-text auth system
11973 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11974 echo "configure:11975: checking whether to use DFS clear-text auth" >&5
11975 # Check whether --with-dfs or --without-dfs was given.
11976 if test "${with_dfs+set}" = set; then
11977 withval="$with_dfs"
11980 echo "$ac_t""yes" 1>&6
11981 cat >> confdefs.h <<\EOF
11987 echo "$ac_t""no" 1>&6
11991 echo "$ac_t""no" 1>&6
11997 #################################################
11998 # see if this box has the RedHat location for kerberos
11999 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12000 echo "configure:12001: checking for /usr/kerberos" >&5
12001 if test -d /usr/kerberos; then
12002 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12003 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12004 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12005 echo "$ac_t""yes" 1>&6
12007 echo "$ac_t""no" 1>&6
12010 #################################################
12011 # check for location of Kerberos 5 install
12012 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12013 echo "configure:12014: checking for kerberos 5 install path" >&5
12014 # Check whether --with-krb5 or --without-krb5 was given.
12015 if test "${with_krb5+set}" = set; then
12016 withval="$with_krb5"
12019 echo "$ac_t""no" 1>&6
12022 echo "$ac_t""yes" 1>&6
12023 LIBS="$LIBS -lkrb5"
12024 CFLAGS="$CFLAGS -I$withval/include"
12025 CPPFLAGS="$CPPFLAGS -I$withval/include"
12026 LDFLAGS="$LDFLAGS -L$withval/lib"
12030 echo "$ac_t""no" 1>&6
12035 # now check for krb5.h. Some systems have the libraries without the headers!
12036 # note that this check is done here to allow for different kerberos
12038 for ac_hdr in krb5.h
12040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12042 echo "configure:12043: checking for $ac_hdr" >&5
12043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12044 echo $ac_n "(cached) $ac_c" 1>&6
12046 cat > conftest.$ac_ext <<EOF
12047 #line 12048 "configure"
12048 #include "confdefs.h"
12051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12052 { (eval echo configure:12053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12054 if test -z "$ac_err"; then
12056 eval "ac_cv_header_$ac_safe=yes"
12059 echo "configure: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12062 eval "ac_cv_header_$ac_safe=no"
12066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12067 echo "$ac_t""yes" 1>&6
12068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12069 cat >> confdefs.h <<EOF
12070 #define $ac_tr_hdr 1
12074 echo "$ac_t""no" 1>&6
12079 # now check for gssapi headers. This is also done here to allow for
12080 # different kerberos include paths
12081 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12085 echo "configure:12086: checking for $ac_hdr" >&5
12086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12087 echo $ac_n "(cached) $ac_c" 1>&6
12089 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12095 { (eval echo configure:12096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12097 if test -z "$ac_err"; then
12099 eval "ac_cv_header_$ac_safe=yes"
12102 echo "configure: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12105 eval "ac_cv_header_$ac_safe=no"
12109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12110 echo "$ac_t""yes" 1>&6
12111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12112 cat >> confdefs.h <<EOF
12113 #define $ac_tr_hdr 1
12117 echo "$ac_t""no" 1>&6
12122 ##################################################################
12123 # we might need the k5crypto and com_err libraries on some systems
12124 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12125 echo "configure:12126: checking for _et_list in -lcom_err" >&5
12126 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12130 ac_save_LIBS="$LIBS"
12131 LIBS="-lcom_err $LIBS"
12132 cat > conftest.$ac_ext <<EOF
12133 #line 12134 "configure"
12134 #include "confdefs.h"
12135 /* Override any gcc2 internal prototype to avoid an error. */
12136 /* We use char because int might match the return type of a gcc2
12137 builtin and then its argument prototype would still apply. */
12144 if { (eval echo configure:12145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12146 eval "ac_cv_lib_$ac_lib_var=yes"
12148 echo "configure: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12151 eval "ac_cv_lib_$ac_lib_var=no"
12154 LIBS="$ac_save_LIBS"
12157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12158 echo "$ac_t""yes" 1>&6
12159 LIBS="$LIBS -lcom_err"
12161 echo "$ac_t""no" 1>&6
12164 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12165 echo "configure:12166: checking for krb5_encrypt_data in -lk5crypto" >&5
12166 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12168 echo $ac_n "(cached) $ac_c" 1>&6
12170 ac_save_LIBS="$LIBS"
12171 LIBS="-lk5crypto $LIBS"
12172 cat > conftest.$ac_ext <<EOF
12173 #line 12174 "configure"
12174 #include "confdefs.h"
12175 /* Override any gcc2 internal prototype to avoid an error. */
12176 /* We use char because int might match the return type of a gcc2
12177 builtin and then its argument prototype would still apply. */
12178 char krb5_encrypt_data();
12181 krb5_encrypt_data()
12184 if { (eval echo configure:12185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12186 eval "ac_cv_lib_$ac_lib_var=yes"
12188 echo "configure: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12191 eval "ac_cv_lib_$ac_lib_var=no"
12194 LIBS="$ac_save_LIBS"
12197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12198 echo "$ac_t""yes" 1>&6
12199 LIBS="$LIBS -lk5crypto"
12201 echo "$ac_t""no" 1>&6
12205 ########################################################
12206 # now see if we can find the krb5 libs in standard paths
12207 # or as specified above
12208 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12209 echo "configure:12210: checking for krb5_mk_req_extended in -lkrb5" >&5
12210 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12212 echo $ac_n "(cached) $ac_c" 1>&6
12214 ac_save_LIBS="$LIBS"
12215 LIBS="-lkrb5 $LIBS"
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12219 /* Override any gcc2 internal prototype to avoid an error. */
12220 /* We use char because int might match the return type of a gcc2
12221 builtin and then its argument prototype would still apply. */
12222 char krb5_mk_req_extended();
12225 krb5_mk_req_extended()
12228 if { (eval echo configure:12229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12230 eval "ac_cv_lib_$ac_lib_var=yes"
12232 echo "configure: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12235 eval "ac_cv_lib_$ac_lib_var=no"
12238 LIBS="$ac_save_LIBS"
12241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12242 echo "$ac_t""yes" 1>&6
12243 LIBS="$LIBS -lkrb5";
12244 cat >> confdefs.h <<\EOF
12245 #define HAVE_KRB5 1
12249 echo "$ac_t""no" 1>&6
12253 ########################################################
12254 # now see if we can find the gssapi libs in standard paths
12255 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12256 echo "configure:12257: checking for gss_display_status in -lgssapi_krb5" >&5
12257 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12259 echo $ac_n "(cached) $ac_c" 1>&6
12261 ac_save_LIBS="$LIBS"
12262 LIBS="-lgssapi_krb5 $LIBS"
12263 cat > conftest.$ac_ext <<EOF
12264 #line 12265 "configure"
12265 #include "confdefs.h"
12266 /* Override any gcc2 internal prototype to avoid an error. */
12267 /* We use char because int might match the return type of a gcc2
12268 builtin and then its argument prototype would still apply. */
12269 char gss_display_status();
12272 gss_display_status()
12275 if { (eval echo configure:12276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12277 eval "ac_cv_lib_$ac_lib_var=yes"
12279 echo "configure: failed program was:" >&5
12280 cat conftest.$ac_ext >&5
12282 eval "ac_cv_lib_$ac_lib_var=no"
12285 LIBS="$ac_save_LIBS"
12288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12289 echo "$ac_t""yes" 1>&6
12290 LIBS="$LIBS -lgssapi_krb5";
12291 cat >> confdefs.h <<\EOF
12292 #define HAVE_GSSAPI 1
12296 echo "$ac_t""no" 1>&6
12300 ##################################################################
12301 # we might need the lber lib on some systems. To avoid link errors
12302 # this test must be before the libldap test
12303 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12304 echo "configure:12305: checking for ber_scanf in -llber" >&5
12305 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12307 echo $ac_n "(cached) $ac_c" 1>&6
12309 ac_save_LIBS="$LIBS"
12310 LIBS="-llber $LIBS"
12311 cat > conftest.$ac_ext <<EOF
12312 #line 12313 "configure"
12313 #include "confdefs.h"
12314 /* Override any gcc2 internal prototype to avoid an error. */
12315 /* We use char because int might match the return type of a gcc2
12316 builtin and then its argument prototype would still apply. */
12323 if { (eval echo configure:12324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12325 eval "ac_cv_lib_$ac_lib_var=yes"
12327 echo "configure: failed program was:" >&5
12328 cat conftest.$ac_ext >&5
12330 eval "ac_cv_lib_$ac_lib_var=no"
12333 LIBS="$ac_save_LIBS"
12336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12337 echo "$ac_t""yes" 1>&6
12338 LIBS="$LIBS -llber"
12340 echo "$ac_t""no" 1>&6
12344 ########################################################
12345 # now see if we can find the ldap libs in standard paths
12346 if test x$have_ldap != xyes; then
12347 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12348 echo "configure:12349: checking for ldap_domain2hostlist in -lldap" >&5
12349 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12351 echo $ac_n "(cached) $ac_c" 1>&6
12353 ac_save_LIBS="$LIBS"
12354 LIBS="-lldap $LIBS"
12355 cat > conftest.$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12361 char ldap_domain2hostlist();
12364 ldap_domain2hostlist()
12367 if { (eval echo configure:12368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12369 eval "ac_cv_lib_$ac_lib_var=yes"
12371 echo "configure: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12374 eval "ac_cv_lib_$ac_lib_var=no"
12377 LIBS="$ac_save_LIBS"
12380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12381 echo "$ac_t""yes" 1>&6
12382 LIBS="$LIBS -lldap";
12383 cat >> confdefs.h <<\EOF
12384 #define HAVE_LDAP 1
12388 echo "$ac_t""no" 1>&6
12393 #################################################
12394 # check for automount support
12395 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12396 echo "configure:12397: checking whether to use AUTOMOUNT" >&5
12397 # Check whether --with-automount or --without-automount was given.
12398 if test "${with_automount+set}" = set; then
12399 withval="$with_automount"
12402 echo "$ac_t""yes" 1>&6
12403 cat >> confdefs.h <<\EOF
12404 #define WITH_AUTOMOUNT 1
12409 echo "$ac_t""no" 1>&6
12413 echo "$ac_t""no" 1>&6
12418 #################################################
12419 # check for smbmount support
12420 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12421 echo "configure:12422: checking whether to use SMBMOUNT" >&5
12422 # Check whether --with-smbmount or --without-smbmount was given.
12423 if test "${with_smbmount+set}" = set; then
12424 withval="$with_smbmount"
12429 echo "$ac_t""yes" 1>&6
12430 cat >> confdefs.h <<\EOF
12431 #define WITH_SMBMOUNT 1
12434 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12437 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12442 echo "$ac_t""no" 1>&6
12447 echo "$ac_t""no" 1>&6
12454 #################################################
12455 # check for a PAM clear-text auth, accounts, password and session support
12456 with_pam_for_crypt=no
12457 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12458 echo "configure:12459: checking whether to use PAM" >&5
12459 # Check whether --with-pam or --without-pam was given.
12460 if test "${with_pam+set}" = set; then
12461 withval="$with_pam"
12464 echo "$ac_t""yes" 1>&6
12465 cat >> confdefs.h <<\EOF
12470 with_pam_for_crypt=yes
12473 echo "$ac_t""no" 1>&6
12477 echo "$ac_t""no" 1>&6
12482 # we can't build a pam module if we don't have pam.
12483 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12484 echo "configure:12485: checking for pam_get_data in -lpam" >&5
12485 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12489 ac_save_LIBS="$LIBS"
12491 cat > conftest.$ac_ext <<EOF
12492 #line 12493 "configure"
12493 #include "confdefs.h"
12494 /* Override any gcc2 internal prototype to avoid an error. */
12495 /* We use char because int might match the return type of a gcc2
12496 builtin and then its argument prototype would still apply. */
12497 char pam_get_data();
12503 if { (eval echo configure:12504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12505 eval "ac_cv_lib_$ac_lib_var=yes"
12507 echo "configure: failed program was:" >&5
12508 cat conftest.$ac_ext >&5
12510 eval "ac_cv_lib_$ac_lib_var=no"
12513 LIBS="$ac_save_LIBS"
12516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12517 echo "$ac_t""yes" 1>&6
12518 cat >> confdefs.h <<\EOF
12519 #define HAVE_LIBPAM 1
12523 echo "$ac_t""no" 1>&6
12527 #################################################
12528 # check for pam_smbpass support
12529 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12530 echo "configure:12531: checking whether to use pam_smbpass" >&5
12531 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12532 if test "${with_pam_smbpass+set}" = set; then
12533 withval="$with_pam_smbpass"
12536 echo "$ac_t""yes" 1>&6
12538 # Conditions under which pam_smbpass should not be built.
12540 if test x$PICFLAG = x; then
12541 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12543 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12544 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12547 PAM_MOD="bin/pam_smbpass.so"
12551 echo "$ac_t""no" 1>&6
12555 echo "$ac_t""no" 1>&6
12561 ###############################################
12562 # test for where we get crypt() from, but only
12564 if test $with_pam_for_crypt = no; then
12565 for ac_func in crypt
12567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12568 echo "configure:12569: checking for $ac_func" >&5
12569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12570 echo $ac_n "(cached) $ac_c" 1>&6
12572 cat > conftest.$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12575 /* System header to define __stub macros and hopefully few prototypes,
12576 which can conflict with char $ac_func(); below. */
12577 #include <assert.h>
12578 /* Override any gcc2 internal prototype to avoid an error. */
12579 /* We use char because int might match the return type of a gcc2
12580 builtin and then its argument prototype would still apply. */
12585 /* The GNU C library defines this for functions which it implements
12586 to always fail with ENOSYS. Some functions are actually named
12587 something starting with __ and the normal name is an alias. */
12588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12596 if { (eval echo configure:12597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12598 eval "ac_cv_func_$ac_func=yes"
12600 echo "configure: failed program was:" >&5
12601 cat conftest.$ac_ext >&5
12603 eval "ac_cv_func_$ac_func=no"
12608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12609 echo "$ac_t""yes" 1>&6
12610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12611 cat >> confdefs.h <<EOF
12612 #define $ac_tr_func 1
12616 echo "$ac_t""no" 1>&6
12620 if test x"$ac_cv_func_crypt" = x"no"; then
12621 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12622 echo "configure:12623: checking for crypt in -lcrypt" >&5
12623 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12625 echo $ac_n "(cached) $ac_c" 1>&6
12627 ac_save_LIBS="$LIBS"
12628 LIBS="-lcrypt $LIBS"
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 /* Override any gcc2 internal prototype to avoid an error. */
12633 /* We use char because int might match the return type of a gcc2
12634 builtin and then its argument prototype would still apply. */
12641 if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12643 eval "ac_cv_lib_$ac_lib_var=yes"
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12648 eval "ac_cv_lib_$ac_lib_var=no"
12651 LIBS="$ac_save_LIBS"
12654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12655 echo "$ac_t""yes" 1>&6
12656 LIBS="$LIBS -lcrypt";
12657 cat >> confdefs.h <<\EOF
12658 #define HAVE_CRYPT 1
12662 echo "$ac_t""no" 1>&6
12669 ## moved after the check for -lcrypt in order to
12670 ## ensure that the necessary libraries are included
12671 ## check checking for truncated salt. Wrapped by the
12672 ## $with_pam_for_crypt variable as above --jerry
12674 if test $with_pam_for_crypt = no; then
12675 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12676 echo "configure:12677: checking for a crypt that needs truncated salt" >&5
12677 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12678 echo $ac_n "(cached) $ac_c" 1>&6
12681 if test "$cross_compiling" = yes; then
12682 samba_cv_HAVE_TRUNCATED_SALT=cross
12684 cat > conftest.$ac_ext <<EOF
12685 #line 12686 "configure"
12686 #include "confdefs.h"
12687 #include "${srcdir-.}/tests/crypttest.c"
12689 if { (eval echo configure:12690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12691 samba_cv_HAVE_TRUNCATED_SALT=no
12693 echo "configure: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12696 samba_cv_HAVE_TRUNCATED_SALT=yes
12703 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12704 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12705 cat >> confdefs.h <<\EOF
12706 #define HAVE_TRUNCATED_SALT 1
12714 ########################################################################################
12716 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12718 ########################################################################################
12720 #################################################
12721 # check for a TDB password database
12722 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12723 echo "configure:12724: checking whether to use TDB SAM database" >&5
12724 # Check whether --with-tdbsam or --without-tdbsam was given.
12725 if test "${with_tdbsam+set}" = set; then
12726 withval="$with_tdbsam"
12729 echo "$ac_t""yes" 1>&6
12730 cat >> confdefs.h <<\EOF
12731 #define WITH_TDB_SAM 1
12736 echo "$ac_t""no" 1>&6
12740 echo "$ac_t""no" 1>&6
12745 #################################################
12746 # check for a LDAP password database
12747 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12748 echo "configure:12749: checking whether to use LDAP SAM database" >&5
12749 # Check whether --with-ldapsam or --without-ldapsam was given.
12750 if test "${with_ldapsam+set}" = set; then
12751 withval="$with_ldapsam"
12754 echo "$ac_t""yes" 1>&6
12755 cat >> confdefs.h <<\EOF
12756 #define WITH_LDAP_SAM 1
12759 LIBS="-lldap -llber $LIBS"
12762 echo "$ac_t""no" 1>&6
12766 echo "$ac_t""no" 1>&6
12771 #################################################
12772 # check for a NISPLUS password database
12773 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12774 echo "configure:12775: checking whether to use NISPLUS SAM database" >&5
12775 # Check whether --with-nisplussam or --without-nisplussam was given.
12776 if test "${with_nisplussam+set}" = set; then
12777 withval="$with_nisplussam"
12780 echo "$ac_t""yes" 1>&6
12781 cat >> confdefs.h <<\EOF
12782 #define WITH_NISPLUS_SAM 1
12787 echo "$ac_t""no" 1>&6
12791 echo "$ac_t""no" 1>&6
12796 ########################################################################################
12798 ## END OF TESTS FOR SAM BACKENDS.
12800 ########################################################################################
12802 #################################################
12803 # check for a NISPLUS_HOME support
12804 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12805 echo "configure:12806: checking whether to use NISPLUS_HOME" >&5
12806 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12807 if test "${with_nisplus_home+set}" = set; then
12808 withval="$with_nisplus_home"
12811 echo "$ac_t""yes" 1>&6
12812 cat >> confdefs.h <<\EOF
12813 #define WITH_NISPLUS_HOME 1
12818 echo "$ac_t""no" 1>&6
12822 echo "$ac_t""no" 1>&6
12827 #################################################
12828 # check for the secure socket layer
12829 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12830 echo "configure:12831: checking whether to use SSL" >&5
12831 # Check whether --with-ssl or --without-ssl was given.
12832 if test "${with_ssl+set}" = set; then
12833 withval="$with_ssl"
12836 echo "$ac_t""yes" 1>&6
12837 cat >> confdefs.h <<\EOF
12841 withval="/usr/local/ssl" # default
12843 if test "${with_sslinc+set}" = set; then
12845 withval="$with_sslinc"
12848 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12849 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12852 CFLAGS="-I${withval} $CFLAGS"
12858 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12862 if test "${with_ssllib+set}" = set; then
12864 withval="$with_ssllib"
12867 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12868 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12871 LDFLAGS="-L${withval}/lib $LDFLAGS"
12877 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12881 LIBS="-lssl -lcrypto $LIBS"
12883 # if test ! -d ${withval}; then
12884 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12888 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12892 echo "$ac_t""no" 1>&6
12896 echo "$ac_t""no" 1>&6
12901 #################################################
12902 # check for syslog logging
12903 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12904 echo "configure:12905: checking whether to use syslog logging" >&5
12905 # Check whether --with-syslog or --without-syslog was given.
12906 if test "${with_syslog+set}" = set; then
12907 withval="$with_syslog"
12910 echo "$ac_t""yes" 1>&6
12911 cat >> confdefs.h <<\EOF
12912 #define WITH_SYSLOG 1
12917 echo "$ac_t""no" 1>&6
12921 echo "$ac_t""no" 1>&6
12926 #################################################
12927 # check for a shared memory profiling support
12928 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12929 echo "configure:12930: checking whether to use profiling" >&5
12930 # Check whether --with-profiling-data or --without-profiling-data was given.
12931 if test "${with_profiling_data+set}" = set; then
12932 withval="$with_profiling_data"
12935 echo "$ac_t""yes" 1>&6
12936 cat >> confdefs.h <<\EOF
12937 #define WITH_PROFILE 1
12942 echo "$ac_t""no" 1>&6
12946 echo "$ac_t""no" 1>&6
12952 #################################################
12953 # check for experimental disk-quotas support
12954 QUOTAOBJS=smbd/noquotas.o
12956 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12957 echo "configure:12958: checking whether to support disk-quotas" >&5
12958 # Check whether --with-quotas or --without-quotas was given.
12959 if test "${with_quotas+set}" = set; then
12960 withval="$with_quotas"
12963 echo "$ac_t""yes" 1>&6
12966 # Check for kernel 2.4.x quota braindamage...
12967 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12968 echo "configure:12969: checking for linux 2.4.x quota braindamage.." >&5
12969 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12970 echo $ac_n "(cached) $ac_c" 1>&6
12973 cat > conftest.$ac_ext <<EOF
12974 #line 12975 "configure"
12975 #include "confdefs.h"
12977 #include <sys/types.h>
12978 #include <asm/types.h>
12979 #include <linux/quota.h>
12980 #include <mntent.h>
12981 #include <linux/unistd.h>
12983 struct mem_dqblk D;
12986 if { (eval echo configure:12987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12988 samba_cv_linux_2_4_quota_braindamage=yes
12990 echo "configure: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12993 samba_cv_linux_2_4_quota_braindamage=no
12998 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12999 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13000 cat >> confdefs.h <<\EOF
13001 #define LINUX_QUOTAS_2 1
13005 cat >> confdefs.h <<\EOF
13006 #define LINUX_QUOTAS_1 1
13014 QUOTAOBJS=smbd/quotas.o
13015 cat >> confdefs.h <<\EOF
13016 #define WITH_QUOTAS 1
13021 echo "$ac_t""no" 1>&6
13025 echo "$ac_t""no" 1>&6
13031 #################################################
13032 # check for experimental utmp accounting
13034 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13035 echo "configure:13036: checking whether to support utmp accounting" >&5
13036 # Check whether --with-utmp or --without-utmp was given.
13037 if test "${with_utmp+set}" = set; then
13038 withval="$with_utmp"
13041 echo "$ac_t""yes" 1>&6
13042 cat >> confdefs.h <<\EOF
13043 #define WITH_UTMP 1
13048 echo "$ac_t""no" 1>&6
13052 echo "$ac_t""no" 1>&6
13057 #################################################
13058 # set private directory location
13059 # Check whether --with-privatedir or --without-privatedir was given.
13060 if test "${with_privatedir+set}" = set; then
13061 withval="$with_privatedir"
13065 # Just in case anybody calls it without argument
13067 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
13068 privatedir='${prefix}/private'
13071 privatedir="$withval"
13076 privatedir='${prefix}/private'
13082 #################################################
13083 # set lock directory location
13084 # Check whether --with-lockdir or --without-lockdir was given.
13085 if test "${with_lockdir+set}" = set; then
13086 withval="$with_lockdir"
13090 # Just in case anybody calls it without argument
13092 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
13093 lockdir='$(VARDIR)/locks'
13101 lockdir='$(VARDIR)/locks'
13107 #################################################
13108 # set SWAT directory location
13109 # Check whether --with-swatdir or --without-swatdir was given.
13110 if test "${with_swatdir+set}" = set; then
13111 withval="$with_swatdir"
13115 # Just in case anybody does it
13117 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
13118 swatdir='${prefix}/swat'
13126 swatdir='${prefix}/swat'
13132 #################################################
13133 # choose native language(s) of man pages
13134 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13135 echo "configure:13136: checking chosen man pages' language(s)" >&5
13136 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13137 if test "${with_manpages_langs+set}" = set; then
13138 withval="$with_manpages_langs"
13141 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13145 manlangs="$withval"
13149 echo "$ac_t""$manlangs" 1>&6
13150 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13154 echo "$ac_t""$manlangs" 1>&6
13160 #################################################
13161 # these tests are taken from the GNU fileutils package
13162 echo "checking how to get filesystem space usage" 1>&6
13163 echo "configure:13164: checking how to get filesystem space usage" >&5
13166 # Test for statvfs64.
13167 if test $space = no; then
13169 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13170 echo "configure:13171: checking statvfs64 function (SVR4)" >&5
13171 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13174 if test "$cross_compiling" = yes; then
13175 fu_cv_sys_stat_statvfs64=cross
13177 cat > conftest.$ac_ext <<EOF
13178 #line 13179 "configure"
13179 #include "confdefs.h"
13181 #if defined(HAVE_UNISTD_H)
13182 #include <unistd.h>
13184 #include <sys/types.h>
13185 #include <sys/statvfs.h>
13188 struct statvfs64 fsd;
13189 exit (statvfs64 (".", &fsd));
13192 if { (eval echo configure:13193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13194 fu_cv_sys_stat_statvfs64=yes
13196 echo "configure: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13199 fu_cv_sys_stat_statvfs64=no
13206 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13207 if test $fu_cv_sys_stat_statvfs64 = yes; then
13209 cat >> confdefs.h <<\EOF
13210 #define STAT_STATVFS64 1
13216 # Perform only the link test since it seems there are no variants of the
13217 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13218 # because that got a false positive on SCO OSR5. Adding the declaration
13219 # of a `struct statvfs' causes this test to fail (as it should) on such
13220 # systems. That system is reported to work fine with STAT_STATFS4 which
13221 # is what it gets when this test fails.
13222 if test $space = no; then
13224 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13225 echo "configure:13226: checking statvfs function (SVR4)" >&5
13226 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13227 echo $ac_n "(cached) $ac_c" 1>&6
13229 cat > conftest.$ac_ext <<EOF
13230 #line 13231 "configure"
13231 #include "confdefs.h"
13232 #include <sys/types.h>
13233 #include <sys/statvfs.h>
13235 struct statvfs fsd; statvfs (0, &fsd);
13238 if { (eval echo configure:13239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13240 fu_cv_sys_stat_statvfs=yes
13242 echo "configure: failed program was:" >&5
13243 cat conftest.$ac_ext >&5
13245 fu_cv_sys_stat_statvfs=no
13250 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13251 if test $fu_cv_sys_stat_statvfs = yes; then
13253 cat >> confdefs.h <<\EOF
13254 #define STAT_STATVFS 1
13260 if test $space = no; then
13261 # DEC Alpha running OSF/1
13262 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13263 echo "configure:13264: checking for 3-argument statfs function (DEC OSF/1)" >&5
13264 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13265 echo $ac_n "(cached) $ac_c" 1>&6
13267 if test "$cross_compiling" = yes; then
13268 fu_cv_sys_stat_statfs3_osf1=no
13270 cat > conftest.$ac_ext <<EOF
13271 #line 13272 "configure"
13272 #include "confdefs.h"
13274 #include <sys/param.h>
13275 #include <sys/types.h>
13276 #include <sys/mount.h>
13281 exit (statfs (".", &fsd, sizeof (struct statfs)));
13284 if { (eval echo configure:13285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13286 fu_cv_sys_stat_statfs3_osf1=yes
13288 echo "configure: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13291 fu_cv_sys_stat_statfs3_osf1=no
13298 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13299 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13301 cat >> confdefs.h <<\EOF
13302 #define STAT_STATFS3_OSF1 1
13308 if test $space = no; then
13310 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13311 echo "configure:13312: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13312 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13313 echo $ac_n "(cached) $ac_c" 1>&6
13315 if test "$cross_compiling" = yes; then
13316 fu_cv_sys_stat_statfs2_bsize=no
13318 cat > conftest.$ac_ext <<EOF
13319 #line 13320 "configure"
13320 #include "confdefs.h"
13322 #ifdef HAVE_SYS_PARAM_H
13323 #include <sys/param.h>
13325 #ifdef HAVE_SYS_MOUNT_H
13326 #include <sys/mount.h>
13328 #ifdef HAVE_SYS_VFS_H
13329 #include <sys/vfs.h>
13335 exit (statfs (".", &fsd));
13338 if { (eval echo configure:13339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13340 fu_cv_sys_stat_statfs2_bsize=yes
13342 echo "configure: failed program was:" >&5
13343 cat conftest.$ac_ext >&5
13345 fu_cv_sys_stat_statfs2_bsize=no
13352 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13353 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13355 cat >> confdefs.h <<\EOF
13356 #define STAT_STATFS2_BSIZE 1
13362 if test $space = no; then
13364 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13365 echo "configure:13366: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13366 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13369 if test "$cross_compiling" = yes; then
13370 fu_cv_sys_stat_statfs4=no
13372 cat > conftest.$ac_ext <<EOF
13373 #line 13374 "configure"
13374 #include "confdefs.h"
13375 #include <sys/types.h>
13376 #include <sys/statfs.h>
13380 exit (statfs (".", &fsd, sizeof fsd, 0));
13383 if { (eval echo configure:13384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13385 fu_cv_sys_stat_statfs4=yes
13387 echo "configure: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13390 fu_cv_sys_stat_statfs4=no
13397 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13398 if test $fu_cv_sys_stat_statfs4 = yes; then
13400 cat >> confdefs.h <<\EOF
13401 #define STAT_STATFS4 1
13407 if test $space = no; then
13408 # 4.4BSD and NetBSD
13409 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13410 echo "configure:13411: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13411 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13412 echo $ac_n "(cached) $ac_c" 1>&6
13414 if test "$cross_compiling" = yes; then
13415 fu_cv_sys_stat_statfs2_fsize=no
13417 cat > conftest.$ac_ext <<EOF
13418 #line 13419 "configure"
13419 #include "confdefs.h"
13420 #include <sys/types.h>
13421 #ifdef HAVE_SYS_PARAM_H
13422 #include <sys/param.h>
13424 #ifdef HAVE_SYS_MOUNT_H
13425 #include <sys/mount.h>
13431 exit (statfs (".", &fsd));
13434 if { (eval echo configure:13435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13436 fu_cv_sys_stat_statfs2_fsize=yes
13438 echo "configure: failed program was:" >&5
13439 cat conftest.$ac_ext >&5
13441 fu_cv_sys_stat_statfs2_fsize=no
13448 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13449 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13451 cat >> confdefs.h <<\EOF
13452 #define STAT_STATFS2_FSIZE 1
13458 if test $space = no; then
13460 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13461 echo "configure:13462: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13462 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13463 echo $ac_n "(cached) $ac_c" 1>&6
13465 if test "$cross_compiling" = yes; then
13466 fu_cv_sys_stat_fs_data=no
13468 cat > conftest.$ac_ext <<EOF
13469 #line 13470 "configure"
13470 #include "confdefs.h"
13471 #include <sys/types.h>
13472 #ifdef HAVE_SYS_PARAM_H
13473 #include <sys/param.h>
13475 #ifdef HAVE_SYS_MOUNT_H
13476 #include <sys/mount.h>
13478 #ifdef HAVE_SYS_FS_TYPES_H
13479 #include <sys/fs_types.h>
13483 struct fs_data fsd;
13484 /* Ultrix's statfs returns 1 for success,
13485 0 for not mounted, -1 for failure. */
13486 exit (statfs (".", &fsd) != 1);
13489 if { (eval echo configure:13490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13491 fu_cv_sys_stat_fs_data=yes
13493 echo "configure: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13496 fu_cv_sys_stat_fs_data=no
13503 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13504 if test $fu_cv_sys_stat_fs_data = yes; then
13506 cat >> confdefs.h <<\EOF
13507 #define STAT_STATFS2_FS_DATA 1
13514 # As a gating factor for large file support, in order to
13515 # use <4GB files we must have the following minimal support
13517 # long long, and a 64 bit off_t or off64_t.
13518 # If we don't have all of these then disable large
13521 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13522 echo "configure:13523: checking if large file support can be enabled" >&5
13523 cat > conftest.$ac_ext <<EOF
13524 #line 13525 "configure"
13525 #include "confdefs.h"
13527 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13528 #include <sys/types.h>
13537 if { (eval echo configure:13538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13539 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13541 echo "configure: failed program was:" >&5
13542 cat conftest.$ac_ext >&5
13544 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13547 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13548 cat >> confdefs.h <<\EOF
13549 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13553 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13555 # Check whether --with-spinlocks or --without-spinlocks was given.
13556 if test "${with_spinlocks+set}" = set; then
13557 withval="$with_spinlocks"
13561 if test "x$with_spinlocks" = "xyes"; then
13562 cat >> confdefs.h <<\EOF
13563 #define USE_SPINLOCKS 1
13567 case "$host_cpu" in
13569 cat >> confdefs.h <<\EOF
13570 #define SPARC_SPINLOCKS 1
13575 i386|i486|i586|i686)
13576 cat >> confdefs.h <<\EOF
13577 #define INTEL_SPINLOCKS 1
13583 cat >> confdefs.h <<\EOF
13584 #define MIPS_SPINLOCKS 1
13590 cat >> confdefs.h <<\EOF
13591 #define POWERPC_SPINLOCKS 1
13598 #################################################
13599 # check for ACL support
13601 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13602 echo "configure:13603: checking whether to support ACLs" >&5
13603 # Check whether --with-acl-support or --without-acl-support was given.
13604 if test "${with_acl_support+set}" = set; then
13605 withval="$with_acl_support"
13611 echo "$ac_t""Using UnixWare ACLs" 1>&6
13612 cat >> confdefs.h <<\EOF
13613 #define HAVE_UNIXWARE_ACLS 1
13618 echo "$ac_t""Using solaris ACLs" 1>&6
13619 cat >> confdefs.h <<\EOF
13620 #define HAVE_SOLARIS_ACLS 1
13625 echo "$ac_t""Using HPUX ACLs" 1>&6
13626 cat >> confdefs.h <<\EOF
13627 #define HAVE_HPUX_ACLS 1
13632 echo "$ac_t""Using IRIX ACLs" 1>&6
13633 cat >> confdefs.h <<\EOF
13634 #define HAVE_IRIX_ACLS 1
13639 echo "$ac_t""Using AIX ACLs" 1>&6
13640 cat >> confdefs.h <<\EOF
13641 #define HAVE_AIX_ACLS 1
13646 echo "$ac_t""Using Tru64 ACLs" 1>&6
13647 cat >> confdefs.h <<\EOF
13648 #define HAVE_TRU64_ACLS 1
13651 LIBS="$LIBS -lpacl"
13654 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13655 echo "configure:13656: checking for acl_get_file in -lacl" >&5
13656 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13658 echo $ac_n "(cached) $ac_c" 1>&6
13660 ac_save_LIBS="$LIBS"
13662 cat > conftest.$ac_ext <<EOF
13663 #line 13664 "configure"
13664 #include "confdefs.h"
13665 /* Override any gcc2 internal prototype to avoid an error. */
13666 /* We use char because int might match the return type of a gcc2
13667 builtin and then its argument prototype would still apply. */
13668 char acl_get_file();
13674 if { (eval echo configure:13675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13676 eval "ac_cv_lib_$ac_lib_var=yes"
13678 echo "configure: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13681 eval "ac_cv_lib_$ac_lib_var=no"
13684 LIBS="$ac_save_LIBS"
13687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13688 echo "$ac_t""yes" 1>&6
13689 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13690 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13691 cat >> confdefs.h <<EOF
13692 #define $ac_tr_lib 1
13698 echo "$ac_t""no" 1>&6
13701 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13702 echo "configure:13703: checking for ACL support" >&5
13703 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13704 echo $ac_n "(cached) $ac_c" 1>&6
13707 cat > conftest.$ac_ext <<EOF
13708 #line 13709 "configure"
13709 #include "confdefs.h"
13710 #include <sys/types.h>
13711 #include <sys/acl.h>
13713 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13718 samba_cv_HAVE_POSIX_ACLS=yes
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13723 samba_cv_HAVE_POSIX_ACLS=no
13728 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13729 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13730 echo "$ac_t""Using posix ACLs" 1>&6
13731 cat >> confdefs.h <<\EOF
13732 #define HAVE_POSIX_ACLS 1
13735 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13736 echo "configure:13737: checking for acl_get_perm_np" >&5
13737 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13741 cat > conftest.$ac_ext <<EOF
13742 #line 13743 "configure"
13743 #include "confdefs.h"
13744 #include <sys/types.h>
13745 #include <sys/acl.h>
13747 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13750 if { (eval echo configure:13751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13752 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13754 echo "configure: failed program was:" >&5
13755 cat conftest.$ac_ext >&5
13757 samba_cv_HAVE_ACL_GET_PERM_NP=no
13762 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13763 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13764 cat >> confdefs.h <<\EOF
13765 #define HAVE_ACL_GET_PERM_NP 1
13774 echo "$ac_t""no" 1>&6
13775 cat >> confdefs.h <<\EOF
13776 #define HAVE_NO_ACLS 1
13782 cat >> confdefs.h <<\EOF
13783 #define HAVE_NO_ACLS 1
13786 echo "$ac_t""no" 1>&6
13791 #################################################
13792 # Check whether winbind is supported on this platform. If so we need to
13793 # build and install client programs (WINBIND_TARGETS), sbin programs
13794 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13796 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13797 echo "configure:13798: checking whether to build winbind" >&5
13799 # Initially, the value of $host_os decides whether winbind is supported
13807 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13808 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13812 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13816 winbind_no_reason=", unsupported on $host_os"
13820 # Check the setting of --with-winbindd
13822 # Check whether --with-winbind or --without-winbind was given.
13823 if test "${with_winbind+set}" = set; then
13824 withval="$with_winbind"
13838 # We need unix domain sockets for winbind
13840 if test x"$HAVE_WINBIND" = x"yes"; then
13841 if test x"$samba_cv_unixsocket" = x"no"; then
13842 winbind_no_reason=", no unix domain socket support on $host_os"
13847 # Display test results
13850 WINBIND_STARGETS=""
13851 WINBIND_LTARGETS=""
13852 WINBIND_PAM_PROGS=""
13854 if test x"$HAVE_WINBIND" = x"yes"; then
13855 echo "$ac_t""yes" 1>&6
13857 WINBIND_TARGETS="bin/wbinfo"
13858 WINBIND_STARGETS="bin/winbindd"
13859 if test x"$BLDSHARED" = x"true"; then
13860 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13861 if test x"$with_pam" = x"yes"; then
13862 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13866 echo "$ac_t""no$winbind_no_reason" 1>&6
13869 # Substitution time!
13878 # Solaris has some extra fields in struct passwd that need to be
13879 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13880 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13883 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13884 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13885 # [#include <pwd.h>])
13887 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13888 echo "configure:13889: checking whether struct passwd has pw_comment" >&5
13889 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13893 cat > conftest.$ac_ext <<EOF
13894 #line 13895 "configure"
13895 #include "confdefs.h"
13898 struct passwd p; p.pw_comment;
13901 if { (eval echo configure:13902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13903 samba_cv_passwd_pw_comment=yes
13905 echo "configure: failed program was:" >&5
13906 cat conftest.$ac_ext >&5
13908 samba_cv_passwd_pw_comment=no
13913 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13914 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13915 cat >> confdefs.h <<\EOF
13916 #define HAVE_PASSWD_PW_COMMENT 1
13921 #AC_CHECK_MEMBER(struct passwd.pw_age,
13922 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13923 # [#include <pwd.h>])
13925 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13926 echo "configure:13927: checking whether struct passwd has pw_age" >&5
13927 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13928 echo $ac_n "(cached) $ac_c" 1>&6
13931 cat > conftest.$ac_ext <<EOF
13932 #line 13933 "configure"
13933 #include "confdefs.h"
13936 struct passwd p; p.pw_age;
13939 if { (eval echo configure:13940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13941 samba_cv_passwd_pw_age=yes
13943 echo "configure: failed program was:" >&5
13944 cat conftest.$ac_ext >&5
13946 samba_cv_passwd_pw_age=no
13951 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13952 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13953 cat >> confdefs.h <<\EOF
13954 #define HAVE_PASSWD_PW_AGE 1
13959 #################################################
13960 # Check to see if we should use the included popt
13962 # Check whether --with-included-popt or --without-included-popt was given.
13963 if test "${with_included_popt+set}" = set; then
13964 withval="$with_included_popt"
13976 if test x"$INCLUDED_POPT" != x"yes"; then
13977 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13978 echo "configure:13979: checking for poptGetContext in -lpopt" >&5
13979 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13981 echo $ac_n "(cached) $ac_c" 1>&6
13983 ac_save_LIBS="$LIBS"
13984 LIBS="-lpopt $LIBS"
13985 cat > conftest.$ac_ext <<EOF
13986 #line 13987 "configure"
13987 #include "confdefs.h"
13988 /* Override any gcc2 internal prototype to avoid an error. */
13989 /* We use char because int might match the return type of a gcc2
13990 builtin and then its argument prototype would still apply. */
13991 char poptGetContext();
13997 if { (eval echo configure:13998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13999 eval "ac_cv_lib_$ac_lib_var=yes"
14001 echo "configure: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14004 eval "ac_cv_lib_$ac_lib_var=no"
14007 LIBS="$ac_save_LIBS"
14010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14011 echo "$ac_t""yes" 1>&6
14014 echo "$ac_t""no" 1>&6
14020 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14021 echo "configure:14022: checking whether to use included popt" >&5
14022 if test x"$INCLUDED_POPT" = x"yes"; then
14023 echo "$ac_t""$srcdir/popt" 1>&6
14024 BUILD_POPT='$(POPT_OBJS)'
14025 FLAGS1="-I$srcdir/popt"
14027 echo "$ac_t""no" 1>&6
14028 LIBS="$LIBS -lpopt"
14033 #################################################
14034 # do extra things if we are running insure
14036 if test "${ac_cv_prog_CC}" = "insure"; then
14037 CPPFLAGS="$CPPFLAGS -D__INSURE__"
14040 #################################################
14041 # final configure stuff
14043 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14044 echo "configure:14045: checking configure summary" >&5
14045 if test "$cross_compiling" = yes; then
14046 echo "configure: warning: cannot run when cross-compiling" 1>&2
14048 cat > conftest.$ac_ext <<EOF
14049 #line 14050 "configure"
14050 #include "confdefs.h"
14051 #include "${srcdir-.}/tests/summary.c"
14053 if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14055 echo "$ac_t""yes" 1>&6
14057 echo "configure: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14060 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14070 cat > confcache <<\EOF
14071 # This file is a shell script that caches the results of configure
14072 # tests run on this system so they can be shared between configure
14073 # scripts and configure runs. It is not useful on other systems.
14074 # If it contains results you don't want to keep, you may remove or edit it.
14076 # By default, configure uses ./config.cache as the cache file,
14077 # creating it if it does not exist already. You can give configure
14078 # the --cache-file=FILE option to use a different cache file; that is
14079 # what configure does when it calls configure scripts in
14080 # subdirectories, so they share the cache.
14081 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14082 # config.status only pays attention to the cache file if you give it the
14083 # --recheck option to rerun configure.
14086 # The following way of writing the cache mishandles newlines in values,
14087 # but we know of no workaround that is simple, portable, and efficient.
14088 # So, don't put newlines in cache variables' values.
14089 # Ultrix sh set writes to stderr and can't be redirected directly,
14090 # and sets the high bit in the cache file unless we assign to the vars.
14092 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14094 # `set' does not quote correctly, so add quotes (double-quote substitution
14095 # turns \\\\ into \\, and sed turns \\ into \).
14097 -e "s/'/'\\\\''/g" \
14098 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14101 # `set' quotes correctly as required by POSIX, so do not add quotes.
14102 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14105 if cmp -s $cache_file confcache; then
14108 if test -w $cache_file; then
14109 echo "updating cache $cache_file"
14110 cat confcache > $cache_file
14112 echo "not updating unwritable cache $cache_file"
14117 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14120 # Let make expand exec_prefix.
14121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14123 # Any assignment to VPATH causes Sun make to only execute
14124 # the first set of double-colon rules, so remove it if not needed.
14125 # If there is a colon in the path, we need to keep it.
14126 if test "x$srcdir" = x.; then
14127 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14130 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14132 DEFS=-DHAVE_CONFIG_H
14134 # Without the "./", some shells look in PATH for config.status.
14135 : ${CONFIG_STATUS=./config.status}
14137 echo creating $CONFIG_STATUS
14138 rm -f $CONFIG_STATUS
14139 cat > $CONFIG_STATUS <<EOF
14141 # Generated automatically by configure.
14142 # Run this file to recreate the current configuration.
14143 # This directory was configured as follows,
14144 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14146 # $0 $ac_configure_args
14148 # Compiler output produced by configure, useful for debugging
14149 # configure, is in ./config.log if it exists.
14151 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14154 case "\$ac_option" in
14155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14156 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14157 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14158 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14159 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14161 -help | --help | --hel | --he | --h)
14162 echo "\$ac_cs_usage"; exit 0 ;;
14163 *) echo "\$ac_cs_usage"; exit 1 ;;
14167 ac_given_srcdir=$srcdir
14168 ac_given_INSTALL="$INSTALL"
14170 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14172 cat >> $CONFIG_STATUS <<EOF
14174 # Protect against being on the right side of a sed subst in config.status.
14175 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14176 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14180 s%@CFLAGS@%$CFLAGS%g
14181 s%@CPPFLAGS@%$CPPFLAGS%g
14182 s%@CXXFLAGS@%$CXXFLAGS%g
14183 s%@FFLAGS@%$FFLAGS%g
14185 s%@LDFLAGS@%$LDFLAGS%g
14187 s%@exec_prefix@%$exec_prefix%g
14188 s%@prefix@%$prefix%g
14189 s%@program_transform_name@%$program_transform_name%g
14190 s%@bindir@%$bindir%g
14191 s%@sbindir@%$sbindir%g
14192 s%@libexecdir@%$libexecdir%g
14193 s%@datadir@%$datadir%g
14194 s%@sysconfdir@%$sysconfdir%g
14195 s%@sharedstatedir@%$sharedstatedir%g
14196 s%@localstatedir@%$localstatedir%g
14197 s%@libdir@%$libdir%g
14198 s%@includedir@%$includedir%g
14199 s%@oldincludedir@%$oldincludedir%g
14200 s%@infodir@%$infodir%g
14201 s%@mandir@%$mandir%g
14202 s%@codepagedir@%$codepagedir%g
14203 s%@configdir@%$configdir%g
14204 s%@lockdir@%$lockdir%g
14205 s%@piddir@%$piddir%g
14206 s%@logfilebase@%$logfilebase%g
14207 s%@privatedir@%$privatedir%g
14208 s%@swatdir@%$swatdir%g
14209 s%@RUNPROG@%$RUNPROG%g
14210 s%@MPROGS@%$MPROGS%g
14211 s%@LDSHFLAGS@%$LDSHFLAGS%g
14213 s%@HOST_OS@%$HOST_OS%g
14214 s%@PAM_MOD@%$PAM_MOD%g
14216 s%@WRAP32@%$WRAP32%g
14217 s%@PICFLAG@%$PICFLAG%g
14218 s%@PICSUFFIX@%$PICSUFFIX%g
14219 s%@POBAD_CC@%$POBAD_CC%g
14220 s%@SHLIBEXT@%$SHLIBEXT%g
14221 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14223 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14224 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14225 s%@INSTALL_DATA@%$INSTALL_DATA%g
14227 s%@BROKEN_CC@%$BROKEN_CC%g
14229 s%@host_alias@%$host_alias%g
14230 s%@host_cpu@%$host_cpu%g
14231 s%@host_vendor@%$host_vendor%g
14232 s%@host_os@%$host_os%g
14233 s%@target@%$target%g
14234 s%@target_alias@%$target_alias%g
14235 s%@target_cpu@%$target_cpu%g
14236 s%@target_vendor@%$target_vendor%g
14237 s%@target_os@%$target_os%g
14239 s%@build_alias@%$build_alias%g
14240 s%@build_cpu@%$build_cpu%g
14241 s%@build_vendor@%$build_vendor%g
14242 s%@build_os@%$build_os%g
14244 s%@LIBOBJS@%$LIBOBJS%g
14245 s%@TERMLIBS@%$TERMLIBS%g
14246 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14248 s%@DYNEXP@%$DYNEXP%g
14249 s%@QUOTAOBJS@%$QUOTAOBJS%g
14250 s%@manlangs@%$manlangs%g
14251 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14252 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14253 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14254 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14255 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14256 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14257 s%@BUILD_POPT@%$BUILD_POPT%g
14258 s%@FLAGS1@%$FLAGS1%g
14259 s%@builddir@%$builddir%g
14264 cat >> $CONFIG_STATUS <<\EOF
14266 # Split the substitutions into bite-sized pieces for seds with
14267 # small command number limits, like on Digital OSF/1 and HP-UX.
14268 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14269 ac_file=1 # Number of current file.
14270 ac_beg=1 # First line for current file.
14271 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14274 while $ac_more_lines; do
14275 if test $ac_beg -gt 1; then
14276 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14278 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14280 if test ! -s conftest.s$ac_file; then
14281 ac_more_lines=false
14282 rm -f conftest.s$ac_file
14284 if test -z "$ac_sed_cmds"; then
14285 ac_sed_cmds="sed -f conftest.s$ac_file"
14287 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14289 ac_file=`expr $ac_file + 1`
14291 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14294 if test -z "$ac_sed_cmds"; then
14299 cat >> $CONFIG_STATUS <<EOF
14301 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14303 cat >> $CONFIG_STATUS <<\EOF
14304 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14305 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14307 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14308 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14309 *) ac_file_in="${ac_file}.in" ;;
14312 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14314 # Remove last slash and all that follows it. Not all systems have dirname.
14315 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14316 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14317 # The file is in a subdirectory.
14318 test ! -d "$ac_dir" && mkdir "$ac_dir"
14319 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14320 # A "../" for each directory in $ac_dir_suffix.
14321 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14323 ac_dir_suffix= ac_dots=
14326 case "$ac_given_srcdir" in
14328 if test -z "$ac_dots"; then top_srcdir=.
14329 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14330 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14331 *) # Relative path.
14332 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14333 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14336 case "$ac_given_INSTALL" in
14337 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14338 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14341 echo creating "$ac_file"
14343 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14345 *Makefile*) ac_comsub="1i\\
14346 # $configure_input" ;;
14350 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14352 s%@configure_input@%$configure_input%g
14353 s%@srcdir@%$srcdir%g
14354 s%@top_srcdir@%$top_srcdir%g
14355 s%@INSTALL@%$INSTALL%g
14356 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14360 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14361 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14363 # ac_d sets the value in "#define NAME VALUE" lines.
14364 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14365 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14368 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14369 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14370 ac_uB='\([ ]\)%\1#\2define\3'
14373 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14374 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14375 ac_eB='$%\1#\2define\3'
14379 if test "${CONFIG_HEADERS+set}" != set; then
14381 cat >> $CONFIG_STATUS <<EOF
14382 CONFIG_HEADERS="include/config.h"
14384 cat >> $CONFIG_STATUS <<\EOF
14386 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14387 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14389 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14390 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14391 *) ac_file_in="${ac_file}.in" ;;
14394 echo creating $ac_file
14396 rm -f conftest.frag conftest.in conftest.out
14397 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14398 cat $ac_file_inputs > conftest.in
14402 # Transform confdefs.h into a sed script conftest.vals that substitutes
14403 # the proper values into config.h.in to produce config.h. And first:
14404 # Protect against being on the right side of a sed subst in config.status.
14405 # Protect against being in an unquoted here document in config.status.
14406 rm -f conftest.vals
14407 cat > conftest.hdr <<\EOF
14410 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14414 sed -n -f conftest.hdr confdefs.h > conftest.vals
14417 # This sed command replaces #undef with comments. This is necessary, for
14418 # example, in the case of _POSIX_SOURCE, which is predefined and required
14419 # on some systems where configure will not decide to define it.
14420 cat >> conftest.vals <<\EOF
14421 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14424 # Break up conftest.vals because some shells have a limit on
14425 # the size of here documents, and old seds have small limits too.
14427 rm -f conftest.tail
14430 ac_lines=`grep -c . conftest.vals`
14431 # grep -c gives empty output for an empty file on some AIX systems.
14432 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14433 # Write a limited-size here document to conftest.frag.
14434 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14435 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14437 sed -f conftest.frag conftest.in > conftest.out
14439 mv conftest.out conftest.in
14440 ' >> $CONFIG_STATUS
14441 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14442 rm -f conftest.vals
14443 mv conftest.tail conftest.vals
14445 rm -f conftest.vals
14447 cat >> $CONFIG_STATUS <<\EOF
14448 rm -f conftest.frag conftest.h
14449 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14450 cat conftest.in >> conftest.h
14452 if cmp -s $ac_file conftest.h 2>/dev/null; then
14453 echo "$ac_file is unchanged"
14456 # Remove last slash and all that follows it. Not all systems have dirname.
14457 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14458 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14459 # The file is in a subdirectory.
14460 test ! -d "$ac_dir" && mkdir "$ac_dir"
14463 mv conftest.h $ac_file
14468 cat >> $CONFIG_STATUS <<EOF
14471 cat >> $CONFIG_STATUS <<\EOF
14475 chmod +x $CONFIG_STATUS
14476 rm -fr confdefs* $ac_clean_files
14477 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14480 #################################################
14481 # Print very concise instructions on building/use
14482 if test "x$enable_dmalloc" = xyes
14484 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14485 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6