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 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
22 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
24 --with-smbwrapper Include SMB wrapper support (default=no) "
26 --with-afs Include AFS clear-text auth support (default=no) "
28 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
30 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
32 --with-automount Include AUTOMOUNT support (default=no)"
34 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
36 --with-pam Include PAM support (default=no)"
38 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
40 --with-tdbsam Include experimental TDB SAM support (default=no)"
42 --with-ldapsam Include experimental LDAP SAM support (default=no)"
44 --with-nisplussam Include NISPLUS SAM support (default=no)"
46 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
48 --with-ssl Include SSL support (default=no)
49 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
50 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
52 --with-syslog Include experimental SYSLOG support (default=no)"
54 --with-profiling-data Include gathering source code profile information (default=no)"
56 --with-quotas Include experimental disk-quota support (default=no)"
58 --with-utmp Include experimental utmp accounting (default=no)"
60 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
62 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
64 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
66 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
68 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
70 --with-acl-support Include ACL support (default=no)"
72 --with-winbind Build winbind (default, if supported by OS)"
74 --with-included-popt use bundled popt library, not from system"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file=./config.cache
89 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host | --host | --hos | --ho)
252 -host=* | --host=* | --hos=* | --ho=*)
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
373 -site=* | --site=* | --sit=*)
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=include/includes.h
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
586 # we want to be compatibe with older versions of Samba
604 # compile with optimisation and without debugging by default
605 CFLAGS="-O ${CFLAGS}"
607 # Check whether --enable-debug or --disable-debug was given.
608 if test "${enable_debug+set}" = set; then
609 enableval="$enable_debug"
610 if eval "test x$enable_debug = xyes"; then
611 CFLAGS="${CFLAGS} -g"
616 # Check whether --enable-developer or --disable-developer was given.
617 if test "${enable_developer+set}" = set; then
618 enableval="$enable_developer"
619 if eval "test x$enable_developer = xyes"; then
620 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
625 # Extract the first word of "gcc", so it can be a program name with args.
626 set dummy gcc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
651 echo "$ac_t""no" 1>&6
654 if test -z "$CC"; then
655 # Extract the first word of "cc", so it can be a program name with args.
656 set dummy cc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
680 if test $ac_prog_rejected = yes; then
681 # We found a bogon in the path, so make sure we never use it.
682 set dummy $ac_cv_prog_CC
684 if test $# -gt 0; then
685 # We chose a different compiler from the bogus one.
686 # However, it has the same basename, so the bogon will be chosen
687 # first if we set CC to just the basename; use the full file name.
689 set dummy "$ac_dir/$ac_word" "$@"
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
706 # Extract the first word of "cl", so it can be a program name with args.
707 set dummy cl; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
718 for ac_dir in $ac_dummy; do
719 test -z "$ac_dir" && ac_dir=.
720 if test -f $ac_dir/$ac_word; then
729 if test -n "$CC"; then
730 echo "$ac_t""$CC" 1>&6
732 echo "$ac_t""no" 1>&6
737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
745 ac_cpp='$CPP $CPPFLAGS'
746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
748 cross_compiling=$ac_cv_prog_cc_cross
750 cat > conftest.$ac_ext << EOF
752 #line 753 "configure"
753 #include "confdefs.h"
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
763 ac_cv_prog_cc_cross=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp='$CPP $CPPFLAGS'
774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling=$ac_cv_prog_cc_cross
778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
779 if test $ac_cv_prog_cc_works = no; then
780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788 echo "configure:789: checking whether we are using GNU C" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftest.c <<EOF
797 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
806 if test $ac_cv_prog_gcc = yes; then
812 ac_test_CFLAGS="${CFLAGS+set}"
813 ac_save_CFLAGS="$CFLAGS"
815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
816 echo "configure:817: checking whether ${CC-cc} accepts -g" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 echo 'void f(){}' > conftest.c
821 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
830 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
831 if test "$ac_test_CFLAGS" = set; then
832 CFLAGS="$ac_save_CFLAGS"
833 elif test $ac_cv_prog_cc_g = yes; then
834 if test "$GCC" = yes; then
840 if test "$GCC" = yes; then
848 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
849 if test -f $ac_dir/install-sh; then
851 ac_install_sh="$ac_aux_dir/install-sh -c"
853 elif test -f $ac_dir/install.sh; then
855 ac_install_sh="$ac_aux_dir/install.sh -c"
859 if test -z "$ac_aux_dir"; then
860 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
862 ac_config_guess=$ac_aux_dir/config.guess
863 ac_config_sub=$ac_aux_dir/config.sub
864 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
866 # Find a good install program. We prefer a C program (faster),
867 # so one script is as good as another. But avoid the broken or
868 # incompatible versions:
869 # SysV /etc/install, /usr/sbin/install
870 # SunOS /usr/etc/install
873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
876 # ./install, which can be erroneously created by make from ./install.sh.
877 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
878 echo "configure:879: checking for a BSD compatible install" >&5
879 if test -z "$INSTALL"; then
880 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
884 for ac_dir in $PATH; do
885 # Account for people who put trailing slashes in PATH elements.
887 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
889 # OSF1 and SCO ODT 3.0 have their own names for install.
890 # Don't use installbsd from OSF since it installs stuff as root
892 for ac_prog in ginstall scoinst install; do
893 if test -f $ac_dir/$ac_prog; then
894 if test $ac_prog = install &&
895 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
896 # AIX install. It has an incompatible calling convention.
899 ac_cv_path_install="$ac_dir/$ac_prog -c"
910 if test "${ac_cv_path_install+set}" = set; then
911 INSTALL="$ac_cv_path_install"
913 # As a last resort, use the slow shell script. We don't cache a
914 # path for INSTALL within a source directory, because that will
915 # break other packages using the cache if that directory is
916 # removed, or if the path is relative.
917 INSTALL="$ac_install_sh"
920 echo "$ac_t""$INSTALL" 1>&6
922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
923 # It thinks the first close brace ends the variable substitution.
924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
930 for ac_prog in mawk gawk nawk awk
932 # Extract the first word of "$ac_prog", so it can be a program name with args.
933 set dummy $ac_prog; ac_word=$2
934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
935 echo "configure:936: checking for $ac_word" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 if test -n "$AWK"; then
940 ac_cv_prog_AWK="$AWK" # Let the user override the test.
942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 for ac_dir in $ac_dummy; do
945 test -z "$ac_dir" && ac_dir=.
946 if test -f $ac_dir/$ac_word; then
947 ac_cv_prog_AWK="$ac_prog"
954 AWK="$ac_cv_prog_AWK"
955 if test -n "$AWK"; then
956 echo "$ac_t""$AWK" 1>&6
958 echo "$ac_t""no" 1>&6
961 test -n "$AWK" && break
965 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
966 echo "configure:967: checking for POSIXized ISC" >&5
967 if test -d /etc/conf/kconfig.d &&
968 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
970 echo "$ac_t""yes" 1>&6
971 ISC=yes # If later tests want to check for ISC.
972 cat >> confdefs.h <<\EOF
973 #define _POSIX_SOURCE 1
976 if test "$GCC" = yes; then
982 echo "$ac_t""no" 1>&6
987 if test "x$CC" != xcc; then
988 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
989 echo "configure:990: checking whether $CC and cc understand -c and -o together" >&5
991 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
992 echo "configure:993: checking whether cc understands -c and -o together" >&5
994 set dummy $CC; ac_cc="`echo $2 |
995 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'foo(){}' > conftest.c
1000 # Make sure it works both with $CC and with simple cc.
1001 # We do the test twice because some compilers refuse to overwrite an
1002 # existing .o file with -o, though they will create one.
1003 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1004 if { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1005 test -f conftest.o && { (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1007 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1008 if test "x$CC" != xcc; then
1009 # Test first that cc exists at all.
1010 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1011 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1012 if { (eval echo configure:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1013 test -f conftest.o && { (eval echo configure:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1018 # cc exists but doesn't like -o.
1019 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1024 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1029 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1030 echo "$ac_t""yes" 1>&6
1032 echo "$ac_t""no" 1>&6
1033 cat >> confdefs.h <<\EOF
1034 #define NO_MINUS_C_MINUS_O 1
1039 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1046 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1047 echo "configure:1048: checking that the C compiler understands volatile" >&5
1048 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1055 #include <sys/types.h>
1060 if { (eval echo configure:1061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1062 samba_cv_volatile=yes
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1067 samba_cv_volatile=no
1072 echo "$ac_t""$samba_cv_volatile" 1>&6
1073 if test x"$samba_cv_volatile" = x"yes"; then
1074 cat >> confdefs.h <<\EOF
1075 #define HAVE_VOLATILE 1
1082 # Do some error checking and defaulting for the host and target type.
1084 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1087 # 1. You are not allowed to specify --host, --target, and nonopt at the
1089 # 2. Host defaults to nonopt.
1090 # 3. If nonopt is not specified, then host defaults to the current host,
1091 # as determined by config.guess.
1092 # 4. Target and build default to nonopt.
1093 # 5. If nonopt is not specified, then target and build default to host.
1095 # The aliases save the names the user supplied, while $host etc.
1096 # will get canonicalized.
1097 case $host---$target---$nonopt in
1098 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1099 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1103 # Make sure we can run config.sub.
1104 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1105 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1108 echo $ac_n "checking host system type""... $ac_c" 1>&6
1109 echo "configure:1110: checking host system type" >&5
1112 case "$host_alias" in
1116 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1117 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1119 *) host_alias=$nonopt ;;
1123 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1124 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1125 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1126 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1127 echo "$ac_t""$host" 1>&6
1129 echo $ac_n "checking target system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking target system type" >&5
1132 target_alias=$target
1133 case "$target_alias" in
1136 NONE) target_alias=$host_alias ;;
1137 *) target_alias=$nonopt ;;
1141 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1142 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 echo "$ac_t""$target" 1>&6
1147 echo $ac_n "checking build system type""... $ac_c" 1>&6
1148 echo "configure:1149: checking build system type" >&5
1151 case "$build_alias" in
1154 NONE) build_alias=$host_alias ;;
1155 *) build_alias=$nonopt ;;
1159 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1160 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1161 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1162 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1163 echo "$ac_t""$build" 1>&6
1165 test "$host_alias" != "$target_alias" &&
1166 test "$program_prefix$program_suffix$program_transform_name" = \
1168 program_prefix=${target_alias}-
1172 *irix6*) cat >> confdefs.h <<\EOF
1173 #include <standards.h>
1181 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1182 echo "configure:1183: checking config.cache system type" >&5
1183 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1184 test x"$ac_cv_host_system_type" != x"$host"; } ||
1185 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1186 test x"$ac_cv_build_system_type" != x"$build"; } ||
1187 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1188 test x"$ac_cv_target_system_type" != x"$target"; }; then
1189 echo "$ac_t""different" 1>&6
1190 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1192 echo "$ac_t""same" 1>&6
1194 ac_cv_host_system_type="$host"
1195 ac_cv_build_system_type="$build"
1196 ac_cv_target_system_type="$target"
1200 # Config CPPFLAG settings for strange OS's that must be set
1201 # before other tests.
1204 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1206 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether ${CC-cc} accepts -Ae" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'void f(){}' > conftest.c
1212 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1213 ac_cv_prog_cc_Ae=yes
1221 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1222 # mmap on HPUX is completely broken...
1223 cat >> confdefs.h <<\EOF
1224 #define MMAP_BLACKLIST 1
1227 if test $ac_cv_prog_cc_Ae = yes; then
1228 CPPFLAGS="$CPPFLAGS -Ae"
1231 # Defines needed for HPUX support.
1232 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1233 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1237 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1238 cat >> confdefs.h <<\EOF
1239 #define USE_BOTH_CRYPT_CALLS 1
1244 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1245 cat >> confdefs.h <<\EOF
1246 #define USE_BOTH_CRYPT_CALLS 1
1253 # AIX4.x doesn't even admit to having large
1254 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1257 echo "$ac_t""enabling large file support" 1>&6
1258 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1261 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1262 # to the existance of large files..
1263 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1264 # recommendations on large file support, however it makes the
1265 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1266 # recommendation makes the compile fail on gcc2.7. JRA.
1270 5.0*|5.1*|5.2*|5.3*|5.5*)
1271 echo "$ac_t""no large file support" 1>&6
1274 echo "$ac_t""enabling large file support" 1>&6
1275 if test "$ac_cv_prog_gcc" = yes; then
1276 ${CC-cc} -v >conftest.c 2>&1
1277 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1279 case "$ac_cv_gcc_compiler_version_number" in
1280 *"gcc version 2.6"*|*"gcc version 2.7"*)
1281 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1284 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1288 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1294 # Tests needed for SINIX large file support.
1297 if test $host = mips-sni-sysv4 ; then
1298 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1299 echo "configure:1300: checking for LFS support" >&5
1300 old_CPPFLAGS="$CPPFLAGS"
1301 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1302 if test "$cross_compiling" = yes; then
1303 SINIX_LFS_SUPPORT=cross
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 #if _LFS64_LARGEFILE == 1
1318 if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1320 SINIX_LFS_SUPPORT=yes
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1325 SINIX_LFS_SUPPORT=no
1330 CPPFLAGS="$old_CPPFLAGS"
1331 if test x$SINIX_LFS_SUPPORT = xyes ; then
1332 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1333 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1334 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1335 LIBS="`getconf LFS64_LIBS` $LIBS"
1337 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1341 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1344 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1345 echo "configure:1346: checking for LFS support" >&5
1346 old_CPPFLAGS="$CPPFLAGS"
1347 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1348 if test "$cross_compiling" = yes; then
1349 LINUX_LFS_SUPPORT=cross
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1356 #include <sys/utsname.h>
1358 #if _LFS64_LARGEFILE == 1
1363 /* Ensure this is glibc 2.2 or higher */
1364 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1365 int libc_major = __GLIBC__;
1366 int libc_minor = __GLIBC_MINOR__;
1374 /* Ensure this is kernel 2.4 or higher */
1377 release = uts.release;
1378 major = atoi(strsep(&release, "."));
1379 minor = atoi(strsep(&release, "."));
1381 if (major > 2 || (major == 2 && minor > 3))
1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1392 LINUX_LFS_SUPPORT=yes
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1397 LINUX_LFS_SUPPORT=no
1402 CPPFLAGS="$old_CPPFLAGS"
1403 if test x$LINUX_LFS_SUPPORT = xyes ; then
1404 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1406 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1410 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1411 echo "configure:1412: checking for LFS support" >&5
1412 old_CPPFLAGS="$CPPFLAGS"
1413 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1414 if test "$cross_compiling" = yes; then
1415 GLIBC_LFS_SUPPORT=cross
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1423 #if _LFS64_LARGEFILE == 1
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1432 GLIBC_LFS_SUPPORT=yes
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 GLIBC_LFS_SUPPORT=no
1442 CPPFLAGS="$old_CPPFLAGS"
1443 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1444 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1446 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1451 echo $ac_n "checking for inline""... $ac_c" 1>&6
1452 echo "configure:1453: checking for inline" >&5
1453 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1457 for ac_kw in inline __inline__ __inline; do
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1466 if { (eval echo configure:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468 ac_cv_c_inline=$ac_kw; break
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1478 echo "$ac_t""$ac_cv_c_inline" 1>&6
1479 case "$ac_cv_c_inline" in
1481 no) cat >> confdefs.h <<\EOF
1485 *) cat >> confdefs.h <<EOF
1486 #define inline $ac_cv_c_inline
1491 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1492 echo "configure:1493: checking how to run the C preprocessor" >&5
1493 # On Suns, sometimes $CPP names a directory.
1494 if test -n "$CPP" && test -d "$CPP"; then
1497 if test -z "$CPP"; then
1498 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 # This must be in double quotes, not single quotes, because CPP may get
1502 # substituted into the Makefile and "${CC-cc}" will confuse make.
1504 # On the NeXT, cc -E runs the code through the compiler's parser,
1505 # not just through cpp.
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1522 CPP="${CC-cc} -E -traditional-cpp"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530 { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532 if test -z "$ac_err"; then
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 CPP="${CC-cc} -nologo -E"
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1547 { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1549 if test -z "$ac_err"; then
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1563 ac_cv_prog_CPP="$CPP"
1565 CPP="$ac_cv_prog_CPP"
1567 ac_cv_prog_CPP="$CPP"
1569 echo "$ac_t""$CPP" 1>&6
1571 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1572 echo "configure:1573: checking for ANSI C header files" >&5
1573 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1589 ac_cv_header_stdc=yes
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1595 ac_cv_header_stdc=no
1599 if test $ac_cv_header_stdc = yes; then
1600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1607 egrep "memchr" >/dev/null 2>&1; then
1611 ac_cv_header_stdc=no
1617 if test $ac_cv_header_stdc = yes; then
1618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1625 egrep "free" >/dev/null 2>&1; then
1629 ac_cv_header_stdc=no
1635 if test $ac_cv_header_stdc = yes; then
1636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1637 if test "$cross_compiling" = yes; then
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1644 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1645 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1647 int main () { int i; for (i = 0; i < 256; i++)
1648 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1659 ac_cv_header_stdc=no
1667 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1668 if test $ac_cv_header_stdc = yes; then
1669 cat >> confdefs.h <<\EOF
1670 #define STDC_HEADERS 1
1676 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1679 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_hdr that defines DIR" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <sys/types.h>
1693 if { (eval echo configure:1694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1695 eval "ac_cv_header_dirent_$ac_safe=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_header_dirent_$ac_safe=no"
1704 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1707 cat >> confdefs.h <<EOF
1708 #define $ac_tr_hdr 1
1710 ac_header_dirent=$ac_hdr; break
1712 echo "$ac_t""no" 1>&6
1715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1716 if test $ac_header_dirent = dirent.h; then
1717 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1718 echo "configure:1719: checking for opendir in -ldir" >&5
1719 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 ac_save_LIBS="$LIBS"
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 /* Override any gcc2 internal prototype to avoid an error. */
1729 /* We use char because int might match the return type of a gcc2
1730 builtin and then its argument prototype would still apply. */
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1739 eval "ac_cv_lib_$ac_lib_var=yes"
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1744 eval "ac_cv_lib_$ac_lib_var=no"
1747 LIBS="$ac_save_LIBS"
1750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1754 echo "$ac_t""no" 1>&6
1758 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1759 echo "configure:1760: checking for opendir in -lx" >&5
1760 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS="$LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1795 echo "$ac_t""no" 1>&6
1800 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether time.h and sys/time.h may both be included" >&5
1802 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 #include <sys/types.h>
1809 #include <sys/time.h>
1815 if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1817 ac_cv_header_time=yes
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 ac_cv_header_time=no
1827 echo "$ac_t""$ac_cv_header_time" 1>&6
1828 if test $ac_cv_header_time = yes; then
1829 cat >> confdefs.h <<\EOF
1830 #define TIME_WITH_SYS_TIME 1
1835 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1836 echo "configure:1837: checking for sys/wait.h that is POSIX.1 compatible" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1844 #include <sys/wait.h>
1846 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1849 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1854 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1857 if { (eval echo configure:1858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1859 ac_cv_header_sys_wait_h=yes
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1864 ac_cv_header_sys_wait_h=no
1869 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1870 if test $ac_cv_header_sys_wait_h = yes; then
1871 cat >> confdefs.h <<\EOF
1872 #define HAVE_SYS_WAIT_H 1
1877 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_hdr" >&5
1882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1893 if test -z "$ac_err"; then
1895 eval "ac_cv_header_$ac_safe=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_header_$ac_safe=no"
1905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1908 cat >> confdefs.h <<EOF
1909 #define $ac_tr_hdr 1
1913 echo "$ac_t""no" 1>&6
1917 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_hdr" >&5
1922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1931 { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1933 if test -z "$ac_err"; then
1935 eval "ac_cv_header_$ac_safe=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 eval "ac_cv_header_$ac_safe=no"
1945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1948 cat >> confdefs.h <<EOF
1949 #define $ac_tr_hdr 1
1953 echo "$ac_t""no" 1>&6
1957 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_hdr" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 eval "ac_cv_header_$ac_safe=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_header_$ac_safe=no"
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1988 cat >> confdefs.h <<EOF
1989 #define $ac_tr_hdr 1
1993 echo "$ac_t""no" 1>&6
1997 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
1999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_hdr" >&5
2002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2011 { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013 if test -z "$ac_err"; then
2015 eval "ac_cv_header_$ac_safe=yes"
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 eval "ac_cv_header_$ac_safe=no"
2025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2028 cat >> confdefs.h <<EOF
2029 #define $ac_tr_hdr 1
2033 echo "$ac_t""no" 1>&6
2037 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
2039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_hdr" >&5
2042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then
2055 eval "ac_cv_header_$ac_safe=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 eval "ac_cv_header_$ac_safe=no"
2065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2068 cat >> confdefs.h <<EOF
2069 #define $ac_tr_hdr 1
2073 echo "$ac_t""no" 1>&6
2077 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_hdr" >&5
2082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2091 { (eval echo configure:2092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2093 if test -z "$ac_err"; then
2095 eval "ac_cv_header_$ac_safe=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 eval "ac_cv_header_$ac_safe=no"
2105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2108 cat >> confdefs.h <<EOF
2109 #define $ac_tr_hdr 1
2113 echo "$ac_t""no" 1>&6
2117 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2121 echo "configure:2122: checking for $ac_hdr" >&5
2122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131 { (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2133 if test -z "$ac_err"; then
2135 eval "ac_cv_header_$ac_safe=yes"
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2141 eval "ac_cv_header_$ac_safe=no"
2145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2148 cat >> confdefs.h <<EOF
2149 #define $ac_tr_hdr 1
2153 echo "$ac_t""no" 1>&6
2157 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h sasl.h
2159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_hdr" >&5
2162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2171 { (eval echo configure:2172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2173 if test -z "$ac_err"; then
2175 eval "ac_cv_header_$ac_safe=yes"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 eval "ac_cv_header_$ac_safe=no"
2185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2186 echo "$ac_t""yes" 1>&6
2187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2188 cat >> confdefs.h <<EOF
2189 #define $ac_tr_hdr 1
2193 echo "$ac_t""no" 1>&6
2199 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2200 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2214 ac_cv_header_shadow_h=yes
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 ac_cv_header_shadow_h=no
2222 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_SHADOW_H 1
2230 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_hdr" >&5
2235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2248 eval "ac_cv_header_$ac_safe=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_header_$ac_safe=no"
2258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2261 cat >> confdefs.h <<EOF
2262 #define $ac_tr_hdr 1
2266 echo "$ac_t""no" 1>&6
2270 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_hdr" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2288 eval "ac_cv_header_$ac_safe=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 eval "ac_cv_header_$ac_safe=no"
2298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2301 cat >> confdefs.h <<EOF
2302 #define $ac_tr_hdr 1
2306 echo "$ac_t""no" 1>&6
2310 for ac_hdr in stropts.h poll.h
2312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_hdr" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2341 cat >> confdefs.h <<EOF
2342 #define $ac_tr_hdr 1
2346 echo "$ac_t""no" 1>&6
2350 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2354 echo "configure:2355: checking for $ac_hdr" >&5
2355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2366 if test -z "$ac_err"; then
2368 eval "ac_cv_header_$ac_safe=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 eval "ac_cv_header_$ac_safe=no"
2378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_hdr 1
2386 echo "$ac_t""no" 1>&6
2390 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_hdr" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_hdr 1
2426 echo "$ac_t""no" 1>&6
2431 # For experimental utmp support (lastlog on some BSD-like systems)
2432 for ac_hdr in utmp.h utmpx.h lastlog.h
2434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_hdr" >&5
2437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2448 if test -z "$ac_err"; then
2450 eval "ac_cv_header_$ac_safe=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2456 eval "ac_cv_header_$ac_safe=no"
2460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2463 cat >> confdefs.h <<EOF
2464 #define $ac_tr_hdr 1
2468 echo "$ac_t""no" 1>&6
2473 # For quotas on Veritas VxFS filesystems
2474 for ac_hdr in sys/fs/vx_quota.h
2476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_hdr" >&5
2479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2492 eval "ac_cv_header_$ac_safe=yes"
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 eval "ac_cv_header_$ac_safe=no"
2502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2505 cat >> confdefs.h <<EOF
2506 #define $ac_tr_hdr 1
2510 echo "$ac_t""no" 1>&6
2515 echo $ac_n "checking size of int""... $ac_c" 1>&6
2516 echo "configure:2517: checking size of int" >&5
2517 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 if test "$cross_compiling" = yes; then
2521 ac_cv_sizeof_int=cross
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2527 #include <sys/types.h>
2530 FILE *f=fopen("conftestval", "w");
2532 fprintf(f, "%d\n", sizeof(int));
2536 if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2538 ac_cv_sizeof_int=`cat conftestval`
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2549 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2550 cat >> confdefs.h <<EOF
2551 #define SIZEOF_INT $ac_cv_sizeof_int
2555 echo $ac_n "checking size of long""... $ac_c" 1>&6
2556 echo "configure:2557: checking size of long" >&5
2557 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 if test "$cross_compiling" = yes; then
2561 ac_cv_sizeof_long=cross
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2567 #include <sys/types.h>
2570 FILE *f=fopen("conftestval", "w");
2572 fprintf(f, "%d\n", sizeof(long));
2576 if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2578 ac_cv_sizeof_long=`cat conftestval`
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2589 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2590 cat >> confdefs.h <<EOF
2591 #define SIZEOF_LONG $ac_cv_sizeof_long
2595 echo $ac_n "checking size of short""... $ac_c" 1>&6
2596 echo "configure:2597: checking size of short" >&5
2597 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 if test "$cross_compiling" = yes; then
2601 ac_cv_sizeof_short=cross
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2607 #include <sys/types.h>
2610 FILE *f=fopen("conftestval", "w");
2612 fprintf(f, "%d\n", sizeof(short));
2616 if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2618 ac_cv_sizeof_short=`cat conftestval`
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2623 ac_cv_sizeof_short=0
2629 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2630 cat >> confdefs.h <<EOF
2631 #define SIZEOF_SHORT $ac_cv_sizeof_short
2636 echo $ac_n "checking for working const""... $ac_c" 1>&6
2637 echo "configure:2638: checking for working const" >&5
2638 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2647 /* Ultrix mips cc rejects this. */
2648 typedef int charset[2]; const charset x;
2649 /* SunOS 4.1.1 cc rejects this. */
2650 char const *const *ccp;
2652 /* NEC SVR4.0.2 mips cc rejects this. */
2653 struct point {int x, y;};
2654 static struct point const zero = {0,0};
2655 /* AIX XL C 1.02.0.0 rejects this.
2656 It does not let you subtract one const X* pointer from another in an arm
2657 of an if-expression whose if-part is not a constant expression */
2658 const char *g = "string";
2659 ccp = &g + (g ? g-g : 0);
2660 /* HPUX 7.0 cc rejects these. */
2663 ccp = (char const *const *) p;
2664 { /* SCO 3.2v4 cc rejects this. */
2666 char const *s = 0 ? (char *) 0 : (char const *) 0;
2670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2672 const int *foo = &x[0];
2675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2676 typedef const int *iptr;
2680 { /* AIX XL C 1.02.0.0 rejects this saying
2681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2682 struct s { int j; const int *ap[3]; };
2683 struct s *b; b->j = 5;
2685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2691 if { (eval echo configure:2692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2703 echo "$ac_t""$ac_cv_c_const" 1>&6
2704 if test $ac_cv_c_const = no; then
2705 cat >> confdefs.h <<\EOF
2711 echo $ac_n "checking for inline""... $ac_c" 1>&6
2712 echo "configure:2713: checking for inline" >&5
2713 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2717 for ac_kw in inline __inline__ __inline; do
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2726 if { (eval echo configure:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2728 ac_cv_c_inline=$ac_kw; break
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2738 echo "$ac_t""$ac_cv_c_inline" 1>&6
2739 case "$ac_cv_c_inline" in
2741 no) cat >> confdefs.h <<\EOF
2745 *) cat >> confdefs.h <<EOF
2746 #define inline $ac_cv_c_inline
2751 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether byte ordering is bigendian" >&5
2753 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 ac_cv_c_bigendian=unknown
2757 # See if sys/param.h defines the BYTE_ORDER macro.
2758 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 #include <sys/types.h>
2762 #include <sys/param.h>
2765 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2770 if { (eval echo configure:2771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2772 # It does; now see whether it defined to BIG_ENDIAN or not.
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <sys/types.h>
2777 #include <sys/param.h>
2780 #if BYTE_ORDER != BIG_ENDIAN
2785 if { (eval echo configure:2786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2787 ac_cv_c_bigendian=yes
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 ac_cv_c_bigendian=no
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2800 if test $ac_cv_c_bigendian = unknown; then
2801 if test "$cross_compiling" = yes; then
2802 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2808 /* Are we little or big endian? From Harbison&Steele. */
2812 char c[sizeof (long)];
2815 exit (u.c[sizeof (long) - 1] == 1);
2818 if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2820 ac_cv_c_bigendian=no
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2825 ac_cv_c_bigendian=yes
2833 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2834 if test $ac_cv_c_bigendian = yes; then
2835 cat >> confdefs.h <<\EOF
2836 #define WORDS_BIGENDIAN 1
2841 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2842 echo "configure:2843: checking whether char is unsigned" >&5
2843 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 if test "$GCC" = yes; then
2847 # GCC predefines this symbol on systems where it applies.
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #ifdef __CHAR_UNSIGNED__
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857 egrep "yes" >/dev/null 2>&1; then
2859 ac_cv_c_char_unsigned=yes
2862 ac_cv_c_char_unsigned=no
2867 if test "$cross_compiling" = yes; then
2868 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2874 #if !defined(__STDC__) || __STDC__ != 1
2878 volatile char c = 255; exit(c < 0);
2881 if { (eval echo configure:2882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2883 ac_cv_c_char_unsigned=yes
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 ac_cv_c_char_unsigned=no
2896 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2897 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2898 cat >> confdefs.h <<\EOF
2899 #define __CHAR_UNSIGNED__ 1
2905 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2906 echo "configure:2907: checking return type of signal handlers" >&5
2907 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 #include <sys/types.h>
2919 extern "C" void (*signal (int, void (*)(int)))(int);
2921 void (*signal ()) ();
2928 if { (eval echo configure:2929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2930 ac_cv_type_signal=void
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 ac_cv_type_signal=int
2940 echo "$ac_t""$ac_cv_type_signal" 1>&6
2941 cat >> confdefs.h <<EOF
2942 #define RETSIGTYPE $ac_cv_type_signal
2946 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2947 echo "configure:2948: checking for uid_t in sys/types.h" >&5
2948 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2957 egrep "uid_t" >/dev/null 2>&1; then
2959 ac_cv_type_uid_t=yes
2968 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2969 if test $ac_cv_type_uid_t = no; then
2970 cat >> confdefs.h <<\EOF
2974 cat >> confdefs.h <<\EOF
2980 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2981 echo "configure:2982: checking for mode_t" >&5
2982 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2995 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2997 ac_cv_type_mode_t=yes
3000 ac_cv_type_mode_t=no
3005 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3006 if test $ac_cv_type_mode_t = no; then
3007 cat >> confdefs.h <<\EOF
3013 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3014 echo "configure:3015: checking for off_t" >&5
3015 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 #include <sys/types.h>
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3030 ac_cv_type_off_t=yes
3038 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3039 if test $ac_cv_type_off_t = no; then
3040 cat >> confdefs.h <<\EOF
3046 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3047 echo "configure:3048: checking for size_t" >&5
3048 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <sys/types.h>
3060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3061 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3063 ac_cv_type_size_t=yes
3066 ac_cv_type_size_t=no
3071 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3072 if test $ac_cv_type_size_t = no; then
3073 cat >> confdefs.h <<\EOF
3074 #define size_t unsigned
3079 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3080 echo "configure:3081: checking for pid_t" >&5
3081 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <sys/types.h>
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3096 ac_cv_type_pid_t=yes
3104 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3105 if test $ac_cv_type_pid_t = no; then
3106 cat >> confdefs.h <<\EOF
3112 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3113 echo "configure:3114: checking for st_rdev in struct stat" >&5
3114 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <sys/types.h>
3121 #include <sys/stat.h>
3123 struct stat s; s.st_rdev;
3126 if { (eval echo configure:3127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3128 ac_cv_struct_st_rdev=yes
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 ac_cv_struct_st_rdev=no
3138 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3139 if test $ac_cv_struct_st_rdev = yes; then
3140 cat >> confdefs.h <<\EOF
3141 #define HAVE_ST_RDEV 1
3146 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3147 echo "configure:3148: checking for d_off in dirent" >&5
3148 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3156 #include <sys/types.h>
3159 struct dirent d; d.d_off;
3162 if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 ac_cv_dirent_d_off=yes
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3169 ac_cv_dirent_d_off=no
3174 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3175 if test $ac_cv_dirent_d_off = yes; then
3176 cat >> confdefs.h <<\EOF
3177 #define HAVE_DIRENT_D_OFF 1
3182 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3183 echo "configure:3184: checking for ino_t" >&5
3184 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <sys/types.h>
3196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3197 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3199 ac_cv_type_ino_t=yes
3207 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3208 if test $ac_cv_type_ino_t = no; then
3209 cat >> confdefs.h <<\EOF
3210 #define ino_t unsigned
3215 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3216 echo "configure:3217: checking for loff_t" >&5
3217 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 #include <sys/types.h>
3229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3230 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3232 ac_cv_type_loff_t=yes
3235 ac_cv_type_loff_t=no
3240 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3241 if test $ac_cv_type_loff_t = no; then
3242 cat >> confdefs.h <<\EOF
3243 #define loff_t off_t
3248 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3249 echo "configure:3250: checking for offset_t" >&5
3250 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 #include <sys/types.h>
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3265 ac_cv_type_offset_t=yes
3268 ac_cv_type_offset_t=no
3273 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3274 if test $ac_cv_type_offset_t = no; then
3275 cat >> confdefs.h <<\EOF
3276 #define offset_t loff_t
3281 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3282 echo "configure:3283: checking for ssize_t" >&5
3283 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3298 ac_cv_type_ssize_t=yes
3301 ac_cv_type_ssize_t=no
3306 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3307 if test $ac_cv_type_ssize_t = no; then
3308 cat >> confdefs.h <<\EOF
3314 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3315 echo "configure:3316: checking for wchar_t" >&5
3316 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3331 ac_cv_type_wchar_t=yes
3334 ac_cv_type_wchar_t=no
3339 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3340 if test $ac_cv_type_wchar_t = no; then
3341 cat >> confdefs.h <<\EOF
3342 #define wchar_t unsigned short
3348 ############################################
3349 # for cups support we need libcups, and a handful of header files
3351 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3352 echo "configure:3353: checking for httpConnect in -lcups" >&5
3353 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 ac_save_LIBS="$LIBS"
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 eval "ac_cv_lib_$ac_lib_var=yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3378 eval "ac_cv_lib_$ac_lib_var=no"
3381 LIBS="$ac_save_LIBS"
3384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3387 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_lib 1
3395 echo "$ac_t""no" 1>&6
3399 # I wonder if there is a nicer way of doing this?
3401 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3402 for ac_hdr in cups/cups.h cups/language.h
3404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_hdr" >&5
3407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3416 { (eval echo configure:3417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3418 if test -z "$ac_err"; then
3420 eval "ac_cv_header_$ac_safe=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 eval "ac_cv_header_$ac_safe=no"
3430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3433 cat >> confdefs.h <<EOF
3434 #define $ac_tr_hdr 1
3438 echo "$ac_t""no" 1>&6
3442 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3443 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3444 cat >> confdefs.h <<\EOF
3452 ############################################
3453 # we need libdl for PAM and the new VFS code
3454 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3455 echo "configure:3456: checking for dlopen in -ldl" >&5
3456 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 ac_save_LIBS="$LIBS"
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3476 eval "ac_cv_lib_$ac_lib_var=yes"
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3481 eval "ac_cv_lib_$ac_lib_var=no"
3484 LIBS="$ac_save_LIBS"
3487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3490 cat >> confdefs.h <<\EOF
3491 #define HAVE_LIBDL 1
3495 echo "$ac_t""no" 1>&6
3499 ############################################
3500 # check if the compiler can do immediate structures
3501 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3502 echo "configure:3503: checking for immediate structures" >&5
3503 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3514 #define X_FOOBAR(x) ((FOOBAR) { x })
3515 typedef struct {unsigned x;} FOOBAR;
3516 FOOBAR f = X_FOOBAR(1);
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522 samba_cv_immediate_structures=yes
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 samba_cv_immediate_structures=no
3532 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3533 if test x"$samba_cv_immediate_structures" = x"yes"; then
3534 cat >> confdefs.h <<\EOF
3535 #define HAVE_IMMEDIATE_STRUCTURES 1
3540 ############################################
3541 # check for unix domain sockets
3542 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3543 echo "configure:3544: checking for unix domain sockets" >&5
3544 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3552 #include <sys/types.h>
3555 #include <sys/socket.h>
3559 struct sockaddr_un sunaddr;
3560 sunaddr.sun_family = AF_UNIX;
3564 if { (eval echo configure:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3566 samba_cv_unixsocket=yes
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 samba_cv_unixsocket=no
3576 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3577 if test x"$samba_cv_unixsocket" = x"yes"; then
3578 cat >> confdefs.h <<\EOF
3579 #define HAVE_UNIXSOCKET 1
3585 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3586 echo "configure:3587: checking for socklen_t type" >&5
3587 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3595 #include <sys/types.h>
3600 #include <sys/socket.h>
3605 if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3607 samba_cv_socklen_t=yes
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 samba_cv_socklen_t=no
3617 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3618 if test x"$samba_cv_socklen_t" = x"yes"; then
3619 cat >> confdefs.h <<\EOF
3620 #define HAVE_SOCKLEN_T_TYPE 1
3625 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3626 echo "configure:3627: checking for sig_atomic_t type" >&5
3627 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3635 #include <sys/types.h>
3645 if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3647 samba_cv_sig_atomic_t=yes
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 samba_cv_sig_atomic_t=no
3657 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3658 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3659 cat >> confdefs.h <<\EOF
3660 #define HAVE_SIG_ATOMIC_T_TYPE 1
3665 # stupid headers have the functions but no declaration. grrrr.
3667 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3668 echo "configure:3669: checking for errno declaration" >&5
3669 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3683 ac_cv_have_errno_decl=yes
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 ac_cv_have_errno_decl=no
3693 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3694 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3695 cat >> confdefs.h <<\EOF
3696 #define HAVE_ERRNO_DECL 1
3702 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3703 echo "configure:3704: checking for setresuid declaration" >&5
3704 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3713 int i = (int)setresuid
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 ac_cv_have_setresuid_decl=yes
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 ac_cv_have_setresuid_decl=no
3728 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3729 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3730 cat >> confdefs.h <<\EOF
3731 #define HAVE_SETRESUID_DECL 1
3737 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3738 echo "configure:3739: checking for setresgid declaration" >&5
3739 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3748 int i = (int)setresgid
3751 if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3753 ac_cv_have_setresgid_decl=yes
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 ac_cv_have_setresgid_decl=no
3763 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3764 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3765 cat >> confdefs.h <<\EOF
3766 #define HAVE_SETRESGID_DECL 1
3772 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3773 echo "configure:3774: checking for asprintf declaration" >&5
3774 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3783 int i = (int)asprintf
3786 if { (eval echo configure:3787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3788 ac_cv_have_asprintf_decl=yes
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 ac_cv_have_asprintf_decl=no
3798 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3799 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3800 cat >> confdefs.h <<\EOF
3801 #define HAVE_ASPRINTF_DECL 1
3807 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3808 echo "configure:3809: checking for vasprintf declaration" >&5
3809 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3818 int i = (int)vasprintf
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3823 ac_cv_have_vasprintf_decl=yes
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 ac_cv_have_vasprintf_decl=no
3833 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3834 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3835 cat >> confdefs.h <<\EOF
3836 #define HAVE_VASPRINTF_DECL 1
3842 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3843 echo "configure:3844: checking for vsnprintf declaration" >&5
3844 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3853 int i = (int)vsnprintf
3856 if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 ac_cv_have_vsnprintf_decl=yes
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 ac_cv_have_vsnprintf_decl=no
3868 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3869 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3870 cat >> confdefs.h <<\EOF
3871 #define HAVE_VSNPRINTF_DECL 1
3877 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3878 echo "configure:3879: checking for snprintf declaration" >&5
3879 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3888 int i = (int)snprintf
3891 if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3893 ac_cv_have_snprintf_decl=yes
3895 echo "configure: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3898 ac_cv_have_snprintf_decl=no
3903 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3904 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3905 cat >> confdefs.h <<\EOF
3906 #define HAVE_SNPRINTF_DECL 1
3912 # and glibc has setresuid under linux but the function does
3913 # nothing until kernel 2.1.44! very dumb.
3914 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3915 echo "configure:3916: checking for real setresuid" >&5
3916 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3920 if test "$cross_compiling" = yes; then
3921 samba_cv_have_setresuid=cross
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3927 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3931 samba_cv_have_setresuid=yes
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 samba_cv_have_setresuid=no
3943 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3944 if test x"$samba_cv_have_setresuid" = x"yes"; then
3945 cat >> confdefs.h <<\EOF
3946 #define HAVE_SETRESUID 1
3951 # Do the same check for setresguid...
3953 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3954 echo "configure:3955: checking for real setresgid" >&5
3955 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3959 if test "$cross_compiling" = yes; then
3960 samba_cv_have_setresgid=cross
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3967 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3969 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3971 samba_cv_have_setresgid=yes
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3976 samba_cv_have_setresgid=no
3983 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3984 if test x"$samba_cv_have_setresgid" = x"yes"; then
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_SETRESGID 1
3991 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3992 echo "configure:3993: checking for 8-bit clean memcmp" >&5
3993 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 if test "$cross_compiling" = yes; then
3997 ac_cv_func_memcmp_clean=no
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4005 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4006 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4012 ac_cv_func_memcmp_clean=yes
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 ac_cv_func_memcmp_clean=no
4024 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4025 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4028 ###############################################
4029 # test for where we get crypt() from
4030 for ac_func in crypt
4032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4033 echo "configure:4034: checking for $ac_func" >&5
4034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 /* System header to define __stub macros and hopefully few prototypes,
4041 which can conflict with char $ac_func(); below. */
4043 /* Override any gcc2 internal prototype to avoid an error. */
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4050 /* The GNU C library defines this for functions which it implements
4051 to always fail with ENOSYS. Some functions are actually named
4052 something starting with __ and the normal name is an alias. */
4053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4063 eval "ac_cv_func_$ac_func=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4068 eval "ac_cv_func_$ac_func=no"
4073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4074 echo "$ac_t""yes" 1>&6
4075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4076 cat >> confdefs.h <<EOF
4077 #define $ac_tr_func 1
4081 echo "$ac_t""no" 1>&6
4085 if test x"$ac_cv_func_crypt" = x"no"; then
4086 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4087 echo "configure:4088: checking for crypt in -lcrypt" >&5
4088 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 ac_save_LIBS="$LIBS"
4093 LIBS="-lcrypt $LIBS"
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 /* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 eval "ac_cv_lib_$ac_lib_var=yes"
4110 echo "configure: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4113 eval "ac_cv_lib_$ac_lib_var=no"
4116 LIBS="$ac_save_LIBS"
4119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4120 echo "$ac_t""yes" 1>&6
4121 LIBS="$LIBS -lcrypt";
4122 cat >> confdefs.h <<\EOF
4123 #define HAVE_CRYPT 1
4127 echo "$ac_t""no" 1>&6
4133 ###############################################
4134 # Readline included by default unless explicitly asked not to
4135 test "${with_readline+set}" != "set" && with_readline=yes
4137 # test for where we get readline() from
4138 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4139 echo "configure:4140: checking whether to use readline" >&5
4140 # Check whether --with-readline or --without-readline was given.
4141 if test "${with_readline+set}" = set; then
4142 withval="$with_readline"
4143 case "$with_readline" in
4145 echo "$ac_t""yes" 1>&6
4147 for ac_hdr in readline.h history.h readline/readline.h
4149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4151 echo "configure:4152: checking for $ac_hdr" >&5
4152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4161 { (eval echo configure:4162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4163 if test -z "$ac_err"; then
4165 eval "ac_cv_header_$ac_safe=yes"
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4171 eval "ac_cv_header_$ac_safe=no"
4175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4178 cat >> confdefs.h <<EOF
4179 #define $ac_tr_hdr 1
4183 echo "$ac_t""no" 1>&6
4187 for ac_hdr in readline/history.h
4189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4191 echo "configure:4192: checking for $ac_hdr" >&5
4192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201 { (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203 if test -z "$ac_err"; then
4205 eval "ac_cv_header_$ac_safe=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_header_$ac_safe=no"
4215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4218 cat >> confdefs.h <<EOF
4219 #define $ac_tr_hdr 1
4223 echo "$ac_t""no" 1>&6
4228 for ac_hdr in readline.h readline/readline.h
4230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4232 echo "configure:4233: checking for $ac_hdr" >&5
4233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4242 { (eval echo configure:4243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4244 if test -z "$ac_err"; then
4246 eval "ac_cv_header_$ac_safe=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 eval "ac_cv_header_$ac_safe=no"
4256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4257 echo "$ac_t""yes" 1>&6
4258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4259 cat >> confdefs.h <<EOF
4260 #define $ac_tr_hdr 1
4263 for termlib in ncurses curses termcap terminfo termlib; do
4264 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4265 echo "configure:4266: checking for tgetent in -l${termlib}" >&5
4266 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 ac_save_LIBS="$LIBS"
4271 LIBS="-l${termlib} $LIBS"
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* Override any gcc2 internal prototype to avoid an error. */
4276 /* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286 eval "ac_cv_lib_$ac_lib_var=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_lib_$ac_lib_var=no"
4294 LIBS="$ac_save_LIBS"
4297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 TERMLIBS="-l${termlib}"; break
4301 echo "$ac_t""no" 1>&6
4305 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4306 echo "configure:4307: checking for rl_callback_handler_install in -lreadline" >&5
4307 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 ac_save_LIBS="$LIBS"
4312 LIBS="-lreadline $TERMLIBS $LIBS"
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 /* Override any gcc2 internal prototype to avoid an error. */
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
4319 char rl_callback_handler_install();
4322 rl_callback_handler_install()
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 eval "ac_cv_lib_$ac_lib_var=yes"
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4332 eval "ac_cv_lib_$ac_lib_var=no"
4335 LIBS="$ac_save_LIBS"
4338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4339 echo "$ac_t""yes" 1>&6
4340 TERMLIBS="-lreadline $TERMLIBS"
4341 cat >> confdefs.h <<\EOF
4342 #define HAVE_LIBREADLINE 1
4347 echo "$ac_t""no" 1>&6
4352 echo "$ac_t""no" 1>&6
4358 echo "$ac_t""no" 1>&6
4361 echo "$ac_t""yes" 1>&6
4363 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4364 # alternate readline path
4366 _cppflags=${CPPFLAGS}
4368 # Add additional search path
4369 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4370 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4372 for ac_hdr in readline.h history.h readline/readline.h
4374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4376 echo "configure:4377: checking for $ac_hdr" >&5
4377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4386 { (eval echo configure:4387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4388 if test -z "$ac_err"; then
4390 eval "ac_cv_header_$ac_safe=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_header_$ac_safe=no"
4400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4403 cat >> confdefs.h <<EOF
4404 #define $ac_tr_hdr 1
4408 echo "$ac_t""no" 1>&6
4412 for ac_hdr in readline/history.h
4414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4416 echo "configure:4417: checking for $ac_hdr" >&5
4417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4426 { (eval echo configure:4427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4428 if test -z "$ac_err"; then
4430 eval "ac_cv_header_$ac_safe=yes"
4433 echo "configure: failed program was:" >&5
4434 cat conftest.$ac_ext >&5
4436 eval "ac_cv_header_$ac_safe=no"
4440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4443 cat >> confdefs.h <<EOF
4444 #define $ac_tr_hdr 1
4448 echo "$ac_t""no" 1>&6
4453 for ac_hdr in readline.h readline/readline.h
4455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4457 echo "configure:4458: checking for $ac_hdr" >&5
4458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4467 { (eval echo configure:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4469 if test -z "$ac_err"; then
4471 eval "ac_cv_header_$ac_safe=yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4477 eval "ac_cv_header_$ac_safe=no"
4481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4484 cat >> confdefs.h <<EOF
4485 #define $ac_tr_hdr 1
4488 for termlib in ncurses curses termcap terminfo termlib; do
4489 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4490 echo "configure:4491: checking for tgetent in -l${termlib}" >&5
4491 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 ac_save_LIBS="$LIBS"
4496 LIBS="-l${termlib} $LIBS"
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4500 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_lib_$ac_lib_var=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_lib_$ac_lib_var=no"
4519 LIBS="$ac_save_LIBS"
4522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 TERMLIBS="-l${termlib}"; break
4526 echo "$ac_t""no" 1>&6
4530 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4531 echo "configure:4532: checking for rl_callback_handler_install in -lreadline" >&5
4532 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 ac_save_LIBS="$LIBS"
4537 LIBS="-lreadline $TERMLIBS $LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4544 char rl_callback_handler_install();
4547 rl_callback_handler_install()
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 TERMLDFLAGS="-L$with_readline/lib"
4566 TERMCPPFLAGS="-I$with_readline/include"
4567 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4568 TERMLIBS="-lreadline $TERMLIBS"
4569 cat >> confdefs.h <<\EOF
4570 #define HAVE_LIBREADLINE 1
4575 echo "$ac_t""no" 1>&6
4576 TERMLIBS= CPPFLAGS=$_cppflags
4580 echo "$ac_t""no" 1>&6
4589 echo "$ac_t""no" 1>&6
4596 # The readline API changed slightly from readline3 to readline4, so
4597 # code will generate warnings on one of them unless we have a few
4599 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4600 echo "configure:4601: checking for rl_completion_matches in -lreadline" >&5
4601 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 ac_save_LIBS="$LIBS"
4606 LIBS="-lreadline $TERMLIBS $LIBS"
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 /* Override any gcc2 internal prototype to avoid an error. */
4611 /* We use char because int might match the return type of a gcc2
4612 builtin and then its argument prototype would still apply. */
4613 char rl_completion_matches();
4616 rl_completion_matches()
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4621 eval "ac_cv_lib_$ac_lib_var=yes"
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4626 eval "ac_cv_lib_$ac_lib_var=no"
4629 LIBS="$ac_save_LIBS"
4632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 cat >> confdefs.h <<\EOF
4635 #define HAVE_NEW_LIBREADLINE 1
4639 echo "$ac_t""no" 1>&6
4643 # The following test taken from the cvs sources
4644 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4645 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4646 # libsocket.so which has a bad implementation of gethostbyname (it
4647 # only looks in /etc/hosts), so we only look for -lsocket if we need
4649 for ac_func in connect
4651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $ac_func" >&5
4653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 /* System header to define __stub macros and hopefully few prototypes,
4660 which can conflict with char $ac_func(); below. */
4662 /* Override any gcc2 internal prototype to avoid an error. */
4663 /* We use char because int might match the return type of a gcc2
4664 builtin and then its argument prototype would still apply. */
4669 /* The GNU C library defines this for functions which it implements
4670 to always fail with ENOSYS. Some functions are actually named
4671 something starting with __ and the normal name is an alias. */
4672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4682 eval "ac_cv_func_$ac_func=yes"
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4687 eval "ac_cv_func_$ac_func=no"
4692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4693 echo "$ac_t""yes" 1>&6
4694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4695 cat >> confdefs.h <<EOF
4696 #define $ac_tr_func 1
4700 echo "$ac_t""no" 1>&6
4704 if test x"$ac_cv_func_connect" = x"no"; then
4707 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4708 echo "configure:4709: checking for printf in -lnsl_s" >&5
4709 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4713 ac_save_LIBS="$LIBS"
4714 LIBS="-lnsl_s $LIBS"
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 /* Override any gcc2 internal prototype to avoid an error. */
4719 /* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 eval "ac_cv_lib_$ac_lib_var=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_lib_$ac_lib_var=no"
4737 LIBS="$ac_save_LIBS"
4740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4744 cat >> confdefs.h <<EOF
4745 #define $ac_tr_lib 1
4748 LIBS="-lnsl_s $LIBS"
4751 echo "$ac_t""no" 1>&6
4757 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4758 echo "configure:4759: checking for printf in -lnsl" >&5
4759 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 ac_save_LIBS="$LIBS"
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4777 if { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4779 eval "ac_cv_lib_$ac_lib_var=yes"
4781 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4784 eval "ac_cv_lib_$ac_lib_var=no"
4787 LIBS="$ac_save_LIBS"
4790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6
4792 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4793 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_lib 1
4801 echo "$ac_t""no" 1>&6
4807 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4808 echo "configure:4809: checking for connect in -lsocket" >&5
4809 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 ac_save_LIBS="$LIBS"
4814 LIBS="-lsocket $LIBS"
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 /* Override any gcc2 internal prototype to avoid an error. */
4819 /* We use char because int might match the return type of a gcc2
4820 builtin and then its argument prototype would still apply. */
4827 if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4829 eval "ac_cv_lib_$ac_lib_var=yes"
4831 echo "configure: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4834 eval "ac_cv_lib_$ac_lib_var=no"
4837 LIBS="$ac_save_LIBS"
4840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4841 echo "$ac_t""yes" 1>&6
4842 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4843 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4844 cat >> confdefs.h <<EOF
4845 #define $ac_tr_lib 1
4848 LIBS="-lsocket $LIBS"
4851 echo "$ac_t""no" 1>&6
4857 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4858 echo "configure:4859: checking for connect in -linet" >&5
4859 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 ac_save_LIBS="$LIBS"
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4879 eval "ac_cv_lib_$ac_lib_var=yes"
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4884 eval "ac_cv_lib_$ac_lib_var=no"
4887 LIBS="$ac_save_LIBS"
4890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4891 echo "$ac_t""yes" 1>&6
4892 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4893 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4894 cat >> confdefs.h <<EOF
4895 #define $ac_tr_lib 1
4901 echo "$ac_t""no" 1>&6
4905 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4906 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4907 # ac_cv_func_connect=yes
4908 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4909 cat >> confdefs.h <<\EOF
4910 #define HAVE_CONNECT 1
4916 ###############################################
4917 # test for where we get get_yp_default_domain() from
4918 for ac_func in yp_get_default_domain
4920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4921 echo "configure:4922: checking for $ac_func" >&5
4922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4925 cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* System header to define __stub macros and hopefully few prototypes,
4929 which can conflict with char $ac_func(); below. */
4931 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951 eval "ac_cv_func_$ac_func=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_func_$ac_func=no"
4961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4964 cat >> confdefs.h <<EOF
4965 #define $ac_tr_func 1
4969 echo "$ac_t""no" 1>&6
4973 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4974 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4975 echo "configure:4976: checking for yp_get_default_domain in -lnsl" >&5
4976 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 ac_save_LIBS="$LIBS"
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 /* We use char because int might match the return type of a gcc2
4987 builtin and then its argument prototype would still apply. */
4988 char yp_get_default_domain();
4991 yp_get_default_domain()
4994 if { (eval echo configure:4995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4996 eval "ac_cv_lib_$ac_lib_var=yes"
4998 echo "configure: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5001 eval "ac_cv_lib_$ac_lib_var=no"
5004 LIBS="$ac_save_LIBS"
5007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5008 echo "$ac_t""yes" 1>&6
5010 cat >> confdefs.h <<\EOF
5011 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5015 echo "$ac_t""no" 1>&6
5020 # Check if we have execl, if not we need to compile smbrun.
5021 for ac_func in execl
5023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5024 echo "configure:5025: checking for $ac_func" >&5
5025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5031 /* System header to define __stub macros and hopefully few prototypes,
5032 which can conflict with char $ac_func(); below. */
5034 /* Override any gcc2 internal prototype to avoid an error. */
5035 /* We use char because int might match the return type of a gcc2
5036 builtin and then its argument prototype would still apply. */
5041 /* The GNU C library defines this for functions which it implements
5042 to always fail with ENOSYS. Some functions are actually named
5043 something starting with __ and the normal name is an alias. */
5044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5052 if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5054 eval "ac_cv_func_$ac_func=yes"
5056 echo "configure: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5059 eval "ac_cv_func_$ac_func=no"
5064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5065 echo "$ac_t""yes" 1>&6
5066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5067 cat >> confdefs.h <<EOF
5068 #define $ac_tr_func 1
5072 echo "$ac_t""no" 1>&6
5076 if test x"$ac_cv_func_execl" = x"no"; then
5077 RUNPROG="bin/smbrun"
5082 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5085 echo "configure:5086: checking for $ac_func" >&5
5086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5087 echo $ac_n "(cached) $ac_c" 1>&6
5089 cat > conftest.$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5092 /* System header to define __stub macros and hopefully few prototypes,
5093 which can conflict with char $ac_func(); below. */
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5102 /* The GNU C library defines this for functions which it implements
5103 to always fail with ENOSYS. Some functions are actually named
5104 something starting with __ and the normal name is an alias. */
5105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5115 eval "ac_cv_func_$ac_func=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5120 eval "ac_cv_func_$ac_func=no"
5125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5126 echo "$ac_t""yes" 1>&6
5127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5128 cat >> confdefs.h <<EOF
5129 #define $ac_tr_func 1
5133 echo "$ac_t""no" 1>&6
5137 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat
5139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5140 echo "configure:5141: checking for $ac_func" >&5
5141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5147 /* System header to define __stub macros and hopefully few prototypes,
5148 which can conflict with char $ac_func(); below. */
5150 /* Override any gcc2 internal prototype to avoid an error. */
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5157 /* The GNU C library defines this for functions which it implements
5158 to always fail with ENOSYS. Some functions are actually named
5159 something starting with __ and the normal name is an alias. */
5160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5168 if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5170 eval "ac_cv_func_$ac_func=yes"
5172 echo "configure: failed program was:" >&5
5173 cat conftest.$ac_ext >&5
5175 eval "ac_cv_func_$ac_func=no"
5180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5181 echo "$ac_t""yes" 1>&6
5182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5183 cat >> confdefs.h <<EOF
5184 #define $ac_tr_func 1
5188 echo "$ac_t""no" 1>&6
5192 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5195 echo "configure:5196: checking for $ac_func" >&5
5196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 /* System header to define __stub macros and hopefully few prototypes,
5203 which can conflict with char $ac_func(); below. */
5205 /* Override any gcc2 internal prototype to avoid an error. */
5206 /* We use char because int might match the return type of a gcc2
5207 builtin and then its argument prototype would still apply. */
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5223 if { (eval echo configure:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5225 eval "ac_cv_func_$ac_func=yes"
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5230 eval "ac_cv_func_$ac_func=no"
5235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5236 echo "$ac_t""yes" 1>&6
5237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5238 cat >> confdefs.h <<EOF
5239 #define $ac_tr_func 1
5243 echo "$ac_t""no" 1>&6
5247 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5250 echo "configure:5251: checking for $ac_func" >&5
5251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5257 /* System header to define __stub macros and hopefully few prototypes,
5258 which can conflict with char $ac_func(); below. */
5260 /* Override any gcc2 internal prototype to avoid an error. */
5261 /* We use char because int might match the return type of a gcc2
5262 builtin and then its argument prototype would still apply. */
5267 /* The GNU C library defines this for functions which it implements
5268 to always fail with ENOSYS. Some functions are actually named
5269 something starting with __ and the normal name is an alias. */
5270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5278 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5280 eval "ac_cv_func_$ac_func=yes"
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5285 eval "ac_cv_func_$ac_func=no"
5290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5291 echo "$ac_t""yes" 1>&6
5292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5293 cat >> confdefs.h <<EOF
5294 #define $ac_tr_func 1
5298 echo "$ac_t""no" 1>&6
5302 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5305 echo "configure:5306: checking for $ac_func" >&5
5306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5312 /* System header to define __stub macros and hopefully few prototypes,
5313 which can conflict with char $ac_func(); below. */
5315 /* Override any gcc2 internal prototype to avoid an error. */
5316 /* We use char because int might match the return type of a gcc2
5317 builtin and then its argument prototype would still apply. */
5322 /* The GNU C library defines this for functions which it implements
5323 to always fail with ENOSYS. Some functions are actually named
5324 something starting with __ and the normal name is an alias. */
5325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5333 if { (eval echo configure:5334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5335 eval "ac_cv_func_$ac_func=yes"
5337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5340 eval "ac_cv_func_$ac_func=no"
5345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5346 echo "$ac_t""yes" 1>&6
5347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5348 cat >> confdefs.h <<EOF
5349 #define $ac_tr_func 1
5353 echo "$ac_t""no" 1>&6
5357 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5360 echo "configure:5361: checking for $ac_func" >&5
5361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5367 /* System header to define __stub macros and hopefully few prototypes,
5368 which can conflict with char $ac_func(); below. */
5370 /* Override any gcc2 internal prototype to avoid an error. */
5371 /* We use char because int might match the return type of a gcc2
5372 builtin and then its argument prototype would still apply. */
5377 /* The GNU C library defines this for functions which it implements
5378 to always fail with ENOSYS. Some functions are actually named
5379 something starting with __ and the normal name is an alias. */
5380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5388 if { (eval echo configure:5389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5390 eval "ac_cv_func_$ac_func=yes"
5392 echo "configure: failed program was:" >&5
5393 cat conftest.$ac_ext >&5
5395 eval "ac_cv_func_$ac_func=no"
5400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5401 echo "$ac_t""yes" 1>&6
5402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5403 cat >> confdefs.h <<EOF
5404 #define $ac_tr_func 1
5408 echo "$ac_t""no" 1>&6
5412 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5415 echo "configure:5416: checking for $ac_func" >&5
5416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 /* System header to define __stub macros and hopefully few prototypes,
5423 which can conflict with char $ac_func(); below. */
5425 /* Override any gcc2 internal prototype to avoid an error. */
5426 /* We use char because int might match the return type of a gcc2
5427 builtin and then its argument prototype would still apply. */
5432 /* The GNU C library defines this for functions which it implements
5433 to always fail with ENOSYS. Some functions are actually named
5434 something starting with __ and the normal name is an alias. */
5435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445 eval "ac_cv_func_$ac_func=yes"
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 eval "ac_cv_func_$ac_func=no"
5455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5456 echo "$ac_t""yes" 1>&6
5457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5458 cat >> confdefs.h <<EOF
5459 #define $ac_tr_func 1
5463 echo "$ac_t""no" 1>&6
5467 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5470 echo "configure:5471: checking for $ac_func" >&5
5471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5472 echo $ac_n "(cached) $ac_c" 1>&6
5474 cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5477 /* System header to define __stub macros and hopefully few prototypes,
5478 which can conflict with char $ac_func(); below. */
5480 /* Override any gcc2 internal prototype to avoid an error. */
5481 /* We use char because int might match the return type of a gcc2
5482 builtin and then its argument prototype would still apply. */
5487 /* The GNU C library defines this for functions which it implements
5488 to always fail with ENOSYS. Some functions are actually named
5489 something starting with __ and the normal name is an alias. */
5490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5500 eval "ac_cv_func_$ac_func=yes"
5502 echo "configure: failed program was:" >&5
5503 cat conftest.$ac_ext >&5
5505 eval "ac_cv_func_$ac_func=no"
5510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5511 echo "$ac_t""yes" 1>&6
5512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5513 cat >> confdefs.h <<EOF
5514 #define $ac_tr_func 1
5518 echo "$ac_t""no" 1>&6
5522 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5525 echo "configure:5526: checking for $ac_func" >&5
5526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 /* System header to define __stub macros and hopefully few prototypes,
5533 which can conflict with char $ac_func(); below. */
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5542 /* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5555 eval "ac_cv_func_$ac_func=yes"
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 eval "ac_cv_func_$ac_func=no"
5565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5566 echo "$ac_t""yes" 1>&6
5567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5568 cat >> confdefs.h <<EOF
5569 #define $ac_tr_func 1
5573 echo "$ac_t""no" 1>&6
5577 # setbuffer is needed for smbtorture
5578 for ac_func in setbuffer
5580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5581 echo "configure:5582: checking for $ac_func" >&5
5582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5583 echo $ac_n "(cached) $ac_c" 1>&6
5585 cat > conftest.$ac_ext <<EOF
5586 #line 5587 "configure"
5587 #include "confdefs.h"
5588 /* System header to define __stub macros and hopefully few prototypes,
5589 which can conflict with char $ac_func(); below. */
5591 /* Override any gcc2 internal prototype to avoid an error. */
5592 /* We use char because int might match the return type of a gcc2
5593 builtin and then its argument prototype would still apply. */
5598 /* The GNU C library defines this for functions which it implements
5599 to always fail with ENOSYS. Some functions are actually named
5600 something starting with __ and the normal name is an alias. */
5601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5609 if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611 eval "ac_cv_func_$ac_func=yes"
5613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5616 eval "ac_cv_func_$ac_func=no"
5621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5622 echo "$ac_t""yes" 1>&6
5623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5624 cat >> confdefs.h <<EOF
5625 #define $ac_tr_func 1
5629 echo "$ac_t""no" 1>&6
5634 # syscall() is needed for smbwrapper.
5635 for ac_func in syscall
5637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5638 echo "configure:5639: checking for $ac_func" >&5
5639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5642 cat > conftest.$ac_ext <<EOF
5643 #line 5644 "configure"
5644 #include "confdefs.h"
5645 /* System header to define __stub macros and hopefully few prototypes,
5646 which can conflict with char $ac_func(); below. */
5648 /* Override any gcc2 internal prototype to avoid an error. */
5649 /* We use char because int might match the return type of a gcc2
5650 builtin and then its argument prototype would still apply. */
5655 /* The GNU C library defines this for functions which it implements
5656 to always fail with ENOSYS. Some functions are actually named
5657 something starting with __ and the normal name is an alias. */
5658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5668 eval "ac_cv_func_$ac_func=yes"
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 eval "ac_cv_func_$ac_func=no"
5678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5679 echo "$ac_t""yes" 1>&6
5680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5681 cat >> confdefs.h <<EOF
5682 #define $ac_tr_func 1
5686 echo "$ac_t""no" 1>&6
5691 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5694 echo "configure:5695: checking for $ac_func" >&5
5695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5698 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5701 /* System header to define __stub macros and hopefully few prototypes,
5702 which can conflict with char $ac_func(); below. */
5704 /* Override any gcc2 internal prototype to avoid an error. */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5711 /* The GNU C library defines this for functions which it implements
5712 to always fail with ENOSYS. Some functions are actually named
5713 something starting with __ and the normal name is an alias. */
5714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5722 if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5724 eval "ac_cv_func_$ac_func=yes"
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5729 eval "ac_cv_func_$ac_func=no"
5734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5735 echo "$ac_t""yes" 1>&6
5736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5737 cat >> confdefs.h <<EOF
5738 #define $ac_tr_func 1
5742 echo "$ac_t""no" 1>&6
5746 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5749 echo "configure:5750: checking for $ac_func" >&5
5750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5756 /* System header to define __stub macros and hopefully few prototypes,
5757 which can conflict with char $ac_func(); below. */
5759 /* Override any gcc2 internal prototype to avoid an error. */
5760 /* We use char because int might match the return type of a gcc2
5761 builtin and then its argument prototype would still apply. */
5766 /* The GNU C library defines this for functions which it implements
5767 to always fail with ENOSYS. Some functions are actually named
5768 something starting with __ and the normal name is an alias. */
5769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5779 eval "ac_cv_func_$ac_func=yes"
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5784 eval "ac_cv_func_$ac_func=no"
5789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5790 echo "$ac_t""yes" 1>&6
5791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5792 cat >> confdefs.h <<EOF
5793 #define $ac_tr_func 1
5797 echo "$ac_t""no" 1>&6
5801 for ac_func in __getcwd _getcwd
5803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5804 echo "configure:5805: checking for $ac_func" >&5
5805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5806 echo $ac_n "(cached) $ac_c" 1>&6
5808 cat > conftest.$ac_ext <<EOF
5809 #line 5810 "configure"
5810 #include "confdefs.h"
5811 /* System header to define __stub macros and hopefully few prototypes,
5812 which can conflict with char $ac_func(); below. */
5814 /* Override any gcc2 internal prototype to avoid an error. */
5815 /* We use char because int might match the return type of a gcc2
5816 builtin and then its argument prototype would still apply. */
5821 /* The GNU C library defines this for functions which it implements
5822 to always fail with ENOSYS. Some functions are actually named
5823 something starting with __ and the normal name is an alias. */
5824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5832 if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5834 eval "ac_cv_func_$ac_func=yes"
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 eval "ac_cv_func_$ac_func=no"
5844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5845 echo "$ac_t""yes" 1>&6
5846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5847 cat >> confdefs.h <<EOF
5848 #define $ac_tr_func 1
5852 echo "$ac_t""no" 1>&6
5856 for ac_func in __xstat __fxstat __lxstat
5858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5859 echo "configure:5860: checking for $ac_func" >&5
5860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5861 echo $ac_n "(cached) $ac_c" 1>&6
5863 cat > conftest.$ac_ext <<EOF
5864 #line 5865 "configure"
5865 #include "confdefs.h"
5866 /* System header to define __stub macros and hopefully few prototypes,
5867 which can conflict with char $ac_func(); below. */
5869 /* Override any gcc2 internal prototype to avoid an error. */
5870 /* We use char because int might match the return type of a gcc2
5871 builtin and then its argument prototype would still apply. */
5876 /* The GNU C library defines this for functions which it implements
5877 to always fail with ENOSYS. Some functions are actually named
5878 something starting with __ and the normal name is an alias. */
5879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5887 if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5889 eval "ac_cv_func_$ac_func=yes"
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5894 eval "ac_cv_func_$ac_func=no"
5899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5900 echo "$ac_t""yes" 1>&6
5901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5902 cat >> confdefs.h <<EOF
5903 #define $ac_tr_func 1
5907 echo "$ac_t""no" 1>&6
5911 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5914 echo "configure:5915: checking for $ac_func" >&5
5915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 cat > conftest.$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5921 /* System header to define __stub macros and hopefully few prototypes,
5922 which can conflict with char $ac_func(); below. */
5924 /* Override any gcc2 internal prototype to avoid an error. */
5925 /* We use char because int might match the return type of a gcc2
5926 builtin and then its argument prototype would still apply. */
5931 /* The GNU C library defines this for functions which it implements
5932 to always fail with ENOSYS. Some functions are actually named
5933 something starting with __ and the normal name is an alias. */
5934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5944 eval "ac_cv_func_$ac_func=yes"
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 eval "ac_cv_func_$ac_func=no"
5954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5955 echo "$ac_t""yes" 1>&6
5956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5957 cat >> confdefs.h <<EOF
5958 #define $ac_tr_func 1
5962 echo "$ac_t""no" 1>&6
5966 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5969 echo "configure:5970: checking for $ac_func" >&5
5970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5971 echo $ac_n "(cached) $ac_c" 1>&6
5973 cat > conftest.$ac_ext <<EOF
5974 #line 5975 "configure"
5975 #include "confdefs.h"
5976 /* System header to define __stub macros and hopefully few prototypes,
5977 which can conflict with char $ac_func(); below. */
5979 /* Override any gcc2 internal prototype to avoid an error. */
5980 /* We use char because int might match the return type of a gcc2
5981 builtin and then its argument prototype would still apply. */
5986 /* The GNU C library defines this for functions which it implements
5987 to always fail with ENOSYS. Some functions are actually named
5988 something starting with __ and the normal name is an alias. */
5989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5997 if { (eval echo configure:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5999 eval "ac_cv_func_$ac_func=yes"
6001 echo "configure: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6004 eval "ac_cv_func_$ac_func=no"
6009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6010 echo "$ac_t""yes" 1>&6
6011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6012 cat >> confdefs.h <<EOF
6013 #define $ac_tr_func 1
6017 echo "$ac_t""no" 1>&6
6021 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6024 echo "configure:6025: checking for $ac_func" >&5
6025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6026 echo $ac_n "(cached) $ac_c" 1>&6
6028 cat > conftest.$ac_ext <<EOF
6029 #line 6030 "configure"
6030 #include "confdefs.h"
6031 /* System header to define __stub macros and hopefully few prototypes,
6032 which can conflict with char $ac_func(); below. */
6034 /* Override any gcc2 internal prototype to avoid an error. */
6035 /* We use char because int might match the return type of a gcc2
6036 builtin and then its argument prototype would still apply. */
6041 /* The GNU C library defines this for functions which it implements
6042 to always fail with ENOSYS. Some functions are actually named
6043 something starting with __ and the normal name is an alias. */
6044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6054 eval "ac_cv_func_$ac_func=yes"
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6059 eval "ac_cv_func_$ac_func=no"
6064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6065 echo "$ac_t""yes" 1>&6
6066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6067 cat >> confdefs.h <<EOF
6068 #define $ac_tr_func 1
6072 echo "$ac_t""no" 1>&6
6076 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6079 echo "configure:6080: checking for $ac_func" >&5
6080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char $ac_func(); below. */
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6096 /* The GNU C library defines this for functions which it implements
6097 to always fail with ENOSYS. Some functions are actually named
6098 something starting with __ and the normal name is an alias. */
6099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 eval "ac_cv_func_$ac_func=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_func_$ac_func=no"
6119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6122 cat >> confdefs.h <<EOF
6123 #define $ac_tr_func 1
6127 echo "$ac_t""no" 1>&6
6131 for ac_func in _write __write _fork __fork
6133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6134 echo "configure:6135: checking for $ac_func" >&5
6135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6141 /* System header to define __stub macros and hopefully few prototypes,
6142 which can conflict with char $ac_func(); below. */
6144 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6151 /* The GNU C library defines this for functions which it implements
6152 to always fail with ENOSYS. Some functions are actually named
6153 something starting with __ and the normal name is an alias. */
6154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162 if { (eval echo configure:6163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6164 eval "ac_cv_func_$ac_func=yes"
6166 echo "configure: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6169 eval "ac_cv_func_$ac_func=no"
6174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6175 echo "$ac_t""yes" 1>&6
6176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6177 cat >> confdefs.h <<EOF
6178 #define $ac_tr_func 1
6182 echo "$ac_t""no" 1>&6
6186 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6189 echo "configure:6190: checking for $ac_func" >&5
6190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6193 cat > conftest.$ac_ext <<EOF
6194 #line 6195 "configure"
6195 #include "confdefs.h"
6196 /* System header to define __stub macros and hopefully few prototypes,
6197 which can conflict with char $ac_func(); below. */
6199 /* Override any gcc2 internal prototype to avoid an error. */
6200 /* We use char because int might match the return type of a gcc2
6201 builtin and then its argument prototype would still apply. */
6206 /* The GNU C library defines this for functions which it implements
6207 to always fail with ENOSYS. Some functions are actually named
6208 something starting with __ and the normal name is an alias. */
6209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217 if { (eval echo configure:6218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6219 eval "ac_cv_func_$ac_func=yes"
6221 echo "configure: failed program was:" >&5
6222 cat conftest.$ac_ext >&5
6224 eval "ac_cv_func_$ac_func=no"
6229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6230 echo "$ac_t""yes" 1>&6
6231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6232 cat >> confdefs.h <<EOF
6233 #define $ac_tr_func 1
6237 echo "$ac_t""no" 1>&6
6241 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_func" >&5
6245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 /* System header to define __stub macros and hopefully few prototypes,
6252 which can conflict with char $ac_func(); below. */
6254 /* Override any gcc2 internal prototype to avoid an error. */
6255 /* We use char because int might match the return type of a gcc2
6256 builtin and then its argument prototype would still apply. */
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272 if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6274 eval "ac_cv_func_$ac_func=yes"
6276 echo "configure: failed program was:" >&5
6277 cat conftest.$ac_ext >&5
6279 eval "ac_cv_func_$ac_func=no"
6284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6285 echo "$ac_t""yes" 1>&6
6286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6287 cat >> confdefs.h <<EOF
6288 #define $ac_tr_func 1
6292 echo "$ac_t""no" 1>&6
6296 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_func" >&5
6300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 /* System header to define __stub macros and hopefully few prototypes,
6307 which can conflict with char $ac_func(); below. */
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 /* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */
6316 /* The GNU C library defines this for functions which it implements
6317 to always fail with ENOSYS. Some functions are actually named
6318 something starting with __ and the normal name is an alias. */
6319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6329 eval "ac_cv_func_$ac_func=yes"
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 eval "ac_cv_func_$ac_func=no"
6339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6342 cat >> confdefs.h <<EOF
6343 #define $ac_tr_func 1
6347 echo "$ac_t""no" 1>&6
6351 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6354 echo "configure:6355: checking for $ac_func" >&5
6355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* System header to define __stub macros and hopefully few prototypes,
6362 which can conflict with char $ac_func(); below. */
6364 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6371 /* The GNU C library defines this for functions which it implements
6372 to always fail with ENOSYS. Some functions are actually named
6373 something starting with __ and the normal name is an alias. */
6374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6382 if { (eval echo configure:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6384 eval "ac_cv_func_$ac_func=yes"
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6389 eval "ac_cv_func_$ac_func=no"
6394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6395 echo "$ac_t""yes" 1>&6
6396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6397 cat >> confdefs.h <<EOF
6398 #define $ac_tr_func 1
6402 echo "$ac_t""no" 1>&6
6406 for ac_func in open64 _open64 __open64 creat64
6408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6409 echo "configure:6410: checking for $ac_func" >&5
6410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6413 cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6416 /* System header to define __stub macros and hopefully few prototypes,
6417 which can conflict with char $ac_func(); below. */
6419 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6426 /* The GNU C library defines this for functions which it implements
6427 to always fail with ENOSYS. Some functions are actually named
6428 something starting with __ and the normal name is an alias. */
6429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6437 if { (eval echo configure:6438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6439 eval "ac_cv_func_$ac_func=yes"
6441 echo "configure: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6444 eval "ac_cv_func_$ac_func=no"
6449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6450 echo "$ac_t""yes" 1>&6
6451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6452 cat >> confdefs.h <<EOF
6453 #define $ac_tr_func 1
6457 echo "$ac_t""no" 1>&6
6463 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6466 if test x$ac_cv_func_stat64 = xno ; then
6467 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6468 echo "configure:6469: checking for stat64 in <sys/stat.h>" >&5
6469 cat > conftest.$ac_ext <<EOF
6470 #line 6471 "configure"
6471 #include "confdefs.h"
6473 #if defined(HAVE_UNISTD_H)
6476 #include <sys/stat.h>
6479 struct stat64 st64; exit(stat64(".",&st64));
6482 if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6484 ac_cv_func_stat64=yes
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6490 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6491 if test x$ac_cv_func_stat64 = xyes ; then
6492 cat >> confdefs.h <<\EOF
6493 #define HAVE_STAT64 1
6499 if test x$ac_cv_func_lstat64 = xno ; then
6500 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6501 echo "configure:6502: checking for lstat64 in <sys/stat.h>" >&5
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6506 #if defined(HAVE_UNISTD_H)
6509 #include <sys/stat.h>
6512 struct stat64 st64; exit(lstat64(".",&st64));
6515 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6517 ac_cv_func_lstat64=yes
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6523 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6524 if test x$ac_cv_func_lstat64 = xyes ; then
6525 cat >> confdefs.h <<\EOF
6526 #define HAVE_LSTAT64 1
6532 if test x$ac_cv_func_fstat64 = xno ; then
6533 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6534 echo "configure:6535: checking for fstat64 in <sys/stat.h>" >&5
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6539 #if defined(HAVE_UNISTD_H)
6542 #include <sys/stat.h>
6545 struct stat64 st64; exit(fstat64(0,&st64));
6548 if { (eval echo configure:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 ac_cv_func_fstat64=yes
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6556 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6557 if test x$ac_cv_func_fstat64 = xyes ; then
6558 cat >> confdefs.h <<\EOF
6559 #define HAVE_FSTAT64 1
6565 #####################################
6566 # we might need the resolv library on some systems
6567 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6568 echo "configure:6569: checking for dn_expand in -lresolv" >&5
6569 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 ac_save_LIBS="$LIBS"
6574 LIBS="-lresolv $LIBS"
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */
6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6589 eval "ac_cv_lib_$ac_lib_var=yes"
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6594 eval "ac_cv_lib_$ac_lib_var=no"
6597 LIBS="$ac_save_LIBS"
6600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6601 echo "$ac_t""yes" 1>&6
6602 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6603 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6604 cat >> confdefs.h <<EOF
6605 #define $ac_tr_lib 1
6608 LIBS="-lresolv $LIBS"
6611 echo "$ac_t""no" 1>&6
6616 # Check for the functions putprpwnam, set_auth_parameters,
6617 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6618 # Needed for OSF1 and HPUX.
6622 *-lsecurity*) for ac_func in putprpwnam
6624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6625 echo "configure:6626: checking for $ac_func" >&5
6626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6632 /* System header to define __stub macros and hopefully few prototypes,
6633 which can conflict with char $ac_func(); below. */
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6642 /* The GNU C library defines this for functions which it implements
6643 to always fail with ENOSYS. Some functions are actually named
6644 something starting with __ and the normal name is an alias. */
6645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6655 eval "ac_cv_func_$ac_func=yes"
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6660 eval "ac_cv_func_$ac_func=no"
6665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6666 echo "$ac_t""yes" 1>&6
6667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6668 cat >> confdefs.h <<EOF
6669 #define $ac_tr_func 1
6673 echo "$ac_t""no" 1>&6
6677 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6678 echo "configure:6679: checking for putprpwnam in -lsecurity" >&5
6679 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6683 ac_save_LIBS="$LIBS"
6684 LIBS="-lsecurity $LIBS"
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* Override any gcc2 internal prototype to avoid an error. */
6689 /* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */
6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6699 eval "ac_cv_lib_$ac_lib_var=yes"
6701 echo "configure: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6704 eval "ac_cv_lib_$ac_lib_var=no"
6707 LIBS="$ac_save_LIBS"
6710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6
6712 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6714 cat >> confdefs.h <<EOF
6715 #define $ac_tr_lib 1
6718 LIBS="-lsecurity $LIBS"
6721 echo "$ac_t""no" 1>&6
6724 for ac_func in putprpwnam
6726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6727 echo "configure:6728: checking for $ac_func" >&5
6728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char $ac_func(); below. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 eval "ac_cv_func_$ac_func=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_func_$ac_func=no"
6767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6768 echo "$ac_t""yes" 1>&6
6769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6770 cat >> confdefs.h <<EOF
6771 #define $ac_tr_func 1
6775 echo "$ac_t""no" 1>&6
6783 *-lsec*) for ac_func in putprpwnam
6785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6786 echo "configure:6787: checking for $ac_func" >&5
6787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 /* System header to define __stub macros and hopefully few prototypes,
6794 which can conflict with char $ac_func(); below. */
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 /* We use char because int might match the return type of a gcc2
6798 builtin and then its argument prototype would still apply. */
6803 /* The GNU C library defines this for functions which it implements
6804 to always fail with ENOSYS. Some functions are actually named
6805 something starting with __ and the normal name is an alias. */
6806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6816 eval "ac_cv_func_$ac_func=yes"
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6821 eval "ac_cv_func_$ac_func=no"
6826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6827 echo "$ac_t""yes" 1>&6
6828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6829 cat >> confdefs.h <<EOF
6830 #define $ac_tr_func 1
6834 echo "$ac_t""no" 1>&6
6838 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6839 echo "configure:6840: checking for putprpwnam in -lsec" >&5
6840 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 ac_save_LIBS="$LIBS"
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* Override any gcc2 internal prototype to avoid an error. */
6850 /* We use char because int might match the return type of a gcc2
6851 builtin and then its argument prototype would still apply. */
6858 if { (eval echo configure:6859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6860 eval "ac_cv_lib_$ac_lib_var=yes"
6862 echo "configure: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 eval "ac_cv_lib_$ac_lib_var=no"
6868 LIBS="$ac_save_LIBS"
6871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6872 echo "$ac_t""yes" 1>&6
6873 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6875 cat >> confdefs.h <<EOF
6876 #define $ac_tr_lib 1
6882 echo "$ac_t""no" 1>&6
6885 for ac_func in putprpwnam
6887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6888 echo "configure:6889: checking for $ac_func" >&5
6889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6892 cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6895 /* System header to define __stub macros and hopefully few prototypes,
6896 which can conflict with char $ac_func(); below. */
6898 /* Override any gcc2 internal prototype to avoid an error. */
6899 /* We use char because int might match the return type of a gcc2
6900 builtin and then its argument prototype would still apply. */
6905 /* The GNU C library defines this for functions which it implements
6906 to always fail with ENOSYS. Some functions are actually named
6907 something starting with __ and the normal name is an alias. */
6908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6916 if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6918 eval "ac_cv_func_$ac_func=yes"
6920 echo "configure: failed program was:" >&5
6921 cat conftest.$ac_ext >&5
6923 eval "ac_cv_func_$ac_func=no"
6928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6931 cat >> confdefs.h <<EOF
6932 #define $ac_tr_func 1
6936 echo "$ac_t""no" 1>&6
6945 *-lsecurity*) for ac_func in set_auth_parameters
6947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6948 echo "configure:6949: checking for $ac_func" >&5
6949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6952 cat > conftest.$ac_ext <<EOF
6953 #line 6954 "configure"
6954 #include "confdefs.h"
6955 /* System header to define __stub macros and hopefully few prototypes,
6956 which can conflict with char $ac_func(); below. */
6958 /* Override any gcc2 internal prototype to avoid an error. */
6959 /* We use char because int might match the return type of a gcc2
6960 builtin and then its argument prototype would still apply. */
6965 /* The GNU C library defines this for functions which it implements
6966 to always fail with ENOSYS. Some functions are actually named
6967 something starting with __ and the normal name is an alias. */
6968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6976 if { (eval echo configure:6977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6978 eval "ac_cv_func_$ac_func=yes"
6980 echo "configure: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6983 eval "ac_cv_func_$ac_func=no"
6988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6989 echo "$ac_t""yes" 1>&6
6990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6991 cat >> confdefs.h <<EOF
6992 #define $ac_tr_func 1
6996 echo "$ac_t""no" 1>&6
7000 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7001 echo "configure:7002: checking for set_auth_parameters in -lsecurity" >&5
7002 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7004 echo $ac_n "(cached) $ac_c" 1>&6
7006 ac_save_LIBS="$LIBS"
7007 LIBS="-lsecurity $LIBS"
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 /* Override any gcc2 internal prototype to avoid an error. */
7012 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */
7014 char set_auth_parameters();
7017 set_auth_parameters()
7020 if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7022 eval "ac_cv_lib_$ac_lib_var=yes"
7024 echo "configure: failed program was:" >&5
7025 cat conftest.$ac_ext >&5
7027 eval "ac_cv_lib_$ac_lib_var=no"
7030 LIBS="$ac_save_LIBS"
7033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7034 echo "$ac_t""yes" 1>&6
7035 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7037 cat >> confdefs.h <<EOF
7038 #define $ac_tr_lib 1
7041 LIBS="-lsecurity $LIBS"
7044 echo "$ac_t""no" 1>&6
7047 for ac_func in set_auth_parameters
7049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7050 echo "configure:7051: checking for $ac_func" >&5
7051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057 /* System header to define __stub macros and hopefully few prototypes,
7058 which can conflict with char $ac_func(); below. */
7060 /* Override any gcc2 internal prototype to avoid an error. */
7061 /* We use char because int might match the return type of a gcc2
7062 builtin and then its argument prototype would still apply. */
7067 /* The GNU C library defines this for functions which it implements
7068 to always fail with ENOSYS. Some functions are actually named
7069 something starting with __ and the normal name is an alias. */
7070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7078 if { (eval echo configure:7079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7080 eval "ac_cv_func_$ac_func=yes"
7082 echo "configure: failed program was:" >&5
7083 cat conftest.$ac_ext >&5
7085 eval "ac_cv_func_$ac_func=no"
7090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7091 echo "$ac_t""yes" 1>&6
7092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7093 cat >> confdefs.h <<EOF
7094 #define $ac_tr_func 1
7098 echo "$ac_t""no" 1>&6
7106 *-lsec*) for ac_func in set_auth_parameters
7108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7109 echo "configure:7110: checking for $ac_func" >&5
7110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7111 echo $ac_n "(cached) $ac_c" 1>&6
7113 cat > conftest.$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7116 /* System header to define __stub macros and hopefully few prototypes,
7117 which can conflict with char $ac_func(); below. */
7119 /* Override any gcc2 internal prototype to avoid an error. */
7120 /* We use char because int might match the return type of a gcc2
7121 builtin and then its argument prototype would still apply. */
7126 /* The GNU C library defines this for functions which it implements
7127 to always fail with ENOSYS. Some functions are actually named
7128 something starting with __ and the normal name is an alias. */
7129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7139 eval "ac_cv_func_$ac_func=yes"
7141 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 eval "ac_cv_func_$ac_func=no"
7149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7150 echo "$ac_t""yes" 1>&6
7151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7152 cat >> confdefs.h <<EOF
7153 #define $ac_tr_func 1
7157 echo "$ac_t""no" 1>&6
7161 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7162 echo "configure:7163: checking for set_auth_parameters in -lsec" >&5
7163 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 ac_save_LIBS="$LIBS"
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* Override any gcc2 internal prototype to avoid an error. */
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7175 char set_auth_parameters();
7178 set_auth_parameters()
7181 if { (eval echo configure:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7183 eval "ac_cv_lib_$ac_lib_var=yes"
7185 echo "configure: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7188 eval "ac_cv_lib_$ac_lib_var=no"
7191 LIBS="$ac_save_LIBS"
7194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7195 echo "$ac_t""yes" 1>&6
7196 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7198 cat >> confdefs.h <<EOF
7199 #define $ac_tr_lib 1
7205 echo "$ac_t""no" 1>&6
7208 for ac_func in set_auth_parameters
7210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7211 echo "configure:7212: checking for $ac_func" >&5
7212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 /* System header to define __stub macros and hopefully few prototypes,
7219 which can conflict with char $ac_func(); below. */
7221 /* Override any gcc2 internal prototype to avoid an error. */
7222 /* We use char because int might match the return type of a gcc2
7223 builtin and then its argument prototype would still apply. */
7228 /* The GNU C library defines this for functions which it implements
7229 to always fail with ENOSYS. Some functions are actually named
7230 something starting with __ and the normal name is an alias. */
7231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7241 eval "ac_cv_func_$ac_func=yes"
7243 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7246 eval "ac_cv_func_$ac_func=no"
7251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7252 echo "$ac_t""yes" 1>&6
7253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7254 cat >> confdefs.h <<EOF
7255 #define $ac_tr_func 1
7259 echo "$ac_t""no" 1>&6
7267 # UnixWare 7.x has its getspnam in -lgen
7269 *-lgen*) for ac_func in getspnam
7271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7272 echo "configure:7273: checking for $ac_func" >&5
7273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 /* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char $ac_func(); below. */
7282 /* Override any gcc2 internal prototype to avoid an error. */
7283 /* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7289 /* The GNU C library defines this for functions which it implements
7290 to always fail with ENOSYS. Some functions are actually named
7291 something starting with __ and the normal name is an alias. */
7292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7302 eval "ac_cv_func_$ac_func=yes"
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 eval "ac_cv_func_$ac_func=no"
7312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7313 echo "$ac_t""yes" 1>&6
7314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7315 cat >> confdefs.h <<EOF
7316 #define $ac_tr_func 1
7320 echo "$ac_t""no" 1>&6
7324 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7325 echo "configure:7326: checking for getspnam in -lgen" >&5
7326 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 ac_save_LIBS="$LIBS"
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 /* Override any gcc2 internal prototype to avoid an error. */
7336 /* We use char because int might match the return type of a gcc2
7337 builtin and then its argument prototype would still apply. */
7344 if { (eval echo configure:7345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7346 eval "ac_cv_lib_$ac_lib_var=yes"
7348 echo "configure: failed program was:" >&5
7349 cat conftest.$ac_ext >&5
7351 eval "ac_cv_lib_$ac_lib_var=no"
7354 LIBS="$ac_save_LIBS"
7357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7358 echo "$ac_t""yes" 1>&6
7359 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7361 cat >> confdefs.h <<EOF
7362 #define $ac_tr_lib 1
7368 echo "$ac_t""no" 1>&6
7371 for ac_func in getspnam
7373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7374 echo "configure:7375: checking for $ac_func" >&5
7375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7376 echo $ac_n "(cached) $ac_c" 1>&6
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 /* System header to define __stub macros and hopefully few prototypes,
7382 which can conflict with char $ac_func(); below. */
7384 /* Override any gcc2 internal prototype to avoid an error. */
7385 /* We use char because int might match the return type of a gcc2
7386 builtin and then its argument prototype would still apply. */
7391 /* The GNU C library defines this for functions which it implements
7392 to always fail with ENOSYS. Some functions are actually named
7393 something starting with __ and the normal name is an alias. */
7394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7402 if { (eval echo configure:7403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7404 eval "ac_cv_func_$ac_func=yes"
7406 echo "configure: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7409 eval "ac_cv_func_$ac_func=no"
7414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7415 echo "$ac_t""yes" 1>&6
7416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7417 cat >> confdefs.h <<EOF
7418 #define $ac_tr_func 1
7422 echo "$ac_t""no" 1>&6
7431 *-lsecurity*) for ac_func in getspnam
7433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7434 echo "configure:7435: checking for $ac_func" >&5
7435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* System header to define __stub macros and hopefully few prototypes,
7442 which can conflict with char $ac_func(); below. */
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7464 eval "ac_cv_func_$ac_func=yes"
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7469 eval "ac_cv_func_$ac_func=no"
7474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7477 cat >> confdefs.h <<EOF
7478 #define $ac_tr_func 1
7482 echo "$ac_t""no" 1>&6
7486 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7487 echo "configure:7488: checking for getspnam in -lsecurity" >&5
7488 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7492 ac_save_LIBS="$LIBS"
7493 LIBS="-lsecurity $LIBS"
7494 cat > conftest.$ac_ext <<EOF
7495 #line 7496 "configure"
7496 #include "confdefs.h"
7497 /* Override any gcc2 internal prototype to avoid an error. */
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7506 if { (eval echo configure:7507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7508 eval "ac_cv_lib_$ac_lib_var=yes"
7510 echo "configure: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7513 eval "ac_cv_lib_$ac_lib_var=no"
7516 LIBS="$ac_save_LIBS"
7519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7520 echo "$ac_t""yes" 1>&6
7521 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7523 cat >> confdefs.h <<EOF
7524 #define $ac_tr_lib 1
7527 LIBS="-lsecurity $LIBS"
7530 echo "$ac_t""no" 1>&6
7533 for ac_func in getspnam
7535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7536 echo "configure:7537: checking for $ac_func" >&5
7537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7538 echo $ac_n "(cached) $ac_c" 1>&6
7540 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7543 /* System header to define __stub macros and hopefully few prototypes,
7544 which can conflict with char $ac_func(); below. */
7546 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7553 /* The GNU C library defines this for functions which it implements
7554 to always fail with ENOSYS. Some functions are actually named
7555 something starting with __ and the normal name is an alias. */
7556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7564 if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7566 eval "ac_cv_func_$ac_func=yes"
7568 echo "configure: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7571 eval "ac_cv_func_$ac_func=no"
7576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7577 echo "$ac_t""yes" 1>&6
7578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7579 cat >> confdefs.h <<EOF
7580 #define $ac_tr_func 1
7584 echo "$ac_t""no" 1>&6
7592 *-lsec*) for ac_func in getspnam
7594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7595 echo "configure:7596: checking for $ac_func" >&5
7596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7599 cat > conftest.$ac_ext <<EOF
7600 #line 7601 "configure"
7601 #include "confdefs.h"
7602 /* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char $ac_func(); below. */
7605 /* Override any gcc2 internal prototype to avoid an error. */
7606 /* We use char because int might match the return type of a gcc2
7607 builtin and then its argument prototype would still apply. */
7612 /* The GNU C library defines this for functions which it implements
7613 to always fail with ENOSYS. Some functions are actually named
7614 something starting with __ and the normal name is an alias. */
7615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7623 if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7625 eval "ac_cv_func_$ac_func=yes"
7627 echo "configure: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7630 eval "ac_cv_func_$ac_func=no"
7635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7636 echo "$ac_t""yes" 1>&6
7637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7638 cat >> confdefs.h <<EOF
7639 #define $ac_tr_func 1
7643 echo "$ac_t""no" 1>&6
7647 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7648 echo "configure:7649: checking for getspnam in -lsec" >&5
7649 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7653 ac_save_LIBS="$LIBS"
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 /* Override any gcc2 internal prototype to avoid an error. */
7659 /* We use char because int might match the return type of a gcc2
7660 builtin and then its argument prototype would still apply. */
7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7669 eval "ac_cv_lib_$ac_lib_var=yes"
7671 echo "configure: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7674 eval "ac_cv_lib_$ac_lib_var=no"
7677 LIBS="$ac_save_LIBS"
7680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7681 echo "$ac_t""yes" 1>&6
7682 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7683 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7684 cat >> confdefs.h <<EOF
7685 #define $ac_tr_lib 1
7691 echo "$ac_t""no" 1>&6
7694 for ac_func in getspnam
7696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7697 echo "configure:7698: checking for $ac_func" >&5
7698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7699 echo $ac_n "(cached) $ac_c" 1>&6
7701 cat > conftest.$ac_ext <<EOF
7702 #line 7703 "configure"
7703 #include "confdefs.h"
7704 /* System header to define __stub macros and hopefully few prototypes,
7705 which can conflict with char $ac_func(); below. */
7707 /* Override any gcc2 internal prototype to avoid an error. */
7708 /* We use char because int might match the return type of a gcc2
7709 builtin and then its argument prototype would still apply. */
7714 /* The GNU C library defines this for functions which it implements
7715 to always fail with ENOSYS. Some functions are actually named
7716 something starting with __ and the normal name is an alias. */
7717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7725 if { (eval echo configure:7726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7727 eval "ac_cv_func_$ac_func=yes"
7729 echo "configure: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7732 eval "ac_cv_func_$ac_func=no"
7737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7738 echo "$ac_t""yes" 1>&6
7739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7740 cat >> confdefs.h <<EOF
7741 #define $ac_tr_func 1
7745 echo "$ac_t""no" 1>&6
7754 *-lsecurity*) for ac_func in bigcrypt
7756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7757 echo "configure:7758: checking for $ac_func" >&5
7758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7759 echo $ac_n "(cached) $ac_c" 1>&6
7761 cat > conftest.$ac_ext <<EOF
7762 #line 7763 "configure"
7763 #include "confdefs.h"
7764 /* System header to define __stub macros and hopefully few prototypes,
7765 which can conflict with char $ac_func(); below. */
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7774 /* The GNU C library defines this for functions which it implements
7775 to always fail with ENOSYS. Some functions are actually named
7776 something starting with __ and the normal name is an alias. */
7777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7787 eval "ac_cv_func_$ac_func=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 eval "ac_cv_func_$ac_func=no"
7797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7798 echo "$ac_t""yes" 1>&6
7799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7800 cat >> confdefs.h <<EOF
7801 #define $ac_tr_func 1
7805 echo "$ac_t""no" 1>&6
7809 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7810 echo "configure:7811: checking for bigcrypt in -lsecurity" >&5
7811 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7813 echo $ac_n "(cached) $ac_c" 1>&6
7815 ac_save_LIBS="$LIBS"
7816 LIBS="-lsecurity $LIBS"
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 /* Override any gcc2 internal prototype to avoid an error. */
7821 /* We use char because int might match the return type of a gcc2
7822 builtin and then its argument prototype would still apply. */
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7831 eval "ac_cv_lib_$ac_lib_var=yes"
7833 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5
7836 eval "ac_cv_lib_$ac_lib_var=no"
7839 LIBS="$ac_save_LIBS"
7842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7843 echo "$ac_t""yes" 1>&6
7844 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7845 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7846 cat >> confdefs.h <<EOF
7847 #define $ac_tr_lib 1
7850 LIBS="-lsecurity $LIBS"
7853 echo "$ac_t""no" 1>&6
7856 for ac_func in bigcrypt
7858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7859 echo "configure:7860: checking for $ac_func" >&5
7860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7863 cat > conftest.$ac_ext <<EOF
7864 #line 7865 "configure"
7865 #include "confdefs.h"
7866 /* System header to define __stub macros and hopefully few prototypes,
7867 which can conflict with char $ac_func(); below. */
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7876 /* The GNU C library defines this for functions which it implements
7877 to always fail with ENOSYS. Some functions are actually named
7878 something starting with __ and the normal name is an alias. */
7879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7889 eval "ac_cv_func_$ac_func=yes"
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7894 eval "ac_cv_func_$ac_func=no"
7899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6
7901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7902 cat >> confdefs.h <<EOF
7903 #define $ac_tr_func 1
7907 echo "$ac_t""no" 1>&6
7915 *-lsec*) for ac_func in bigcrypt
7917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7918 echo "configure:7919: checking for $ac_func" >&5
7919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6
7922 cat > conftest.$ac_ext <<EOF
7923 #line 7924 "configure"
7924 #include "confdefs.h"
7925 /* System header to define __stub macros and hopefully few prototypes,
7926 which can conflict with char $ac_func(); below. */
7928 /* Override any gcc2 internal prototype to avoid an error. */
7929 /* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7935 /* The GNU C library defines this for functions which it implements
7936 to always fail with ENOSYS. Some functions are actually named
7937 something starting with __ and the normal name is an alias. */
7938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7946 if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7948 eval "ac_cv_func_$ac_func=yes"
7950 echo "configure: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7953 eval "ac_cv_func_$ac_func=no"
7958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7959 echo "$ac_t""yes" 1>&6
7960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7961 cat >> confdefs.h <<EOF
7962 #define $ac_tr_func 1
7966 echo "$ac_t""no" 1>&6
7970 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7971 echo "configure:7972: checking for bigcrypt in -lsec" >&5
7972 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7976 ac_save_LIBS="$LIBS"
7978 cat > conftest.$ac_ext <<EOF
7979 #line 7980 "configure"
7980 #include "confdefs.h"
7981 /* Override any gcc2 internal prototype to avoid an error. */
7982 /* We use char because int might match the return type of a gcc2
7983 builtin and then its argument prototype would still apply. */
7990 if { (eval echo configure:7991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7992 eval "ac_cv_lib_$ac_lib_var=yes"
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7997 eval "ac_cv_lib_$ac_lib_var=no"
8000 LIBS="$ac_save_LIBS"
8003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8004 echo "$ac_t""yes" 1>&6
8005 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8006 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8007 cat >> confdefs.h <<EOF
8008 #define $ac_tr_lib 1
8014 echo "$ac_t""no" 1>&6
8017 for ac_func in bigcrypt
8019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8020 echo "configure:8021: checking for $ac_func" >&5
8021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8024 cat > conftest.$ac_ext <<EOF
8025 #line 8026 "configure"
8026 #include "confdefs.h"
8027 /* System header to define __stub macros and hopefully few prototypes,
8028 which can conflict with char $ac_func(); below. */
8030 /* Override any gcc2 internal prototype to avoid an error. */
8031 /* We use char because int might match the return type of a gcc2
8032 builtin and then its argument prototype would still apply. */
8037 /* The GNU C library defines this for functions which it implements
8038 to always fail with ENOSYS. Some functions are actually named
8039 something starting with __ and the normal name is an alias. */
8040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8048 if { (eval echo configure:8049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8050 eval "ac_cv_func_$ac_func=yes"
8052 echo "configure: failed program was:" >&5
8053 cat conftest.$ac_ext >&5
8055 eval "ac_cv_func_$ac_func=no"
8060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8061 echo "$ac_t""yes" 1>&6
8062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8063 cat >> confdefs.h <<EOF
8064 #define $ac_tr_func 1
8068 echo "$ac_t""no" 1>&6
8077 *-lsecurity*) for ac_func in getprpwnam
8079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8080 echo "configure:8081: checking for $ac_func" >&5
8081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8087 /* System header to define __stub macros and hopefully few prototypes,
8088 which can conflict with char $ac_func(); below. */
8090 /* Override any gcc2 internal prototype to avoid an error. */
8091 /* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8097 /* The GNU C library defines this for functions which it implements
8098 to always fail with ENOSYS. Some functions are actually named
8099 something starting with __ and the normal name is an alias. */
8100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8108 if { (eval echo configure:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8110 eval "ac_cv_func_$ac_func=yes"
8112 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8115 eval "ac_cv_func_$ac_func=no"
8120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8121 echo "$ac_t""yes" 1>&6
8122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8123 cat >> confdefs.h <<EOF
8124 #define $ac_tr_func 1
8128 echo "$ac_t""no" 1>&6
8132 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8133 echo "configure:8134: checking for getprpwnam in -lsecurity" >&5
8134 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8136 echo $ac_n "(cached) $ac_c" 1>&6
8138 ac_save_LIBS="$LIBS"
8139 LIBS="-lsecurity $LIBS"
8140 cat > conftest.$ac_ext <<EOF
8141 #line 8142 "configure"
8142 #include "confdefs.h"
8143 /* Override any gcc2 internal prototype to avoid an error. */
8144 /* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8152 if { (eval echo configure:8153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8154 eval "ac_cv_lib_$ac_lib_var=yes"
8156 echo "configure: failed program was:" >&5
8157 cat conftest.$ac_ext >&5
8159 eval "ac_cv_lib_$ac_lib_var=no"
8162 LIBS="$ac_save_LIBS"
8165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8166 echo "$ac_t""yes" 1>&6
8167 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8169 cat >> confdefs.h <<EOF
8170 #define $ac_tr_lib 1
8173 LIBS="-lsecurity $LIBS"
8176 echo "$ac_t""no" 1>&6
8179 for ac_func in getprpwnam
8181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8182 echo "configure:8183: checking for $ac_func" >&5
8183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8184 echo $ac_n "(cached) $ac_c" 1>&6
8186 cat > conftest.$ac_ext <<EOF
8187 #line 8188 "configure"
8188 #include "confdefs.h"
8189 /* System header to define __stub macros and hopefully few prototypes,
8190 which can conflict with char $ac_func(); below. */
8192 /* Override any gcc2 internal prototype to avoid an error. */
8193 /* We use char because int might match the return type of a gcc2
8194 builtin and then its argument prototype would still apply. */
8199 /* The GNU C library defines this for functions which it implements
8200 to always fail with ENOSYS. Some functions are actually named
8201 something starting with __ and the normal name is an alias. */
8202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8210 if { (eval echo configure:8211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8212 eval "ac_cv_func_$ac_func=yes"
8214 echo "configure: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8217 eval "ac_cv_func_$ac_func=no"
8222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8223 echo "$ac_t""yes" 1>&6
8224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8225 cat >> confdefs.h <<EOF
8226 #define $ac_tr_func 1
8230 echo "$ac_t""no" 1>&6
8238 *-lsec*) for ac_func in getprpwnam
8240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8241 echo "configure:8242: checking for $ac_func" >&5
8242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8243 echo $ac_n "(cached) $ac_c" 1>&6
8245 cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 /* System header to define __stub macros and hopefully few prototypes,
8249 which can conflict with char $ac_func(); below. */
8251 /* Override any gcc2 internal prototype to avoid an error. */
8252 /* We use char because int might match the return type of a gcc2
8253 builtin and then its argument prototype would still apply. */
8258 /* The GNU C library defines this for functions which it implements
8259 to always fail with ENOSYS. Some functions are actually named
8260 something starting with __ and the normal name is an alias. */
8261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271 eval "ac_cv_func_$ac_func=yes"
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 eval "ac_cv_func_$ac_func=no"
8281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8282 echo "$ac_t""yes" 1>&6
8283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8284 cat >> confdefs.h <<EOF
8285 #define $ac_tr_func 1
8289 echo "$ac_t""no" 1>&6
8293 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8294 echo "configure:8295: checking for getprpwnam in -lsec" >&5
8295 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 ac_save_LIBS="$LIBS"
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 /* Override any gcc2 internal prototype to avoid an error. */
8305 /* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8315 eval "ac_cv_lib_$ac_lib_var=yes"
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 eval "ac_cv_lib_$ac_lib_var=no"
8323 LIBS="$ac_save_LIBS"
8326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8327 echo "$ac_t""yes" 1>&6
8328 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8330 cat >> confdefs.h <<EOF
8331 #define $ac_tr_lib 1
8337 echo "$ac_t""no" 1>&6
8340 for ac_func in getprpwnam
8342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8343 echo "configure:8344: checking for $ac_func" >&5
8344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8347 cat > conftest.$ac_ext <<EOF
8348 #line 8349 "configure"
8349 #include "confdefs.h"
8350 /* System header to define __stub macros and hopefully few prototypes,
8351 which can conflict with char $ac_func(); below. */
8353 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8360 /* The GNU C library defines this for functions which it implements
8361 to always fail with ENOSYS. Some functions are actually named
8362 something starting with __ and the normal name is an alias. */
8363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8371 if { (eval echo configure:8372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8373 eval "ac_cv_func_$ac_func=yes"
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 eval "ac_cv_func_$ac_func=no"
8383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8384 echo "$ac_t""yes" 1>&6
8385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8386 cat >> confdefs.h <<EOF
8387 #define $ac_tr_func 1
8391 echo "$ac_t""no" 1>&6
8399 # this bit needs to be modified for each OS that is suported by
8400 # smbwrapper. You need to specify how to created a shared library and
8401 # how to compile C code to produce PIC object files
8403 # these are the defaults, good for lots of systems
8413 # and these are for particular systems
8415 *linux*) cat >> confdefs.h <<\EOF
8423 *solaris*) cat >> confdefs.h <<\EOF
8428 LDSHFLAGS="-Wl,-h,\$@.so -G"
8429 if test "${ac_cv_prog_CC}" = "gcc"; then
8437 *sunos*) cat >> confdefs.h <<\EOF
8442 LDSHFLAGS="-Wl,-h,\$@ -G"
8443 PICFLAG="-KPIC" # Is this correct for SunOS
8445 *bsd*) BLDSHARED="true"
8446 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8449 *irix*) cat >> confdefs.h <<\EOF
8454 *irix6*) cat >> confdefs.h <<\EOF
8460 ATTEMPT_WRAP32_BUILD=yes
8462 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8463 if test "${ac_cv_prog_CC}" = "gcc"; then
8469 *aix*) cat >> confdefs.h <<\EOF
8474 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8475 PICFLAG="-O2 -qmaxmem=6000"
8477 *hpux*) cat >> confdefs.h <<\EOF
8482 # Use special PIC flags for the native HP-UX compiler.
8483 if test $ac_cv_prog_cc_Ae = yes; then
8485 LDSHFLAGS="-b -z +h \$@"
8489 *qnx*) cat >> confdefs.h <<\EOF
8493 *osf*) cat >> confdefs.h <<\EOF
8498 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8501 *sco*) cat >> confdefs.h <<\EOF
8505 *unixware*) cat >> confdefs.h <<\EOF
8510 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8513 *next2*) cat >> confdefs.h <<\EOF
8517 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8518 set dummy groff; ac_word=$2
8519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8520 echo "configure:8521: checking for $ac_word" >&5
8521 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8524 if test -n "$ROFF"; then
8525 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8529 for ac_dir in $ac_dummy; do
8530 test -z "$ac_dir" && ac_dir=.
8531 if test -f $ac_dir/$ac_word; then
8532 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8539 ROFF="$ac_cv_prog_ROFF"
8540 if test -n "$ROFF"; then
8541 echo "$ac_t""$ROFF" 1>&6
8543 echo "$ac_t""no" 1>&6
8548 *-univel-*) if test "$GCC" != yes ; then
8549 cat >> confdefs.h <<\EOF
8550 #define HAVE_MEMSET 1
8556 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8557 #define RELIANTUNIX 1
8563 if test "$GCC" != yes ; then
8564 cat >> confdefs.h <<\EOF
8565 #define HAVE_MEMSET 1
8573 # this updates our target list if we can build shared libs
8574 if test $BLDSHARED = true; then
8575 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8577 LIBSMBCLIENT_SHARED=
8582 echo $ac_n "checking for long long""... $ac_c" 1>&6
8583 echo "configure:8584: checking for long long" >&5
8584 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8588 if test "$cross_compiling" = yes; then
8589 samba_cv_have_longlong=cross
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8595 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8597 if { (eval echo configure:8598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8599 samba_cv_have_longlong=yes
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8604 samba_cv_have_longlong=no
8611 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8612 if test x"$samba_cv_have_longlong" = x"yes"; then
8613 cat >> confdefs.h <<\EOF
8614 #define HAVE_LONGLONG 1
8620 # Check if the compiler supports the LL prefix on long long integers.
8623 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8624 echo "configure:8625: checking for LL suffix on long long integers" >&5
8625 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8634 long long i = 0x8000000000LL
8637 if { (eval echo configure:8638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8639 samba_cv_compiler_supports_ll=yes
8641 echo "configure: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8644 samba_cv_compiler_supports_ll=no
8649 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8650 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8651 cat >> confdefs.h <<\EOF
8652 #define COMPILER_SUPPORTS_LL 1
8658 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8659 echo "configure:8660: checking for 64 bit off_t" >&5
8660 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8664 if test "$cross_compiling" = yes; then
8665 samba_cv_SIZEOF_OFF_T=cross
8667 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure"
8669 #include "confdefs.h"
8671 #include <sys/stat.h>
8672 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8674 if { (eval echo configure:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8676 samba_cv_SIZEOF_OFF_T=yes
8678 echo "configure: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8681 samba_cv_SIZEOF_OFF_T=no
8688 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8689 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8690 cat >> confdefs.h <<\EOF
8691 #define SIZEOF_OFF_T 8
8696 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8697 echo "configure:8698: checking for off64_t" >&5
8698 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8702 if test "$cross_compiling" = yes; then
8703 samba_cv_HAVE_OFF64_T=cross
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8709 #if defined(HAVE_UNISTD_H)
8713 #include <sys/stat.h>
8714 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8716 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8718 samba_cv_HAVE_OFF64_T=yes
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8723 samba_cv_HAVE_OFF64_T=no
8730 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8731 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8732 cat >> confdefs.h <<\EOF
8733 #define HAVE_OFF64_T 1
8738 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8739 echo "configure:8740: checking for 64 bit ino_t" >&5
8740 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8744 if test "$cross_compiling" = yes; then
8745 samba_cv_SIZEOF_INO_T=cross
8747 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8751 #include <sys/stat.h>
8752 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8754 if { (eval echo configure:8755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8756 samba_cv_SIZEOF_INO_T=yes
8758 echo "configure: failed program was:" >&5
8759 cat conftest.$ac_ext >&5
8761 samba_cv_SIZEOF_INO_T=no
8768 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8769 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8770 cat >> confdefs.h <<\EOF
8771 #define SIZEOF_INO_T 8
8776 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8777 echo "configure:8778: checking for ino64_t" >&5
8778 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8779 echo $ac_n "(cached) $ac_c" 1>&6
8782 if test "$cross_compiling" = yes; then
8783 samba_cv_HAVE_INO64_T=cross
8785 cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8789 #if defined(HAVE_UNISTD_H)
8793 #include <sys/stat.h>
8794 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8796 if { (eval echo configure:8797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8798 samba_cv_HAVE_INO64_T=yes
8800 echo "configure: failed program was:" >&5
8801 cat conftest.$ac_ext >&5
8803 samba_cv_HAVE_INO64_T=no
8810 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8811 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8812 cat >> confdefs.h <<\EOF
8813 #define HAVE_INO64_T 1
8818 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8819 echo "configure:8820: checking for struct dirent64" >&5
8820 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8828 #if defined(HAVE_UNISTD_H)
8831 #include <sys/types.h>
8837 if { (eval echo configure:8838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8839 samba_cv_HAVE_STRUCT_DIRENT64=yes
8841 echo "configure: failed program was:" >&5
8842 cat conftest.$ac_ext >&5
8844 samba_cv_HAVE_STRUCT_DIRENT64=no
8849 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8850 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8851 cat >> confdefs.h <<\EOF
8852 #define HAVE_STRUCT_DIRENT64 1
8857 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8858 echo "configure:8859: checking for unsigned char" >&5
8859 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8863 if test "$cross_compiling" = yes; then
8864 samba_cv_HAVE_UNSIGNED_CHAR=cross
8866 cat > conftest.$ac_ext <<EOF
8867 #line 8868 "configure"
8868 #include "confdefs.h"
8870 main() { char c; c=250; exit((c > 0)?0:1); }
8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8874 samba_cv_HAVE_UNSIGNED_CHAR=yes
8876 echo "configure: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8879 samba_cv_HAVE_UNSIGNED_CHAR=no
8886 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8887 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8888 cat >> confdefs.h <<\EOF
8889 #define HAVE_UNSIGNED_CHAR 1
8894 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8895 echo "configure:8896: checking for sin_len in sock" >&5
8896 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8903 #include <sys/types.h>
8904 #include <sys/socket.h>
8905 #include <netinet/in.h>
8907 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8910 if { (eval echo configure:8911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8912 samba_cv_HAVE_SOCK_SIN_LEN=yes
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8917 samba_cv_HAVE_SOCK_SIN_LEN=no
8922 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8923 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8924 cat >> confdefs.h <<\EOF
8925 #define HAVE_SOCK_SIN_LEN 1
8930 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8931 echo "configure:8932: checking whether seekdir returns void" >&5
8932 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8933 echo $ac_n "(cached) $ac_c" 1>&6
8936 cat > conftest.$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8939 #include <sys/types.h>
8941 void seekdir(DIR *d, long loc) { return; }
8946 if { (eval echo configure:8947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8948 samba_cv_SEEKDIR_RETURNS_VOID=yes
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 samba_cv_SEEKDIR_RETURNS_VOID=no
8958 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8959 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8960 cat >> confdefs.h <<\EOF
8961 #define SEEKDIR_RETURNS_VOID 1
8966 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8967 echo "configure:8968: checking for __FILE__ macro" >&5
8968 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8977 printf("%s\n", __FILE__);
8980 if { (eval echo configure:8981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8982 samba_cv_HAVE_FILE_MACRO=yes
8984 echo "configure: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8987 samba_cv_HAVE_FILE_MACRO=no
8992 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8993 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8994 cat >> confdefs.h <<\EOF
8995 #define HAVE_FILE_MACRO 1
9000 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9001 echo "configure:9002: checking for __FUNCTION__ macro" >&5
9002 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9006 cat > conftest.$ac_ext <<EOF
9007 #line 9008 "configure"
9008 #include "confdefs.h"
9011 printf("%s\n", __FUNCTION__);
9014 if { (eval echo configure:9015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9016 samba_cv_HAVE_FUNCTION_MACRO=yes
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9021 samba_cv_HAVE_FUNCTION_MACRO=no
9026 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9027 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9028 cat >> confdefs.h <<\EOF
9029 #define HAVE_FUNCTION_MACRO 1
9034 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9035 echo "configure:9036: checking if gettimeofday takes tz argument" >&5
9036 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9040 if test "$cross_compiling" = yes; then
9041 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9047 #include <sys/time.h>
9049 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9053 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9058 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9065 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9066 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9067 cat >> confdefs.h <<\EOF
9068 #define HAVE_GETTIMEOFDAY_TZ 1
9073 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9074 echo "configure:9075: checking for C99 vsnprintf" >&5
9075 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9076 echo $ac_n "(cached) $ac_c" 1>&6
9079 if test "$cross_compiling" = yes; then
9080 samba_cv_HAVE_C99_VSNPRINTF=cross
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9086 #include <sys/types.h>
9088 void foo(const char *format, ...) {
9093 va_start(ap, format);
9094 len = vsnprintf(0, 0, format, ap);
9096 if (len != 5) exit(1);
9098 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9102 main() { foo("hello"); }
9105 if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9107 samba_cv_HAVE_C99_VSNPRINTF=yes
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9112 samba_cv_HAVE_C99_VSNPRINTF=no
9119 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9120 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9121 cat >> confdefs.h <<\EOF
9122 #define HAVE_C99_VSNPRINTF 1
9127 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9128 echo "configure:9129: checking for broken readdir" >&5
9129 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9133 if test "$cross_compiling" = yes; then
9134 samba_cv_HAVE_BROKEN_READDIR=cross
9136 cat > conftest.$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9139 #include <sys/types.h>
9141 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9142 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9143 di->d_name[0] == 0) exit(0); exit(1);}
9145 if { (eval echo configure:9146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9147 samba_cv_HAVE_BROKEN_READDIR=yes
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9152 samba_cv_HAVE_BROKEN_READDIR=no
9159 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9160 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9161 cat >> confdefs.h <<\EOF
9162 #define HAVE_BROKEN_READDIR 1
9167 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9168 echo "configure:9169: checking for utimbuf" >&5
9169 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9170 echo $ac_n "(cached) $ac_c" 1>&6
9173 cat > conftest.$ac_ext <<EOF
9174 #line 9175 "configure"
9175 #include "confdefs.h"
9176 #include <sys/types.h>
9179 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9182 if { (eval echo configure:9183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9184 samba_cv_HAVE_UTIMBUF=yes
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9189 samba_cv_HAVE_UTIMBUF=no
9194 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9195 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9196 cat >> confdefs.h <<\EOF
9197 #define HAVE_UTIMBUF 1
9203 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9206 echo "configure:9207: checking for $ac_func" >&5
9207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9210 cat > conftest.$ac_ext <<EOF
9211 #line 9212 "configure"
9212 #include "confdefs.h"
9213 /* System header to define __stub macros and hopefully few prototypes,
9214 which can conflict with char $ac_func(); below. */
9216 /* Override any gcc2 internal prototype to avoid an error. */
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9223 /* The GNU C library defines this for functions which it implements
9224 to always fail with ENOSYS. Some functions are actually named
9225 something starting with __ and the normal name is an alias. */
9226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9234 if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9236 eval "ac_cv_func_$ac_func=yes"
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9241 eval "ac_cv_func_$ac_func=no"
9246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9249 cat >> confdefs.h <<EOF
9250 #define $ac_tr_func 1
9254 echo "$ac_t""no" 1>&6
9259 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9260 echo "configure:9261: checking for ut_name in utmp" >&5
9261 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9265 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9268 #include <sys/types.h>
9271 struct utmp ut; ut.ut_name[0] = 'a';
9274 if { (eval echo configure:9275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9276 samba_cv_HAVE_UT_UT_NAME=yes
9278 echo "configure: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9281 samba_cv_HAVE_UT_UT_NAME=no
9286 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9287 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9288 cat >> confdefs.h <<\EOF
9289 #define HAVE_UT_UT_NAME 1
9294 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9295 echo "configure:9296: checking for ut_user in utmp" >&5
9296 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9300 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9303 #include <sys/types.h>
9306 struct utmp ut; ut.ut_user[0] = 'a';
9309 if { (eval echo configure:9310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9311 samba_cv_HAVE_UT_UT_USER=yes
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9316 samba_cv_HAVE_UT_UT_USER=no
9321 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9322 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9323 cat >> confdefs.h <<\EOF
9324 #define HAVE_UT_UT_USER 1
9329 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9330 echo "configure:9331: checking for ut_id in utmp" >&5
9331 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9332 echo $ac_n "(cached) $ac_c" 1>&6
9335 cat > conftest.$ac_ext <<EOF
9336 #line 9337 "configure"
9337 #include "confdefs.h"
9338 #include <sys/types.h>
9341 struct utmp ut; ut.ut_id[0] = 'a';
9344 if { (eval echo configure:9345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9346 samba_cv_HAVE_UT_UT_ID=yes
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9351 samba_cv_HAVE_UT_UT_ID=no
9356 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9357 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9358 cat >> confdefs.h <<\EOF
9359 #define HAVE_UT_UT_ID 1
9364 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9365 echo "configure:9366: checking for ut_host in utmp" >&5
9366 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9367 echo $ac_n "(cached) $ac_c" 1>&6
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 #include <sys/types.h>
9376 struct utmp ut; ut.ut_host[0] = 'a';
9379 if { (eval echo configure:9380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9381 samba_cv_HAVE_UT_UT_HOST=yes
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9386 samba_cv_HAVE_UT_UT_HOST=no
9391 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9392 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9393 cat >> confdefs.h <<\EOF
9394 #define HAVE_UT_UT_HOST 1
9399 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9400 echo "configure:9401: checking for ut_time in utmp" >&5
9401 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9402 echo $ac_n "(cached) $ac_c" 1>&6
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 #include <sys/types.h>
9411 struct utmp ut; time_t t; ut.ut_time = t;
9414 if { (eval echo configure:9415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9416 samba_cv_HAVE_UT_UT_TIME=yes
9418 echo "configure: failed program was:" >&5
9419 cat conftest.$ac_ext >&5
9421 samba_cv_HAVE_UT_UT_TIME=no
9426 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9427 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9428 cat >> confdefs.h <<\EOF
9429 #define HAVE_UT_UT_TIME 1
9434 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9435 echo "configure:9436: checking for ut_tv in utmp" >&5
9436 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9437 echo $ac_n "(cached) $ac_c" 1>&6
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 #include <sys/types.h>
9446 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9449 if { (eval echo configure:9450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9451 samba_cv_HAVE_UT_UT_TV=yes
9453 echo "configure: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9456 samba_cv_HAVE_UT_UT_TV=no
9461 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9462 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9463 cat >> confdefs.h <<\EOF
9464 #define HAVE_UT_UT_TV 1
9469 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9470 echo "configure:9471: checking for ut_type in utmp" >&5
9471 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9475 cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9478 #include <sys/types.h>
9481 struct utmp ut; ut.ut_type = 0;
9484 if { (eval echo configure:9485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9486 samba_cv_HAVE_UT_UT_TYPE=yes
9488 echo "configure: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9491 samba_cv_HAVE_UT_UT_TYPE=no
9496 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9497 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9498 cat >> confdefs.h <<\EOF
9499 #define HAVE_UT_UT_TYPE 1
9504 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9505 echo "configure:9506: checking for ut_pid in utmp" >&5
9506 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9510 cat > conftest.$ac_ext <<EOF
9511 #line 9512 "configure"
9512 #include "confdefs.h"
9513 #include <sys/types.h>
9516 struct utmp ut; ut.ut_pid = 0;
9519 if { (eval echo configure:9520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9521 samba_cv_HAVE_UT_UT_PID=yes
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9526 samba_cv_HAVE_UT_UT_PID=no
9531 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9532 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9533 cat >> confdefs.h <<\EOF
9534 #define HAVE_UT_UT_PID 1
9539 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9540 echo "configure:9541: checking for ut_exit in utmp" >&5
9541 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9545 cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 #include <sys/types.h>
9551 struct utmp ut; ut.ut_exit.e_exit = 0;
9554 if { (eval echo configure:9555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9556 samba_cv_HAVE_UT_UT_EXIT=yes
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9561 samba_cv_HAVE_UT_UT_EXIT=no
9566 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9567 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9568 cat >> confdefs.h <<\EOF
9569 #define HAVE_UT_UT_EXIT 1
9574 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9575 echo "configure:9576: checking for ut_addr in utmp" >&5
9576 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9577 echo $ac_n "(cached) $ac_c" 1>&6
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9583 #include <sys/types.h>
9586 struct utmp ut; ut.ut_addr = 0;
9589 if { (eval echo configure:9590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9591 samba_cv_HAVE_UT_UT_ADDR=yes
9593 echo "configure: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9596 samba_cv_HAVE_UT_UT_ADDR=no
9601 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9602 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9603 cat >> confdefs.h <<\EOF
9604 #define HAVE_UT_UT_ADDR 1
9609 if test x$ac_cv_func_pututline = xyes ; then
9610 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9611 echo "configure:9612: checking whether pututline returns pointer" >&5
9612 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9616 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9619 #include <sys/types.h>
9622 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9625 if { (eval echo configure:9626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9627 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9629 echo "configure: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9632 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9637 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9638 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9639 cat >> confdefs.h <<\EOF
9640 #define PUTUTLINE_RETURNS_UTMP 1
9646 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9647 echo "configure:9648: checking for ut_syslen in utmpx" >&5
9648 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9649 echo $ac_n "(cached) $ac_c" 1>&6
9652 cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9655 #include <sys/types.h>
9658 struct utmpx ux; ux.ut_syslen = 0;
9661 if { (eval echo configure:9662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9663 samba_cv_HAVE_UX_UT_SYSLEN=yes
9665 echo "configure: failed program was:" >&5
9666 cat conftest.$ac_ext >&5
9668 samba_cv_HAVE_UX_UT_SYSLEN=no
9673 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9674 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9675 cat >> confdefs.h <<\EOF
9676 #define HAVE_UX_UT_SYSLEN 1
9682 #################################################
9683 # check for libiconv support
9684 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9685 echo "configure:9686: checking whether to use libiconv" >&5
9686 # Check whether --with-libiconv or --without-libiconv was given.
9687 if test "${with_libiconv+set}" = set; then
9688 withval="$with_libiconv"
9691 echo "$ac_t""no" 1>&6
9694 echo "$ac_t""yes" 1>&6
9695 CFLAGS="$CFLAGS -I$withval/include"
9696 LDFLAGS="$LDFLAGS -L$withval/lib"
9697 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9698 echo "configure:9699: checking for iconv_open in -liconv" >&5
9699 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9703 ac_save_LIBS="$LIBS"
9704 LIBS="-liconv $LIBS"
9705 cat > conftest.$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9708 /* Override any gcc2 internal prototype to avoid an error. */
9709 /* We use char because int might match the return type of a gcc2
9710 builtin and then its argument prototype would still apply. */
9717 if { (eval echo configure:9718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9719 eval "ac_cv_lib_$ac_lib_var=yes"
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9724 eval "ac_cv_lib_$ac_lib_var=no"
9727 LIBS="$ac_save_LIBS"
9730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9731 echo "$ac_t""yes" 1>&6
9732 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9733 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9734 cat >> confdefs.h <<EOF
9735 #define $ac_tr_lib 1
9738 LIBS="-liconv $LIBS"
9741 echo "$ac_t""no" 1>&6
9744 cat >> confdefs.h <<EOF
9745 #define WITH_LIBICONV "${withval}"
9751 echo "$ac_t""no" 1>&6
9758 # check for iconv in libc
9759 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9760 echo "configure:9761: checking for working iconv" >&5
9761 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9762 echo $ac_n "(cached) $ac_c" 1>&6
9765 if test "$cross_compiling" = yes; then
9766 samba_cv_HAVE_NATIVE_ICONV=cross
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9774 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9775 if (cd == 0 || cd == (iconv_t)-1) return -1;
9780 if { (eval echo configure:9781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9782 samba_cv_HAVE_NATIVE_ICONV=yes
9784 echo "configure: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9787 samba_cv_HAVE_NATIVE_ICONV=no
9794 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9795 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9796 cat >> confdefs.h <<\EOF
9797 #define HAVE_NATIVE_ICONV 1
9803 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9804 echo "configure:9805: checking for Linux kernel oplocks" >&5
9805 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9809 if test "$cross_compiling" = yes; then
9810 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9812 cat > conftest.$ac_ext <<EOF
9813 #line 9814 "configure"
9814 #include "confdefs.h"
9816 #include <sys/types.h>
9819 #define F_GETLEASE 1025
9822 int fd = open("/dev/null", O_RDONLY);
9823 return fcntl(fd, F_GETLEASE, 0) == -1;
9827 if { (eval echo configure:9828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9829 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9834 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9841 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9842 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9843 cat >> confdefs.h <<\EOF
9844 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9849 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9850 echo "configure:9851: checking for kernel change notify support" >&5
9851 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9855 if test "$cross_compiling" = yes; then
9856 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9858 cat > conftest.$ac_ext <<EOF
9859 #line 9860 "configure"
9860 #include "confdefs.h"
9862 #include <sys/types.h>
9866 #define F_NOTIFY 1026
9869 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9873 if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9875 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9880 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9887 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9888 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9889 cat >> confdefs.h <<\EOF
9890 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9895 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9896 echo "configure:9897: checking for kernel share modes" >&5
9897 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9898 echo $ac_n "(cached) $ac_c" 1>&6
9901 if test "$cross_compiling" = yes; then
9902 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9908 #include <sys/types.h>
9911 #include <sys/file.h>
9913 #define LOCK_MAND 32
9914 #define LOCK_READ 64
9917 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9923 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9928 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9935 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9936 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9937 cat >> confdefs.h <<\EOF
9938 #define HAVE_KERNEL_SHARE_MODES 1
9946 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9947 echo "configure:9948: checking for IRIX kernel oplock type definitions" >&5
9948 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 #include <sys/types.h>
9958 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9961 if { (eval echo configure:9962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9963 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9965 echo "configure: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9968 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9973 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9974 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9975 cat >> confdefs.h <<\EOF
9976 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9981 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9982 echo "configure:9983: checking for irix specific capabilities" >&5
9983 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9984 echo $ac_n "(cached) $ac_c" 1>&6
9987 if test "$cross_compiling" = yes; then
9988 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9990 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure"
9992 #include "confdefs.h"
9993 #include <sys/types.h>
9994 #include <sys/capability.h>
9997 if ((cap = cap_get_proc()) == NULL)
9999 cap->cap_effective |= CAP_NETWORK_MGT;
10000 cap->cap_inheritable |= CAP_NETWORK_MGT;
10006 if { (eval echo configure:10007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10008 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10013 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10020 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10021 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10022 cat >> confdefs.h <<\EOF
10023 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10029 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10030 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10033 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10034 echo "configure:10035: checking for int16 typedef included by rpc/rpc.h" >&5
10035 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10039 cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include <sys/types.h>
10043 #if defined(HAVE_RPC_RPC_H)
10044 #include <rpc/rpc.h>
10050 if { (eval echo configure:10051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10052 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10057 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10062 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10063 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10064 cat >> confdefs.h <<\EOF
10065 #define HAVE_INT16_FROM_RPC_RPC_H 1
10070 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10071 echo "configure:10072: checking for uint16 typedef included by rpc/rpc.h" >&5
10072 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10073 echo $ac_n "(cached) $ac_c" 1>&6
10076 cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079 #include <sys/types.h>
10080 #if defined(HAVE_RPC_RPC_H)
10081 #include <rpc/rpc.h>
10087 if { (eval echo configure:10088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10089 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10094 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10099 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10100 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10101 cat >> confdefs.h <<\EOF
10102 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10107 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10108 echo "configure:10109: checking for int32 typedef included by rpc/rpc.h" >&5
10109 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 #include <sys/types.h>
10117 #if defined(HAVE_RPC_RPC_H)
10118 #include <rpc/rpc.h>
10124 if { (eval echo configure:10125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10126 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10128 echo "configure: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10131 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10136 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10137 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10138 cat >> confdefs.h <<\EOF
10139 #define HAVE_INT32_FROM_RPC_RPC_H 1
10144 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10145 echo "configure:10146: checking for uint32 typedef included by rpc/rpc.h" >&5
10146 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 #include <sys/types.h>
10154 #if defined(HAVE_RPC_RPC_H)
10155 #include <rpc/rpc.h>
10161 if { (eval echo configure:10162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10163 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10168 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10173 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10174 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10175 cat >> confdefs.h <<\EOF
10176 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10182 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10183 echo "configure:10184: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10184 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10190 "configure"
10190 #include "confdefs.h"
10191 #include <sys/types.h>
10192 #ifdef HAVE_SYS_SECURITY_H
10193 #include <sys/security.h>
10195 #endif /* HAVE_SYS_SECURITY_H */
10196 #if defined(HAVE_RPC_RPC_H)
10197 #include <rpc/rpc.h>
10203 if { (eval echo configure:10204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10205 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10210 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10215 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10216 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10223 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10224 echo "configure:10225: checking for test routines" >&5
10225 if test "$cross_compiling" = yes; then
10226 echo "configure: warning: cannot run when cross-compiling" 1>&2
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 #include "${srcdir-.}/tests/trivial.c"
10233 if { (eval echo configure:10234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10235 echo "$ac_t""yes" 1>&6
10237 echo "configure: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10240 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10246 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10247 echo "configure:10248: checking for ftruncate extend" >&5
10248 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10252 if test "$cross_compiling" = yes; then
10253 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10255 cat > conftest.$ac_ext <<EOF
10256 #line 10257 "configure"
10257 #include "confdefs.h"
10258 #include "${srcdir-.}/tests/ftruncate.c"
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10262 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10267 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10274 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10275 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10276 cat >> confdefs.h <<\EOF
10277 #define HAVE_FTRUNCATE_EXTEND 1
10282 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10283 echo "configure:10284: checking for AF_LOCAL socket support" >&5
10284 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10285 echo $ac_n "(cached) $ac_c" 1>&6
10288 if test "$cross_compiling" = yes; then
10289 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10293 "configure"
10293 #include "confdefs.h"
10294 #include "${srcdir-.}/tests/unixsock.c"
10296 if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10298 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10303 samba_cv_HAVE_WORKING_AF_LOCAL=no
10310 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10311 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_WORKING_AF_LOCAL 1
10319 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10320 echo "configure:10321: checking for broken getgroups" >&5
10321 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10325 if test "$cross_compiling" = yes; then
10326 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10331 #include "${srcdir-.}/tests/getgroups.c"
10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10335 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 samba_cv_HAVE_BROKEN_GETGROUPS=no
10347 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10348 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10349 cat >> confdefs.h <<\EOF
10350 #define HAVE_BROKEN_GETGROUPS 1
10355 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10356 echo "configure:10357: checking whether getpass should be replaced" >&5
10357 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10358 echo $ac_n "(cached) $ac_c" 1>&6
10361 SAVE_CPPFLAGS="$CPPFLAGS"
10362 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10363 cat > conftest.$ac_ext <<EOF
10364 #line 10365 "configure"
10365 #include "confdefs.h"
10367 #define REPLACE_GETPASS 1
10368 #define NO_CONFIG_H 1
10369 #define main dont_declare_main
10370 #include "${srcdir-.}/lib/getsmbpass.c"
10377 if { (eval echo configure:10378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10379 samba_cv_REPLACE_GETPASS=yes
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10384 samba_cv_REPLACE_GETPASS=no
10387 CPPFLAGS="$SAVE_CPPFLAGS"
10391 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10392 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10393 cat >> confdefs.h <<\EOF
10394 #define REPLACE_GETPASS 1
10399 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10400 echo "configure:10401: checking for broken inet_ntoa" >&5
10401 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10405 if test "$cross_compiling" = yes; then
10406 samba_cv_REPLACE_INET_NTOA=cross
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10413 #include <sys/types.h>
10414 #include <netinet/in.h>
10415 #ifdef HAVE_ARPA_INET_H
10416 #include <arpa/inet.h>
10418 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10419 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10420 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10423 if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10425 samba_cv_REPLACE_INET_NTOA=yes
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10430 samba_cv_REPLACE_INET_NTOA=no
10437 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10438 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10439 cat >> confdefs.h <<\EOF
10440 #define REPLACE_INET_NTOA 1
10445 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10446 echo "configure:10447: checking for secure mkstemp" >&5
10447 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10451 if test "$cross_compiling" = yes; then
10452 samba_cv_HAVE_SECURE_MKSTEMP=cross
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10457 #include <stdlib.h>
10458 #include <sys/types.h>
10459 #include <sys/stat.h>
10460 #include <unistd.h>
10463 char tpl[20]="/tmp/test.XXXXXX";
10464 int fd = mkstemp(tpl);
10465 if (fd == -1) exit(1);
10467 if (fstat(fd, &st) != 0) exit(1);
10468 if ((st.st_mode & 0777) != 0600) exit(1);
10472 if { (eval echo configure:10473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10474 samba_cv_HAVE_SECURE_MKSTEMP=yes
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 samba_cv_HAVE_SECURE_MKSTEMP=no
10486 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10487 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10488 cat >> confdefs.h <<\EOF
10489 #define HAVE_SECURE_MKSTEMP 1
10494 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10495 echo "configure:10496: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10496 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10497 echo $ac_n "(cached) $ac_c" 1>&6
10500 if test "$cross_compiling" = yes; then
10501 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 #include <unistd.h>
10507 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10509 if { (eval echo configure:10510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10511 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10516 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10523 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10524 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10525 cat >> confdefs.h <<\EOF
10526 #define SYSCONF_SC_NGROUPS_MAX 1
10531 echo $ac_n "checking for root""... $ac_c" 1>&6
10532 echo "configure:10533: checking for root" >&5
10533 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10534 echo $ac_n "(cached) $ac_c" 1>&6
10537 if test "$cross_compiling" = yes; then
10538 samba_cv_HAVE_ROOT=cross
10540 cat > conftest.$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 main() { exit(getuid() != 0); }
10545 if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10547 samba_cv_HAVE_ROOT=yes
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10552 samba_cv_HAVE_ROOT=no
10559 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10560 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10561 cat >> confdefs.h <<\EOF
10562 #define HAVE_ROOT 1
10566 echo "configure: warning: running as non-root will disable some tests" 1>&2
10570 # look for a method of finding the list of network interfaces
10572 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10573 echo "configure:10574: checking for iface AIX" >&5
10574 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10575 echo $ac_n "(cached) $ac_c" 1>&6
10578 if test "$cross_compiling" = yes; then
10579 samba_cv_HAVE_IFACE_AIX=cross
10581 cat > conftest.$ac_ext <<EOF
10582 #line 10583 "configure"
10583 #include "confdefs.h"
10585 #define HAVE_IFACE_AIX 1
10586 #define AUTOCONF_TEST 1
10587 #include "confdefs.h"
10588 #include "${srcdir-.}/lib/interfaces.c"
10590 if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10592 samba_cv_HAVE_IFACE_AIX=yes
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10597 samba_cv_HAVE_IFACE_AIX=no
10604 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10605 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10606 iface=yes;cat >> confdefs.h <<\EOF
10607 #define HAVE_IFACE_AIX 1
10612 if test $iface = no; then
10613 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10614 echo "configure:10615: checking for iface ifconf" >&5
10615 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10619 if test "$cross_compiling" = yes; then
10620 samba_cv_HAVE_IFACE_IFCONF=cross
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10626 #define HAVE_IFACE_IFCONF 1
10627 #define AUTOCONF_TEST 1
10628 #include "confdefs.h"
10629 #include "${srcdir-.}/lib/interfaces.c"
10631 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10633 samba_cv_HAVE_IFACE_IFCONF=yes
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 samba_cv_HAVE_IFACE_IFCONF=no
10645 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10646 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10647 iface=yes;cat >> confdefs.h <<\EOF
10648 #define HAVE_IFACE_IFCONF 1
10654 if test $iface = no; then
10655 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10656 echo "configure:10657: checking for iface ifreq" >&5
10657 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10658 echo $ac_n "(cached) $ac_c" 1>&6
10661 if test "$cross_compiling" = yes; then
10662 samba_cv_HAVE_IFACE_IFREQ=cross
10664 cat > conftest.$ac_ext <<EOF
10665 #line 10666 "configure"
10666 #include "confdefs.h"
10668 #define HAVE_IFACE_IFREQ 1
10669 #define AUTOCONF_TEST 1
10670 #include "confdefs.h"
10671 #include "${srcdir-.}/lib/interfaces.c"
10673 if { (eval echo configure:10674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10675 samba_cv_HAVE_IFACE_IFREQ=yes
10677 echo "configure: failed program was:" >&5
10678 cat conftest.$ac_ext >&5
10680 samba_cv_HAVE_IFACE_IFREQ=no
10687 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10688 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10689 iface=yes;cat >> confdefs.h <<\EOF
10690 #define HAVE_IFACE_IFREQ 1
10697 ################################################
10698 # look for a method of setting the effective uid
10700 if test $seteuid = no; then
10701 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10702 echo "configure:10703: checking for setresuid" >&5
10703 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10707 if test "$cross_compiling" = yes; then
10708 samba_cv_USE_SETRESUID=cross
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10714 #define AUTOCONF_TEST 1
10715 #define USE_SETRESUID 1
10716 #include "confdefs.h"
10717 #include "${srcdir-.}/lib/util_sec.c"
10719 if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10721 samba_cv_USE_SETRESUID=yes
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 samba_cv_USE_SETRESUID=no
10733 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10734 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10735 seteuid=yes;cat >> confdefs.h <<\EOF
10736 #define USE_SETRESUID 1
10743 if test $seteuid = no; then
10744 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10745 echo "configure:10746: checking for setreuid" >&5
10746 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10750 if test "$cross_compiling" = yes; then
10751 samba_cv_USE_SETREUID=cross
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10757 #define AUTOCONF_TEST 1
10758 #define USE_SETREUID 1
10759 #include "confdefs.h"
10760 #include "${srcdir-.}/lib/util_sec.c"
10762 if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10764 samba_cv_USE_SETREUID=yes
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10769 samba_cv_USE_SETREUID=no
10776 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10777 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10778 seteuid=yes;cat >> confdefs.h <<\EOF
10779 #define USE_SETREUID 1
10785 if test $seteuid = no; then
10786 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10787 echo "configure:10788: checking for seteuid" >&5
10788 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10792 if test "$cross_compiling" = yes; then
10793 samba_cv_USE_SETEUID=cross
10795 cat > conftest.$ac_ext <<EOF
10796 #line 10797 "configure"
10797 #include "confdefs.h"
10799 #define AUTOCONF_TEST 1
10800 #define USE_SETEUID 1
10801 #include "confdefs.h"
10802 #include "${srcdir-.}/lib/util_sec.c"
10804 if { (eval echo configure:10805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10806 samba_cv_USE_SETEUID=yes
10808 echo "configure: failed program was:" >&5
10809 cat conftest.$ac_ext >&5
10811 samba_cv_USE_SETEUID=no
10818 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10819 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10820 seteuid=yes;cat >> confdefs.h <<\EOF
10821 #define USE_SETEUID 1
10827 if test $seteuid = no; then
10828 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10829 echo "configure:10830: checking for setuidx" >&5
10830 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10831 echo $ac_n "(cached) $ac_c" 1>&6
10834 if test "$cross_compiling" = yes; then
10835 samba_cv_USE_SETUIDX=cross
10837 cat > conftest.$ac_ext <<EOF
10838 #line 10839 "configure"
10839 #include "confdefs.h"
10841 #define AUTOCONF_TEST 1
10842 #define USE_SETUIDX 1
10843 #include "confdefs.h"
10844 #include "${srcdir-.}/lib/util_sec.c"
10846 if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10848 samba_cv_USE_SETUIDX=yes
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10853 samba_cv_USE_SETUIDX=no
10860 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10861 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10862 seteuid=yes;cat >> confdefs.h <<\EOF
10863 #define USE_SETUIDX 1
10870 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10871 echo "configure:10872: checking for working mmap" >&5
10872 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10873 echo $ac_n "(cached) $ac_c" 1>&6
10876 if test "$cross_compiling" = yes; then
10877 samba_cv_HAVE_MMAP=cross
10879 cat > conftest.$ac_ext <<EOF
10880 #line 10881 "configure"
10881 #include "confdefs.h"
10882 #include "${srcdir-.}/tests/shared_mmap.c"
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10886 samba_cv_HAVE_MMAP=yes
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10891 samba_cv_HAVE_MMAP=no
10898 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10899 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10900 cat >> confdefs.h <<\EOF
10901 #define HAVE_MMAP 1
10906 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10907 echo "configure:10908: checking for ftruncate needs root" >&5
10908 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10912 if test "$cross_compiling" = yes; then
10913 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10915 cat > conftest.$ac_ext <<EOF
10916 #line 10917 "configure"
10917 #include "confdefs.h"
10918 #include "${srcdir-.}/tests/ftruncroot.c"
10920 if { (eval echo configure:10921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10922 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10927 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10934 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10935 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10936 cat >> confdefs.h <<\EOF
10937 #define FTRUNCATE_NEEDS_ROOT 1
10942 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10943 echo "configure:10944: checking for fcntl locking" >&5
10944 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10945 echo $ac_n "(cached) $ac_c" 1>&6
10948 if test "$cross_compiling" = yes; then
10949 samba_cv_HAVE_FCNTL_LOCK=cross
10951 cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 #include "${srcdir-.}/tests/fcntl_lock.c"
10956 if { (eval echo configure:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10958 samba_cv_HAVE_FCNTL_LOCK=yes
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10963 samba_cv_HAVE_FCNTL_LOCK=no
10970 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10971 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10972 cat >> confdefs.h <<\EOF
10973 #define HAVE_FCNTL_LOCK 1
10978 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10979 echo "configure:10980: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10980 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10981 echo $ac_n "(cached) $ac_c" 1>&6
10984 if test "$cross_compiling" = yes; then
10985 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10987 cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10990 #include "${srcdir-.}/tests/fcntl_lock64.c"
10992 if { (eval echo configure:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10994 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10999 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11006 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11007 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11008 cat >> confdefs.h <<\EOF
11009 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11016 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11017 echo "configure:11018: checking for 64 bit fcntl locking" >&5
11018 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11019 echo $ac_n "(cached) $ac_c" 1>&6
11022 if test "$cross_compiling" = yes; then
11023 samba_cv_HAVE_STRUCT_FLOCK64=cross
11025 cat > conftest.$ac_ext <<EOF
11026 #line 11027 "configure"
11027 #include "confdefs.h"
11029 #if defined(HAVE_UNISTD_H)
11030 #include <unistd.h>
11033 #include <stdlib.h>
11035 #ifdef HAVE_FCNTL_H
11039 #ifdef HAVE_SYS_FCNTL_H
11040 #include <sys/fcntl.h>
11042 main() { struct flock64 fl64;
11043 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11052 samba_cv_HAVE_STRUCT_FLOCK64=yes
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 samba_cv_HAVE_STRUCT_FLOCK64=no
11064 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11066 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11067 cat >> confdefs.h <<\EOF
11068 #define HAVE_STRUCT_FLOCK64 1
11077 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11078 echo "configure:11079: checking for broken RedHat 7.2 system header files" >&5
11079 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11080 echo $ac_n "(cached) $ac_c" 1>&6
11083 cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure"
11085 #include "confdefs.h"
11087 #ifdef HAVE_SYS_VFS_H
11088 #include <sys/vfs.h>
11090 #ifdef HAVE_SYS_CAPABILITY_H
11091 #include <sys/capability.h>
11098 if { (eval echo configure:11099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11100 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11105 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11110 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11111 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11112 cat >> confdefs.h <<\EOF
11113 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11120 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11121 echo "configure:11122: checking for broken nisplus include files" >&5
11122 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11123 echo $ac_n "(cached) $ac_c" 1>&6
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11129 #include <sys/acl.h>
11130 #if defined(HAVE_RPCSVC_NIS_H)
11131 #include <rpcsvc/nis.h>
11137 if { (eval echo configure:11138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11139 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11149 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11150 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11151 cat >> confdefs.h <<\EOF
11152 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11158 #################################################
11159 # check for smbwrapper support
11160 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11161 echo "configure:11162: checking whether to use smbwrapper" >&5
11162 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11163 if test "${with_smbwrapper+set}" = set; then
11164 withval="$with_smbwrapper"
11167 echo "$ac_t""yes" 1>&6
11168 cat >> confdefs.h <<\EOF
11169 #define WITH_SMBWRAPPER 1
11172 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11174 if test x$ATTEMPT_WRAP32_BUILD = x; then
11177 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11180 # Conditions under which smbwrapper should not be built.
11182 if test x$PICFLAG = x; then
11183 echo No support for PIC code - disabling smbwrapper and smbsh
11186 elif test x$ac_cv_func_syscall = xno; then
11187 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11193 echo "$ac_t""no" 1>&6
11197 echo "$ac_t""no" 1>&6
11202 #################################################
11203 # check for AFS clear-text auth support
11204 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11205 echo "configure:11206: checking whether to use AFS clear-text auth" >&5
11206 # Check whether --with-afs or --without-afs was given.
11207 if test "${with_afs+set}" = set; then
11208 withval="$with_afs"
11211 echo "$ac_t""yes" 1>&6
11212 cat >> confdefs.h <<\EOF
11218 echo "$ac_t""no" 1>&6
11222 echo "$ac_t""no" 1>&6
11228 #################################################
11229 # check for the DFS clear-text auth system
11230 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11231 echo "configure:11232: checking whether to use DFS clear-text auth" >&5
11232 # Check whether --with-dfs or --without-dfs was given.
11233 if test "${with_dfs+set}" = set; then
11234 withval="$with_dfs"
11237 echo "$ac_t""yes" 1>&6
11238 cat >> confdefs.h <<\EOF
11244 echo "$ac_t""no" 1>&6
11248 echo "$ac_t""no" 1>&6
11254 #################################################
11255 # check for location of Kerberos 5 install
11256 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11257 echo "configure:11258: checking for kerberos 5 install path" >&5
11258 # Check whether --with-krb5 or --without-krb5 was given.
11259 if test "${with_krb5+set}" = set; then
11260 withval="$with_krb5"
11263 echo "$ac_t""no" 1>&6
11266 echo "$ac_t""yes" 1>&6
11267 LIBS="$LIBS -lkrb5"
11268 CFLAGS="$CFLAGS -I$withval/include"
11269 LDFLAGS="$LDFLAGS -L$withval/lib"
11270 cat >> confdefs.h <<\EOF
11271 #define HAVE_KRB5 1
11278 echo "$ac_t""no" 1>&6
11283 ##################################################################
11284 # we might need the k5crypto and com_err libraries on some systems
11285 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11286 echo "configure:11287: checking for _et_list in -lcom_err" >&5
11287 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11291 ac_save_LIBS="$LIBS"
11292 LIBS="-lcom_err $LIBS"
11293 cat > conftest.$ac_ext <<EOF
11294 #line 11295 "configure"
11295 #include "confdefs.h"
11296 /* Override any gcc2 internal prototype to avoid an error. */
11297 /* We use char because int might match the return type of a gcc2
11298 builtin and then its argument prototype would still apply. */
11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11307 eval "ac_cv_lib_$ac_lib_var=yes"
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11312 eval "ac_cv_lib_$ac_lib_var=no"
11315 LIBS="$ac_save_LIBS"
11318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11319 echo "$ac_t""yes" 1>&6
11320 LIBS="$LIBS -lcom_err"
11322 echo "$ac_t""no" 1>&6
11325 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11326 echo "configure:11327: checking for krb5_encrypt_data in -lk5crypto" >&5
11327 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11329 echo $ac_n "(cached) $ac_c" 1>&6
11331 ac_save_LIBS="$LIBS"
11332 LIBS="-lk5crypto $LIBS"
11333 cat > conftest.$ac_ext <<EOF
11334 #line 11335 "configure"
11335 #include "confdefs.h"
11336 /* Override any gcc2 internal prototype to avoid an error. */
11337 /* We use char because int might match the return type of a gcc2
11338 builtin and then its argument prototype would still apply. */
11339 char krb5_encrypt_data();
11342 krb5_encrypt_data()
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11347 eval "ac_cv_lib_$ac_lib_var=yes"
11349 echo "configure: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11352 eval "ac_cv_lib_$ac_lib_var=no"
11355 LIBS="$ac_save_LIBS"
11358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11359 echo "$ac_t""yes" 1>&6
11360 LIBS="$LIBS -lk5crypto"
11362 echo "$ac_t""no" 1>&6
11367 ########################################################
11368 # now see if we can find the krb5 libs in standard paths
11369 if test x$have_krb5 != xyes; then
11370 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11371 echo "configure:11372: checking for krb5_mk_req_extended in -lkrb5" >&5
11372 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11376 ac_save_LIBS="$LIBS"
11377 LIBS="-lkrb5 $LIBS"
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11381 /* Override any gcc2 internal prototype to avoid an error. */
11382 /* We use char because int might match the return type of a gcc2
11383 builtin and then its argument prototype would still apply. */
11384 char krb5_mk_req_extended();
11387 krb5_mk_req_extended()
11390 if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11392 eval "ac_cv_lib_$ac_lib_var=yes"
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11397 eval "ac_cv_lib_$ac_lib_var=no"
11400 LIBS="$ac_save_LIBS"
11403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11404 echo "$ac_t""yes" 1>&6
11405 LIBS="$LIBS -lkrb5";
11406 cat >> confdefs.h <<\EOF
11407 #define HAVE_KRB5 1
11411 echo "$ac_t""no" 1>&6
11416 ########################################################
11417 # now see if we can find the ldap libs in standard paths
11418 if test x$have_ldap != xyes; then
11419 echo $ac_n "checking for ldap_open in -lldap""... $ac_c" 1>&6
11420 echo "configure:11421: checking for ldap_open in -lldap" >&5
11421 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
11422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11425 ac_save_LIBS="$LIBS"
11426 LIBS="-lldap $LIBS"
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 /* Override any gcc2 internal prototype to avoid an error. */
11431 /* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11441 eval "ac_cv_lib_$ac_lib_var=yes"
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11446 eval "ac_cv_lib_$ac_lib_var=no"
11449 LIBS="$ac_save_LIBS"
11452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11453 echo "$ac_t""yes" 1>&6
11454 LIBS="$LIBS -lldap";
11455 cat >> confdefs.h <<\EOF
11456 #define HAVE_LDAP 1
11460 echo "$ac_t""no" 1>&6
11464 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11465 echo "configure:11466: checking for ber_scanf in -llber" >&5
11466 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11468 echo $ac_n "(cached) $ac_c" 1>&6
11470 ac_save_LIBS="$LIBS"
11471 LIBS="-llber $LIBS"
11472 cat > conftest.$ac_ext <<EOF
11473 #line 11474 "configure"
11474 #include "confdefs.h"
11475 /* Override any gcc2 internal prototype to avoid an error. */
11476 /* We use char because int might match the return type of a gcc2
11477 builtin and then its argument prototype would still apply. */
11484 if { (eval echo configure:11485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11486 eval "ac_cv_lib_$ac_lib_var=yes"
11488 echo "configure: failed program was:" >&5
11489 cat conftest.$ac_ext >&5
11491 eval "ac_cv_lib_$ac_lib_var=no"
11494 LIBS="$ac_save_LIBS"
11497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11498 echo "$ac_t""yes" 1>&6
11499 LIBS="$LIBS -llber"
11501 echo "$ac_t""no" 1>&6
11506 #################################################
11507 # check for automount support
11508 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11509 echo "configure:11510: checking whether to use AUTOMOUNT" >&5
11510 # Check whether --with-automount or --without-automount was given.
11511 if test "${with_automount+set}" = set; then
11512 withval="$with_automount"
11515 echo "$ac_t""yes" 1>&6
11516 cat >> confdefs.h <<\EOF
11517 #define WITH_AUTOMOUNT 1
11522 echo "$ac_t""no" 1>&6
11526 echo "$ac_t""no" 1>&6
11531 #################################################
11532 # check for smbmount support
11533 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11534 echo "configure:11535: checking whether to use SMBMOUNT" >&5
11535 # Check whether --with-smbmount or --without-smbmount was given.
11536 if test "${with_smbmount+set}" = set; then
11537 withval="$with_smbmount"
11542 echo "$ac_t""yes" 1>&6
11543 cat >> confdefs.h <<\EOF
11544 #define WITH_SMBMOUNT 1
11547 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11550 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11555 echo "$ac_t""no" 1>&6
11560 echo "$ac_t""no" 1>&6
11567 #################################################
11568 # check for a PAM clear-text auth, accounts, password and session support
11569 with_pam_for_crypt=no
11570 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
11571 echo "configure:11572: checking whether to use PAM" >&5
11572 # Check whether --with-pam or --without-pam was given.
11573 if test "${with_pam+set}" = set; then
11574 withval="$with_pam"
11577 echo "$ac_t""yes" 1>&6
11578 cat >> confdefs.h <<\EOF
11583 with_pam_for_crypt=yes
11586 echo "$ac_t""no" 1>&6
11590 echo "$ac_t""no" 1>&6
11595 # we can't build a pam module if we don't have pam.
11596 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11597 echo "configure:11598: checking for pam_get_data in -lpam" >&5
11598 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11600 echo $ac_n "(cached) $ac_c" 1>&6
11602 ac_save_LIBS="$LIBS"
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11607 /* Override any gcc2 internal prototype to avoid an error. */
11608 /* We use char because int might match the return type of a gcc2
11609 builtin and then its argument prototype would still apply. */
11610 char pam_get_data();
11616 if { (eval echo configure:11617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11618 eval "ac_cv_lib_$ac_lib_var=yes"
11620 echo "configure: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11623 eval "ac_cv_lib_$ac_lib_var=no"
11626 LIBS="$ac_save_LIBS"
11629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11630 echo "$ac_t""yes" 1>&6
11631 cat >> confdefs.h <<\EOF
11632 #define HAVE_LIBPAM 1
11636 echo "$ac_t""no" 1>&6
11640 #################################################
11641 # check for pam_smbpass support
11642 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11643 echo "configure:11644: checking whether to use pam_smbpass" >&5
11644 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11645 if test "${with_pam_smbpass+set}" = set; then
11646 withval="$with_pam_smbpass"
11649 echo "$ac_t""yes" 1>&6
11651 # Conditions under which pam_smbpass should not be built.
11653 if test x$PICFLAG = x; then
11654 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11656 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11657 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11660 PAM_MOD="bin/pam_smbpass.so"
11664 echo "$ac_t""no" 1>&6
11668 echo "$ac_t""no" 1>&6
11674 ###############################################
11675 # test for where we get crypt() from, but only
11677 if test $with_pam_for_crypt = no; then
11678 for ac_func in crypt
11680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11681 echo "configure:11682: checking for $ac_func" >&5
11682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11688 /* System header to define __stub macros and hopefully few prototypes,
11689 which can conflict with char $ac_func(); below. */
11690 #include <assert.h>
11691 /* Override any gcc2 internal prototype to avoid an error. */
11692 /* We use char because int might match the return type of a gcc2
11693 builtin and then its argument prototype would still apply. */
11698 /* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11709 if { (eval echo configure:11710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11711 eval "ac_cv_func_$ac_func=yes"
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11716 eval "ac_cv_func_$ac_func=no"
11721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11722 echo "$ac_t""yes" 1>&6
11723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11724 cat >> confdefs.h <<EOF
11725 #define $ac_tr_func 1
11729 echo "$ac_t""no" 1>&6
11733 if test x"$ac_cv_func_crypt" = x"no"; then
11734 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11735 echo "configure:11736: checking for crypt in -lcrypt" >&5
11736 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11738 echo $ac_n "(cached) $ac_c" 1>&6
11740 ac_save_LIBS="$LIBS"
11741 LIBS="-lcrypt $LIBS"
11742 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11745 /* Override any gcc2 internal prototype to avoid an error. */
11746 /* We use char because int might match the return type of a gcc2
11747 builtin and then its argument prototype would still apply. */
11754 if { (eval echo configure:11755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11756 eval "ac_cv_lib_$ac_lib_var=yes"
11758 echo "configure: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11761 eval "ac_cv_lib_$ac_lib_var=no"
11764 LIBS="$ac_save_LIBS"
11767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11768 echo "$ac_t""yes" 1>&6
11769 LIBS="$LIBS -lcrypt";
11770 cat >> confdefs.h <<\EOF
11771 #define HAVE_CRYPT 1
11775 echo "$ac_t""no" 1>&6
11782 ## moved after the check for -lcrypt in order to
11783 ## ensure that the necessary libraries are included
11784 ## check checking for truncated salt. Wrapped by the
11785 ## $with_pam_for_crypt variable as above --jerry
11787 if test $with_pam_for_crypt = no; then
11788 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11789 echo "configure:11790: checking for a crypt that needs truncated salt" >&5
11790 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11791 echo $ac_n "(cached) $ac_c" 1>&6
11794 if test "$cross_compiling" = yes; then
11795 samba_cv_HAVE_TRUNCATED_SALT=cross
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800 #include "${srcdir-.}/tests/crypttest.c"
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11804 samba_cv_HAVE_TRUNCATED_SALT=no
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11809 samba_cv_HAVE_TRUNCATED_SALT=yes
11816 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11817 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11818 cat >> confdefs.h <<\EOF
11819 #define HAVE_TRUNCATED_SALT 1
11827 ########################################################################################
11829 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11831 ########################################################################################
11833 ## set the with_smbpasswd_sam as the default
11834 with_smbpasswd_sam=yes
11837 #################################################
11838 # check for a TDB password database
11839 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11840 echo "configure:11841: checking whether to use TDB SAM database" >&5
11841 # Check whether --with-tdbsam or --without-tdbsam was given.
11842 if test "${with_tdbsam+set}" = set; then
11843 withval="$with_tdbsam"
11846 echo "$ac_t""yes" 1>&6
11847 cat >> confdefs.h <<\EOF
11848 #define WITH_TDB_SAM 1
11851 with_smbpasswd_sam=no
11854 echo "$ac_t""no" 1>&6
11858 echo "$ac_t""no" 1>&6
11863 #################################################
11864 # check for a LDAP password database
11865 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11866 echo "configure:11867: checking whether to use LDAP SAM database" >&5
11867 # Check whether --with-ldapsam or --without-ldapsam was given.
11868 if test "${with_ldapsam+set}" = set; then
11869 withval="$with_ldapsam"
11872 echo "$ac_t""yes" 1>&6
11873 cat >> confdefs.h <<\EOF
11874 #define WITH_LDAP_SAM 1
11877 LIBS="-lldap -llber $LIBS"
11878 with_smbpasswd_sam=no
11881 echo "$ac_t""no" 1>&6
11885 echo "$ac_t""no" 1>&6
11890 #################################################
11891 # check for a NISPLUS password database
11892 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11893 echo "configure:11894: checking whether to use NISPLUS SAM database" >&5
11894 # Check whether --with-nisplussam or --without-nisplussam was given.
11895 if test "${with_nisplussam+set}" = set; then
11896 withval="$with_nisplussam"
11899 echo "$ac_t""yes" 1>&6
11900 cat >> confdefs.h <<\EOF
11901 #define WITH_NISPLUS_SAM 1
11904 with_smbpasswd_sam=no
11907 echo "$ac_t""no" 1>&6
11911 echo "$ac_t""no" 1>&6
11916 ################################################
11917 # This test should come last because the
11918 # smbpasswd SAM is only used if another format
11919 # has not been defined
11920 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11921 echo "configure:11922: checking whether to use traditional smbpasswd file" >&5
11922 if test $with_smbpasswd_sam = yes; then
11923 echo "$ac_t""yes" 1>&6
11924 cat >> confdefs.h <<\EOF
11925 #define WITH_SMBPASSWD_SAM 1
11929 echo "$ac_t""no" 1>&6
11932 ########################################################################################
11934 ## END OF TESTS FOR SAM BACKENDS.
11936 ########################################################################################
11938 #################################################
11939 # check for a NISPLUS_HOME support
11940 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11941 echo "configure:11942: checking whether to use NISPLUS_HOME" >&5
11942 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11943 if test "${with_nisplus_home+set}" = set; then
11944 withval="$with_nisplus_home"
11947 echo "$ac_t""yes" 1>&6
11948 cat >> confdefs.h <<\EOF
11949 #define WITH_NISPLUS_HOME 1
11954 echo "$ac_t""no" 1>&6
11958 echo "$ac_t""no" 1>&6
11963 #################################################
11964 # check for the secure socket layer
11965 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11966 echo "configure:11967: checking whether to use SSL" >&5
11967 # Check whether --with-ssl or --without-ssl was given.
11968 if test "${with_ssl+set}" = set; then
11969 withval="$with_ssl"
11972 echo "$ac_t""yes" 1>&6
11973 cat >> confdefs.h <<\EOF
11977 withval="/usr/local/ssl" # default
11979 if test "${with_sslinc+set}" = set; then
11981 withval="$with_sslinc"
11984 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11985 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11988 CFLAGS="-I${withval} $CFLAGS"
11994 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11998 if test "${with_ssllib+set}" = set; then
12000 withval="$with_ssllib"
12003 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12004 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12007 LDFLAGS="-L${withval}/lib $LDFLAGS"
12013 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12017 LIBS="-lssl -lcrypto $LIBS"
12019 # if test ! -d ${withval}; then
12020 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12024 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12028 echo "$ac_t""no" 1>&6
12032 echo "$ac_t""no" 1>&6
12037 #################################################
12038 # check for syslog logging
12039 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12040 echo "configure:12041: checking whether to use syslog logging" >&5
12041 # Check whether --with-syslog or --without-syslog was given.
12042 if test "${with_syslog+set}" = set; then
12043 withval="$with_syslog"
12046 echo "$ac_t""yes" 1>&6
12047 cat >> confdefs.h <<\EOF
12048 #define WITH_SYSLOG 1
12053 echo "$ac_t""no" 1>&6
12057 echo "$ac_t""no" 1>&6
12062 #################################################
12063 # check for a shared memory profiling support
12064 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12065 echo "configure:12066: checking whether to use profiling" >&5
12066 # Check whether --with-profiling-data or --without-profiling-data was given.
12067 if test "${with_profiling_data+set}" = set; then
12068 withval="$with_profiling_data"
12071 echo "$ac_t""yes" 1>&6
12072 cat >> confdefs.h <<\EOF
12073 #define WITH_PROFILE 1
12078 echo "$ac_t""no" 1>&6
12082 echo "$ac_t""no" 1>&6
12088 #################################################
12089 # check for experimental disk-quotas support
12090 QUOTAOBJS=smbd/noquotas.o
12092 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12093 echo "configure:12094: checking whether to support disk-quotas" >&5
12094 # Check whether --with-quotas or --without-quotas was given.
12095 if test "${with_quotas+set}" = set; then
12096 withval="$with_quotas"
12099 echo "$ac_t""yes" 1>&6
12102 # Check for kernel 2.4.x quota braindamage...
12103 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12104 echo "configure:12105: checking for linux 2.4.x quota braindamage.." >&5
12105 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12106 echo $ac_n "(cached) $ac_c" 1>&6
12109 cat > conftest.$ac_ext <<EOF
12110 #line 12111 "configure"
12111 #include "confdefs.h"
12113 #include <sys/types.h>
12114 #include <asm/types.h>
12115 #include <linux/quota.h>
12116 #include <mntent.h>
12117 #include <linux/unistd.h>
12119 struct mem_dqblk D;
12122 if { (eval echo configure:12123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12124 samba_cv_linux_2_4_quota_braindamage=yes
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12129 samba_cv_linux_2_4_quota_braindamage=no
12134 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12135 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12136 cat >> confdefs.h <<\EOF
12137 #define LINUX_QUOTAS_2 1
12141 cat >> confdefs.h <<\EOF
12142 #define LINUX_QUOTAS_1 1
12150 QUOTAOBJS=smbd/quotas.o
12151 cat >> confdefs.h <<\EOF
12152 #define WITH_QUOTAS 1
12157 echo "$ac_t""no" 1>&6
12161 echo "$ac_t""no" 1>&6
12167 #################################################
12168 # check for experimental utmp accounting
12170 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12171 echo "configure:12172: checking whether to support utmp accounting" >&5
12172 # Check whether --with-utmp or --without-utmp was given.
12173 if test "${with_utmp+set}" = set; then
12174 withval="$with_utmp"
12177 echo "$ac_t""yes" 1>&6
12178 cat >> confdefs.h <<\EOF
12179 #define WITH_UTMP 1
12184 echo "$ac_t""no" 1>&6
12188 echo "$ac_t""no" 1>&6
12193 #################################################
12194 # set private directory location
12195 # Check whether --with-privatedir or --without-privatedir was given.
12196 if test "${with_privatedir+set}" = set; then
12197 withval="$with_privatedir"
12201 # Just in case anybody calls it without argument
12203 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12204 privatedir='${prefix}/private'
12207 privatedir="$withval"
12212 privatedir='${prefix}/private'
12218 #################################################
12219 # set lock directory location
12220 # Check whether --with-lockdir or --without-lockdir was given.
12221 if test "${with_lockdir+set}" = set; then
12222 withval="$with_lockdir"
12226 # Just in case anybody calls it without argument
12228 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12229 lockdir='$(VARDIR)/locks'
12237 lockdir='$(VARDIR)/locks'
12243 #################################################
12244 # set SWAT directory location
12245 # Check whether --with-swatdir or --without-swatdir was given.
12246 if test "${with_swatdir+set}" = set; then
12247 withval="$with_swatdir"
12251 # Just in case anybody does it
12253 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12254 swatdir='${prefix}/swat'
12262 swatdir='${prefix}/swat'
12268 #################################################
12269 # choose native language(s) of man pages
12270 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12271 echo "configure:12272: checking chosen man pages' language(s)" >&5
12272 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12273 if test "${with_manpages_langs+set}" = set; then
12274 withval="$with_manpages_langs"
12277 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12281 manlangs="$withval"
12285 echo "$ac_t""$manlangs" 1>&6
12286 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12290 echo "$ac_t""$manlangs" 1>&6
12296 #################################################
12297 # these tests are taken from the GNU fileutils package
12298 echo "checking how to get filesystem space usage" 1>&6
12299 echo "configure:12300: checking how to get filesystem space usage" >&5
12302 # Test for statvfs64.
12303 if test $space = no; then
12305 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12306 echo "configure:12307: checking statvfs64 function (SVR4)" >&5
12307 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12308 echo $ac_n "(cached) $ac_c" 1>&6
12310 if test "$cross_compiling" = yes; then
12311 fu_cv_sys_stat_statvfs64=cross
12313 cat > conftest.$ac_ext <<EOF
12314 #line 12315 "configure"
12315 #include "confdefs.h"
12317 #if defined(HAVE_UNISTD_H)
12318 #include <unistd.h>
12320 #include <sys/types.h>
12321 #include <sys/statvfs.h>
12324 struct statvfs64 fsd;
12325 exit (statvfs64 (".", &fsd));
12328 if { (eval echo configure:12329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12330 fu_cv_sys_stat_statvfs64=yes
12332 echo "configure: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12335 fu_cv_sys_stat_statvfs64=no
12342 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12343 if test $fu_cv_sys_stat_statvfs64 = yes; then
12345 cat >> confdefs.h <<\EOF
12346 #define STAT_STATVFS64 1
12352 # Perform only the link test since it seems there are no variants of the
12353 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12354 # because that got a false positive on SCO OSR5. Adding the declaration
12355 # of a `struct statvfs' causes this test to fail (as it should) on such
12356 # systems. That system is reported to work fine with STAT_STATFS4 which
12357 # is what it gets when this test fails.
12358 if test $space = no; then
12360 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12361 echo "configure:12362: checking statvfs function (SVR4)" >&5
12362 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12363 echo $ac_n "(cached) $ac_c" 1>&6
12365 cat > conftest.$ac_ext <<EOF
12366 #line 12367 "configure"
12367 #include "confdefs.h"
12368 #include <sys/types.h>
12369 #include <sys/statvfs.h>
12371 struct statvfs fsd; statvfs (0, &fsd);
12374 if { (eval echo configure:12375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12376 fu_cv_sys_stat_statvfs=yes
12378 echo "configure: failed program was:" >&5
12379 cat conftest.$ac_ext >&5
12381 fu_cv_sys_stat_statvfs=no
12386 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12387 if test $fu_cv_sys_stat_statvfs = yes; then
12389 cat >> confdefs.h <<\EOF
12390 #define STAT_STATVFS 1
12396 if test $space = no; then
12397 # DEC Alpha running OSF/1
12398 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12399 echo "configure:12400: checking for 3-argument statfs function (DEC OSF/1)" >&5
12400 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12403 if test "$cross_compiling" = yes; then
12404 fu_cv_sys_stat_statfs3_osf1=no
12406 cat > conftest.$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12410 #include <sys/param.h>
12411 #include <sys/types.h>
12412 #include <sys/mount.h>
12417 exit (statfs (".", &fsd, sizeof (struct statfs)));
12420 if { (eval echo configure:12421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12422 fu_cv_sys_stat_statfs3_osf1=yes
12424 echo "configure: failed program was:" >&5
12425 cat conftest.$ac_ext >&5
12427 fu_cv_sys_stat_statfs3_osf1=no
12434 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12435 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12437 cat >> confdefs.h <<\EOF
12438 #define STAT_STATFS3_OSF1 1
12444 if test $space = no; then
12446 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12447 echo "configure:12448: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12448 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12449 echo $ac_n "(cached) $ac_c" 1>&6
12451 if test "$cross_compiling" = yes; then
12452 fu_cv_sys_stat_statfs2_bsize=no
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12458 #ifdef HAVE_SYS_PARAM_H
12459 #include <sys/param.h>
12461 #ifdef HAVE_SYS_MOUNT_H
12462 #include <sys/mount.h>
12464 #ifdef HAVE_SYS_VFS_H
12465 #include <sys/vfs.h>
12471 exit (statfs (".", &fsd));
12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12476 fu_cv_sys_stat_statfs2_bsize=yes
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12481 fu_cv_sys_stat_statfs2_bsize=no
12488 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12489 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12491 cat >> confdefs.h <<\EOF
12492 #define STAT_STATFS2_BSIZE 1
12498 if test $space = no; then
12500 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12501 echo "configure:12502: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12502 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12505 if test "$cross_compiling" = yes; then
12506 fu_cv_sys_stat_statfs4=no
12508 cat > conftest.$ac_ext <<EOF
12509 #line 12510 "configure"
12510 #include "confdefs.h"
12511 #include <sys/types.h>
12512 #include <sys/statfs.h>
12516 exit (statfs (".", &fsd, sizeof fsd, 0));
12519 if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12521 fu_cv_sys_stat_statfs4=yes
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12526 fu_cv_sys_stat_statfs4=no
12533 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12534 if test $fu_cv_sys_stat_statfs4 = yes; then
12536 cat >> confdefs.h <<\EOF
12537 #define STAT_STATFS4 1
12543 if test $space = no; then
12544 # 4.4BSD and NetBSD
12545 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12546 echo "configure:12547: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12547 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12548 echo $ac_n "(cached) $ac_c" 1>&6
12550 if test "$cross_compiling" = yes; then
12551 fu_cv_sys_stat_statfs2_fsize=no
12553 cat > conftest.$ac_ext <<EOF
12554 #line 12555 "configure"
12555 #include "confdefs.h"
12556 #include <sys/types.h>
12557 #ifdef HAVE_SYS_PARAM_H
12558 #include <sys/param.h>
12560 #ifdef HAVE_SYS_MOUNT_H
12561 #include <sys/mount.h>
12567 exit (statfs (".", &fsd));
12570 if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12572 fu_cv_sys_stat_statfs2_fsize=yes
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12577 fu_cv_sys_stat_statfs2_fsize=no
12584 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12585 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12587 cat >> confdefs.h <<\EOF
12588 #define STAT_STATFS2_FSIZE 1
12594 if test $space = no; then
12596 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12597 echo "configure:12598: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12598 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12599 echo $ac_n "(cached) $ac_c" 1>&6
12601 if test "$cross_compiling" = yes; then
12602 fu_cv_sys_stat_fs_data=no
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 #include <sys/types.h>
12608 #ifdef HAVE_SYS_PARAM_H
12609 #include <sys/param.h>
12611 #ifdef HAVE_SYS_MOUNT_H
12612 #include <sys/mount.h>
12614 #ifdef HAVE_SYS_FS_TYPES_H
12615 #include <sys/fs_types.h>
12619 struct fs_data fsd;
12620 /* Ultrix's statfs returns 1 for success,
12621 0 for not mounted, -1 for failure. */
12622 exit (statfs (".", &fsd) != 1);
12625 if { (eval echo configure:12626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12627 fu_cv_sys_stat_fs_data=yes
12629 echo "configure: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12632 fu_cv_sys_stat_fs_data=no
12639 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12640 if test $fu_cv_sys_stat_fs_data = yes; then
12642 cat >> confdefs.h <<\EOF
12643 #define STAT_STATFS2_FS_DATA 1
12650 # As a gating factor for large file support, in order to
12651 # use <4GB files we must have the following minimal support
12653 # long long, and a 64 bit off_t or off64_t.
12654 # If we don't have all of these then disable large
12657 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12658 echo "configure:12659: checking if large file support can be enabled" >&5
12659 cat > conftest.$ac_ext <<EOF
12660 #line 12661 "configure"
12661 #include "confdefs.h"
12663 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12664 #include <sys/types.h>
12673 if { (eval echo configure:12674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12675 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12677 echo "configure: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12680 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12683 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12684 cat >> confdefs.h <<\EOF
12685 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12689 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12691 # Check whether --with-spinlocks or --without-spinlocks was given.
12692 if test "${with_spinlocks+set}" = set; then
12693 withval="$with_spinlocks"
12697 if test "x$with_spinlocks" = "xyes"; then
12698 cat >> confdefs.h <<\EOF
12699 #define USE_SPINLOCKS 1
12703 case "$host_cpu" in
12705 cat >> confdefs.h <<\EOF
12706 #define SPARC_SPINLOCKS 1
12711 i386|i486|i586|i686)
12712 cat >> confdefs.h <<\EOF
12713 #define INTEL_SPINLOCKS 1
12719 cat >> confdefs.h <<\EOF
12720 #define MIPS_SPINLOCKS 1
12726 cat >> confdefs.h <<\EOF
12727 #define POWERPC_SPINLOCKS 1
12734 #################################################
12735 # check for ACL support
12737 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12738 echo "configure:12739: checking whether to support ACLs" >&5
12739 # Check whether --with-acl-support or --without-acl-support was given.
12740 if test "${with_acl_support+set}" = set; then
12741 withval="$with_acl_support"
12747 echo "$ac_t""Using UnixWare ACLs" 1>&6
12748 cat >> confdefs.h <<\EOF
12749 #define HAVE_UNIXWARE_ACLS 1
12754 echo "$ac_t""Using solaris ACLs" 1>&6
12755 cat >> confdefs.h <<\EOF
12756 #define HAVE_SOLARIS_ACLS 1
12761 echo "$ac_t""Using IRIX ACLs" 1>&6
12762 cat >> confdefs.h <<\EOF
12763 #define HAVE_IRIX_ACLS 1
12768 echo "$ac_t""Using AIX ACLs" 1>&6
12769 cat >> confdefs.h <<\EOF
12770 #define HAVE_AIX_ACLS 1
12775 echo "$ac_t""Using Tru64 ACLs" 1>&6
12776 cat >> confdefs.h <<\EOF
12777 #define HAVE_TRU64_ACLS 1
12780 LIBS="$LIBS -lpacl"
12783 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12784 echo "configure:12785: checking for acl_get_file in -lacl" >&5
12785 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12787 echo $ac_n "(cached) $ac_c" 1>&6
12789 ac_save_LIBS="$LIBS"
12791 cat > conftest.$ac_ext <<EOF
12792 #line 12793 "configure"
12793 #include "confdefs.h"
12794 /* Override any gcc2 internal prototype to avoid an error. */
12795 /* We use char because int might match the return type of a gcc2
12796 builtin and then its argument prototype would still apply. */
12797 char acl_get_file();
12803 if { (eval echo configure:12804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12805 eval "ac_cv_lib_$ac_lib_var=yes"
12807 echo "configure: failed program was:" >&5
12808 cat conftest.$ac_ext >&5
12810 eval "ac_cv_lib_$ac_lib_var=no"
12813 LIBS="$ac_save_LIBS"
12816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12817 echo "$ac_t""yes" 1>&6
12818 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12819 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12820 cat >> confdefs.h <<EOF
12821 #define $ac_tr_lib 1
12827 echo "$ac_t""no" 1>&6
12830 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12831 echo "configure:12832: checking for ACL support" >&5
12832 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12833 echo $ac_n "(cached) $ac_c" 1>&6
12836 cat > conftest.$ac_ext <<EOF
12837 #line 12838 "configure"
12838 #include "confdefs.h"
12839 #include <sys/types.h>
12840 #include <sys/acl.h>
12842 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12845 if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12847 samba_cv_HAVE_POSIX_ACLS=yes
12849 echo "configure: failed program was:" >&5
12850 cat conftest.$ac_ext >&5
12852 samba_cv_HAVE_POSIX_ACLS=no
12857 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12858 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12859 echo "$ac_t""Using posix ACLs" 1>&6
12860 cat >> confdefs.h <<\EOF
12861 #define HAVE_POSIX_ACLS 1
12864 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12865 echo "configure:12866: checking for acl_get_perm_np" >&5
12866 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
12870 cat > conftest.$ac_ext <<EOF
12871 #line 12872 "configure"
12872 #include "confdefs.h"
12873 #include <sys/types.h>
12874 #include <sys/acl.h>
12876 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12879 if { (eval echo configure:12880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12881 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12883 echo "configure: failed program was:" >&5
12884 cat conftest.$ac_ext >&5
12886 samba_cv_HAVE_ACL_GET_PERM_NP=no
12891 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12892 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12893 cat >> confdefs.h <<\EOF
12894 #define HAVE_ACL_GET_PERM_NP 1
12903 echo "$ac_t""no" 1>&6
12904 cat >> confdefs.h <<\EOF
12905 #define HAVE_NO_ACLS 1
12911 cat >> confdefs.h <<\EOF
12912 #define HAVE_NO_ACLS 1
12915 echo "$ac_t""no" 1>&6
12920 #################################################
12921 # Check whether winbind is supported on this platform. If so we need to
12922 # build and install client programs (WINBIND_TARGETS), sbin programs
12923 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12925 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12926 echo "configure:12927: checking whether to build winbind" >&5
12928 # Initially, the value of $host_os decides whether winbind is supported
12936 winbind_no_reason=", unsupported on $host_os"
12940 # Check the setting of --with-winbindd
12942 # Check whether --with-winbind or --without-winbind was given.
12943 if test "${with_winbind+set}" = set; then
12944 withval="$with_winbind"
12958 # We need unix domain sockets for winbind
12960 if test x"$HAVE_WINBIND" = x"yes"; then
12961 if test x"$samba_cv_unixsocket" = x"no"; then
12962 winbind_no_reason=", no unix domain socket support on $host_os"
12967 # Display test results
12969 if test x"$HAVE_WINBIND" = x"yes"; then
12971 echo "$ac_t""yes" 1>&6
12973 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12974 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12975 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12976 case "$with_pam" in
12978 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12982 echo "$ac_t""no$winbind_no_reason" 1>&6
12985 WINBIND_STARGETS=""
12986 WINBIND_LTARGETS=""
12987 WINBIND_PAM_PROGS=""
12990 # Substitution time!
12997 #################################################
12998 # Check to see if we should use the included popt
13000 # Check whether --with-included-popt or --without-included-popt was given.
13001 if test "${with_included_popt+set}" = set; then
13002 withval="$with_included_popt"
13014 if test x"$INCLUDED_POPT" != x"yes"; then
13015 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13016 echo "configure:13017: checking for poptGetContext in -lpopt" >&5
13017 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13019 echo $ac_n "(cached) $ac_c" 1>&6
13021 ac_save_LIBS="$LIBS"
13022 LIBS="-lpopt $LIBS"
13023 cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13026 /* Override any gcc2 internal prototype to avoid an error. */
13027 /* We use char because int might match the return type of a gcc2
13028 builtin and then its argument prototype would still apply. */
13029 char poptGetContext();
13035 if { (eval echo configure:13036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13037 eval "ac_cv_lib_$ac_lib_var=yes"
13039 echo "configure: failed program was:" >&5
13040 cat conftest.$ac_ext >&5
13042 eval "ac_cv_lib_$ac_lib_var=no"
13045 LIBS="$ac_save_LIBS"
13048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13049 echo "$ac_t""yes" 1>&6
13052 echo "$ac_t""no" 1>&6
13058 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13059 echo "configure:13060: checking whether to use included popt" >&5
13060 if test x"$INCLUDED_POPT" = x"yes"; then
13061 echo "$ac_t""$srcdir/popt" 1>&6
13062 BUILD_POPT='$(POPT_OBJS)'
13063 CFLAGS="$CFLAGS -I$srcdir/popt"
13065 echo "$ac_t""no" 1>&6
13066 LIBS="$LIBS -lpopt"
13070 #################################################
13071 # final configure stuff
13073 echo "checking configure summary"
13074 if test "$cross_compiling" = yes; then
13077 cat > conftest.$ac_ext <<EOF
13078 #line 13079 "configure"
13079 #include "confdefs.h"
13080 #include "${srcdir-.}/tests/summary.c"
13082 if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13084 echo "configure OK";
13086 echo "configure: failed program was:" >&5
13087 cat conftest.$ac_ext >&5
13089 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13099 cat > confcache <<\EOF
13100 # This file is a shell script that caches the results of configure
13101 # tests run on this system so they can be shared between configure
13102 # scripts and configure runs. It is not useful on other systems.
13103 # If it contains results you don't want to keep, you may remove or edit it.
13105 # By default, configure uses ./config.cache as the cache file,
13106 # creating it if it does not exist already. You can give configure
13107 # the --cache-file=FILE option to use a different cache file; that is
13108 # what configure does when it calls configure scripts in
13109 # subdirectories, so they share the cache.
13110 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13111 # config.status only pays attention to the cache file if you give it the
13112 # --recheck option to rerun configure.
13115 # The following way of writing the cache mishandles newlines in values,
13116 # but we know of no workaround that is simple, portable, and efficient.
13117 # So, don't put newlines in cache variables' values.
13118 # Ultrix sh set writes to stderr and can't be redirected directly,
13119 # and sets the high bit in the cache file unless we assign to the vars.
13121 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13123 # `set' does not quote correctly, so add quotes (double-quote substitution
13124 # turns \\\\ into \\, and sed turns \\ into \).
13126 -e "s/'/'\\\\''/g" \
13127 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13130 # `set' quotes correctly as required by POSIX, so do not add quotes.
13131 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13134 if cmp -s $cache_file confcache; then
13137 if test -w $cache_file; then
13138 echo "updating cache $cache_file"
13139 cat confcache > $cache_file
13141 echo "not updating unwritable cache $cache_file"
13146 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13148 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13149 # Let make expand exec_prefix.
13150 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13152 # Any assignment to VPATH causes Sun make to only execute
13153 # the first set of double-colon rules, so remove it if not needed.
13154 # If there is a colon in the path, we need to keep it.
13155 if test "x$srcdir" = x.; then
13156 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13159 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13161 DEFS=-DHAVE_CONFIG_H
13163 # Without the "./", some shells look in PATH for config.status.
13164 : ${CONFIG_STATUS=./config.status}
13166 echo creating $CONFIG_STATUS
13167 rm -f $CONFIG_STATUS
13168 cat > $CONFIG_STATUS <<EOF
13170 # Generated automatically by configure.
13171 # Run this file to recreate the current configuration.
13172 # This directory was configured as follows,
13173 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13175 # $0 $ac_configure_args
13177 # Compiler output produced by configure, useful for debugging
13178 # configure, is in ./config.log if it exists.
13180 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13183 case "\$ac_option" in
13184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13185 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13186 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13187 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13188 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13190 -help | --help | --hel | --he | --h)
13191 echo "\$ac_cs_usage"; exit 0 ;;
13192 *) echo "\$ac_cs_usage"; exit 1 ;;
13196 ac_given_srcdir=$srcdir
13197 ac_given_INSTALL="$INSTALL"
13199 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13201 cat >> $CONFIG_STATUS <<EOF
13203 # Protect against being on the right side of a sed subst in config.status.
13204 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13205 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13209 s%@CFLAGS@%$CFLAGS%g
13210 s%@CPPFLAGS@%$CPPFLAGS%g
13211 s%@CXXFLAGS@%$CXXFLAGS%g
13212 s%@FFLAGS@%$FFLAGS%g
13214 s%@LDFLAGS@%$LDFLAGS%g
13216 s%@exec_prefix@%$exec_prefix%g
13217 s%@prefix@%$prefix%g
13218 s%@program_transform_name@%$program_transform_name%g
13219 s%@bindir@%$bindir%g
13220 s%@sbindir@%$sbindir%g
13221 s%@libexecdir@%$libexecdir%g
13222 s%@datadir@%$datadir%g
13223 s%@sysconfdir@%$sysconfdir%g
13224 s%@sharedstatedir@%$sharedstatedir%g
13225 s%@localstatedir@%$localstatedir%g
13226 s%@libdir@%$libdir%g
13227 s%@includedir@%$includedir%g
13228 s%@oldincludedir@%$oldincludedir%g
13229 s%@infodir@%$infodir%g
13230 s%@mandir@%$mandir%g
13231 s%@RUNPROG@%$RUNPROG%g
13232 s%@MPROGS@%$MPROGS%g
13233 s%@LDSHFLAGS@%$LDSHFLAGS%g
13235 s%@HOST_OS@%$HOST_OS%g
13236 s%@PAM_MOD@%$PAM_MOD%g
13238 s%@WRAP32@%$WRAP32%g
13239 s%@PICFLAG@%$PICFLAG%g
13240 s%@PICSUFFIX@%$PICSUFFIX%g
13241 s%@POBAD_CC@%$POBAD_CC%g
13242 s%@SHLIBEXT@%$SHLIBEXT%g
13243 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13245 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13246 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13247 s%@INSTALL_DATA@%$INSTALL_DATA%g
13249 s%@BROKEN_CC@%$BROKEN_CC%g
13251 s%@host_alias@%$host_alias%g
13252 s%@host_cpu@%$host_cpu%g
13253 s%@host_vendor@%$host_vendor%g
13254 s%@host_os@%$host_os%g
13255 s%@target@%$target%g
13256 s%@target_alias@%$target_alias%g
13257 s%@target_cpu@%$target_cpu%g
13258 s%@target_vendor@%$target_vendor%g
13259 s%@target_os@%$target_os%g
13261 s%@build_alias@%$build_alias%g
13262 s%@build_cpu@%$build_cpu%g
13263 s%@build_vendor@%$build_vendor%g
13264 s%@build_os@%$build_os%g
13266 s%@LIBOBJS@%$LIBOBJS%g
13267 s%@TERMLIBS@%$TERMLIBS%g
13268 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13270 s%@QUOTAOBJS@%$QUOTAOBJS%g
13271 s%@privatedir@%$privatedir%g
13272 s%@lockdir@%$lockdir%g
13273 s%@swatdir@%$swatdir%g
13274 s%@manlangs@%$manlangs%g
13275 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13276 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13277 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13278 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
13279 s%@BUILD_POPT@%$BUILD_POPT%g
13280 s%@builddir@%$builddir%g
13285 cat >> $CONFIG_STATUS <<\EOF
13287 # Split the substitutions into bite-sized pieces for seds with
13288 # small command number limits, like on Digital OSF/1 and HP-UX.
13289 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13290 ac_file=1 # Number of current file.
13291 ac_beg=1 # First line for current file.
13292 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13295 while $ac_more_lines; do
13296 if test $ac_beg -gt 1; then
13297 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13299 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13301 if test ! -s conftest.s$ac_file; then
13302 ac_more_lines=false
13303 rm -f conftest.s$ac_file
13305 if test -z "$ac_sed_cmds"; then
13306 ac_sed_cmds="sed -f conftest.s$ac_file"
13308 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13310 ac_file=`expr $ac_file + 1`
13312 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13315 if test -z "$ac_sed_cmds"; then
13320 cat >> $CONFIG_STATUS <<EOF
13322 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13324 cat >> $CONFIG_STATUS <<\EOF
13325 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13326 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13328 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13329 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13330 *) ac_file_in="${ac_file}.in" ;;
13333 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13335 # Remove last slash and all that follows it. Not all systems have dirname.
13336 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13337 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13338 # The file is in a subdirectory.
13339 test ! -d "$ac_dir" && mkdir "$ac_dir"
13340 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13341 # A "../" for each directory in $ac_dir_suffix.
13342 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13344 ac_dir_suffix= ac_dots=
13347 case "$ac_given_srcdir" in
13349 if test -z "$ac_dots"; then top_srcdir=.
13350 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13351 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13352 *) # Relative path.
13353 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13354 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13357 case "$ac_given_INSTALL" in
13358 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13359 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13362 echo creating "$ac_file"
13364 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13366 *Makefile*) ac_comsub="1i\\
13367 # $configure_input" ;;
13371 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13373 s%@configure_input@%$configure_input%g
13374 s%@srcdir@%$srcdir%g
13375 s%@top_srcdir@%$top_srcdir%g
13376 s%@INSTALL@%$INSTALL%g
13377 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13381 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13382 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13384 # ac_d sets the value in "#define NAME VALUE" lines.
13385 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13386 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13389 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13390 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13391 ac_uB='\([ ]\)%\1#\2define\3'
13394 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13395 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13396 ac_eB='$%\1#\2define\3'
13400 if test "${CONFIG_HEADERS+set}" != set; then
13402 cat >> $CONFIG_STATUS <<EOF
13403 CONFIG_HEADERS="include/config.h"
13405 cat >> $CONFIG_STATUS <<\EOF
13407 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13410 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13411 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13412 *) ac_file_in="${ac_file}.in" ;;
13415 echo creating $ac_file
13417 rm -f conftest.frag conftest.in conftest.out
13418 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13419 cat $ac_file_inputs > conftest.in
13423 # Transform confdefs.h into a sed script conftest.vals that substitutes
13424 # the proper values into config.h.in to produce config.h. And first:
13425 # Protect against being on the right side of a sed subst in config.status.
13426 # Protect against being in an unquoted here document in config.status.
13427 rm -f conftest.vals
13428 cat > conftest.hdr <<\EOF
13431 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13435 sed -n -f conftest.hdr confdefs.h > conftest.vals
13438 # This sed command replaces #undef with comments. This is necessary, for
13439 # example, in the case of _POSIX_SOURCE, which is predefined and required
13440 # on some systems where configure will not decide to define it.
13441 cat >> conftest.vals <<\EOF
13442 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13445 # Break up conftest.vals because some shells have a limit on
13446 # the size of here documents, and old seds have small limits too.
13448 rm -f conftest.tail
13451 ac_lines=`grep -c . conftest.vals`
13452 # grep -c gives empty output for an empty file on some AIX systems.
13453 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13454 # Write a limited-size here document to conftest.frag.
13455 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13456 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13458 sed -f conftest.frag conftest.in > conftest.out
13460 mv conftest.out conftest.in
13461 ' >> $CONFIG_STATUS
13462 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13463 rm -f conftest.vals
13464 mv conftest.tail conftest.vals
13466 rm -f conftest.vals
13468 cat >> $CONFIG_STATUS <<\EOF
13469 rm -f conftest.frag conftest.h
13470 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13471 cat conftest.in >> conftest.h
13473 if cmp -s $ac_file conftest.h 2>/dev/null; then
13474 echo "$ac_file is unchanged"
13477 # Remove last slash and all that follows it. Not all systems have dirname.
13478 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13479 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13480 # The file is in a subdirectory.
13481 test ! -d "$ac_dir" && mkdir "$ac_dir"
13484 mv conftest.h $ac_file
13489 cat >> $CONFIG_STATUS <<EOF
13492 cat >> $CONFIG_STATUS <<\EOF
13496 chmod +x $CONFIG_STATUS
13497 rm -fr confdefs* $ac_clean_files
13498 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1