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 LIBS="$LIBS -ldmalloc"
643 # Extract the first word of "gcc", so it can be a program name with args.
644 set dummy gcc; ac_word=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC="$CC" # Let the user override the test.
653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
655 for ac_dir in $ac_dummy; do
656 test -z "$ac_dir" && ac_dir=.
657 if test -f $ac_dir/$ac_word; then
666 if test -n "$CC"; then
667 echo "$ac_t""$CC" 1>&6
669 echo "$ac_t""no" 1>&6
672 if test -z "$CC"; then
673 # Extract the first word of "cc", so it can be a program name with args.
674 set dummy cc; ac_word=$2
675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676 echo "configure:677: checking for $ac_word" >&5
677 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 if test -n "$CC"; then
681 ac_cv_prog_CC="$CC" # Let the user override the test.
683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
698 if test $ac_prog_rejected = yes; then
699 # We found a bogon in the path, so make sure we never use it.
700 set dummy $ac_cv_prog_CC
702 if test $# -gt 0; then
703 # We chose a different compiler from the bogus one.
704 # However, it has the same basename, so the bogon will be chosen
705 # first if we set CC to just the basename; use the full file name.
707 set dummy "$ac_dir/$ac_word" "$@"
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
721 if test -z "$CC"; then
724 # Extract the first word of "cl", so it can be a program name with args.
725 set dummy cl; ac_word=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 if test -n "$CC"; then
732 ac_cv_prog_CC="$CC" # Let the user override the test.
734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
736 for ac_dir in $ac_dummy; do
737 test -z "$ac_dir" && ac_dir=.
738 if test -f $ac_dir/$ac_word; then
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
755 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
758 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
759 echo "configure:760: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
763 ac_cpp='$CPP $CPPFLAGS'
764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
766 cross_compiling=$ac_cv_prog_cc_cross
768 cat > conftest.$ac_ext << EOF
770 #line 771 "configure"
771 #include "confdefs.h"
775 if { (eval echo configure:776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
776 ac_cv_prog_cc_works=yes
777 # If we can't run a trivial program, we are probably using a cross compiler.
778 if (./conftest; exit) 2>/dev/null; then
779 ac_cv_prog_cc_cross=no
781 ac_cv_prog_cc_cross=yes
784 echo "configure: failed program was:" >&5
785 cat conftest.$ac_ext >&5
786 ac_cv_prog_cc_works=no
790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp='$CPP $CPPFLAGS'
792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling=$ac_cv_prog_cc_cross
796 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
797 if test $ac_cv_prog_cc_works = no; then
798 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
800 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
801 echo "configure:802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
802 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
803 cross_compiling=$ac_cv_prog_cc_cross
805 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
806 echo "configure:807: checking whether we are using GNU C" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 cat > conftest.c <<EOF
815 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
822 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
824 if test $ac_cv_prog_gcc = yes; then
830 ac_test_CFLAGS="${CFLAGS+set}"
831 ac_save_CFLAGS="$CFLAGS"
833 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
834 echo "configure:835: checking whether ${CC-cc} accepts -g" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 echo 'void f(){}' > conftest.c
839 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
848 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
849 if test "$ac_test_CFLAGS" = set; then
850 CFLAGS="$ac_save_CFLAGS"
851 elif test $ac_cv_prog_cc_g = yes; then
852 if test "$GCC" = yes; then
858 if test "$GCC" = yes; then
866 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
867 if test -f $ac_dir/install-sh; then
869 ac_install_sh="$ac_aux_dir/install-sh -c"
871 elif test -f $ac_dir/install.sh; then
873 ac_install_sh="$ac_aux_dir/install.sh -c"
877 if test -z "$ac_aux_dir"; then
878 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
880 ac_config_guess=$ac_aux_dir/config.guess
881 ac_config_sub=$ac_aux_dir/config.sub
882 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
884 # Find a good install program. We prefer a C program (faster),
885 # so one script is as good as another. But avoid the broken or
886 # incompatible versions:
887 # SysV /etc/install, /usr/sbin/install
888 # SunOS /usr/etc/install
891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
894 # ./install, which can be erroneously created by make from ./install.sh.
895 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
896 echo "configure:897: checking for a BSD compatible install" >&5
897 if test -z "$INSTALL"; then
898 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
902 for ac_dir in $PATH; do
903 # Account for people who put trailing slashes in PATH elements.
905 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
907 # OSF1 and SCO ODT 3.0 have their own names for install.
908 # Don't use installbsd from OSF since it installs stuff as root
910 for ac_prog in ginstall scoinst install; do
911 if test -f $ac_dir/$ac_prog; then
912 if test $ac_prog = install &&
913 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
914 # AIX install. It has an incompatible calling convention.
917 ac_cv_path_install="$ac_dir/$ac_prog -c"
928 if test "${ac_cv_path_install+set}" = set; then
929 INSTALL="$ac_cv_path_install"
931 # As a last resort, use the slow shell script. We don't cache a
932 # path for INSTALL within a source directory, because that will
933 # break other packages using the cache if that directory is
934 # removed, or if the path is relative.
935 INSTALL="$ac_install_sh"
938 echo "$ac_t""$INSTALL" 1>&6
940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
941 # It thinks the first close brace ends the variable substitution.
942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
948 for ac_prog in gawk mawk nawk awk
950 # Extract the first word of "$ac_prog", so it can be a program name with args.
951 set dummy $ac_prog; ac_word=$2
952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953 echo "configure:954: checking for $ac_word" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 if test -n "$AWK"; then
958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
962 for ac_dir in $ac_dummy; do
963 test -z "$ac_dir" && ac_dir=.
964 if test -f $ac_dir/$ac_word; then
965 ac_cv_prog_AWK="$ac_prog"
972 AWK="$ac_cv_prog_AWK"
973 if test -n "$AWK"; then
974 echo "$ac_t""$AWK" 1>&6
976 echo "$ac_t""no" 1>&6
979 test -n "$AWK" && break
983 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
984 echo "configure:985: checking for POSIXized ISC" >&5
985 if test -d /etc/conf/kconfig.d &&
986 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
988 echo "$ac_t""yes" 1>&6
989 ISC=yes # If later tests want to check for ISC.
990 cat >> confdefs.h <<\EOF
991 #define _POSIX_SOURCE 1
994 if test "$GCC" = yes; then
1000 echo "$ac_t""no" 1>&6
1005 if test "x$CC" != xcc; then
1006 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether $CC and cc understand -c and -o together" >&5
1009 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1010 echo "configure:1011: checking whether cc understands -c and -o together" >&5
1012 set dummy $CC; ac_cc="`echo $2 |
1013 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1014 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 echo 'foo(){}' > conftest.c
1018 # Make sure it works both with $CC and with simple cc.
1019 # We do the test twice because some compilers refuse to overwrite an
1020 # existing .o file with -o, though they will create one.
1021 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1022 if { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1023 test -f conftest.o && { (eval echo configure:1024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1025 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1026 if test "x$CC" != xcc; then
1027 # Test first that cc exists at all.
1028 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1029 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1030 if { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1031 test -f conftest.o && { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1036 # cc exists but doesn't like -o.
1037 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1042 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1047 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1048 echo "$ac_t""yes" 1>&6
1050 echo "$ac_t""no" 1>&6
1051 cat >> confdefs.h <<\EOF
1052 #define NO_MINUS_C_MINUS_O 1
1057 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1064 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1065 echo "configure:1066: checking that the C compiler understands volatile" >&5
1066 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1070 cat > conftest.$ac_ext <<EOF
1071 #line 1072 "configure"
1072 #include "confdefs.h"
1073 #include <sys/types.h>
1078 if { (eval echo configure:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1080 samba_cv_volatile=yes
1082 echo "configure: failed program was:" >&5
1083 cat conftest.$ac_ext >&5
1085 samba_cv_volatile=no
1090 echo "$ac_t""$samba_cv_volatile" 1>&6
1091 if test x"$samba_cv_volatile" = x"yes"; then
1092 cat >> confdefs.h <<\EOF
1093 #define HAVE_VOLATILE 1
1100 # Do some error checking and defaulting for the host and target type.
1102 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1105 # 1. You are not allowed to specify --host, --target, and nonopt at the
1107 # 2. Host defaults to nonopt.
1108 # 3. If nonopt is not specified, then host defaults to the current host,
1109 # as determined by config.guess.
1110 # 4. Target and build default to nonopt.
1111 # 5. If nonopt is not specified, then target and build default to host.
1113 # The aliases save the names the user supplied, while $host etc.
1114 # will get canonicalized.
1115 case $host---$target---$nonopt in
1116 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1117 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1121 # Make sure we can run config.sub.
1122 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1123 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1126 echo $ac_n "checking host system type""... $ac_c" 1>&6
1127 echo "configure:1128: checking host system type" >&5
1130 case "$host_alias" in
1134 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1135 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1137 *) host_alias=$nonopt ;;
1141 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1142 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 echo "$ac_t""$host" 1>&6
1147 echo $ac_n "checking target system type""... $ac_c" 1>&6
1148 echo "configure:1149: checking target system type" >&5
1150 target_alias=$target
1151 case "$target_alias" in
1154 NONE) target_alias=$host_alias ;;
1155 *) target_alias=$nonopt ;;
1159 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1160 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1161 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1162 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1163 echo "$ac_t""$target" 1>&6
1165 echo $ac_n "checking build system type""... $ac_c" 1>&6
1166 echo "configure:1167: checking build system type" >&5
1169 case "$build_alias" in
1172 NONE) build_alias=$host_alias ;;
1173 *) build_alias=$nonopt ;;
1177 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1178 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1179 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1180 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1181 echo "$ac_t""$build" 1>&6
1183 test "$host_alias" != "$target_alias" &&
1184 test "$program_prefix$program_suffix$program_transform_name" = \
1186 program_prefix=${target_alias}-
1190 *irix6*) cat >> confdefs.h <<\EOF
1191 #include <standards.h>
1199 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1200 echo "configure:1201: checking config.cache system type" >&5
1201 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1202 test x"$ac_cv_host_system_type" != x"$host"; } ||
1203 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1204 test x"$ac_cv_build_system_type" != x"$build"; } ||
1205 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1206 test x"$ac_cv_target_system_type" != x"$target"; }; then
1207 echo "$ac_t""different" 1>&6
1208 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1210 echo "$ac_t""same" 1>&6
1212 ac_cv_host_system_type="$host"
1213 ac_cv_build_system_type="$build"
1214 ac_cv_target_system_type="$target"
1218 # Config CPPFLAG settings for strange OS's that must be set
1219 # before other tests.
1222 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1224 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -Ae" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1231 ac_cv_prog_cc_Ae=yes
1239 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1240 # mmap on HPUX is completely broken...
1241 cat >> confdefs.h <<\EOF
1242 #define MMAP_BLACKLIST 1
1245 if test $ac_cv_prog_cc_Ae = yes; then
1246 CPPFLAGS="$CPPFLAGS -Ae"
1249 # Defines needed for HPUX support.
1250 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1251 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1255 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1256 cat >> confdefs.h <<\EOF
1257 #define USE_BOTH_CRYPT_CALLS 1
1262 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1263 cat >> confdefs.h <<\EOF
1264 #define USE_BOTH_CRYPT_CALLS 1
1272 # CRAY Unicos has broken const handling
1274 echo "$ac_t""disabling const" 1>&6
1275 CPPFLAGS="$CPPFLAGS -Dconst="
1279 # AIX4.x doesn't even admit to having large
1280 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1283 echo "$ac_t""enabling large file support" 1>&6
1284 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1287 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1288 # to the existance of large files..
1289 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1290 # recommendations on large file support, however it makes the
1291 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1292 # recommendation makes the compile fail on gcc2.7. JRA.
1296 5.0*|5.1*|5.2*|5.3*|5.5*)
1297 echo "$ac_t""no large file support" 1>&6
1300 echo "$ac_t""enabling large file support" 1>&6
1301 if test "$ac_cv_prog_gcc" = yes; then
1302 ${CC-cc} -v >conftest.c 2>&1
1303 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1305 case "$ac_cv_gcc_compiler_version_number" in
1306 *"gcc version 2.6"*|*"gcc version 2.7"*)
1307 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1310 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1314 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1320 # Tests needed for SINIX large file support.
1323 if test $host = mips-sni-sysv4 ; then
1324 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1325 echo "configure:1326: checking for LFS support" >&5
1326 old_CPPFLAGS="$CPPFLAGS"
1327 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1328 if test "$cross_compiling" = yes; then
1329 SINIX_LFS_SUPPORT=cross
1331 cat > conftest.$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1337 #if _LFS64_LARGEFILE == 1
1344 if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1346 SINIX_LFS_SUPPORT=yes
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1351 SINIX_LFS_SUPPORT=no
1356 CPPFLAGS="$old_CPPFLAGS"
1357 if test x$SINIX_LFS_SUPPORT = xyes ; then
1358 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1359 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1360 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1361 LIBS="`getconf LFS64_LIBS` $LIBS"
1363 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1367 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1370 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1371 echo "configure:1372: checking for LFS support" >&5
1372 old_CPPFLAGS="$CPPFLAGS"
1373 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1374 if test "$cross_compiling" = yes; then
1375 LINUX_LFS_SUPPORT=cross
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1382 #include <sys/utsname.h>
1384 #if _LFS64_LARGEFILE == 1
1389 /* Ensure this is glibc 2.2 or higher */
1390 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1391 int libc_major = __GLIBC__;
1392 int libc_minor = __GLIBC_MINOR__;
1400 /* Ensure this is kernel 2.4 or higher */
1403 release = uts.release;
1404 major = atoi(strsep(&release, "."));
1405 minor = atoi(strsep(&release, "."));
1407 if (major > 2 || (major == 2 && minor > 3))
1416 if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1418 LINUX_LFS_SUPPORT=yes
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1423 LINUX_LFS_SUPPORT=no
1428 CPPFLAGS="$old_CPPFLAGS"
1429 if test x$LINUX_LFS_SUPPORT = xyes ; then
1430 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1432 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1436 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1437 echo "configure:1438: checking for LFS support" >&5
1438 old_CPPFLAGS="$CPPFLAGS"
1439 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1440 if test "$cross_compiling" = yes; then
1441 GLIBC_LFS_SUPPORT=cross
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1449 #if _LFS64_LARGEFILE == 1
1456 if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1458 GLIBC_LFS_SUPPORT=yes
1460 echo "configure: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1463 GLIBC_LFS_SUPPORT=no
1468 CPPFLAGS="$old_CPPFLAGS"
1469 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1470 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1472 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1477 echo $ac_n "checking for inline""... $ac_c" 1>&6
1478 echo "configure:1479: checking for inline" >&5
1479 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1483 for ac_kw in inline __inline__ __inline; do
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1492 if { (eval echo configure:1493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1494 ac_cv_c_inline=$ac_kw; break
1496 echo "configure: failed program was:" >&5
1497 cat conftest.$ac_ext >&5
1504 echo "$ac_t""$ac_cv_c_inline" 1>&6
1505 case "$ac_cv_c_inline" in
1507 no) cat >> confdefs.h <<\EOF
1511 *) cat >> confdefs.h <<EOF
1512 #define inline $ac_cv_c_inline
1517 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1518 echo "configure:1519: checking how to run the C preprocessor" >&5
1519 # On Suns, sometimes $CPP names a directory.
1520 if test -n "$CPP" && test -d "$CPP"; then
1523 if test -z "$CPP"; then
1524 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 # This must be in double quotes, not single quotes, because CPP may get
1528 # substituted into the Makefile and "${CC-cc}" will confuse make.
1530 # On the NeXT, cc -E runs the code through the compiler's parser,
1531 # not just through cpp.
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1539 { (eval echo configure:1540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1541 if test -z "$ac_err"; then
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 CPP="${CC-cc} -E -traditional-cpp"
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1556 { (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1558 if test -z "$ac_err"; then
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1565 CPP="${CC-cc} -nologo -E"
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1573 { (eval echo configure:1574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1575 if test -z "$ac_err"; then
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1589 ac_cv_prog_CPP="$CPP"
1591 CPP="$ac_cv_prog_CPP"
1593 ac_cv_prog_CPP="$CPP"
1595 echo "$ac_t""$CPP" 1>&6
1597 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1598 echo "configure:1599: checking for ANSI C header files" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1613 if test -z "$ac_err"; then
1615 ac_cv_header_stdc=yes
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 ac_cv_header_stdc=no
1625 if test $ac_cv_header_stdc = yes; then
1626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1633 egrep "memchr" >/dev/null 2>&1; then
1637 ac_cv_header_stdc=no
1643 if test $ac_cv_header_stdc = yes; then
1644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1645 cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1651 egrep "free" >/dev/null 2>&1; then
1655 ac_cv_header_stdc=no
1661 if test $ac_cv_header_stdc = yes; then
1662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1663 if test "$cross_compiling" = yes; then
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1670 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1671 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1673 int main () { int i; for (i = 0; i < 256; i++)
1674 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1685 ac_cv_header_stdc=no
1693 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1694 if test $ac_cv_header_stdc = yes; then
1695 cat >> confdefs.h <<\EOF
1696 #define STDC_HEADERS 1
1702 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1705 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_hdr that defines DIR" >&5
1707 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 #include <sys/types.h>
1719 if { (eval echo configure:1720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1721 eval "ac_cv_header_dirent_$ac_safe=yes"
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1726 eval "ac_cv_header_dirent_$ac_safe=no"
1730 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1731 echo "$ac_t""yes" 1>&6
1732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1733 cat >> confdefs.h <<EOF
1734 #define $ac_tr_hdr 1
1736 ac_header_dirent=$ac_hdr; break
1738 echo "$ac_t""no" 1>&6
1741 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1742 if test $ac_header_dirent = dirent.h; then
1743 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1744 echo "configure:1745: checking for opendir in -ldir" >&5
1745 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 ac_save_LIBS="$LIBS"
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1754 /* Override any gcc2 internal prototype to avoid an error. */
1755 /* We use char because int might match the return type of a gcc2
1756 builtin and then its argument prototype would still apply. */
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1765 eval "ac_cv_lib_$ac_lib_var=yes"
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1770 eval "ac_cv_lib_$ac_lib_var=no"
1773 LIBS="$ac_save_LIBS"
1776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1780 echo "$ac_t""no" 1>&6
1784 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1785 echo "configure:1786: checking for opendir in -lx" >&5
1786 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 ac_save_LIBS="$LIBS"
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 /* Override any gcc2 internal prototype to avoid an error. */
1796 /* We use char because int might match the return type of a gcc2
1797 builtin and then its argument prototype would still apply. */
1804 if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1806 eval "ac_cv_lib_$ac_lib_var=yes"
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 eval "ac_cv_lib_$ac_lib_var=no"
1814 LIBS="$ac_save_LIBS"
1817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1818 echo "$ac_t""yes" 1>&6
1821 echo "$ac_t""no" 1>&6
1826 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1827 echo "configure:1828: checking whether time.h and sys/time.h may both be included" >&5
1828 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834 #include <sys/types.h>
1835 #include <sys/time.h>
1841 if { (eval echo configure:1842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1843 ac_cv_header_time=yes
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1848 ac_cv_header_time=no
1853 echo "$ac_t""$ac_cv_header_time" 1>&6
1854 if test $ac_cv_header_time = yes; then
1855 cat >> confdefs.h <<\EOF
1856 #define TIME_WITH_SYS_TIME 1
1861 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1862 echo "configure:1863: checking for sys/wait.h that is POSIX.1 compatible" >&5
1863 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 #include <sys/types.h>
1870 #include <sys/wait.h>
1872 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1875 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1880 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1883 if { (eval echo configure:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1885 ac_cv_header_sys_wait_h=yes
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1890 ac_cv_header_sys_wait_h=no
1895 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1896 if test $ac_cv_header_sys_wait_h = yes; then
1897 cat >> confdefs.h <<\EOF
1898 #define HAVE_SYS_WAIT_H 1
1903 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_hdr" >&5
1908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 cat > conftest.$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1917 { (eval echo configure:1918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1919 if test -z "$ac_err"; then
1921 eval "ac_cv_header_$ac_safe=yes"
1924 echo "configure: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1927 eval "ac_cv_header_$ac_safe=no"
1931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1934 cat >> confdefs.h <<EOF
1935 #define $ac_tr_hdr 1
1939 echo "$ac_t""no" 1>&6
1943 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_hdr" >&5
1948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1961 eval "ac_cv_header_$ac_safe=yes"
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1967 eval "ac_cv_header_$ac_safe=no"
1971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1974 cat >> confdefs.h <<EOF
1975 #define $ac_tr_hdr 1
1979 echo "$ac_t""no" 1>&6
1983 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_hdr" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1997 { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999 if test -z "$ac_err"; then
2001 eval "ac_cv_header_$ac_safe=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2007 eval "ac_cv_header_$ac_safe=no"
2011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2014 cat >> confdefs.h <<EOF
2015 #define $ac_tr_hdr 1
2019 echo "$ac_t""no" 1>&6
2023 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2027 echo "configure:2028: checking for $ac_hdr" >&5
2028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 cat > conftest.$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2037 { (eval echo configure:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2039 if test -z "$ac_err"; then
2041 eval "ac_cv_header_$ac_safe=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2047 eval "ac_cv_header_$ac_safe=no"
2051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2052 echo "$ac_t""yes" 1>&6
2053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2054 cat >> confdefs.h <<EOF
2055 #define $ac_tr_hdr 1
2059 echo "$ac_t""no" 1>&6
2063 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
2065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2067 echo "configure:2068: checking for $ac_hdr" >&5
2068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2077 { (eval echo configure:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2079 if test -z "$ac_err"; then
2081 eval "ac_cv_header_$ac_safe=yes"
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 eval "ac_cv_header_$ac_safe=no"
2091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2092 echo "$ac_t""yes" 1>&6
2093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2094 cat >> confdefs.h <<EOF
2095 #define $ac_tr_hdr 1
2099 echo "$ac_t""no" 1>&6
2103 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2107 echo "configure:2108: checking for $ac_hdr" >&5
2108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2117 { (eval echo configure:2118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2119 if test -z "$ac_err"; then
2121 eval "ac_cv_header_$ac_safe=yes"
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2127 eval "ac_cv_header_$ac_safe=no"
2131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2132 echo "$ac_t""yes" 1>&6
2133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2134 cat >> confdefs.h <<EOF
2135 #define $ac_tr_hdr 1
2139 echo "$ac_t""no" 1>&6
2143 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_hdr" >&5
2148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2159 if test -z "$ac_err"; then
2161 eval "ac_cv_header_$ac_safe=yes"
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 eval "ac_cv_header_$ac_safe=no"
2171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2174 cat >> confdefs.h <<EOF
2175 #define $ac_tr_hdr 1
2179 echo "$ac_t""no" 1>&6
2183 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h
2185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_hdr" >&5
2188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2197 { (eval echo configure:2198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2199 if test -z "$ac_err"; then
2201 eval "ac_cv_header_$ac_safe=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2207 eval "ac_cv_header_$ac_safe=no"
2211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2214 cat >> confdefs.h <<EOF
2215 #define $ac_tr_hdr 1
2219 echo "$ac_t""no" 1>&6
2225 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2226 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2238 if { (eval echo configure:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2240 ac_cv_header_shadow_h=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 ac_cv_header_shadow_h=no
2248 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2249 cat >> confdefs.h <<\EOF
2250 #define HAVE_SHADOW_H 1
2256 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_hdr" >&5
2261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2270 { (eval echo configure:2271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2272 if test -z "$ac_err"; then
2274 eval "ac_cv_header_$ac_safe=yes"
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2280 eval "ac_cv_header_$ac_safe=no"
2284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2285 echo "$ac_t""yes" 1>&6
2286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2287 cat >> confdefs.h <<EOF
2288 #define $ac_tr_hdr 1
2292 echo "$ac_t""no" 1>&6
2296 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_hdr" >&5
2301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then
2314 eval "ac_cv_header_$ac_safe=yes"
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2320 eval "ac_cv_header_$ac_safe=no"
2324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2327 cat >> confdefs.h <<EOF
2328 #define $ac_tr_hdr 1
2332 echo "$ac_t""no" 1>&6
2336 for ac_hdr in stropts.h poll.h
2338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2340 echo "configure:2341: checking for $ac_hdr" >&5
2341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2350 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2352 if test -z "$ac_err"; then
2354 eval "ac_cv_header_$ac_safe=yes"
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 eval "ac_cv_header_$ac_safe=no"
2364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2367 cat >> confdefs.h <<EOF
2368 #define $ac_tr_hdr 1
2372 echo "$ac_t""no" 1>&6
2376 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_hdr" >&5
2381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2390 { (eval echo configure:2391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2392 if test -z "$ac_err"; then
2394 eval "ac_cv_header_$ac_safe=yes"
2397 echo "configure: failed program was:" >&5
2398 cat conftest.$ac_ext >&5
2400 eval "ac_cv_header_$ac_safe=no"
2404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2407 cat >> confdefs.h <<EOF
2408 #define $ac_tr_hdr 1
2412 echo "$ac_t""no" 1>&6
2416 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_hdr" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2434 eval "ac_cv_header_$ac_safe=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_header_$ac_safe=no"
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2447 cat >> confdefs.h <<EOF
2448 #define $ac_tr_hdr 1
2452 echo "$ac_t""no" 1>&6
2457 # For experimental utmp support (lastlog on some BSD-like systems)
2458 for ac_hdr in utmp.h utmpx.h lastlog.h
2460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_hdr" >&5
2463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2476 eval "ac_cv_header_$ac_safe=yes"
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2482 eval "ac_cv_header_$ac_safe=no"
2486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2489 cat >> confdefs.h <<EOF
2490 #define $ac_tr_hdr 1
2494 echo "$ac_t""no" 1>&6
2499 # For quotas on Veritas VxFS filesystems
2500 for ac_hdr in sys/fs/vx_quota.h
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2541 # For quotas on Linux XFS filesystems
2542 for ac_hdr in linux/xqm.h
2544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_hdr" >&5
2547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2556 { (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558 if test -z "$ac_err"; then
2560 eval "ac_cv_header_$ac_safe=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_header_$ac_safe=no"
2570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2573 cat >> confdefs.h <<EOF
2574 #define $ac_tr_hdr 1
2578 echo "$ac_t""no" 1>&6
2583 echo $ac_n "checking size of int""... $ac_c" 1>&6
2584 echo "configure:2585: checking size of int" >&5
2585 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 if test "$cross_compiling" = yes; then
2589 ac_cv_sizeof_int=cross
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2597 FILE *f=fopen("conftestval", "w");
2599 fprintf(f, "%d\n", sizeof(int));
2603 if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2605 ac_cv_sizeof_int=`cat conftestval`
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2616 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2617 cat >> confdefs.h <<EOF
2618 #define SIZEOF_INT $ac_cv_sizeof_int
2622 echo $ac_n "checking size of long""... $ac_c" 1>&6
2623 echo "configure:2624: checking size of long" >&5
2624 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 if test "$cross_compiling" = yes; then
2628 ac_cv_sizeof_long=cross
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2636 FILE *f=fopen("conftestval", "w");
2638 fprintf(f, "%d\n", sizeof(long));
2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2644 ac_cv_sizeof_long=`cat conftestval`
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2655 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2656 cat >> confdefs.h <<EOF
2657 #define SIZEOF_LONG $ac_cv_sizeof_long
2661 echo $ac_n "checking size of short""... $ac_c" 1>&6
2662 echo "configure:2663: checking size of short" >&5
2663 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 if test "$cross_compiling" = yes; then
2667 ac_cv_sizeof_short=cross
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2675 FILE *f=fopen("conftestval", "w");
2677 fprintf(f, "%d\n", sizeof(short));
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2683 ac_cv_sizeof_short=`cat conftestval`
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2688 ac_cv_sizeof_short=0
2694 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2695 cat >> confdefs.h <<EOF
2696 #define SIZEOF_SHORT $ac_cv_sizeof_short
2701 echo $ac_n "checking for working const""... $ac_c" 1>&6
2702 echo "configure:2703: checking for working const" >&5
2703 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2712 /* Ultrix mips cc rejects this. */
2713 typedef int charset[2]; const charset x;
2714 /* SunOS 4.1.1 cc rejects this. */
2715 char const *const *ccp;
2717 /* NEC SVR4.0.2 mips cc rejects this. */
2718 struct point {int x, y;};
2719 static struct point const zero = {0,0};
2720 /* AIX XL C 1.02.0.0 rejects this.
2721 It does not let you subtract one const X* pointer from another in an arm
2722 of an if-expression whose if-part is not a constant expression */
2723 const char *g = "string";
2724 ccp = &g + (g ? g-g : 0);
2725 /* HPUX 7.0 cc rejects these. */
2728 ccp = (char const *const *) p;
2729 { /* SCO 3.2v4 cc rejects this. */
2731 char const *s = 0 ? (char *) 0 : (char const *) 0;
2735 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2737 const int *foo = &x[0];
2740 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2741 typedef const int *iptr;
2745 { /* AIX XL C 1.02.0.0 rejects this saying
2746 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2747 struct s { int j; const int *ap[3]; };
2748 struct s *b; b->j = 5;
2750 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2756 if { (eval echo configure:2757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2760 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2768 echo "$ac_t""$ac_cv_c_const" 1>&6
2769 if test $ac_cv_c_const = no; then
2770 cat >> confdefs.h <<\EOF
2776 echo $ac_n "checking for inline""... $ac_c" 1>&6
2777 echo "configure:2778: checking for inline" >&5
2778 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2782 for ac_kw in inline __inline__ __inline; do
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2791 if { (eval echo configure:2792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2793 ac_cv_c_inline=$ac_kw; break
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2803 echo "$ac_t""$ac_cv_c_inline" 1>&6
2804 case "$ac_cv_c_inline" in
2806 no) cat >> confdefs.h <<\EOF
2810 *) cat >> confdefs.h <<EOF
2811 #define inline $ac_cv_c_inline
2816 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2817 echo "configure:2818: checking whether byte ordering is bigendian" >&5
2818 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 ac_cv_c_bigendian=unknown
2822 # See if sys/param.h defines the BYTE_ORDER macro.
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 #include <sys/types.h>
2827 #include <sys/param.h>
2830 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2835 if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2837 # It does; now see whether it defined to BIG_ENDIAN or not.
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2842 #include <sys/param.h>
2845 #if BYTE_ORDER != BIG_ENDIAN
2850 if { (eval echo configure:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2852 ac_cv_c_bigendian=yes
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 ac_cv_c_bigendian=no
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2865 if test $ac_cv_c_bigendian = unknown; then
2866 if test "$cross_compiling" = yes; then
2867 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2873 /* Are we little or big endian? From Harbison&Steele. */
2877 char c[sizeof (long)];
2880 exit (u.c[sizeof (long) - 1] == 1);
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2885 ac_cv_c_bigendian=no
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 ac_cv_c_bigendian=yes
2898 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2899 if test $ac_cv_c_bigendian = yes; then
2900 cat >> confdefs.h <<\EOF
2901 #define WORDS_BIGENDIAN 1
2906 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2907 echo "configure:2908: checking whether char is unsigned" >&5
2908 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 if test "$GCC" = yes; then
2912 # GCC predefines this symbol on systems where it applies.
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 #ifdef __CHAR_UNSIGNED__
2921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2922 egrep "yes" >/dev/null 2>&1; then
2924 ac_cv_c_char_unsigned=yes
2927 ac_cv_c_char_unsigned=no
2932 if test "$cross_compiling" = yes; then
2933 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2939 #if !defined(__STDC__) || __STDC__ != 1
2943 volatile char c = 255; exit(c < 0);
2946 if { (eval echo configure:2947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2948 ac_cv_c_char_unsigned=yes
2950 echo "configure: failed program was:" >&5
2951 cat conftest.$ac_ext >&5
2953 ac_cv_c_char_unsigned=no
2961 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2962 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2963 cat >> confdefs.h <<\EOF
2964 #define __CHAR_UNSIGNED__ 1
2970 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2971 echo "configure:2972: checking return type of signal handlers" >&5
2972 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <sys/types.h>
2984 extern "C" void (*signal (int, void (*)(int)))(int);
2986 void (*signal ()) ();
2993 if { (eval echo configure:2994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2995 ac_cv_type_signal=void
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 ac_cv_type_signal=int
3005 echo "$ac_t""$ac_cv_type_signal" 1>&6
3006 cat >> confdefs.h <<EOF
3007 #define RETSIGTYPE $ac_cv_type_signal
3011 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3012 echo "configure:3013: checking for uid_t in sys/types.h" >&5
3013 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 cat > conftest.$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3019 #include <sys/types.h>
3021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3022 egrep "uid_t" >/dev/null 2>&1; then
3024 ac_cv_type_uid_t=yes
3033 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3034 if test $ac_cv_type_uid_t = no; then
3035 cat >> confdefs.h <<\EOF
3039 cat >> confdefs.h <<\EOF
3045 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3046 echo "configure:3047: checking for mode_t" >&5
3047 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <sys/types.h>
3059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3060 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3062 ac_cv_type_mode_t=yes
3065 ac_cv_type_mode_t=no
3070 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3071 if test $ac_cv_type_mode_t = no; then
3072 cat >> confdefs.h <<\EOF
3078 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3079 echo "configure:3080: checking for off_t" >&5
3080 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 #include <sys/types.h>
3092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3093 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3095 ac_cv_type_off_t=yes
3103 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3104 if test $ac_cv_type_off_t = no; then
3105 cat >> confdefs.h <<\EOF
3111 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3112 echo "configure:3113: checking for size_t" >&5
3113 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 #include <sys/types.h>
3125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3126 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3128 ac_cv_type_size_t=yes
3131 ac_cv_type_size_t=no
3136 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3137 if test $ac_cv_type_size_t = no; then
3138 cat >> confdefs.h <<\EOF
3139 #define size_t unsigned
3144 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3145 echo "configure:3146: checking for pid_t" >&5
3146 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 #include <sys/types.h>
3158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3159 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3161 ac_cv_type_pid_t=yes
3169 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3170 if test $ac_cv_type_pid_t = no; then
3171 cat >> confdefs.h <<\EOF
3177 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3178 echo "configure:3179: checking for st_rdev in struct stat" >&5
3179 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 #include <sys/types.h>
3186 #include <sys/stat.h>
3188 struct stat s; s.st_rdev;
3191 if { (eval echo configure:3192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3193 ac_cv_struct_st_rdev=yes
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 ac_cv_struct_st_rdev=no
3203 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3204 if test $ac_cv_struct_st_rdev = yes; then
3205 cat >> confdefs.h <<\EOF
3206 #define HAVE_ST_RDEV 1
3211 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3212 echo "configure:3213: checking for d_off in dirent" >&5
3213 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3221 #include <sys/types.h>
3224 struct dirent d; d.d_off;
3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3229 ac_cv_dirent_d_off=yes
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 ac_cv_dirent_d_off=no
3239 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3240 if test $ac_cv_dirent_d_off = yes; then
3241 cat >> confdefs.h <<\EOF
3242 #define HAVE_DIRENT_D_OFF 1
3247 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3248 echo "configure:3249: checking for ino_t" >&5
3249 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 #include <sys/types.h>
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3264 ac_cv_type_ino_t=yes
3272 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3273 if test $ac_cv_type_ino_t = no; then
3274 cat >> confdefs.h <<\EOF
3275 #define ino_t unsigned
3280 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3281 echo "configure:3282: checking for loff_t" >&5
3282 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3297 ac_cv_type_loff_t=yes
3300 ac_cv_type_loff_t=no
3305 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3306 if test $ac_cv_type_loff_t = no; then
3307 cat >> confdefs.h <<\EOF
3308 #define loff_t off_t
3313 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3314 echo "configure:3315: checking for offset_t" >&5
3315 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3330 ac_cv_type_offset_t=yes
3333 ac_cv_type_offset_t=no
3338 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3339 if test $ac_cv_type_offset_t = no; then
3340 cat >> confdefs.h <<\EOF
3341 #define offset_t loff_t
3346 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3347 echo "configure:3348: checking for ssize_t" >&5
3348 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 #include <sys/types.h>
3360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3361 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3363 ac_cv_type_ssize_t=yes
3366 ac_cv_type_ssize_t=no
3371 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3372 if test $ac_cv_type_ssize_t = no; then
3373 cat >> confdefs.h <<\EOF
3379 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3380 echo "configure:3381: checking for wchar_t" >&5
3381 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 #include <sys/types.h>
3393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3394 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3396 ac_cv_type_wchar_t=yes
3399 ac_cv_type_wchar_t=no
3404 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3405 if test $ac_cv_type_wchar_t = no; then
3406 cat >> confdefs.h <<\EOF
3407 #define wchar_t unsigned short
3413 ############################################
3414 # for cups support we need libcups, and a handful of header files
3416 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3417 echo "configure:3418: checking for httpConnect in -lcups" >&5
3418 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3422 ac_save_LIBS="$LIBS"
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 /* Override any gcc2 internal prototype to avoid an error. */
3428 /* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3436 if { (eval echo configure:3437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3438 eval "ac_cv_lib_$ac_lib_var=yes"
3440 echo "configure: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3443 eval "ac_cv_lib_$ac_lib_var=no"
3446 LIBS="$ac_save_LIBS"
3449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3450 echo "$ac_t""yes" 1>&6
3451 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3452 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3453 cat >> confdefs.h <<EOF
3454 #define $ac_tr_lib 1
3460 echo "$ac_t""no" 1>&6
3464 # I wonder if there is a nicer way of doing this?
3466 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3467 for ac_hdr in cups/cups.h cups/language.h
3469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3471 echo "configure:3472: checking for $ac_hdr" >&5
3472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3481 { (eval echo configure:3482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3483 if test -z "$ac_err"; then
3485 eval "ac_cv_header_$ac_safe=yes"
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3491 eval "ac_cv_header_$ac_safe=no"
3495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3498 cat >> confdefs.h <<EOF
3499 #define $ac_tr_hdr 1
3503 echo "$ac_t""no" 1>&6
3507 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3508 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3509 cat >> confdefs.h <<\EOF
3517 ############################################
3518 # we need libdl for PAM and the new VFS code
3519 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3520 echo "configure:3521: checking for dlopen in -ldl" >&5
3521 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_save_LIBS="$LIBS"
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* Override any gcc2 internal prototype to avoid an error. */
3531 /* We use char because int might match the return type of a gcc2
3532 builtin and then its argument prototype would still apply. */
3539 if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3541 eval "ac_cv_lib_$ac_lib_var=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 eval "ac_cv_lib_$ac_lib_var=no"
3549 LIBS="$ac_save_LIBS"
3552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3553 echo "$ac_t""yes" 1>&6
3555 cat >> confdefs.h <<\EOF
3556 #define HAVE_LIBDL 1
3560 echo "$ac_t""no" 1>&6
3564 ############################################
3565 # check if the compiler can do immediate structures
3566 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3567 echo "configure:3568: checking for immediate structures" >&5
3568 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3579 #define X_FOOBAR(x) ((FOOBAR) { x })
3580 typedef struct {unsigned x;} FOOBAR;
3581 FOOBAR f = X_FOOBAR(1);
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 samba_cv_immediate_structures=yes
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3592 samba_cv_immediate_structures=no
3597 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3598 if test x"$samba_cv_immediate_structures" = x"yes"; then
3599 cat >> confdefs.h <<\EOF
3600 #define HAVE_IMMEDIATE_STRUCTURES 1
3605 ############################################
3606 # check for unix domain sockets
3607 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3608 echo "configure:3609: checking for unix domain sockets" >&5
3609 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3617 #include <sys/types.h>
3620 #include <sys/socket.h>
3624 struct sockaddr_un sunaddr;
3625 sunaddr.sun_family = AF_UNIX;
3629 if { (eval echo configure:3630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631 samba_cv_unixsocket=yes
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3636 samba_cv_unixsocket=no
3641 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3642 if test x"$samba_cv_unixsocket" = x"yes"; then
3643 cat >> confdefs.h <<\EOF
3644 #define HAVE_UNIXSOCKET 1
3650 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3651 echo "configure:3652: checking for socklen_t type" >&5
3652 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3660 #include <sys/types.h>
3665 #include <sys/socket.h>
3670 if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3672 samba_cv_socklen_t=yes
3674 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3677 samba_cv_socklen_t=no
3682 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3683 if test x"$samba_cv_socklen_t" = x"yes"; then
3684 cat >> confdefs.h <<\EOF
3685 #define HAVE_SOCKLEN_T_TYPE 1
3690 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3691 echo "configure:3692: checking for sig_atomic_t type" >&5
3692 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3700 #include <sys/types.h>
3710 if { (eval echo configure:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3712 samba_cv_sig_atomic_t=yes
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3717 samba_cv_sig_atomic_t=no
3722 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3723 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3724 cat >> confdefs.h <<\EOF
3725 #define HAVE_SIG_ATOMIC_T_TYPE 1
3730 # stupid headers have the functions but no declaration. grrrr.
3732 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3733 echo "configure:3734: checking for errno declaration" >&5
3734 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3746 if { (eval echo configure:3747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3748 ac_cv_have_errno_decl=yes
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 ac_cv_have_errno_decl=no
3758 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3759 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3760 cat >> confdefs.h <<\EOF
3761 #define HAVE_ERRNO_DECL 1
3767 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3768 echo "configure:3769: checking for setresuid declaration" >&5
3769 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3778 int i = (int)setresuid
3781 if { (eval echo configure:3782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783 ac_cv_have_setresuid_decl=yes
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 ac_cv_have_setresuid_decl=no
3793 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3794 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3795 cat >> confdefs.h <<\EOF
3796 #define HAVE_SETRESUID_DECL 1
3802 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3803 echo "configure:3804: checking for setresgid declaration" >&5
3804 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3813 int i = (int)setresgid
3816 if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3818 ac_cv_have_setresgid_decl=yes
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 ac_cv_have_setresgid_decl=no
3828 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3829 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3830 cat >> confdefs.h <<\EOF
3831 #define HAVE_SETRESGID_DECL 1
3837 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3838 echo "configure:3839: checking for asprintf declaration" >&5
3839 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3848 int i = (int)asprintf
3851 if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 ac_cv_have_asprintf_decl=yes
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3858 ac_cv_have_asprintf_decl=no
3863 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3864 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3865 cat >> confdefs.h <<\EOF
3866 #define HAVE_ASPRINTF_DECL 1
3872 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3873 echo "configure:3874: checking for vasprintf declaration" >&5
3874 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3883 int i = (int)vasprintf
3886 if { (eval echo configure:3887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3888 ac_cv_have_vasprintf_decl=yes
3890 echo "configure: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3893 ac_cv_have_vasprintf_decl=no
3898 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3899 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3900 cat >> confdefs.h <<\EOF
3901 #define HAVE_VASPRINTF_DECL 1
3907 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3908 echo "configure:3909: checking for vsnprintf declaration" >&5
3909 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3918 int i = (int)vsnprintf
3921 if { (eval echo configure:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923 ac_cv_have_vsnprintf_decl=yes
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3928 ac_cv_have_vsnprintf_decl=no
3933 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3934 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3935 cat >> confdefs.h <<\EOF
3936 #define HAVE_VSNPRINTF_DECL 1
3942 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3943 echo "configure:3944: checking for snprintf declaration" >&5
3944 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3953 int i = (int)snprintf
3956 if { (eval echo configure:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958 ac_cv_have_snprintf_decl=yes
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3963 ac_cv_have_snprintf_decl=no
3968 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3969 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3970 cat >> confdefs.h <<\EOF
3971 #define HAVE_SNPRINTF_DECL 1
3977 # and glibc has setresuid under linux but the function does
3978 # nothing until kernel 2.1.44! very dumb.
3979 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3980 echo "configure:3981: checking for real setresuid" >&5
3981 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3985 if test "$cross_compiling" = yes; then
3986 samba_cv_have_setresuid=cross
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3992 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3996 samba_cv_have_setresuid=yes
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4001 samba_cv_have_setresuid=no
4008 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4009 if test x"$samba_cv_have_setresuid" = x"yes"; then
4010 cat >> confdefs.h <<\EOF
4011 #define HAVE_SETRESUID 1
4016 # Do the same check for setresguid...
4018 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4019 echo "configure:4020: checking for real setresgid" >&5
4020 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4024 if test "$cross_compiling" = yes; then
4025 samba_cv_have_setresgid=cross
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4032 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4036 samba_cv_have_setresgid=yes
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 samba_cv_have_setresgid=no
4048 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4049 if test x"$samba_cv_have_setresgid" = x"yes"; then
4050 cat >> confdefs.h <<\EOF
4051 #define HAVE_SETRESGID 1
4056 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4057 echo "configure:4058: checking for 8-bit clean memcmp" >&5
4058 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 if test "$cross_compiling" = yes; then
4062 ac_cv_func_memcmp_clean=no
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4070 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4071 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4077 ac_cv_func_memcmp_clean=yes
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 ac_cv_func_memcmp_clean=no
4089 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4090 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4093 ###############################################
4094 # test for where we get crypt() from
4095 for ac_func in crypt
4097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4098 echo "configure:4099: checking for $ac_func" >&5
4099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4105 /* System header to define __stub macros and hopefully few prototypes,
4106 which can conflict with char $ac_func(); below. */
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4115 /* The GNU C library defines this for functions which it implements
4116 to always fail with ENOSYS. Some functions are actually named
4117 something starting with __ and the normal name is an alias. */
4118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4128 eval "ac_cv_func_$ac_func=yes"
4130 echo "configure: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4133 eval "ac_cv_func_$ac_func=no"
4138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4139 echo "$ac_t""yes" 1>&6
4140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4141 cat >> confdefs.h <<EOF
4142 #define $ac_tr_func 1
4146 echo "$ac_t""no" 1>&6
4150 if test x"$ac_cv_func_crypt" = x"no"; then
4151 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4152 echo "configure:4153: checking for crypt in -lcrypt" >&5
4153 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 ac_save_LIBS="$LIBS"
4158 LIBS="-lcrypt $LIBS"
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 /* Override any gcc2 internal prototype to avoid an error. */
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4173 eval "ac_cv_lib_$ac_lib_var=yes"
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 eval "ac_cv_lib_$ac_lib_var=no"
4181 LIBS="$ac_save_LIBS"
4184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4185 echo "$ac_t""yes" 1>&6
4186 LIBS="$LIBS -lcrypt";
4187 cat >> confdefs.h <<\EOF
4188 #define HAVE_CRYPT 1
4192 echo "$ac_t""no" 1>&6
4198 ###############################################
4199 # Readline included by default unless explicitly asked not to
4200 test "${with_readline+set}" != "set" && with_readline=yes
4202 # test for where we get readline() from
4203 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4204 echo "configure:4205: checking whether to use readline" >&5
4205 # Check whether --with-readline or --without-readline was given.
4206 if test "${with_readline+set}" = set; then
4207 withval="$with_readline"
4208 case "$with_readline" in
4210 echo "$ac_t""yes" 1>&6
4212 for ac_hdr in readline.h history.h readline/readline.h
4214 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4216 echo "configure:4217: checking for $ac_hdr" >&5
4217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4226 { (eval echo configure:4227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4228 if test -z "$ac_err"; then
4230 eval "ac_cv_header_$ac_safe=yes"
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4236 eval "ac_cv_header_$ac_safe=no"
4240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4241 echo "$ac_t""yes" 1>&6
4242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4243 cat >> confdefs.h <<EOF
4244 #define $ac_tr_hdr 1
4248 echo "$ac_t""no" 1>&6
4252 for ac_hdr in readline/history.h
4254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_hdr" >&5
4257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4266 { (eval echo configure:4267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4268 if test -z "$ac_err"; then
4270 eval "ac_cv_header_$ac_safe=yes"
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4276 eval "ac_cv_header_$ac_safe=no"
4280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4283 cat >> confdefs.h <<EOF
4284 #define $ac_tr_hdr 1
4288 echo "$ac_t""no" 1>&6
4293 for ac_hdr in readline.h readline/readline.h
4295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4297 echo "configure:4298: checking for $ac_hdr" >&5
4298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4307 { (eval echo configure:4308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4309 if test -z "$ac_err"; then
4311 eval "ac_cv_header_$ac_safe=yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4317 eval "ac_cv_header_$ac_safe=no"
4321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4322 echo "$ac_t""yes" 1>&6
4323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4324 cat >> confdefs.h <<EOF
4325 #define $ac_tr_hdr 1
4328 for termlib in ncurses curses termcap terminfo termlib; do
4329 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4330 echo "configure:4331: checking for tgetent in -l${termlib}" >&5
4331 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 ac_save_LIBS="$LIBS"
4336 LIBS="-l${termlib} $LIBS"
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 /* Override any gcc2 internal prototype to avoid an error. */
4341 /* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4349 if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4351 eval "ac_cv_lib_$ac_lib_var=yes"
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4356 eval "ac_cv_lib_$ac_lib_var=no"
4359 LIBS="$ac_save_LIBS"
4362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4363 echo "$ac_t""yes" 1>&6
4364 TERMLIBS="-l${termlib}"; break
4366 echo "$ac_t""no" 1>&6
4370 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4371 echo "configure:4372: checking for rl_callback_handler_install in -lreadline" >&5
4372 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 ac_save_LIBS="$LIBS"
4377 LIBS="-lreadline $TERMLIBS $LIBS"
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4384 char rl_callback_handler_install();
4387 rl_callback_handler_install()
4390 if { (eval echo configure:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4392 eval "ac_cv_lib_$ac_lib_var=yes"
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4397 eval "ac_cv_lib_$ac_lib_var=no"
4400 LIBS="$ac_save_LIBS"
4403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4405 TERMLIBS="-lreadline $TERMLIBS"
4406 cat >> confdefs.h <<\EOF
4407 #define HAVE_LIBREADLINE 1
4412 echo "$ac_t""no" 1>&6
4417 echo "$ac_t""no" 1>&6
4423 echo "$ac_t""no" 1>&6
4426 echo "$ac_t""yes" 1>&6
4428 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4429 # alternate readline path
4431 _cppflags=${CPPFLAGS}
4433 # Add additional search path
4434 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4435 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4437 for ac_hdr in readline.h history.h readline/readline.h
4439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4441 echo "configure:4442: checking for $ac_hdr" >&5
4442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4451 { (eval echo configure:4452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4453 if test -z "$ac_err"; then
4455 eval "ac_cv_header_$ac_safe=yes"
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 eval "ac_cv_header_$ac_safe=no"
4465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4466 echo "$ac_t""yes" 1>&6
4467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4468 cat >> confdefs.h <<EOF
4469 #define $ac_tr_hdr 1
4473 echo "$ac_t""no" 1>&6
4477 for ac_hdr in readline/history.h
4479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_hdr" >&5
4482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4491 { (eval echo configure:4492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4493 if test -z "$ac_err"; then
4495 eval "ac_cv_header_$ac_safe=yes"
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4501 eval "ac_cv_header_$ac_safe=no"
4505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4508 cat >> confdefs.h <<EOF
4509 #define $ac_tr_hdr 1
4513 echo "$ac_t""no" 1>&6
4518 for ac_hdr in readline.h readline/readline.h
4520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4522 echo "configure:4523: checking for $ac_hdr" >&5
4523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4526 cat > conftest.$ac_ext <<EOF
4527 #line 4528 "configure"
4528 #include "confdefs.h"
4531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4532 { (eval echo configure:4533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4534 if test -z "$ac_err"; then
4536 eval "ac_cv_header_$ac_safe=yes"
4539 echo "configure: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4542 eval "ac_cv_header_$ac_safe=no"
4546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4549 cat >> confdefs.h <<EOF
4550 #define $ac_tr_hdr 1
4553 for termlib in ncurses curses termcap terminfo termlib; do
4554 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4555 echo "configure:4556: checking for tgetent in -l${termlib}" >&5
4556 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 ac_save_LIBS="$LIBS"
4561 LIBS="-l${termlib} $LIBS"
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 /* Override any gcc2 internal prototype to avoid an error. */
4566 /* We use char because int might match the return type of a gcc2
4567 builtin and then its argument prototype would still apply. */
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 eval "ac_cv_lib_$ac_lib_var=yes"
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 eval "ac_cv_lib_$ac_lib_var=no"
4584 LIBS="$ac_save_LIBS"
4587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6
4589 TERMLIBS="-l${termlib}"; break
4591 echo "$ac_t""no" 1>&6
4595 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4596 echo "configure:4597: checking for rl_callback_handler_install in -lreadline" >&5
4597 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 ac_save_LIBS="$LIBS"
4602 LIBS="-lreadline $TERMLIBS $LIBS"
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 /* Override any gcc2 internal prototype to avoid an error. */
4607 /* We use char because int might match the return type of a gcc2
4608 builtin and then its argument prototype would still apply. */
4609 char rl_callback_handler_install();
4612 rl_callback_handler_install()
4615 if { (eval echo configure:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4617 eval "ac_cv_lib_$ac_lib_var=yes"
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4622 eval "ac_cv_lib_$ac_lib_var=no"
4625 LIBS="$ac_save_LIBS"
4628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4630 TERMLDFLAGS="-L$with_readline/lib"
4631 TERMCPPFLAGS="-I$with_readline/include"
4632 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4633 TERMLIBS="-lreadline $TERMLIBS"
4634 cat >> confdefs.h <<\EOF
4635 #define HAVE_LIBREADLINE 1
4640 echo "$ac_t""no" 1>&6
4641 TERMLIBS= CPPFLAGS=$_cppflags
4645 echo "$ac_t""no" 1>&6
4654 echo "$ac_t""no" 1>&6
4661 # The readline API changed slightly from readline3 to readline4, so
4662 # code will generate warnings on one of them unless we have a few
4664 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4665 echo "configure:4666: checking for rl_completion_matches in -lreadline" >&5
4666 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 ac_save_LIBS="$LIBS"
4671 LIBS="-lreadline $TERMLIBS $LIBS"
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678 char rl_completion_matches();
4681 rl_completion_matches()
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686 eval "ac_cv_lib_$ac_lib_var=yes"
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4691 eval "ac_cv_lib_$ac_lib_var=no"
4694 LIBS="$ac_save_LIBS"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 cat >> confdefs.h <<\EOF
4700 #define HAVE_NEW_LIBREADLINE 1
4704 echo "$ac_t""no" 1>&6
4708 # The following test taken from the cvs sources
4709 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4710 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4711 # libsocket.so which has a bad implementation of gethostbyname (it
4712 # only looks in /etc/hosts), so we only look for -lsocket if we need
4714 for ac_func in connect
4716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_func" >&5
4718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 cat > conftest.$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4724 /* System header to define __stub macros and hopefully few prototypes,
4725 which can conflict with char $ac_func(); below. */
4727 /* Override any gcc2 internal prototype to avoid an error. */
4728 /* We use char because int might match the return type of a gcc2
4729 builtin and then its argument prototype would still apply. */
4734 /* The GNU C library defines this for functions which it implements
4735 to always fail with ENOSYS. Some functions are actually named
4736 something starting with __ and the normal name is an alias. */
4737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4745 if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 eval "ac_cv_func_$ac_func=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 eval "ac_cv_func_$ac_func=no"
4757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4760 cat >> confdefs.h <<EOF
4761 #define $ac_tr_func 1
4765 echo "$ac_t""no" 1>&6
4769 if test x"$ac_cv_func_connect" = x"no"; then
4772 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4773 echo "configure:4774: checking for printf in -lnsl_s" >&5
4774 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 ac_save_LIBS="$LIBS"
4779 LIBS="-lnsl_s $LIBS"
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4783 /* Override any gcc2 internal prototype to avoid an error. */
4784 /* We use char because int might match the return type of a gcc2
4785 builtin and then its argument prototype would still apply. */
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4794 eval "ac_cv_lib_$ac_lib_var=yes"
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4799 eval "ac_cv_lib_$ac_lib_var=no"
4802 LIBS="$ac_save_LIBS"
4805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4809 cat >> confdefs.h <<EOF
4810 #define $ac_tr_lib 1
4813 LIBS="-lnsl_s $LIBS"
4816 echo "$ac_t""no" 1>&6
4822 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4823 echo "configure:4824: checking for printf in -lnsl" >&5
4824 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 ac_save_LIBS="$LIBS"
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* Override any gcc2 internal prototype to avoid an error. */
4834 /* We use char because int might match the return type of a gcc2
4835 builtin and then its argument prototype would still apply. */
4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844 eval "ac_cv_lib_$ac_lib_var=yes"
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4849 eval "ac_cv_lib_$ac_lib_var=no"
4852 LIBS="$ac_save_LIBS"
4855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4859 cat >> confdefs.h <<EOF
4860 #define $ac_tr_lib 1
4866 echo "$ac_t""no" 1>&6
4872 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4873 echo "configure:4874: checking for connect in -lsocket" >&5
4874 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 ac_save_LIBS="$LIBS"
4879 LIBS="-lsocket $LIBS"
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4894 eval "ac_cv_lib_$ac_lib_var=yes"
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4899 eval "ac_cv_lib_$ac_lib_var=no"
4902 LIBS="$ac_save_LIBS"
4905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4907 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4909 cat >> confdefs.h <<EOF
4910 #define $ac_tr_lib 1
4913 LIBS="-lsocket $LIBS"
4916 echo "$ac_t""no" 1>&6
4922 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4923 echo "configure:4924: checking for connect in -linet" >&5
4924 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 ac_save_LIBS="$LIBS"
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* Override any gcc2 internal prototype to avoid an error. */
4934 /* We use char because int might match the return type of a gcc2
4935 builtin and then its argument prototype would still apply. */
4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4944 eval "ac_cv_lib_$ac_lib_var=yes"
4946 echo "configure: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4949 eval "ac_cv_lib_$ac_lib_var=no"
4952 LIBS="$ac_save_LIBS"
4955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4959 cat >> confdefs.h <<EOF
4960 #define $ac_tr_lib 1
4966 echo "$ac_t""no" 1>&6
4970 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4971 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4972 # ac_cv_func_connect=yes
4973 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4974 cat >> confdefs.h <<\EOF
4975 #define HAVE_CONNECT 1
4981 ###############################################
4982 # test for where we get get_yp_default_domain() from
4983 for ac_func in yp_get_default_domain
4985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4986 echo "configure:4987: checking for $ac_func" >&5
4987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4993 /* System header to define __stub macros and hopefully few prototypes,
4994 which can conflict with char $ac_func(); below. */
4996 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
5003 /* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
5006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5016 eval "ac_cv_func_$ac_func=yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 eval "ac_cv_func_$ac_func=no"
5026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5027 echo "$ac_t""yes" 1>&6
5028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5029 cat >> confdefs.h <<EOF
5030 #define $ac_tr_func 1
5034 echo "$ac_t""no" 1>&6
5038 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5039 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5040 echo "configure:5041: checking for yp_get_default_domain in -lnsl" >&5
5041 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 ac_save_LIBS="$LIBS"
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 /* Override any gcc2 internal prototype to avoid an error. */
5051 /* We use char because int might match the return type of a gcc2
5052 builtin and then its argument prototype would still apply. */
5053 char yp_get_default_domain();
5056 yp_get_default_domain()
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_lib_$ac_lib_var=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_lib_$ac_lib_var=no"
5069 LIBS="$ac_save_LIBS"
5072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5075 cat >> confdefs.h <<\EOF
5076 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5080 echo "$ac_t""no" 1>&6
5085 # Check if we have execl, if not we need to compile smbrun.
5086 for ac_func in execl
5088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5089 echo "configure:5090: checking for $ac_func" >&5
5090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5096 /* System header to define __stub macros and hopefully few prototypes,
5097 which can conflict with char $ac_func(); below. */
5099 /* Override any gcc2 internal prototype to avoid an error. */
5100 /* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */
5106 /* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
5109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5117 if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5119 eval "ac_cv_func_$ac_func=yes"
5121 echo "configure: failed program was:" >&5
5122 cat conftest.$ac_ext >&5
5124 eval "ac_cv_func_$ac_func=no"
5129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5130 echo "$ac_t""yes" 1>&6
5131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5132 cat >> confdefs.h <<EOF
5133 #define $ac_tr_func 1
5137 echo "$ac_t""no" 1>&6
5141 if test x"$ac_cv_func_execl" = x"no"; then
5142 RUNPROG="bin/smbrun"
5147 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5150 echo "configure:5151: checking for $ac_func" >&5
5151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5157 /* System header to define __stub macros and hopefully few prototypes,
5158 which can conflict with char $ac_func(); below. */
5160 /* Override any gcc2 internal prototype to avoid an error. */
5161 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180 eval "ac_cv_func_$ac_func=yes"
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 eval "ac_cv_func_$ac_func=no"
5190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5191 echo "$ac_t""yes" 1>&6
5192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5193 cat >> confdefs.h <<EOF
5194 #define $ac_tr_func 1
5198 echo "$ac_t""no" 1>&6
5202 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5205 echo "configure:5206: checking for $ac_func" >&5
5206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5209 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure"
5211 #include "confdefs.h"
5212 /* System header to define __stub macros and hopefully few prototypes,
5213 which can conflict with char $ac_func(); below. */
5215 /* Override any gcc2 internal prototype to avoid an error. */
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5222 /* The GNU C library defines this for functions which it implements
5223 to always fail with ENOSYS. Some functions are actually named
5224 something starting with __ and the normal name is an alias. */
5225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5235 eval "ac_cv_func_$ac_func=yes"
5237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5240 eval "ac_cv_func_$ac_func=no"
5245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5246 echo "$ac_t""yes" 1>&6
5247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5248 cat >> confdefs.h <<EOF
5249 #define $ac_tr_func 1
5253 echo "$ac_t""no" 1>&6
5257 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5260 echo "configure:5261: checking for $ac_func" >&5
5261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5267 /* System header to define __stub macros and hopefully few prototypes,
5268 which can conflict with char $ac_func(); below. */
5270 /* Override any gcc2 internal prototype to avoid an error. */
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5277 /* The GNU C library defines this for functions which it implements
5278 to always fail with ENOSYS. Some functions are actually named
5279 something starting with __ and the normal name is an alias. */
5280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5288 if { (eval echo configure:5289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5290 eval "ac_cv_func_$ac_func=yes"
5292 echo "configure: failed program was:" >&5
5293 cat conftest.$ac_ext >&5
5295 eval "ac_cv_func_$ac_func=no"
5300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5303 cat >> confdefs.h <<EOF
5304 #define $ac_tr_func 1
5308 echo "$ac_t""no" 1>&6
5312 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5315 echo "configure:5316: checking for $ac_func" >&5
5316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 cat > conftest.$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 /* System header to define __stub macros and hopefully few prototypes,
5323 which can conflict with char $ac_func(); below. */
5325 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5332 /* The GNU C library defines this for functions which it implements
5333 to always fail with ENOSYS. Some functions are actually named
5334 something starting with __ and the normal name is an alias. */
5335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5343 if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5345 eval "ac_cv_func_$ac_func=yes"
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5350 eval "ac_cv_func_$ac_func=no"
5355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5358 cat >> confdefs.h <<EOF
5359 #define $ac_tr_func 1
5363 echo "$ac_t""no" 1>&6
5367 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5370 echo "configure:5371: checking for $ac_func" >&5
5371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5377 /* System header to define __stub macros and hopefully few prototypes,
5378 which can conflict with char $ac_func(); below. */
5380 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5387 /* The GNU C library defines this for functions which it implements
5388 to always fail with ENOSYS. Some functions are actually named
5389 something starting with __ and the normal name is an alias. */
5390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 eval "ac_cv_func_$ac_func=yes"
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5405 eval "ac_cv_func_$ac_func=no"
5410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5411 echo "$ac_t""yes" 1>&6
5412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5413 cat >> confdefs.h <<EOF
5414 #define $ac_tr_func 1
5418 echo "$ac_t""no" 1>&6
5422 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5425 echo "configure:5426: checking for $ac_func" >&5
5426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5432 /* System header to define __stub macros and hopefully few prototypes,
5433 which can conflict with char $ac_func(); below. */
5435 /* Override any gcc2 internal prototype to avoid an error. */
5436 /* We use char because int might match the return type of a gcc2
5437 builtin and then its argument prototype would still apply. */
5442 /* The GNU C library defines this for functions which it implements
5443 to always fail with ENOSYS. Some functions are actually named
5444 something starting with __ and the normal name is an alias. */
5445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5453 if { (eval echo configure:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5455 eval "ac_cv_func_$ac_func=yes"
5457 echo "configure: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5460 eval "ac_cv_func_$ac_func=no"
5465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5466 echo "$ac_t""yes" 1>&6
5467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5468 cat >> confdefs.h <<EOF
5469 #define $ac_tr_func 1
5473 echo "$ac_t""no" 1>&6
5477 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5480 echo "configure:5481: checking for $ac_func" >&5
5481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5487 /* System header to define __stub macros and hopefully few prototypes,
5488 which can conflict with char $ac_func(); below. */
5490 /* Override any gcc2 internal prototype to avoid an error. */
5491 /* We use char because int might match the return type of a gcc2
5492 builtin and then its argument prototype would still apply. */
5497 /* The GNU C library defines this for functions which it implements
5498 to always fail with ENOSYS. Some functions are actually named
5499 something starting with __ and the normal name is an alias. */
5500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5508 if { (eval echo configure:5509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5510 eval "ac_cv_func_$ac_func=yes"
5512 echo "configure: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5515 eval "ac_cv_func_$ac_func=no"
5520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5521 echo "$ac_t""yes" 1>&6
5522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5523 cat >> confdefs.h <<EOF
5524 #define $ac_tr_func 1
5528 echo "$ac_t""no" 1>&6
5532 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_func" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char $ac_func(); below. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5565 eval "ac_cv_func_$ac_func=yes"
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 eval "ac_cv_func_$ac_func=no"
5575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5578 cat >> confdefs.h <<EOF
5579 #define $ac_tr_func 1
5583 echo "$ac_t""no" 1>&6
5587 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_func" >&5
5591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func(); below. */
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5607 /* The GNU C library defines this for functions which it implements
5608 to always fail with ENOSYS. Some functions are actually named
5609 something starting with __ and the normal name is an alias. */
5610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5620 eval "ac_cv_func_$ac_func=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 eval "ac_cv_func_$ac_func=no"
5630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633 cat >> confdefs.h <<EOF
5634 #define $ac_tr_func 1
5638 echo "$ac_t""no" 1>&6
5642 for ac_func in syslog vsyslog
5644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5645 echo "configure:5646: checking for $ac_func" >&5
5646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* System header to define __stub macros and hopefully few prototypes,
5653 which can conflict with char $ac_func(); below. */
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5662 /* The GNU C library defines this for functions which it implements
5663 to always fail with ENOSYS. Some functions are actually named
5664 something starting with __ and the normal name is an alias. */
5665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5673 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5675 eval "ac_cv_func_$ac_func=yes"
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5680 eval "ac_cv_func_$ac_func=no"
5685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5688 cat >> confdefs.h <<EOF
5689 #define $ac_tr_func 1
5693 echo "$ac_t""no" 1>&6
5697 # setbuffer is needed for smbtorture
5698 for ac_func in setbuffer
5700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5701 echo "configure:5702: checking for $ac_func" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char $ac_func(); below. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731 eval "ac_cv_func_$ac_func=yes"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5736 eval "ac_cv_func_$ac_func=no"
5741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5744 cat >> confdefs.h <<EOF
5745 #define $ac_tr_func 1
5749 echo "$ac_t""no" 1>&6
5754 # syscall() is needed for smbwrapper.
5755 for ac_func in syscall
5757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5758 echo "configure:5759: checking for $ac_func" >&5
5759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5765 /* System header to define __stub macros and hopefully few prototypes,
5766 which can conflict with char $ac_func(); below. */
5768 /* Override any gcc2 internal prototype to avoid an error. */
5769 /* We use char because int might match the return type of a gcc2
5770 builtin and then its argument prototype would still apply. */
5775 /* The GNU C library defines this for functions which it implements
5776 to always fail with ENOSYS. Some functions are actually named
5777 something starting with __ and the normal name is an alias. */
5778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5786 if { (eval echo configure:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5788 eval "ac_cv_func_$ac_func=yes"
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 eval "ac_cv_func_$ac_func=no"
5798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5799 echo "$ac_t""yes" 1>&6
5800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5801 cat >> confdefs.h <<EOF
5802 #define $ac_tr_func 1
5806 echo "$ac_t""no" 1>&6
5811 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_func" >&5
5815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5821 /* System header to define __stub macros and hopefully few prototypes,
5822 which can conflict with char $ac_func(); below. */
5824 /* Override any gcc2 internal prototype to avoid an error. */
5825 /* We use char because int might match the return type of a gcc2
5826 builtin and then its argument prototype would still apply. */
5831 /* The GNU C library defines this for functions which it implements
5832 to always fail with ENOSYS. Some functions are actually named
5833 something starting with __ and the normal name is an alias. */
5834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5842 if { (eval echo configure:5843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5844 eval "ac_cv_func_$ac_func=yes"
5846 echo "configure: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5849 eval "ac_cv_func_$ac_func=no"
5854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5855 echo "$ac_t""yes" 1>&6
5856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5857 cat >> confdefs.h <<EOF
5858 #define $ac_tr_func 1
5862 echo "$ac_t""no" 1>&6
5866 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5869 echo "configure:5870: checking for $ac_func" >&5
5870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5871 echo $ac_n "(cached) $ac_c" 1>&6
5873 cat > conftest.$ac_ext <<EOF
5874 #line 5875 "configure"
5875 #include "confdefs.h"
5876 /* System header to define __stub macros and hopefully few prototypes,
5877 which can conflict with char $ac_func(); below. */
5879 /* Override any gcc2 internal prototype to avoid an error. */
5880 /* We use char because int might match the return type of a gcc2
5881 builtin and then its argument prototype would still apply. */
5886 /* The GNU C library defines this for functions which it implements
5887 to always fail with ENOSYS. Some functions are actually named
5888 something starting with __ and the normal name is an alias. */
5889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5897 if { (eval echo configure:5898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5899 eval "ac_cv_func_$ac_func=yes"
5901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5904 eval "ac_cv_func_$ac_func=no"
5909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5910 echo "$ac_t""yes" 1>&6
5911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5912 cat >> confdefs.h <<EOF
5913 #define $ac_tr_func 1
5917 echo "$ac_t""no" 1>&6
5921 for ac_func in __getcwd _getcwd
5923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5924 echo "configure:5925: checking for $ac_func" >&5
5925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* System header to define __stub macros and hopefully few prototypes,
5932 which can conflict with char $ac_func(); below. */
5934 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5941 /* The GNU C library defines this for functions which it implements
5942 to always fail with ENOSYS. Some functions are actually named
5943 something starting with __ and the normal name is an alias. */
5944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5954 eval "ac_cv_func_$ac_func=yes"
5956 echo "configure: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5959 eval "ac_cv_func_$ac_func=no"
5964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5965 echo "$ac_t""yes" 1>&6
5966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5967 cat >> confdefs.h <<EOF
5968 #define $ac_tr_func 1
5972 echo "$ac_t""no" 1>&6
5976 for ac_func in __xstat __fxstat __lxstat
5978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5979 echo "configure:5980: checking for $ac_func" >&5
5980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 /* System header to define __stub macros and hopefully few prototypes,
5987 which can conflict with char $ac_func(); below. */
5989 /* Override any gcc2 internal prototype to avoid an error. */
5990 /* We use char because int might match the return type of a gcc2
5991 builtin and then its argument prototype would still apply. */
5996 /* The GNU C library defines this for functions which it implements
5997 to always fail with ENOSYS. Some functions are actually named
5998 something starting with __ and the normal name is an alias. */
5999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6007 if { (eval echo configure:6008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6009 eval "ac_cv_func_$ac_func=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6014 eval "ac_cv_func_$ac_func=no"
6019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6022 cat >> confdefs.h <<EOF
6023 #define $ac_tr_func 1
6027 echo "$ac_t""no" 1>&6
6031 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6034 echo "configure:6035: checking for $ac_func" >&5
6035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 /* System header to define __stub macros and hopefully few prototypes,
6042 which can conflict with char $ac_func(); below. */
6044 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6051 /* The GNU C library defines this for functions which it implements
6052 to always fail with ENOSYS. Some functions are actually named
6053 something starting with __ and the normal name is an alias. */
6054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6064 eval "ac_cv_func_$ac_func=yes"
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6069 eval "ac_cv_func_$ac_func=no"
6074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6075 echo "$ac_t""yes" 1>&6
6076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6077 cat >> confdefs.h <<EOF
6078 #define $ac_tr_func 1
6082 echo "$ac_t""no" 1>&6
6086 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6089 echo "configure:6090: checking for $ac_func" >&5
6090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6096 /* System header to define __stub macros and hopefully few prototypes,
6097 which can conflict with char $ac_func(); below. */
6099 /* Override any gcc2 internal prototype to avoid an error. */
6100 /* We use char because int might match the return type of a gcc2
6101 builtin and then its argument prototype would still apply. */
6106 /* The GNU C library defines this for functions which it implements
6107 to always fail with ENOSYS. Some functions are actually named
6108 something starting with __ and the normal name is an alias. */
6109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6117 if { (eval echo configure:6118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6119 eval "ac_cv_func_$ac_func=yes"
6121 echo "configure: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6124 eval "ac_cv_func_$ac_func=no"
6129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6130 echo "$ac_t""yes" 1>&6
6131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6132 cat >> confdefs.h <<EOF
6133 #define $ac_tr_func 1
6137 echo "$ac_t""no" 1>&6
6141 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6144 echo "configure:6145: checking for $ac_func" >&5
6145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6146 echo $ac_n "(cached) $ac_c" 1>&6
6148 cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6151 /* System header to define __stub macros and hopefully few prototypes,
6152 which can conflict with char $ac_func(); below. */
6154 /* Override any gcc2 internal prototype to avoid an error. */
6155 /* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */
6161 /* The GNU C library defines this for functions which it implements
6162 to always fail with ENOSYS. Some functions are actually named
6163 something starting with __ and the normal name is an alias. */
6164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6172 if { (eval echo configure:6173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6174 eval "ac_cv_func_$ac_func=yes"
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6179 eval "ac_cv_func_$ac_func=no"
6184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6185 echo "$ac_t""yes" 1>&6
6186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6187 cat >> confdefs.h <<EOF
6188 #define $ac_tr_func 1
6192 echo "$ac_t""no" 1>&6
6196 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6199 echo "configure:6200: checking for $ac_func" >&5
6200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char $ac_func(); below. */
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 eval "ac_cv_func_$ac_func=yes"
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6234 eval "ac_cv_func_$ac_func=no"
6239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6242 cat >> confdefs.h <<EOF
6243 #define $ac_tr_func 1
6247 echo "$ac_t""no" 1>&6
6251 for ac_func in _write __write _fork __fork
6253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6254 echo "configure:6255: checking for $ac_func" >&5
6255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6258 cat > conftest.$ac_ext <<EOF
6259 #line 6260 "configure"
6260 #include "confdefs.h"
6261 /* System header to define __stub macros and hopefully few prototypes,
6262 which can conflict with char $ac_func(); below. */
6264 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6271 /* The GNU C library defines this for functions which it implements
6272 to always fail with ENOSYS. Some functions are actually named
6273 something starting with __ and the normal name is an alias. */
6274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6282 if { (eval echo configure:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6284 eval "ac_cv_func_$ac_func=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6289 eval "ac_cv_func_$ac_func=no"
6294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6297 cat >> confdefs.h <<EOF
6298 #define $ac_tr_func 1
6302 echo "$ac_t""no" 1>&6
6306 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6309 echo "configure:6310: checking for $ac_func" >&5
6310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 /* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func(); below. */
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6326 /* The GNU C library defines this for functions which it implements
6327 to always fail with ENOSYS. Some functions are actually named
6328 something starting with __ and the normal name is an alias. */
6329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6339 eval "ac_cv_func_$ac_func=yes"
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6344 eval "ac_cv_func_$ac_func=no"
6349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6350 echo "$ac_t""yes" 1>&6
6351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6352 cat >> confdefs.h <<EOF
6353 #define $ac_tr_func 1
6357 echo "$ac_t""no" 1>&6
6361 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6364 echo "configure:6365: checking for $ac_func" >&5
6365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6371 /* System header to define __stub macros and hopefully few prototypes,
6372 which can conflict with char $ac_func(); below. */
6374 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6381 /* The GNU C library defines this for functions which it implements
6382 to always fail with ENOSYS. Some functions are actually named
6383 something starting with __ and the normal name is an alias. */
6384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6392 if { (eval echo configure:6393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394 eval "ac_cv_func_$ac_func=yes"
6396 echo "configure: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6399 eval "ac_cv_func_$ac_func=no"
6404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6405 echo "$ac_t""yes" 1>&6
6406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6407 cat >> confdefs.h <<EOF
6408 #define $ac_tr_func 1
6412 echo "$ac_t""no" 1>&6
6416 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6419 echo "configure:6420: checking for $ac_func" >&5
6420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* System header to define __stub macros and hopefully few prototypes,
6427 which can conflict with char $ac_func(); below. */
6429 /* Override any gcc2 internal prototype to avoid an error. */
6430 /* We use char because int might match the return type of a gcc2
6431 builtin and then its argument prototype would still apply. */
6436 /* The GNU C library defines this for functions which it implements
6437 to always fail with ENOSYS. Some functions are actually named
6438 something starting with __ and the normal name is an alias. */
6439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6449 eval "ac_cv_func_$ac_func=yes"
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6454 eval "ac_cv_func_$ac_func=no"
6459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6462 cat >> confdefs.h <<EOF
6463 #define $ac_tr_func 1
6467 echo "$ac_t""no" 1>&6
6471 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6474 echo "configure:6475: checking for $ac_func" >&5
6475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6476 echo $ac_n "(cached) $ac_c" 1>&6
6478 cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure"
6480 #include "confdefs.h"
6481 /* System header to define __stub macros and hopefully few prototypes,
6482 which can conflict with char $ac_func(); below. */
6484 /* Override any gcc2 internal prototype to avoid an error. */
6485 /* We use char because int might match the return type of a gcc2
6486 builtin and then its argument prototype would still apply. */
6491 /* The GNU C library defines this for functions which it implements
6492 to always fail with ENOSYS. Some functions are actually named
6493 something starting with __ and the normal name is an alias. */
6494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6502 if { (eval echo configure:6503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6504 eval "ac_cv_func_$ac_func=yes"
6506 echo "configure: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6509 eval "ac_cv_func_$ac_func=no"
6514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6515 echo "$ac_t""yes" 1>&6
6516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6517 cat >> confdefs.h <<EOF
6518 #define $ac_tr_func 1
6522 echo "$ac_t""no" 1>&6
6526 for ac_func in open64 _open64 __open64 creat64
6528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6529 echo "configure:6530: checking for $ac_func" >&5
6530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char $ac_func(); below. */
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6546 /* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
6549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6559 eval "ac_cv_func_$ac_func=yes"
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6564 eval "ac_cv_func_$ac_func=no"
6569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6572 cat >> confdefs.h <<EOF
6573 #define $ac_tr_func 1
6577 echo "$ac_t""no" 1>&6
6583 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6586 if test x$ac_cv_func_stat64 = xno ; then
6587 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6588 echo "configure:6589: checking for stat64 in <sys/stat.h>" >&5
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6593 #if defined(HAVE_UNISTD_H)
6596 #include <sys/stat.h>
6599 struct stat64 st64; exit(stat64(".",&st64));
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6604 ac_cv_func_stat64=yes
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6610 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6611 if test x$ac_cv_func_stat64 = xyes ; then
6612 cat >> confdefs.h <<\EOF
6613 #define HAVE_STAT64 1
6619 if test x$ac_cv_func_lstat64 = xno ; then
6620 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6621 echo "configure:6622: checking for lstat64 in <sys/stat.h>" >&5
6622 cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6626 #if defined(HAVE_UNISTD_H)
6629 #include <sys/stat.h>
6632 struct stat64 st64; exit(lstat64(".",&st64));
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6637 ac_cv_func_lstat64=yes
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6643 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6644 if test x$ac_cv_func_lstat64 = xyes ; then
6645 cat >> confdefs.h <<\EOF
6646 #define HAVE_LSTAT64 1
6652 if test x$ac_cv_func_fstat64 = xno ; then
6653 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6654 echo "configure:6655: checking for fstat64 in <sys/stat.h>" >&5
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6659 #if defined(HAVE_UNISTD_H)
6662 #include <sys/stat.h>
6665 struct stat64 st64; exit(fstat64(0,&st64));
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670 ac_cv_func_fstat64=yes
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6676 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6677 if test x$ac_cv_func_fstat64 = xyes ; then
6678 cat >> confdefs.h <<\EOF
6679 #define HAVE_FSTAT64 1
6685 #####################################
6686 # we might need the resolv library on some systems
6687 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6688 echo "configure:6689: checking for dn_expand in -lresolv" >&5
6689 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 ac_save_LIBS="$LIBS"
6694 LIBS="-lresolv $LIBS"
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 eval "ac_cv_lib_$ac_lib_var=yes"
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 eval "ac_cv_lib_$ac_lib_var=no"
6717 LIBS="$ac_save_LIBS"
6720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6724 cat >> confdefs.h <<EOF
6725 #define $ac_tr_lib 1
6728 LIBS="-lresolv $LIBS"
6731 echo "$ac_t""no" 1>&6
6736 # Check for the functions putprpwnam, set_auth_parameters,
6737 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6738 # Needed for OSF1 and HPUX.
6742 *-lsecurity*) for ac_func in putprpwnam
6744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6745 echo "configure:6746: checking for $ac_func" >&5
6746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6747 echo $ac_n "(cached) $ac_c" 1>&6
6749 cat > conftest.$ac_ext <<EOF
6750 #line 6751 "configure"
6751 #include "confdefs.h"
6752 /* System header to define __stub macros and hopefully few prototypes,
6753 which can conflict with char $ac_func(); below. */
6755 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6762 /* The GNU C library defines this for functions which it implements
6763 to always fail with ENOSYS. Some functions are actually named
6764 something starting with __ and the normal name is an alias. */
6765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773 if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6775 eval "ac_cv_func_$ac_func=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6780 eval "ac_cv_func_$ac_func=no"
6785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6788 cat >> confdefs.h <<EOF
6789 #define $ac_tr_func 1
6793 echo "$ac_t""no" 1>&6
6797 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6798 echo "configure:6799: checking for putprpwnam in -lsecurity" >&5
6799 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6801 echo $ac_n "(cached) $ac_c" 1>&6
6803 ac_save_LIBS="$LIBS"
6804 LIBS="-lsecurity $LIBS"
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6808 /* Override any gcc2 internal prototype to avoid an error. */
6809 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6817 if { (eval echo configure:6818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6819 eval "ac_cv_lib_$ac_lib_var=yes"
6821 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6824 eval "ac_cv_lib_$ac_lib_var=no"
6827 LIBS="$ac_save_LIBS"
6830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6831 echo "$ac_t""yes" 1>&6
6832 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6833 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6834 cat >> confdefs.h <<EOF
6835 #define $ac_tr_lib 1
6838 LIBS="-lsecurity $LIBS"
6841 echo "$ac_t""no" 1>&6
6844 for ac_func in putprpwnam
6846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6847 echo "configure:6848: checking for $ac_func" >&5
6848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6849 echo $ac_n "(cached) $ac_c" 1>&6
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 /* System header to define __stub macros and hopefully few prototypes,
6855 which can conflict with char $ac_func(); below. */
6857 /* Override any gcc2 internal prototype to avoid an error. */
6858 /* We use char because int might match the return type of a gcc2
6859 builtin and then its argument prototype would still apply. */
6864 /* The GNU C library defines this for functions which it implements
6865 to always fail with ENOSYS. Some functions are actually named
6866 something starting with __ and the normal name is an alias. */
6867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6875 if { (eval echo configure:6876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877 eval "ac_cv_func_$ac_func=yes"
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6882 eval "ac_cv_func_$ac_func=no"
6887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6888 echo "$ac_t""yes" 1>&6
6889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6890 cat >> confdefs.h <<EOF
6891 #define $ac_tr_func 1
6895 echo "$ac_t""no" 1>&6
6903 *-lsec*) for ac_func in putprpwnam
6905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6906 echo "configure:6907: checking for $ac_func" >&5
6907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6908 echo $ac_n "(cached) $ac_c" 1>&6
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6913 /* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char $ac_func(); below. */
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6923 /* The GNU C library defines this for functions which it implements
6924 to always fail with ENOSYS. Some functions are actually named
6925 something starting with __ and the normal name is an alias. */
6926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6936 eval "ac_cv_func_$ac_func=yes"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6941 eval "ac_cv_func_$ac_func=no"
6946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6947 echo "$ac_t""yes" 1>&6
6948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6949 cat >> confdefs.h <<EOF
6950 #define $ac_tr_func 1
6954 echo "$ac_t""no" 1>&6
6958 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6959 echo "configure:6960: checking for putprpwnam in -lsec" >&5
6960 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6964 ac_save_LIBS="$LIBS"
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980 eval "ac_cv_lib_$ac_lib_var=yes"
6982 echo "configure: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6985 eval "ac_cv_lib_$ac_lib_var=no"
6988 LIBS="$ac_save_LIBS"
6991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6992 echo "$ac_t""yes" 1>&6
6993 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6995 cat >> confdefs.h <<EOF
6996 #define $ac_tr_lib 1
7002 echo "$ac_t""no" 1>&6
7005 for ac_func in putprpwnam
7007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7008 echo "configure:7009: checking for $ac_func" >&5
7009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7010 echo $ac_n "(cached) $ac_c" 1>&6
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7015 /* System header to define __stub macros and hopefully few prototypes,
7016 which can conflict with char $ac_func(); below. */
7018 /* Override any gcc2 internal prototype to avoid an error. */
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7025 /* The GNU C library defines this for functions which it implements
7026 to always fail with ENOSYS. Some functions are actually named
7027 something starting with __ and the normal name is an alias. */
7028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7036 if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7038 eval "ac_cv_func_$ac_func=yes"
7040 echo "configure: failed program was:" >&5
7041 cat conftest.$ac_ext >&5
7043 eval "ac_cv_func_$ac_func=no"
7048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7049 echo "$ac_t""yes" 1>&6
7050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7051 cat >> confdefs.h <<EOF
7052 #define $ac_tr_func 1
7056 echo "$ac_t""no" 1>&6
7065 *-lsecurity*) for ac_func in set_auth_parameters
7067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7068 echo "configure:7069: checking for $ac_func" >&5
7069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7070 echo $ac_n "(cached) $ac_c" 1>&6
7072 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7075 /* System header to define __stub macros and hopefully few prototypes,
7076 which can conflict with char $ac_func(); below. */
7078 /* Override any gcc2 internal prototype to avoid an error. */
7079 /* We use char because int might match the return type of a gcc2
7080 builtin and then its argument prototype would still apply. */
7085 /* The GNU C library defines this for functions which it implements
7086 to always fail with ENOSYS. Some functions are actually named
7087 something starting with __ and the normal name is an alias. */
7088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7096 if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7098 eval "ac_cv_func_$ac_func=yes"
7100 echo "configure: failed program was:" >&5
7101 cat conftest.$ac_ext >&5
7103 eval "ac_cv_func_$ac_func=no"
7108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7109 echo "$ac_t""yes" 1>&6
7110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7111 cat >> confdefs.h <<EOF
7112 #define $ac_tr_func 1
7116 echo "$ac_t""no" 1>&6
7120 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7121 echo "configure:7122: checking for set_auth_parameters in -lsecurity" >&5
7122 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7126 ac_save_LIBS="$LIBS"
7127 LIBS="-lsecurity $LIBS"
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131 /* Override any gcc2 internal prototype to avoid an error. */
7132 /* We use char because int might match the return type of a gcc2
7133 builtin and then its argument prototype would still apply. */
7134 char set_auth_parameters();
7137 set_auth_parameters()
7140 if { (eval echo configure:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7142 eval "ac_cv_lib_$ac_lib_var=yes"
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 eval "ac_cv_lib_$ac_lib_var=no"
7150 LIBS="$ac_save_LIBS"
7153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7154 echo "$ac_t""yes" 1>&6
7155 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7156 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7157 cat >> confdefs.h <<EOF
7158 #define $ac_tr_lib 1
7161 LIBS="-lsecurity $LIBS"
7164 echo "$ac_t""no" 1>&6
7167 for ac_func in set_auth_parameters
7169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7170 echo "configure:7171: checking for $ac_func" >&5
7171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7174 cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7177 /* System header to define __stub macros and hopefully few prototypes,
7178 which can conflict with char $ac_func(); below. */
7180 /* Override any gcc2 internal prototype to avoid an error. */
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7187 /* The GNU C library defines this for functions which it implements
7188 to always fail with ENOSYS. Some functions are actually named
7189 something starting with __ and the normal name is an alias. */
7190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 eval "ac_cv_func_$ac_func=yes"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7205 eval "ac_cv_func_$ac_func=no"
7210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7211 echo "$ac_t""yes" 1>&6
7212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7213 cat >> confdefs.h <<EOF
7214 #define $ac_tr_func 1
7218 echo "$ac_t""no" 1>&6
7226 *-lsec*) for ac_func in set_auth_parameters
7228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7229 echo "configure:7230: checking for $ac_func" >&5
7230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 /* System header to define __stub macros and hopefully few prototypes,
7237 which can conflict with char $ac_func(); below. */
7239 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7246 /* The GNU C library defines this for functions which it implements
7247 to always fail with ENOSYS. Some functions are actually named
7248 something starting with __ and the normal name is an alias. */
7249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7259 eval "ac_cv_func_$ac_func=yes"
7261 echo "configure: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7264 eval "ac_cv_func_$ac_func=no"
7269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7270 echo "$ac_t""yes" 1>&6
7271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7272 cat >> confdefs.h <<EOF
7273 #define $ac_tr_func 1
7277 echo "$ac_t""no" 1>&6
7281 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7282 echo "configure:7283: checking for set_auth_parameters in -lsec" >&5
7283 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7285 echo $ac_n "(cached) $ac_c" 1>&6
7287 ac_save_LIBS="$LIBS"
7289 cat > conftest.$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7292 /* Override any gcc2 internal prototype to avoid an error. */
7293 /* We use char because int might match the return type of a gcc2
7294 builtin and then its argument prototype would still apply. */
7295 char set_auth_parameters();
7298 set_auth_parameters()
7301 if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7303 eval "ac_cv_lib_$ac_lib_var=yes"
7305 echo "configure: failed program was:" >&5
7306 cat conftest.$ac_ext >&5
7308 eval "ac_cv_lib_$ac_lib_var=no"
7311 LIBS="$ac_save_LIBS"
7314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7315 echo "$ac_t""yes" 1>&6
7316 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7317 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7318 cat >> confdefs.h <<EOF
7319 #define $ac_tr_lib 1
7325 echo "$ac_t""no" 1>&6
7328 for ac_func in set_auth_parameters
7330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7331 echo "configure:7332: checking for $ac_func" >&5
7332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7333 echo $ac_n "(cached) $ac_c" 1>&6
7335 cat > conftest.$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7338 /* System header to define __stub macros and hopefully few prototypes,
7339 which can conflict with char $ac_func(); below. */
7341 /* Override any gcc2 internal prototype to avoid an error. */
7342 /* We use char because int might match the return type of a gcc2
7343 builtin and then its argument prototype would still apply. */
7348 /* The GNU C library defines this for functions which it implements
7349 to always fail with ENOSYS. Some functions are actually named
7350 something starting with __ and the normal name is an alias. */
7351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7361 eval "ac_cv_func_$ac_func=yes"
7363 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7366 eval "ac_cv_func_$ac_func=no"
7371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7372 echo "$ac_t""yes" 1>&6
7373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7374 cat >> confdefs.h <<EOF
7375 #define $ac_tr_func 1
7379 echo "$ac_t""no" 1>&6
7387 # UnixWare 7.x has its getspnam in -lgen
7389 *-lgen*) for ac_func in getspnam
7391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7392 echo "configure:7393: checking for $ac_func" >&5
7393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 /* System header to define __stub macros and hopefully few prototypes,
7400 which can conflict with char $ac_func(); below. */
7402 /* Override any gcc2 internal prototype to avoid an error. */
7403 /* We use char because int might match the return type of a gcc2
7404 builtin and then its argument prototype would still apply. */
7409 /* The GNU C library defines this for functions which it implements
7410 to always fail with ENOSYS. Some functions are actually named
7411 something starting with __ and the normal name is an alias. */
7412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7420 if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 eval "ac_cv_func_$ac_func=yes"
7424 echo "configure: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7427 eval "ac_cv_func_$ac_func=no"
7432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7435 cat >> confdefs.h <<EOF
7436 #define $ac_tr_func 1
7440 echo "$ac_t""no" 1>&6
7444 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7445 echo "configure:7446: checking for getspnam in -lgen" >&5
7446 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7448 echo $ac_n "(cached) $ac_c" 1>&6
7450 ac_save_LIBS="$LIBS"
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 /* Override any gcc2 internal prototype to avoid an error. */
7456 /* We use char because int might match the return type of a gcc2
7457 builtin and then its argument prototype would still apply. */
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7466 eval "ac_cv_lib_$ac_lib_var=yes"
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7471 eval "ac_cv_lib_$ac_lib_var=no"
7474 LIBS="$ac_save_LIBS"
7477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7478 echo "$ac_t""yes" 1>&6
7479 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7481 cat >> confdefs.h <<EOF
7482 #define $ac_tr_lib 1
7488 echo "$ac_t""no" 1>&6
7491 for ac_func in getspnam
7493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7494 echo "configure:7495: checking for $ac_func" >&5
7495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7498 cat > conftest.$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7501 /* System header to define __stub macros and hopefully few prototypes,
7502 which can conflict with char $ac_func(); below. */
7504 /* Override any gcc2 internal prototype to avoid an error. */
7505 /* We use char because int might match the return type of a gcc2
7506 builtin and then its argument prototype would still apply. */
7511 /* The GNU C library defines this for functions which it implements
7512 to always fail with ENOSYS. Some functions are actually named
7513 something starting with __ and the normal name is an alias. */
7514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7522 if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7524 eval "ac_cv_func_$ac_func=yes"
7526 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7529 eval "ac_cv_func_$ac_func=no"
7534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7535 echo "$ac_t""yes" 1>&6
7536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7537 cat >> confdefs.h <<EOF
7538 #define $ac_tr_func 1
7542 echo "$ac_t""no" 1>&6
7551 *-lsecurity*) for ac_func in getspnam
7553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7554 echo "configure:7555: checking for $ac_func" >&5
7555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561 /* System header to define __stub macros and hopefully few prototypes,
7562 which can conflict with char $ac_func(); below. */
7564 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7571 /* The GNU C library defines this for functions which it implements
7572 to always fail with ENOSYS. Some functions are actually named
7573 something starting with __ and the normal name is an alias. */
7574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7582 if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7584 eval "ac_cv_func_$ac_func=yes"
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7589 eval "ac_cv_func_$ac_func=no"
7594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7597 cat >> confdefs.h <<EOF
7598 #define $ac_tr_func 1
7602 echo "$ac_t""no" 1>&6
7606 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7607 echo "configure:7608: checking for getspnam in -lsecurity" >&5
7608 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7610 echo $ac_n "(cached) $ac_c" 1>&6
7612 ac_save_LIBS="$LIBS"
7613 LIBS="-lsecurity $LIBS"
7614 cat > conftest.$ac_ext <<EOF
7615 #line 7616 "configure"
7616 #include "confdefs.h"
7617 /* Override any gcc2 internal prototype to avoid an error. */
7618 /* We use char because int might match the return type of a gcc2
7619 builtin and then its argument prototype would still apply. */
7626 if { (eval echo configure:7627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7628 eval "ac_cv_lib_$ac_lib_var=yes"
7630 echo "configure: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7633 eval "ac_cv_lib_$ac_lib_var=no"
7636 LIBS="$ac_save_LIBS"
7639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7640 echo "$ac_t""yes" 1>&6
7641 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7643 cat >> confdefs.h <<EOF
7644 #define $ac_tr_lib 1
7647 LIBS="-lsecurity $LIBS"
7650 echo "$ac_t""no" 1>&6
7653 for ac_func in getspnam
7655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7656 echo "configure:7657: checking for $ac_func" >&5
7657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char $ac_func(); below. */
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7673 /* The GNU C library defines this for functions which it implements
7674 to always fail with ENOSYS. Some functions are actually named
7675 something starting with __ and the normal name is an alias. */
7676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7686 eval "ac_cv_func_$ac_func=yes"
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7691 eval "ac_cv_func_$ac_func=no"
7696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7697 echo "$ac_t""yes" 1>&6
7698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7699 cat >> confdefs.h <<EOF
7700 #define $ac_tr_func 1
7704 echo "$ac_t""no" 1>&6
7712 *-lsec*) for ac_func in getspnam
7714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7715 echo "configure:7716: checking for $ac_func" >&5
7716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7719 cat > conftest.$ac_ext <<EOF
7720 #line 7721 "configure"
7721 #include "confdefs.h"
7722 /* System header to define __stub macros and hopefully few prototypes,
7723 which can conflict with char $ac_func(); below. */
7725 /* Override any gcc2 internal prototype to avoid an error. */
7726 /* We use char because int might match the return type of a gcc2
7727 builtin and then its argument prototype would still apply. */
7732 /* The GNU C library defines this for functions which it implements
7733 to always fail with ENOSYS. Some functions are actually named
7734 something starting with __ and the normal name is an alias. */
7735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7745 eval "ac_cv_func_$ac_func=yes"
7747 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7750 eval "ac_cv_func_$ac_func=no"
7755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7756 echo "$ac_t""yes" 1>&6
7757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7758 cat >> confdefs.h <<EOF
7759 #define $ac_tr_func 1
7763 echo "$ac_t""no" 1>&6
7767 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7768 echo "configure:7769: checking for getspnam in -lsec" >&5
7769 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7771 echo $ac_n "(cached) $ac_c" 1>&6
7773 ac_save_LIBS="$LIBS"
7775 cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7778 /* Override any gcc2 internal prototype to avoid an error. */
7779 /* We use char because int might match the return type of a gcc2
7780 builtin and then its argument prototype would still apply. */
7787 if { (eval echo configure:7788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7789 eval "ac_cv_lib_$ac_lib_var=yes"
7791 echo "configure: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7794 eval "ac_cv_lib_$ac_lib_var=no"
7797 LIBS="$ac_save_LIBS"
7800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7801 echo "$ac_t""yes" 1>&6
7802 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7803 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7804 cat >> confdefs.h <<EOF
7805 #define $ac_tr_lib 1
7811 echo "$ac_t""no" 1>&6
7814 for ac_func in getspnam
7816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7817 echo "configure:7818: checking for $ac_func" >&5
7818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7824 /* System header to define __stub macros and hopefully few prototypes,
7825 which can conflict with char $ac_func(); below. */
7827 /* Override any gcc2 internal prototype to avoid an error. */
7828 /* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7834 /* The GNU C library defines this for functions which it implements
7835 to always fail with ENOSYS. Some functions are actually named
7836 something starting with __ and the normal name is an alias. */
7837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7845 if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7847 eval "ac_cv_func_$ac_func=yes"
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7852 eval "ac_cv_func_$ac_func=no"
7857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7858 echo "$ac_t""yes" 1>&6
7859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7860 cat >> confdefs.h <<EOF
7861 #define $ac_tr_func 1
7865 echo "$ac_t""no" 1>&6
7874 *-lsecurity*) for ac_func in bigcrypt
7876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7877 echo "configure:7878: checking for $ac_func" >&5
7878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7881 cat > conftest.$ac_ext <<EOF
7882 #line 7883 "configure"
7883 #include "confdefs.h"
7884 /* System header to define __stub macros and hopefully few prototypes,
7885 which can conflict with char $ac_func(); below. */
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 /* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7894 /* The GNU C library defines this for functions which it implements
7895 to always fail with ENOSYS. Some functions are actually named
7896 something starting with __ and the normal name is an alias. */
7897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7907 eval "ac_cv_func_$ac_func=yes"
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 eval "ac_cv_func_$ac_func=no"
7917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7918 echo "$ac_t""yes" 1>&6
7919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7920 cat >> confdefs.h <<EOF
7921 #define $ac_tr_func 1
7925 echo "$ac_t""no" 1>&6
7929 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7930 echo "configure:7931: checking for bigcrypt in -lsecurity" >&5
7931 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7935 ac_save_LIBS="$LIBS"
7936 LIBS="-lsecurity $LIBS"
7937 cat > conftest.$ac_ext <<EOF
7938 #line 7939 "configure"
7939 #include "confdefs.h"
7940 /* Override any gcc2 internal prototype to avoid an error. */
7941 /* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7949 if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7951 eval "ac_cv_lib_$ac_lib_var=yes"
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7956 eval "ac_cv_lib_$ac_lib_var=no"
7959 LIBS="$ac_save_LIBS"
7962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7963 echo "$ac_t""yes" 1>&6
7964 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7965 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7966 cat >> confdefs.h <<EOF
7967 #define $ac_tr_lib 1
7970 LIBS="-lsecurity $LIBS"
7973 echo "$ac_t""no" 1>&6
7976 for ac_func in bigcrypt
7978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7979 echo "configure:7980: checking for $ac_func" >&5
7980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* System header to define __stub macros and hopefully few prototypes,
7987 which can conflict with char $ac_func(); below. */
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7996 /* The GNU C library defines this for functions which it implements
7997 to always fail with ENOSYS. Some functions are actually named
7998 something starting with __ and the normal name is an alias. */
7999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8009 eval "ac_cv_func_$ac_func=yes"
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8014 eval "ac_cv_func_$ac_func=no"
8019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8020 echo "$ac_t""yes" 1>&6
8021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8022 cat >> confdefs.h <<EOF
8023 #define $ac_tr_func 1
8027 echo "$ac_t""no" 1>&6
8035 *-lsec*) for ac_func in bigcrypt
8037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8038 echo "configure:8039: checking for $ac_func" >&5
8039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8042 cat > conftest.$ac_ext <<EOF
8043 #line 8044 "configure"
8044 #include "confdefs.h"
8045 /* System header to define __stub macros and hopefully few prototypes,
8046 which can conflict with char $ac_func(); below. */
8048 /* Override any gcc2 internal prototype to avoid an error. */
8049 /* We use char because int might match the return type of a gcc2
8050 builtin and then its argument prototype would still apply. */
8055 /* The GNU C library defines this for functions which it implements
8056 to always fail with ENOSYS. Some functions are actually named
8057 something starting with __ and the normal name is an alias. */
8058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 eval "ac_cv_func_$ac_func=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_func_$ac_func=no"
8078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8079 echo "$ac_t""yes" 1>&6
8080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8081 cat >> confdefs.h <<EOF
8082 #define $ac_tr_func 1
8086 echo "$ac_t""no" 1>&6
8090 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8091 echo "configure:8092: checking for bigcrypt in -lsec" >&5
8092 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8096 ac_save_LIBS="$LIBS"
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 /* Override any gcc2 internal prototype to avoid an error. */
8102 /* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8110 if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8112 eval "ac_cv_lib_$ac_lib_var=yes"
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8117 eval "ac_cv_lib_$ac_lib_var=no"
8120 LIBS="$ac_save_LIBS"
8123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8124 echo "$ac_t""yes" 1>&6
8125 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8127 cat >> confdefs.h <<EOF
8128 #define $ac_tr_lib 1
8134 echo "$ac_t""no" 1>&6
8137 for ac_func in bigcrypt
8139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8140 echo "configure:8141: checking for $ac_func" >&5
8141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8144 cat > conftest.$ac_ext <<EOF
8145 #line 8146 "configure"
8146 #include "confdefs.h"
8147 /* System header to define __stub macros and hopefully few prototypes,
8148 which can conflict with char $ac_func(); below. */
8150 /* Override any gcc2 internal prototype to avoid an error. */
8151 /* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8157 /* The GNU C library defines this for functions which it implements
8158 to always fail with ENOSYS. Some functions are actually named
8159 something starting with __ and the normal name is an alias. */
8160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8168 if { (eval echo configure:8169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8170 eval "ac_cv_func_$ac_func=yes"
8172 echo "configure: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8175 eval "ac_cv_func_$ac_func=no"
8180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8181 echo "$ac_t""yes" 1>&6
8182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8183 cat >> confdefs.h <<EOF
8184 #define $ac_tr_func 1
8188 echo "$ac_t""no" 1>&6
8197 *-lsecurity*) for ac_func in getprpwnam
8199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8200 echo "configure:8201: checking for $ac_func" >&5
8201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8202 echo $ac_n "(cached) $ac_c" 1>&6
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 /* System header to define __stub macros and hopefully few prototypes,
8208 which can conflict with char $ac_func(); below. */
8210 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8217 /* The GNU C library defines this for functions which it implements
8218 to always fail with ENOSYS. Some functions are actually named
8219 something starting with __ and the normal name is an alias. */
8220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230 eval "ac_cv_func_$ac_func=yes"
8232 echo "configure: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8235 eval "ac_cv_func_$ac_func=no"
8240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8241 echo "$ac_t""yes" 1>&6
8242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8243 cat >> confdefs.h <<EOF
8244 #define $ac_tr_func 1
8248 echo "$ac_t""no" 1>&6
8252 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8253 echo "configure:8254: checking for getprpwnam in -lsecurity" >&5
8254 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8256 echo $ac_n "(cached) $ac_c" 1>&6
8258 ac_save_LIBS="$LIBS"
8259 LIBS="-lsecurity $LIBS"
8260 cat > conftest.$ac_ext <<EOF
8261 #line 8262 "configure"
8262 #include "confdefs.h"
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 /* We use char because int might match the return type of a gcc2
8265 builtin and then its argument prototype would still apply. */
8272 if { (eval echo configure:8273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8274 eval "ac_cv_lib_$ac_lib_var=yes"
8276 echo "configure: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 eval "ac_cv_lib_$ac_lib_var=no"
8282 LIBS="$ac_save_LIBS"
8285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8286 echo "$ac_t""yes" 1>&6
8287 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8288 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8289 cat >> confdefs.h <<EOF
8290 #define $ac_tr_lib 1
8293 LIBS="-lsecurity $LIBS"
8296 echo "$ac_t""no" 1>&6
8299 for ac_func in getprpwnam
8301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8302 echo "configure:8303: checking for $ac_func" >&5
8303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8306 cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 /* System header to define __stub macros and hopefully few prototypes,
8310 which can conflict with char $ac_func(); below. */
8312 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8319 /* The GNU C library defines this for functions which it implements
8320 to always fail with ENOSYS. Some functions are actually named
8321 something starting with __ and the normal name is an alias. */
8322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8330 if { (eval echo configure:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8332 eval "ac_cv_func_$ac_func=yes"
8334 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8337 eval "ac_cv_func_$ac_func=no"
8342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8343 echo "$ac_t""yes" 1>&6
8344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8345 cat >> confdefs.h <<EOF
8346 #define $ac_tr_func 1
8350 echo "$ac_t""no" 1>&6
8358 *-lsec*) for ac_func in getprpwnam
8360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8361 echo "configure:8362: checking for $ac_func" >&5
8362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8363 echo $ac_n "(cached) $ac_c" 1>&6
8365 cat > conftest.$ac_ext <<EOF
8366 #line 8367 "configure"
8367 #include "confdefs.h"
8368 /* System header to define __stub macros and hopefully few prototypes,
8369 which can conflict with char $ac_func(); below. */
8371 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8391 eval "ac_cv_func_$ac_func=yes"
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8396 eval "ac_cv_func_$ac_func=no"
8401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8402 echo "$ac_t""yes" 1>&6
8403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8404 cat >> confdefs.h <<EOF
8405 #define $ac_tr_func 1
8409 echo "$ac_t""no" 1>&6
8413 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8414 echo "configure:8415: checking for getprpwnam in -lsec" >&5
8415 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8419 ac_save_LIBS="$LIBS"
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* Override any gcc2 internal prototype to avoid an error. */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8433 if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8435 eval "ac_cv_lib_$ac_lib_var=yes"
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 eval "ac_cv_lib_$ac_lib_var=no"
8443 LIBS="$ac_save_LIBS"
8446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8447 echo "$ac_t""yes" 1>&6
8448 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8450 cat >> confdefs.h <<EOF
8451 #define $ac_tr_lib 1
8457 echo "$ac_t""no" 1>&6
8460 for ac_func in getprpwnam
8462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8463 echo "configure:8464: checking for $ac_func" >&5
8464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8465 echo $ac_n "(cached) $ac_c" 1>&6
8467 cat > conftest.$ac_ext <<EOF
8468 #line 8469 "configure"
8469 #include "confdefs.h"
8470 /* System header to define __stub macros and hopefully few prototypes,
8471 which can conflict with char $ac_func(); below. */
8473 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8480 /* The GNU C library defines this for functions which it implements
8481 to always fail with ENOSYS. Some functions are actually named
8482 something starting with __ and the normal name is an alias. */
8483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8491 if { (eval echo configure:8492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8493 eval "ac_cv_func_$ac_func=yes"
8495 echo "configure: failed program was:" >&5
8496 cat conftest.$ac_ext >&5
8498 eval "ac_cv_func_$ac_func=no"
8503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8504 echo "$ac_t""yes" 1>&6
8505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8506 cat >> confdefs.h <<EOF
8507 #define $ac_tr_func 1
8511 echo "$ac_t""no" 1>&6
8519 # this bit needs to be modified for each OS that is suported by
8520 # smbwrapper. You need to specify how to created a shared library and
8521 # how to compile C code to produce PIC object files
8523 # these are the defaults, good for lots of systems
8531 # Assume non-shared by default and override below
8533 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8534 echo "configure:8535: checking ability to build shared libraries" >&5
8536 # and these are for particular systems
8538 *linux*) cat >> confdefs.h <<\EOF
8546 *solaris*) cat >> confdefs.h <<\EOF
8551 LDSHFLAGS="-h \$@ -G"
8552 if test "${ac_cv_prog_CC}" = "gcc"; then
8560 *sunos*) cat >> confdefs.h <<\EOF
8565 LDSHFLAGS="-Wl,-h,\$@ -G"
8566 PICFLAG="-KPIC" # Is this correct for SunOS
8568 *bsd*) BLDSHARED="true"
8569 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8572 *irix*) cat >> confdefs.h <<\EOF
8577 *irix6*) cat >> confdefs.h <<\EOF
8583 ATTEMPT_WRAP32_BUILD=yes
8585 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8586 if test "${ac_cv_prog_CC}" = "gcc"; then
8592 *aix*) cat >> confdefs.h <<\EOF
8597 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8598 PICFLAG="-O2 -qmaxmem=6000"
8600 *hpux*) cat >> confdefs.h <<\EOF
8605 # Use special PIC flags for the native HP-UX compiler.
8606 if test $ac_cv_prog_cc_Ae = yes; then
8608 LDSHFLAGS="-b -z +h \$@"
8612 *qnx*) cat >> confdefs.h <<\EOF
8616 *osf*) cat >> confdefs.h <<\EOF
8621 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8624 *sco*) cat >> confdefs.h <<\EOF
8628 *unixware*) cat >> confdefs.h <<\EOF
8633 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8636 *next2*) cat >> confdefs.h <<\EOF
8640 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8641 set dummy groff; ac_word=$2
8642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8643 echo "configure:8644: checking for $ac_word" >&5
8644 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8645 echo $ac_n "(cached) $ac_c" 1>&6
8647 if test -n "$ROFF"; then
8648 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8652 for ac_dir in $ac_dummy; do
8653 test -z "$ac_dir" && ac_dir=.
8654 if test -f $ac_dir/$ac_word; then
8655 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8662 ROFF="$ac_cv_prog_ROFF"
8663 if test -n "$ROFF"; then
8664 echo "$ac_t""$ROFF" 1>&6
8666 echo "$ac_t""no" 1>&6
8671 *-univel-*) if test "$GCC" != yes ; then
8672 cat >> confdefs.h <<\EOF
8673 #define HAVE_MEMSET 1
8679 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8680 #define RELIANTUNIX 1
8686 if test "$GCC" != yes ; then
8687 cat >> confdefs.h <<\EOF
8688 #define HAVE_MEMSET 1
8695 echo "$ac_t""$BLDSHARED" 1>&6
8696 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8697 echo "configure:8698: checking linker flags for shared libraries" >&5
8698 echo "$ac_t""$LDSHFLAGS" 1>&6
8699 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8700 echo "configure:8701: checking compiler flags for position-independent code" >&5
8701 echo "$ac_t""$PICFLAGS" 1>&6
8703 #######################################################
8704 # test whether building a shared library actually works
8705 if test $BLDSHARED = true; then
8706 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
8707 echo "configure:8708: checking whether building shared libraries actually works" >&5
8708 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
8709 echo $ac_n "(cached) $ac_c" 1>&6
8712 ac_cv_shlib_works=no
8713 # try building a trivial shared library
8714 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
8715 $CC $LDSHFLAGS -o shlib.so shlib.po &&
8716 ac_cv_shlib_works=yes
8717 rm -f shlib.so shlib.po
8721 echo "$ac_t""$ac_cv_shlib_works" 1>&6
8722 if test $ac_cv_shlib_works = no; then
8728 # this updates our target list if we can build shared libs
8729 if test $BLDSHARED = true; then
8730 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8732 LIBSMBCLIENT_SHARED=
8737 echo $ac_n "checking for long long""... $ac_c" 1>&6
8738 echo "configure:8739: checking for long long" >&5
8739 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8743 if test "$cross_compiling" = yes; then
8744 samba_cv_have_longlong=cross
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8750 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8754 samba_cv_have_longlong=yes
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 samba_cv_have_longlong=no
8766 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8767 if test x"$samba_cv_have_longlong" = x"yes"; then
8768 cat >> confdefs.h <<\EOF
8769 #define HAVE_LONGLONG 1
8775 # Check if the compiler supports the LL prefix on long long integers.
8778 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8779 echo "configure:8780: checking for LL suffix on long long integers" >&5
8780 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8784 cat > conftest.$ac_ext <<EOF
8785 #line 8786 "configure"
8786 #include "confdefs.h"
8789 long long i = 0x8000000000LL
8792 if { (eval echo configure:8793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8794 samba_cv_compiler_supports_ll=yes
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8799 samba_cv_compiler_supports_ll=no
8804 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8805 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8806 cat >> confdefs.h <<\EOF
8807 #define COMPILER_SUPPORTS_LL 1
8813 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8814 echo "configure:8815: checking for 64 bit off_t" >&5
8815 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8819 if test "$cross_compiling" = yes; then
8820 samba_cv_SIZEOF_OFF_T=cross
8822 cat > conftest.$ac_ext <<EOF
8823 #line 8824 "configure"
8824 #include "confdefs.h"
8826 #include <sys/stat.h>
8827 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8829 if { (eval echo configure:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8831 samba_cv_SIZEOF_OFF_T=yes
8833 echo "configure: failed program was:" >&5
8834 cat conftest.$ac_ext >&5
8836 samba_cv_SIZEOF_OFF_T=no
8843 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8844 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8845 cat >> confdefs.h <<\EOF
8846 #define SIZEOF_OFF_T 8
8851 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8852 echo "configure:8853: checking for off64_t" >&5
8853 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8857 if test "$cross_compiling" = yes; then
8858 samba_cv_HAVE_OFF64_T=cross
8860 cat > conftest.$ac_ext <<EOF
8861 #line 8862 "configure"
8862 #include "confdefs.h"
8864 #if defined(HAVE_UNISTD_H)
8868 #include <sys/stat.h>
8869 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8873 samba_cv_HAVE_OFF64_T=yes
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 samba_cv_HAVE_OFF64_T=no
8885 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8886 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8887 cat >> confdefs.h <<\EOF
8888 #define HAVE_OFF64_T 1
8893 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8894 echo "configure:8895: checking for 64 bit ino_t" >&5
8895 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8899 if test "$cross_compiling" = yes; then
8900 samba_cv_SIZEOF_INO_T=cross
8902 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8906 #include <sys/stat.h>
8907 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8909 if { (eval echo configure:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8911 samba_cv_SIZEOF_INO_T=yes
8913 echo "configure: failed program was:" >&5
8914 cat conftest.$ac_ext >&5
8916 samba_cv_SIZEOF_INO_T=no
8923 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8924 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8925 cat >> confdefs.h <<\EOF
8926 #define SIZEOF_INO_T 8
8931 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8932 echo "configure:8933: checking for ino64_t" >&5
8933 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8937 if test "$cross_compiling" = yes; then
8938 samba_cv_HAVE_INO64_T=cross
8940 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure"
8942 #include "confdefs.h"
8944 #if defined(HAVE_UNISTD_H)
8948 #include <sys/stat.h>
8949 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8953 samba_cv_HAVE_INO64_T=yes
8955 echo "configure: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8958 samba_cv_HAVE_INO64_T=no
8965 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8966 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8967 cat >> confdefs.h <<\EOF
8968 #define HAVE_INO64_T 1
8973 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8974 echo "configure:8975: checking for struct dirent64" >&5
8975 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8976 echo $ac_n "(cached) $ac_c" 1>&6
8979 cat > conftest.$ac_ext <<EOF
8980 #line 8981 "configure"
8981 #include "confdefs.h"
8983 #if defined(HAVE_UNISTD_H)
8986 #include <sys/types.h>
8992 if { (eval echo configure:8993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8994 samba_cv_HAVE_STRUCT_DIRENT64=yes
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8999 samba_cv_HAVE_STRUCT_DIRENT64=no
9004 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9005 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9006 cat >> confdefs.h <<\EOF
9007 #define HAVE_STRUCT_DIRENT64 1
9012 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9013 echo "configure:9014: checking for unsigned char" >&5
9014 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9018 if test "$cross_compiling" = yes; then
9019 samba_cv_HAVE_UNSIGNED_CHAR=cross
9021 cat > conftest.$ac_ext <<EOF
9022 #line 9023 "configure"
9023 #include "confdefs.h"
9025 main() { char c; c=250; exit((c > 0)?0:1); }
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9029 samba_cv_HAVE_UNSIGNED_CHAR=yes
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9034 samba_cv_HAVE_UNSIGNED_CHAR=no
9041 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9042 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9043 cat >> confdefs.h <<\EOF
9044 #define HAVE_UNSIGNED_CHAR 1
9049 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9050 echo "configure:9051: checking for sin_len in sock" >&5
9051 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9058 #include <sys/types.h>
9059 #include <sys/socket.h>
9060 #include <netinet/in.h>
9062 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9065 if { (eval echo configure:9066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9067 samba_cv_HAVE_SOCK_SIN_LEN=yes
9069 echo "configure: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9072 samba_cv_HAVE_SOCK_SIN_LEN=no
9077 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9078 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9079 cat >> confdefs.h <<\EOF
9080 #define HAVE_SOCK_SIN_LEN 1
9085 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9086 echo "configure:9087: checking whether seekdir returns void" >&5
9087 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9091 cat > conftest.$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9094 #include <sys/types.h>
9096 void seekdir(DIR *d, long loc) { return; }
9101 if { (eval echo configure:9102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9103 samba_cv_SEEKDIR_RETURNS_VOID=yes
9105 echo "configure: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9108 samba_cv_SEEKDIR_RETURNS_VOID=no
9113 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9114 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9115 cat >> confdefs.h <<\EOF
9116 #define SEEKDIR_RETURNS_VOID 1
9121 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9122 echo "configure:9123: checking for __FILE__ macro" >&5
9123 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9124 echo $ac_n "(cached) $ac_c" 1>&6
9127 cat > conftest.$ac_ext <<EOF
9128 #line 9129 "configure"
9129 #include "confdefs.h"
9132 printf("%s\n", __FILE__);
9135 if { (eval echo configure:9136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9137 samba_cv_HAVE_FILE_MACRO=yes
9139 echo "configure: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9142 samba_cv_HAVE_FILE_MACRO=no
9147 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9148 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9149 cat >> confdefs.h <<\EOF
9150 #define HAVE_FILE_MACRO 1
9155 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9156 echo "configure:9157: checking for __FUNCTION__ macro" >&5
9157 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9161 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure"
9163 #include "confdefs.h"
9166 printf("%s\n", __FUNCTION__);
9169 if { (eval echo configure:9170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9171 samba_cv_HAVE_FUNCTION_MACRO=yes
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 samba_cv_HAVE_FUNCTION_MACRO=no
9181 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9182 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9183 cat >> confdefs.h <<\EOF
9184 #define HAVE_FUNCTION_MACRO 1
9189 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9190 echo "configure:9191: checking if gettimeofday takes tz argument" >&5
9191 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9192 echo $ac_n "(cached) $ac_c" 1>&6
9195 if test "$cross_compiling" = yes; then
9196 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9198 cat > conftest.$ac_ext <<EOF
9199 #line 9200 "configure"
9200 #include "confdefs.h"
9202 #include <sys/time.h>
9204 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9206 if { (eval echo configure:9207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9208 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9220 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9221 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9222 cat >> confdefs.h <<\EOF
9223 #define HAVE_GETTIMEOFDAY_TZ 1
9228 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9229 echo "configure:9230: checking for C99 vsnprintf" >&5
9230 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9231 echo $ac_n "(cached) $ac_c" 1>&6
9234 if test "$cross_compiling" = yes; then
9235 samba_cv_HAVE_C99_VSNPRINTF=cross
9237 cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure"
9239 #include "confdefs.h"
9241 #include <sys/types.h>
9243 void foo(const char *format, ...) {
9248 va_start(ap, format);
9249 len = vsnprintf(0, 0, format, ap);
9251 if (len != 5) exit(1);
9253 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9257 main() { foo("hello"); }
9260 if { (eval echo configure:9261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9262 samba_cv_HAVE_C99_VSNPRINTF=yes
9264 echo "configure: failed program was:" >&5
9265 cat conftest.$ac_ext >&5
9267 samba_cv_HAVE_C99_VSNPRINTF=no
9274 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9275 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9276 cat >> confdefs.h <<\EOF
9277 #define HAVE_C99_VSNPRINTF 1
9282 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9283 echo "configure:9284: checking for broken readdir" >&5
9284 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9285 echo $ac_n "(cached) $ac_c" 1>&6
9288 if test "$cross_compiling" = yes; then
9289 samba_cv_HAVE_BROKEN_READDIR=cross
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9294 #include <sys/types.h>
9296 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9297 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9298 di->d_name[0] == 0) exit(0); exit(1);}
9300 if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9302 samba_cv_HAVE_BROKEN_READDIR=yes
9304 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9307 samba_cv_HAVE_BROKEN_READDIR=no
9314 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9315 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9316 cat >> confdefs.h <<\EOF
9317 #define HAVE_BROKEN_READDIR 1
9322 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9323 echo "configure:9324: checking for utimbuf" >&5
9324 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9328 cat > conftest.$ac_ext <<EOF
9329 #line 9330 "configure"
9330 #include "confdefs.h"
9331 #include <sys/types.h>
9334 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9337 if { (eval echo configure:9338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9339 samba_cv_HAVE_UTIMBUF=yes
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 samba_cv_HAVE_UTIMBUF=no
9349 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9350 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9351 cat >> confdefs.h <<\EOF
9352 #define HAVE_UTIMBUF 1
9358 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9361 echo "configure:9362: checking for $ac_func" >&5
9362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368 /* System header to define __stub macros and hopefully few prototypes,
9369 which can conflict with char $ac_func(); below. */
9371 /* Override any gcc2 internal prototype to avoid an error. */
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9378 /* The GNU C library defines this for functions which it implements
9379 to always fail with ENOSYS. Some functions are actually named
9380 something starting with __ and the normal name is an alias. */
9381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9389 if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9391 eval "ac_cv_func_$ac_func=yes"
9393 echo "configure: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9396 eval "ac_cv_func_$ac_func=no"
9401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9402 echo "$ac_t""yes" 1>&6
9403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9404 cat >> confdefs.h <<EOF
9405 #define $ac_tr_func 1
9409 echo "$ac_t""no" 1>&6
9414 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9415 echo "configure:9416: checking for ut_name in utmp" >&5
9416 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9417 echo $ac_n "(cached) $ac_c" 1>&6
9420 cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423 #include <sys/types.h>
9426 struct utmp ut; ut.ut_name[0] = 'a';
9429 if { (eval echo configure:9430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9431 samba_cv_HAVE_UT_UT_NAME=yes
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9436 samba_cv_HAVE_UT_UT_NAME=no
9441 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9442 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9443 cat >> confdefs.h <<\EOF
9444 #define HAVE_UT_UT_NAME 1
9449 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9450 echo "configure:9451: checking for ut_user in utmp" >&5
9451 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 #include <sys/types.h>
9461 struct utmp ut; ut.ut_user[0] = 'a';
9464 if { (eval echo configure:9465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9466 samba_cv_HAVE_UT_UT_USER=yes
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9471 samba_cv_HAVE_UT_UT_USER=no
9476 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9477 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9478 cat >> confdefs.h <<\EOF
9479 #define HAVE_UT_UT_USER 1
9484 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9485 echo "configure:9486: checking for ut_id in utmp" >&5
9486 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9493 #include <sys/types.h>
9496 struct utmp ut; ut.ut_id[0] = 'a';
9499 if { (eval echo configure:9500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9501 samba_cv_HAVE_UT_UT_ID=yes
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9506 samba_cv_HAVE_UT_UT_ID=no
9511 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9512 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9513 cat >> confdefs.h <<\EOF
9514 #define HAVE_UT_UT_ID 1
9519 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9520 echo "configure:9521: checking for ut_host in utmp" >&5
9521 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
9525 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9528 #include <sys/types.h>
9531 struct utmp ut; ut.ut_host[0] = 'a';
9534 if { (eval echo configure:9535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9536 samba_cv_HAVE_UT_UT_HOST=yes
9538 echo "configure: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
9541 samba_cv_HAVE_UT_UT_HOST=no
9546 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9547 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9548 cat >> confdefs.h <<\EOF
9549 #define HAVE_UT_UT_HOST 1
9554 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9555 echo "configure:9556: checking for ut_time in utmp" >&5
9556 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9557 echo $ac_n "(cached) $ac_c" 1>&6
9560 cat > conftest.$ac_ext <<EOF
9561 #line 9562 "configure"
9562 #include "confdefs.h"
9563 #include <sys/types.h>
9566 struct utmp ut; time_t t; ut.ut_time = t;
9569 if { (eval echo configure:9570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9571 samba_cv_HAVE_UT_UT_TIME=yes
9573 echo "configure: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9576 samba_cv_HAVE_UT_UT_TIME=no
9581 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9582 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9583 cat >> confdefs.h <<\EOF
9584 #define HAVE_UT_UT_TIME 1
9589 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9590 echo "configure:9591: checking for ut_tv in utmp" >&5
9591 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 #include <sys/types.h>
9601 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9604 if { (eval echo configure:9605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9606 samba_cv_HAVE_UT_UT_TV=yes
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9611 samba_cv_HAVE_UT_UT_TV=no
9616 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9617 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9618 cat >> confdefs.h <<\EOF
9619 #define HAVE_UT_UT_TV 1
9624 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9625 echo "configure:9626: checking for ut_type in utmp" >&5
9626 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9630 cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 #include <sys/types.h>
9636 struct utmp ut; ut.ut_type = 0;
9639 if { (eval echo configure:9640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9641 samba_cv_HAVE_UT_UT_TYPE=yes
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9646 samba_cv_HAVE_UT_UT_TYPE=no
9651 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9652 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9653 cat >> confdefs.h <<\EOF
9654 #define HAVE_UT_UT_TYPE 1
9659 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9660 echo "configure:9661: checking for ut_pid in utmp" >&5
9661 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 #include <sys/types.h>
9671 struct utmp ut; ut.ut_pid = 0;
9674 if { (eval echo configure:9675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9676 samba_cv_HAVE_UT_UT_PID=yes
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 samba_cv_HAVE_UT_UT_PID=no
9686 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9687 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9688 cat >> confdefs.h <<\EOF
9689 #define HAVE_UT_UT_PID 1
9694 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9695 echo "configure:9696: checking for ut_exit in utmp" >&5
9696 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9700 cat > conftest.$ac_ext <<EOF
9701 #line 9702 "configure"
9702 #include "confdefs.h"
9703 #include <sys/types.h>
9706 struct utmp ut; ut.ut_exit.e_exit = 0;
9709 if { (eval echo configure:9710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9711 samba_cv_HAVE_UT_UT_EXIT=yes
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9716 samba_cv_HAVE_UT_UT_EXIT=no
9721 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9722 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9723 cat >> confdefs.h <<\EOF
9724 #define HAVE_UT_UT_EXIT 1
9729 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9730 echo "configure:9731: checking for ut_addr in utmp" >&5
9731 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9735 cat > conftest.$ac_ext <<EOF
9736 #line 9737 "configure"
9737 #include "confdefs.h"
9738 #include <sys/types.h>
9741 struct utmp ut; ut.ut_addr = 0;
9744 if { (eval echo configure:9745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9746 samba_cv_HAVE_UT_UT_ADDR=yes
9748 echo "configure: failed program was:" >&5
9749 cat conftest.$ac_ext >&5
9751 samba_cv_HAVE_UT_UT_ADDR=no
9756 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9757 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9758 cat >> confdefs.h <<\EOF
9759 #define HAVE_UT_UT_ADDR 1
9764 if test x$ac_cv_func_pututline = xyes ; then
9765 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9766 echo "configure:9767: checking whether pututline returns pointer" >&5
9767 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9768 echo $ac_n "(cached) $ac_c" 1>&6
9771 cat > conftest.$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9774 #include <sys/types.h>
9777 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9780 if { (eval echo configure:9781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9782 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9784 echo "configure: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9787 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9792 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9793 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9794 cat >> confdefs.h <<\EOF
9795 #define PUTUTLINE_RETURNS_UTMP 1
9801 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9802 echo "configure:9803: checking for ut_syslen in utmpx" >&5
9803 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9810 #include <sys/types.h>
9813 struct utmpx ux; ux.ut_syslen = 0;
9816 if { (eval echo configure:9817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9818 samba_cv_HAVE_UX_UT_SYSLEN=yes
9820 echo "configure: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9823 samba_cv_HAVE_UX_UT_SYSLEN=no
9828 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9829 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9830 cat >> confdefs.h <<\EOF
9831 #define HAVE_UX_UT_SYSLEN 1
9837 #################################################
9838 # check for libiconv support
9839 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9840 echo "configure:9841: checking whether to use libiconv" >&5
9841 # Check whether --with-libiconv or --without-libiconv was given.
9842 if test "${with_libiconv+set}" = set; then
9843 withval="$with_libiconv"
9846 echo "$ac_t""no" 1>&6
9849 echo "$ac_t""yes" 1>&6
9850 CFLAGS="$CFLAGS -I$withval/include"
9851 LDFLAGS="$LDFLAGS -L$withval/lib"
9852 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9853 echo "configure:9854: checking for iconv_open in -liconv" >&5
9854 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
9858 ac_save_LIBS="$LIBS"
9859 LIBS="-liconv $LIBS"
9860 cat > conftest.$ac_ext <<EOF
9861 #line 9862 "configure"
9862 #include "confdefs.h"
9863 /* Override any gcc2 internal prototype to avoid an error. */
9864 /* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9872 if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9874 eval "ac_cv_lib_$ac_lib_var=yes"
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9879 eval "ac_cv_lib_$ac_lib_var=no"
9882 LIBS="$ac_save_LIBS"
9885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9886 echo "$ac_t""yes" 1>&6
9887 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9889 cat >> confdefs.h <<EOF
9890 #define $ac_tr_lib 1
9893 LIBS="-liconv $LIBS"
9896 echo "$ac_t""no" 1>&6
9899 cat >> confdefs.h <<EOF
9900 #define WITH_LIBICONV "${withval}"
9906 echo "$ac_t""no" 1>&6
9913 # check for iconv in libc
9914 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9915 echo "configure:9916: checking for working iconv" >&5
9916 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9917 echo $ac_n "(cached) $ac_c" 1>&6
9920 if test "$cross_compiling" = yes; then
9921 samba_cv_HAVE_NATIVE_ICONV=cross
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9929 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9930 if (cd == 0 || cd == (iconv_t)-1) return -1;
9935 if { (eval echo configure:9936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9937 samba_cv_HAVE_NATIVE_ICONV=yes
9939 echo "configure: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9942 samba_cv_HAVE_NATIVE_ICONV=no
9949 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9950 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9951 cat >> confdefs.h <<\EOF
9952 #define HAVE_NATIVE_ICONV 1
9958 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9959 echo "configure:9960: checking for Linux kernel oplocks" >&5
9960 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9964 if test "$cross_compiling" = yes; then
9965 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9967 cat > conftest.$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9971 #include <sys/types.h>
9974 #define F_GETLEASE 1025
9977 int fd = open("/dev/null", O_RDONLY);
9978 return fcntl(fd, F_GETLEASE, 0) == -1;
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9984 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9996 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9997 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9998 cat >> confdefs.h <<\EOF
9999 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10004 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10005 echo "configure:10006: checking for kernel change notify support" >&5
10006 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10007 echo $ac_n "(cached) $ac_c" 1>&6
10010 if test "$cross_compiling" = yes; then
10011 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10013 cat > conftest.$ac_ext <<EOF
10014 #line 10015 "configure"
10015 #include "confdefs.h"
10017 #include <sys/types.h>
10019 #include <signal.h>
10021 #define F_NOTIFY 1026
10024 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10028 if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10030 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10032 echo "configure: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10035 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10042 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10043 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10044 cat >> confdefs.h <<\EOF
10045 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10050 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10051 echo "configure:10052: checking for kernel share modes" >&5
10052 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10056 if test "$cross_compiling" = yes; then
10057 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10063 #include <sys/types.h>
10065 #include <signal.h>
10066 #include <sys/file.h>
10068 #define LOCK_MAND 32
10069 #define LOCK_READ 64
10072 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10076 if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10078 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10080 echo "configure: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10083 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10090 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10091 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10092 cat >> confdefs.h <<\EOF
10093 #define HAVE_KERNEL_SHARE_MODES 1
10101 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10102 echo "configure:10103: checking for IRIX kernel oplock type definitions" >&5
10103 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10104 echo $ac_n "(cached) $ac_c" 1>&6
10107 cat > conftest.$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 #include <sys/types.h>
10113 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10116 if { (eval echo configure:10117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10118 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10120 echo "configure: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10123 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10128 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10129 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10136 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10137 echo "configure:10138: checking for irix specific capabilities" >&5
10138 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10142 if test "$cross_compiling" = yes; then
10143 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10145 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure"
10147 #include "confdefs.h"
10148 #include <sys/types.h>
10149 #include <sys/capability.h>
10152 if ((cap = cap_get_proc()) == NULL)
10154 cap->cap_effective |= CAP_NETWORK_MGT;
10155 cap->cap_inheritable |= CAP_NETWORK_MGT;
10161 if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10163 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10168 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10175 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10176 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10184 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10185 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10188 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10189 echo "configure:10190: checking for int16 typedef included by rpc/rpc.h" >&5
10190 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 #include <sys/types.h>
10198 #if defined(HAVE_RPC_RPC_H)
10199 #include <rpc/rpc.h>
10205 if { (eval echo configure:10206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10207 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10209 echo "configure: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10212 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10217 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10218 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10219 cat >> confdefs.h <<\EOF
10220 #define HAVE_INT16_FROM_RPC_RPC_H 1
10225 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10226 echo "configure:10227: checking for uint16 typedef included by rpc/rpc.h" >&5
10227 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10228 echo $ac_n "(cached) $ac_c" 1>&6
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 #include <sys/types.h>
10235 #if defined(HAVE_RPC_RPC_H)
10236 #include <rpc/rpc.h>
10242 if { (eval echo configure:10243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10244 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10249 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10254 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10255 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10256 cat >> confdefs.h <<\EOF
10257 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10262 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10263 echo "configure:10264: checking for int32 typedef included by rpc/rpc.h" >&5
10264 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10265 echo $ac_n "(cached) $ac_c" 1>&6
10268 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure"
10270 #include "confdefs.h"
10271 #include <sys/types.h>
10272 #if defined(HAVE_RPC_RPC_H)
10273 #include <rpc/rpc.h>
10279 if { (eval echo configure:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10281 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10286 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10291 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10292 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10293 cat >> confdefs.h <<\EOF
10294 #define HAVE_INT32_FROM_RPC_RPC_H 1
10299 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10300 echo "configure:10301: checking for uint32 typedef included by rpc/rpc.h" >&5
10301 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <sys/types.h>
10309 #if defined(HAVE_RPC_RPC_H)
10310 #include <rpc/rpc.h>
10316 if { (eval echo configure:10317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10318 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10320 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10323 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10328 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10329 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10337 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10338 echo "configure:10339: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10339 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 #include <sys/types.h>
10347 #ifdef HAVE_SYS_SECURITY_H
10348 #include <sys/security.h>
10350 #endif /* HAVE_SYS_SECURITY_H */
10351 #if defined(HAVE_RPC_RPC_H)
10352 #include <rpc/rpc.h>
10358 if { (eval echo configure:10359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10360 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10365 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10370 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10371 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10372 cat >> confdefs.h <<\EOF
10373 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10378 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10379 echo "configure:10380: checking for test routines" >&5
10380 if test "$cross_compiling" = yes; then
10381 echo "configure: warning: cannot run when cross-compiling" 1>&2
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 #include "${srcdir-.}/tests/trivial.c"
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10390 echo "$ac_t""yes" 1>&6
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10395 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10401 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10402 echo "configure:10403: checking for ftruncate extend" >&5
10403 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10407 if test "$cross_compiling" = yes; then
10408 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 #include "${srcdir-.}/tests/ftruncate.c"
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10417 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10429 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10430 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_FTRUNCATE_EXTEND 1
10437 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10438 echo "configure:10439: checking for AF_LOCAL socket support" >&5
10439 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10443 if test "$cross_compiling" = yes; then
10444 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10446 cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10449 #include "${srcdir-.}/tests/unixsock.c"
10451 if { (eval echo configure:10452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10453 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10455 echo "configure: failed program was:" >&5
10456 cat conftest.$ac_ext >&5
10458 samba_cv_HAVE_WORKING_AF_LOCAL=no
10465 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10466 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10468 cat >> confdefs.h <<\EOF
10469 #define HAVE_WORKING_AF_LOCAL 1
10474 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10475 echo "configure:10476: checking for broken getgroups" >&5
10476 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10480 if test "$cross_compiling" = yes; then
10481 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10483 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 #include "${srcdir-.}/tests/getgroups.c"
10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10490 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10495 samba_cv_HAVE_BROKEN_GETGROUPS=no
10502 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10503 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10504 cat >> confdefs.h <<\EOF
10505 #define HAVE_BROKEN_GETGROUPS 1
10510 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10511 echo "configure:10512: checking whether getpass should be replaced" >&5
10512 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10516 SAVE_CPPFLAGS="$CPPFLAGS"
10517 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10522 #define REPLACE_GETPASS 1
10523 #define NO_CONFIG_H 1
10524 #define main dont_declare_main
10525 #include "${srcdir-.}/lib/getsmbpass.c"
10532 if { (eval echo configure:10533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10534 samba_cv_REPLACE_GETPASS=yes
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10539 samba_cv_REPLACE_GETPASS=no
10542 CPPFLAGS="$SAVE_CPPFLAGS"
10546 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10547 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10548 cat >> confdefs.h <<\EOF
10549 #define REPLACE_GETPASS 1
10554 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10555 echo "configure:10556: checking for broken inet_ntoa" >&5
10556 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
10560 if test "$cross_compiling" = yes; then
10561 samba_cv_REPLACE_INET_NTOA=cross
10563 cat > conftest.$ac_ext <<EOF
10564 #line 10565 "configure"
10565 #include "confdefs.h"
10568 #include <sys/types.h>
10569 #include <netinet/in.h>
10570 #ifdef HAVE_ARPA_INET_H
10571 #include <arpa/inet.h>
10573 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10574 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10575 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10580 samba_cv_REPLACE_INET_NTOA=yes
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10585 samba_cv_REPLACE_INET_NTOA=no
10592 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10593 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10594 cat >> confdefs.h <<\EOF
10595 #define REPLACE_INET_NTOA 1
10600 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10601 echo "configure:10602: checking for secure mkstemp" >&5
10602 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10603 echo $ac_n "(cached) $ac_c" 1>&6
10606 if test "$cross_compiling" = yes; then
10607 samba_cv_HAVE_SECURE_MKSTEMP=cross
10609 cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10612 #include <stdlib.h>
10613 #include <sys/types.h>
10614 #include <sys/stat.h>
10615 #include <unistd.h>
10618 char tpl[20]="/tmp/test.XXXXXX";
10619 int fd = mkstemp(tpl);
10620 if (fd == -1) exit(1);
10622 if (fstat(fd, &st) != 0) exit(1);
10623 if ((st.st_mode & 0777) != 0600) exit(1);
10627 if { (eval echo configure:10628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10629 samba_cv_HAVE_SECURE_MKSTEMP=yes
10631 echo "configure: failed program was:" >&5
10632 cat conftest.$ac_ext >&5
10634 samba_cv_HAVE_SECURE_MKSTEMP=no
10641 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10642 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10643 cat >> confdefs.h <<\EOF
10644 #define HAVE_SECURE_MKSTEMP 1
10649 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10650 echo "configure:10651: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10651 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10655 if test "$cross_compiling" = yes; then
10656 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10658 cat > conftest.$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10661 #include <unistd.h>
10662 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10664 if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10666 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10668 echo "configure: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10671 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10678 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10679 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10680 cat >> confdefs.h <<\EOF
10681 #define SYSCONF_SC_NGROUPS_MAX 1
10686 echo $ac_n "checking for root""... $ac_c" 1>&6
10687 echo "configure:10688: checking for root" >&5
10688 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10692 if test "$cross_compiling" = yes; then
10693 samba_cv_HAVE_ROOT=cross
10695 cat > conftest.$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10698 main() { exit(getuid() != 0); }
10700 if { (eval echo configure:10701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10702 samba_cv_HAVE_ROOT=yes
10704 echo "configure: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10707 samba_cv_HAVE_ROOT=no
10714 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10715 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10716 cat >> confdefs.h <<\EOF
10717 #define HAVE_ROOT 1
10721 echo "configure: warning: running as non-root will disable some tests" 1>&2
10725 # look for a method of finding the list of network interfaces
10727 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10728 echo "configure:10729: checking for iface AIX" >&5
10729 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10730 echo $ac_n "(cached) $ac_c" 1>&6
10733 if test "$cross_compiling" = yes; then
10734 samba_cv_HAVE_IFACE_AIX=cross
10736 cat > conftest.$ac_ext <<EOF
10737 #line 10738 "configure"
10738 #include "confdefs.h"
10740 #define HAVE_IFACE_AIX 1
10741 #define AUTOCONF_TEST 1
10742 #include "confdefs.h"
10743 #include "${srcdir-.}/lib/interfaces.c"
10745 if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10747 samba_cv_HAVE_IFACE_AIX=yes
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10752 samba_cv_HAVE_IFACE_AIX=no
10759 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10760 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10761 iface=yes;cat >> confdefs.h <<\EOF
10762 #define HAVE_IFACE_AIX 1
10767 if test $iface = no; then
10768 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10769 echo "configure:10770: checking for iface ifconf" >&5
10770 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10771 echo $ac_n "(cached) $ac_c" 1>&6
10774 if test "$cross_compiling" = yes; then
10775 samba_cv_HAVE_IFACE_IFCONF=cross
10777 cat > conftest.$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10781 #define HAVE_IFACE_IFCONF 1
10782 #define AUTOCONF_TEST 1
10783 #include "confdefs.h"
10784 #include "${srcdir-.}/lib/interfaces.c"
10786 if { (eval echo configure:10787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10788 samba_cv_HAVE_IFACE_IFCONF=yes
10790 echo "configure: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10793 samba_cv_HAVE_IFACE_IFCONF=no
10800 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10801 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10802 iface=yes;cat >> confdefs.h <<\EOF
10803 #define HAVE_IFACE_IFCONF 1
10809 if test $iface = no; then
10810 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10811 echo "configure:10812: checking for iface ifreq" >&5
10812 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10813 echo $ac_n "(cached) $ac_c" 1>&6
10816 if test "$cross_compiling" = yes; then
10817 samba_cv_HAVE_IFACE_IFREQ=cross
10819 cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10823 #define HAVE_IFACE_IFREQ 1
10824 #define AUTOCONF_TEST 1
10825 #include "confdefs.h"
10826 #include "${srcdir-.}/lib/interfaces.c"
10828 if { (eval echo configure:10829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10830 samba_cv_HAVE_IFACE_IFREQ=yes
10832 echo "configure: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10835 samba_cv_HAVE_IFACE_IFREQ=no
10842 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10843 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10844 iface=yes;cat >> confdefs.h <<\EOF
10845 #define HAVE_IFACE_IFREQ 1
10852 ################################################
10853 # look for a method of setting the effective uid
10855 if test $seteuid = no; then
10856 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10857 echo "configure:10858: checking for setresuid" >&5
10858 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10859 echo $ac_n "(cached) $ac_c" 1>&6
10862 if test "$cross_compiling" = yes; then
10863 samba_cv_USE_SETRESUID=cross
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10869 #define AUTOCONF_TEST 1
10870 #define USE_SETRESUID 1
10871 #include "confdefs.h"
10872 #include "${srcdir-.}/lib/util_sec.c"
10874 if { (eval echo configure:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10876 samba_cv_USE_SETRESUID=yes
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10881 samba_cv_USE_SETRESUID=no
10888 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10889 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10890 seteuid=yes;cat >> confdefs.h <<\EOF
10891 #define USE_SETRESUID 1
10898 if test $seteuid = no; then
10899 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10900 echo "configure:10901: checking for setreuid" >&5
10901 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10905 if test "$cross_compiling" = yes; then
10906 samba_cv_USE_SETREUID=cross
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10912 #define AUTOCONF_TEST 1
10913 #define USE_SETREUID 1
10914 #include "confdefs.h"
10915 #include "${srcdir-.}/lib/util_sec.c"
10917 if { (eval echo configure:10918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10919 samba_cv_USE_SETREUID=yes
10921 echo "configure: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10924 samba_cv_USE_SETREUID=no
10931 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10932 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10933 seteuid=yes;cat >> confdefs.h <<\EOF
10934 #define USE_SETREUID 1
10940 if test $seteuid = no; then
10941 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10942 echo "configure:10943: checking for seteuid" >&5
10943 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10944 echo $ac_n "(cached) $ac_c" 1>&6
10947 if test "$cross_compiling" = yes; then
10948 samba_cv_USE_SETEUID=cross
10950 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10954 #define AUTOCONF_TEST 1
10955 #define USE_SETEUID 1
10956 #include "confdefs.h"
10957 #include "${srcdir-.}/lib/util_sec.c"
10959 if { (eval echo configure:10960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10961 samba_cv_USE_SETEUID=yes
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10966 samba_cv_USE_SETEUID=no
10973 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10974 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10975 seteuid=yes;cat >> confdefs.h <<\EOF
10976 #define USE_SETEUID 1
10982 if test $seteuid = no; then
10983 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10984 echo "configure:10985: checking for setuidx" >&5
10985 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10989 if test "$cross_compiling" = yes; then
10990 samba_cv_USE_SETUIDX=cross
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10996 #define AUTOCONF_TEST 1
10997 #define USE_SETUIDX 1
10998 #include "confdefs.h"
10999 #include "${srcdir-.}/lib/util_sec.c"
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11003 samba_cv_USE_SETUIDX=yes
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11008 samba_cv_USE_SETUIDX=no
11015 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11016 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11017 seteuid=yes;cat >> confdefs.h <<\EOF
11018 #define USE_SETUIDX 1
11025 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11026 echo "configure:11027: checking for working mmap" >&5
11027 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11031 if test "$cross_compiling" = yes; then
11032 samba_cv_HAVE_MMAP=cross
11034 cat > conftest.$ac_ext <<EOF
11035 #line 11036 "configure"
11036 #include "confdefs.h"
11037 #include "${srcdir-.}/tests/shared_mmap.c"
11039 if { (eval echo configure:11040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11041 samba_cv_HAVE_MMAP=yes
11043 echo "configure: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11046 samba_cv_HAVE_MMAP=no
11053 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11054 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11055 cat >> confdefs.h <<\EOF
11056 #define HAVE_MMAP 1
11061 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11062 echo "configure:11063: checking for ftruncate needs root" >&5
11063 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11064 echo $ac_n "(cached) $ac_c" 1>&6
11067 if test "$cross_compiling" = yes; then
11068 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure"
11072 #include "confdefs.h"
11073 #include "${srcdir-.}/tests/ftruncroot.c"
11075 if { (eval echo configure:11076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11077 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11079 echo "configure: failed program was:" >&5
11080 cat conftest.$ac_ext >&5
11082 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11089 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11090 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11091 cat >> confdefs.h <<\EOF
11092 #define FTRUNCATE_NEEDS_ROOT 1
11097 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11098 echo "configure:11099: checking for fcntl locking" >&5
11099 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11103 if test "$cross_compiling" = yes; then
11104 samba_cv_HAVE_FCNTL_LOCK=cross
11106 cat > conftest.$ac_ext <<EOF
11107 #line 11108 "configure"
11108 #include "confdefs.h"
11109 #include "${srcdir-.}/tests/fcntl_lock.c"
11111 if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11113 samba_cv_HAVE_FCNTL_LOCK=yes
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11118 samba_cv_HAVE_FCNTL_LOCK=no
11125 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11126 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11127 cat >> confdefs.h <<\EOF
11128 #define HAVE_FCNTL_LOCK 1
11133 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11134 echo "configure:11135: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11135 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11139 if test "$cross_compiling" = yes; then
11140 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11142 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145 #include "${srcdir-.}/tests/fcntl_lock64.c"
11147 if { (eval echo configure:11148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11149 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11151 echo "configure: failed program was:" >&5
11152 cat conftest.$ac_ext >&5
11154 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11161 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11162 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11163 cat >> confdefs.h <<\EOF
11164 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11171 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11172 echo "configure:11173: checking for 64 bit fcntl locking" >&5
11173 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11177 if test "$cross_compiling" = yes; then
11178 samba_cv_HAVE_STRUCT_FLOCK64=cross
11180 cat > conftest.$ac_ext <<EOF
11181 #line 11182 "configure"
11182 #include "confdefs.h"
11184 #if defined(HAVE_UNISTD_H)
11185 #include <unistd.h>
11188 #include <stdlib.h>
11190 #ifdef HAVE_FCNTL_H
11194 #ifdef HAVE_SYS_FCNTL_H
11195 #include <sys/fcntl.h>
11197 main() { struct flock64 fl64;
11198 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11205 if { (eval echo configure:11206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11207 samba_cv_HAVE_STRUCT_FLOCK64=yes
11209 echo "configure: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11212 samba_cv_HAVE_STRUCT_FLOCK64=no
11219 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11221 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11222 cat >> confdefs.h <<\EOF
11223 #define HAVE_STRUCT_FLOCK64 1
11232 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11233 echo "configure:11234: checking for broken RedHat 7.2 system header files" >&5
11234 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11235 echo $ac_n "(cached) $ac_c" 1>&6
11238 cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11242 #ifdef HAVE_SYS_VFS_H
11243 #include <sys/vfs.h>
11245 #ifdef HAVE_SYS_CAPABILITY_H
11246 #include <sys/capability.h>
11253 if { (eval echo configure:11254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11255 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11257 echo "configure: failed program was:" >&5
11258 cat conftest.$ac_ext >&5
11260 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11265 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11266 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11267 cat >> confdefs.h <<\EOF
11268 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11275 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11276 echo "configure:11277: checking for broken nisplus include files" >&5
11277 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11278 echo $ac_n "(cached) $ac_c" 1>&6
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 #include <sys/acl.h>
11285 #if defined(HAVE_RPCSVC_NIS_H)
11286 #include <rpcsvc/nis.h>
11292 if { (eval echo configure:11293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11294 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11296 echo "configure: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11299 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11304 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11305 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11306 cat >> confdefs.h <<\EOF
11307 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11313 #################################################
11314 # check for smbwrapper support
11315 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11316 echo "configure:11317: checking whether to use smbwrapper" >&5
11317 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11318 if test "${with_smbwrapper+set}" = set; then
11319 withval="$with_smbwrapper"
11322 echo "$ac_t""yes" 1>&6
11323 cat >> confdefs.h <<\EOF
11324 #define WITH_SMBWRAPPER 1
11327 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11329 if test x$ATTEMPT_WRAP32_BUILD = x; then
11332 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11335 # Conditions under which smbwrapper should not be built.
11337 if test x$PICFLAG = x; then
11338 echo No support for PIC code - disabling smbwrapper and smbsh
11341 elif test x$ac_cv_func_syscall = xno; then
11342 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11348 echo "$ac_t""no" 1>&6
11352 echo "$ac_t""no" 1>&6
11357 #################################################
11358 # check for AFS clear-text auth support
11359 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11360 echo "configure:11361: checking whether to use AFS clear-text auth" >&5
11361 # Check whether --with-afs or --without-afs was given.
11362 if test "${with_afs+set}" = set; then
11363 withval="$with_afs"
11366 echo "$ac_t""yes" 1>&6
11367 cat >> confdefs.h <<\EOF
11373 echo "$ac_t""no" 1>&6
11377 echo "$ac_t""no" 1>&6
11383 #################################################
11384 # check for the DFS clear-text auth system
11385 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11386 echo "configure:11387: checking whether to use DFS clear-text auth" >&5
11387 # Check whether --with-dfs or --without-dfs was given.
11388 if test "${with_dfs+set}" = set; then
11389 withval="$with_dfs"
11392 echo "$ac_t""yes" 1>&6
11393 cat >> confdefs.h <<\EOF
11399 echo "$ac_t""no" 1>&6
11403 echo "$ac_t""no" 1>&6
11409 #################################################
11410 # see if this box has the RedHat location for kerberos
11411 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11412 echo "configure:11413: checking for /usr/kerberos" >&5
11413 if test -d /usr/kerberos; then
11414 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11415 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11416 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11417 echo "$ac_t""yes" 1>&6
11419 echo "$ac_t""no" 1>&6
11422 #################################################
11423 # check for location of Kerberos 5 install
11424 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11425 echo "configure:11426: checking for kerberos 5 install path" >&5
11426 # Check whether --with-krb5 or --without-krb5 was given.
11427 if test "${with_krb5+set}" = set; then
11428 withval="$with_krb5"
11431 echo "$ac_t""no" 1>&6
11434 echo "$ac_t""yes" 1>&6
11435 LIBS="$LIBS -lkrb5"
11436 CFLAGS="$CFLAGS -I$withval/include"
11437 CPPFLAGS="$CPPFLAGS -I$withval/include"
11438 LDFLAGS="$LDFLAGS -L$withval/lib"
11442 echo "$ac_t""no" 1>&6
11447 # now check for krb5.h. Some systems have the libraries without the headers!
11448 # note that this check is done here to allow for different kerberos
11450 for ac_hdr in krb5.h
11452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11454 echo "configure:11455: checking for $ac_hdr" >&5
11455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11456 echo $ac_n "(cached) $ac_c" 1>&6
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11464 { (eval echo configure:11465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11466 if test -z "$ac_err"; then
11468 eval "ac_cv_header_$ac_safe=yes"
11471 echo "configure: failed program was:" >&5
11472 cat conftest.$ac_ext >&5
11474 eval "ac_cv_header_$ac_safe=no"
11478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11479 echo "$ac_t""yes" 1>&6
11480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11481 cat >> confdefs.h <<EOF
11482 #define $ac_tr_hdr 1
11486 echo "$ac_t""no" 1>&6
11491 # now check for gssapi headers. This is also done here to allow for
11492 # different kerberos include paths
11493 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
11495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11497 echo "configure:11498: checking for $ac_hdr" >&5
11498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11499 echo $ac_n "(cached) $ac_c" 1>&6
11501 cat > conftest.$ac_ext <<EOF
11502 #line 11503 "configure"
11503 #include "confdefs.h"
11506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11507 { (eval echo configure:11508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11509 if test -z "$ac_err"; then
11511 eval "ac_cv_header_$ac_safe=yes"
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11517 eval "ac_cv_header_$ac_safe=no"
11521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11522 echo "$ac_t""yes" 1>&6
11523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11524 cat >> confdefs.h <<EOF
11525 #define $ac_tr_hdr 1
11529 echo "$ac_t""no" 1>&6
11534 ##################################################################
11535 # we might need the k5crypto and com_err libraries on some systems
11536 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11537 echo "configure:11538: checking for _et_list in -lcom_err" >&5
11538 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11542 ac_save_LIBS="$LIBS"
11543 LIBS="-lcom_err $LIBS"
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 /* Override any gcc2 internal prototype to avoid an error. */
11548 /* We use char because int might match the return type of a gcc2
11549 builtin and then its argument prototype would still apply. */
11556 if { (eval echo configure:11557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11558 eval "ac_cv_lib_$ac_lib_var=yes"
11560 echo "configure: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11563 eval "ac_cv_lib_$ac_lib_var=no"
11566 LIBS="$ac_save_LIBS"
11569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11570 echo "$ac_t""yes" 1>&6
11571 LIBS="$LIBS -lcom_err"
11573 echo "$ac_t""no" 1>&6
11576 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11577 echo "configure:11578: checking for krb5_encrypt_data in -lk5crypto" >&5
11578 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11580 echo $ac_n "(cached) $ac_c" 1>&6
11582 ac_save_LIBS="$LIBS"
11583 LIBS="-lk5crypto $LIBS"
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11587 /* Override any gcc2 internal prototype to avoid an error. */
11588 /* We use char because int might match the return type of a gcc2
11589 builtin and then its argument prototype would still apply. */
11590 char krb5_encrypt_data();
11593 krb5_encrypt_data()
11596 if { (eval echo configure:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11598 eval "ac_cv_lib_$ac_lib_var=yes"
11600 echo "configure: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11603 eval "ac_cv_lib_$ac_lib_var=no"
11606 LIBS="$ac_save_LIBS"
11609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11610 echo "$ac_t""yes" 1>&6
11611 LIBS="$LIBS -lk5crypto"
11613 echo "$ac_t""no" 1>&6
11616 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11617 echo "configure:11618: checking for gss_display_status in -lgssapi_krb5" >&5
11618 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11620 echo $ac_n "(cached) $ac_c" 1>&6
11622 ac_save_LIBS="$LIBS"
11623 LIBS="-lgssapi_krb5 $LIBS"
11624 cat > conftest.$ac_ext <<EOF
11625 #line 11626 "configure"
11626 #include "confdefs.h"
11627 /* Override any gcc2 internal prototype to avoid an error. */
11628 /* We use char because int might match the return type of a gcc2
11629 builtin and then its argument prototype would still apply. */
11630 char gss_display_status();
11633 gss_display_status()
11636 if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11638 eval "ac_cv_lib_$ac_lib_var=yes"
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11643 eval "ac_cv_lib_$ac_lib_var=no"
11646 LIBS="$ac_save_LIBS"
11649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11650 echo "$ac_t""yes" 1>&6
11651 LIBS="$LIBS -lgssapi_krb5"
11653 echo "$ac_t""no" 1>&6
11658 ########################################################
11659 # now see if we can find the krb5 libs in standard paths
11660 # or as specified above
11661 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11662 echo "configure:11663: checking for krb5_mk_req_extended in -lkrb5" >&5
11663 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
11667 ac_save_LIBS="$LIBS"
11668 LIBS="-lkrb5 $LIBS"
11669 cat > conftest.$ac_ext <<EOF
11670 #line 11671 "configure"
11671 #include "confdefs.h"
11672 /* Override any gcc2 internal prototype to avoid an error. */
11673 /* We use char because int might match the return type of a gcc2
11674 builtin and then its argument prototype would still apply. */
11675 char krb5_mk_req_extended();
11678 krb5_mk_req_extended()
11681 if { (eval echo configure:11682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11683 eval "ac_cv_lib_$ac_lib_var=yes"
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11688 eval "ac_cv_lib_$ac_lib_var=no"
11691 LIBS="$ac_save_LIBS"
11694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11695 echo "$ac_t""yes" 1>&6
11696 LIBS="$LIBS -lkrb5";
11697 cat >> confdefs.h <<\EOF
11698 #define HAVE_KRB5 1
11702 echo "$ac_t""no" 1>&6
11706 ########################################################
11707 # now see if we can find the gssapi libs in standard paths
11708 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11709 echo "configure:11710: checking for gss_display_status in -lgssapi_krb5" >&5
11710 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11712 echo $ac_n "(cached) $ac_c" 1>&6
11714 ac_save_LIBS="$LIBS"
11715 LIBS="-lgssapi_krb5 $LIBS"
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11719 /* Override any gcc2 internal prototype to avoid an error. */
11720 /* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11722 char gss_display_status();
11725 gss_display_status()
11728 if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11730 eval "ac_cv_lib_$ac_lib_var=yes"
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11735 eval "ac_cv_lib_$ac_lib_var=no"
11738 LIBS="$ac_save_LIBS"
11741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11742 echo "$ac_t""yes" 1>&6
11743 cat >> confdefs.h <<\EOF
11744 #define HAVE_GSSAPI 1
11748 echo "$ac_t""no" 1>&6
11753 ##################################################################
11754 # we might need the lber lib on some systems. To avoid link errors
11755 # this test must be before the libldap test
11756 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11757 echo "configure:11758: checking for ber_scanf in -llber" >&5
11758 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11760 echo $ac_n "(cached) $ac_c" 1>&6
11762 ac_save_LIBS="$LIBS"
11763 LIBS="-llber $LIBS"
11764 cat > conftest.$ac_ext <<EOF
11765 #line 11766 "configure"
11766 #include "confdefs.h"
11767 /* Override any gcc2 internal prototype to avoid an error. */
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11778 eval "ac_cv_lib_$ac_lib_var=yes"
11780 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11783 eval "ac_cv_lib_$ac_lib_var=no"
11786 LIBS="$ac_save_LIBS"
11789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11790 echo "$ac_t""yes" 1>&6
11791 LIBS="$LIBS -llber"
11793 echo "$ac_t""no" 1>&6
11797 ########################################################
11798 # now see if we can find the ldap libs in standard paths
11799 if test x$have_ldap != xyes; then
11800 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
11801 echo "configure:11802: checking for ldap_domain2hostlist in -lldap" >&5
11802 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
11803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11804 echo $ac_n "(cached) $ac_c" 1>&6
11806 ac_save_LIBS="$LIBS"
11807 LIBS="-lldap $LIBS"
11808 cat > conftest.$ac_ext <<EOF
11809 #line 11810 "configure"
11810 #include "confdefs.h"
11811 /* Override any gcc2 internal prototype to avoid an error. */
11812 /* We use char because int might match the return type of a gcc2
11813 builtin and then its argument prototype would still apply. */
11814 char ldap_domain2hostlist();
11817 ldap_domain2hostlist()
11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11822 eval "ac_cv_lib_$ac_lib_var=yes"
11824 echo "configure: failed program was:" >&5
11825 cat conftest.$ac_ext >&5
11827 eval "ac_cv_lib_$ac_lib_var=no"
11830 LIBS="$ac_save_LIBS"
11833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11834 echo "$ac_t""yes" 1>&6
11835 LIBS="$LIBS -lldap";
11836 cat >> confdefs.h <<\EOF
11837 #define HAVE_LDAP 1
11841 echo "$ac_t""no" 1>&6
11846 #################################################
11847 # check for automount support
11848 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11849 echo "configure:11850: checking whether to use AUTOMOUNT" >&5
11850 # Check whether --with-automount or --without-automount was given.
11851 if test "${with_automount+set}" = set; then
11852 withval="$with_automount"
11855 echo "$ac_t""yes" 1>&6
11856 cat >> confdefs.h <<\EOF
11857 #define WITH_AUTOMOUNT 1
11862 echo "$ac_t""no" 1>&6
11866 echo "$ac_t""no" 1>&6
11871 #################################################
11872 # check for smbmount support
11873 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11874 echo "configure:11875: checking whether to use SMBMOUNT" >&5
11875 # Check whether --with-smbmount or --without-smbmount was given.
11876 if test "${with_smbmount+set}" = set; then
11877 withval="$with_smbmount"
11882 echo "$ac_t""yes" 1>&6
11883 cat >> confdefs.h <<\EOF
11884 #define WITH_SMBMOUNT 1
11887 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11890 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11895 echo "$ac_t""no" 1>&6
11900 echo "$ac_t""no" 1>&6
11907 #################################################
11908 # check for a PAM clear-text auth, accounts, password and session support
11909 with_pam_for_crypt=no
11910 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
11911 echo "configure:11912: checking whether to use PAM" >&5
11912 # Check whether --with-pam or --without-pam was given.
11913 if test "${with_pam+set}" = set; then
11914 withval="$with_pam"
11917 echo "$ac_t""yes" 1>&6
11918 cat >> confdefs.h <<\EOF
11923 with_pam_for_crypt=yes
11926 echo "$ac_t""no" 1>&6
11930 echo "$ac_t""no" 1>&6
11935 # we can't build a pam module if we don't have pam.
11936 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11937 echo "configure:11938: checking for pam_get_data in -lpam" >&5
11938 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11942 ac_save_LIBS="$LIBS"
11944 cat > conftest.$ac_ext <<EOF
11945 #line 11946 "configure"
11946 #include "confdefs.h"
11947 /* Override any gcc2 internal prototype to avoid an error. */
11948 /* We use char because int might match the return type of a gcc2
11949 builtin and then its argument prototype would still apply. */
11950 char pam_get_data();
11956 if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11958 eval "ac_cv_lib_$ac_lib_var=yes"
11960 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11963 eval "ac_cv_lib_$ac_lib_var=no"
11966 LIBS="$ac_save_LIBS"
11969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11970 echo "$ac_t""yes" 1>&6
11971 cat >> confdefs.h <<\EOF
11972 #define HAVE_LIBPAM 1
11976 echo "$ac_t""no" 1>&6
11980 #################################################
11981 # check for pam_smbpass support
11982 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11983 echo "configure:11984: checking whether to use pam_smbpass" >&5
11984 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11985 if test "${with_pam_smbpass+set}" = set; then
11986 withval="$with_pam_smbpass"
11989 echo "$ac_t""yes" 1>&6
11991 # Conditions under which pam_smbpass should not be built.
11993 if test x$PICFLAG = x; then
11994 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11996 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11997 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12000 PAM_MOD="bin/pam_smbpass.so"
12004 echo "$ac_t""no" 1>&6
12008 echo "$ac_t""no" 1>&6
12014 ###############################################
12015 # test for where we get crypt() from, but only
12017 if test $with_pam_for_crypt = no; then
12018 for ac_func in crypt
12020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12021 echo "configure:12022: checking for $ac_func" >&5
12022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12025 cat > conftest.$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12028 /* System header to define __stub macros and hopefully few prototypes,
12029 which can conflict with char $ac_func(); below. */
12030 #include <assert.h>
12031 /* Override any gcc2 internal prototype to avoid an error. */
12032 /* We use char because int might match the return type of a gcc2
12033 builtin and then its argument prototype would still apply. */
12038 /* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
12041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12049 if { (eval echo configure:12050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12051 eval "ac_cv_func_$ac_func=yes"
12053 echo "configure: failed program was:" >&5
12054 cat conftest.$ac_ext >&5
12056 eval "ac_cv_func_$ac_func=no"
12061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12062 echo "$ac_t""yes" 1>&6
12063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12064 cat >> confdefs.h <<EOF
12065 #define $ac_tr_func 1
12069 echo "$ac_t""no" 1>&6
12073 if test x"$ac_cv_func_crypt" = x"no"; then
12074 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12075 echo "configure:12076: checking for crypt in -lcrypt" >&5
12076 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12078 echo $ac_n "(cached) $ac_c" 1>&6
12080 ac_save_LIBS="$LIBS"
12081 LIBS="-lcrypt $LIBS"
12082 cat > conftest.$ac_ext <<EOF
12083 #line 12084 "configure"
12084 #include "confdefs.h"
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12094 if { (eval echo configure:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12096 eval "ac_cv_lib_$ac_lib_var=yes"
12098 echo "configure: failed program was:" >&5
12099 cat conftest.$ac_ext >&5
12101 eval "ac_cv_lib_$ac_lib_var=no"
12104 LIBS="$ac_save_LIBS"
12107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12108 echo "$ac_t""yes" 1>&6
12109 LIBS="$LIBS -lcrypt";
12110 cat >> confdefs.h <<\EOF
12111 #define HAVE_CRYPT 1
12115 echo "$ac_t""no" 1>&6
12122 ## moved after the check for -lcrypt in order to
12123 ## ensure that the necessary libraries are included
12124 ## check checking for truncated salt. Wrapped by the
12125 ## $with_pam_for_crypt variable as above --jerry
12127 if test $with_pam_for_crypt = no; then
12128 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12129 echo "configure:12130: checking for a crypt that needs truncated salt" >&5
12130 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12131 echo $ac_n "(cached) $ac_c" 1>&6
12134 if test "$cross_compiling" = yes; then
12135 samba_cv_HAVE_TRUNCATED_SALT=cross
12137 cat > conftest.$ac_ext <<EOF
12138 #line 12139 "configure"
12139 #include "confdefs.h"
12140 #include "${srcdir-.}/tests/crypttest.c"
12142 if { (eval echo configure:12143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12144 samba_cv_HAVE_TRUNCATED_SALT=no
12146 echo "configure: failed program was:" >&5
12147 cat conftest.$ac_ext >&5
12149 samba_cv_HAVE_TRUNCATED_SALT=yes
12156 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12157 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12158 cat >> confdefs.h <<\EOF
12159 #define HAVE_TRUNCATED_SALT 1
12167 ########################################################################################
12169 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12171 ########################################################################################
12173 ## set the with_smbpasswd_sam as the default
12174 with_smbpasswd_sam=yes
12177 #################################################
12178 # check for a TDB password database
12179 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12180 echo "configure:12181: checking whether to use TDB SAM database" >&5
12181 # Check whether --with-tdbsam or --without-tdbsam was given.
12182 if test "${with_tdbsam+set}" = set; then
12183 withval="$with_tdbsam"
12186 echo "$ac_t""yes" 1>&6
12187 cat >> confdefs.h <<\EOF
12188 #define WITH_TDB_SAM 1
12191 with_smbpasswd_sam=no
12194 echo "$ac_t""no" 1>&6
12198 echo "$ac_t""no" 1>&6
12203 #################################################
12204 # check for a LDAP password database
12205 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12206 echo "configure:12207: checking whether to use LDAP SAM database" >&5
12207 # Check whether --with-ldapsam or --without-ldapsam was given.
12208 if test "${with_ldapsam+set}" = set; then
12209 withval="$with_ldapsam"
12212 echo "$ac_t""yes" 1>&6
12213 cat >> confdefs.h <<\EOF
12214 #define WITH_LDAP_SAM 1
12217 LIBS="-lldap -llber $LIBS"
12218 with_smbpasswd_sam=no
12221 echo "$ac_t""no" 1>&6
12225 echo "$ac_t""no" 1>&6
12230 #################################################
12231 # check for a NISPLUS password database
12232 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12233 echo "configure:12234: checking whether to use NISPLUS SAM database" >&5
12234 # Check whether --with-nisplussam or --without-nisplussam was given.
12235 if test "${with_nisplussam+set}" = set; then
12236 withval="$with_nisplussam"
12239 echo "$ac_t""yes" 1>&6
12240 cat >> confdefs.h <<\EOF
12241 #define WITH_NISPLUS_SAM 1
12244 with_smbpasswd_sam=no
12247 echo "$ac_t""no" 1>&6
12251 echo "$ac_t""no" 1>&6
12256 ################################################
12257 # This test should come last because the
12258 # smbpasswd SAM is only used if another format
12259 # has not been defined
12260 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12261 echo "configure:12262: checking whether to use traditional smbpasswd file" >&5
12262 if test $with_smbpasswd_sam = yes; then
12263 echo "$ac_t""yes" 1>&6
12264 cat >> confdefs.h <<\EOF
12265 #define WITH_SMBPASSWD_SAM 1
12269 echo "$ac_t""no" 1>&6
12272 ########################################################################################
12274 ## END OF TESTS FOR SAM BACKENDS.
12276 ########################################################################################
12278 #################################################
12279 # check for a NISPLUS_HOME support
12280 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12281 echo "configure:12282: checking whether to use NISPLUS_HOME" >&5
12282 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12283 if test "${with_nisplus_home+set}" = set; then
12284 withval="$with_nisplus_home"
12287 echo "$ac_t""yes" 1>&6
12288 cat >> confdefs.h <<\EOF
12289 #define WITH_NISPLUS_HOME 1
12294 echo "$ac_t""no" 1>&6
12298 echo "$ac_t""no" 1>&6
12303 #################################################
12304 # check for the secure socket layer
12305 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12306 echo "configure:12307: checking whether to use SSL" >&5
12307 # Check whether --with-ssl or --without-ssl was given.
12308 if test "${with_ssl+set}" = set; then
12309 withval="$with_ssl"
12312 echo "$ac_t""yes" 1>&6
12313 cat >> confdefs.h <<\EOF
12317 withval="/usr/local/ssl" # default
12319 if test "${with_sslinc+set}" = set; then
12321 withval="$with_sslinc"
12324 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12325 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12328 CFLAGS="-I${withval} $CFLAGS"
12334 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12338 if test "${with_ssllib+set}" = set; then
12340 withval="$with_ssllib"
12343 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12344 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12347 LDFLAGS="-L${withval}/lib $LDFLAGS"
12353 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12357 LIBS="-lssl -lcrypto $LIBS"
12359 # if test ! -d ${withval}; then
12360 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12364 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12368 echo "$ac_t""no" 1>&6
12372 echo "$ac_t""no" 1>&6
12377 #################################################
12378 # check for syslog logging
12379 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12380 echo "configure:12381: checking whether to use syslog logging" >&5
12381 # Check whether --with-syslog or --without-syslog was given.
12382 if test "${with_syslog+set}" = set; then
12383 withval="$with_syslog"
12386 echo "$ac_t""yes" 1>&6
12387 cat >> confdefs.h <<\EOF
12388 #define WITH_SYSLOG 1
12393 echo "$ac_t""no" 1>&6
12397 echo "$ac_t""no" 1>&6
12402 #################################################
12403 # check for a shared memory profiling support
12404 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12405 echo "configure:12406: checking whether to use profiling" >&5
12406 # Check whether --with-profiling-data or --without-profiling-data was given.
12407 if test "${with_profiling_data+set}" = set; then
12408 withval="$with_profiling_data"
12411 echo "$ac_t""yes" 1>&6
12412 cat >> confdefs.h <<\EOF
12413 #define WITH_PROFILE 1
12418 echo "$ac_t""no" 1>&6
12422 echo "$ac_t""no" 1>&6
12428 #################################################
12429 # check for experimental disk-quotas support
12430 QUOTAOBJS=smbd/noquotas.o
12432 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12433 echo "configure:12434: checking whether to support disk-quotas" >&5
12434 # Check whether --with-quotas or --without-quotas was given.
12435 if test "${with_quotas+set}" = set; then
12436 withval="$with_quotas"
12439 echo "$ac_t""yes" 1>&6
12442 # Check for kernel 2.4.x quota braindamage...
12443 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12444 echo "configure:12445: checking for linux 2.4.x quota braindamage.." >&5
12445 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12449 cat > conftest.$ac_ext <<EOF
12450 #line 12451 "configure"
12451 #include "confdefs.h"
12453 #include <sys/types.h>
12454 #include <asm/types.h>
12455 #include <linux/quota.h>
12456 #include <mntent.h>
12457 #include <linux/unistd.h>
12459 struct mem_dqblk D;
12462 if { (eval echo configure:12463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12464 samba_cv_linux_2_4_quota_braindamage=yes
12466 echo "configure: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12469 samba_cv_linux_2_4_quota_braindamage=no
12474 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12475 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12476 cat >> confdefs.h <<\EOF
12477 #define LINUX_QUOTAS_2 1
12481 cat >> confdefs.h <<\EOF
12482 #define LINUX_QUOTAS_1 1
12490 QUOTAOBJS=smbd/quotas.o
12491 cat >> confdefs.h <<\EOF
12492 #define WITH_QUOTAS 1
12497 echo "$ac_t""no" 1>&6
12501 echo "$ac_t""no" 1>&6
12507 #################################################
12508 # check for experimental utmp accounting
12510 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12511 echo "configure:12512: checking whether to support utmp accounting" >&5
12512 # Check whether --with-utmp or --without-utmp was given.
12513 if test "${with_utmp+set}" = set; then
12514 withval="$with_utmp"
12517 echo "$ac_t""yes" 1>&6
12518 cat >> confdefs.h <<\EOF
12519 #define WITH_UTMP 1
12524 echo "$ac_t""no" 1>&6
12528 echo "$ac_t""no" 1>&6
12533 #################################################
12534 # set private directory location
12535 # Check whether --with-privatedir or --without-privatedir was given.
12536 if test "${with_privatedir+set}" = set; then
12537 withval="$with_privatedir"
12541 # Just in case anybody calls it without argument
12543 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12544 privatedir='${prefix}/private'
12547 privatedir="$withval"
12552 privatedir='${prefix}/private'
12558 #################################################
12559 # set lock directory location
12560 # Check whether --with-lockdir or --without-lockdir was given.
12561 if test "${with_lockdir+set}" = set; then
12562 withval="$with_lockdir"
12566 # Just in case anybody calls it without argument
12568 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12569 lockdir='$(VARDIR)/locks'
12577 lockdir='$(VARDIR)/locks'
12583 #################################################
12584 # set SWAT directory location
12585 # Check whether --with-swatdir or --without-swatdir was given.
12586 if test "${with_swatdir+set}" = set; then
12587 withval="$with_swatdir"
12591 # Just in case anybody does it
12593 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12594 swatdir='${prefix}/swat'
12602 swatdir='${prefix}/swat'
12608 #################################################
12609 # choose native language(s) of man pages
12610 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12611 echo "configure:12612: checking chosen man pages' language(s)" >&5
12612 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12613 if test "${with_manpages_langs+set}" = set; then
12614 withval="$with_manpages_langs"
12617 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12621 manlangs="$withval"
12625 echo "$ac_t""$manlangs" 1>&6
12626 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12630 echo "$ac_t""$manlangs" 1>&6
12636 #################################################
12637 # these tests are taken from the GNU fileutils package
12638 echo "checking how to get filesystem space usage" 1>&6
12639 echo "configure:12640: checking how to get filesystem space usage" >&5
12642 # Test for statvfs64.
12643 if test $space = no; then
12645 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12646 echo "configure:12647: checking statvfs64 function (SVR4)" >&5
12647 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12650 if test "$cross_compiling" = yes; then
12651 fu_cv_sys_stat_statvfs64=cross
12653 cat > conftest.$ac_ext <<EOF
12654 #line 12655 "configure"
12655 #include "confdefs.h"
12657 #if defined(HAVE_UNISTD_H)
12658 #include <unistd.h>
12660 #include <sys/types.h>
12661 #include <sys/statvfs.h>
12664 struct statvfs64 fsd;
12665 exit (statvfs64 (".", &fsd));
12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12670 fu_cv_sys_stat_statvfs64=yes
12672 echo "configure: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12675 fu_cv_sys_stat_statvfs64=no
12682 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12683 if test $fu_cv_sys_stat_statvfs64 = yes; then
12685 cat >> confdefs.h <<\EOF
12686 #define STAT_STATVFS64 1
12692 # Perform only the link test since it seems there are no variants of the
12693 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12694 # because that got a false positive on SCO OSR5. Adding the declaration
12695 # of a `struct statvfs' causes this test to fail (as it should) on such
12696 # systems. That system is reported to work fine with STAT_STATFS4 which
12697 # is what it gets when this test fails.
12698 if test $space = no; then
12700 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12701 echo "configure:12702: checking statvfs function (SVR4)" >&5
12702 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12705 cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 #include <sys/types.h>
12709 #include <sys/statvfs.h>
12711 struct statvfs fsd; statvfs (0, &fsd);
12714 if { (eval echo configure:12715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12716 fu_cv_sys_stat_statvfs=yes
12718 echo "configure: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12721 fu_cv_sys_stat_statvfs=no
12726 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12727 if test $fu_cv_sys_stat_statvfs = yes; then
12729 cat >> confdefs.h <<\EOF
12730 #define STAT_STATVFS 1
12736 if test $space = no; then
12737 # DEC Alpha running OSF/1
12738 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12739 echo "configure:12740: checking for 3-argument statfs function (DEC OSF/1)" >&5
12740 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12741 echo $ac_n "(cached) $ac_c" 1>&6
12743 if test "$cross_compiling" = yes; then
12744 fu_cv_sys_stat_statfs3_osf1=no
12746 cat > conftest.$ac_ext <<EOF
12747 #line 12748 "configure"
12748 #include "confdefs.h"
12750 #include <sys/param.h>
12751 #include <sys/types.h>
12752 #include <sys/mount.h>
12757 exit (statfs (".", &fsd, sizeof (struct statfs)));
12760 if { (eval echo configure:12761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12762 fu_cv_sys_stat_statfs3_osf1=yes
12764 echo "configure: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12767 fu_cv_sys_stat_statfs3_osf1=no
12774 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12775 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12777 cat >> confdefs.h <<\EOF
12778 #define STAT_STATFS3_OSF1 1
12784 if test $space = no; then
12786 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12787 echo "configure:12788: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12788 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12789 echo $ac_n "(cached) $ac_c" 1>&6
12791 if test "$cross_compiling" = yes; then
12792 fu_cv_sys_stat_statfs2_bsize=no
12794 cat > conftest.$ac_ext <<EOF
12795 #line 12796 "configure"
12796 #include "confdefs.h"
12798 #ifdef HAVE_SYS_PARAM_H
12799 #include <sys/param.h>
12801 #ifdef HAVE_SYS_MOUNT_H
12802 #include <sys/mount.h>
12804 #ifdef HAVE_SYS_VFS_H
12805 #include <sys/vfs.h>
12811 exit (statfs (".", &fsd));
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12816 fu_cv_sys_stat_statfs2_bsize=yes
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12821 fu_cv_sys_stat_statfs2_bsize=no
12828 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12829 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12831 cat >> confdefs.h <<\EOF
12832 #define STAT_STATFS2_BSIZE 1
12838 if test $space = no; then
12840 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12841 echo "configure:12842: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12842 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12843 echo $ac_n "(cached) $ac_c" 1>&6
12845 if test "$cross_compiling" = yes; then
12846 fu_cv_sys_stat_statfs4=no
12848 cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 #include <sys/types.h>
12852 #include <sys/statfs.h>
12856 exit (statfs (".", &fsd, sizeof fsd, 0));
12859 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12861 fu_cv_sys_stat_statfs4=yes
12863 echo "configure: failed program was:" >&5
12864 cat conftest.$ac_ext >&5
12866 fu_cv_sys_stat_statfs4=no
12873 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12874 if test $fu_cv_sys_stat_statfs4 = yes; then
12876 cat >> confdefs.h <<\EOF
12877 #define STAT_STATFS4 1
12883 if test $space = no; then
12884 # 4.4BSD and NetBSD
12885 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12886 echo "configure:12887: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12887 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12888 echo $ac_n "(cached) $ac_c" 1>&6
12890 if test "$cross_compiling" = yes; then
12891 fu_cv_sys_stat_statfs2_fsize=no
12893 cat > conftest.$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12896 #include <sys/types.h>
12897 #ifdef HAVE_SYS_PARAM_H
12898 #include <sys/param.h>
12900 #ifdef HAVE_SYS_MOUNT_H
12901 #include <sys/mount.h>
12907 exit (statfs (".", &fsd));
12910 if { (eval echo configure:12911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12912 fu_cv_sys_stat_statfs2_fsize=yes
12914 echo "configure: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12917 fu_cv_sys_stat_statfs2_fsize=no
12924 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12925 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12927 cat >> confdefs.h <<\EOF
12928 #define STAT_STATFS2_FSIZE 1
12934 if test $space = no; then
12936 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12937 echo "configure:12938: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12938 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12939 echo $ac_n "(cached) $ac_c" 1>&6
12941 if test "$cross_compiling" = yes; then
12942 fu_cv_sys_stat_fs_data=no
12944 cat > conftest.$ac_ext <<EOF
12945 #line 12946 "configure"
12946 #include "confdefs.h"
12947 #include <sys/types.h>
12948 #ifdef HAVE_SYS_PARAM_H
12949 #include <sys/param.h>
12951 #ifdef HAVE_SYS_MOUNT_H
12952 #include <sys/mount.h>
12954 #ifdef HAVE_SYS_FS_TYPES_H
12955 #include <sys/fs_types.h>
12959 struct fs_data fsd;
12960 /* Ultrix's statfs returns 1 for success,
12961 0 for not mounted, -1 for failure. */
12962 exit (statfs (".", &fsd) != 1);
12965 if { (eval echo configure:12966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12967 fu_cv_sys_stat_fs_data=yes
12969 echo "configure: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12972 fu_cv_sys_stat_fs_data=no
12979 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12980 if test $fu_cv_sys_stat_fs_data = yes; then
12982 cat >> confdefs.h <<\EOF
12983 #define STAT_STATFS2_FS_DATA 1
12990 # As a gating factor for large file support, in order to
12991 # use <4GB files we must have the following minimal support
12993 # long long, and a 64 bit off_t or off64_t.
12994 # If we don't have all of these then disable large
12997 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12998 echo "configure:12999: checking if large file support can be enabled" >&5
12999 cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13003 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13004 #include <sys/types.h>
13013 if { (eval echo configure:13014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13015 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13017 echo "configure: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13020 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13023 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13024 cat >> confdefs.h <<\EOF
13025 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13029 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13031 # Check whether --with-spinlocks or --without-spinlocks was given.
13032 if test "${with_spinlocks+set}" = set; then
13033 withval="$with_spinlocks"
13037 if test "x$with_spinlocks" = "xyes"; then
13038 cat >> confdefs.h <<\EOF
13039 #define USE_SPINLOCKS 1
13043 case "$host_cpu" in
13045 cat >> confdefs.h <<\EOF
13046 #define SPARC_SPINLOCKS 1
13051 i386|i486|i586|i686)
13052 cat >> confdefs.h <<\EOF
13053 #define INTEL_SPINLOCKS 1
13059 cat >> confdefs.h <<\EOF
13060 #define MIPS_SPINLOCKS 1
13066 cat >> confdefs.h <<\EOF
13067 #define POWERPC_SPINLOCKS 1
13074 #################################################
13075 # check for ACL support
13077 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13078 echo "configure:13079: checking whether to support ACLs" >&5
13079 # Check whether --with-acl-support or --without-acl-support was given.
13080 if test "${with_acl_support+set}" = set; then
13081 withval="$with_acl_support"
13087 echo "$ac_t""Using UnixWare ACLs" 1>&6
13088 cat >> confdefs.h <<\EOF
13089 #define HAVE_UNIXWARE_ACLS 1
13094 echo "$ac_t""Using solaris ACLs" 1>&6
13095 cat >> confdefs.h <<\EOF
13096 #define HAVE_SOLARIS_ACLS 1
13101 echo "$ac_t""Using HPUX ACLs" 1>&6
13102 cat >> confdefs.h <<\EOF
13103 #define HAVE_HPUX_ACLS 1
13108 echo "$ac_t""Using IRIX ACLs" 1>&6
13109 cat >> confdefs.h <<\EOF
13110 #define HAVE_IRIX_ACLS 1
13115 echo "$ac_t""Using AIX ACLs" 1>&6
13116 cat >> confdefs.h <<\EOF
13117 #define HAVE_AIX_ACLS 1
13122 echo "$ac_t""Using Tru64 ACLs" 1>&6
13123 cat >> confdefs.h <<\EOF
13124 #define HAVE_TRU64_ACLS 1
13127 LIBS="$LIBS -lpacl"
13130 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13131 echo "configure:13132: checking for acl_get_file in -lacl" >&5
13132 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13134 echo $ac_n "(cached) $ac_c" 1>&6
13136 ac_save_LIBS="$LIBS"
13138 cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure"
13140 #include "confdefs.h"
13141 /* Override any gcc2 internal prototype to avoid an error. */
13142 /* We use char because int might match the return type of a gcc2
13143 builtin and then its argument prototype would still apply. */
13144 char acl_get_file();
13150 if { (eval echo configure:13151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13152 eval "ac_cv_lib_$ac_lib_var=yes"
13154 echo "configure: failed program was:" >&5
13155 cat conftest.$ac_ext >&5
13157 eval "ac_cv_lib_$ac_lib_var=no"
13160 LIBS="$ac_save_LIBS"
13163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13164 echo "$ac_t""yes" 1>&6
13165 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13166 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13167 cat >> confdefs.h <<EOF
13168 #define $ac_tr_lib 1
13174 echo "$ac_t""no" 1>&6
13177 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13178 echo "configure:13179: checking for ACL support" >&5
13179 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13180 echo $ac_n "(cached) $ac_c" 1>&6
13183 cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13186 #include <sys/types.h>
13187 #include <sys/acl.h>
13189 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13192 if { (eval echo configure:13193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13194 samba_cv_HAVE_POSIX_ACLS=yes
13196 echo "configure: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13199 samba_cv_HAVE_POSIX_ACLS=no
13204 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13205 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13206 echo "$ac_t""Using posix ACLs" 1>&6
13207 cat >> confdefs.h <<\EOF
13208 #define HAVE_POSIX_ACLS 1
13211 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13212 echo "configure:13213: checking for acl_get_perm_np" >&5
13213 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13214 echo $ac_n "(cached) $ac_c" 1>&6
13217 cat > conftest.$ac_ext <<EOF
13218 #line 13219 "configure"
13219 #include "confdefs.h"
13220 #include <sys/types.h>
13221 #include <sys/acl.h>
13223 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13226 if { (eval echo configure:13227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13228 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13230 echo "configure: failed program was:" >&5
13231 cat conftest.$ac_ext >&5
13233 samba_cv_HAVE_ACL_GET_PERM_NP=no
13238 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13239 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13240 cat >> confdefs.h <<\EOF
13241 #define HAVE_ACL_GET_PERM_NP 1
13250 echo "$ac_t""no" 1>&6
13251 cat >> confdefs.h <<\EOF
13252 #define HAVE_NO_ACLS 1
13258 cat >> confdefs.h <<\EOF
13259 #define HAVE_NO_ACLS 1
13262 echo "$ac_t""no" 1>&6
13267 #################################################
13268 # Check whether winbind is supported on this platform. If so we need to
13269 # build and install client programs (WINBIND_TARGETS), sbin programs
13270 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13272 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13273 echo "configure:13274: checking whether to build winbind" >&5
13275 # Initially, the value of $host_os decides whether winbind is supported
13278 *linux*|*solaris*|*irix*)
13283 winbind_no_reason=", unsupported on $host_os"
13287 # Check the setting of --with-winbindd
13289 # Check whether --with-winbind or --without-winbind was given.
13290 if test "${with_winbind+set}" = set; then
13291 withval="$with_winbind"
13305 # We need unix domain sockets for winbind
13307 if test x"$HAVE_WINBIND" = x"yes"; then
13308 if test x"$samba_cv_unixsocket" = x"no"; then
13309 winbind_no_reason=", no unix domain socket support on $host_os"
13314 # Display test results
13316 if test x"$HAVE_WINBIND" = x"yes"; then
13318 echo "$ac_t""yes" 1>&6
13320 WINBIND_TARGETS="bin/wbinfo"
13321 WINBIND_STARGETS="bin/winbindd"
13322 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13323 case "$with_pam" in
13325 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13329 echo "$ac_t""no$winbind_no_reason" 1>&6
13332 WINBIND_STARGETS=""
13333 WINBIND_LTARGETS=""
13334 WINBIND_PAM_PROGS=""
13337 # Substitution time!
13344 #################################################
13345 # Check to see if we should use the included popt
13347 # Check whether --with-included-popt or --without-included-popt was given.
13348 if test "${with_included_popt+set}" = set; then
13349 withval="$with_included_popt"
13361 if test x"$INCLUDED_POPT" != x"yes"; then
13362 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13363 echo "configure:13364: checking for poptGetContext in -lpopt" >&5
13364 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13366 echo $ac_n "(cached) $ac_c" 1>&6
13368 ac_save_LIBS="$LIBS"
13369 LIBS="-lpopt $LIBS"
13370 cat > conftest.$ac_ext <<EOF
13371 #line 13372 "configure"
13372 #include "confdefs.h"
13373 /* Override any gcc2 internal prototype to avoid an error. */
13374 /* We use char because int might match the return type of a gcc2
13375 builtin and then its argument prototype would still apply. */
13376 char poptGetContext();
13382 if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13384 eval "ac_cv_lib_$ac_lib_var=yes"
13386 echo "configure: failed program was:" >&5
13387 cat conftest.$ac_ext >&5
13389 eval "ac_cv_lib_$ac_lib_var=no"
13392 LIBS="$ac_save_LIBS"
13395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13396 echo "$ac_t""yes" 1>&6
13399 echo "$ac_t""no" 1>&6
13405 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13406 echo "configure:13407: checking whether to use included popt" >&5
13407 if test x"$INCLUDED_POPT" = x"yes"; then
13408 echo "$ac_t""$srcdir/popt" 1>&6
13409 BUILD_POPT='$(POPT_OBJS)'
13410 FLAGS1="-I$srcdir/popt"
13412 echo "$ac_t""no" 1>&6
13413 LIBS="$LIBS -lpopt"
13418 #################################################
13419 # final configure stuff
13421 echo "checking configure summary"
13422 if test "$cross_compiling" = yes; then
13425 cat > conftest.$ac_ext <<EOF
13426 #line 13427 "configure"
13427 #include "confdefs.h"
13428 #include "${srcdir-.}/tests/summary.c"
13430 if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13432 echo "configure OK";
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13437 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13447 cat > confcache <<\EOF
13448 # This file is a shell script that caches the results of configure
13449 # tests run on this system so they can be shared between configure
13450 # scripts and configure runs. It is not useful on other systems.
13451 # If it contains results you don't want to keep, you may remove or edit it.
13453 # By default, configure uses ./config.cache as the cache file,
13454 # creating it if it does not exist already. You can give configure
13455 # the --cache-file=FILE option to use a different cache file; that is
13456 # what configure does when it calls configure scripts in
13457 # subdirectories, so they share the cache.
13458 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13459 # config.status only pays attention to the cache file if you give it the
13460 # --recheck option to rerun configure.
13463 # The following way of writing the cache mishandles newlines in values,
13464 # but we know of no workaround that is simple, portable, and efficient.
13465 # So, don't put newlines in cache variables' values.
13466 # Ultrix sh set writes to stderr and can't be redirected directly,
13467 # and sets the high bit in the cache file unless we assign to the vars.
13469 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13471 # `set' does not quote correctly, so add quotes (double-quote substitution
13472 # turns \\\\ into \\, and sed turns \\ into \).
13474 -e "s/'/'\\\\''/g" \
13475 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13478 # `set' quotes correctly as required by POSIX, so do not add quotes.
13479 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13482 if cmp -s $cache_file confcache; then
13485 if test -w $cache_file; then
13486 echo "updating cache $cache_file"
13487 cat confcache > $cache_file
13489 echo "not updating unwritable cache $cache_file"
13494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13497 # Let make expand exec_prefix.
13498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13500 # Any assignment to VPATH causes Sun make to only execute
13501 # the first set of double-colon rules, so remove it if not needed.
13502 # If there is a colon in the path, we need to keep it.
13503 if test "x$srcdir" = x.; then
13504 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13507 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13509 DEFS=-DHAVE_CONFIG_H
13511 # Without the "./", some shells look in PATH for config.status.
13512 : ${CONFIG_STATUS=./config.status}
13514 echo creating $CONFIG_STATUS
13515 rm -f $CONFIG_STATUS
13516 cat > $CONFIG_STATUS <<EOF
13518 # Generated automatically by configure.
13519 # Run this file to recreate the current configuration.
13520 # This directory was configured as follows,
13521 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13523 # $0 $ac_configure_args
13525 # Compiler output produced by configure, useful for debugging
13526 # configure, is in ./config.log if it exists.
13528 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13531 case "\$ac_option" in
13532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13533 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13534 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13535 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13536 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13538 -help | --help | --hel | --he | --h)
13539 echo "\$ac_cs_usage"; exit 0 ;;
13540 *) echo "\$ac_cs_usage"; exit 1 ;;
13544 ac_given_srcdir=$srcdir
13545 ac_given_INSTALL="$INSTALL"
13547 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13549 cat >> $CONFIG_STATUS <<EOF
13551 # Protect against being on the right side of a sed subst in config.status.
13552 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13553 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13557 s%@CFLAGS@%$CFLAGS%g
13558 s%@CPPFLAGS@%$CPPFLAGS%g
13559 s%@CXXFLAGS@%$CXXFLAGS%g
13560 s%@FFLAGS@%$FFLAGS%g
13562 s%@LDFLAGS@%$LDFLAGS%g
13564 s%@exec_prefix@%$exec_prefix%g
13565 s%@prefix@%$prefix%g
13566 s%@program_transform_name@%$program_transform_name%g
13567 s%@bindir@%$bindir%g
13568 s%@sbindir@%$sbindir%g
13569 s%@libexecdir@%$libexecdir%g
13570 s%@datadir@%$datadir%g
13571 s%@sysconfdir@%$sysconfdir%g
13572 s%@sharedstatedir@%$sharedstatedir%g
13573 s%@localstatedir@%$localstatedir%g
13574 s%@libdir@%$libdir%g
13575 s%@includedir@%$includedir%g
13576 s%@oldincludedir@%$oldincludedir%g
13577 s%@infodir@%$infodir%g
13578 s%@mandir@%$mandir%g
13579 s%@RUNPROG@%$RUNPROG%g
13580 s%@MPROGS@%$MPROGS%g
13581 s%@LDSHFLAGS@%$LDSHFLAGS%g
13583 s%@HOST_OS@%$HOST_OS%g
13584 s%@PAM_MOD@%$PAM_MOD%g
13586 s%@WRAP32@%$WRAP32%g
13587 s%@PICFLAG@%$PICFLAG%g
13588 s%@PICSUFFIX@%$PICSUFFIX%g
13589 s%@POBAD_CC@%$POBAD_CC%g
13590 s%@SHLIBEXT@%$SHLIBEXT%g
13591 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13593 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13594 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13595 s%@INSTALL_DATA@%$INSTALL_DATA%g
13597 s%@BROKEN_CC@%$BROKEN_CC%g
13599 s%@host_alias@%$host_alias%g
13600 s%@host_cpu@%$host_cpu%g
13601 s%@host_vendor@%$host_vendor%g
13602 s%@host_os@%$host_os%g
13603 s%@target@%$target%g
13604 s%@target_alias@%$target_alias%g
13605 s%@target_cpu@%$target_cpu%g
13606 s%@target_vendor@%$target_vendor%g
13607 s%@target_os@%$target_os%g
13609 s%@build_alias@%$build_alias%g
13610 s%@build_cpu@%$build_cpu%g
13611 s%@build_vendor@%$build_vendor%g
13612 s%@build_os@%$build_os%g
13614 s%@LIBOBJS@%$LIBOBJS%g
13615 s%@TERMLIBS@%$TERMLIBS%g
13616 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13618 s%@QUOTAOBJS@%$QUOTAOBJS%g
13619 s%@privatedir@%$privatedir%g
13620 s%@lockdir@%$lockdir%g
13621 s%@swatdir@%$swatdir%g
13622 s%@manlangs@%$manlangs%g
13623 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13624 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13625 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13626 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13627 s%@BUILD_POPT@%$BUILD_POPT%g
13628 s%@FLAGS1@%$FLAGS1%g
13629 s%@builddir@%$builddir%g
13634 cat >> $CONFIG_STATUS <<\EOF
13636 # Split the substitutions into bite-sized pieces for seds with
13637 # small command number limits, like on Digital OSF/1 and HP-UX.
13638 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13639 ac_file=1 # Number of current file.
13640 ac_beg=1 # First line for current file.
13641 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13644 while $ac_more_lines; do
13645 if test $ac_beg -gt 1; then
13646 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13648 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13650 if test ! -s conftest.s$ac_file; then
13651 ac_more_lines=false
13652 rm -f conftest.s$ac_file
13654 if test -z "$ac_sed_cmds"; then
13655 ac_sed_cmds="sed -f conftest.s$ac_file"
13657 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13659 ac_file=`expr $ac_file + 1`
13661 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13664 if test -z "$ac_sed_cmds"; then
13669 cat >> $CONFIG_STATUS <<EOF
13671 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13673 cat >> $CONFIG_STATUS <<\EOF
13674 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13675 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13677 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13678 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13679 *) ac_file_in="${ac_file}.in" ;;
13682 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13684 # Remove last slash and all that follows it. Not all systems have dirname.
13685 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13686 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13687 # The file is in a subdirectory.
13688 test ! -d "$ac_dir" && mkdir "$ac_dir"
13689 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13690 # A "../" for each directory in $ac_dir_suffix.
13691 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13693 ac_dir_suffix= ac_dots=
13696 case "$ac_given_srcdir" in
13698 if test -z "$ac_dots"; then top_srcdir=.
13699 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13700 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13701 *) # Relative path.
13702 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13703 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13706 case "$ac_given_INSTALL" in
13707 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13708 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13711 echo creating "$ac_file"
13713 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13715 *Makefile*) ac_comsub="1i\\
13716 # $configure_input" ;;
13720 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13722 s%@configure_input@%$configure_input%g
13723 s%@srcdir@%$srcdir%g
13724 s%@top_srcdir@%$top_srcdir%g
13725 s%@INSTALL@%$INSTALL%g
13726 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13730 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13731 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13733 # ac_d sets the value in "#define NAME VALUE" lines.
13734 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13735 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13738 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13739 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13740 ac_uB='\([ ]\)%\1#\2define\3'
13743 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13744 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13745 ac_eB='$%\1#\2define\3'
13749 if test "${CONFIG_HEADERS+set}" != set; then
13751 cat >> $CONFIG_STATUS <<EOF
13752 CONFIG_HEADERS="include/config.h"
13754 cat >> $CONFIG_STATUS <<\EOF
13756 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13759 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13760 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13761 *) ac_file_in="${ac_file}.in" ;;
13764 echo creating $ac_file
13766 rm -f conftest.frag conftest.in conftest.out
13767 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13768 cat $ac_file_inputs > conftest.in
13772 # Transform confdefs.h into a sed script conftest.vals that substitutes
13773 # the proper values into config.h.in to produce config.h. And first:
13774 # Protect against being on the right side of a sed subst in config.status.
13775 # Protect against being in an unquoted here document in config.status.
13776 rm -f conftest.vals
13777 cat > conftest.hdr <<\EOF
13780 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13784 sed -n -f conftest.hdr confdefs.h > conftest.vals
13787 # This sed command replaces #undef with comments. This is necessary, for
13788 # example, in the case of _POSIX_SOURCE, which is predefined and required
13789 # on some systems where configure will not decide to define it.
13790 cat >> conftest.vals <<\EOF
13791 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13794 # Break up conftest.vals because some shells have a limit on
13795 # the size of here documents, and old seds have small limits too.
13797 rm -f conftest.tail
13800 ac_lines=`grep -c . conftest.vals`
13801 # grep -c gives empty output for an empty file on some AIX systems.
13802 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13803 # Write a limited-size here document to conftest.frag.
13804 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13805 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13807 sed -f conftest.frag conftest.in > conftest.out
13809 mv conftest.out conftest.in
13810 ' >> $CONFIG_STATUS
13811 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13812 rm -f conftest.vals
13813 mv conftest.tail conftest.vals
13815 rm -f conftest.vals
13817 cat >> $CONFIG_STATUS <<\EOF
13818 rm -f conftest.frag conftest.h
13819 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13820 cat conftest.in >> conftest.h
13822 if cmp -s $ac_file conftest.h 2>/dev/null; then
13823 echo "$ac_file is unchanged"
13826 # Remove last slash and all that follows it. Not all systems have dirname.
13827 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13828 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13829 # The file is in a subdirectory.
13830 test ! -d "$ac_dir" && mkdir "$ac_dir"
13833 mv conftest.h $ac_file
13838 cat >> $CONFIG_STATUS <<EOF
13841 cat >> $CONFIG_STATUS <<\EOF
13845 chmod +x $CONFIG_STATUS
13846 rm -fr confdefs* $ac_clean_files
13847 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13850 #################################################
13851 # Print very concise instructions on building/use
13852 if test "x$enable_dmalloc" = xyes
13854 echo "$ac_t""Note: The dmalloc debug library will be included." 1>&6
13855 echo "$ac_t"" Use the \"dmalloc\" command to turn it on." 1>&6