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 --enable-debug turn on debugging [default=no]"
18 --enable-developer turn on developer warnings and debugging [default=no]"
20 --enable-dmalloc enable heap debugging [default=no]"
22 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
24 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
26 --with-smbwrapper Include SMB wrapper support (default=no) "
28 --with-afs Include AFS clear-text auth support (default=no) "
30 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
32 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
34 --with-automount Include AUTOMOUNT support (default=no)"
36 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
38 --with-pam Include PAM support (default=no)"
40 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
42 --with-tdbsam Include experimental TDB SAM support (default=no)"
44 --with-ldapsam Include experimental LDAP SAM support (default=no)"
46 --with-nisplussam Include NISPLUS SAM support (default=no)"
48 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
50 --with-ssl Include SSL support (default=no)
51 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
52 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
54 --with-syslog Include experimental SYSLOG support (default=no)"
56 --with-profiling-data Include gathering source code profile information (default=no)"
58 --with-quotas Include experimental disk-quota support (default=no)"
60 --with-utmp Include experimental utmp accounting (default=no)"
62 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
64 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
66 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
68 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
70 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
72 --with-acl-support Include ACL support (default=no)"
74 --with-winbind Build winbind (default, if supported by OS)"
76 --with-included-popt use bundled popt library, not from system"
78 # Initialize some variables set by options.
79 # The variables have the same names as the options, with
80 # dashes changed to underlines.
82 cache_file=./config.cache
91 program_transform_name=s,x,x,
99 bindir='${exec_prefix}/bin'
100 sbindir='${exec_prefix}/sbin'
101 libexecdir='${exec_prefix}/libexec'
102 datadir='${prefix}/share'
103 sysconfdir='${prefix}/etc'
104 sharedstatedir='${prefix}/com'
105 localstatedir='${prefix}/var'
106 libdir='${exec_prefix}/lib'
107 includedir='${prefix}/include'
108 oldincludedir='/usr/include'
109 infodir='${prefix}/info'
110 mandir='${prefix}/man'
112 # Initialize some other variables.
115 SHELL=${CONFIG_SHELL-/bin/sh}
116 # Maximum number of lines to put in a shell here document.
123 # If the previous option needs an argument, assign it.
124 if test -n "$ac_prev"; then
125 eval "$ac_prev=\$ac_option"
131 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 # Accept the important Cygnus configure options, so we can diagnose typos.
139 -bindir | --bindir | --bindi | --bind | --bin | --bi)
141 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
142 bindir="$ac_optarg" ;;
144 -build | --build | --buil | --bui | --bu)
146 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
147 build="$ac_optarg" ;;
149 -cache-file | --cache-file | --cache-fil | --cache-fi \
150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
151 ac_prev=cache_file ;;
152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
154 cache_file="$ac_optarg" ;;
156 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
158 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
160 datadir="$ac_optarg" ;;
162 -disable-* | --disable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}=no" ;;
171 -enable-* | --enable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}='$ac_optarg'" ;;
184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
186 | --exec | --exe | --ex)
187 ac_prev=exec_prefix ;;
188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
190 | --exec=* | --exe=* | --ex=*)
191 exec_prefix="$ac_optarg" ;;
193 -gas | --gas | --ga | --g)
194 # Obsolete; use --with-gas.
197 -help | --help | --hel | --he)
198 # Omit some internal or obsolete options to make the list less imposing.
199 # This message is too long to be a string in the A/UX 3.1 sh.
201 Usage: configure [options] [host]
202 Options: [defaults in brackets after descriptions]
204 --cache-file=FILE cache test results in FILE
205 --help print this message
206 --no-create do not create output files
207 --quiet, --silent do not print \`checking...' messages
208 --version print the version of autoconf that created configure
209 Directory and file names:
210 --prefix=PREFIX install architecture-independent files in PREFIX
212 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
214 --bindir=DIR user executables in DIR [EPREFIX/bin]
215 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
216 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
217 --datadir=DIR read-only architecture-independent data in DIR
219 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
220 --sharedstatedir=DIR modifiable architecture-independent data in DIR
222 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
223 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
224 --includedir=DIR C header files in DIR [PREFIX/include]
225 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
226 --infodir=DIR info documentation in DIR [PREFIX/info]
227 --mandir=DIR man documentation in DIR [PREFIX/man]
228 --srcdir=DIR find the sources in DIR [configure dir or ..]
229 --program-prefix=PREFIX prepend PREFIX to installed program names
230 --program-suffix=SUFFIX append SUFFIX to installed program names
231 --program-transform-name=PROGRAM
232 run sed PROGRAM on installed program names
236 --build=BUILD configure for building on BUILD [BUILD=HOST]
237 --host=HOST configure for HOST [guessed]
238 --target=TARGET configure for TARGET [TARGET=HOST]
239 Features and packages:
240 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
241 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
242 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
243 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
244 --x-includes=DIR X include files are in DIR
245 --x-libraries=DIR X library files are in DIR
247 if test -n "$ac_help"; then
248 echo "--enable and --with options recognized:$ac_help"
252 -host | --host | --hos | --ho)
254 -host=* | --host=* | --hos=* | --ho=*)
257 -includedir | --includedir | --includedi | --included | --include \
258 | --includ | --inclu | --incl | --inc)
259 ac_prev=includedir ;;
260 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
261 | --includ=* | --inclu=* | --incl=* | --inc=*)
262 includedir="$ac_optarg" ;;
264 -infodir | --infodir | --infodi | --infod | --info | --inf)
266 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
267 infodir="$ac_optarg" ;;
269 -libdir | --libdir | --libdi | --libd)
271 -libdir=* | --libdir=* | --libdi=* | --libd=*)
272 libdir="$ac_optarg" ;;
274 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
275 | --libexe | --libex | --libe)
276 ac_prev=libexecdir ;;
277 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
278 | --libexe=* | --libex=* | --libe=*)
279 libexecdir="$ac_optarg" ;;
281 -localstatedir | --localstatedir | --localstatedi | --localstated \
282 | --localstate | --localstat | --localsta | --localst \
283 | --locals | --local | --loca | --loc | --lo)
284 ac_prev=localstatedir ;;
285 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
286 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
287 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
288 localstatedir="$ac_optarg" ;;
290 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
292 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
293 mandir="$ac_optarg" ;;
296 # Obsolete; use --without-fp.
299 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
304 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
308 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
309 | --oldin | --oldi | --old | --ol | --o)
310 ac_prev=oldincludedir ;;
311 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
312 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
313 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
314 oldincludedir="$ac_optarg" ;;
316 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
318 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
319 prefix="$ac_optarg" ;;
321 -program-prefix | --program-prefix | --program-prefi | --program-pref \
322 | --program-pre | --program-pr | --program-p)
323 ac_prev=program_prefix ;;
324 -program-prefix=* | --program-prefix=* | --program-prefi=* \
325 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
326 program_prefix="$ac_optarg" ;;
328 -program-suffix | --program-suffix | --program-suffi | --program-suff \
329 | --program-suf | --program-su | --program-s)
330 ac_prev=program_suffix ;;
331 -program-suffix=* | --program-suffix=* | --program-suffi=* \
332 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
333 program_suffix="$ac_optarg" ;;
335 -program-transform-name | --program-transform-name \
336 | --program-transform-nam | --program-transform-na \
337 | --program-transform-n | --program-transform- \
338 | --program-transform | --program-transfor \
339 | --program-transfo | --program-transf \
340 | --program-trans | --program-tran \
341 | --progr-tra | --program-tr | --program-t)
342 ac_prev=program_transform_name ;;
343 -program-transform-name=* | --program-transform-name=* \
344 | --program-transform-nam=* | --program-transform-na=* \
345 | --program-transform-n=* | --program-transform-=* \
346 | --program-transform=* | --program-transfor=* \
347 | --program-transfo=* | --program-transf=* \
348 | --program-trans=* | --program-tran=* \
349 | --progr-tra=* | --program-tr=* | --program-t=*)
350 program_transform_name="$ac_optarg" ;;
352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
353 | -silent | --silent | --silen | --sile | --sil)
356 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
358 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
360 sbindir="$ac_optarg" ;;
362 -sharedstatedir | --sharedstatedir | --sharedstatedi \
363 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
364 | --sharedst | --shareds | --shared | --share | --shar \
366 ac_prev=sharedstatedir ;;
367 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
368 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
369 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
371 sharedstatedir="$ac_optarg" ;;
373 -site | --site | --sit)
375 -site=* | --site=* | --sit=*)
378 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
381 srcdir="$ac_optarg" ;;
383 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
384 | --syscon | --sysco | --sysc | --sys | --sy)
385 ac_prev=sysconfdir ;;
386 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
387 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
388 sysconfdir="$ac_optarg" ;;
390 -target | --target | --targe | --targ | --tar | --ta | --t)
392 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
393 target="$ac_optarg" ;;
395 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 -version | --version | --versio | --versi | --vers)
399 echo "configure generated by autoconf version 2.13"
403 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}='$ac_optarg'" ;;
415 -without-* | --without-*)
416 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}=no" ;;
425 # Obsolete; use --with-x.
428 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
429 | --x-incl | --x-inc | --x-in | --x-i)
430 ac_prev=x_includes ;;
431 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
432 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
433 x_includes="$ac_optarg" ;;
435 -x-libraries | --x-libraries | --x-librarie | --x-librari \
436 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
437 ac_prev=x_libraries ;;
438 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
439 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
440 x_libraries="$ac_optarg" ;;
442 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
447 echo "configure: warning: $ac_option: invalid host type" 1>&2
449 if test "x$nonopt" != xNONE; then
450 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 if test -n "$ac_prev"; then
459 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464 # File descriptor usage:
467 # 2 errors and warnings
468 # 3 some systems may open it to /dev/tty
469 # 4 used on the Kubota Titan
470 # 6 checking for... messages and results
471 # 5 compiler messages saved in config.log
472 if test "$silent" = yes; then
480 This file contains any messages produced by compilers while
481 running configure, to aid debugging if configure makes a mistake.
484 # Strip out --no-create and --no-recursion so they do not pile up.
485 # Also quote any args containing shell metacharacters.
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c) ;;
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
495 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
496 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
501 # Only set these to C if already set. These must not be set unconditionally
502 # because not all systems understand e.g. LANG=C (notably SCO).
503 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
504 # Non-C LC_CTYPE values break the ctype check.
505 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
506 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
507 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
508 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
511 rm -rf conftest* confdefs.h
512 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 # A filename unique to this package, relative to the directory that
516 # configure is in, which we can look for to find out if srcdir is correct.
517 ac_unique_file=include/includes.h
519 # Find the source files, if location was not specified.
520 if test -z "$srcdir"; then
521 ac_srcdir_defaulted=yes
522 # Try the directory containing this script, then its parent.
524 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
525 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527 if test ! -r $srcdir/$ac_unique_file; then
531 ac_srcdir_defaulted=no
533 if test ! -r $srcdir/$ac_unique_file; then
534 if test "$ac_srcdir_defaulted" = yes; then
535 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542 # Prefer explicitly selected file to automatically selected ones.
543 if test -z "$CONFIG_SITE"; then
544 if test "x$prefix" != xNONE; then
545 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
547 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 for ac_site_file in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
561 echo "creating cache $cache_file"
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp='$CPP $CPPFLAGS'
568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling=$ac_cv_prog_cc_cross
574 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
583 ac_n= ac_c='\c' ac_t=
588 # we want to be compatible with older versions of Samba
606 # compile with optimisation and without debugging by default
607 CFLAGS="-O ${CFLAGS}"
609 # Check whether --enable-debug or --disable-debug was given.
610 if test "${enable_debug+set}" = set; then
611 enableval="$enable_debug"
612 if eval "test x$enable_debug = xyes"; then
613 CFLAGS="${CFLAGS} -g"
618 # Check whether --enable-developer or --disable-developer was given.
619 if test "${enable_developer+set}" = set; then
620 enableval="$enable_developer"
621 if eval "test x$enable_developer = xyes"; then
622 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
627 # Check whether --enable-dmalloc or --disable-dmalloc was given.
628 if test "${enable_dmalloc+set}" = set; then
629 enableval="$enable_dmalloc"
634 if test "x$enable_dmalloc" = xyes
636 cat >> confdefs.h <<\EOF
637 #define ENABLE_DMALLOC 1
640 cat >> confdefs.h <<\EOF
641 #define DMALLOC_FUNC_CHECK 1
644 LIBS="$LIBS -ldmalloc"
647 # Extract the first word of "gcc", so it can be a program name with args.
648 set dummy gcc; ac_word=$2
649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
650 echo "configure:651: checking for $ac_word" >&5
651 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
654 if test -n "$CC"; then
655 ac_cv_prog_CC="$CC" # Let the user override the test.
657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
659 for ac_dir in $ac_dummy; do
660 test -z "$ac_dir" && ac_dir=.
661 if test -f $ac_dir/$ac_word; then
670 if test -n "$CC"; then
671 echo "$ac_t""$CC" 1>&6
673 echo "$ac_t""no" 1>&6
676 if test -z "$CC"; then
677 # Extract the first word of "cc", so it can be a program name with args.
678 set dummy cc; ac_word=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$CC"; then
685 ac_cv_prog_CC="$CC" # Let the user override the test.
687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
690 for ac_dir in $ac_dummy; do
691 test -z "$ac_dir" && ac_dir=.
692 if test -f $ac_dir/$ac_word; then
693 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
702 if test $ac_prog_rejected = yes; then
703 # We found a bogon in the path, so make sure we never use it.
704 set dummy $ac_cv_prog_CC
706 if test $# -gt 0; then
707 # We chose a different compiler from the bogus one.
708 # However, it has the same basename, so the bogon will be chosen
709 # first if we set CC to just the basename; use the full file name.
711 set dummy "$ac_dir/$ac_word" "$@"
719 if test -n "$CC"; then
720 echo "$ac_t""$CC" 1>&6
722 echo "$ac_t""no" 1>&6
725 if test -z "$CC"; then
728 # Extract the first word of "cl", so it can be a program name with args.
729 set dummy cl; ac_word=$2
730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
731 echo "configure:732: checking for $ac_word" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 if test -n "$CC"; then
736 ac_cv_prog_CC="$CC" # Let the user override the test.
738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
740 for ac_dir in $ac_dummy; do
741 test -z "$ac_dir" && ac_dir=.
742 if test -f $ac_dir/$ac_word; then
751 if test -n "$CC"; then
752 echo "$ac_t""$CC" 1>&6
754 echo "$ac_t""no" 1>&6
759 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
767 ac_cpp='$CPP $CPPFLAGS'
768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
770 cross_compiling=$ac_cv_prog_cc_cross
772 cat > conftest.$ac_ext << EOF
774 #line 775 "configure"
775 #include "confdefs.h"
779 if { (eval echo configure:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
780 ac_cv_prog_cc_works=yes
781 # If we can't run a trivial program, we are probably using a cross compiler.
782 if (./conftest; exit) 2>/dev/null; then
783 ac_cv_prog_cc_cross=no
785 ac_cv_prog_cc_cross=yes
788 echo "configure: failed program was:" >&5
789 cat conftest.$ac_ext >&5
790 ac_cv_prog_cc_works=no
794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
795 ac_cpp='$CPP $CPPFLAGS'
796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
798 cross_compiling=$ac_cv_prog_cc_cross
800 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
801 if test $ac_cv_prog_cc_works = no; then
802 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
804 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
805 echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
806 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
807 cross_compiling=$ac_cv_prog_cc_cross
809 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
810 echo "configure:811: checking whether we are using GNU C" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 cat > conftest.c <<EOF
819 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
826 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
828 if test $ac_cv_prog_gcc = yes; then
834 ac_test_CFLAGS="${CFLAGS+set}"
835 ac_save_CFLAGS="$CFLAGS"
837 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
838 echo "configure:839: checking whether ${CC-cc} accepts -g" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 echo 'void f(){}' > conftest.c
843 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
852 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
853 if test "$ac_test_CFLAGS" = set; then
854 CFLAGS="$ac_save_CFLAGS"
855 elif test $ac_cv_prog_cc_g = yes; then
856 if test "$GCC" = yes; then
862 if test "$GCC" = yes; then
870 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
871 if test -f $ac_dir/install-sh; then
873 ac_install_sh="$ac_aux_dir/install-sh -c"
875 elif test -f $ac_dir/install.sh; then
877 ac_install_sh="$ac_aux_dir/install.sh -c"
881 if test -z "$ac_aux_dir"; then
882 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
884 ac_config_guess=$ac_aux_dir/config.guess
885 ac_config_sub=$ac_aux_dir/config.sub
886 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
888 # Find a good install program. We prefer a C program (faster),
889 # so one script is as good as another. But avoid the broken or
890 # incompatible versions:
891 # SysV /etc/install, /usr/sbin/install
892 # SunOS /usr/etc/install
895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
898 # ./install, which can be erroneously created by make from ./install.sh.
899 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
900 echo "configure:901: checking for a BSD compatible install" >&5
901 if test -z "$INSTALL"; then
902 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
906 for ac_dir in $PATH; do
907 # Account for people who put trailing slashes in PATH elements.
909 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
911 # OSF1 and SCO ODT 3.0 have their own names for install.
912 # Don't use installbsd from OSF since it installs stuff as root
914 for ac_prog in ginstall scoinst install; do
915 if test -f $ac_dir/$ac_prog; then
916 if test $ac_prog = install &&
917 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
918 # AIX install. It has an incompatible calling convention.
921 ac_cv_path_install="$ac_dir/$ac_prog -c"
932 if test "${ac_cv_path_install+set}" = set; then
933 INSTALL="$ac_cv_path_install"
935 # As a last resort, use the slow shell script. We don't cache a
936 # path for INSTALL within a source directory, because that will
937 # break other packages using the cache if that directory is
938 # removed, or if the path is relative.
939 INSTALL="$ac_install_sh"
942 echo "$ac_t""$INSTALL" 1>&6
944 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
945 # It thinks the first close brace ends the variable substitution.
946 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
948 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
950 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
952 for ac_prog in gawk mawk nawk awk
954 # Extract the first word of "$ac_prog", so it can be a program name with args.
955 set dummy $ac_prog; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$AWK"; then
962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_AWK="$ac_prog"
976 AWK="$ac_cv_prog_AWK"
977 if test -n "$AWK"; then
978 echo "$ac_t""$AWK" 1>&6
980 echo "$ac_t""no" 1>&6
983 test -n "$AWK" && break
987 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
988 echo "configure:989: checking for POSIXized ISC" >&5
989 if test -d /etc/conf/kconfig.d &&
990 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
992 echo "$ac_t""yes" 1>&6
993 ISC=yes # If later tests want to check for ISC.
994 cat >> confdefs.h <<\EOF
995 #define _POSIX_SOURCE 1
998 if test "$GCC" = yes; then
1004 echo "$ac_t""no" 1>&6
1009 if test "x$CC" != xcc; then
1010 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether $CC and cc understand -c and -o together" >&5
1013 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1014 echo "configure:1015: checking whether cc understands -c and -o together" >&5
1016 set dummy $CC; ac_cc="`echo $2 |
1017 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1018 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 echo 'foo(){}' > conftest.c
1022 # Make sure it works both with $CC and with simple cc.
1023 # We do the test twice because some compilers refuse to overwrite an
1024 # existing .o file with -o, though they will create one.
1025 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1026 if { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1027 test -f conftest.o && { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1029 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1030 if test "x$CC" != xcc; then
1031 # Test first that cc exists at all.
1032 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1033 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1034 if { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1035 test -f conftest.o && { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1040 # cc exists but doesn't like -o.
1041 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1046 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1051 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1052 echo "$ac_t""yes" 1>&6
1054 echo "$ac_t""no" 1>&6
1055 cat >> confdefs.h <<\EOF
1056 #define NO_MINUS_C_MINUS_O 1
1061 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1068 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1069 echo "configure:1070: checking that the C compiler understands volatile" >&5
1070 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1077 #include <sys/types.h>
1082 if { (eval echo configure:1083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1084 samba_cv_volatile=yes
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 samba_cv_volatile=no
1094 echo "$ac_t""$samba_cv_volatile" 1>&6
1095 if test x"$samba_cv_volatile" = x"yes"; then
1096 cat >> confdefs.h <<\EOF
1097 #define HAVE_VOLATILE 1
1104 # Do some error checking and defaulting for the host and target type.
1106 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1109 # 1. You are not allowed to specify --host, --target, and nonopt at the
1111 # 2. Host defaults to nonopt.
1112 # 3. If nonopt is not specified, then host defaults to the current host,
1113 # as determined by config.guess.
1114 # 4. Target and build default to nonopt.
1115 # 5. If nonopt is not specified, then target and build default to host.
1117 # The aliases save the names the user supplied, while $host etc.
1118 # will get canonicalized.
1119 case $host---$target---$nonopt in
1120 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1121 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1125 # Make sure we can run config.sub.
1126 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1127 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1130 echo $ac_n "checking host system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking host system type" >&5
1134 case "$host_alias" in
1138 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1139 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1141 *) host_alias=$nonopt ;;
1145 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1146 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1147 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1148 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1149 echo "$ac_t""$host" 1>&6
1151 echo $ac_n "checking target system type""... $ac_c" 1>&6
1152 echo "configure:1153: checking target system type" >&5
1154 target_alias=$target
1155 case "$target_alias" in
1158 NONE) target_alias=$host_alias ;;
1159 *) target_alias=$nonopt ;;
1163 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1164 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1165 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1166 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1167 echo "$ac_t""$target" 1>&6
1169 echo $ac_n "checking build system type""... $ac_c" 1>&6
1170 echo "configure:1171: checking build system type" >&5
1173 case "$build_alias" in
1176 NONE) build_alias=$host_alias ;;
1177 *) build_alias=$nonopt ;;
1181 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1182 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1183 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1184 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1185 echo "$ac_t""$build" 1>&6
1187 test "$host_alias" != "$target_alias" &&
1188 test "$program_prefix$program_suffix$program_transform_name" = \
1190 program_prefix=${target_alias}-
1194 *irix6*) cat >> confdefs.h <<\EOF
1195 #include <standards.h>
1203 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1204 echo "configure:1205: checking config.cache system type" >&5
1205 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1206 test x"$ac_cv_host_system_type" != x"$host"; } ||
1207 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1208 test x"$ac_cv_build_system_type" != x"$build"; } ||
1209 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1210 test x"$ac_cv_target_system_type" != x"$target"; }; then
1211 echo "$ac_t""different" 1>&6
1212 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1214 echo "$ac_t""same" 1>&6
1216 ac_cv_host_system_type="$host"
1217 ac_cv_build_system_type="$build"
1218 ac_cv_target_system_type="$target"
1222 # Config CPPFLAG settings for strange OS's that must be set
1223 # before other tests.
1226 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1228 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether ${CC-cc} accepts -Ae" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 echo 'void f(){}' > conftest.c
1234 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1235 ac_cv_prog_cc_Ae=yes
1243 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1244 # mmap on HPUX is completely broken...
1245 cat >> confdefs.h <<\EOF
1246 #define MMAP_BLACKLIST 1
1249 if test $ac_cv_prog_cc_Ae = yes; then
1250 CPPFLAGS="$CPPFLAGS -Ae"
1253 # Defines needed for HPUX support.
1254 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1255 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1259 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1260 cat >> confdefs.h <<\EOF
1261 #define USE_BOTH_CRYPT_CALLS 1
1266 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1267 cat >> confdefs.h <<\EOF
1268 #define USE_BOTH_CRYPT_CALLS 1
1276 # CRAY Unicos has broken const handling
1278 echo "$ac_t""disabling const" 1>&6
1279 CPPFLAGS="$CPPFLAGS -Dconst="
1283 # AIX4.x doesn't even admit to having large
1284 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1287 echo "$ac_t""enabling large file support" 1>&6
1288 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1291 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1292 # to the existance of large files..
1293 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1294 # recommendations on large file support, however it makes the
1295 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1296 # recommendation makes the compile fail on gcc2.7. JRA.
1300 5.0*|5.1*|5.2*|5.3*|5.5*)
1301 echo "$ac_t""no large file support" 1>&6
1304 echo "$ac_t""enabling large file support" 1>&6
1305 if test "$ac_cv_prog_gcc" = yes; then
1306 ${CC-cc} -v >conftest.c 2>&1
1307 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1309 case "$ac_cv_gcc_compiler_version_number" in
1310 *"gcc version 2.6"*|*"gcc version 2.7"*)
1311 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1314 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1318 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1324 # Tests needed for SINIX large file support.
1327 if test $host = mips-sni-sysv4 ; then
1328 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1329 echo "configure:1330: checking for LFS support" >&5
1330 old_CPPFLAGS="$CPPFLAGS"
1331 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1332 if test "$cross_compiling" = yes; then
1333 SINIX_LFS_SUPPORT=cross
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1341 #if _LFS64_LARGEFILE == 1
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1350 SINIX_LFS_SUPPORT=yes
1352 echo "configure: failed program was:" >&5
1353 cat conftest.$ac_ext >&5
1355 SINIX_LFS_SUPPORT=no
1360 CPPFLAGS="$old_CPPFLAGS"
1361 if test x$SINIX_LFS_SUPPORT = xyes ; then
1362 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1363 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1364 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1365 LIBS="`getconf LFS64_LIBS` $LIBS"
1367 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1371 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1374 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1375 echo "configure:1376: checking for LFS support" >&5
1376 old_CPPFLAGS="$CPPFLAGS"
1377 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1378 if test "$cross_compiling" = yes; then
1379 LINUX_LFS_SUPPORT=cross
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1386 #include <sys/utsname.h>
1388 #if _LFS64_LARGEFILE == 1
1393 /* Ensure this is glibc 2.2 or higher */
1394 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1395 int libc_major = __GLIBC__;
1396 int libc_minor = __GLIBC_MINOR__;
1404 /* Ensure this is kernel 2.4 or higher */
1407 release = uts.release;
1408 major = atoi(strsep(&release, "."));
1409 minor = atoi(strsep(&release, "."));
1411 if (major > 2 || (major == 2 && minor > 3))
1420 if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1422 LINUX_LFS_SUPPORT=yes
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1427 LINUX_LFS_SUPPORT=no
1432 CPPFLAGS="$old_CPPFLAGS"
1433 if test x$LINUX_LFS_SUPPORT = xyes ; then
1434 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1436 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1440 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1441 echo "configure:1442: checking for LFS support" >&5
1442 old_CPPFLAGS="$CPPFLAGS"
1443 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1444 if test "$cross_compiling" = yes; then
1445 GLIBC_LFS_SUPPORT=cross
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1453 #if _LFS64_LARGEFILE == 1
1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1462 GLIBC_LFS_SUPPORT=yes
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1467 GLIBC_LFS_SUPPORT=no
1472 CPPFLAGS="$old_CPPFLAGS"
1473 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1474 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1476 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1481 echo $ac_n "checking for inline""... $ac_c" 1>&6
1482 echo "configure:1483: checking for inline" >&5
1483 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1487 for ac_kw in inline __inline__ __inline; do
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1496 if { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1498 ac_cv_c_inline=$ac_kw; break
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1508 echo "$ac_t""$ac_cv_c_inline" 1>&6
1509 case "$ac_cv_c_inline" in
1511 no) cat >> confdefs.h <<\EOF
1515 *) cat >> confdefs.h <<EOF
1516 #define inline $ac_cv_c_inline
1521 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1522 echo "configure:1523: checking how to run the C preprocessor" >&5
1523 # On Suns, sometimes $CPP names a directory.
1524 if test -n "$CPP" && test -d "$CPP"; then
1527 if test -z "$CPP"; then
1528 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 # This must be in double quotes, not single quotes, because CPP may get
1532 # substituted into the Makefile and "${CC-cc}" will confuse make.
1534 # On the NeXT, cc -E runs the code through the compiler's parser,
1535 # not just through cpp.
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1543 { (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1545 if test -z "$ac_err"; then
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1552 CPP="${CC-cc} -E -traditional-cpp"
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1560 { (eval echo configure:1561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1562 if test -z "$ac_err"; then
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 CPP="${CC-cc} -nologo -E"
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1577 { (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1579 if test -z "$ac_err"; then
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1593 ac_cv_prog_CPP="$CPP"
1595 CPP="$ac_cv_prog_CPP"
1597 ac_cv_prog_CPP="$CPP"
1599 echo "$ac_t""$CPP" 1>&6
1601 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1602 echo "configure:1603: checking for ANSI C header files" >&5
1603 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1615 { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1617 if test -z "$ac_err"; then
1619 ac_cv_header_stdc=yes
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1625 ac_cv_header_stdc=no
1629 if test $ac_cv_header_stdc = yes; then
1630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1637 egrep "memchr" >/dev/null 2>&1; then
1641 ac_cv_header_stdc=no
1647 if test $ac_cv_header_stdc = yes; then
1648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1655 egrep "free" >/dev/null 2>&1; then
1659 ac_cv_header_stdc=no
1665 if test $ac_cv_header_stdc = yes; then
1666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1667 if test "$cross_compiling" = yes; then
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1674 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1675 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1677 int main () { int i; for (i = 0; i < 256; i++)
1678 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1682 if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1689 ac_cv_header_stdc=no
1697 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1698 if test $ac_cv_header_stdc = yes; then
1699 cat >> confdefs.h <<\EOF
1700 #define STDC_HEADERS 1
1706 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1709 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_hdr that defines DIR" >&5
1711 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 #include <sys/types.h>
1723 if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1725 eval "ac_cv_header_dirent_$ac_safe=yes"
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1730 eval "ac_cv_header_dirent_$ac_safe=no"
1734 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1735 echo "$ac_t""yes" 1>&6
1736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1737 cat >> confdefs.h <<EOF
1738 #define $ac_tr_hdr 1
1740 ac_header_dirent=$ac_hdr; break
1742 echo "$ac_t""no" 1>&6
1745 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1746 if test $ac_header_dirent = dirent.h; then
1747 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1748 echo "configure:1749: checking for opendir in -ldir" >&5
1749 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 ac_save_LIBS="$LIBS"
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1769 eval "ac_cv_lib_$ac_lib_var=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1774 eval "ac_cv_lib_$ac_lib_var=no"
1777 LIBS="$ac_save_LIBS"
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1784 echo "$ac_t""no" 1>&6
1788 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1789 echo "configure:1790: checking for opendir in -lx" >&5
1790 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 ac_save_LIBS="$LIBS"
1796 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1799 /* Override any gcc2 internal prototype to avoid an error. */
1800 /* We use char because int might match the return type of a gcc2
1801 builtin and then its argument prototype would still apply. */
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1810 eval "ac_cv_lib_$ac_lib_var=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 eval "ac_cv_lib_$ac_lib_var=no"
1818 LIBS="$ac_save_LIBS"
1821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1825 echo "$ac_t""no" 1>&6
1830 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1831 echo "configure:1832: checking whether time.h and sys/time.h may both be included" >&5
1832 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 cat > conftest.$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1838 #include <sys/types.h>
1839 #include <sys/time.h>
1845 if { (eval echo configure:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1847 ac_cv_header_time=yes
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 ac_cv_header_time=no
1857 echo "$ac_t""$ac_cv_header_time" 1>&6
1858 if test $ac_cv_header_time = yes; then
1859 cat >> confdefs.h <<\EOF
1860 #define TIME_WITH_SYS_TIME 1
1865 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1866 echo "configure:1867: checking for sys/wait.h that is POSIX.1 compatible" >&5
1867 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 #include <sys/types.h>
1874 #include <sys/wait.h>
1876 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1879 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1884 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1887 if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1889 ac_cv_header_sys_wait_h=yes
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1894 ac_cv_header_sys_wait_h=no
1899 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1900 if test $ac_cv_header_sys_wait_h = yes; then
1901 cat >> confdefs.h <<\EOF
1902 #define HAVE_SYS_WAIT_H 1
1907 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_hdr" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1921 { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1923 if test -z "$ac_err"; then
1925 eval "ac_cv_header_$ac_safe=yes"
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 eval "ac_cv_header_$ac_safe=no"
1935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1938 cat >> confdefs.h <<EOF
1939 #define $ac_tr_hdr 1
1943 echo "$ac_t""no" 1>&6
1947 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1987 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_hdr" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2003 if test -z "$ac_err"; then
2005 eval "ac_cv_header_$ac_safe=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_header_$ac_safe=no"
2015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2018 cat >> confdefs.h <<EOF
2019 #define $ac_tr_hdr 1
2023 echo "$ac_t""no" 1>&6
2027 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_hdr" >&5
2032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2041 { (eval echo configure:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2043 if test -z "$ac_err"; then
2045 eval "ac_cv_header_$ac_safe=yes"
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2051 eval "ac_cv_header_$ac_safe=no"
2055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2058 cat >> confdefs.h <<EOF
2059 #define $ac_tr_hdr 1
2063 echo "$ac_t""no" 1>&6
2067 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
2069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_hdr" >&5
2072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2081 { (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2083 if test -z "$ac_err"; then
2085 eval "ac_cv_header_$ac_safe=yes"
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 eval "ac_cv_header_$ac_safe=no"
2095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2096 echo "$ac_t""yes" 1>&6
2097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2098 cat >> confdefs.h <<EOF
2099 #define $ac_tr_hdr 1
2103 echo "$ac_t""no" 1>&6
2107 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_hdr" >&5
2112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2121 { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2123 if test -z "$ac_err"; then
2125 eval "ac_cv_header_$ac_safe=yes"
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2131 eval "ac_cv_header_$ac_safe=no"
2135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2138 cat >> confdefs.h <<EOF
2139 #define $ac_tr_hdr 1
2143 echo "$ac_t""no" 1>&6
2147 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2151 echo "configure:2152: checking for $ac_hdr" >&5
2152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2161 { (eval echo configure:2162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2163 if test -z "$ac_err"; then
2165 eval "ac_cv_header_$ac_safe=yes"
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2171 eval "ac_cv_header_$ac_safe=no"
2175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2176 echo "$ac_t""yes" 1>&6
2177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2178 cat >> confdefs.h <<EOF
2179 #define $ac_tr_hdr 1
2183 echo "$ac_t""no" 1>&6
2187 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h
2189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2191 echo "configure:2192: checking for $ac_hdr" >&5
2192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2201 { (eval echo configure:2202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2203 if test -z "$ac_err"; then
2205 eval "ac_cv_header_$ac_safe=yes"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2211 eval "ac_cv_header_$ac_safe=no"
2215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2218 cat >> confdefs.h <<EOF
2219 #define $ac_tr_hdr 1
2223 echo "$ac_t""no" 1>&6
2229 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2230 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2242 if { (eval echo configure:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2244 ac_cv_header_shadow_h=yes
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2249 ac_cv_header_shadow_h=no
2252 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2253 cat >> confdefs.h <<\EOF
2254 #define HAVE_SHADOW_H 1
2260 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_hdr" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 eval "ac_cv_header_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 eval "ac_cv_header_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_hdr 1
2296 echo "$ac_t""no" 1>&6
2300 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2318 eval "ac_cv_header_$ac_safe=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_header_$ac_safe=no"
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h <<EOF
2332 #define $ac_tr_hdr 1
2336 echo "$ac_t""no" 1>&6
2340 for ac_hdr in stropts.h poll.h
2342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h <<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2380 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2420 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2461 # For experimental utmp support (lastlog on some BSD-like systems)
2462 for ac_hdr in utmp.h utmpx.h lastlog.h
2464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_hdr" >&5
2467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2480 eval "ac_cv_header_$ac_safe=yes"
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2486 eval "ac_cv_header_$ac_safe=no"
2490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2493 cat >> confdefs.h <<EOF
2494 #define $ac_tr_hdr 1
2498 echo "$ac_t""no" 1>&6
2503 # For quotas on Veritas VxFS filesystems
2504 for ac_hdr in sys/fs/vx_quota.h
2506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_hdr" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2520 if test -z "$ac_err"; then
2522 eval "ac_cv_header_$ac_safe=yes"
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 eval "ac_cv_header_$ac_safe=no"
2532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2535 cat >> confdefs.h <<EOF
2536 #define $ac_tr_hdr 1
2540 echo "$ac_t""no" 1>&6
2545 # For quotas on Linux XFS filesystems
2546 for ac_hdr in linux/xqm.h
2548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_hdr" >&5
2551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2562 if test -z "$ac_err"; then
2564 eval "ac_cv_header_$ac_safe=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2570 eval "ac_cv_header_$ac_safe=no"
2574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2577 cat >> confdefs.h <<EOF
2578 #define $ac_tr_hdr 1
2582 echo "$ac_t""no" 1>&6
2587 echo $ac_n "checking size of int""... $ac_c" 1>&6
2588 echo "configure:2589: checking size of int" >&5
2589 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 if test "$cross_compiling" = yes; then
2593 ac_cv_sizeof_int=cross
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2601 FILE *f=fopen("conftestval", "w");
2603 fprintf(f, "%d\n", sizeof(int));
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2609 ac_cv_sizeof_int=`cat conftestval`
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2620 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2621 cat >> confdefs.h <<EOF
2622 #define SIZEOF_INT $ac_cv_sizeof_int
2626 echo $ac_n "checking size of long""... $ac_c" 1>&6
2627 echo "configure:2628: checking size of long" >&5
2628 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 if test "$cross_compiling" = yes; then
2632 ac_cv_sizeof_long=cross
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2640 FILE *f=fopen("conftestval", "w");
2642 fprintf(f, "%d\n", sizeof(long));
2646 if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2648 ac_cv_sizeof_long=`cat conftestval`
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2659 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2660 cat >> confdefs.h <<EOF
2661 #define SIZEOF_LONG $ac_cv_sizeof_long
2665 echo $ac_n "checking size of short""... $ac_c" 1>&6
2666 echo "configure:2667: checking size of short" >&5
2667 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 if test "$cross_compiling" = yes; then
2671 ac_cv_sizeof_short=cross
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2679 FILE *f=fopen("conftestval", "w");
2681 fprintf(f, "%d\n", sizeof(short));
2685 if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2687 ac_cv_sizeof_short=`cat conftestval`
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2692 ac_cv_sizeof_short=0
2698 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2699 cat >> confdefs.h <<EOF
2700 #define SIZEOF_SHORT $ac_cv_sizeof_short
2705 echo $ac_n "checking for working const""... $ac_c" 1>&6
2706 echo "configure:2707: checking for working const" >&5
2707 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2716 /* Ultrix mips cc rejects this. */
2717 typedef int charset[2]; const charset x;
2718 /* SunOS 4.1.1 cc rejects this. */
2719 char const *const *ccp;
2721 /* NEC SVR4.0.2 mips cc rejects this. */
2722 struct point {int x, y;};
2723 static struct point const zero = {0,0};
2724 /* AIX XL C 1.02.0.0 rejects this.
2725 It does not let you subtract one const X* pointer from another in an arm
2726 of an if-expression whose if-part is not a constant expression */
2727 const char *g = "string";
2728 ccp = &g + (g ? g-g : 0);
2729 /* HPUX 7.0 cc rejects these. */
2732 ccp = (char const *const *) p;
2733 { /* SCO 3.2v4 cc rejects this. */
2735 char const *s = 0 ? (char *) 0 : (char const *) 0;
2739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2741 const int *foo = &x[0];
2744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2745 typedef const int *iptr;
2749 { /* AIX XL C 1.02.0.0 rejects this saying
2750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2751 struct s { int j; const int *ap[3]; };
2752 struct s *b; b->j = 5;
2754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2760 if { (eval echo configure:2761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2772 echo "$ac_t""$ac_cv_c_const" 1>&6
2773 if test $ac_cv_c_const = no; then
2774 cat >> confdefs.h <<\EOF
2780 echo $ac_n "checking for inline""... $ac_c" 1>&6
2781 echo "configure:2782: checking for inline" >&5
2782 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2786 for ac_kw in inline __inline__ __inline; do
2787 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2795 if { (eval echo configure:2796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2797 ac_cv_c_inline=$ac_kw; break
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2807 echo "$ac_t""$ac_cv_c_inline" 1>&6
2808 case "$ac_cv_c_inline" in
2810 no) cat >> confdefs.h <<\EOF
2814 *) cat >> confdefs.h <<EOF
2815 #define inline $ac_cv_c_inline
2820 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2821 echo "configure:2822: checking whether byte ordering is bigendian" >&5
2822 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 ac_cv_c_bigendian=unknown
2826 # See if sys/param.h defines the BYTE_ORDER macro.
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 #include <sys/types.h>
2831 #include <sys/param.h>
2834 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2839 if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2841 # It does; now see whether it defined to BIG_ENDIAN or not.
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845 #include <sys/types.h>
2846 #include <sys/param.h>
2849 #if BYTE_ORDER != BIG_ENDIAN
2854 if { (eval echo configure:2855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2856 ac_cv_c_bigendian=yes
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2861 ac_cv_c_bigendian=no
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2869 if test $ac_cv_c_bigendian = unknown; then
2870 if test "$cross_compiling" = yes; then
2871 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2877 /* Are we little or big endian? From Harbison&Steele. */
2881 char c[sizeof (long)];
2884 exit (u.c[sizeof (long) - 1] == 1);
2887 if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2889 ac_cv_c_bigendian=no
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2894 ac_cv_c_bigendian=yes
2902 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2903 if test $ac_cv_c_bigendian = yes; then
2904 cat >> confdefs.h <<\EOF
2905 #define WORDS_BIGENDIAN 1
2910 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2911 echo "configure:2912: checking whether char is unsigned" >&5
2912 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 if test "$GCC" = yes; then
2916 # GCC predefines this symbol on systems where it applies.
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 #ifdef __CHAR_UNSIGNED__
2925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2926 egrep "yes" >/dev/null 2>&1; then
2928 ac_cv_c_char_unsigned=yes
2931 ac_cv_c_char_unsigned=no
2936 if test "$cross_compiling" = yes; then
2937 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2943 #if !defined(__STDC__) || __STDC__ != 1
2947 volatile char c = 255; exit(c < 0);
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2952 ac_cv_c_char_unsigned=yes
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 ac_cv_c_char_unsigned=no
2965 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2966 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2967 cat >> confdefs.h <<\EOF
2968 #define __CHAR_UNSIGNED__ 1
2974 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2975 echo "configure:2976: checking return type of signal handlers" >&5
2976 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <sys/types.h>
2988 extern "C" void (*signal (int, void (*)(int)))(int);
2990 void (*signal ()) ();
2997 if { (eval echo configure:2998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2999 ac_cv_type_signal=void
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 ac_cv_type_signal=int
3009 echo "$ac_t""$ac_cv_type_signal" 1>&6
3010 cat >> confdefs.h <<EOF
3011 #define RETSIGTYPE $ac_cv_type_signal
3015 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3016 echo "configure:3017: checking for uid_t in sys/types.h" >&5
3017 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <sys/types.h>
3025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3026 egrep "uid_t" >/dev/null 2>&1; then
3028 ac_cv_type_uid_t=yes
3037 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3038 if test $ac_cv_type_uid_t = no; then
3039 cat >> confdefs.h <<\EOF
3043 cat >> confdefs.h <<\EOF
3049 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3050 echo "configure:3051: checking for mode_t" >&5
3051 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 #include <sys/types.h>
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3064 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3066 ac_cv_type_mode_t=yes
3069 ac_cv_type_mode_t=no
3074 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3075 if test $ac_cv_type_mode_t = no; then
3076 cat >> confdefs.h <<\EOF
3082 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3083 echo "configure:3084: checking for off_t" >&5
3084 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #include <sys/types.h>
3096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3097 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3099 ac_cv_type_off_t=yes
3107 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3108 if test $ac_cv_type_off_t = no; then
3109 cat >> confdefs.h <<\EOF
3115 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3116 echo "configure:3117: checking for size_t" >&5
3117 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 #include <sys/types.h>
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3132 ac_cv_type_size_t=yes
3135 ac_cv_type_size_t=no
3140 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3141 if test $ac_cv_type_size_t = no; then
3142 cat >> confdefs.h <<\EOF
3143 #define size_t unsigned
3148 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3149 echo "configure:3150: checking for pid_t" >&5
3150 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 #include <sys/types.h>
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3165 ac_cv_type_pid_t=yes
3173 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3174 if test $ac_cv_type_pid_t = no; then
3175 cat >> confdefs.h <<\EOF
3181 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3182 echo "configure:3183: checking for st_rdev in struct stat" >&5
3183 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 #include <sys/types.h>
3190 #include <sys/stat.h>
3192 struct stat s; s.st_rdev;
3195 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3197 ac_cv_struct_st_rdev=yes
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 ac_cv_struct_st_rdev=no
3207 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3208 if test $ac_cv_struct_st_rdev = yes; then
3209 cat >> confdefs.h <<\EOF
3210 #define HAVE_ST_RDEV 1
3215 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3216 echo "configure:3217: checking for d_off in dirent" >&5
3217 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3225 #include <sys/types.h>
3228 struct dirent d; d.d_off;
3231 if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3233 ac_cv_dirent_d_off=yes
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 ac_cv_dirent_d_off=no
3243 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3244 if test $ac_cv_dirent_d_off = yes; then
3245 cat >> confdefs.h <<\EOF
3246 #define HAVE_DIRENT_D_OFF 1
3251 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3252 echo "configure:3253: checking for ino_t" >&5
3253 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 #include <sys/types.h>
3265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3266 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3268 ac_cv_type_ino_t=yes
3276 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3277 if test $ac_cv_type_ino_t = no; then
3278 cat >> confdefs.h <<\EOF
3279 #define ino_t unsigned
3284 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3285 echo "configure:3286: checking for loff_t" >&5
3286 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 #include <sys/types.h>
3298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3299 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3301 ac_cv_type_loff_t=yes
3304 ac_cv_type_loff_t=no
3309 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3310 if test $ac_cv_type_loff_t = no; then
3311 cat >> confdefs.h <<\EOF
3312 #define loff_t off_t
3317 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3318 echo "configure:3319: checking for offset_t" >&5
3319 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <sys/types.h>
3331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3332 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3334 ac_cv_type_offset_t=yes
3337 ac_cv_type_offset_t=no
3342 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3343 if test $ac_cv_type_offset_t = no; then
3344 cat >> confdefs.h <<\EOF
3345 #define offset_t loff_t
3350 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3351 echo "configure:3352: checking for ssize_t" >&5
3352 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <sys/types.h>
3364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3365 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3367 ac_cv_type_ssize_t=yes
3370 ac_cv_type_ssize_t=no
3375 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3376 if test $ac_cv_type_ssize_t = no; then
3377 cat >> confdefs.h <<\EOF
3383 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3384 echo "configure:3385: checking for wchar_t" >&5
3385 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <sys/types.h>
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3400 ac_cv_type_wchar_t=yes
3403 ac_cv_type_wchar_t=no
3408 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3409 if test $ac_cv_type_wchar_t = no; then
3410 cat >> confdefs.h <<\EOF
3411 #define wchar_t unsigned short
3417 ############################################
3418 # for cups support we need libcups, and a handful of header files
3420 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3421 echo "configure:3422: checking for httpConnect in -lcups" >&5
3422 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 ac_save_LIBS="$LIBS"
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 eval "ac_cv_lib_$ac_lib_var=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_lib_$ac_lib_var=no"
3450 LIBS="$ac_save_LIBS"
3453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3457 cat >> confdefs.h <<EOF
3458 #define $ac_tr_lib 1
3464 echo "$ac_t""no" 1>&6
3468 # I wonder if there is a nicer way of doing this?
3470 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3471 for ac_hdr in cups/cups.h cups/language.h
3473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3475 echo "configure:3476: checking for $ac_hdr" >&5
3476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3485 { (eval echo configure:3486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3487 if test -z "$ac_err"; then
3489 eval "ac_cv_header_$ac_safe=yes"
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3495 eval "ac_cv_header_$ac_safe=no"
3499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3502 cat >> confdefs.h <<EOF
3503 #define $ac_tr_hdr 1
3507 echo "$ac_t""no" 1>&6
3511 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3512 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3513 cat >> confdefs.h <<\EOF
3521 ############################################
3522 # we need libdl for PAM and the new VFS code
3523 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3524 echo "configure:3525: checking for dlopen in -ldl" >&5
3525 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 ac_save_LIBS="$LIBS"
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3545 eval "ac_cv_lib_$ac_lib_var=yes"
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 eval "ac_cv_lib_$ac_lib_var=no"
3553 LIBS="$ac_save_LIBS"
3556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3559 cat >> confdefs.h <<\EOF
3560 #define HAVE_LIBDL 1
3564 echo "$ac_t""no" 1>&6
3568 ############################################
3569 # check if the compiler can do immediate structures
3570 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3571 echo "configure:3572: checking for immediate structures" >&5
3572 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3583 #define X_FOOBAR(x) ((FOOBAR) { x })
3584 typedef struct {unsigned x;} FOOBAR;
3585 FOOBAR f = X_FOOBAR(1);
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3591 samba_cv_immediate_structures=yes
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 samba_cv_immediate_structures=no
3601 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3602 if test x"$samba_cv_immediate_structures" = x"yes"; then
3603 cat >> confdefs.h <<\EOF
3604 #define HAVE_IMMEDIATE_STRUCTURES 1
3609 ############################################
3610 # check for unix domain sockets
3611 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3612 echo "configure:3613: checking for unix domain sockets" >&5
3613 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3621 #include <sys/types.h>
3624 #include <sys/socket.h>
3628 struct sockaddr_un sunaddr;
3629 sunaddr.sun_family = AF_UNIX;
3633 if { (eval echo configure:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635 samba_cv_unixsocket=yes
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3640 samba_cv_unixsocket=no
3645 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3646 if test x"$samba_cv_unixsocket" = x"yes"; then
3647 cat >> confdefs.h <<\EOF
3648 #define HAVE_UNIXSOCKET 1
3654 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3655 echo "configure:3656: checking for socklen_t type" >&5
3656 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3664 #include <sys/types.h>
3669 #include <sys/socket.h>
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3676 samba_cv_socklen_t=yes
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 samba_cv_socklen_t=no
3686 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3687 if test x"$samba_cv_socklen_t" = x"yes"; then
3688 cat >> confdefs.h <<\EOF
3689 #define HAVE_SOCKLEN_T_TYPE 1
3694 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3695 echo "configure:3696: checking for sig_atomic_t type" >&5
3696 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3704 #include <sys/types.h>
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 samba_cv_sig_atomic_t=yes
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 samba_cv_sig_atomic_t=no
3726 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3727 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3728 cat >> confdefs.h <<\EOF
3729 #define HAVE_SIG_ATOMIC_T_TYPE 1
3734 # stupid headers have the functions but no declaration. grrrr.
3736 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3737 echo "configure:3738: checking for errno declaration" >&5
3738 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752 ac_cv_have_errno_decl=yes
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3757 ac_cv_have_errno_decl=no
3762 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3763 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3764 cat >> confdefs.h <<\EOF
3765 #define HAVE_ERRNO_DECL 1
3771 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3772 echo "configure:3773: checking for setresuid declaration" >&5
3773 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3782 int i = (int)setresuid
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3787 ac_cv_have_setresuid_decl=yes
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3792 ac_cv_have_setresuid_decl=no
3797 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3798 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3799 cat >> confdefs.h <<\EOF
3800 #define HAVE_SETRESUID_DECL 1
3806 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3807 echo "configure:3808: checking for setresgid declaration" >&5
3808 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3817 int i = (int)setresgid
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 ac_cv_have_setresgid_decl=yes
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3827 ac_cv_have_setresgid_decl=no
3832 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3833 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3834 cat >> confdefs.h <<\EOF
3835 #define HAVE_SETRESGID_DECL 1
3841 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3842 echo "configure:3843: checking for asprintf declaration" >&5
3843 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3852 int i = (int)asprintf
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3857 ac_cv_have_asprintf_decl=yes
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3862 ac_cv_have_asprintf_decl=no
3867 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3868 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3869 cat >> confdefs.h <<\EOF
3870 #define HAVE_ASPRINTF_DECL 1
3876 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3877 echo "configure:3878: checking for vasprintf declaration" >&5
3878 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3887 int i = (int)vasprintf
3890 if { (eval echo configure:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892 ac_cv_have_vasprintf_decl=yes
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3897 ac_cv_have_vasprintf_decl=no
3902 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3903 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3904 cat >> confdefs.h <<\EOF
3905 #define HAVE_VASPRINTF_DECL 1
3911 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3912 echo "configure:3913: checking for vsnprintf declaration" >&5
3913 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+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"
3922 int i = (int)vsnprintf
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 ac_cv_have_vsnprintf_decl=yes
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 ac_cv_have_vsnprintf_decl=no
3937 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3938 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3939 cat >> confdefs.h <<\EOF
3940 #define HAVE_VSNPRINTF_DECL 1
3946 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3947 echo "configure:3948: checking for snprintf declaration" >&5
3948 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3957 int i = (int)snprintf
3960 if { (eval echo configure:3961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 ac_cv_have_snprintf_decl=yes
3964 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3967 ac_cv_have_snprintf_decl=no
3972 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3973 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3974 cat >> confdefs.h <<\EOF
3975 #define HAVE_SNPRINTF_DECL 1
3981 # and glibc has setresuid under linux but the function does
3982 # nothing until kernel 2.1.44! very dumb.
3983 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3984 echo "configure:3985: checking for real setresuid" >&5
3985 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3989 if test "$cross_compiling" = yes; then
3990 samba_cv_have_setresuid=cross
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3996 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4000 samba_cv_have_setresuid=yes
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 samba_cv_have_setresuid=no
4012 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4013 if test x"$samba_cv_have_setresuid" = x"yes"; then
4014 cat >> confdefs.h <<\EOF
4015 #define HAVE_SETRESUID 1
4020 # Do the same check for setresguid...
4022 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4023 echo "configure:4024: checking for real setresgid" >&5
4024 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4028 if test "$cross_compiling" = yes; then
4029 samba_cv_have_setresgid=cross
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4036 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4040 samba_cv_have_setresgid=yes
4042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4045 samba_cv_have_setresgid=no
4052 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4053 if test x"$samba_cv_have_setresgid" = x"yes"; then
4054 cat >> confdefs.h <<\EOF
4055 #define HAVE_SETRESGID 1
4060 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4061 echo "configure:4062: checking for 8-bit clean memcmp" >&5
4062 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4065 if test "$cross_compiling" = yes; then
4066 ac_cv_func_memcmp_clean=no
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4074 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4075 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4079 if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4081 ac_cv_func_memcmp_clean=yes
4083 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4086 ac_cv_func_memcmp_clean=no
4093 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4094 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4097 ###############################################
4098 # test for where we get crypt() from
4099 for ac_func in crypt
4101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4102 echo "configure:4103: checking for $ac_func" >&5
4103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4109 /* System header to define __stub macros and hopefully few prototypes,
4110 which can conflict with char $ac_func(); below. */
4112 /* Override any gcc2 internal prototype to avoid an error. */
4113 /* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4119 /* The GNU C library defines this for functions which it implements
4120 to always fail with ENOSYS. Some functions are actually named
4121 something starting with __ and the normal name is an alias. */
4122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4130 if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4132 eval "ac_cv_func_$ac_func=yes"
4134 echo "configure: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4137 eval "ac_cv_func_$ac_func=no"
4142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4145 cat >> confdefs.h <<EOF
4146 #define $ac_tr_func 1
4150 echo "$ac_t""no" 1>&6
4154 if test x"$ac_cv_func_crypt" = x"no"; then
4155 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4156 echo "configure:4157: checking for crypt in -lcrypt" >&5
4157 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 ac_save_LIBS="$LIBS"
4162 LIBS="-lcrypt $LIBS"
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4177 eval "ac_cv_lib_$ac_lib_var=yes"
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4182 eval "ac_cv_lib_$ac_lib_var=no"
4185 LIBS="$ac_save_LIBS"
4188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 LIBS="$LIBS -lcrypt";
4191 cat >> confdefs.h <<\EOF
4192 #define HAVE_CRYPT 1
4196 echo "$ac_t""no" 1>&6
4202 ###############################################
4203 # Readline included by default unless explicitly asked not to
4204 test "${with_readline+set}" != "set" && with_readline=yes
4206 # test for where we get readline() from
4207 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4208 echo "configure:4209: checking whether to use readline" >&5
4209 # Check whether --with-readline or --without-readline was given.
4210 if test "${with_readline+set}" = set; then
4211 withval="$with_readline"
4212 case "$with_readline" in
4214 echo "$ac_t""yes" 1>&6
4216 for ac_hdr in readline.h history.h readline/readline.h
4218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4220 echo "configure:4221: checking for $ac_hdr" >&5
4221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4230 { (eval echo configure:4231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4232 if test -z "$ac_err"; then
4234 eval "ac_cv_header_$ac_safe=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 eval "ac_cv_header_$ac_safe=no"
4244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4247 cat >> confdefs.h <<EOF
4248 #define $ac_tr_hdr 1
4252 echo "$ac_t""no" 1>&6
4256 for ac_hdr in readline/history.h
4258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4260 echo "configure:4261: checking for $ac_hdr" >&5
4261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4270 { (eval echo configure:4271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4272 if test -z "$ac_err"; then
4274 eval "ac_cv_header_$ac_safe=yes"
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4280 eval "ac_cv_header_$ac_safe=no"
4284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4287 cat >> confdefs.h <<EOF
4288 #define $ac_tr_hdr 1
4292 echo "$ac_t""no" 1>&6
4297 for ac_hdr in readline.h readline/readline.h
4299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4301 echo "configure:4302: checking for $ac_hdr" >&5
4302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4311 { (eval echo configure:4312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4313 if test -z "$ac_err"; then
4315 eval "ac_cv_header_$ac_safe=yes"
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4321 eval "ac_cv_header_$ac_safe=no"
4325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4326 echo "$ac_t""yes" 1>&6
4327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4328 cat >> confdefs.h <<EOF
4329 #define $ac_tr_hdr 1
4332 for termlib in ncurses curses termcap terminfo termlib; do
4333 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4334 echo "configure:4335: checking for tgetent in -l${termlib}" >&5
4335 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 ac_save_LIBS="$LIBS"
4340 LIBS="-l${termlib} $LIBS"
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355 eval "ac_cv_lib_$ac_lib_var=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4360 eval "ac_cv_lib_$ac_lib_var=no"
4363 LIBS="$ac_save_LIBS"
4366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4368 TERMLIBS="-l${termlib}"; break
4370 echo "$ac_t""no" 1>&6
4374 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4375 echo "configure:4376: checking for rl_callback_handler_install in -lreadline" >&5
4376 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 ac_save_LIBS="$LIBS"
4381 LIBS="-lreadline $TERMLIBS $LIBS"
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */
4388 char rl_callback_handler_install();
4391 rl_callback_handler_install()
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4396 eval "ac_cv_lib_$ac_lib_var=yes"
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4401 eval "ac_cv_lib_$ac_lib_var=no"
4404 LIBS="$ac_save_LIBS"
4407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4409 TERMLIBS="-lreadline $TERMLIBS"
4410 cat >> confdefs.h <<\EOF
4411 #define HAVE_LIBREADLINE 1
4416 echo "$ac_t""no" 1>&6
4421 echo "$ac_t""no" 1>&6
4427 echo "$ac_t""no" 1>&6
4430 echo "$ac_t""yes" 1>&6
4432 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4433 # alternate readline path
4435 _cppflags=${CPPFLAGS}
4437 # Add additional search path
4438 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4439 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4441 for ac_hdr in readline.h history.h readline/readline.h
4443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4445 echo "configure:4446: checking for $ac_hdr" >&5
4446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4455 { (eval echo configure:4456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4457 if test -z "$ac_err"; then
4459 eval "ac_cv_header_$ac_safe=yes"
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 eval "ac_cv_header_$ac_safe=no"
4469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4472 cat >> confdefs.h <<EOF
4473 #define $ac_tr_hdr 1
4477 echo "$ac_t""no" 1>&6
4481 for ac_hdr in readline/history.h
4483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_hdr" >&5
4486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4499 eval "ac_cv_header_$ac_safe=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 eval "ac_cv_header_$ac_safe=no"
4509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4512 cat >> confdefs.h <<EOF
4513 #define $ac_tr_hdr 1
4517 echo "$ac_t""no" 1>&6
4522 for ac_hdr in readline.h readline/readline.h
4524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4526 echo "configure:4527: checking for $ac_hdr" >&5
4527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4536 { (eval echo configure:4537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4538 if test -z "$ac_err"; then
4540 eval "ac_cv_header_$ac_safe=yes"
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4546 eval "ac_cv_header_$ac_safe=no"
4550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4553 cat >> confdefs.h <<EOF
4554 #define $ac_tr_hdr 1
4557 for termlib in ncurses curses termcap terminfo termlib; do
4558 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4559 echo "configure:4560: checking for tgetent in -l${termlib}" >&5
4560 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 ac_save_LIBS="$LIBS"
4565 LIBS="-l${termlib} $LIBS"
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 eval "ac_cv_lib_$ac_lib_var=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4585 eval "ac_cv_lib_$ac_lib_var=no"
4588 LIBS="$ac_save_LIBS"
4591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4593 TERMLIBS="-l${termlib}"; break
4595 echo "$ac_t""no" 1>&6
4599 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4600 echo "configure:4601: checking for rl_callback_handler_install in -lreadline" >&5
4601 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 ac_save_LIBS="$LIBS"
4606 LIBS="-lreadline $TERMLIBS $LIBS"
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 /* Override any gcc2 internal prototype to avoid an error. */
4611 /* We use char because int might match the return type of a gcc2
4612 builtin and then its argument prototype would still apply. */
4613 char rl_callback_handler_install();
4616 rl_callback_handler_install()
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4621 eval "ac_cv_lib_$ac_lib_var=yes"
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4626 eval "ac_cv_lib_$ac_lib_var=no"
4629 LIBS="$ac_save_LIBS"
4632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 TERMLDFLAGS="-L$with_readline/lib"
4635 TERMCPPFLAGS="-I$with_readline/include"
4636 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4637 TERMLIBS="-lreadline $TERMLIBS"
4638 cat >> confdefs.h <<\EOF
4639 #define HAVE_LIBREADLINE 1
4644 echo "$ac_t""no" 1>&6
4645 TERMLIBS= CPPFLAGS=$_cppflags
4649 echo "$ac_t""no" 1>&6
4658 echo "$ac_t""no" 1>&6
4665 # The readline API changed slightly from readline3 to readline4, so
4666 # code will generate warnings on one of them unless we have a few
4668 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4669 echo "configure:4670: checking for rl_completion_matches in -lreadline" >&5
4670 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 ac_save_LIBS="$LIBS"
4675 LIBS="-lreadline $TERMLIBS $LIBS"
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682 char rl_completion_matches();
4685 rl_completion_matches()
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 eval "ac_cv_lib_$ac_lib_var=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 eval "ac_cv_lib_$ac_lib_var=no"
4698 LIBS="$ac_save_LIBS"
4701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4703 cat >> confdefs.h <<\EOF
4704 #define HAVE_NEW_LIBREADLINE 1
4708 echo "$ac_t""no" 1>&6
4712 # The following test taken from the cvs sources
4713 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4714 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4715 # libsocket.so which has a bad implementation of gethostbyname (it
4716 # only looks in /etc/hosts), so we only look for -lsocket if we need
4718 for ac_func in connect
4720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4721 echo "configure:4722: checking for $ac_func" >&5
4722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4725 cat > conftest.$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* System header to define __stub macros and hopefully few prototypes,
4729 which can conflict with char $ac_func(); below. */
4731 /* Override any gcc2 internal prototype to avoid an error. */
4732 /* We use char because int might match the return type of a gcc2
4733 builtin and then its argument prototype would still apply. */
4738 /* The GNU C library defines this for functions which it implements
4739 to always fail with ENOSYS. Some functions are actually named
4740 something starting with __ and the normal name is an alias. */
4741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4751 eval "ac_cv_func_$ac_func=yes"
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 eval "ac_cv_func_$ac_func=no"
4761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4764 cat >> confdefs.h <<EOF
4765 #define $ac_tr_func 1
4769 echo "$ac_t""no" 1>&6
4773 if test x"$ac_cv_func_connect" = x"no"; then
4776 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4777 echo "configure:4778: checking for printf in -lnsl_s" >&5
4778 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 ac_save_LIBS="$LIBS"
4783 LIBS="-lnsl_s $LIBS"
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 /* Override any gcc2 internal prototype to avoid an error. */
4788 /* We use char because int might match the return type of a gcc2
4789 builtin and then its argument prototype would still apply. */
4796 if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4798 eval "ac_cv_lib_$ac_lib_var=yes"
4800 echo "configure: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4803 eval "ac_cv_lib_$ac_lib_var=no"
4806 LIBS="$ac_save_LIBS"
4809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4810 echo "$ac_t""yes" 1>&6
4811 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4812 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4813 cat >> confdefs.h <<EOF
4814 #define $ac_tr_lib 1
4817 LIBS="-lnsl_s $LIBS"
4820 echo "$ac_t""no" 1>&6
4826 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4827 echo "configure:4828: checking for printf in -lnsl" >&5
4828 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 ac_save_LIBS="$LIBS"
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 /* Override any gcc2 internal prototype to avoid an error. */
4838 /* We use char because int might match the return type of a gcc2
4839 builtin and then its argument prototype would still apply. */
4846 if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848 eval "ac_cv_lib_$ac_lib_var=yes"
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4853 eval "ac_cv_lib_$ac_lib_var=no"
4856 LIBS="$ac_save_LIBS"
4859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4860 echo "$ac_t""yes" 1>&6
4861 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4862 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4863 cat >> confdefs.h <<EOF
4864 #define $ac_tr_lib 1
4870 echo "$ac_t""no" 1>&6
4876 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4877 echo "configure:4878: checking for connect in -lsocket" >&5
4878 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4882 ac_save_LIBS="$LIBS"
4883 LIBS="-lsocket $LIBS"
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4896 if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4898 eval "ac_cv_lib_$ac_lib_var=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_lib_$ac_lib_var=no"
4906 LIBS="$ac_save_LIBS"
4909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4910 echo "$ac_t""yes" 1>&6
4911 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4912 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_lib 1
4917 LIBS="-lsocket $LIBS"
4920 echo "$ac_t""no" 1>&6
4926 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4927 echo "configure:4928: checking for connect in -linet" >&5
4928 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4932 ac_save_LIBS="$LIBS"
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4946 if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4948 eval "ac_cv_lib_$ac_lib_var=yes"
4950 echo "configure: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4953 eval "ac_cv_lib_$ac_lib_var=no"
4956 LIBS="$ac_save_LIBS"
4959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4960 echo "$ac_t""yes" 1>&6
4961 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4962 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_lib 1
4970 echo "$ac_t""no" 1>&6
4974 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4975 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4976 # ac_cv_func_connect=yes
4977 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4978 cat >> confdefs.h <<\EOF
4979 #define HAVE_CONNECT 1
4985 ###############################################
4986 # test for where we get get_yp_default_domain() from
4987 for ac_func in yp_get_default_domain
4989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4990 echo "configure:4991: checking for $ac_func" >&5
4991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4997 /* System header to define __stub macros and hopefully few prototypes,
4998 which can conflict with char $ac_func(); below. */
5000 /* Override any gcc2 internal prototype to avoid an error. */
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5007 /* The GNU C library defines this for functions which it implements
5008 to always fail with ENOSYS. Some functions are actually named
5009 something starting with __ and the normal name is an alias. */
5010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020 eval "ac_cv_func_$ac_func=yes"
5022 echo "configure: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5025 eval "ac_cv_func_$ac_func=no"
5030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5031 echo "$ac_t""yes" 1>&6
5032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5033 cat >> confdefs.h <<EOF
5034 #define $ac_tr_func 1
5038 echo "$ac_t""no" 1>&6
5042 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5043 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5044 echo "configure:5045: checking for yp_get_default_domain in -lnsl" >&5
5045 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5049 ac_save_LIBS="$LIBS"
5051 cat > conftest.$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5054 /* Override any gcc2 internal prototype to avoid an error. */
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5057 char yp_get_default_domain();
5060 yp_get_default_domain()
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 eval "ac_cv_lib_$ac_lib_var=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_lib_$ac_lib_var=no"
5073 LIBS="$ac_save_LIBS"
5076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5079 cat >> confdefs.h <<\EOF
5080 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5084 echo "$ac_t""no" 1>&6
5089 # Check if we have execl, if not we need to compile smbrun.
5090 for ac_func in execl
5092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5093 echo "configure:5094: checking for $ac_func" >&5
5094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5100 /* System header to define __stub macros and hopefully few prototypes,
5101 which can conflict with char $ac_func(); below. */
5103 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5110 /* The GNU C library defines this for functions which it implements
5111 to always fail with ENOSYS. Some functions are actually named
5112 something starting with __ and the normal name is an alias. */
5113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5121 if { (eval echo configure:5122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5123 eval "ac_cv_func_$ac_func=yes"
5125 echo "configure: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5128 eval "ac_cv_func_$ac_func=no"
5133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5134 echo "$ac_t""yes" 1>&6
5135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5136 cat >> confdefs.h <<EOF
5137 #define $ac_tr_func 1
5141 echo "$ac_t""no" 1>&6
5145 if test x"$ac_cv_func_execl" = x"no"; then
5146 RUNPROG="bin/smbrun"
5151 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_func" >&5
5155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 /* System header to define __stub macros and hopefully few prototypes,
5162 which can conflict with char $ac_func(); below. */
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5184 eval "ac_cv_func_$ac_func=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 eval "ac_cv_func_$ac_func=no"
5194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5195 echo "$ac_t""yes" 1>&6
5196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5197 cat >> confdefs.h <<EOF
5198 #define $ac_tr_func 1
5202 echo "$ac_t""no" 1>&6
5206 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5209 echo "configure:5210: checking for $ac_func" >&5
5210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 /* System header to define __stub macros and hopefully few prototypes,
5217 which can conflict with char $ac_func(); below. */
5219 /* Override any gcc2 internal prototype to avoid an error. */
5220 /* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5226 /* The GNU C library defines this for functions which it implements
5227 to always fail with ENOSYS. Some functions are actually named
5228 something starting with __ and the normal name is an alias. */
5229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 eval "ac_cv_func_$ac_func=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5244 eval "ac_cv_func_$ac_func=no"
5249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5252 cat >> confdefs.h <<EOF
5253 #define $ac_tr_func 1
5257 echo "$ac_t""no" 1>&6
5261 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5264 echo "configure:5265: checking for $ac_func" >&5
5265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5268 cat > conftest.$ac_ext <<EOF
5269 #line 5270 "configure"
5270 #include "confdefs.h"
5271 /* System header to define __stub macros and hopefully few prototypes,
5272 which can conflict with char $ac_func(); below. */
5274 /* Override any gcc2 internal prototype to avoid an error. */
5275 /* We use char because int might match the return type of a gcc2
5276 builtin and then its argument prototype would still apply. */
5281 /* The GNU C library defines this for functions which it implements
5282 to always fail with ENOSYS. Some functions are actually named
5283 something starting with __ and the normal name is an alias. */
5284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5292 if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5294 eval "ac_cv_func_$ac_func=yes"
5296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5299 eval "ac_cv_func_$ac_func=no"
5304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5305 echo "$ac_t""yes" 1>&6
5306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5307 cat >> confdefs.h <<EOF
5308 #define $ac_tr_func 1
5312 echo "$ac_t""no" 1>&6
5316 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5319 echo "configure:5320: checking for $ac_func" >&5
5320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5326 /* System header to define __stub macros and hopefully few prototypes,
5327 which can conflict with char $ac_func(); below. */
5329 /* Override any gcc2 internal prototype to avoid an error. */
5330 /* We use char because int might match the return type of a gcc2
5331 builtin and then its argument prototype would still apply. */
5336 /* The GNU C library defines this for functions which it implements
5337 to always fail with ENOSYS. Some functions are actually named
5338 something starting with __ and the normal name is an alias. */
5339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5347 if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 eval "ac_cv_func_$ac_func=yes"
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 eval "ac_cv_func_$ac_func=no"
5359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5360 echo "$ac_t""yes" 1>&6
5361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5362 cat >> confdefs.h <<EOF
5363 #define $ac_tr_func 1
5367 echo "$ac_t""no" 1>&6
5371 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5374 echo "configure:5375: checking for $ac_func" >&5
5375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5381 /* System header to define __stub macros and hopefully few prototypes,
5382 which can conflict with char $ac_func(); below. */
5384 /* Override any gcc2 internal prototype to avoid an error. */
5385 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */
5391 /* The GNU C library defines this for functions which it implements
5392 to always fail with ENOSYS. Some functions are actually named
5393 something starting with __ and the normal name is an alias. */
5394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5402 if { (eval echo configure:5403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5404 eval "ac_cv_func_$ac_func=yes"
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5409 eval "ac_cv_func_$ac_func=no"
5414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5415 echo "$ac_t""yes" 1>&6
5416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5417 cat >> confdefs.h <<EOF
5418 #define $ac_tr_func 1
5422 echo "$ac_t""no" 1>&6
5426 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5429 echo "configure:5430: checking for $ac_func" >&5
5430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 /* System header to define __stub macros and hopefully few prototypes,
5437 which can conflict with char $ac_func(); below. */
5439 /* Override any gcc2 internal prototype to avoid an error. */
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5446 /* The GNU C library defines this for functions which it implements
5447 to always fail with ENOSYS. Some functions are actually named
5448 something starting with __ and the normal name is an alias. */
5449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459 eval "ac_cv_func_$ac_func=yes"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 eval "ac_cv_func_$ac_func=no"
5469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5470 echo "$ac_t""yes" 1>&6
5471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5472 cat >> confdefs.h <<EOF
5473 #define $ac_tr_func 1
5477 echo "$ac_t""no" 1>&6
5481 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5484 echo "configure:5485: checking for $ac_func" >&5
5485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 /* System header to define __stub macros and hopefully few prototypes,
5492 which can conflict with char $ac_func(); below. */
5494 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5501 /* The GNU C library defines this for functions which it implements
5502 to always fail with ENOSYS. Some functions are actually named
5503 something starting with __ and the normal name is an alias. */
5504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5514 eval "ac_cv_func_$ac_func=yes"
5516 echo "configure: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5519 eval "ac_cv_func_$ac_func=no"
5524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5527 cat >> confdefs.h <<EOF
5528 #define $ac_tr_func 1
5532 echo "$ac_t""no" 1>&6
5536 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5539 echo "configure:5540: checking for $ac_func" >&5
5540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5543 cat > conftest.$ac_ext <<EOF
5544 #line 5545 "configure"
5545 #include "confdefs.h"
5546 /* System header to define __stub macros and hopefully few prototypes,
5547 which can conflict with char $ac_func(); below. */
5549 /* Override any gcc2 internal prototype to avoid an error. */
5550 /* We use char because int might match the return type of a gcc2
5551 builtin and then its argument prototype would still apply. */
5556 /* The GNU C library defines this for functions which it implements
5557 to always fail with ENOSYS. Some functions are actually named
5558 something starting with __ and the normal name is an alias. */
5559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5569 eval "ac_cv_func_$ac_func=yes"
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5574 eval "ac_cv_func_$ac_func=no"
5579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5580 echo "$ac_t""yes" 1>&6
5581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5582 cat >> confdefs.h <<EOF
5583 #define $ac_tr_func 1
5587 echo "$ac_t""no" 1>&6
5591 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5594 echo "configure:5595: checking for $ac_func" >&5
5595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 /* System header to define __stub macros and hopefully few prototypes,
5602 which can conflict with char $ac_func(); below. */
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5611 /* The GNU C library defines this for functions which it implements
5612 to always fail with ENOSYS. Some functions are actually named
5613 something starting with __ and the normal name is an alias. */
5614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 eval "ac_cv_func_$ac_func=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 eval "ac_cv_func_$ac_func=no"
5634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5635 echo "$ac_t""yes" 1>&6
5636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5637 cat >> confdefs.h <<EOF
5638 #define $ac_tr_func 1
5642 echo "$ac_t""no" 1>&6
5646 for ac_func in syslog vsyslog
5648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5649 echo "configure:5650: checking for $ac_func" >&5
5650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5656 /* System header to define __stub macros and hopefully few prototypes,
5657 which can conflict with char $ac_func(); below. */
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 eval "ac_cv_func_$ac_func=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 eval "ac_cv_func_$ac_func=no"
5689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5692 cat >> confdefs.h <<EOF
5693 #define $ac_tr_func 1
5697 echo "$ac_t""no" 1>&6
5701 # setbuffer is needed for smbtorture
5702 for ac_func in setbuffer
5704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5705 echo "configure:5706: checking for $ac_func" >&5
5706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5712 /* System header to define __stub macros and hopefully few prototypes,
5713 which can conflict with char $ac_func(); below. */
5715 /* Override any gcc2 internal prototype to avoid an error. */
5716 /* We use char because int might match the return type of a gcc2
5717 builtin and then its argument prototype would still apply. */
5722 /* The GNU C library defines this for functions which it implements
5723 to always fail with ENOSYS. Some functions are actually named
5724 something starting with __ and the normal name is an alias. */
5725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5733 if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5735 eval "ac_cv_func_$ac_func=yes"
5737 echo "configure: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5740 eval "ac_cv_func_$ac_func=no"
5745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5748 cat >> confdefs.h <<EOF
5749 #define $ac_tr_func 1
5753 echo "$ac_t""no" 1>&6
5758 # syscall() is needed for smbwrapper.
5759 for ac_func in syscall
5761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5762 echo "configure:5763: checking for $ac_func" >&5
5763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5769 /* System header to define __stub macros and hopefully few prototypes,
5770 which can conflict with char $ac_func(); below. */
5772 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5779 /* The GNU C library defines this for functions which it implements
5780 to always fail with ENOSYS. Some functions are actually named
5781 something starting with __ and the normal name is an alias. */
5782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5792 eval "ac_cv_func_$ac_func=yes"
5794 echo "configure: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5797 eval "ac_cv_func_$ac_func=no"
5802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5803 echo "$ac_t""yes" 1>&6
5804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5805 cat >> confdefs.h <<EOF
5806 #define $ac_tr_func 1
5810 echo "$ac_t""no" 1>&6
5815 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5818 echo "configure:5819: checking for $ac_func" >&5
5819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 /* System header to define __stub macros and hopefully few prototypes,
5826 which can conflict with char $ac_func(); below. */
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5835 /* The GNU C library defines this for functions which it implements
5836 to always fail with ENOSYS. Some functions are actually named
5837 something starting with __ and the normal name is an alias. */
5838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848 eval "ac_cv_func_$ac_func=yes"
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 eval "ac_cv_func_$ac_func=no"
5858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5861 cat >> confdefs.h <<EOF
5862 #define $ac_tr_func 1
5866 echo "$ac_t""no" 1>&6
5870 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5873 echo "configure:5874: checking for $ac_func" >&5
5874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* System header to define __stub macros and hopefully few prototypes,
5881 which can conflict with char $ac_func(); below. */
5883 /* Override any gcc2 internal prototype to avoid an error. */
5884 /* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5890 /* The GNU C library defines this for functions which it implements
5891 to always fail with ENOSYS. Some functions are actually named
5892 something starting with __ and the normal name is an alias. */
5893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5901 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5903 eval "ac_cv_func_$ac_func=yes"
5905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5908 eval "ac_cv_func_$ac_func=no"
5913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5914 echo "$ac_t""yes" 1>&6
5915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5916 cat >> confdefs.h <<EOF
5917 #define $ac_tr_func 1
5921 echo "$ac_t""no" 1>&6
5925 for ac_func in __getcwd _getcwd
5927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5928 echo "configure:5929: checking for $ac_func" >&5
5929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 /* System header to define __stub macros and hopefully few prototypes,
5936 which can conflict with char $ac_func(); below. */
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 /* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5945 /* The GNU C library defines this for functions which it implements
5946 to always fail with ENOSYS. Some functions are actually named
5947 something starting with __ and the normal name is an alias. */
5948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958 eval "ac_cv_func_$ac_func=yes"
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5963 eval "ac_cv_func_$ac_func=no"
5968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5969 echo "$ac_t""yes" 1>&6
5970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5971 cat >> confdefs.h <<EOF
5972 #define $ac_tr_func 1
5976 echo "$ac_t""no" 1>&6
5980 for ac_func in __xstat __fxstat __lxstat
5982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5983 echo "configure:5984: checking for $ac_func" >&5
5984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 /* System header to define __stub macros and hopefully few prototypes,
5991 which can conflict with char $ac_func(); below. */
5993 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
6000 /* The GNU C library defines this for functions which it implements
6001 to always fail with ENOSYS. Some functions are actually named
6002 something starting with __ and the normal name is an alias. */
6003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6013 eval "ac_cv_func_$ac_func=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 eval "ac_cv_func_$ac_func=no"
6023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6024 echo "$ac_t""yes" 1>&6
6025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6026 cat >> confdefs.h <<EOF
6027 #define $ac_tr_func 1
6031 echo "$ac_t""no" 1>&6
6035 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6038 echo "configure:6039: checking for $ac_func" >&5
6039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 /* System header to define __stub macros and hopefully few prototypes,
6046 which can conflict with char $ac_func(); below. */
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6055 /* The GNU C library defines this for functions which it implements
6056 to always fail with ENOSYS. Some functions are actually named
6057 something starting with __ and the normal name is an alias. */
6058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6066 if { (eval echo configure:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6068 eval "ac_cv_func_$ac_func=yes"
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6073 eval "ac_cv_func_$ac_func=no"
6078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6081 cat >> confdefs.h <<EOF
6082 #define $ac_tr_func 1
6086 echo "$ac_t""no" 1>&6
6090 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6093 echo "configure:6094: checking for $ac_func" >&5
6094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char $ac_func(); below. */
6103 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6110 /* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6123 eval "ac_cv_func_$ac_func=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_func_$ac_func=no"
6133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6136 cat >> confdefs.h <<EOF
6137 #define $ac_tr_func 1
6141 echo "$ac_t""no" 1>&6
6145 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6148 echo "configure:6149: checking for $ac_func" >&5
6149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6152 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 /* System header to define __stub macros and hopefully few prototypes,
6156 which can conflict with char $ac_func(); below. */
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6165 /* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
6168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6178 eval "ac_cv_func_$ac_func=yes"
6180 echo "configure: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6183 eval "ac_cv_func_$ac_func=no"
6188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6191 cat >> confdefs.h <<EOF
6192 #define $ac_tr_func 1
6196 echo "$ac_t""no" 1>&6
6200 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6203 echo "configure:6204: checking for $ac_func" >&5
6204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func(); below. */
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6220 /* The GNU C library defines this for functions which it implements
6221 to always fail with ENOSYS. Some functions are actually named
6222 something starting with __ and the normal name is an alias. */
6223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 eval "ac_cv_func_$ac_func=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6238 eval "ac_cv_func_$ac_func=no"
6243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6246 cat >> confdefs.h <<EOF
6247 #define $ac_tr_func 1
6251 echo "$ac_t""no" 1>&6
6255 for ac_func in _write __write _fork __fork
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6288 eval "ac_cv_func_$ac_func=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6293 eval "ac_cv_func_$ac_func=no"
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h <<EOF
6302 #define $ac_tr_func 1
6306 echo "$ac_t""no" 1>&6
6310 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6313 echo "configure:6314: checking for $ac_func" >&5
6314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 /* System header to define __stub macros and hopefully few prototypes,
6321 which can conflict with char $ac_func(); below. */
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */
6330 /* The GNU C library defines this for functions which it implements
6331 to always fail with ENOSYS. Some functions are actually named
6332 something starting with __ and the normal name is an alias. */
6333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6341 if { (eval echo configure:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6343 eval "ac_cv_func_$ac_func=yes"
6345 echo "configure: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6348 eval "ac_cv_func_$ac_func=no"
6353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6354 echo "$ac_t""yes" 1>&6
6355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6356 cat >> confdefs.h <<EOF
6357 #define $ac_tr_func 1
6361 echo "$ac_t""no" 1>&6
6365 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6368 echo "configure:6369: checking for $ac_func" >&5
6369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 /* System header to define __stub macros and hopefully few prototypes,
6376 which can conflict with char $ac_func(); below. */
6378 /* Override any gcc2 internal prototype to avoid an error. */
6379 /* We use char because int might match the return type of a gcc2
6380 builtin and then its argument prototype would still apply. */
6385 /* The GNU C library defines this for functions which it implements
6386 to always fail with ENOSYS. Some functions are actually named
6387 something starting with __ and the normal name is an alias. */
6388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6396 if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6398 eval "ac_cv_func_$ac_func=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 eval "ac_cv_func_$ac_func=no"
6408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6409 echo "$ac_t""yes" 1>&6
6410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6411 cat >> confdefs.h <<EOF
6412 #define $ac_tr_func 1
6416 echo "$ac_t""no" 1>&6
6420 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6423 echo "configure:6424: checking for $ac_func" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* System header to define __stub macros and hopefully few prototypes,
6431 which can conflict with char $ac_func(); below. */
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 eval "ac_cv_func_$ac_func=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_func_$ac_func=no"
6463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6466 cat >> confdefs.h <<EOF
6467 #define $ac_tr_func 1
6471 echo "$ac_t""no" 1>&6
6475 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6478 echo "configure:6479: checking for $ac_func" >&5
6479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* System header to define __stub macros and hopefully few prototypes,
6486 which can conflict with char $ac_func(); below. */
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6495 /* The GNU C library defines this for functions which it implements
6496 to always fail with ENOSYS. Some functions are actually named
6497 something starting with __ and the normal name is an alias. */
6498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508 eval "ac_cv_func_$ac_func=yes"
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 eval "ac_cv_func_$ac_func=no"
6518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6521 cat >> confdefs.h <<EOF
6522 #define $ac_tr_func 1
6526 echo "$ac_t""no" 1>&6
6530 for ac_func in open64 _open64 __open64 creat64
6532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6533 echo "configure:6534: checking for $ac_func" >&5
6534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6535 echo $ac_n "(cached) $ac_c" 1>&6
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 /* System header to define __stub macros and hopefully few prototypes,
6541 which can conflict with char $ac_func(); below. */
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6550 /* The GNU C library defines this for functions which it implements
6551 to always fail with ENOSYS. Some functions are actually named
6552 something starting with __ and the normal name is an alias. */
6553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6561 if { (eval echo configure:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6563 eval "ac_cv_func_$ac_func=yes"
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6568 eval "ac_cv_func_$ac_func=no"
6573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6574 echo "$ac_t""yes" 1>&6
6575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6576 cat >> confdefs.h <<EOF
6577 #define $ac_tr_func 1
6581 echo "$ac_t""no" 1>&6
6587 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6590 if test x$ac_cv_func_stat64 = xno ; then
6591 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6592 echo "configure:6593: checking for stat64 in <sys/stat.h>" >&5
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6597 #if defined(HAVE_UNISTD_H)
6600 #include <sys/stat.h>
6603 struct stat64 st64; exit(stat64(".",&st64));
6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6608 ac_cv_func_stat64=yes
6610 echo "configure: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6614 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6615 if test x$ac_cv_func_stat64 = xyes ; then
6616 cat >> confdefs.h <<\EOF
6617 #define HAVE_STAT64 1
6623 if test x$ac_cv_func_lstat64 = xno ; then
6624 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6625 echo "configure:6626: checking for lstat64 in <sys/stat.h>" >&5
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6630 #if defined(HAVE_UNISTD_H)
6633 #include <sys/stat.h>
6636 struct stat64 st64; exit(lstat64(".",&st64));
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641 ac_cv_func_lstat64=yes
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6647 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6648 if test x$ac_cv_func_lstat64 = xyes ; then
6649 cat >> confdefs.h <<\EOF
6650 #define HAVE_LSTAT64 1
6656 if test x$ac_cv_func_fstat64 = xno ; then
6657 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6658 echo "configure:6659: checking for fstat64 in <sys/stat.h>" >&5
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6663 #if defined(HAVE_UNISTD_H)
6666 #include <sys/stat.h>
6669 struct stat64 st64; exit(fstat64(0,&st64));
6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6674 ac_cv_func_fstat64=yes
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6680 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6681 if test x$ac_cv_func_fstat64 = xyes ; then
6682 cat >> confdefs.h <<\EOF
6683 #define HAVE_FSTAT64 1
6689 #####################################
6690 # we might need the resolv library on some systems
6691 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6692 echo "configure:6693: checking for dn_expand in -lresolv" >&5
6693 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6697 ac_save_LIBS="$LIBS"
6698 LIBS="-lresolv $LIBS"
6699 cat > conftest.$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713 eval "ac_cv_lib_$ac_lib_var=yes"
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 eval "ac_cv_lib_$ac_lib_var=no"
6721 LIBS="$ac_save_LIBS"
6724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6725 echo "$ac_t""yes" 1>&6
6726 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6727 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6728 cat >> confdefs.h <<EOF
6729 #define $ac_tr_lib 1
6732 LIBS="-lresolv $LIBS"
6735 echo "$ac_t""no" 1>&6
6740 # Check for the functions putprpwnam, set_auth_parameters,
6741 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6742 # Needed for OSF1 and HPUX.
6746 *-lsecurity*) for ac_func in putprpwnam
6748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6749 echo "configure:6750: checking for $ac_func" >&5
6750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 /* System header to define __stub macros and hopefully few prototypes,
6757 which can conflict with char $ac_func(); below. */
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6766 /* The GNU C library defines this for functions which it implements
6767 to always fail with ENOSYS. Some functions are actually named
6768 something starting with __ and the normal name is an alias. */
6769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6777 if { (eval echo configure:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6779 eval "ac_cv_func_$ac_func=yes"
6781 echo "configure: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6784 eval "ac_cv_func_$ac_func=no"
6789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6790 echo "$ac_t""yes" 1>&6
6791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6792 cat >> confdefs.h <<EOF
6793 #define $ac_tr_func 1
6797 echo "$ac_t""no" 1>&6
6801 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6802 echo "configure:6803: checking for putprpwnam in -lsecurity" >&5
6803 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 ac_save_LIBS="$LIBS"
6808 LIBS="-lsecurity $LIBS"
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6821 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6823 eval "ac_cv_lib_$ac_lib_var=yes"
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6828 eval "ac_cv_lib_$ac_lib_var=no"
6831 LIBS="$ac_save_LIBS"
6834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6835 echo "$ac_t""yes" 1>&6
6836 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6838 cat >> confdefs.h <<EOF
6839 #define $ac_tr_lib 1
6842 LIBS="-lsecurity $LIBS"
6845 echo "$ac_t""no" 1>&6
6848 for ac_func in putprpwnam
6850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6851 echo "configure:6852: checking for $ac_func" >&5
6852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 /* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char $ac_func(); below. */
6861 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6879 if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6881 eval "ac_cv_func_$ac_func=yes"
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6886 eval "ac_cv_func_$ac_func=no"
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894 cat >> confdefs.h <<EOF
6895 #define $ac_tr_func 1
6899 echo "$ac_t""no" 1>&6
6907 *-lsec*) for ac_func in putprpwnam
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func(); below. */
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6940 eval "ac_cv_func_$ac_func=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6945 eval "ac_cv_func_$ac_func=no"
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953 cat >> confdefs.h <<EOF
6954 #define $ac_tr_func 1
6958 echo "$ac_t""no" 1>&6
6962 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6963 echo "configure:6964: checking for putprpwnam in -lsec" >&5
6964 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 ac_save_LIBS="$LIBS"
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6989 eval "ac_cv_lib_$ac_lib_var=no"
6992 LIBS="$ac_save_LIBS"
6995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6999 cat >> confdefs.h <<EOF
7000 #define $ac_tr_lib 1
7006 echo "$ac_t""no" 1>&6
7009 for ac_func in putprpwnam
7011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7012 echo "configure:7013: checking for $ac_func" >&5
7013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 cat > conftest.$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7019 /* System header to define __stub macros and hopefully few prototypes,
7020 which can conflict with char $ac_func(); below. */
7022 /* Override any gcc2 internal prototype to avoid an error. */
7023 /* We use char because int might match the return type of a gcc2
7024 builtin and then its argument prototype would still apply. */
7029 /* The GNU C library defines this for functions which it implements
7030 to always fail with ENOSYS. Some functions are actually named
7031 something starting with __ and the normal name is an alias. */
7032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 eval "ac_cv_func_$ac_func=yes"
7044 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7047 eval "ac_cv_func_$ac_func=no"
7052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7055 cat >> confdefs.h <<EOF
7056 #define $ac_tr_func 1
7060 echo "$ac_t""no" 1>&6
7069 *-lsecurity*) for ac_func in set_auth_parameters
7071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_func" >&5
7073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func(); below. */
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7102 eval "ac_cv_func_$ac_func=yes"
7104 echo "configure: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7107 eval "ac_cv_func_$ac_func=no"
7112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7113 echo "$ac_t""yes" 1>&6
7114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7115 cat >> confdefs.h <<EOF
7116 #define $ac_tr_func 1
7120 echo "$ac_t""no" 1>&6
7124 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7125 echo "configure:7126: checking for set_auth_parameters in -lsecurity" >&5
7126 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7130 ac_save_LIBS="$LIBS"
7131 LIBS="-lsecurity $LIBS"
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7138 char set_auth_parameters();
7141 set_auth_parameters()
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7146 eval "ac_cv_lib_$ac_lib_var=yes"
7148 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7151 eval "ac_cv_lib_$ac_lib_var=no"
7154 LIBS="$ac_save_LIBS"
7157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7159 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7161 cat >> confdefs.h <<EOF
7162 #define $ac_tr_lib 1
7165 LIBS="-lsecurity $LIBS"
7168 echo "$ac_t""no" 1>&6
7171 for ac_func in set_auth_parameters
7173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7174 echo "configure:7175: checking for $ac_func" >&5
7175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* System header to define __stub macros and hopefully few prototypes,
7182 which can conflict with char $ac_func(); below. */
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7191 /* The GNU C library defines this for functions which it implements
7192 to always fail with ENOSYS. Some functions are actually named
7193 something starting with __ and the normal name is an alias. */
7194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 eval "ac_cv_func_$ac_func=yes"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 eval "ac_cv_func_$ac_func=no"
7214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_func 1
7222 echo "$ac_t""no" 1>&6
7230 *-lsec*) for ac_func in set_auth_parameters
7232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7233 echo "configure:7234: checking for $ac_func" >&5
7234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* System header to define __stub macros and hopefully few prototypes,
7241 which can conflict with char $ac_func(); below. */
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7250 /* The GNU C library defines this for functions which it implements
7251 to always fail with ENOSYS. Some functions are actually named
7252 something starting with __ and the normal name is an alias. */
7253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7263 eval "ac_cv_func_$ac_func=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 eval "ac_cv_func_$ac_func=no"
7273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7276 cat >> confdefs.h <<EOF
7277 #define $ac_tr_func 1
7281 echo "$ac_t""no" 1>&6
7285 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7286 echo "configure:7287: checking for set_auth_parameters in -lsec" >&5
7287 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 ac_save_LIBS="$LIBS"
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char set_auth_parameters();
7302 set_auth_parameters()
7305 if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7307 eval "ac_cv_lib_$ac_lib_var=yes"
7309 echo "configure: failed program was:" >&5
7310 cat conftest.$ac_ext >&5
7312 eval "ac_cv_lib_$ac_lib_var=no"
7315 LIBS="$ac_save_LIBS"
7318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7319 echo "$ac_t""yes" 1>&6
7320 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7322 cat >> confdefs.h <<EOF
7323 #define $ac_tr_lib 1
7329 echo "$ac_t""no" 1>&6
7332 for ac_func in set_auth_parameters
7334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7335 echo "configure:7336: checking for $ac_func" >&5
7336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7339 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func(); below. */
7345 /* Override any gcc2 internal prototype to avoid an error. */
7346 /* We use char because int might match the return type of a gcc2
7347 builtin and then its argument prototype would still apply. */
7352 /* The GNU C library defines this for functions which it implements
7353 to always fail with ENOSYS. Some functions are actually named
7354 something starting with __ and the normal name is an alias. */
7355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365 eval "ac_cv_func_$ac_func=yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7370 eval "ac_cv_func_$ac_func=no"
7375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7378 cat >> confdefs.h <<EOF
7379 #define $ac_tr_func 1
7383 echo "$ac_t""no" 1>&6
7391 # UnixWare 7.x has its getspnam in -lgen
7393 *-lgen*) for ac_func in getspnam
7395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7396 echo "configure:7397: checking for $ac_func" >&5
7397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7398 echo $ac_n "(cached) $ac_c" 1>&6
7400 cat > conftest.$ac_ext <<EOF
7401 #line 7402 "configure"
7402 #include "confdefs.h"
7403 /* System header to define __stub macros and hopefully few prototypes,
7404 which can conflict with char $ac_func(); below. */
7406 /* Override any gcc2 internal prototype to avoid an error. */
7407 /* We use char because int might match the return type of a gcc2
7408 builtin and then its argument prototype would still apply. */
7413 /* The GNU C library defines this for functions which it implements
7414 to always fail with ENOSYS. Some functions are actually named
7415 something starting with __ and the normal name is an alias. */
7416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7424 if { (eval echo configure:7425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7426 eval "ac_cv_func_$ac_func=yes"
7428 echo "configure: failed program was:" >&5
7429 cat conftest.$ac_ext >&5
7431 eval "ac_cv_func_$ac_func=no"
7436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7437 echo "$ac_t""yes" 1>&6
7438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7439 cat >> confdefs.h <<EOF
7440 #define $ac_tr_func 1
7444 echo "$ac_t""no" 1>&6
7448 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7449 echo "configure:7450: checking for getspnam in -lgen" >&5
7450 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7452 echo $ac_n "(cached) $ac_c" 1>&6
7454 ac_save_LIBS="$LIBS"
7456 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 /* Override any gcc2 internal prototype to avoid an error. */
7460 /* We use char because int might match the return type of a gcc2
7461 builtin and then its argument prototype would still apply. */
7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7470 eval "ac_cv_lib_$ac_lib_var=yes"
7472 echo "configure: failed program was:" >&5
7473 cat conftest.$ac_ext >&5
7475 eval "ac_cv_lib_$ac_lib_var=no"
7478 LIBS="$ac_save_LIBS"
7481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7482 echo "$ac_t""yes" 1>&6
7483 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7484 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7485 cat >> confdefs.h <<EOF
7486 #define $ac_tr_lib 1
7492 echo "$ac_t""no" 1>&6
7495 for ac_func in getspnam
7497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7498 echo "configure:7499: checking for $ac_func" >&5
7499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7502 cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 /* System header to define __stub macros and hopefully few prototypes,
7506 which can conflict with char $ac_func(); below. */
7508 /* Override any gcc2 internal prototype to avoid an error. */
7509 /* We use char because int might match the return type of a gcc2
7510 builtin and then its argument prototype would still apply. */
7515 /* The GNU C library defines this for functions which it implements
7516 to always fail with ENOSYS. Some functions are actually named
7517 something starting with __ and the normal name is an alias. */
7518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7526 if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528 eval "ac_cv_func_$ac_func=yes"
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7533 eval "ac_cv_func_$ac_func=no"
7538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7539 echo "$ac_t""yes" 1>&6
7540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7541 cat >> confdefs.h <<EOF
7542 #define $ac_tr_func 1
7546 echo "$ac_t""no" 1>&6
7555 *-lsecurity*) for ac_func in getspnam
7557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7558 echo "configure:7559: checking for $ac_func" >&5
7559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7560 echo $ac_n "(cached) $ac_c" 1>&6
7562 cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 /* System header to define __stub macros and hopefully few prototypes,
7566 which can conflict with char $ac_func(); below. */
7568 /* Override any gcc2 internal prototype to avoid an error. */
7569 /* We use char because int might match the return type of a gcc2
7570 builtin and then its argument prototype would still apply. */
7575 /* The GNU C library defines this for functions which it implements
7576 to always fail with ENOSYS. Some functions are actually named
7577 something starting with __ and the normal name is an alias. */
7578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7586 if { (eval echo configure:7587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7588 eval "ac_cv_func_$ac_func=yes"
7590 echo "configure: failed program was:" >&5
7591 cat conftest.$ac_ext >&5
7593 eval "ac_cv_func_$ac_func=no"
7598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7599 echo "$ac_t""yes" 1>&6
7600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7601 cat >> confdefs.h <<EOF
7602 #define $ac_tr_func 1
7606 echo "$ac_t""no" 1>&6
7610 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7611 echo "configure:7612: checking for getspnam in -lsecurity" >&5
7612 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7616 ac_save_LIBS="$LIBS"
7617 LIBS="-lsecurity $LIBS"
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7630 if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 eval "ac_cv_lib_$ac_lib_var=yes"
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7637 eval "ac_cv_lib_$ac_lib_var=no"
7640 LIBS="$ac_save_LIBS"
7643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7644 echo "$ac_t""yes" 1>&6
7645 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7646 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7647 cat >> confdefs.h <<EOF
7648 #define $ac_tr_lib 1
7651 LIBS="-lsecurity $LIBS"
7654 echo "$ac_t""no" 1>&6
7657 for ac_func in getspnam
7659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7660 echo "configure:7661: checking for $ac_func" >&5
7661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7662 echo $ac_n "(cached) $ac_c" 1>&6
7664 cat > conftest.$ac_ext <<EOF
7665 #line 7666 "configure"
7666 #include "confdefs.h"
7667 /* System header to define __stub macros and hopefully few prototypes,
7668 which can conflict with char $ac_func(); below. */
7670 /* Override any gcc2 internal prototype to avoid an error. */
7671 /* We use char because int might match the return type of a gcc2
7672 builtin and then its argument prototype would still apply. */
7677 /* The GNU C library defines this for functions which it implements
7678 to always fail with ENOSYS. Some functions are actually named
7679 something starting with __ and the normal name is an alias. */
7680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7688 if { (eval echo configure:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690 eval "ac_cv_func_$ac_func=yes"
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7695 eval "ac_cv_func_$ac_func=no"
7700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7701 echo "$ac_t""yes" 1>&6
7702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7703 cat >> confdefs.h <<EOF
7704 #define $ac_tr_func 1
7708 echo "$ac_t""no" 1>&6
7716 *-lsec*) for ac_func in getspnam
7718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7719 echo "configure:7720: checking for $ac_func" >&5
7720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* System header to define __stub macros and hopefully few prototypes,
7727 which can conflict with char $ac_func(); below. */
7729 /* Override any gcc2 internal prototype to avoid an error. */
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7749 eval "ac_cv_func_$ac_func=yes"
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7754 eval "ac_cv_func_$ac_func=no"
7759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7762 cat >> confdefs.h <<EOF
7763 #define $ac_tr_func 1
7767 echo "$ac_t""no" 1>&6
7771 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7772 echo "configure:7773: checking for getspnam in -lsec" >&5
7773 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7777 ac_save_LIBS="$LIBS"
7779 cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 /* Override any gcc2 internal prototype to avoid an error. */
7783 /* We use char because int might match the return type of a gcc2
7784 builtin and then its argument prototype would still apply. */
7791 if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7793 eval "ac_cv_lib_$ac_lib_var=yes"
7795 echo "configure: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7798 eval "ac_cv_lib_$ac_lib_var=no"
7801 LIBS="$ac_save_LIBS"
7804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7805 echo "$ac_t""yes" 1>&6
7806 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7808 cat >> confdefs.h <<EOF
7809 #define $ac_tr_lib 1
7815 echo "$ac_t""no" 1>&6
7818 for ac_func in getspnam
7820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_func" >&5
7822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7825 cat > conftest.$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* System header to define __stub macros and hopefully few prototypes,
7829 which can conflict with char $ac_func(); below. */
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7838 /* The GNU C library defines this for functions which it implements
7839 to always fail with ENOSYS. Some functions are actually named
7840 something starting with __ and the normal name is an alias. */
7841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7849 if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851 eval "ac_cv_func_$ac_func=yes"
7853 echo "configure: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7856 eval "ac_cv_func_$ac_func=no"
7861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7864 cat >> confdefs.h <<EOF
7865 #define $ac_tr_func 1
7869 echo "$ac_t""no" 1>&6
7878 *-lsecurity*) for ac_func in bigcrypt
7880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7881 echo "configure:7882: checking for $ac_func" >&5
7882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6
7885 cat > conftest.$ac_ext <<EOF
7886 #line 7887 "configure"
7887 #include "confdefs.h"
7888 /* System header to define __stub macros and hopefully few prototypes,
7889 which can conflict with char $ac_func(); below. */
7891 /* Override any gcc2 internal prototype to avoid an error. */
7892 /* We use char because int might match the return type of a gcc2
7893 builtin and then its argument prototype would still apply. */
7898 /* The GNU C library defines this for functions which it implements
7899 to always fail with ENOSYS. Some functions are actually named
7900 something starting with __ and the normal name is an alias. */
7901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7909 if { (eval echo configure:7910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7911 eval "ac_cv_func_$ac_func=yes"
7913 echo "configure: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7916 eval "ac_cv_func_$ac_func=no"
7921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7922 echo "$ac_t""yes" 1>&6
7923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7924 cat >> confdefs.h <<EOF
7925 #define $ac_tr_func 1
7929 echo "$ac_t""no" 1>&6
7933 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7934 echo "configure:7935: checking for bigcrypt in -lsecurity" >&5
7935 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7939 ac_save_LIBS="$LIBS"
7940 LIBS="-lsecurity $LIBS"
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955 eval "ac_cv_lib_$ac_lib_var=yes"
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7960 eval "ac_cv_lib_$ac_lib_var=no"
7963 LIBS="$ac_save_LIBS"
7966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7967 echo "$ac_t""yes" 1>&6
7968 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7969 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7970 cat >> confdefs.h <<EOF
7971 #define $ac_tr_lib 1
7974 LIBS="-lsecurity $LIBS"
7977 echo "$ac_t""no" 1>&6
7980 for ac_func in bigcrypt
7982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7983 echo "configure:7984: checking for $ac_func" >&5
7984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7985 echo $ac_n "(cached) $ac_c" 1>&6
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 /* System header to define __stub macros and hopefully few prototypes,
7991 which can conflict with char $ac_func(); below. */
7993 /* Override any gcc2 internal prototype to avoid an error. */
7994 /* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
8000 /* The GNU C library defines this for functions which it implements
8001 to always fail with ENOSYS. Some functions are actually named
8002 something starting with __ and the normal name is an alias. */
8003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8013 eval "ac_cv_func_$ac_func=yes"
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8018 eval "ac_cv_func_$ac_func=no"
8023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8024 echo "$ac_t""yes" 1>&6
8025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8026 cat >> confdefs.h <<EOF
8027 #define $ac_tr_func 1
8031 echo "$ac_t""no" 1>&6
8039 *-lsec*) for ac_func in bigcrypt
8041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8042 echo "configure:8043: checking for $ac_func" >&5
8043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func(); below. */
8052 /* Override any gcc2 internal prototype to avoid an error. */
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8070 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8072 eval "ac_cv_func_$ac_func=yes"
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8077 eval "ac_cv_func_$ac_func=no"
8082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8083 echo "$ac_t""yes" 1>&6
8084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8085 cat >> confdefs.h <<EOF
8086 #define $ac_tr_func 1
8090 echo "$ac_t""no" 1>&6
8094 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8095 echo "configure:8096: checking for bigcrypt in -lsec" >&5
8096 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8100 ac_save_LIBS="$LIBS"
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8114 if { (eval echo configure:8115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8116 eval "ac_cv_lib_$ac_lib_var=yes"
8118 echo "configure: failed program was:" >&5
8119 cat conftest.$ac_ext >&5
8121 eval "ac_cv_lib_$ac_lib_var=no"
8124 LIBS="$ac_save_LIBS"
8127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8128 echo "$ac_t""yes" 1>&6
8129 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8131 cat >> confdefs.h <<EOF
8132 #define $ac_tr_lib 1
8138 echo "$ac_t""no" 1>&6
8141 for ac_func in bigcrypt
8143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8144 echo "configure:8145: checking for $ac_func" >&5
8145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8148 cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char $ac_func(); below. */
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8161 /* The GNU C library defines this for functions which it implements
8162 to always fail with ENOSYS. Some functions are actually named
8163 something starting with __ and the normal name is an alias. */
8164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8172 if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8174 eval "ac_cv_func_$ac_func=yes"
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8179 eval "ac_cv_func_$ac_func=no"
8184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8187 cat >> confdefs.h <<EOF
8188 #define $ac_tr_func 1
8192 echo "$ac_t""no" 1>&6
8201 *-lsecurity*) for ac_func in getprpwnam
8203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8204 echo "configure:8205: checking for $ac_func" >&5
8205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 /* System header to define __stub macros and hopefully few prototypes,
8212 which can conflict with char $ac_func(); below. */
8214 /* Override any gcc2 internal prototype to avoid an error. */
8215 /* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8221 /* The GNU C library defines this for functions which it implements
8222 to always fail with ENOSYS. Some functions are actually named
8223 something starting with __ and the normal name is an alias. */
8224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8234 eval "ac_cv_func_$ac_func=yes"
8236 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8239 eval "ac_cv_func_$ac_func=no"
8244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8245 echo "$ac_t""yes" 1>&6
8246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8247 cat >> confdefs.h <<EOF
8248 #define $ac_tr_func 1
8252 echo "$ac_t""no" 1>&6
8256 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8257 echo "configure:8258: checking for getprpwnam in -lsecurity" >&5
8258 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8262 ac_save_LIBS="$LIBS"
8263 LIBS="-lsecurity $LIBS"
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8267 /* Override any gcc2 internal prototype to avoid an error. */
8268 /* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8276 if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8278 eval "ac_cv_lib_$ac_lib_var=yes"
8280 echo "configure: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8283 eval "ac_cv_lib_$ac_lib_var=no"
8286 LIBS="$ac_save_LIBS"
8289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8290 echo "$ac_t""yes" 1>&6
8291 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8293 cat >> confdefs.h <<EOF
8294 #define $ac_tr_lib 1
8297 LIBS="-lsecurity $LIBS"
8300 echo "$ac_t""no" 1>&6
8303 for ac_func in getprpwnam
8305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8306 echo "configure:8307: checking for $ac_func" >&5
8307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8310 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8313 /* System header to define __stub macros and hopefully few prototypes,
8314 which can conflict with char $ac_func(); below. */
8316 /* Override any gcc2 internal prototype to avoid an error. */
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8323 /* The GNU C library defines this for functions which it implements
8324 to always fail with ENOSYS. Some functions are actually named
8325 something starting with __ and the normal name is an alias. */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 eval "ac_cv_func_$ac_func=yes"
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8341 eval "ac_cv_func_$ac_func=no"
8346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8347 echo "$ac_t""yes" 1>&6
8348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8349 cat >> confdefs.h <<EOF
8350 #define $ac_tr_func 1
8354 echo "$ac_t""no" 1>&6
8362 *-lsec*) for ac_func in getprpwnam
8364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8365 echo "configure:8366: checking for $ac_func" >&5
8366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* System header to define __stub macros and hopefully few prototypes,
8373 which can conflict with char $ac_func(); below. */
8375 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8382 /* The GNU C library defines this for functions which it implements
8383 to always fail with ENOSYS. Some functions are actually named
8384 something starting with __ and the normal name is an alias. */
8385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8393 if { (eval echo configure:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8395 eval "ac_cv_func_$ac_func=yes"
8397 echo "configure: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8400 eval "ac_cv_func_$ac_func=no"
8405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8408 cat >> confdefs.h <<EOF
8409 #define $ac_tr_func 1
8413 echo "$ac_t""no" 1>&6
8417 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8418 echo "configure:8419: checking for getprpwnam in -lsec" >&5
8419 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8423 ac_save_LIBS="$LIBS"
8425 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8437 if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8439 eval "ac_cv_lib_$ac_lib_var=yes"
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8444 eval "ac_cv_lib_$ac_lib_var=no"
8447 LIBS="$ac_save_LIBS"
8450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8451 echo "$ac_t""yes" 1>&6
8452 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8454 cat >> confdefs.h <<EOF
8455 #define $ac_tr_lib 1
8461 echo "$ac_t""no" 1>&6
8464 for ac_func in getprpwnam
8466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8467 echo "configure:8468: checking for $ac_func" >&5
8468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8469 echo $ac_n "(cached) $ac_c" 1>&6
8471 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char $ac_func(); below. */
8477 /* Override any gcc2 internal prototype to avoid an error. */
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8484 /* The GNU C library defines this for functions which it implements
8485 to always fail with ENOSYS. Some functions are actually named
8486 something starting with __ and the normal name is an alias. */
8487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8495 if { (eval echo configure:8496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8497 eval "ac_cv_func_$ac_func=yes"
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8502 eval "ac_cv_func_$ac_func=no"
8507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8508 echo "$ac_t""yes" 1>&6
8509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8510 cat >> confdefs.h <<EOF
8511 #define $ac_tr_func 1
8515 echo "$ac_t""no" 1>&6
8523 # this bit needs to be modified for each OS that is suported by
8524 # smbwrapper. You need to specify how to created a shared library and
8525 # how to compile C code to produce PIC object files
8527 # these are the defaults, good for lots of systems
8535 # Assume non-shared by default and override below
8537 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8538 echo "configure:8539: checking ability to build shared libraries" >&5
8540 # and these are for particular systems
8542 *linux*) cat >> confdefs.h <<\EOF
8550 *solaris*) cat >> confdefs.h <<\EOF
8555 LDSHFLAGS="-h \$@ -G"
8556 if test "${ac_cv_prog_CC}" = "gcc"; then
8564 *sunos*) cat >> confdefs.h <<\EOF
8569 LDSHFLAGS="-Wl,-h,\$@ -G"
8570 PICFLAG="-KPIC" # Is this correct for SunOS
8572 *bsd*) BLDSHARED="true"
8573 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8576 *irix*) cat >> confdefs.h <<\EOF
8581 *irix6*) cat >> confdefs.h <<\EOF
8587 ATTEMPT_WRAP32_BUILD=yes
8589 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8590 if test "${ac_cv_prog_CC}" = "gcc"; then
8596 *aix*) cat >> confdefs.h <<\EOF
8601 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8602 PICFLAG="-O2 -qmaxmem=6000"
8604 *hpux*) cat >> confdefs.h <<\EOF
8609 # Use special PIC flags for the native HP-UX compiler.
8610 if test $ac_cv_prog_cc_Ae = yes; then
8612 LDSHFLAGS="-b -z +h \$@"
8616 *qnx*) cat >> confdefs.h <<\EOF
8620 *osf*) cat >> confdefs.h <<\EOF
8625 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8628 *sco*) cat >> confdefs.h <<\EOF
8632 *unixware*) cat >> confdefs.h <<\EOF
8637 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8640 *next2*) cat >> confdefs.h <<\EOF
8644 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8645 set dummy groff; ac_word=$2
8646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8647 echo "configure:8648: checking for $ac_word" >&5
8648 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8651 if test -n "$ROFF"; then
8652 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8656 for ac_dir in $ac_dummy; do
8657 test -z "$ac_dir" && ac_dir=.
8658 if test -f $ac_dir/$ac_word; then
8659 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8666 ROFF="$ac_cv_prog_ROFF"
8667 if test -n "$ROFF"; then
8668 echo "$ac_t""$ROFF" 1>&6
8670 echo "$ac_t""no" 1>&6
8675 *-univel-*) if test "$GCC" != yes ; then
8676 cat >> confdefs.h <<\EOF
8677 #define HAVE_MEMSET 1
8683 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8684 #define RELIANTUNIX 1
8690 if test "$GCC" != yes ; then
8691 cat >> confdefs.h <<\EOF
8692 #define HAVE_MEMSET 1
8699 echo "$ac_t""$BLDSHARED" 1>&6
8700 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8701 echo "configure:8702: checking linker flags for shared libraries" >&5
8702 echo "$ac_t""$LDSHFLAGS" 1>&6
8703 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8704 echo "configure:8705: checking compiler flags for position-independent code" >&5
8705 echo "$ac_t""$PICFLAGS" 1>&6
8707 #######################################################
8708 # test whether building a shared library actually works
8709 if test $BLDSHARED = true; then
8710 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
8711 echo "configure:8712: checking whether building shared libraries actually works" >&5
8712 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8716 ac_cv_shlib_works=no
8717 # try building a trivial shared library
8718 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
8719 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
8720 ac_cv_shlib_works=yes
8721 rm -f shlib.so shlib.po
8725 echo "$ac_t""$ac_cv_shlib_works" 1>&6
8726 if test $ac_cv_shlib_works = no; then
8732 # this updates our target list if we can build shared libs
8733 if test $BLDSHARED = true; then
8734 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8736 LIBSMBCLIENT_SHARED=
8741 echo $ac_n "checking for long long""... $ac_c" 1>&6
8742 echo "configure:8743: checking for long long" >&5
8743 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8747 if test "$cross_compiling" = yes; then
8748 samba_cv_have_longlong=cross
8750 cat > conftest.$ac_ext <<EOF
8751 #line 8752 "configure"
8752 #include "confdefs.h"
8754 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8756 if { (eval echo configure:8757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8758 samba_cv_have_longlong=yes
8760 echo "configure: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8763 samba_cv_have_longlong=no
8770 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8771 if test x"$samba_cv_have_longlong" = x"yes"; then
8772 cat >> confdefs.h <<\EOF
8773 #define HAVE_LONGLONG 1
8779 # Check if the compiler supports the LL prefix on long long integers.
8782 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8783 echo "configure:8784: checking for LL suffix on long long integers" >&5
8784 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8785 echo $ac_n "(cached) $ac_c" 1>&6
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8793 long long i = 0x8000000000LL
8796 if { (eval echo configure:8797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8798 samba_cv_compiler_supports_ll=yes
8800 echo "configure: failed program was:" >&5
8801 cat conftest.$ac_ext >&5
8803 samba_cv_compiler_supports_ll=no
8808 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8809 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8810 cat >> confdefs.h <<\EOF
8811 #define COMPILER_SUPPORTS_LL 1
8817 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8818 echo "configure:8819: checking for 64 bit off_t" >&5
8819 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8820 echo $ac_n "(cached) $ac_c" 1>&6
8823 if test "$cross_compiling" = yes; then
8824 samba_cv_SIZEOF_OFF_T=cross
8826 cat > conftest.$ac_ext <<EOF
8827 #line 8828 "configure"
8828 #include "confdefs.h"
8830 #include <sys/stat.h>
8831 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8833 if { (eval echo configure:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8835 samba_cv_SIZEOF_OFF_T=yes
8837 echo "configure: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8840 samba_cv_SIZEOF_OFF_T=no
8847 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8848 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8849 cat >> confdefs.h <<\EOF
8850 #define SIZEOF_OFF_T 8
8855 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8856 echo "configure:8857: checking for off64_t" >&5
8857 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8861 if test "$cross_compiling" = yes; then
8862 samba_cv_HAVE_OFF64_T=cross
8864 cat > conftest.$ac_ext <<EOF
8865 #line 8866 "configure"
8866 #include "confdefs.h"
8868 #if defined(HAVE_UNISTD_H)
8872 #include <sys/stat.h>
8873 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8875 if { (eval echo configure:8876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8877 samba_cv_HAVE_OFF64_T=yes
8879 echo "configure: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8882 samba_cv_HAVE_OFF64_T=no
8889 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8890 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8891 cat >> confdefs.h <<\EOF
8892 #define HAVE_OFF64_T 1
8897 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8898 echo "configure:8899: checking for 64 bit ino_t" >&5
8899 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8903 if test "$cross_compiling" = yes; then
8904 samba_cv_SIZEOF_INO_T=cross
8906 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure"
8908 #include "confdefs.h"
8910 #include <sys/stat.h>
8911 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8915 samba_cv_SIZEOF_INO_T=yes
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8920 samba_cv_SIZEOF_INO_T=no
8927 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8928 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8929 cat >> confdefs.h <<\EOF
8930 #define SIZEOF_INO_T 8
8935 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8936 echo "configure:8937: checking for ino64_t" >&5
8937 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8938 echo $ac_n "(cached) $ac_c" 1>&6
8941 if test "$cross_compiling" = yes; then
8942 samba_cv_HAVE_INO64_T=cross
8944 cat > conftest.$ac_ext <<EOF
8945 #line 8946 "configure"
8946 #include "confdefs.h"
8948 #if defined(HAVE_UNISTD_H)
8952 #include <sys/stat.h>
8953 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8957 samba_cv_HAVE_INO64_T=yes
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8962 samba_cv_HAVE_INO64_T=no
8969 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8970 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8971 cat >> confdefs.h <<\EOF
8972 #define HAVE_INO64_T 1
8977 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8978 echo "configure:8979: checking for struct dirent64" >&5
8979 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8987 #if defined(HAVE_UNISTD_H)
8990 #include <sys/types.h>
8996 if { (eval echo configure:8997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8998 samba_cv_HAVE_STRUCT_DIRENT64=yes
9000 echo "configure: failed program was:" >&5
9001 cat conftest.$ac_ext >&5
9003 samba_cv_HAVE_STRUCT_DIRENT64=no
9008 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9009 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9010 cat >> confdefs.h <<\EOF
9011 #define HAVE_STRUCT_DIRENT64 1
9016 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9017 echo "configure:9018: checking for unsigned char" >&5
9018 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9019 echo $ac_n "(cached) $ac_c" 1>&6
9022 if test "$cross_compiling" = yes; then
9023 samba_cv_HAVE_UNSIGNED_CHAR=cross
9025 cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9029 main() { char c; c=250; exit((c > 0)?0:1); }
9031 if { (eval echo configure:9032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9033 samba_cv_HAVE_UNSIGNED_CHAR=yes
9035 echo "configure: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9038 samba_cv_HAVE_UNSIGNED_CHAR=no
9045 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9046 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9047 cat >> confdefs.h <<\EOF
9048 #define HAVE_UNSIGNED_CHAR 1
9053 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9054 echo "configure:9055: checking for sin_len in sock" >&5
9055 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9059 cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9062 #include <sys/types.h>
9063 #include <sys/socket.h>
9064 #include <netinet/in.h>
9066 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9069 if { (eval echo configure:9070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 samba_cv_HAVE_SOCK_SIN_LEN=yes
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 samba_cv_HAVE_SOCK_SIN_LEN=no
9081 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9082 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9083 cat >> confdefs.h <<\EOF
9084 #define HAVE_SOCK_SIN_LEN 1
9089 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9090 echo "configure:9091: checking whether seekdir returns void" >&5
9091 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 #include <sys/types.h>
9100 void seekdir(DIR *d, long loc) { return; }
9105 if { (eval echo configure:9106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9107 samba_cv_SEEKDIR_RETURNS_VOID=yes
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9112 samba_cv_SEEKDIR_RETURNS_VOID=no
9117 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9118 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9119 cat >> confdefs.h <<\EOF
9120 #define SEEKDIR_RETURNS_VOID 1
9125 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9126 echo "configure:9127: checking for __FILE__ macro" >&5
9127 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9136 printf("%s\n", __FILE__);
9139 if { (eval echo configure:9140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9141 samba_cv_HAVE_FILE_MACRO=yes
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9146 samba_cv_HAVE_FILE_MACRO=no
9151 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9152 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9153 cat >> confdefs.h <<\EOF
9154 #define HAVE_FILE_MACRO 1
9159 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9160 echo "configure:9161: checking for __FUNCTION__ macro" >&5
9161 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9170 printf("%s\n", __FUNCTION__);
9173 if { (eval echo configure:9174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9175 samba_cv_HAVE_FUNCTION_MACRO=yes
9177 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9180 samba_cv_HAVE_FUNCTION_MACRO=no
9185 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9186 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9187 cat >> confdefs.h <<\EOF
9188 #define HAVE_FUNCTION_MACRO 1
9193 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9194 echo "configure:9195: checking if gettimeofday takes tz argument" >&5
9195 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9196 echo $ac_n "(cached) $ac_c" 1>&6
9199 if test "$cross_compiling" = yes; then
9200 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9202 cat > conftest.$ac_ext <<EOF
9203 #line 9204 "configure"
9204 #include "confdefs.h"
9206 #include <sys/time.h>
9208 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9210 if { (eval echo configure:9211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9212 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9214 echo "configure: failed program was:" >&5
9215 cat conftest.$ac_ext >&5
9217 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9224 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9225 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9226 cat >> confdefs.h <<\EOF
9227 #define HAVE_GETTIMEOFDAY_TZ 1
9232 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9233 echo "configure:9234: checking for C99 vsnprintf" >&5
9234 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9238 if test "$cross_compiling" = yes; then
9239 samba_cv_HAVE_C99_VSNPRINTF=cross
9241 cat > conftest.$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9245 #include <sys/types.h>
9247 void foo(const char *format, ...) {
9252 va_start(ap, format);
9253 len = vsnprintf(0, 0, format, ap);
9255 if (len != 5) exit(1);
9257 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9261 main() { foo("hello"); }
9264 if { (eval echo configure:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9266 samba_cv_HAVE_C99_VSNPRINTF=yes
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9271 samba_cv_HAVE_C99_VSNPRINTF=no
9278 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9279 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9280 cat >> confdefs.h <<\EOF
9281 #define HAVE_C99_VSNPRINTF 1
9286 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9287 echo "configure:9288: checking for broken readdir" >&5
9288 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9292 if test "$cross_compiling" = yes; then
9293 samba_cv_HAVE_BROKEN_READDIR=cross
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9298 #include <sys/types.h>
9300 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9301 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9302 di->d_name[0] == 0) exit(0); exit(1);}
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9306 samba_cv_HAVE_BROKEN_READDIR=yes
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9311 samba_cv_HAVE_BROKEN_READDIR=no
9318 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9319 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9320 cat >> confdefs.h <<\EOF
9321 #define HAVE_BROKEN_READDIR 1
9326 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9327 echo "configure:9328: checking for utimbuf" >&5
9328 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9332 cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9335 #include <sys/types.h>
9338 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9341 if { (eval echo configure:9342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9343 samba_cv_HAVE_UTIMBUF=yes
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9348 samba_cv_HAVE_UTIMBUF=no
9353 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9354 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9355 cat >> confdefs.h <<\EOF
9356 #define HAVE_UTIMBUF 1
9362 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9365 echo "configure:9366: checking for $ac_func" >&5
9366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9367 echo $ac_n "(cached) $ac_c" 1>&6
9369 cat > conftest.$ac_ext <<EOF
9370 #line 9371 "configure"
9371 #include "confdefs.h"
9372 /* System header to define __stub macros and hopefully few prototypes,
9373 which can conflict with char $ac_func(); below. */
9375 /* Override any gcc2 internal prototype to avoid an error. */
9376 /* We use char because int might match the return type of a gcc2
9377 builtin and then its argument prototype would still apply. */
9382 /* The GNU C library defines this for functions which it implements
9383 to always fail with ENOSYS. Some functions are actually named
9384 something starting with __ and the normal name is an alias. */
9385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9393 if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9395 eval "ac_cv_func_$ac_func=yes"
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9400 eval "ac_cv_func_$ac_func=no"
9405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9406 echo "$ac_t""yes" 1>&6
9407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9408 cat >> confdefs.h <<EOF
9409 #define $ac_tr_func 1
9413 echo "$ac_t""no" 1>&6
9418 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9419 echo "configure:9420: checking for ut_name in utmp" >&5
9420 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9421 echo $ac_n "(cached) $ac_c" 1>&6
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 #include <sys/types.h>
9430 struct utmp ut; ut.ut_name[0] = 'a';
9433 if { (eval echo configure:9434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9435 samba_cv_HAVE_UT_UT_NAME=yes
9437 echo "configure: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9440 samba_cv_HAVE_UT_UT_NAME=no
9445 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9446 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9447 cat >> confdefs.h <<\EOF
9448 #define HAVE_UT_UT_NAME 1
9453 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9454 echo "configure:9455: checking for ut_user in utmp" >&5
9455 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 #include <sys/types.h>
9465 struct utmp ut; ut.ut_user[0] = 'a';
9468 if { (eval echo configure:9469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9470 samba_cv_HAVE_UT_UT_USER=yes
9472 echo "configure: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9475 samba_cv_HAVE_UT_UT_USER=no
9480 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9481 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9482 cat >> confdefs.h <<\EOF
9483 #define HAVE_UT_UT_USER 1
9488 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9489 echo "configure:9490: checking for ut_id in utmp" >&5
9490 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9494 cat > conftest.$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9497 #include <sys/types.h>
9500 struct utmp ut; ut.ut_id[0] = 'a';
9503 if { (eval echo configure:9504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9505 samba_cv_HAVE_UT_UT_ID=yes
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9510 samba_cv_HAVE_UT_UT_ID=no
9515 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9516 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9517 cat >> confdefs.h <<\EOF
9518 #define HAVE_UT_UT_ID 1
9523 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9524 echo "configure:9525: checking for ut_host in utmp" >&5
9525 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 #include <sys/types.h>
9535 struct utmp ut; ut.ut_host[0] = 'a';
9538 if { (eval echo configure:9539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9540 samba_cv_HAVE_UT_UT_HOST=yes
9542 echo "configure: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9545 samba_cv_HAVE_UT_UT_HOST=no
9550 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9551 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9552 cat >> confdefs.h <<\EOF
9553 #define HAVE_UT_UT_HOST 1
9558 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9559 echo "configure:9560: checking for ut_time in utmp" >&5
9560 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9561 echo $ac_n "(cached) $ac_c" 1>&6
9564 cat > conftest.$ac_ext <<EOF
9565 #line 9566 "configure"
9566 #include "confdefs.h"
9567 #include <sys/types.h>
9570 struct utmp ut; time_t t; ut.ut_time = t;
9573 if { (eval echo configure:9574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9575 samba_cv_HAVE_UT_UT_TIME=yes
9577 echo "configure: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9580 samba_cv_HAVE_UT_UT_TIME=no
9585 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9586 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9587 cat >> confdefs.h <<\EOF
9588 #define HAVE_UT_UT_TIME 1
9593 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9594 echo "configure:9595: checking for ut_tv in utmp" >&5
9595 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9596 echo $ac_n "(cached) $ac_c" 1>&6
9599 cat > conftest.$ac_ext <<EOF
9600 #line 9601 "configure"
9601 #include "confdefs.h"
9602 #include <sys/types.h>
9605 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9608 if { (eval echo configure:9609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9610 samba_cv_HAVE_UT_UT_TV=yes
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9615 samba_cv_HAVE_UT_UT_TV=no
9620 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9621 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9622 cat >> confdefs.h <<\EOF
9623 #define HAVE_UT_UT_TV 1
9628 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9629 echo "configure:9630: checking for ut_type in utmp" >&5
9630 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9631 echo $ac_n "(cached) $ac_c" 1>&6
9634 cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9637 #include <sys/types.h>
9640 struct utmp ut; ut.ut_type = 0;
9643 if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9645 samba_cv_HAVE_UT_UT_TYPE=yes
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9650 samba_cv_HAVE_UT_UT_TYPE=no
9655 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9656 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9657 cat >> confdefs.h <<\EOF
9658 #define HAVE_UT_UT_TYPE 1
9663 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9664 echo "configure:9665: checking for ut_pid in utmp" >&5
9665 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9669 cat > conftest.$ac_ext <<EOF
9670 #line 9671 "configure"
9671 #include "confdefs.h"
9672 #include <sys/types.h>
9675 struct utmp ut; ut.ut_pid = 0;
9678 if { (eval echo configure:9679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9680 samba_cv_HAVE_UT_UT_PID=yes
9682 echo "configure: failed program was:" >&5
9683 cat conftest.$ac_ext >&5
9685 samba_cv_HAVE_UT_UT_PID=no
9690 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9691 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9692 cat >> confdefs.h <<\EOF
9693 #define HAVE_UT_UT_PID 1
9698 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9699 echo "configure:9700: checking for ut_exit in utmp" >&5
9700 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9704 cat > conftest.$ac_ext <<EOF
9705 #line 9706 "configure"
9706 #include "confdefs.h"
9707 #include <sys/types.h>
9710 struct utmp ut; ut.ut_exit.e_exit = 0;
9713 if { (eval echo configure:9714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9715 samba_cv_HAVE_UT_UT_EXIT=yes
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9720 samba_cv_HAVE_UT_UT_EXIT=no
9725 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9726 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9727 cat >> confdefs.h <<\EOF
9728 #define HAVE_UT_UT_EXIT 1
9733 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9734 echo "configure:9735: checking for ut_addr in utmp" >&5
9735 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 #include <sys/types.h>
9745 struct utmp ut; ut.ut_addr = 0;
9748 if { (eval echo configure:9749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9750 samba_cv_HAVE_UT_UT_ADDR=yes
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9755 samba_cv_HAVE_UT_UT_ADDR=no
9760 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9761 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9762 cat >> confdefs.h <<\EOF
9763 #define HAVE_UT_UT_ADDR 1
9768 if test x$ac_cv_func_pututline = xyes ; then
9769 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9770 echo "configure:9771: checking whether pututline returns pointer" >&5
9771 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9772 echo $ac_n "(cached) $ac_c" 1>&6
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 #include <sys/types.h>
9781 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9784 if { (eval echo configure:9785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9786 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9788 echo "configure: failed program was:" >&5
9789 cat conftest.$ac_ext >&5
9791 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9796 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9797 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9798 cat >> confdefs.h <<\EOF
9799 #define PUTUTLINE_RETURNS_UTMP 1
9805 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9806 echo "configure:9807: checking for ut_syslen in utmpx" >&5
9807 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9808 echo $ac_n "(cached) $ac_c" 1>&6
9811 cat > conftest.$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9814 #include <sys/types.h>
9817 struct utmpx ux; ux.ut_syslen = 0;
9820 if { (eval echo configure:9821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9822 samba_cv_HAVE_UX_UT_SYSLEN=yes
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9827 samba_cv_HAVE_UX_UT_SYSLEN=no
9832 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9833 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9834 cat >> confdefs.h <<\EOF
9835 #define HAVE_UX_UT_SYSLEN 1
9841 #################################################
9842 # check for libiconv support
9843 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9844 echo "configure:9845: checking whether to use libiconv" >&5
9845 # Check whether --with-libiconv or --without-libiconv was given.
9846 if test "${with_libiconv+set}" = set; then
9847 withval="$with_libiconv"
9850 echo "$ac_t""no" 1>&6
9853 echo "$ac_t""yes" 1>&6
9854 CFLAGS="$CFLAGS -I$withval/include"
9855 LDFLAGS="$LDFLAGS -L$withval/lib"
9856 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9857 echo "configure:9858: checking for iconv_open in -liconv" >&5
9858 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9862 ac_save_LIBS="$LIBS"
9863 LIBS="-liconv $LIBS"
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 /* Override any gcc2 internal prototype to avoid an error. */
9868 /* We use char because int might match the return type of a gcc2
9869 builtin and then its argument prototype would still apply. */
9876 if { (eval echo configure:9877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9878 eval "ac_cv_lib_$ac_lib_var=yes"
9880 echo "configure: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9883 eval "ac_cv_lib_$ac_lib_var=no"
9886 LIBS="$ac_save_LIBS"
9889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9890 echo "$ac_t""yes" 1>&6
9891 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9893 cat >> confdefs.h <<EOF
9894 #define $ac_tr_lib 1
9897 LIBS="-liconv $LIBS"
9900 echo "$ac_t""no" 1>&6
9903 cat >> confdefs.h <<EOF
9904 #define WITH_LIBICONV "${withval}"
9910 echo "$ac_t""no" 1>&6
9917 # check for iconv in libc
9918 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9919 echo "configure:9920: checking for working iconv" >&5
9920 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9924 if test "$cross_compiling" = yes; then
9925 samba_cv_HAVE_NATIVE_ICONV=cross
9927 cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9933 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9934 if (cd == 0 || cd == (iconv_t)-1) return -1;
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9941 samba_cv_HAVE_NATIVE_ICONV=yes
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 samba_cv_HAVE_NATIVE_ICONV=no
9953 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9954 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9955 cat >> confdefs.h <<\EOF
9956 #define HAVE_NATIVE_ICONV 1
9962 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9963 echo "configure:9964: checking for Linux kernel oplocks" >&5
9964 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9968 if test "$cross_compiling" = yes; then
9969 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9975 #include <sys/types.h>
9978 #define F_GETLEASE 1025
9981 int fd = open("/dev/null", O_RDONLY);
9982 return fcntl(fd, F_GETLEASE, 0) == -1;
9986 if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9988 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9993 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10000 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10001 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10002 cat >> confdefs.h <<\EOF
10003 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10008 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10009 echo "configure:10010: checking for kernel change notify support" >&5
10010 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10014 if test "$cross_compiling" = yes; then
10015 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10021 #include <sys/types.h>
10023 #include <signal.h>
10025 #define F_NOTIFY 1026
10028 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10032 if { (eval echo configure:10033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10034 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10036 echo "configure: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
10039 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10046 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10047 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10048 cat >> confdefs.h <<\EOF
10049 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10054 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10055 echo "configure:10056: checking for kernel share modes" >&5
10056 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10060 if test "$cross_compiling" = yes; then
10061 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10067 #include <sys/types.h>
10069 #include <signal.h>
10070 #include <sys/file.h>
10072 #define LOCK_MAND 32
10073 #define LOCK_READ 64
10076 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10080 if { (eval echo configure:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10082 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10087 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10094 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10095 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10096 cat >> confdefs.h <<\EOF
10097 #define HAVE_KERNEL_SHARE_MODES 1
10105 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10106 echo "configure:10107: checking for IRIX kernel oplock type definitions" >&5
10107 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10111 cat > conftest.$ac_ext <<EOF
10112 #line 10113 "configure"
10113 #include "confdefs.h"
10114 #include <sys/types.h>
10117 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10120 if { (eval echo configure:10121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10122 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10127 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10132 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10133 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10134 cat >> confdefs.h <<\EOF
10135 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10140 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10141 echo "configure:10142: checking for irix specific capabilities" >&5
10142 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10143 echo $ac_n "(cached) $ac_c" 1>&6
10146 if test "$cross_compiling" = yes; then
10147 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10149 cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure"
10151 #include "confdefs.h"
10152 #include <sys/types.h>
10153 #include <sys/capability.h>
10156 if ((cap = cap_get_proc()) == NULL)
10158 cap->cap_effective |= CAP_NETWORK_MGT;
10159 cap->cap_inheritable |= CAP_NETWORK_MGT;
10165 if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10167 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10169 echo "configure: failed program was:" >&5
10170 cat conftest.$ac_ext >&5
10172 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10179 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10180 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10181 cat >> confdefs.h <<\EOF
10182 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10188 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10189 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10192 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10193 echo "configure:10194: checking for int16 typedef included by rpc/rpc.h" >&5
10194 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10198 cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201 #include <sys/types.h>
10202 #if defined(HAVE_RPC_RPC_H)
10203 #include <rpc/rpc.h>
10209 if { (eval echo configure:10210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10211 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10216 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10221 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10222 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10223 cat >> confdefs.h <<\EOF
10224 #define HAVE_INT16_FROM_RPC_RPC_H 1
10229 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10230 echo "configure:10231: checking for uint16 typedef included by rpc/rpc.h" >&5
10231 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 #include <sys/types.h>
10239 #if defined(HAVE_RPC_RPC_H)
10240 #include <rpc/rpc.h>
10246 if { (eval echo configure:10247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10248 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10250 echo "configure: failed program was:" >&5
10251 cat conftest.$ac_ext >&5
10253 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10258 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10259 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10260 cat >> confdefs.h <<\EOF
10261 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10266 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10267 echo "configure:10268: checking for int32 typedef included by rpc/rpc.h" >&5
10268 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10269 echo $ac_n "(cached) $ac_c" 1>&6
10272 cat > conftest.$ac_ext <<EOF
10273 #line 10274 "configure"
10274 #include "confdefs.h"
10275 #include <sys/types.h>
10276 #if defined(HAVE_RPC_RPC_H)
10277 #include <rpc/rpc.h>
10283 if { (eval echo configure:10284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10285 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10290 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10295 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10296 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_INT32_FROM_RPC_RPC_H 1
10303 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10304 echo "configure:10305: checking for uint32 typedef included by rpc/rpc.h" >&5
10305 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10306 echo $ac_n "(cached) $ac_c" 1>&6
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10312 #include <sys/types.h>
10313 #if defined(HAVE_RPC_RPC_H)
10314 #include <rpc/rpc.h>
10320 if { (eval echo configure:10321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10322 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10327 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10332 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10333 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10341 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10342 echo "configure:10343: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10343 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include <sys/types.h>
10351 #ifdef HAVE_SYS_SECURITY_H
10352 #include <sys/security.h>
10354 #endif /* HAVE_SYS_SECURITY_H */
10355 #if defined(HAVE_RPC_RPC_H)
10356 #include <rpc/rpc.h>
10362 if { (eval echo configure:10363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10364 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10366 echo "configure: failed program was:" >&5
10367 cat conftest.$ac_ext >&5
10369 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10374 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10375 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10376 cat >> confdefs.h <<\EOF
10377 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10382 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10383 echo "configure:10384: checking for test routines" >&5
10384 if test "$cross_compiling" = yes; then
10385 echo "configure: warning: cannot run when cross-compiling" 1>&2
10387 cat > conftest.$ac_ext <<EOF
10388 #line 10389 "configure"
10389 #include "confdefs.h"
10390 #include "${srcdir-.}/tests/trivial.c"
10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10394 echo "$ac_t""yes" 1>&6
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10399 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10405 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10406 echo "configure:10407: checking for ftruncate extend" >&5
10407 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10408 echo $ac_n "(cached) $ac_c" 1>&6
10411 if test "$cross_compiling" = yes; then
10412 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10414 cat > conftest.$ac_ext <<EOF
10415 #line 10416 "configure"
10416 #include "confdefs.h"
10417 #include "${srcdir-.}/tests/ftruncate.c"
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10421 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10426 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10433 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10434 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_FTRUNCATE_EXTEND 1
10441 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10442 echo "configure:10443: checking for AF_LOCAL socket support" >&5
10443 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10447 if test "$cross_compiling" = yes; then
10448 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 #include "${srcdir-.}/tests/unixsock.c"
10455 if { (eval echo configure:10456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10457 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10459 echo "configure: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10462 samba_cv_HAVE_WORKING_AF_LOCAL=no
10469 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10470 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10472 cat >> confdefs.h <<\EOF
10473 #define HAVE_WORKING_AF_LOCAL 1
10478 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10479 echo "configure:10480: checking for broken getgroups" >&5
10480 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10481 echo $ac_n "(cached) $ac_c" 1>&6
10484 if test "$cross_compiling" = yes; then
10485 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10490 #include "${srcdir-.}/tests/getgroups.c"
10492 if { (eval echo configure:10493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10494 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10496 echo "configure: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10499 samba_cv_HAVE_BROKEN_GETGROUPS=no
10506 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10507 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10508 cat >> confdefs.h <<\EOF
10509 #define HAVE_BROKEN_GETGROUPS 1
10514 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10515 echo "configure:10516: checking whether getpass should be replaced" >&5
10516 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10517 echo $ac_n "(cached) $ac_c" 1>&6
10520 SAVE_CPPFLAGS="$CPPFLAGS"
10521 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10522 cat > conftest.$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10526 #define REPLACE_GETPASS 1
10527 #define NO_CONFIG_H 1
10528 #define main dont_declare_main
10529 #include "${srcdir-.}/lib/getsmbpass.c"
10536 if { (eval echo configure:10537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10538 samba_cv_REPLACE_GETPASS=yes
10540 echo "configure: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10543 samba_cv_REPLACE_GETPASS=no
10546 CPPFLAGS="$SAVE_CPPFLAGS"
10550 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10551 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10552 cat >> confdefs.h <<\EOF
10553 #define REPLACE_GETPASS 1
10558 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10559 echo "configure:10560: checking for broken inet_ntoa" >&5
10560 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
10564 if test "$cross_compiling" = yes; then
10565 samba_cv_REPLACE_INET_NTOA=cross
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10572 #include <sys/types.h>
10573 #include <netinet/in.h>
10574 #ifdef HAVE_ARPA_INET_H
10575 #include <arpa/inet.h>
10577 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10578 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10579 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10582 if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10584 samba_cv_REPLACE_INET_NTOA=yes
10586 echo "configure: failed program was:" >&5
10587 cat conftest.$ac_ext >&5
10589 samba_cv_REPLACE_INET_NTOA=no
10596 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10597 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10598 cat >> confdefs.h <<\EOF
10599 #define REPLACE_INET_NTOA 1
10604 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10605 echo "configure:10606: checking for secure mkstemp" >&5
10606 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10610 if test "$cross_compiling" = yes; then
10611 samba_cv_HAVE_SECURE_MKSTEMP=cross
10613 cat > conftest.$ac_ext <<EOF
10614 #line 10615 "configure"
10615 #include "confdefs.h"
10616 #include <stdlib.h>
10617 #include <sys/types.h>
10618 #include <sys/stat.h>
10619 #include <unistd.h>
10622 char tpl[20]="/tmp/test.XXXXXX";
10623 int fd = mkstemp(tpl);
10624 if (fd == -1) exit(1);
10626 if (fstat(fd, &st) != 0) exit(1);
10627 if ((st.st_mode & 0777) != 0600) exit(1);
10631 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10633 samba_cv_HAVE_SECURE_MKSTEMP=yes
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 samba_cv_HAVE_SECURE_MKSTEMP=no
10645 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10646 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10647 cat >> confdefs.h <<\EOF
10648 #define HAVE_SECURE_MKSTEMP 1
10653 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10654 echo "configure:10655: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10655 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10656 echo $ac_n "(cached) $ac_c" 1>&6
10659 if test "$cross_compiling" = yes; then
10660 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10662 cat > conftest.$ac_ext <<EOF
10663 #line 10664 "configure"
10664 #include "confdefs.h"
10665 #include <unistd.h>
10666 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10668 if { (eval echo configure:10669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10670 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10672 echo "configure: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10675 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10682 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10683 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10684 cat >> confdefs.h <<\EOF
10685 #define SYSCONF_SC_NGROUPS_MAX 1
10690 echo $ac_n "checking for root""... $ac_c" 1>&6
10691 echo "configure:10692: checking for root" >&5
10692 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10693 echo $ac_n "(cached) $ac_c" 1>&6
10696 if test "$cross_compiling" = yes; then
10697 samba_cv_HAVE_ROOT=cross
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702 main() { exit(getuid() != 0); }
10704 if { (eval echo configure:10705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10706 samba_cv_HAVE_ROOT=yes
10708 echo "configure: failed program was:" >&5
10709 cat conftest.$ac_ext >&5
10711 samba_cv_HAVE_ROOT=no
10718 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10719 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10720 cat >> confdefs.h <<\EOF
10721 #define HAVE_ROOT 1
10725 echo "configure: warning: running as non-root will disable some tests" 1>&2
10729 # look for a method of finding the list of network interfaces
10731 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10732 echo "configure:10733: checking for iface AIX" >&5
10733 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10737 if test "$cross_compiling" = yes; then
10738 samba_cv_HAVE_IFACE_AIX=cross
10740 cat > conftest.$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10744 #define HAVE_IFACE_AIX 1
10745 #define AUTOCONF_TEST 1
10746 #include "confdefs.h"
10747 #include "${srcdir-.}/lib/interfaces.c"
10749 if { (eval echo configure:10750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10751 samba_cv_HAVE_IFACE_AIX=yes
10753 echo "configure: failed program was:" >&5
10754 cat conftest.$ac_ext >&5
10756 samba_cv_HAVE_IFACE_AIX=no
10763 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10764 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10765 iface=yes;cat >> confdefs.h <<\EOF
10766 #define HAVE_IFACE_AIX 1
10771 if test $iface = no; then
10772 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10773 echo "configure:10774: checking for iface ifconf" >&5
10774 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10778 if test "$cross_compiling" = yes; then
10779 samba_cv_HAVE_IFACE_IFCONF=cross
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10785 #define HAVE_IFACE_IFCONF 1
10786 #define AUTOCONF_TEST 1
10787 #include "confdefs.h"
10788 #include "${srcdir-.}/lib/interfaces.c"
10790 if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10792 samba_cv_HAVE_IFACE_IFCONF=yes
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10797 samba_cv_HAVE_IFACE_IFCONF=no
10804 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10805 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10806 iface=yes;cat >> confdefs.h <<\EOF
10807 #define HAVE_IFACE_IFCONF 1
10813 if test $iface = no; then
10814 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10815 echo "configure:10816: checking for iface ifreq" >&5
10816 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10817 echo $ac_n "(cached) $ac_c" 1>&6
10820 if test "$cross_compiling" = yes; then
10821 samba_cv_HAVE_IFACE_IFREQ=cross
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10827 #define HAVE_IFACE_IFREQ 1
10828 #define AUTOCONF_TEST 1
10829 #include "confdefs.h"
10830 #include "${srcdir-.}/lib/interfaces.c"
10832 if { (eval echo configure:10833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10834 samba_cv_HAVE_IFACE_IFREQ=yes
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10839 samba_cv_HAVE_IFACE_IFREQ=no
10846 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10847 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10848 iface=yes;cat >> confdefs.h <<\EOF
10849 #define HAVE_IFACE_IFREQ 1
10856 ################################################
10857 # look for a method of setting the effective uid
10859 if test $seteuid = no; then
10860 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10861 echo "configure:10862: checking for setresuid" >&5
10862 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10863 echo $ac_n "(cached) $ac_c" 1>&6
10866 if test "$cross_compiling" = yes; then
10867 samba_cv_USE_SETRESUID=cross
10869 cat > conftest.$ac_ext <<EOF
10870 #line 10871 "configure"
10871 #include "confdefs.h"
10873 #define AUTOCONF_TEST 1
10874 #define USE_SETRESUID 1
10875 #include "confdefs.h"
10876 #include "${srcdir-.}/lib/util_sec.c"
10878 if { (eval echo configure:10879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10880 samba_cv_USE_SETRESUID=yes
10882 echo "configure: failed program was:" >&5
10883 cat conftest.$ac_ext >&5
10885 samba_cv_USE_SETRESUID=no
10892 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10893 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10894 seteuid=yes;cat >> confdefs.h <<\EOF
10895 #define USE_SETRESUID 1
10902 if test $seteuid = no; then
10903 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10904 echo "configure:10905: checking for setreuid" >&5
10905 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10909 if test "$cross_compiling" = yes; then
10910 samba_cv_USE_SETREUID=cross
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10916 #define AUTOCONF_TEST 1
10917 #define USE_SETREUID 1
10918 #include "confdefs.h"
10919 #include "${srcdir-.}/lib/util_sec.c"
10921 if { (eval echo configure:10922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10923 samba_cv_USE_SETREUID=yes
10925 echo "configure: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10928 samba_cv_USE_SETREUID=no
10935 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10936 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10937 seteuid=yes;cat >> confdefs.h <<\EOF
10938 #define USE_SETREUID 1
10944 if test $seteuid = no; then
10945 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10946 echo "configure:10947: checking for seteuid" >&5
10947 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10948 echo $ac_n "(cached) $ac_c" 1>&6
10951 if test "$cross_compiling" = yes; then
10952 samba_cv_USE_SETEUID=cross
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10958 #define AUTOCONF_TEST 1
10959 #define USE_SETEUID 1
10960 #include "confdefs.h"
10961 #include "${srcdir-.}/lib/util_sec.c"
10963 if { (eval echo configure:10964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10965 samba_cv_USE_SETEUID=yes
10967 echo "configure: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10970 samba_cv_USE_SETEUID=no
10977 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10978 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10979 seteuid=yes;cat >> confdefs.h <<\EOF
10980 #define USE_SETEUID 1
10986 if test $seteuid = no; then
10987 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10988 echo "configure:10989: checking for setuidx" >&5
10989 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10993 if test "$cross_compiling" = yes; then
10994 samba_cv_USE_SETUIDX=cross
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
11000 #define AUTOCONF_TEST 1
11001 #define USE_SETUIDX 1
11002 #include "confdefs.h"
11003 #include "${srcdir-.}/lib/util_sec.c"
11005 if { (eval echo configure:11006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11007 samba_cv_USE_SETUIDX=yes
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11012 samba_cv_USE_SETUIDX=no
11019 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11020 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11021 seteuid=yes;cat >> confdefs.h <<\EOF
11022 #define USE_SETUIDX 1
11029 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11030 echo "configure:11031: checking for working mmap" >&5
11031 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11032 echo $ac_n "(cached) $ac_c" 1>&6
11035 if test "$cross_compiling" = yes; then
11036 samba_cv_HAVE_MMAP=cross
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure"
11040 #include "confdefs.h"
11041 #include "${srcdir-.}/tests/shared_mmap.c"
11043 if { (eval echo configure:11044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11045 samba_cv_HAVE_MMAP=yes
11047 echo "configure: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11050 samba_cv_HAVE_MMAP=no
11057 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11058 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11059 cat >> confdefs.h <<\EOF
11060 #define HAVE_MMAP 1
11065 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11066 echo "configure:11067: checking for ftruncate needs root" >&5
11067 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11068 echo $ac_n "(cached) $ac_c" 1>&6
11071 if test "$cross_compiling" = yes; then
11072 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11074 cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11077 #include "${srcdir-.}/tests/ftruncroot.c"
11079 if { (eval echo configure:11080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11081 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11083 echo "configure: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11086 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11093 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11094 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11095 cat >> confdefs.h <<\EOF
11096 #define FTRUNCATE_NEEDS_ROOT 1
11101 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11102 echo "configure:11103: checking for fcntl locking" >&5
11103 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11104 echo $ac_n "(cached) $ac_c" 1>&6
11107 if test "$cross_compiling" = yes; then
11108 samba_cv_HAVE_FCNTL_LOCK=cross
11110 cat > conftest.$ac_ext <<EOF
11111 #line 11112 "configure"
11112 #include "confdefs.h"
11113 #include "${srcdir-.}/tests/fcntl_lock.c"
11115 if { (eval echo configure:11116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11117 samba_cv_HAVE_FCNTL_LOCK=yes
11119 echo "configure: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11122 samba_cv_HAVE_FCNTL_LOCK=no
11129 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11130 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11131 cat >> confdefs.h <<\EOF
11132 #define HAVE_FCNTL_LOCK 1
11137 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11138 echo "configure:11139: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11139 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
11143 if test "$cross_compiling" = yes; then
11144 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11149 #include "${srcdir-.}/tests/fcntl_lock64.c"
11151 if { (eval echo configure:11152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11153 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11155 echo "configure: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11158 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11165 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11166 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11167 cat >> confdefs.h <<\EOF
11168 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11175 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11176 echo "configure:11177: checking for 64 bit fcntl locking" >&5
11177 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
11181 if test "$cross_compiling" = yes; then
11182 samba_cv_HAVE_STRUCT_FLOCK64=cross
11184 cat > conftest.$ac_ext <<EOF
11185 #line 11186 "configure"
11186 #include "confdefs.h"
11188 #if defined(HAVE_UNISTD_H)
11189 #include <unistd.h>
11192 #include <stdlib.h>
11194 #ifdef HAVE_FCNTL_H
11198 #ifdef HAVE_SYS_FCNTL_H
11199 #include <sys/fcntl.h>
11201 main() { struct flock64 fl64;
11202 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11209 if { (eval echo configure:11210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11211 samba_cv_HAVE_STRUCT_FLOCK64=yes
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11216 samba_cv_HAVE_STRUCT_FLOCK64=no
11223 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11225 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11226 cat >> confdefs.h <<\EOF
11227 #define HAVE_STRUCT_FLOCK64 1
11236 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11237 echo "configure:11238: checking for broken RedHat 7.2 system header files" >&5
11238 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11242 cat > conftest.$ac_ext <<EOF
11243 #line 11244 "configure"
11244 #include "confdefs.h"
11246 #ifdef HAVE_SYS_VFS_H
11247 #include <sys/vfs.h>
11249 #ifdef HAVE_SYS_CAPABILITY_H
11250 #include <sys/capability.h>
11257 if { (eval echo configure:11258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11259 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11261 echo "configure: failed program was:" >&5
11262 cat conftest.$ac_ext >&5
11264 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11269 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11270 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11271 cat >> confdefs.h <<\EOF
11272 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11279 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11280 echo "configure:11281: checking for broken nisplus include files" >&5
11281 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 #include <sys/acl.h>
11289 #if defined(HAVE_RPCSVC_NIS_H)
11290 #include <rpcsvc/nis.h>
11296 if { (eval echo configure:11297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11298 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11303 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11308 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11309 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11310 cat >> confdefs.h <<\EOF
11311 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11317 #################################################
11318 # check for smbwrapper support
11319 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11320 echo "configure:11321: checking whether to use smbwrapper" >&5
11321 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11322 if test "${with_smbwrapper+set}" = set; then
11323 withval="$with_smbwrapper"
11326 echo "$ac_t""yes" 1>&6
11327 cat >> confdefs.h <<\EOF
11328 #define WITH_SMBWRAPPER 1
11331 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11333 if test x$ATTEMPT_WRAP32_BUILD = x; then
11336 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11339 # Conditions under which smbwrapper should not be built.
11341 if test x$PICFLAG = x; then
11342 echo No support for PIC code - disabling smbwrapper and smbsh
11345 elif test x$ac_cv_func_syscall = xno; then
11346 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11352 echo "$ac_t""no" 1>&6
11356 echo "$ac_t""no" 1>&6
11361 #################################################
11362 # check for AFS clear-text auth support
11363 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11364 echo "configure:11365: checking whether to use AFS clear-text auth" >&5
11365 # Check whether --with-afs or --without-afs was given.
11366 if test "${with_afs+set}" = set; then
11367 withval="$with_afs"
11370 echo "$ac_t""yes" 1>&6
11371 cat >> confdefs.h <<\EOF
11377 echo "$ac_t""no" 1>&6
11381 echo "$ac_t""no" 1>&6
11387 #################################################
11388 # check for the DFS clear-text auth system
11389 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11390 echo "configure:11391: checking whether to use DFS clear-text auth" >&5
11391 # Check whether --with-dfs or --without-dfs was given.
11392 if test "${with_dfs+set}" = set; then
11393 withval="$with_dfs"
11396 echo "$ac_t""yes" 1>&6
11397 cat >> confdefs.h <<\EOF
11403 echo "$ac_t""no" 1>&6
11407 echo "$ac_t""no" 1>&6
11413 #################################################
11414 # see if this box has the RedHat location for kerberos
11415 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11416 echo "configure:11417: checking for /usr/kerberos" >&5
11417 if test -d /usr/kerberos; then
11418 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11419 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11420 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11421 echo "$ac_t""yes" 1>&6
11423 echo "$ac_t""no" 1>&6
11426 #################################################
11427 # check for location of Kerberos 5 install
11428 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11429 echo "configure:11430: checking for kerberos 5 install path" >&5
11430 # Check whether --with-krb5 or --without-krb5 was given.
11431 if test "${with_krb5+set}" = set; then
11432 withval="$with_krb5"
11435 echo "$ac_t""no" 1>&6
11438 echo "$ac_t""yes" 1>&6
11439 LIBS="$LIBS -lkrb5"
11440 CFLAGS="$CFLAGS -I$withval/include"
11441 CPPFLAGS="$CPPFLAGS -I$withval/include"
11442 LDFLAGS="$LDFLAGS -L$withval/lib"
11446 echo "$ac_t""no" 1>&6
11451 # now check for krb5.h. Some systems have the libraries without the headers!
11452 # note that this check is done here to allow for different kerberos
11454 for ac_hdr in krb5.h
11456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11458 echo "configure:11459: checking for $ac_hdr" >&5
11459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11460 echo $ac_n "(cached) $ac_c" 1>&6
11462 cat > conftest.$ac_ext <<EOF
11463 #line 11464 "configure"
11464 #include "confdefs.h"
11467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11468 { (eval echo configure:11469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11470 if test -z "$ac_err"; then
11472 eval "ac_cv_header_$ac_safe=yes"
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11478 eval "ac_cv_header_$ac_safe=no"
11482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11483 echo "$ac_t""yes" 1>&6
11484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11485 cat >> confdefs.h <<EOF
11486 #define $ac_tr_hdr 1
11490 echo "$ac_t""no" 1>&6
11495 # now check for gssapi headers. This is also done here to allow for
11496 # different kerberos include paths
11497 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
11499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11501 echo "configure:11502: checking for $ac_hdr" >&5
11502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11511 { (eval echo configure:11512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11513 if test -z "$ac_err"; then
11515 eval "ac_cv_header_$ac_safe=yes"
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 eval "ac_cv_header_$ac_safe=no"
11525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11528 cat >> confdefs.h <<EOF
11529 #define $ac_tr_hdr 1
11533 echo "$ac_t""no" 1>&6
11538 ##################################################################
11539 # we might need the k5crypto and com_err libraries on some systems
11540 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11541 echo "configure:11542: checking for _et_list in -lcom_err" >&5
11542 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11546 ac_save_LIBS="$LIBS"
11547 LIBS="-lcom_err $LIBS"
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11551 /* Override any gcc2 internal prototype to avoid an error. */
11552 /* We use char because int might match the return type of a gcc2
11553 builtin and then its argument prototype would still apply. */
11560 if { (eval echo configure:11561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11562 eval "ac_cv_lib_$ac_lib_var=yes"
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11567 eval "ac_cv_lib_$ac_lib_var=no"
11570 LIBS="$ac_save_LIBS"
11573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11574 echo "$ac_t""yes" 1>&6
11575 LIBS="$LIBS -lcom_err"
11577 echo "$ac_t""no" 1>&6
11580 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11581 echo "configure:11582: checking for krb5_encrypt_data in -lk5crypto" >&5
11582 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11586 ac_save_LIBS="$LIBS"
11587 LIBS="-lk5crypto $LIBS"
11588 cat > conftest.$ac_ext <<EOF
11589 #line 11590 "configure"
11590 #include "confdefs.h"
11591 /* Override any gcc2 internal prototype to avoid an error. */
11592 /* We use char because int might match the return type of a gcc2
11593 builtin and then its argument prototype would still apply. */
11594 char krb5_encrypt_data();
11597 krb5_encrypt_data()
11600 if { (eval echo configure:11601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11602 eval "ac_cv_lib_$ac_lib_var=yes"
11604 echo "configure: failed program was:" >&5
11605 cat conftest.$ac_ext >&5
11607 eval "ac_cv_lib_$ac_lib_var=no"
11610 LIBS="$ac_save_LIBS"
11613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11614 echo "$ac_t""yes" 1>&6
11615 LIBS="$LIBS -lk5crypto"
11617 echo "$ac_t""no" 1>&6
11620 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11621 echo "configure:11622: checking for gss_display_status in -lgssapi_krb5" >&5
11622 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11624 echo $ac_n "(cached) $ac_c" 1>&6
11626 ac_save_LIBS="$LIBS"
11627 LIBS="-lgssapi_krb5 $LIBS"
11628 cat > conftest.$ac_ext <<EOF
11629 #line 11630 "configure"
11630 #include "confdefs.h"
11631 /* Override any gcc2 internal prototype to avoid an error. */
11632 /* We use char because int might match the return type of a gcc2
11633 builtin and then its argument prototype would still apply. */
11634 char gss_display_status();
11637 gss_display_status()
11640 if { (eval echo configure:11641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11642 eval "ac_cv_lib_$ac_lib_var=yes"
11644 echo "configure: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11647 eval "ac_cv_lib_$ac_lib_var=no"
11650 LIBS="$ac_save_LIBS"
11653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11654 echo "$ac_t""yes" 1>&6
11655 LIBS="$LIBS -lgssapi_krb5"
11657 echo "$ac_t""no" 1>&6
11662 ########################################################
11663 # now see if we can find the krb5 libs in standard paths
11664 # or as specified above
11665 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11666 echo "configure:11667: checking for krb5_mk_req_extended in -lkrb5" >&5
11667 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11669 echo $ac_n "(cached) $ac_c" 1>&6
11671 ac_save_LIBS="$LIBS"
11672 LIBS="-lkrb5 $LIBS"
11673 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11676 /* Override any gcc2 internal prototype to avoid an error. */
11677 /* We use char because int might match the return type of a gcc2
11678 builtin and then its argument prototype would still apply. */
11679 char krb5_mk_req_extended();
11682 krb5_mk_req_extended()
11685 if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11687 eval "ac_cv_lib_$ac_lib_var=yes"
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11692 eval "ac_cv_lib_$ac_lib_var=no"
11695 LIBS="$ac_save_LIBS"
11698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11699 echo "$ac_t""yes" 1>&6
11700 LIBS="$LIBS -lkrb5";
11701 cat >> confdefs.h <<\EOF
11702 #define HAVE_KRB5 1
11706 echo "$ac_t""no" 1>&6
11710 ########################################################
11711 # now see if we can find the gssapi libs in standard paths
11712 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11713 echo "configure:11714: checking for gss_display_status in -lgssapi_krb5" >&5
11714 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11716 echo $ac_n "(cached) $ac_c" 1>&6
11718 ac_save_LIBS="$LIBS"
11719 LIBS="-lgssapi_krb5 $LIBS"
11720 cat > conftest.$ac_ext <<EOF
11721 #line 11722 "configure"
11722 #include "confdefs.h"
11723 /* Override any gcc2 internal prototype to avoid an error. */
11724 /* We use char because int might match the return type of a gcc2
11725 builtin and then its argument prototype would still apply. */
11726 char gss_display_status();
11729 gss_display_status()
11732 if { (eval echo configure:11733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11734 eval "ac_cv_lib_$ac_lib_var=yes"
11736 echo "configure: failed program was:" >&5
11737 cat conftest.$ac_ext >&5
11739 eval "ac_cv_lib_$ac_lib_var=no"
11742 LIBS="$ac_save_LIBS"
11745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11746 echo "$ac_t""yes" 1>&6
11747 cat >> confdefs.h <<\EOF
11748 #define HAVE_GSSAPI 1
11752 echo "$ac_t""no" 1>&6
11757 ##################################################################
11758 # we might need the lber lib on some systems. To avoid link errors
11759 # this test must be before the libldap test
11760 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11761 echo "configure:11762: checking for ber_scanf in -llber" >&5
11762 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11764 echo $ac_n "(cached) $ac_c" 1>&6
11766 ac_save_LIBS="$LIBS"
11767 LIBS="-llber $LIBS"
11768 cat > conftest.$ac_ext <<EOF
11769 #line 11770 "configure"
11770 #include "confdefs.h"
11771 /* Override any gcc2 internal prototype to avoid an error. */
11772 /* We use char because int might match the return type of a gcc2
11773 builtin and then its argument prototype would still apply. */
11780 if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11782 eval "ac_cv_lib_$ac_lib_var=yes"
11784 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11787 eval "ac_cv_lib_$ac_lib_var=no"
11790 LIBS="$ac_save_LIBS"
11793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11794 echo "$ac_t""yes" 1>&6
11795 LIBS="$LIBS -llber"
11797 echo "$ac_t""no" 1>&6
11801 ########################################################
11802 # now see if we can find the ldap libs in standard paths
11803 if test x$have_ldap != xyes; then
11804 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
11805 echo "configure:11806: checking for ldap_domain2hostlist in -lldap" >&5
11806 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
11807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11810 ac_save_LIBS="$LIBS"
11811 LIBS="-lldap $LIBS"
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 /* Override any gcc2 internal prototype to avoid an error. */
11816 /* We use char because int might match the return type of a gcc2
11817 builtin and then its argument prototype would still apply. */
11818 char ldap_domain2hostlist();
11821 ldap_domain2hostlist()
11824 if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11826 eval "ac_cv_lib_$ac_lib_var=yes"
11828 echo "configure: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11831 eval "ac_cv_lib_$ac_lib_var=no"
11834 LIBS="$ac_save_LIBS"
11837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11838 echo "$ac_t""yes" 1>&6
11839 LIBS="$LIBS -lldap";
11840 cat >> confdefs.h <<\EOF
11841 #define HAVE_LDAP 1
11845 echo "$ac_t""no" 1>&6
11850 #################################################
11851 # check for automount support
11852 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11853 echo "configure:11854: checking whether to use AUTOMOUNT" >&5
11854 # Check whether --with-automount or --without-automount was given.
11855 if test "${with_automount+set}" = set; then
11856 withval="$with_automount"
11859 echo "$ac_t""yes" 1>&6
11860 cat >> confdefs.h <<\EOF
11861 #define WITH_AUTOMOUNT 1
11866 echo "$ac_t""no" 1>&6
11870 echo "$ac_t""no" 1>&6
11875 #################################################
11876 # check for smbmount support
11877 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11878 echo "configure:11879: checking whether to use SMBMOUNT" >&5
11879 # Check whether --with-smbmount or --without-smbmount was given.
11880 if test "${with_smbmount+set}" = set; then
11881 withval="$with_smbmount"
11886 echo "$ac_t""yes" 1>&6
11887 cat >> confdefs.h <<\EOF
11888 #define WITH_SMBMOUNT 1
11891 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11894 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11899 echo "$ac_t""no" 1>&6
11904 echo "$ac_t""no" 1>&6
11911 #################################################
11912 # check for a PAM clear-text auth, accounts, password and session support
11913 with_pam_for_crypt=no
11914 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
11915 echo "configure:11916: checking whether to use PAM" >&5
11916 # Check whether --with-pam or --without-pam was given.
11917 if test "${with_pam+set}" = set; then
11918 withval="$with_pam"
11921 echo "$ac_t""yes" 1>&6
11922 cat >> confdefs.h <<\EOF
11927 with_pam_for_crypt=yes
11930 echo "$ac_t""no" 1>&6
11934 echo "$ac_t""no" 1>&6
11939 # we can't build a pam module if we don't have pam.
11940 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11941 echo "configure:11942: checking for pam_get_data in -lpam" >&5
11942 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11944 echo $ac_n "(cached) $ac_c" 1>&6
11946 ac_save_LIBS="$LIBS"
11948 cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 /* Override any gcc2 internal prototype to avoid an error. */
11952 /* We use char because int might match the return type of a gcc2
11953 builtin and then its argument prototype would still apply. */
11954 char pam_get_data();
11960 if { (eval echo configure:11961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11962 eval "ac_cv_lib_$ac_lib_var=yes"
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11967 eval "ac_cv_lib_$ac_lib_var=no"
11970 LIBS="$ac_save_LIBS"
11973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11974 echo "$ac_t""yes" 1>&6
11975 cat >> confdefs.h <<\EOF
11976 #define HAVE_LIBPAM 1
11980 echo "$ac_t""no" 1>&6
11984 #################################################
11985 # check for pam_smbpass support
11986 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11987 echo "configure:11988: checking whether to use pam_smbpass" >&5
11988 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11989 if test "${with_pam_smbpass+set}" = set; then
11990 withval="$with_pam_smbpass"
11993 echo "$ac_t""yes" 1>&6
11995 # Conditions under which pam_smbpass should not be built.
11997 if test x$PICFLAG = x; then
11998 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12000 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12001 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12004 PAM_MOD="bin/pam_smbpass.so"
12008 echo "$ac_t""no" 1>&6
12012 echo "$ac_t""no" 1>&6
12018 ###############################################
12019 # test for where we get crypt() from, but only
12021 if test $with_pam_for_crypt = no; then
12022 for ac_func in crypt
12024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12025 echo "configure:12026: checking for $ac_func" >&5
12026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12027 echo $ac_n "(cached) $ac_c" 1>&6
12029 cat > conftest.$ac_ext <<EOF
12030 #line 12031 "configure"
12031 #include "confdefs.h"
12032 /* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char $ac_func(); below. */
12034 #include <assert.h>
12035 /* Override any gcc2 internal prototype to avoid an error. */
12036 /* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12042 /* The GNU C library defines this for functions which it implements
12043 to always fail with ENOSYS. Some functions are actually named
12044 something starting with __ and the normal name is an alias. */
12045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12053 if { (eval echo configure:12054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12055 eval "ac_cv_func_$ac_func=yes"
12057 echo "configure: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12060 eval "ac_cv_func_$ac_func=no"
12065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12068 cat >> confdefs.h <<EOF
12069 #define $ac_tr_func 1
12073 echo "$ac_t""no" 1>&6
12077 if test x"$ac_cv_func_crypt" = x"no"; then
12078 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12079 echo "configure:12080: checking for crypt in -lcrypt" >&5
12080 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12082 echo $ac_n "(cached) $ac_c" 1>&6
12084 ac_save_LIBS="$LIBS"
12085 LIBS="-lcrypt $LIBS"
12086 cat > conftest.$ac_ext <<EOF
12087 #line 12088 "configure"
12088 #include "confdefs.h"
12089 /* Override any gcc2 internal prototype to avoid an error. */
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12098 if { (eval echo configure:12099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12100 eval "ac_cv_lib_$ac_lib_var=yes"
12102 echo "configure: failed program was:" >&5
12103 cat conftest.$ac_ext >&5
12105 eval "ac_cv_lib_$ac_lib_var=no"
12108 LIBS="$ac_save_LIBS"
12111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12112 echo "$ac_t""yes" 1>&6
12113 LIBS="$LIBS -lcrypt";
12114 cat >> confdefs.h <<\EOF
12115 #define HAVE_CRYPT 1
12119 echo "$ac_t""no" 1>&6
12126 ## moved after the check for -lcrypt in order to
12127 ## ensure that the necessary libraries are included
12128 ## check checking for truncated salt. Wrapped by the
12129 ## $with_pam_for_crypt variable as above --jerry
12131 if test $with_pam_for_crypt = no; then
12132 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12133 echo "configure:12134: checking for a crypt that needs truncated salt" >&5
12134 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12138 if test "$cross_compiling" = yes; then
12139 samba_cv_HAVE_TRUNCATED_SALT=cross
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 #include "${srcdir-.}/tests/crypttest.c"
12146 if { (eval echo configure:12147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12148 samba_cv_HAVE_TRUNCATED_SALT=no
12150 echo "configure: failed program was:" >&5
12151 cat conftest.$ac_ext >&5
12153 samba_cv_HAVE_TRUNCATED_SALT=yes
12160 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12161 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12162 cat >> confdefs.h <<\EOF
12163 #define HAVE_TRUNCATED_SALT 1
12171 ########################################################################################
12173 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12175 ########################################################################################
12177 ## set the with_smbpasswd_sam as the default
12178 with_smbpasswd_sam=yes
12181 #################################################
12182 # check for a TDB password database
12183 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12184 echo "configure:12185: checking whether to use TDB SAM database" >&5
12185 # Check whether --with-tdbsam or --without-tdbsam was given.
12186 if test "${with_tdbsam+set}" = set; then
12187 withval="$with_tdbsam"
12190 echo "$ac_t""yes" 1>&6
12191 cat >> confdefs.h <<\EOF
12192 #define WITH_TDB_SAM 1
12195 with_smbpasswd_sam=no
12198 echo "$ac_t""no" 1>&6
12202 echo "$ac_t""no" 1>&6
12207 #################################################
12208 # check for a LDAP password database
12209 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12210 echo "configure:12211: checking whether to use LDAP SAM database" >&5
12211 # Check whether --with-ldapsam or --without-ldapsam was given.
12212 if test "${with_ldapsam+set}" = set; then
12213 withval="$with_ldapsam"
12216 echo "$ac_t""yes" 1>&6
12217 cat >> confdefs.h <<\EOF
12218 #define WITH_LDAP_SAM 1
12221 LIBS="-lldap -llber $LIBS"
12222 with_smbpasswd_sam=no
12225 echo "$ac_t""no" 1>&6
12229 echo "$ac_t""no" 1>&6
12234 #################################################
12235 # check for a NISPLUS password database
12236 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12237 echo "configure:12238: checking whether to use NISPLUS SAM database" >&5
12238 # Check whether --with-nisplussam or --without-nisplussam was given.
12239 if test "${with_nisplussam+set}" = set; then
12240 withval="$with_nisplussam"
12243 echo "$ac_t""yes" 1>&6
12244 cat >> confdefs.h <<\EOF
12245 #define WITH_NISPLUS_SAM 1
12248 with_smbpasswd_sam=no
12251 echo "$ac_t""no" 1>&6
12255 echo "$ac_t""no" 1>&6
12260 ################################################
12261 # This test should come last because the
12262 # smbpasswd SAM is only used if another format
12263 # has not been defined
12264 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12265 echo "configure:12266: checking whether to use traditional smbpasswd file" >&5
12266 if test $with_smbpasswd_sam = yes; then
12267 echo "$ac_t""yes" 1>&6
12268 cat >> confdefs.h <<\EOF
12269 #define WITH_SMBPASSWD_SAM 1
12273 echo "$ac_t""no" 1>&6
12276 ########################################################################################
12278 ## END OF TESTS FOR SAM BACKENDS.
12280 ########################################################################################
12282 #################################################
12283 # check for a NISPLUS_HOME support
12284 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12285 echo "configure:12286: checking whether to use NISPLUS_HOME" >&5
12286 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12287 if test "${with_nisplus_home+set}" = set; then
12288 withval="$with_nisplus_home"
12291 echo "$ac_t""yes" 1>&6
12292 cat >> confdefs.h <<\EOF
12293 #define WITH_NISPLUS_HOME 1
12298 echo "$ac_t""no" 1>&6
12302 echo "$ac_t""no" 1>&6
12307 #################################################
12308 # check for the secure socket layer
12309 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12310 echo "configure:12311: checking whether to use SSL" >&5
12311 # Check whether --with-ssl or --without-ssl was given.
12312 if test "${with_ssl+set}" = set; then
12313 withval="$with_ssl"
12316 echo "$ac_t""yes" 1>&6
12317 cat >> confdefs.h <<\EOF
12321 withval="/usr/local/ssl" # default
12323 if test "${with_sslinc+set}" = set; then
12325 withval="$with_sslinc"
12328 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12329 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12332 CFLAGS="-I${withval} $CFLAGS"
12338 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12342 if test "${with_ssllib+set}" = set; then
12344 withval="$with_ssllib"
12347 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12348 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12351 LDFLAGS="-L${withval}/lib $LDFLAGS"
12357 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12361 LIBS="-lssl -lcrypto $LIBS"
12363 # if test ! -d ${withval}; then
12364 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12368 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12372 echo "$ac_t""no" 1>&6
12376 echo "$ac_t""no" 1>&6
12381 #################################################
12382 # check for syslog logging
12383 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12384 echo "configure:12385: checking whether to use syslog logging" >&5
12385 # Check whether --with-syslog or --without-syslog was given.
12386 if test "${with_syslog+set}" = set; then
12387 withval="$with_syslog"
12390 echo "$ac_t""yes" 1>&6
12391 cat >> confdefs.h <<\EOF
12392 #define WITH_SYSLOG 1
12397 echo "$ac_t""no" 1>&6
12401 echo "$ac_t""no" 1>&6
12406 #################################################
12407 # check for a shared memory profiling support
12408 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12409 echo "configure:12410: checking whether to use profiling" >&5
12410 # Check whether --with-profiling-data or --without-profiling-data was given.
12411 if test "${with_profiling_data+set}" = set; then
12412 withval="$with_profiling_data"
12415 echo "$ac_t""yes" 1>&6
12416 cat >> confdefs.h <<\EOF
12417 #define WITH_PROFILE 1
12422 echo "$ac_t""no" 1>&6
12426 echo "$ac_t""no" 1>&6
12432 #################################################
12433 # check for experimental disk-quotas support
12434 QUOTAOBJS=smbd/noquotas.o
12436 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12437 echo "configure:12438: checking whether to support disk-quotas" >&5
12438 # Check whether --with-quotas or --without-quotas was given.
12439 if test "${with_quotas+set}" = set; then
12440 withval="$with_quotas"
12443 echo "$ac_t""yes" 1>&6
12446 # Check for kernel 2.4.x quota braindamage...
12447 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12448 echo "configure:12449: checking for linux 2.4.x quota braindamage.." >&5
12449 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12453 cat > conftest.$ac_ext <<EOF
12454 #line 12455 "configure"
12455 #include "confdefs.h"
12457 #include <sys/types.h>
12458 #include <asm/types.h>
12459 #include <linux/quota.h>
12460 #include <mntent.h>
12461 #include <linux/unistd.h>
12463 struct mem_dqblk D;
12466 if { (eval echo configure:12467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12468 samba_cv_linux_2_4_quota_braindamage=yes
12470 echo "configure: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12473 samba_cv_linux_2_4_quota_braindamage=no
12478 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12479 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12480 cat >> confdefs.h <<\EOF
12481 #define LINUX_QUOTAS_2 1
12485 cat >> confdefs.h <<\EOF
12486 #define LINUX_QUOTAS_1 1
12494 QUOTAOBJS=smbd/quotas.o
12495 cat >> confdefs.h <<\EOF
12496 #define WITH_QUOTAS 1
12501 echo "$ac_t""no" 1>&6
12505 echo "$ac_t""no" 1>&6
12511 #################################################
12512 # check for experimental utmp accounting
12514 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12515 echo "configure:12516: checking whether to support utmp accounting" >&5
12516 # Check whether --with-utmp or --without-utmp was given.
12517 if test "${with_utmp+set}" = set; then
12518 withval="$with_utmp"
12521 echo "$ac_t""yes" 1>&6
12522 cat >> confdefs.h <<\EOF
12523 #define WITH_UTMP 1
12528 echo "$ac_t""no" 1>&6
12532 echo "$ac_t""no" 1>&6
12537 #################################################
12538 # set private directory location
12539 # Check whether --with-privatedir or --without-privatedir was given.
12540 if test "${with_privatedir+set}" = set; then
12541 withval="$with_privatedir"
12545 # Just in case anybody calls it without argument
12547 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12548 privatedir='${prefix}/private'
12551 privatedir="$withval"
12556 privatedir='${prefix}/private'
12562 #################################################
12563 # set lock directory location
12564 # Check whether --with-lockdir or --without-lockdir was given.
12565 if test "${with_lockdir+set}" = set; then
12566 withval="$with_lockdir"
12570 # Just in case anybody calls it without argument
12572 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12573 lockdir='$(VARDIR)/locks'
12581 lockdir='$(VARDIR)/locks'
12587 #################################################
12588 # set SWAT directory location
12589 # Check whether --with-swatdir or --without-swatdir was given.
12590 if test "${with_swatdir+set}" = set; then
12591 withval="$with_swatdir"
12595 # Just in case anybody does it
12597 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12598 swatdir='${prefix}/swat'
12606 swatdir='${prefix}/swat'
12612 #################################################
12613 # choose native language(s) of man pages
12614 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12615 echo "configure:12616: checking chosen man pages' language(s)" >&5
12616 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12617 if test "${with_manpages_langs+set}" = set; then
12618 withval="$with_manpages_langs"
12621 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12625 manlangs="$withval"
12629 echo "$ac_t""$manlangs" 1>&6
12630 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12634 echo "$ac_t""$manlangs" 1>&6
12640 #################################################
12641 # these tests are taken from the GNU fileutils package
12642 echo "checking how to get filesystem space usage" 1>&6
12643 echo "configure:12644: checking how to get filesystem space usage" >&5
12646 # Test for statvfs64.
12647 if test $space = no; then
12649 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12650 echo "configure:12651: checking statvfs64 function (SVR4)" >&5
12651 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12652 echo $ac_n "(cached) $ac_c" 1>&6
12654 if test "$cross_compiling" = yes; then
12655 fu_cv_sys_stat_statvfs64=cross
12657 cat > conftest.$ac_ext <<EOF
12658 #line 12659 "configure"
12659 #include "confdefs.h"
12661 #if defined(HAVE_UNISTD_H)
12662 #include <unistd.h>
12664 #include <sys/types.h>
12665 #include <sys/statvfs.h>
12668 struct statvfs64 fsd;
12669 exit (statvfs64 (".", &fsd));
12672 if { (eval echo configure:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12674 fu_cv_sys_stat_statvfs64=yes
12676 echo "configure: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12679 fu_cv_sys_stat_statvfs64=no
12686 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12687 if test $fu_cv_sys_stat_statvfs64 = yes; then
12689 cat >> confdefs.h <<\EOF
12690 #define STAT_STATVFS64 1
12696 # Perform only the link test since it seems there are no variants of the
12697 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12698 # because that got a false positive on SCO OSR5. Adding the declaration
12699 # of a `struct statvfs' causes this test to fail (as it should) on such
12700 # systems. That system is reported to work fine with STAT_STATFS4 which
12701 # is what it gets when this test fails.
12702 if test $space = no; then
12704 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12705 echo "configure:12706: checking statvfs function (SVR4)" >&5
12706 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12707 echo $ac_n "(cached) $ac_c" 1>&6
12709 cat > conftest.$ac_ext <<EOF
12710 #line 12711 "configure"
12711 #include "confdefs.h"
12712 #include <sys/types.h>
12713 #include <sys/statvfs.h>
12715 struct statvfs fsd; statvfs (0, &fsd);
12718 if { (eval echo configure:12719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12720 fu_cv_sys_stat_statvfs=yes
12722 echo "configure: failed program was:" >&5
12723 cat conftest.$ac_ext >&5
12725 fu_cv_sys_stat_statvfs=no
12730 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12731 if test $fu_cv_sys_stat_statvfs = yes; then
12733 cat >> confdefs.h <<\EOF
12734 #define STAT_STATVFS 1
12740 if test $space = no; then
12741 # DEC Alpha running OSF/1
12742 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12743 echo "configure:12744: checking for 3-argument statfs function (DEC OSF/1)" >&5
12744 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12745 echo $ac_n "(cached) $ac_c" 1>&6
12747 if test "$cross_compiling" = yes; then
12748 fu_cv_sys_stat_statfs3_osf1=no
12750 cat > conftest.$ac_ext <<EOF
12751 #line 12752 "configure"
12752 #include "confdefs.h"
12754 #include <sys/param.h>
12755 #include <sys/types.h>
12756 #include <sys/mount.h>
12761 exit (statfs (".", &fsd, sizeof (struct statfs)));
12764 if { (eval echo configure:12765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12766 fu_cv_sys_stat_statfs3_osf1=yes
12768 echo "configure: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12771 fu_cv_sys_stat_statfs3_osf1=no
12778 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12779 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12781 cat >> confdefs.h <<\EOF
12782 #define STAT_STATFS3_OSF1 1
12788 if test $space = no; then
12790 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12791 echo "configure:12792: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12792 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12793 echo $ac_n "(cached) $ac_c" 1>&6
12795 if test "$cross_compiling" = yes; then
12796 fu_cv_sys_stat_statfs2_bsize=no
12798 cat > conftest.$ac_ext <<EOF
12799 #line 12800 "configure"
12800 #include "confdefs.h"
12802 #ifdef HAVE_SYS_PARAM_H
12803 #include <sys/param.h>
12805 #ifdef HAVE_SYS_MOUNT_H
12806 #include <sys/mount.h>
12808 #ifdef HAVE_SYS_VFS_H
12809 #include <sys/vfs.h>
12815 exit (statfs (".", &fsd));
12818 if { (eval echo configure:12819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12820 fu_cv_sys_stat_statfs2_bsize=yes
12822 echo "configure: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12825 fu_cv_sys_stat_statfs2_bsize=no
12832 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12833 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12835 cat >> confdefs.h <<\EOF
12836 #define STAT_STATFS2_BSIZE 1
12842 if test $space = no; then
12844 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12845 echo "configure:12846: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12846 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12847 echo $ac_n "(cached) $ac_c" 1>&6
12849 if test "$cross_compiling" = yes; then
12850 fu_cv_sys_stat_statfs4=no
12852 cat > conftest.$ac_ext <<EOF
12853 #line 12854 "configure"
12854 #include "confdefs.h"
12855 #include <sys/types.h>
12856 #include <sys/statfs.h>
12860 exit (statfs (".", &fsd, sizeof fsd, 0));
12863 if { (eval echo configure:12864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12865 fu_cv_sys_stat_statfs4=yes
12867 echo "configure: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12870 fu_cv_sys_stat_statfs4=no
12877 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12878 if test $fu_cv_sys_stat_statfs4 = yes; then
12880 cat >> confdefs.h <<\EOF
12881 #define STAT_STATFS4 1
12887 if test $space = no; then
12888 # 4.4BSD and NetBSD
12889 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12890 echo "configure:12891: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12891 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12892 echo $ac_n "(cached) $ac_c" 1>&6
12894 if test "$cross_compiling" = yes; then
12895 fu_cv_sys_stat_statfs2_fsize=no
12897 cat > conftest.$ac_ext <<EOF
12898 #line 12899 "configure"
12899 #include "confdefs.h"
12900 #include <sys/types.h>
12901 #ifdef HAVE_SYS_PARAM_H
12902 #include <sys/param.h>
12904 #ifdef HAVE_SYS_MOUNT_H
12905 #include <sys/mount.h>
12911 exit (statfs (".", &fsd));
12914 if { (eval echo configure:12915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12916 fu_cv_sys_stat_statfs2_fsize=yes
12918 echo "configure: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12921 fu_cv_sys_stat_statfs2_fsize=no
12928 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12929 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12931 cat >> confdefs.h <<\EOF
12932 #define STAT_STATFS2_FSIZE 1
12938 if test $space = no; then
12940 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12941 echo "configure:12942: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12942 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12943 echo $ac_n "(cached) $ac_c" 1>&6
12945 if test "$cross_compiling" = yes; then
12946 fu_cv_sys_stat_fs_data=no
12948 cat > conftest.$ac_ext <<EOF
12949 #line 12950 "configure"
12950 #include "confdefs.h"
12951 #include <sys/types.h>
12952 #ifdef HAVE_SYS_PARAM_H
12953 #include <sys/param.h>
12955 #ifdef HAVE_SYS_MOUNT_H
12956 #include <sys/mount.h>
12958 #ifdef HAVE_SYS_FS_TYPES_H
12959 #include <sys/fs_types.h>
12963 struct fs_data fsd;
12964 /* Ultrix's statfs returns 1 for success,
12965 0 for not mounted, -1 for failure. */
12966 exit (statfs (".", &fsd) != 1);
12969 if { (eval echo configure:12970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12971 fu_cv_sys_stat_fs_data=yes
12973 echo "configure: failed program was:" >&5
12974 cat conftest.$ac_ext >&5
12976 fu_cv_sys_stat_fs_data=no
12983 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12984 if test $fu_cv_sys_stat_fs_data = yes; then
12986 cat >> confdefs.h <<\EOF
12987 #define STAT_STATFS2_FS_DATA 1
12994 # As a gating factor for large file support, in order to
12995 # use <4GB files we must have the following minimal support
12997 # long long, and a 64 bit off_t or off64_t.
12998 # If we don't have all of these then disable large
13001 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13002 echo "configure:13003: checking if large file support can be enabled" >&5
13003 cat > conftest.$ac_ext <<EOF
13004 #line 13005 "configure"
13005 #include "confdefs.h"
13007 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13008 #include <sys/types.h>
13017 if { (eval echo configure:13018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13019 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13021 echo "configure: failed program was:" >&5
13022 cat conftest.$ac_ext >&5
13024 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13027 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13028 cat >> confdefs.h <<\EOF
13029 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13033 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13035 # Check whether --with-spinlocks or --without-spinlocks was given.
13036 if test "${with_spinlocks+set}" = set; then
13037 withval="$with_spinlocks"
13041 if test "x$with_spinlocks" = "xyes"; then
13042 cat >> confdefs.h <<\EOF
13043 #define USE_SPINLOCKS 1
13047 case "$host_cpu" in
13049 cat >> confdefs.h <<\EOF
13050 #define SPARC_SPINLOCKS 1
13055 i386|i486|i586|i686)
13056 cat >> confdefs.h <<\EOF
13057 #define INTEL_SPINLOCKS 1
13063 cat >> confdefs.h <<\EOF
13064 #define MIPS_SPINLOCKS 1
13070 cat >> confdefs.h <<\EOF
13071 #define POWERPC_SPINLOCKS 1
13078 #################################################
13079 # check for ACL support
13081 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13082 echo "configure:13083: checking whether to support ACLs" >&5
13083 # Check whether --with-acl-support or --without-acl-support was given.
13084 if test "${with_acl_support+set}" = set; then
13085 withval="$with_acl_support"
13091 echo "$ac_t""Using UnixWare ACLs" 1>&6
13092 cat >> confdefs.h <<\EOF
13093 #define HAVE_UNIXWARE_ACLS 1
13098 echo "$ac_t""Using solaris ACLs" 1>&6
13099 cat >> confdefs.h <<\EOF
13100 #define HAVE_SOLARIS_ACLS 1
13105 echo "$ac_t""Using HPUX ACLs" 1>&6
13106 cat >> confdefs.h <<\EOF
13107 #define HAVE_HPUX_ACLS 1
13112 echo "$ac_t""Using IRIX ACLs" 1>&6
13113 cat >> confdefs.h <<\EOF
13114 #define HAVE_IRIX_ACLS 1
13119 echo "$ac_t""Using AIX ACLs" 1>&6
13120 cat >> confdefs.h <<\EOF
13121 #define HAVE_AIX_ACLS 1
13126 echo "$ac_t""Using Tru64 ACLs" 1>&6
13127 cat >> confdefs.h <<\EOF
13128 #define HAVE_TRU64_ACLS 1
13131 LIBS="$LIBS -lpacl"
13134 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13135 echo "configure:13136: checking for acl_get_file in -lacl" >&5
13136 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13138 echo $ac_n "(cached) $ac_c" 1>&6
13140 ac_save_LIBS="$LIBS"
13142 cat > conftest.$ac_ext <<EOF
13143 #line 13144 "configure"
13144 #include "confdefs.h"
13145 /* Override any gcc2 internal prototype to avoid an error. */
13146 /* We use char because int might match the return type of a gcc2
13147 builtin and then its argument prototype would still apply. */
13148 char acl_get_file();
13154 if { (eval echo configure:13155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13156 eval "ac_cv_lib_$ac_lib_var=yes"
13158 echo "configure: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13161 eval "ac_cv_lib_$ac_lib_var=no"
13164 LIBS="$ac_save_LIBS"
13167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13168 echo "$ac_t""yes" 1>&6
13169 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13171 cat >> confdefs.h <<EOF
13172 #define $ac_tr_lib 1
13178 echo "$ac_t""no" 1>&6
13181 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13182 echo "configure:13183: checking for ACL support" >&5
13183 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13184 echo $ac_n "(cached) $ac_c" 1>&6
13187 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure"
13189 #include "confdefs.h"
13190 #include <sys/types.h>
13191 #include <sys/acl.h>
13193 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13196 if { (eval echo configure:13197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13198 samba_cv_HAVE_POSIX_ACLS=yes
13200 echo "configure: failed program was:" >&5
13201 cat conftest.$ac_ext >&5
13203 samba_cv_HAVE_POSIX_ACLS=no
13208 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13209 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13210 echo "$ac_t""Using posix ACLs" 1>&6
13211 cat >> confdefs.h <<\EOF
13212 #define HAVE_POSIX_ACLS 1
13215 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13216 echo "configure:13217: checking for acl_get_perm_np" >&5
13217 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13218 echo $ac_n "(cached) $ac_c" 1>&6
13221 cat > conftest.$ac_ext <<EOF
13222 #line 13223 "configure"
13223 #include "confdefs.h"
13224 #include <sys/types.h>
13225 #include <sys/acl.h>
13227 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13230 if { (eval echo configure:13231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13232 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13234 echo "configure: failed program was:" >&5
13235 cat conftest.$ac_ext >&5
13237 samba_cv_HAVE_ACL_GET_PERM_NP=no
13242 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13243 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13244 cat >> confdefs.h <<\EOF
13245 #define HAVE_ACL_GET_PERM_NP 1
13254 echo "$ac_t""no" 1>&6
13255 cat >> confdefs.h <<\EOF
13256 #define HAVE_NO_ACLS 1
13262 cat >> confdefs.h <<\EOF
13263 #define HAVE_NO_ACLS 1
13266 echo "$ac_t""no" 1>&6
13271 #################################################
13272 # Check whether winbind is supported on this platform. If so we need to
13273 # build and install client programs (WINBIND_TARGETS), sbin programs
13274 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13276 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13277 echo "configure:13278: checking whether to build winbind" >&5
13279 # Initially, the value of $host_os decides whether winbind is supported
13282 *linux*|*solaris*|*irix*)
13287 winbind_no_reason=", unsupported on $host_os"
13291 # Check the setting of --with-winbindd
13293 # Check whether --with-winbind or --without-winbind was given.
13294 if test "${with_winbind+set}" = set; then
13295 withval="$with_winbind"
13309 # We need unix domain sockets for winbind
13311 if test x"$HAVE_WINBIND" = x"yes"; then
13312 if test x"$samba_cv_unixsocket" = x"no"; then
13313 winbind_no_reason=", no unix domain socket support on $host_os"
13318 # Display test results
13322 WINBIND_STARGETS=""
13323 WINBIND_LTARGETS=""
13324 WINBIND_PAM_PROGS=""
13326 if test x"$HAVE_WINBIND" = x"yes"; then
13327 echo "$ac_t""yes" 1>&6
13329 WINBIND_TARGETS="bin/wbinfo"
13330 WINBIND_STARGETS="bin/winbindd"
13331 if test x"$BLDSHARED" = x"true"; then
13332 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13333 if test x"$with_pam" = x"yes"; then
13334 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13338 echo "$ac_t""no$winbind_no_reason" 1>&6
13341 # Substitution time!
13348 #################################################
13349 # Check to see if we should use the included popt
13351 # Check whether --with-included-popt or --without-included-popt was given.
13352 if test "${with_included_popt+set}" = set; then
13353 withval="$with_included_popt"
13365 if test x"$INCLUDED_POPT" != x"yes"; then
13366 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13367 echo "configure:13368: checking for poptGetContext in -lpopt" >&5
13368 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13370 echo $ac_n "(cached) $ac_c" 1>&6
13372 ac_save_LIBS="$LIBS"
13373 LIBS="-lpopt $LIBS"
13374 cat > conftest.$ac_ext <<EOF
13375 #line 13376 "configure"
13376 #include "confdefs.h"
13377 /* Override any gcc2 internal prototype to avoid an error. */
13378 /* We use char because int might match the return type of a gcc2
13379 builtin and then its argument prototype would still apply. */
13380 char poptGetContext();
13386 if { (eval echo configure:13387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13388 eval "ac_cv_lib_$ac_lib_var=yes"
13390 echo "configure: failed program was:" >&5
13391 cat conftest.$ac_ext >&5
13393 eval "ac_cv_lib_$ac_lib_var=no"
13396 LIBS="$ac_save_LIBS"
13399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13400 echo "$ac_t""yes" 1>&6
13403 echo "$ac_t""no" 1>&6
13409 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13410 echo "configure:13411: checking whether to use included popt" >&5
13411 if test x"$INCLUDED_POPT" = x"yes"; then
13412 echo "$ac_t""$srcdir/popt" 1>&6
13413 BUILD_POPT='$(POPT_OBJS)'
13414 FLAGS1="-I$srcdir/popt"
13416 echo "$ac_t""no" 1>&6
13417 LIBS="$LIBS -lpopt"
13422 #################################################
13423 # final configure stuff
13425 echo "checking configure summary"
13426 if test "$cross_compiling" = yes; then
13429 cat > conftest.$ac_ext <<EOF
13430 #line 13431 "configure"
13431 #include "confdefs.h"
13432 #include "${srcdir-.}/tests/summary.c"
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 echo "configure OK";
13438 echo "configure: failed program was:" >&5
13439 cat conftest.$ac_ext >&5
13441 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13451 cat > confcache <<\EOF
13452 # This file is a shell script that caches the results of configure
13453 # tests run on this system so they can be shared between configure
13454 # scripts and configure runs. It is not useful on other systems.
13455 # If it contains results you don't want to keep, you may remove or edit it.
13457 # By default, configure uses ./config.cache as the cache file,
13458 # creating it if it does not exist already. You can give configure
13459 # the --cache-file=FILE option to use a different cache file; that is
13460 # what configure does when it calls configure scripts in
13461 # subdirectories, so they share the cache.
13462 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13463 # config.status only pays attention to the cache file if you give it the
13464 # --recheck option to rerun configure.
13467 # The following way of writing the cache mishandles newlines in values,
13468 # but we know of no workaround that is simple, portable, and efficient.
13469 # So, don't put newlines in cache variables' values.
13470 # Ultrix sh set writes to stderr and can't be redirected directly,
13471 # and sets the high bit in the cache file unless we assign to the vars.
13473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13475 # `set' does not quote correctly, so add quotes (double-quote substitution
13476 # turns \\\\ into \\, and sed turns \\ into \).
13478 -e "s/'/'\\\\''/g" \
13479 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13482 # `set' quotes correctly as required by POSIX, so do not add quotes.
13483 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13486 if cmp -s $cache_file confcache; then
13489 if test -w $cache_file; then
13490 echo "updating cache $cache_file"
13491 cat confcache > $cache_file
13493 echo "not updating unwritable cache $cache_file"
13498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13501 # Let make expand exec_prefix.
13502 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13504 # Any assignment to VPATH causes Sun make to only execute
13505 # the first set of double-colon rules, so remove it if not needed.
13506 # If there is a colon in the path, we need to keep it.
13507 if test "x$srcdir" = x.; then
13508 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13511 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13513 DEFS=-DHAVE_CONFIG_H
13515 # Without the "./", some shells look in PATH for config.status.
13516 : ${CONFIG_STATUS=./config.status}
13518 echo creating $CONFIG_STATUS
13519 rm -f $CONFIG_STATUS
13520 cat > $CONFIG_STATUS <<EOF
13522 # Generated automatically by configure.
13523 # Run this file to recreate the current configuration.
13524 # This directory was configured as follows,
13525 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13527 # $0 $ac_configure_args
13529 # Compiler output produced by configure, useful for debugging
13530 # configure, is in ./config.log if it exists.
13532 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13535 case "\$ac_option" in
13536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13537 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13538 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13539 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13540 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13542 -help | --help | --hel | --he | --h)
13543 echo "\$ac_cs_usage"; exit 0 ;;
13544 *) echo "\$ac_cs_usage"; exit 1 ;;
13548 ac_given_srcdir=$srcdir
13549 ac_given_INSTALL="$INSTALL"
13551 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13553 cat >> $CONFIG_STATUS <<EOF
13555 # Protect against being on the right side of a sed subst in config.status.
13556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13561 s%@CFLAGS@%$CFLAGS%g
13562 s%@CPPFLAGS@%$CPPFLAGS%g
13563 s%@CXXFLAGS@%$CXXFLAGS%g
13564 s%@FFLAGS@%$FFLAGS%g
13566 s%@LDFLAGS@%$LDFLAGS%g
13568 s%@exec_prefix@%$exec_prefix%g
13569 s%@prefix@%$prefix%g
13570 s%@program_transform_name@%$program_transform_name%g
13571 s%@bindir@%$bindir%g
13572 s%@sbindir@%$sbindir%g
13573 s%@libexecdir@%$libexecdir%g
13574 s%@datadir@%$datadir%g
13575 s%@sysconfdir@%$sysconfdir%g
13576 s%@sharedstatedir@%$sharedstatedir%g
13577 s%@localstatedir@%$localstatedir%g
13578 s%@libdir@%$libdir%g
13579 s%@includedir@%$includedir%g
13580 s%@oldincludedir@%$oldincludedir%g
13581 s%@infodir@%$infodir%g
13582 s%@mandir@%$mandir%g
13583 s%@RUNPROG@%$RUNPROG%g
13584 s%@MPROGS@%$MPROGS%g
13585 s%@LDSHFLAGS@%$LDSHFLAGS%g
13587 s%@HOST_OS@%$HOST_OS%g
13588 s%@PAM_MOD@%$PAM_MOD%g
13590 s%@WRAP32@%$WRAP32%g
13591 s%@PICFLAG@%$PICFLAG%g
13592 s%@PICSUFFIX@%$PICSUFFIX%g
13593 s%@POBAD_CC@%$POBAD_CC%g
13594 s%@SHLIBEXT@%$SHLIBEXT%g
13595 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13597 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13598 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13599 s%@INSTALL_DATA@%$INSTALL_DATA%g
13601 s%@BROKEN_CC@%$BROKEN_CC%g
13603 s%@host_alias@%$host_alias%g
13604 s%@host_cpu@%$host_cpu%g
13605 s%@host_vendor@%$host_vendor%g
13606 s%@host_os@%$host_os%g
13607 s%@target@%$target%g
13608 s%@target_alias@%$target_alias%g
13609 s%@target_cpu@%$target_cpu%g
13610 s%@target_vendor@%$target_vendor%g
13611 s%@target_os@%$target_os%g
13613 s%@build_alias@%$build_alias%g
13614 s%@build_cpu@%$build_cpu%g
13615 s%@build_vendor@%$build_vendor%g
13616 s%@build_os@%$build_os%g
13618 s%@LIBOBJS@%$LIBOBJS%g
13619 s%@TERMLIBS@%$TERMLIBS%g
13620 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13622 s%@QUOTAOBJS@%$QUOTAOBJS%g
13623 s%@privatedir@%$privatedir%g
13624 s%@lockdir@%$lockdir%g
13625 s%@swatdir@%$swatdir%g
13626 s%@manlangs@%$manlangs%g
13627 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13628 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13629 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13630 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13631 s%@BUILD_POPT@%$BUILD_POPT%g
13632 s%@FLAGS1@%$FLAGS1%g
13633 s%@builddir@%$builddir%g
13638 cat >> $CONFIG_STATUS <<\EOF
13640 # Split the substitutions into bite-sized pieces for seds with
13641 # small command number limits, like on Digital OSF/1 and HP-UX.
13642 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13643 ac_file=1 # Number of current file.
13644 ac_beg=1 # First line for current file.
13645 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13648 while $ac_more_lines; do
13649 if test $ac_beg -gt 1; then
13650 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13652 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13654 if test ! -s conftest.s$ac_file; then
13655 ac_more_lines=false
13656 rm -f conftest.s$ac_file
13658 if test -z "$ac_sed_cmds"; then
13659 ac_sed_cmds="sed -f conftest.s$ac_file"
13661 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13663 ac_file=`expr $ac_file + 1`
13665 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13668 if test -z "$ac_sed_cmds"; then
13673 cat >> $CONFIG_STATUS <<EOF
13675 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13677 cat >> $CONFIG_STATUS <<\EOF
13678 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13681 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13682 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13683 *) ac_file_in="${ac_file}.in" ;;
13686 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13688 # Remove last slash and all that follows it. Not all systems have dirname.
13689 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13690 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13691 # The file is in a subdirectory.
13692 test ! -d "$ac_dir" && mkdir "$ac_dir"
13693 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13694 # A "../" for each directory in $ac_dir_suffix.
13695 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13697 ac_dir_suffix= ac_dots=
13700 case "$ac_given_srcdir" in
13702 if test -z "$ac_dots"; then top_srcdir=.
13703 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13704 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13705 *) # Relative path.
13706 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13707 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13710 case "$ac_given_INSTALL" in
13711 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13712 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13715 echo creating "$ac_file"
13717 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13719 *Makefile*) ac_comsub="1i\\
13720 # $configure_input" ;;
13724 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13726 s%@configure_input@%$configure_input%g
13727 s%@srcdir@%$srcdir%g
13728 s%@top_srcdir@%$top_srcdir%g
13729 s%@INSTALL@%$INSTALL%g
13730 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13734 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13735 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13737 # ac_d sets the value in "#define NAME VALUE" lines.
13738 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13739 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13742 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13743 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13744 ac_uB='\([ ]\)%\1#\2define\3'
13747 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13748 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13749 ac_eB='$%\1#\2define\3'
13753 if test "${CONFIG_HEADERS+set}" != set; then
13755 cat >> $CONFIG_STATUS <<EOF
13756 CONFIG_HEADERS="include/config.h"
13758 cat >> $CONFIG_STATUS <<\EOF
13760 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13763 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13764 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13765 *) ac_file_in="${ac_file}.in" ;;
13768 echo creating $ac_file
13770 rm -f conftest.frag conftest.in conftest.out
13771 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13772 cat $ac_file_inputs > conftest.in
13776 # Transform confdefs.h into a sed script conftest.vals that substitutes
13777 # the proper values into config.h.in to produce config.h. And first:
13778 # Protect against being on the right side of a sed subst in config.status.
13779 # Protect against being in an unquoted here document in config.status.
13780 rm -f conftest.vals
13781 cat > conftest.hdr <<\EOF
13784 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13788 sed -n -f conftest.hdr confdefs.h > conftest.vals
13791 # This sed command replaces #undef with comments. This is necessary, for
13792 # example, in the case of _POSIX_SOURCE, which is predefined and required
13793 # on some systems where configure will not decide to define it.
13794 cat >> conftest.vals <<\EOF
13795 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13798 # Break up conftest.vals because some shells have a limit on
13799 # the size of here documents, and old seds have small limits too.
13801 rm -f conftest.tail
13804 ac_lines=`grep -c . conftest.vals`
13805 # grep -c gives empty output for an empty file on some AIX systems.
13806 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13807 # Write a limited-size here document to conftest.frag.
13808 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13809 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13811 sed -f conftest.frag conftest.in > conftest.out
13813 mv conftest.out conftest.in
13814 ' >> $CONFIG_STATUS
13815 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13816 rm -f conftest.vals
13817 mv conftest.tail conftest.vals
13819 rm -f conftest.vals
13821 cat >> $CONFIG_STATUS <<\EOF
13822 rm -f conftest.frag conftest.h
13823 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13824 cat conftest.in >> conftest.h
13826 if cmp -s $ac_file conftest.h 2>/dev/null; then
13827 echo "$ac_file is unchanged"
13830 # Remove last slash and all that follows it. Not all systems have dirname.
13831 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13832 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13833 # The file is in a subdirectory.
13834 test ! -d "$ac_dir" && mkdir "$ac_dir"
13837 mv conftest.h $ac_file
13842 cat >> $CONFIG_STATUS <<EOF
13845 cat >> $CONFIG_STATUS <<\EOF
13849 chmod +x $CONFIG_STATUS
13850 rm -fr confdefs* $ac_clean_files
13851 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13854 #################################################
13855 # Print very concise instructions on building/use
13856 if test "x$enable_dmalloc" = xyes
13858 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
13859 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6