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
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
2197 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
2199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_hdr" >&5
2202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2211 { (eval echo configure:2212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2213 if test -z "$ac_err"; then
2215 eval "ac_cv_header_$ac_safe=yes"
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2221 eval "ac_cv_header_$ac_safe=no"
2225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2228 cat >> confdefs.h <<EOF
2229 #define $ac_tr_hdr 1
2233 echo "$ac_t""no" 1>&6
2239 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2240 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2252 if { (eval echo configure:2253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2254 ac_cv_header_shadow_h=yes
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 ac_cv_header_shadow_h=no
2262 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2263 cat >> confdefs.h <<\EOF
2264 #define HAVE_SHADOW_H 1
2270 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.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 nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.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 stropts.h poll.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/capability.h syscall.h sys/syscall.h
2392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_hdr" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_hdr 1
2426 echo "$ac_t""no" 1>&6
2430 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2434 echo "configure:2435: checking for $ac_hdr" >&5
2435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2444 { (eval echo configure:2445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2446 if test -z "$ac_err"; then
2448 eval "ac_cv_header_$ac_safe=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2454 eval "ac_cv_header_$ac_safe=no"
2458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2461 cat >> confdefs.h <<EOF
2462 #define $ac_tr_hdr 1
2466 echo "$ac_t""no" 1>&6
2471 # For experimental utmp support (lastlog on some BSD-like systems)
2472 for ac_hdr in utmp.h utmpx.h lastlog.h
2474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_hdr" >&5
2477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2486 { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2488 if test -z "$ac_err"; then
2490 eval "ac_cv_header_$ac_safe=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 eval "ac_cv_header_$ac_safe=no"
2500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2501 echo "$ac_t""yes" 1>&6
2502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2503 cat >> confdefs.h <<EOF
2504 #define $ac_tr_hdr 1
2508 echo "$ac_t""no" 1>&6
2513 # For quotas on Veritas VxFS filesystems
2514 for ac_hdr in sys/fs/vx_quota.h
2516 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_hdr" >&5
2519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2528 { (eval echo configure:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2530 if test -z "$ac_err"; then
2532 eval "ac_cv_header_$ac_safe=yes"
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2538 eval "ac_cv_header_$ac_safe=no"
2542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2543 echo "$ac_t""yes" 1>&6
2544 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2545 cat >> confdefs.h <<EOF
2546 #define $ac_tr_hdr 1
2550 echo "$ac_t""no" 1>&6
2555 # For quotas on Linux XFS filesystems
2556 for ac_hdr in linux/xqm.h
2558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_hdr" >&5
2561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2570 { (eval echo configure:2571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2572 if test -z "$ac_err"; then
2574 eval "ac_cv_header_$ac_safe=yes"
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2580 eval "ac_cv_header_$ac_safe=no"
2584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2585 echo "$ac_t""yes" 1>&6
2586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2587 cat >> confdefs.h <<EOF
2588 #define $ac_tr_hdr 1
2592 echo "$ac_t""no" 1>&6
2597 echo $ac_n "checking size of int""... $ac_c" 1>&6
2598 echo "configure:2599: checking size of int" >&5
2599 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 if test "$cross_compiling" = yes; then
2603 ac_cv_sizeof_int=cross
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2609 #include <sys/types.h>
2612 FILE *f=fopen("conftestval", "w");
2614 fprintf(f, "%d\n", sizeof(int));
2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2620 ac_cv_sizeof_int=`cat conftestval`
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2631 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2632 cat >> confdefs.h <<EOF
2633 #define SIZEOF_INT $ac_cv_sizeof_int
2637 echo $ac_n "checking size of long""... $ac_c" 1>&6
2638 echo "configure:2639: checking size of long" >&5
2639 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 if test "$cross_compiling" = yes; then
2643 ac_cv_sizeof_long=cross
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2649 #include <sys/types.h>
2652 FILE *f=fopen("conftestval", "w");
2654 fprintf(f, "%d\n", sizeof(long));
2658 if { (eval echo configure:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2660 ac_cv_sizeof_long=`cat conftestval`
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2671 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2672 cat >> confdefs.h <<EOF
2673 #define SIZEOF_LONG $ac_cv_sizeof_long
2677 echo $ac_n "checking size of short""... $ac_c" 1>&6
2678 echo "configure:2679: checking size of short" >&5
2679 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 if test "$cross_compiling" = yes; then
2683 ac_cv_sizeof_short=cross
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2689 #include <sys/types.h>
2692 FILE *f=fopen("conftestval", "w");
2694 fprintf(f, "%d\n", sizeof(short));
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2700 ac_cv_sizeof_short=`cat conftestval`
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 ac_cv_sizeof_short=0
2711 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2712 cat >> confdefs.h <<EOF
2713 #define SIZEOF_SHORT $ac_cv_sizeof_short
2718 echo $ac_n "checking for working const""... $ac_c" 1>&6
2719 echo "configure:2720: checking for working const" >&5
2720 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2729 /* Ultrix mips cc rejects this. */
2730 typedef int charset[2]; const charset x;
2731 /* SunOS 4.1.1 cc rejects this. */
2732 char const *const *ccp;
2734 /* NEC SVR4.0.2 mips cc rejects this. */
2735 struct point {int x, y;};
2736 static struct point const zero = {0,0};
2737 /* AIX XL C 1.02.0.0 rejects this.
2738 It does not let you subtract one const X* pointer from another in an arm
2739 of an if-expression whose if-part is not a constant expression */
2740 const char *g = "string";
2741 ccp = &g + (g ? g-g : 0);
2742 /* HPUX 7.0 cc rejects these. */
2745 ccp = (char const *const *) p;
2746 { /* SCO 3.2v4 cc rejects this. */
2748 char const *s = 0 ? (char *) 0 : (char const *) 0;
2752 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2754 const int *foo = &x[0];
2757 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2758 typedef const int *iptr;
2762 { /* AIX XL C 1.02.0.0 rejects this saying
2763 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2764 struct s { int j; const int *ap[3]; };
2765 struct s *b; b->j = 5;
2767 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2773 if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2785 echo "$ac_t""$ac_cv_c_const" 1>&6
2786 if test $ac_cv_c_const = no; then
2787 cat >> confdefs.h <<\EOF
2793 echo $ac_n "checking for inline""... $ac_c" 1>&6
2794 echo "configure:2795: checking for inline" >&5
2795 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2799 for ac_kw in inline __inline__ __inline; do
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2808 if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2810 ac_cv_c_inline=$ac_kw; break
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2820 echo "$ac_t""$ac_cv_c_inline" 1>&6
2821 case "$ac_cv_c_inline" in
2823 no) cat >> confdefs.h <<\EOF
2827 *) cat >> confdefs.h <<EOF
2828 #define inline $ac_cv_c_inline
2833 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2834 echo "configure:2835: checking whether byte ordering is bigendian" >&5
2835 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 ac_cv_c_bigendian=unknown
2839 # See if sys/param.h defines the BYTE_ORDER macro.
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 #include <sys/types.h>
2844 #include <sys/param.h>
2847 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2852 if { (eval echo configure:2853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2854 # It does; now see whether it defined to BIG_ENDIAN or not.
2855 cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858 #include <sys/types.h>
2859 #include <sys/param.h>
2862 #if BYTE_ORDER != BIG_ENDIAN
2867 if { (eval echo configure:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 ac_cv_c_bigendian=yes
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2874 ac_cv_c_bigendian=no
2878 echo "configure: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2882 if test $ac_cv_c_bigendian = unknown; then
2883 if test "$cross_compiling" = yes; then
2884 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2890 /* Are we little or big endian? From Harbison&Steele. */
2894 char c[sizeof (long)];
2897 exit (u.c[sizeof (long) - 1] == 1);
2900 if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2902 ac_cv_c_bigendian=no
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 ac_cv_c_bigendian=yes
2915 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2916 if test $ac_cv_c_bigendian = yes; then
2917 cat >> confdefs.h <<\EOF
2918 #define WORDS_BIGENDIAN 1
2923 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2924 echo "configure:2925: checking whether char is unsigned" >&5
2925 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 if test "$GCC" = yes; then
2929 # GCC predefines this symbol on systems where it applies.
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 #ifdef __CHAR_UNSIGNED__
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 egrep "yes" >/dev/null 2>&1; then
2941 ac_cv_c_char_unsigned=yes
2944 ac_cv_c_char_unsigned=no
2949 if test "$cross_compiling" = yes; then
2950 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2956 #if !defined(__STDC__) || __STDC__ != 1
2960 volatile char c = 255; exit(c < 0);
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2965 ac_cv_c_char_unsigned=yes
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 ac_cv_c_char_unsigned=no
2978 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2979 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2980 cat >> confdefs.h <<\EOF
2981 #define __CHAR_UNSIGNED__ 1
2987 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2988 echo "configure:2989: checking return type of signal handlers" >&5
2989 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <sys/types.h>
3001 extern "C" void (*signal (int, void (*)(int)))(int);
3003 void (*signal ()) ();
3010 if { (eval echo configure:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3012 ac_cv_type_signal=void
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 ac_cv_type_signal=int
3022 echo "$ac_t""$ac_cv_type_signal" 1>&6
3023 cat >> confdefs.h <<EOF
3024 #define RETSIGTYPE $ac_cv_type_signal
3028 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3029 echo "configure:3030: checking for uid_t in sys/types.h" >&5
3030 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3036 #include <sys/types.h>
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039 egrep "uid_t" >/dev/null 2>&1; then
3041 ac_cv_type_uid_t=yes
3050 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3051 if test $ac_cv_type_uid_t = no; then
3052 cat >> confdefs.h <<\EOF
3056 cat >> confdefs.h <<\EOF
3062 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3063 echo "configure:3064: checking for mode_t" >&5
3064 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 #include <sys/types.h>
3076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3077 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3079 ac_cv_type_mode_t=yes
3082 ac_cv_type_mode_t=no
3087 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3088 if test $ac_cv_type_mode_t = no; then
3089 cat >> confdefs.h <<\EOF
3095 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3096 echo "configure:3097: checking for off_t" >&5
3097 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <sys/types.h>
3109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3110 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3112 ac_cv_type_off_t=yes
3120 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3121 if test $ac_cv_type_off_t = no; then
3122 cat >> confdefs.h <<\EOF
3128 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3129 echo "configure:3130: checking for size_t" >&5
3130 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3136 #include <sys/types.h>
3142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3143 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3145 ac_cv_type_size_t=yes
3148 ac_cv_type_size_t=no
3153 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3154 if test $ac_cv_type_size_t = no; then
3155 cat >> confdefs.h <<\EOF
3156 #define size_t unsigned
3161 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3162 echo "configure:3163: checking for pid_t" >&5
3163 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3169 #include <sys/types.h>
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3178 ac_cv_type_pid_t=yes
3186 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3187 if test $ac_cv_type_pid_t = no; then
3188 cat >> confdefs.h <<\EOF
3194 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3195 echo "configure:3196: checking for st_rdev in struct stat" >&5
3196 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3202 #include <sys/types.h>
3203 #include <sys/stat.h>
3205 struct stat s; s.st_rdev;
3208 if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3210 ac_cv_struct_st_rdev=yes
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3215 ac_cv_struct_st_rdev=no
3220 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3221 if test $ac_cv_struct_st_rdev = yes; then
3222 cat >> confdefs.h <<\EOF
3223 #define HAVE_ST_RDEV 1
3228 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3229 echo "configure:3230: checking for d_off in dirent" >&5
3230 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3238 #include <sys/types.h>
3241 struct dirent d; d.d_off;
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3246 ac_cv_dirent_d_off=yes
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 ac_cv_dirent_d_off=no
3256 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3257 if test $ac_cv_dirent_d_off = yes; then
3258 cat >> confdefs.h <<\EOF
3259 #define HAVE_DIRENT_D_OFF 1
3264 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3265 echo "configure:3266: checking for ino_t" >&5
3266 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 #include <sys/types.h>
3278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3279 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3281 ac_cv_type_ino_t=yes
3289 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3290 if test $ac_cv_type_ino_t = no; then
3291 cat >> confdefs.h <<\EOF
3292 #define ino_t unsigned
3297 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3298 echo "configure:3299: checking for loff_t" >&5
3299 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <sys/types.h>
3311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3312 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3314 ac_cv_type_loff_t=yes
3317 ac_cv_type_loff_t=no
3322 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3323 if test $ac_cv_type_loff_t = no; then
3324 cat >> confdefs.h <<\EOF
3325 #define loff_t off_t
3330 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3331 echo "configure:3332: checking for offset_t" >&5
3332 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 #include <sys/types.h>
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3347 ac_cv_type_offset_t=yes
3350 ac_cv_type_offset_t=no
3355 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3356 if test $ac_cv_type_offset_t = no; then
3357 cat >> confdefs.h <<\EOF
3358 #define offset_t loff_t
3363 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3364 echo "configure:3365: checking for ssize_t" >&5
3365 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 #include <sys/types.h>
3377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3380 ac_cv_type_ssize_t=yes
3383 ac_cv_type_ssize_t=no
3388 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3389 if test $ac_cv_type_ssize_t = no; then
3390 cat >> confdefs.h <<\EOF
3396 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3397 echo "configure:3398: checking for wchar_t" >&5
3398 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 #include <sys/types.h>
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3413 ac_cv_type_wchar_t=yes
3416 ac_cv_type_wchar_t=no
3421 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3422 if test $ac_cv_type_wchar_t = no; then
3423 cat >> confdefs.h <<\EOF
3424 #define wchar_t unsigned short
3430 ############################################
3431 # for cups support we need libcups, and a handful of header files
3433 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3434 echo "configure:3435: checking for httpConnect in -lcups" >&5
3435 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 ac_save_LIBS="$LIBS"
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 /* Override any gcc2 internal prototype to avoid an error. */
3445 /* We use char because int might match the return type of a gcc2
3446 builtin and then its argument prototype would still apply. */
3453 if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3455 eval "ac_cv_lib_$ac_lib_var=yes"
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3460 eval "ac_cv_lib_$ac_lib_var=no"
3463 LIBS="$ac_save_LIBS"
3466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3467 echo "$ac_t""yes" 1>&6
3468 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3469 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3470 cat >> confdefs.h <<EOF
3471 #define $ac_tr_lib 1
3477 echo "$ac_t""no" 1>&6
3481 # I wonder if there is a nicer way of doing this?
3483 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3484 for ac_hdr in cups/cups.h cups/language.h
3486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3488 echo "configure:3489: checking for $ac_hdr" >&5
3489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3498 { (eval echo configure:3499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3500 if test -z "$ac_err"; then
3502 eval "ac_cv_header_$ac_safe=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_header_$ac_safe=no"
3512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3515 cat >> confdefs.h <<EOF
3516 #define $ac_tr_hdr 1
3520 echo "$ac_t""no" 1>&6
3524 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3525 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3526 cat >> confdefs.h <<\EOF
3534 ############################################
3535 # we need libdl for PAM and the new VFS code
3536 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3537 echo "configure:3538: checking for dlopen in -ldl" >&5
3538 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 ac_save_LIBS="$LIBS"
3544 cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 /* Override any gcc2 internal prototype to avoid an error. */
3548 /* We use char because int might match the return type of a gcc2
3549 builtin and then its argument prototype would still apply. */
3556 if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3558 eval "ac_cv_lib_$ac_lib_var=yes"
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 eval "ac_cv_lib_$ac_lib_var=no"
3566 LIBS="$ac_save_LIBS"
3569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3570 echo "$ac_t""yes" 1>&6
3572 cat >> confdefs.h <<\EOF
3573 #define HAVE_LIBDL 1
3577 echo "$ac_t""no" 1>&6
3581 ############################################
3582 # check if the compiler can do immediate structures
3583 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3584 echo "configure:3585: checking for immediate structures" >&5
3585 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3596 #define X_FOOBAR(x) ((FOOBAR) { x })
3597 typedef struct {unsigned x;} FOOBAR;
3598 FOOBAR f = X_FOOBAR(1);
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604 samba_cv_immediate_structures=yes
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3609 samba_cv_immediate_structures=no
3614 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3615 if test x"$samba_cv_immediate_structures" = x"yes"; then
3616 cat >> confdefs.h <<\EOF
3617 #define HAVE_IMMEDIATE_STRUCTURES 1
3622 ############################################
3623 # check for unix domain sockets
3624 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3625 echo "configure:3626: checking for unix domain sockets" >&5
3626 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3634 #include <sys/types.h>
3637 #include <sys/socket.h>
3641 struct sockaddr_un sunaddr;
3642 sunaddr.sun_family = AF_UNIX;
3646 if { (eval echo configure:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3648 samba_cv_unixsocket=yes
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3653 samba_cv_unixsocket=no
3658 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3659 if test x"$samba_cv_unixsocket" = x"yes"; then
3660 cat >> confdefs.h <<\EOF
3661 #define HAVE_UNIXSOCKET 1
3667 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3668 echo "configure:3669: checking for socklen_t type" >&5
3669 if eval "test \"`echo '$''{'samba_cv_socklen_t'+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"
3677 #include <sys/types.h>
3682 #include <sys/socket.h>
3687 if { (eval echo configure:3688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3689 samba_cv_socklen_t=yes
3691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3694 samba_cv_socklen_t=no
3699 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3700 if test x"$samba_cv_socklen_t" = x"yes"; then
3701 cat >> confdefs.h <<\EOF
3702 #define HAVE_SOCKLEN_T_TYPE 1
3707 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3708 echo "configure:3709: checking for sig_atomic_t type" >&5
3709 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3717 #include <sys/types.h>
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3729 samba_cv_sig_atomic_t=yes
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3734 samba_cv_sig_atomic_t=no
3739 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3740 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3741 cat >> confdefs.h <<\EOF
3742 #define HAVE_SIG_ATOMIC_T_TYPE 1
3747 # stupid headers have the functions but no declaration. grrrr.
3749 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3750 echo "configure:3751: checking for errno declaration" >&5
3751 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3763 if { (eval echo configure:3764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3765 ac_cv_have_errno_decl=yes
3767 echo "configure: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3770 ac_cv_have_errno_decl=no
3775 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3776 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3777 cat >> confdefs.h <<\EOF
3778 #define HAVE_ERRNO_DECL 1
3784 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3785 echo "configure:3786: checking for setresuid declaration" >&5
3786 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3795 int i = (int)setresuid
3798 if { (eval echo configure:3799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3800 ac_cv_have_setresuid_decl=yes
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3805 ac_cv_have_setresuid_decl=no
3810 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3811 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_SETRESUID_DECL 1
3819 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3820 echo "configure:3821: checking for setresgid declaration" >&5
3821 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3830 int i = (int)setresgid
3833 if { (eval echo configure:3834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3835 ac_cv_have_setresgid_decl=yes
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 ac_cv_have_setresgid_decl=no
3845 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3846 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3847 cat >> confdefs.h <<\EOF
3848 #define HAVE_SETRESGID_DECL 1
3854 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3855 echo "configure:3856: checking for asprintf declaration" >&5
3856 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3860 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3865 int i = (int)asprintf
3868 if { (eval echo configure:3869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3870 ac_cv_have_asprintf_decl=yes
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3875 ac_cv_have_asprintf_decl=no
3880 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3881 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3882 cat >> confdefs.h <<\EOF
3883 #define HAVE_ASPRINTF_DECL 1
3889 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3890 echo "configure:3891: checking for vasprintf declaration" >&5
3891 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3895 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3900 int i = (int)vasprintf
3903 if { (eval echo configure:3904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3905 ac_cv_have_vasprintf_decl=yes
3907 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3910 ac_cv_have_vasprintf_decl=no
3915 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3916 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3917 cat >> confdefs.h <<\EOF
3918 #define HAVE_VASPRINTF_DECL 1
3924 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3925 echo "configure:3926: checking for vsnprintf declaration" >&5
3926 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3935 int i = (int)vsnprintf
3938 if { (eval echo configure:3939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3940 ac_cv_have_vsnprintf_decl=yes
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3945 ac_cv_have_vsnprintf_decl=no
3950 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3951 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3952 cat >> confdefs.h <<\EOF
3953 #define HAVE_VSNPRINTF_DECL 1
3959 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3960 echo "configure:3961: checking for snprintf declaration" >&5
3961 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3970 int i = (int)snprintf
3973 if { (eval echo configure:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3975 ac_cv_have_snprintf_decl=yes
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3980 ac_cv_have_snprintf_decl=no
3985 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3986 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3987 cat >> confdefs.h <<\EOF
3988 #define HAVE_SNPRINTF_DECL 1
3994 # and glibc has setresuid under linux but the function does
3995 # nothing until kernel 2.1.44! very dumb.
3996 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3997 echo "configure:3998: checking for real setresuid" >&5
3998 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4002 if test "$cross_compiling" = yes; then
4003 samba_cv_have_setresuid=cross
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4009 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4013 samba_cv_have_setresuid=yes
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 samba_cv_have_setresuid=no
4025 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4026 if test x"$samba_cv_have_setresuid" = x"yes"; then
4027 cat >> confdefs.h <<\EOF
4028 #define HAVE_SETRESUID 1
4033 # Do the same check for setresguid...
4035 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4036 echo "configure:4037: checking for real setresgid" >&5
4037 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4041 if test "$cross_compiling" = yes; then
4042 samba_cv_have_setresgid=cross
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4049 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4053 samba_cv_have_setresgid=yes
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4058 samba_cv_have_setresgid=no
4065 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4066 if test x"$samba_cv_have_setresgid" = x"yes"; then
4067 cat >> confdefs.h <<\EOF
4068 #define HAVE_SETRESGID 1
4073 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4074 echo "configure:4075: checking for 8-bit clean memcmp" >&5
4075 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 if test "$cross_compiling" = yes; then
4079 ac_cv_func_memcmp_clean=no
4081 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4087 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4088 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4094 ac_cv_func_memcmp_clean=yes
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 ac_cv_func_memcmp_clean=no
4106 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4107 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4110 ###############################################
4111 # test for where we get crypt() from
4112 for ac_func in crypt
4114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4115 echo "configure:4116: checking for $ac_func" >&5
4116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 /* System header to define __stub macros and hopefully few prototypes,
4123 which can conflict with char $ac_func(); below. */
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4132 /* The GNU C library defines this for functions which it implements
4133 to always fail with ENOSYS. Some functions are actually named
4134 something starting with __ and the normal name is an alias. */
4135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4145 eval "ac_cv_func_$ac_func=yes"
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4150 eval "ac_cv_func_$ac_func=no"
4155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4156 echo "$ac_t""yes" 1>&6
4157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4158 cat >> confdefs.h <<EOF
4159 #define $ac_tr_func 1
4163 echo "$ac_t""no" 1>&6
4167 if test x"$ac_cv_func_crypt" = x"no"; then
4168 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4169 echo "configure:4170: checking for crypt in -lcrypt" >&5
4170 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4174 ac_save_LIBS="$LIBS"
4175 LIBS="-lcrypt $LIBS"
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4179 /* Override any gcc2 internal prototype to avoid an error. */
4180 /* We use char because int might match the return type of a gcc2
4181 builtin and then its argument prototype would still apply. */
4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4190 eval "ac_cv_lib_$ac_lib_var=yes"
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4195 eval "ac_cv_lib_$ac_lib_var=no"
4198 LIBS="$ac_save_LIBS"
4201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4202 echo "$ac_t""yes" 1>&6
4203 LIBS="$LIBS -lcrypt";
4204 cat >> confdefs.h <<\EOF
4205 #define HAVE_CRYPT 1
4209 echo "$ac_t""no" 1>&6
4215 ###############################################
4216 # Readline included by default unless explicitly asked not to
4217 test "${with_readline+set}" != "set" && with_readline=yes
4219 # test for where we get readline() from
4220 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4221 echo "configure:4222: checking whether to use readline" >&5
4222 # Check whether --with-readline or --without-readline was given.
4223 if test "${with_readline+set}" = set; then
4224 withval="$with_readline"
4225 case "$with_readline" in
4227 echo "$ac_t""yes" 1>&6
4229 for ac_hdr in readline.h history.h readline/readline.h
4231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4233 echo "configure:4234: checking for $ac_hdr" >&5
4234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4235 echo $ac_n "(cached) $ac_c" 1>&6
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4243 { (eval echo configure:4244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4245 if test -z "$ac_err"; then
4247 eval "ac_cv_header_$ac_safe=yes"
4250 echo "configure: failed program was:" >&5
4251 cat conftest.$ac_ext >&5
4253 eval "ac_cv_header_$ac_safe=no"
4257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4258 echo "$ac_t""yes" 1>&6
4259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4260 cat >> confdefs.h <<EOF
4261 #define $ac_tr_hdr 1
4265 echo "$ac_t""no" 1>&6
4269 for ac_hdr in readline/history.h
4271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4273 echo "configure:4274: checking for $ac_hdr" >&5
4274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4283 { (eval echo configure:4284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4285 if test -z "$ac_err"; then
4287 eval "ac_cv_header_$ac_safe=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4293 eval "ac_cv_header_$ac_safe=no"
4297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4300 cat >> confdefs.h <<EOF
4301 #define $ac_tr_hdr 1
4305 echo "$ac_t""no" 1>&6
4310 for ac_hdr in readline.h readline/readline.h
4312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4314 echo "configure:4315: checking for $ac_hdr" >&5
4315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4324 { (eval echo configure:4325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4326 if test -z "$ac_err"; then
4328 eval "ac_cv_header_$ac_safe=yes"
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4334 eval "ac_cv_header_$ac_safe=no"
4338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4339 echo "$ac_t""yes" 1>&6
4340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4341 cat >> confdefs.h <<EOF
4342 #define $ac_tr_hdr 1
4345 for termlib in ncurses curses termcap terminfo termlib; do
4346 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4347 echo "configure:4348: checking for tgetent in -l${termlib}" >&5
4348 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 ac_save_LIBS="$LIBS"
4353 LIBS="-l${termlib} $LIBS"
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* Override any gcc2 internal prototype to avoid an error. */
4358 /* We use char because int might match the return type of a gcc2
4359 builtin and then its argument prototype would still apply. */
4366 if { (eval echo configure:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4368 eval "ac_cv_lib_$ac_lib_var=yes"
4370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4373 eval "ac_cv_lib_$ac_lib_var=no"
4376 LIBS="$ac_save_LIBS"
4379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4381 TERMLIBS="-l${termlib}"; break
4383 echo "$ac_t""no" 1>&6
4387 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4388 echo "configure:4389: checking for rl_callback_handler_install in -lreadline" >&5
4389 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 ac_save_LIBS="$LIBS"
4394 LIBS="-lreadline $TERMLIBS $LIBS"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 /* Override any gcc2 internal prototype to avoid an error. */
4399 /* We use char because int might match the return type of a gcc2
4400 builtin and then its argument prototype would still apply. */
4401 char rl_callback_handler_install();
4404 rl_callback_handler_install()
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4409 eval "ac_cv_lib_$ac_lib_var=yes"
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4414 eval "ac_cv_lib_$ac_lib_var=no"
4417 LIBS="$ac_save_LIBS"
4420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4422 TERMLIBS="-lreadline $TERMLIBS"
4423 cat >> confdefs.h <<\EOF
4424 #define HAVE_LIBREADLINE 1
4429 echo "$ac_t""no" 1>&6
4434 echo "$ac_t""no" 1>&6
4440 echo "$ac_t""no" 1>&6
4443 echo "$ac_t""yes" 1>&6
4445 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4446 # alternate readline path
4448 _cppflags=${CPPFLAGS}
4450 # Add additional search path
4451 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4452 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4454 for ac_hdr in readline.h history.h readline/readline.h
4456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_hdr" >&5
4459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4468 { (eval echo configure:4469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4470 if test -z "$ac_err"; then
4472 eval "ac_cv_header_$ac_safe=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4478 eval "ac_cv_header_$ac_safe=no"
4482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4483 echo "$ac_t""yes" 1>&6
4484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4485 cat >> confdefs.h <<EOF
4486 #define $ac_tr_hdr 1
4490 echo "$ac_t""no" 1>&6
4494 for ac_hdr in readline/history.h
4496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_hdr" >&5
4499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4508 { (eval echo configure:4509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4510 if test -z "$ac_err"; then
4512 eval "ac_cv_header_$ac_safe=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_header_$ac_safe=no"
4522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4525 cat >> confdefs.h <<EOF
4526 #define $ac_tr_hdr 1
4530 echo "$ac_t""no" 1>&6
4535 for ac_hdr in readline.h readline/readline.h
4537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4539 echo "configure:4540: checking for $ac_hdr" >&5
4540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4541 echo $ac_n "(cached) $ac_c" 1>&6
4543 cat > conftest.$ac_ext <<EOF
4544 #line 4545 "configure"
4545 #include "confdefs.h"
4548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4549 { (eval echo configure:4550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4551 if test -z "$ac_err"; then
4553 eval "ac_cv_header_$ac_safe=yes"
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4559 eval "ac_cv_header_$ac_safe=no"
4563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4566 cat >> confdefs.h <<EOF
4567 #define $ac_tr_hdr 1
4570 for termlib in ncurses curses termcap terminfo termlib; do
4571 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4572 echo "configure:4573: checking for tgetent in -l${termlib}" >&5
4573 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 ac_save_LIBS="$LIBS"
4578 LIBS="-l${termlib} $LIBS"
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4593 eval "ac_cv_lib_$ac_lib_var=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 eval "ac_cv_lib_$ac_lib_var=no"
4601 LIBS="$ac_save_LIBS"
4604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 TERMLIBS="-l${termlib}"; break
4608 echo "$ac_t""no" 1>&6
4612 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4613 echo "configure:4614: checking for rl_callback_handler_install in -lreadline" >&5
4614 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 ac_save_LIBS="$LIBS"
4619 LIBS="-lreadline $TERMLIBS $LIBS"
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4626 char rl_callback_handler_install();
4629 rl_callback_handler_install()
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 eval "ac_cv_lib_$ac_lib_var=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 eval "ac_cv_lib_$ac_lib_var=no"
4642 LIBS="$ac_save_LIBS"
4645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 TERMLDFLAGS="-L$with_readline/lib"
4648 TERMCPPFLAGS="-I$with_readline/include"
4649 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4650 TERMLIBS="-lreadline $TERMLIBS"
4651 cat >> confdefs.h <<\EOF
4652 #define HAVE_LIBREADLINE 1
4657 echo "$ac_t""no" 1>&6
4658 TERMLIBS= CPPFLAGS=$_cppflags
4662 echo "$ac_t""no" 1>&6
4671 echo "$ac_t""no" 1>&6
4678 # The readline API changed slightly from readline3 to readline4, so
4679 # code will generate warnings on one of them unless we have a few
4681 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4682 echo "configure:4683: checking for rl_completion_matches in -lreadline" >&5
4683 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 ac_save_LIBS="$LIBS"
4688 LIBS="-lreadline $TERMLIBS $LIBS"
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4692 /* Override any gcc2 internal prototype to avoid an error. */
4693 /* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4695 char rl_completion_matches();
4698 rl_completion_matches()
4701 if { (eval echo configure:4702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4703 eval "ac_cv_lib_$ac_lib_var=yes"
4705 echo "configure: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4708 eval "ac_cv_lib_$ac_lib_var=no"
4711 LIBS="$ac_save_LIBS"
4714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 cat >> confdefs.h <<\EOF
4717 #define HAVE_NEW_LIBREADLINE 1
4721 echo "$ac_t""no" 1>&6
4725 # The following test taken from the cvs sources
4726 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4727 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4728 # libsocket.so which has a bad implementation of gethostbyname (it
4729 # only looks in /etc/hosts), so we only look for -lsocket if we need
4731 for ac_func in connect
4733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_func" >&5
4735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 /* System header to define __stub macros and hopefully few prototypes,
4742 which can conflict with char $ac_func(); below. */
4744 /* Override any gcc2 internal prototype to avoid an error. */
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4751 /* The GNU C library defines this for functions which it implements
4752 to always fail with ENOSYS. Some functions are actually named
4753 something starting with __ and the normal name is an alias. */
4754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 eval "ac_cv_func_$ac_func=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4769 eval "ac_cv_func_$ac_func=no"
4774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4777 cat >> confdefs.h <<EOF
4778 #define $ac_tr_func 1
4782 echo "$ac_t""no" 1>&6
4786 if test x"$ac_cv_func_connect" = x"no"; then
4789 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4790 echo "configure:4791: checking for printf in -lnsl_s" >&5
4791 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 ac_save_LIBS="$LIBS"
4796 LIBS="-lnsl_s $LIBS"
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 /* Override any gcc2 internal prototype to avoid an error. */
4801 /* We use char because int might match the return type of a gcc2
4802 builtin and then its argument prototype would still apply. */
4809 if { (eval echo configure:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4811 eval "ac_cv_lib_$ac_lib_var=yes"
4813 echo "configure: failed program was:" >&5
4814 cat conftest.$ac_ext >&5
4816 eval "ac_cv_lib_$ac_lib_var=no"
4819 LIBS="$ac_save_LIBS"
4822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4825 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4826 cat >> confdefs.h <<EOF
4827 #define $ac_tr_lib 1
4830 LIBS="-lnsl_s $LIBS"
4833 echo "$ac_t""no" 1>&6
4839 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4840 echo "configure:4841: checking for printf in -lnsl" >&5
4841 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4845 ac_save_LIBS="$LIBS"
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4861 eval "ac_cv_lib_$ac_lib_var=yes"
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4866 eval "ac_cv_lib_$ac_lib_var=no"
4869 LIBS="$ac_save_LIBS"
4872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4875 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4876 cat >> confdefs.h <<EOF
4877 #define $ac_tr_lib 1
4883 echo "$ac_t""no" 1>&6
4889 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4890 echo "configure:4891: checking for connect in -lsocket" >&5
4891 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 ac_save_LIBS="$LIBS"
4896 LIBS="-lsocket $LIBS"
4897 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4900 /* Override any gcc2 internal prototype to avoid an error. */
4901 /* We use char because int might match the return type of a gcc2
4902 builtin and then its argument prototype would still apply. */
4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4911 eval "ac_cv_lib_$ac_lib_var=yes"
4913 echo "configure: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4916 eval "ac_cv_lib_$ac_lib_var=no"
4919 LIBS="$ac_save_LIBS"
4922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4923 echo "$ac_t""yes" 1>&6
4924 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4925 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4926 cat >> confdefs.h <<EOF
4927 #define $ac_tr_lib 1
4930 LIBS="-lsocket $LIBS"
4933 echo "$ac_t""no" 1>&6
4939 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4940 echo "configure:4941: checking for connect in -linet" >&5
4941 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 ac_save_LIBS="$LIBS"
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 /* Override any gcc2 internal prototype to avoid an error. */
4951 /* We use char because int might match the return type of a gcc2
4952 builtin and then its argument prototype would still apply. */
4959 if { (eval echo configure:4960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 eval "ac_cv_lib_$ac_lib_var=yes"
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4966 eval "ac_cv_lib_$ac_lib_var=no"
4969 LIBS="$ac_save_LIBS"
4972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4973 echo "$ac_t""yes" 1>&6
4974 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4975 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4976 cat >> confdefs.h <<EOF
4977 #define $ac_tr_lib 1
4983 echo "$ac_t""no" 1>&6
4987 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4988 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4989 # ac_cv_func_connect=yes
4990 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4991 cat >> confdefs.h <<\EOF
4992 #define HAVE_CONNECT 1
4998 ###############################################
4999 # test for where we get get_yp_default_domain() from
5000 for ac_func in yp_get_default_domain
5002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5003 echo "configure:5004: checking for $ac_func" >&5
5004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 /* System header to define __stub macros and hopefully few prototypes,
5011 which can conflict with char $ac_func(); below. */
5013 /* Override any gcc2 internal prototype to avoid an error. */
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5020 /* The GNU C library defines this for functions which it implements
5021 to always fail with ENOSYS. Some functions are actually named
5022 something starting with __ and the normal name is an alias. */
5023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 eval "ac_cv_func_$ac_func=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_func_$ac_func=no"
5043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5044 echo "$ac_t""yes" 1>&6
5045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5046 cat >> confdefs.h <<EOF
5047 #define $ac_tr_func 1
5051 echo "$ac_t""no" 1>&6
5055 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5056 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5057 echo "configure:5058: checking for yp_get_default_domain in -lnsl" >&5
5058 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5062 ac_save_LIBS="$LIBS"
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5070 char yp_get_default_domain();
5073 yp_get_default_domain()
5076 if { (eval echo configure:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5078 eval "ac_cv_lib_$ac_lib_var=yes"
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5083 eval "ac_cv_lib_$ac_lib_var=no"
5086 LIBS="$ac_save_LIBS"
5089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5092 cat >> confdefs.h <<\EOF
5093 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5097 echo "$ac_t""no" 1>&6
5102 # Check if we have execl, if not we need to compile smbrun.
5103 for ac_func in execl
5105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_func" >&5
5107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5110 cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 /* System header to define __stub macros and hopefully few prototypes,
5114 which can conflict with char $ac_func(); below. */
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5123 /* The GNU C library defines this for functions which it implements
5124 to always fail with ENOSYS. Some functions are actually named
5125 something starting with __ and the normal name is an alias. */
5126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5136 eval "ac_cv_func_$ac_func=yes"
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5141 eval "ac_cv_func_$ac_func=no"
5146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5147 echo "$ac_t""yes" 1>&6
5148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5149 cat >> confdefs.h <<EOF
5150 #define $ac_tr_func 1
5154 echo "$ac_t""no" 1>&6
5158 if test x"$ac_cv_func_execl" = x"no"; then
5159 RUNPROG="bin/smbrun"
5164 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5167 echo "configure:5168: checking for $ac_func" >&5
5168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 /* System header to define __stub macros and hopefully few prototypes,
5175 which can conflict with char $ac_func(); below. */
5177 /* Override any gcc2 internal prototype to avoid an error. */
5178 /* We use char because int might match the return type of a gcc2
5179 builtin and then its argument prototype would still apply. */
5184 /* The GNU C library defines this for functions which it implements
5185 to always fail with ENOSYS. Some functions are actually named
5186 something starting with __ and the normal name is an alias. */
5187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 eval "ac_cv_func_$ac_func=yes"
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 eval "ac_cv_func_$ac_func=no"
5207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5208 echo "$ac_t""yes" 1>&6
5209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5210 cat >> confdefs.h <<EOF
5211 #define $ac_tr_func 1
5215 echo "$ac_t""no" 1>&6
5219 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat
5221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5222 echo "configure:5223: checking for $ac_func" >&5
5223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5229 /* System header to define __stub macros and hopefully few prototypes,
5230 which can conflict with char $ac_func(); below. */
5232 /* Override any gcc2 internal prototype to avoid an error. */
5233 /* We use char because int might match the return type of a gcc2
5234 builtin and then its argument prototype would still apply. */
5239 /* The GNU C library defines this for functions which it implements
5240 to always fail with ENOSYS. Some functions are actually named
5241 something starting with __ and the normal name is an alias. */
5242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5250 if { (eval echo configure:5251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5252 eval "ac_cv_func_$ac_func=yes"
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5257 eval "ac_cv_func_$ac_func=no"
5262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5263 echo "$ac_t""yes" 1>&6
5264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5265 cat >> confdefs.h <<EOF
5266 #define $ac_tr_func 1
5270 echo "$ac_t""no" 1>&6
5274 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5277 echo "configure:5278: checking for $ac_func" >&5
5278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5281 cat > conftest.$ac_ext <<EOF
5282 #line 5283 "configure"
5283 #include "confdefs.h"
5284 /* System header to define __stub macros and hopefully few prototypes,
5285 which can conflict with char $ac_func(); below. */
5287 /* Override any gcc2 internal prototype to avoid an error. */
5288 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */
5294 /* The GNU C library defines this for functions which it implements
5295 to always fail with ENOSYS. Some functions are actually named
5296 something starting with __ and the normal name is an alias. */
5297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5307 eval "ac_cv_func_$ac_func=yes"
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5312 eval "ac_cv_func_$ac_func=no"
5317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5320 cat >> confdefs.h <<EOF
5321 #define $ac_tr_func 1
5325 echo "$ac_t""no" 1>&6
5329 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5332 echo "configure:5333: checking for $ac_func" >&5
5333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 /* System header to define __stub macros and hopefully few prototypes,
5340 which can conflict with char $ac_func(); below. */
5342 /* Override any gcc2 internal prototype to avoid an error. */
5343 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5349 /* The GNU C library defines this for functions which it implements
5350 to always fail with ENOSYS. Some functions are actually named
5351 something starting with __ and the normal name is an alias. */
5352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 eval "ac_cv_func_$ac_func=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_func_$ac_func=no"
5372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5375 cat >> confdefs.h <<EOF
5376 #define $ac_tr_func 1
5380 echo "$ac_t""no" 1>&6
5384 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5387 echo "configure:5388: checking for $ac_func" >&5
5388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5389 echo $ac_n "(cached) $ac_c" 1>&6
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5394 /* System header to define __stub macros and hopefully few prototypes,
5395 which can conflict with char $ac_func(); below. */
5397 /* Override any gcc2 internal prototype to avoid an error. */
5398 /* We use char because int might match the return type of a gcc2
5399 builtin and then its argument prototype would still apply. */
5404 /* The GNU C library defines this for functions which it implements
5405 to always fail with ENOSYS. Some functions are actually named
5406 something starting with __ and the normal name is an alias. */
5407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417 eval "ac_cv_func_$ac_func=yes"
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5422 eval "ac_cv_func_$ac_func=no"
5427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5428 echo "$ac_t""yes" 1>&6
5429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5430 cat >> confdefs.h <<EOF
5431 #define $ac_tr_func 1
5435 echo "$ac_t""no" 1>&6
5439 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5442 echo "configure:5443: checking for $ac_func" >&5
5443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5449 /* System header to define __stub macros and hopefully few prototypes,
5450 which can conflict with char $ac_func(); below. */
5452 /* Override any gcc2 internal prototype to avoid an error. */
5453 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */
5459 /* The GNU C library defines this for functions which it implements
5460 to always fail with ENOSYS. Some functions are actually named
5461 something starting with __ and the normal name is an alias. */
5462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5470 if { (eval echo configure:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5472 eval "ac_cv_func_$ac_func=yes"
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5477 eval "ac_cv_func_$ac_func=no"
5482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5483 echo "$ac_t""yes" 1>&6
5484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5485 cat >> confdefs.h <<EOF
5486 #define $ac_tr_func 1
5490 echo "$ac_t""no" 1>&6
5494 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_func" >&5
5498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 /* System header to define __stub macros and hopefully few prototypes,
5505 which can conflict with char $ac_func(); below. */
5507 /* Override any gcc2 internal prototype to avoid an error. */
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5514 /* The GNU C library defines this for functions which it implements
5515 to always fail with ENOSYS. Some functions are actually named
5516 something starting with __ and the normal name is an alias. */
5517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525 if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527 eval "ac_cv_func_$ac_func=yes"
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5532 eval "ac_cv_func_$ac_func=no"
5537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5540 cat >> confdefs.h <<EOF
5541 #define $ac_tr_func 1
5545 echo "$ac_t""no" 1>&6
5549 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5552 echo "configure:5553: checking for $ac_func" >&5
5553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 /* System header to define __stub macros and hopefully few prototypes,
5560 which can conflict with char $ac_func(); below. */
5562 /* Override any gcc2 internal prototype to avoid an error. */
5563 /* We use char because int might match the return type of a gcc2
5564 builtin and then its argument prototype would still apply. */
5569 /* The GNU C library defines this for functions which it implements
5570 to always fail with ENOSYS. Some functions are actually named
5571 something starting with __ and the normal name is an alias. */
5572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5580 if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582 eval "ac_cv_func_$ac_func=yes"
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 eval "ac_cv_func_$ac_func=no"
5592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5593 echo "$ac_t""yes" 1>&6
5594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5595 cat >> confdefs.h <<EOF
5596 #define $ac_tr_func 1
5600 echo "$ac_t""no" 1>&6
5604 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5607 echo "configure:5608: checking for $ac_func" >&5
5608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 /* System header to define __stub macros and hopefully few prototypes,
5615 which can conflict with char $ac_func(); below. */
5617 /* Override any gcc2 internal prototype to avoid an error. */
5618 /* We use char because int might match the return type of a gcc2
5619 builtin and then its argument prototype would still apply. */
5624 /* The GNU C library defines this for functions which it implements
5625 to always fail with ENOSYS. Some functions are actually named
5626 something starting with __ and the normal name is an alias. */
5627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5635 if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5637 eval "ac_cv_func_$ac_func=yes"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5642 eval "ac_cv_func_$ac_func=no"
5647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5648 echo "$ac_t""yes" 1>&6
5649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5650 cat >> confdefs.h <<EOF
5651 #define $ac_tr_func 1
5655 echo "$ac_t""no" 1>&6
5659 # setbuffer is needed for smbtorture
5660 for ac_func in setbuffer
5662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5663 echo "configure:5664: checking for $ac_func" >&5
5664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* System header to define __stub macros and hopefully few prototypes,
5671 which can conflict with char $ac_func(); below. */
5673 /* Override any gcc2 internal prototype to avoid an error. */
5674 /* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5680 /* The GNU C library defines this for functions which it implements
5681 to always fail with ENOSYS. Some functions are actually named
5682 something starting with __ and the normal name is an alias. */
5683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5691 if { (eval echo configure:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5693 eval "ac_cv_func_$ac_func=yes"
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 eval "ac_cv_func_$ac_func=no"
5703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5706 cat >> confdefs.h <<EOF
5707 #define $ac_tr_func 1
5711 echo "$ac_t""no" 1>&6
5716 # syscall() is needed for smbwrapper.
5717 for ac_func in syscall
5719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5720 echo "configure:5721: checking for $ac_func" >&5
5721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char $ac_func(); below. */
5730 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5737 /* The GNU C library defines this for functions which it implements
5738 to always fail with ENOSYS. Some functions are actually named
5739 something starting with __ and the normal name is an alias. */
5740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 eval "ac_cv_func_$ac_func=yes"
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 eval "ac_cv_func_$ac_func=no"
5760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5763 cat >> confdefs.h <<EOF
5764 #define $ac_tr_func 1
5768 echo "$ac_t""no" 1>&6
5773 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_func" >&5
5777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 /* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char $ac_func(); below. */
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5793 /* The GNU C library defines this for functions which it implements
5794 to always fail with ENOSYS. Some functions are actually named
5795 something starting with __ and the normal name is an alias. */
5796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5806 eval "ac_cv_func_$ac_func=yes"
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5811 eval "ac_cv_func_$ac_func=no"
5816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5819 cat >> confdefs.h <<EOF
5820 #define $ac_tr_func 1
5824 echo "$ac_t""no" 1>&6
5828 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_func" >&5
5832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* System header to define __stub macros and hopefully few prototypes,
5839 which can conflict with char $ac_func(); below. */
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5848 /* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5861 eval "ac_cv_func_$ac_func=yes"
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5866 eval "ac_cv_func_$ac_func=no"
5871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5872 echo "$ac_t""yes" 1>&6
5873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5874 cat >> confdefs.h <<EOF
5875 #define $ac_tr_func 1
5879 echo "$ac_t""no" 1>&6
5883 for ac_func in __getcwd _getcwd
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916 eval "ac_cv_func_$ac_func=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval "ac_cv_func_$ac_func=no"
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h <<EOF
5930 #define $ac_tr_func 1
5934 echo "$ac_t""no" 1>&6
5938 for ac_func in __xstat __fxstat __lxstat
5940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_func" >&5
5942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* System header to define __stub macros and hopefully few prototypes,
5949 which can conflict with char $ac_func(); below. */
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5971 eval "ac_cv_func_$ac_func=yes"
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5976 eval "ac_cv_func_$ac_func=no"
5981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5984 cat >> confdefs.h <<EOF
5985 #define $ac_tr_func 1
5989 echo "$ac_t""no" 1>&6
5993 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5
5997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6013 /* The GNU C library defines this for functions which it implements
6014 to always fail with ENOSYS. Some functions are actually named
6015 something starting with __ and the normal name is an alias. */
6016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 eval "ac_cv_func_$ac_func=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 eval "ac_cv_func_$ac_func=no"
6036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6039 cat >> confdefs.h <<EOF
6040 #define $ac_tr_func 1
6044 echo "$ac_t""no" 1>&6
6048 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_func" >&5
6052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6055 cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 /* System header to define __stub macros and hopefully few prototypes,
6059 which can conflict with char $ac_func(); below. */
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6068 /* The GNU C library defines this for functions which it implements
6069 to always fail with ENOSYS. Some functions are actually named
6070 something starting with __ and the normal name is an alias. */
6071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6079 if { (eval echo configure:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6081 eval "ac_cv_func_$ac_func=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6086 eval "ac_cv_func_$ac_func=no"
6091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6094 cat >> confdefs.h <<EOF
6095 #define $ac_tr_func 1
6099 echo "$ac_t""no" 1>&6
6103 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6106 echo "configure:6107: checking for $ac_func" >&5
6107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* System header to define __stub macros and hopefully few prototypes,
6114 which can conflict with char $ac_func(); below. */
6116 /* Override any gcc2 internal prototype to avoid an error. */
6117 /* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6123 /* The GNU C library defines this for functions which it implements
6124 to always fail with ENOSYS. Some functions are actually named
6125 something starting with __ and the normal name is an alias. */
6126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6134 if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6136 eval "ac_cv_func_$ac_func=yes"
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6141 eval "ac_cv_func_$ac_func=no"
6146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6147 echo "$ac_t""yes" 1>&6
6148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6149 cat >> confdefs.h <<EOF
6150 #define $ac_tr_func 1
6154 echo "$ac_t""no" 1>&6
6158 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_func" >&5
6162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* System header to define __stub macros and hopefully few prototypes,
6169 which can conflict with char $ac_func(); below. */
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6178 /* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191 eval "ac_cv_func_$ac_func=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 eval "ac_cv_func_$ac_func=no"
6201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6204 cat >> confdefs.h <<EOF
6205 #define $ac_tr_func 1
6209 echo "$ac_t""no" 1>&6
6213 for ac_func in _write __write _fork __fork
6215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_func" >&5
6217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246 eval "ac_cv_func_$ac_func=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6251 eval "ac_cv_func_$ac_func=no"
6256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6259 cat >> confdefs.h <<EOF
6260 #define $ac_tr_func 1
6264 echo "$ac_t""no" 1>&6
6268 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_func" >&5
6272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* System header to define __stub macros and hopefully few prototypes,
6279 which can conflict with char $ac_func(); below. */
6281 /* Override any gcc2 internal prototype to avoid an error. */
6282 /* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6288 /* The GNU C library defines this for functions which it implements
6289 to always fail with ENOSYS. Some functions are actually named
6290 something starting with __ and the normal name is an alias. */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6301 eval "ac_cv_func_$ac_func=yes"
6303 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6306 eval "ac_cv_func_$ac_func=no"
6311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6314 cat >> confdefs.h <<EOF
6315 #define $ac_tr_func 1
6319 echo "$ac_t""no" 1>&6
6323 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_func" >&5
6327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6333 /* System header to define __stub macros and hopefully few prototypes,
6334 which can conflict with char $ac_func(); below. */
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 /* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6343 /* The GNU C library defines this for functions which it implements
6344 to always fail with ENOSYS. Some functions are actually named
6345 something starting with __ and the normal name is an alias. */
6346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6356 eval "ac_cv_func_$ac_func=yes"
6358 echo "configure: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6361 eval "ac_cv_func_$ac_func=no"
6366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6369 cat >> confdefs.h <<EOF
6370 #define $ac_tr_func 1
6374 echo "$ac_t""no" 1>&6
6378 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6381 echo "configure:6382: checking for $ac_func" >&5
6382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6385 cat > conftest.$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 /* System header to define __stub macros and hopefully few prototypes,
6389 which can conflict with char $ac_func(); below. */
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 eval "ac_cv_func_$ac_func=yes"
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 eval "ac_cv_func_$ac_func=no"
6421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6422 echo "$ac_t""yes" 1>&6
6423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6424 cat >> confdefs.h <<EOF
6425 #define $ac_tr_func 1
6429 echo "$ac_t""no" 1>&6
6433 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6436 echo "configure:6437: checking for $ac_func" >&5
6437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6438 echo $ac_n "(cached) $ac_c" 1>&6
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 /* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func(); below. */
6446 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6453 /* The GNU C library defines this for functions which it implements
6454 to always fail with ENOSYS. Some functions are actually named
6455 something starting with __ and the normal name is an alias. */
6456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6464 if { (eval echo configure:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 eval "ac_cv_func_$ac_func=yes"
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6471 eval "ac_cv_func_$ac_func=no"
6476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6479 cat >> confdefs.h <<EOF
6480 #define $ac_tr_func 1
6484 echo "$ac_t""no" 1>&6
6488 for ac_func in open64 _open64 __open64 creat64
6490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6491 echo "configure:6492: checking for $ac_func" >&5
6492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* System header to define __stub macros and hopefully few prototypes,
6499 which can conflict with char $ac_func(); below. */
6501 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6519 if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6521 eval "ac_cv_func_$ac_func=yes"
6523 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6526 eval "ac_cv_func_$ac_func=no"
6531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6
6533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6534 cat >> confdefs.h <<EOF
6535 #define $ac_tr_func 1
6539 echo "$ac_t""no" 1>&6
6545 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6548 if test x$ac_cv_func_stat64 = xno ; then
6549 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6550 echo "configure:6551: checking for stat64 in <sys/stat.h>" >&5
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6555 #if defined(HAVE_UNISTD_H)
6558 #include <sys/stat.h>
6561 struct stat64 st64; exit(stat64(".",&st64));
6564 if { (eval echo configure:6565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6566 ac_cv_func_stat64=yes
6568 echo "configure: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6572 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6573 if test x$ac_cv_func_stat64 = xyes ; then
6574 cat >> confdefs.h <<\EOF
6575 #define HAVE_STAT64 1
6581 if test x$ac_cv_func_lstat64 = xno ; then
6582 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6583 echo "configure:6584: checking for lstat64 in <sys/stat.h>" >&5
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6588 #if defined(HAVE_UNISTD_H)
6591 #include <sys/stat.h>
6594 struct stat64 st64; exit(lstat64(".",&st64));
6597 if { (eval echo configure:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6599 ac_cv_func_lstat64=yes
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6605 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6606 if test x$ac_cv_func_lstat64 = xyes ; then
6607 cat >> confdefs.h <<\EOF
6608 #define HAVE_LSTAT64 1
6614 if test x$ac_cv_func_fstat64 = xno ; then
6615 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6616 echo "configure:6617: checking for fstat64 in <sys/stat.h>" >&5
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6621 #if defined(HAVE_UNISTD_H)
6624 #include <sys/stat.h>
6627 struct stat64 st64; exit(fstat64(0,&st64));
6630 if { (eval echo configure:6631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6632 ac_cv_func_fstat64=yes
6634 echo "configure: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6638 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6639 if test x$ac_cv_func_fstat64 = xyes ; then
6640 cat >> confdefs.h <<\EOF
6641 #define HAVE_FSTAT64 1
6647 #####################################
6648 # we might need the resolv library on some systems
6649 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6650 echo "configure:6651: checking for dn_expand in -lresolv" >&5
6651 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 ac_save_LIBS="$LIBS"
6656 LIBS="-lresolv $LIBS"
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6671 eval "ac_cv_lib_$ac_lib_var=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 eval "ac_cv_lib_$ac_lib_var=no"
6679 LIBS="$ac_save_LIBS"
6682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6683 echo "$ac_t""yes" 1>&6
6684 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6686 cat >> confdefs.h <<EOF
6687 #define $ac_tr_lib 1
6690 LIBS="-lresolv $LIBS"
6693 echo "$ac_t""no" 1>&6
6698 # Check for the functions putprpwnam, set_auth_parameters,
6699 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6700 # Needed for OSF1 and HPUX.
6704 *-lsecurity*) for ac_func in putprpwnam
6706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6707 echo "configure:6708: checking for $ac_func" >&5
6708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6714 /* System header to define __stub macros and hopefully few prototypes,
6715 which can conflict with char $ac_func(); below. */
6717 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */
6724 /* The GNU C library defines this for functions which it implements
6725 to always fail with ENOSYS. Some functions are actually named
6726 something starting with __ and the normal name is an alias. */
6727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 eval "ac_cv_func_$ac_func=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_func_$ac_func=no"
6747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6748 echo "$ac_t""yes" 1>&6
6749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6750 cat >> confdefs.h <<EOF
6751 #define $ac_tr_func 1
6755 echo "$ac_t""no" 1>&6
6759 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6760 echo "configure:6761: checking for putprpwnam in -lsecurity" >&5
6761 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6763 echo $ac_n "(cached) $ac_c" 1>&6
6765 ac_save_LIBS="$LIBS"
6766 LIBS="-lsecurity $LIBS"
6767 cat > conftest.$ac_ext <<EOF
6768 #line 6769 "configure"
6769 #include "confdefs.h"
6770 /* Override any gcc2 internal prototype to avoid an error. */
6771 /* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6779 if { (eval echo configure:6780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6781 eval "ac_cv_lib_$ac_lib_var=yes"
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6786 eval "ac_cv_lib_$ac_lib_var=no"
6789 LIBS="$ac_save_LIBS"
6792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6793 echo "$ac_t""yes" 1>&6
6794 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6796 cat >> confdefs.h <<EOF
6797 #define $ac_tr_lib 1
6800 LIBS="-lsecurity $LIBS"
6803 echo "$ac_t""no" 1>&6
6806 for ac_func in putprpwnam
6808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6809 echo "configure:6810: checking for $ac_func" >&5
6810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6811 echo $ac_n "(cached) $ac_c" 1>&6
6813 cat > conftest.$ac_ext <<EOF
6814 #line 6815 "configure"
6815 #include "confdefs.h"
6816 /* System header to define __stub macros and hopefully few prototypes,
6817 which can conflict with char $ac_func(); below. */
6819 /* Override any gcc2 internal prototype to avoid an error. */
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6826 /* The GNU C library defines this for functions which it implements
6827 to always fail with ENOSYS. Some functions are actually named
6828 something starting with __ and the normal name is an alias. */
6829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6837 if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6839 eval "ac_cv_func_$ac_func=yes"
6841 echo "configure: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6844 eval "ac_cv_func_$ac_func=no"
6849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6850 echo "$ac_t""yes" 1>&6
6851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6852 cat >> confdefs.h <<EOF
6853 #define $ac_tr_func 1
6857 echo "$ac_t""no" 1>&6
6865 *-lsec*) for ac_func in putprpwnam
6867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6868 echo "configure:6869: checking for $ac_func" >&5
6869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* System header to define __stub macros and hopefully few prototypes,
6876 which can conflict with char $ac_func(); below. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6885 /* The GNU C library defines this for functions which it implements
6886 to always fail with ENOSYS. Some functions are actually named
6887 something starting with __ and the normal name is an alias. */
6888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6896 if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6898 eval "ac_cv_func_$ac_func=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 eval "ac_cv_func_$ac_func=no"
6908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6909 echo "$ac_t""yes" 1>&6
6910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6911 cat >> confdefs.h <<EOF
6912 #define $ac_tr_func 1
6916 echo "$ac_t""no" 1>&6
6920 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6921 echo "configure:6922: checking for putprpwnam in -lsec" >&5
6922 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6926 ac_save_LIBS="$LIBS"
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6931 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6942 eval "ac_cv_lib_$ac_lib_var=yes"
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6947 eval "ac_cv_lib_$ac_lib_var=no"
6950 LIBS="$ac_save_LIBS"
6953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6954 echo "$ac_t""yes" 1>&6
6955 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6957 cat >> confdefs.h <<EOF
6958 #define $ac_tr_lib 1
6964 echo "$ac_t""no" 1>&6
6967 for ac_func in putprpwnam
6969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6970 echo "configure:6971: checking for $ac_func" >&5
6971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6974 cat > conftest.$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6977 /* System header to define __stub macros and hopefully few prototypes,
6978 which can conflict with char $ac_func(); below. */
6980 /* Override any gcc2 internal prototype to avoid an error. */
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6987 /* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6998 if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7000 eval "ac_cv_func_$ac_func=yes"
7002 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7005 eval "ac_cv_func_$ac_func=no"
7010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7011 echo "$ac_t""yes" 1>&6
7012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7013 cat >> confdefs.h <<EOF
7014 #define $ac_tr_func 1
7018 echo "$ac_t""no" 1>&6
7027 *-lsecurity*) for ac_func in set_auth_parameters
7029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7030 echo "configure:7031: checking for $ac_func" >&5
7031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7032 echo $ac_n "(cached) $ac_c" 1>&6
7034 cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7037 /* System header to define __stub macros and hopefully few prototypes,
7038 which can conflict with char $ac_func(); below. */
7040 /* Override any gcc2 internal prototype to avoid an error. */
7041 /* We use char because int might match the return type of a gcc2
7042 builtin and then its argument prototype would still apply. */
7047 /* The GNU C library defines this for functions which it implements
7048 to always fail with ENOSYS. Some functions are actually named
7049 something starting with __ and the normal name is an alias. */
7050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7060 eval "ac_cv_func_$ac_func=yes"
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7065 eval "ac_cv_func_$ac_func=no"
7070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7071 echo "$ac_t""yes" 1>&6
7072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7073 cat >> confdefs.h <<EOF
7074 #define $ac_tr_func 1
7078 echo "$ac_t""no" 1>&6
7082 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7083 echo "configure:7084: checking for set_auth_parameters in -lsecurity" >&5
7084 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7086 echo $ac_n "(cached) $ac_c" 1>&6
7088 ac_save_LIBS="$LIBS"
7089 LIBS="-lsecurity $LIBS"
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7093 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7096 char set_auth_parameters();
7099 set_auth_parameters()
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7104 eval "ac_cv_lib_$ac_lib_var=yes"
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7109 eval "ac_cv_lib_$ac_lib_var=no"
7112 LIBS="$ac_save_LIBS"
7115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7116 echo "$ac_t""yes" 1>&6
7117 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7119 cat >> confdefs.h <<EOF
7120 #define $ac_tr_lib 1
7123 LIBS="-lsecurity $LIBS"
7126 echo "$ac_t""no" 1>&6
7129 for ac_func in set_auth_parameters
7131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7132 echo "configure:7133: checking for $ac_func" >&5
7133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char $ac_func(); below. */
7142 /* Override any gcc2 internal prototype to avoid an error. */
7143 /* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7149 /* The GNU C library defines this for functions which it implements
7150 to always fail with ENOSYS. Some functions are actually named
7151 something starting with __ and the normal name is an alias. */
7152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 eval "ac_cv_func_$ac_func=yes"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 eval "ac_cv_func_$ac_func=no"
7172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7173 echo "$ac_t""yes" 1>&6
7174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7175 cat >> confdefs.h <<EOF
7176 #define $ac_tr_func 1
7180 echo "$ac_t""no" 1>&6
7188 *-lsec*) for ac_func in set_auth_parameters
7190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7191 echo "configure:7192: checking for $ac_func" >&5
7192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 /* System header to define __stub macros and hopefully few prototypes,
7199 which can conflict with char $ac_func(); below. */
7201 /* Override any gcc2 internal prototype to avoid an error. */
7202 /* We use char because int might match the return type of a gcc2
7203 builtin and then its argument prototype would still apply. */
7208 /* The GNU C library defines this for functions which it implements
7209 to always fail with ENOSYS. Some functions are actually named
7210 something starting with __ and the normal name is an alias. */
7211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7221 eval "ac_cv_func_$ac_func=yes"
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 eval "ac_cv_func_$ac_func=no"
7231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7232 echo "$ac_t""yes" 1>&6
7233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7234 cat >> confdefs.h <<EOF
7235 #define $ac_tr_func 1
7239 echo "$ac_t""no" 1>&6
7243 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7244 echo "configure:7245: checking for set_auth_parameters in -lsec" >&5
7245 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7249 ac_save_LIBS="$LIBS"
7251 cat > conftest.$ac_ext <<EOF
7252 #line 7253 "configure"
7253 #include "confdefs.h"
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7257 char set_auth_parameters();
7260 set_auth_parameters()
7263 if { (eval echo configure:7264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 eval "ac_cv_lib_$ac_lib_var=yes"
7267 echo "configure: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7270 eval "ac_cv_lib_$ac_lib_var=no"
7273 LIBS="$ac_save_LIBS"
7276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7279 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7280 cat >> confdefs.h <<EOF
7281 #define $ac_tr_lib 1
7287 echo "$ac_t""no" 1>&6
7290 for ac_func in set_auth_parameters
7292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7293 echo "configure:7294: checking for $ac_func" >&5
7294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7297 cat > conftest.$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7300 /* System header to define __stub macros and hopefully few prototypes,
7301 which can conflict with char $ac_func(); below. */
7303 /* Override any gcc2 internal prototype to avoid an error. */
7304 /* We use char because int might match the return type of a gcc2
7305 builtin and then its argument prototype would still apply. */
7310 /* The GNU C library defines this for functions which it implements
7311 to always fail with ENOSYS. Some functions are actually named
7312 something starting with __ and the normal name is an alias. */
7313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7321 if { (eval echo configure:7322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7323 eval "ac_cv_func_$ac_func=yes"
7325 echo "configure: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7328 eval "ac_cv_func_$ac_func=no"
7333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7334 echo "$ac_t""yes" 1>&6
7335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7336 cat >> confdefs.h <<EOF
7337 #define $ac_tr_func 1
7341 echo "$ac_t""no" 1>&6
7349 # UnixWare 7.x has its getspnam in -lgen
7351 *-lgen*) for ac_func in getspnam
7353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7354 echo "configure:7355: checking for $ac_func" >&5
7355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7356 echo $ac_n "(cached) $ac_c" 1>&6
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7361 /* System header to define __stub macros and hopefully few prototypes,
7362 which can conflict with char $ac_func(); below. */
7364 /* Override any gcc2 internal prototype to avoid an error. */
7365 /* We use char because int might match the return type of a gcc2
7366 builtin and then its argument prototype would still apply. */
7371 /* The GNU C library defines this for functions which it implements
7372 to always fail with ENOSYS. Some functions are actually named
7373 something starting with __ and the normal name is an alias. */
7374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7382 if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7384 eval "ac_cv_func_$ac_func=yes"
7386 echo "configure: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7389 eval "ac_cv_func_$ac_func=no"
7394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7395 echo "$ac_t""yes" 1>&6
7396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7397 cat >> confdefs.h <<EOF
7398 #define $ac_tr_func 1
7402 echo "$ac_t""no" 1>&6
7406 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7407 echo "configure:7408: checking for getspnam in -lgen" >&5
7408 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7412 ac_save_LIBS="$LIBS"
7414 cat > conftest.$ac_ext <<EOF
7415 #line 7416 "configure"
7416 #include "confdefs.h"
7417 /* Override any gcc2 internal prototype to avoid an error. */
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7426 if { (eval echo configure:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7428 eval "ac_cv_lib_$ac_lib_var=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7433 eval "ac_cv_lib_$ac_lib_var=no"
7436 LIBS="$ac_save_LIBS"
7439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7440 echo "$ac_t""yes" 1>&6
7441 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7443 cat >> confdefs.h <<EOF
7444 #define $ac_tr_lib 1
7450 echo "$ac_t""no" 1>&6
7453 for ac_func in getspnam
7455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7456 echo "configure:7457: checking for $ac_func" >&5
7457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7458 echo $ac_n "(cached) $ac_c" 1>&6
7460 cat > conftest.$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 /* System header to define __stub macros and hopefully few prototypes,
7464 which can conflict with char $ac_func(); below. */
7466 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7473 /* The GNU C library defines this for functions which it implements
7474 to always fail with ENOSYS. Some functions are actually named
7475 something starting with __ and the normal name is an alias. */
7476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7484 if { (eval echo configure:7485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7486 eval "ac_cv_func_$ac_func=yes"
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7491 eval "ac_cv_func_$ac_func=no"
7496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7497 echo "$ac_t""yes" 1>&6
7498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7499 cat >> confdefs.h <<EOF
7500 #define $ac_tr_func 1
7504 echo "$ac_t""no" 1>&6
7513 *-lsecurity*) for ac_func in getspnam
7515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7516 echo "configure:7517: checking for $ac_func" >&5
7517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7518 echo $ac_n "(cached) $ac_c" 1>&6
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 /* System header to define __stub macros and hopefully few prototypes,
7524 which can conflict with char $ac_func(); below. */
7526 /* Override any gcc2 internal prototype to avoid an error. */
7527 /* We use char because int might match the return type of a gcc2
7528 builtin and then its argument prototype would still apply. */
7533 /* The GNU C library defines this for functions which it implements
7534 to always fail with ENOSYS. Some functions are actually named
7535 something starting with __ and the normal name is an alias. */
7536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7546 eval "ac_cv_func_$ac_func=yes"
7548 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7551 eval "ac_cv_func_$ac_func=no"
7556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7557 echo "$ac_t""yes" 1>&6
7558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7559 cat >> confdefs.h <<EOF
7560 #define $ac_tr_func 1
7564 echo "$ac_t""no" 1>&6
7568 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7569 echo "configure:7570: checking for getspnam in -lsecurity" >&5
7570 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7572 echo $ac_n "(cached) $ac_c" 1>&6
7574 ac_save_LIBS="$LIBS"
7575 LIBS="-lsecurity $LIBS"
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7588 if { (eval echo configure:7589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7590 eval "ac_cv_lib_$ac_lib_var=yes"
7592 echo "configure: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7595 eval "ac_cv_lib_$ac_lib_var=no"
7598 LIBS="$ac_save_LIBS"
7601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7604 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7605 cat >> confdefs.h <<EOF
7606 #define $ac_tr_lib 1
7609 LIBS="-lsecurity $LIBS"
7612 echo "$ac_t""no" 1>&6
7615 for ac_func in getspnam
7617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7618 echo "configure:7619: checking for $ac_func" >&5
7619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7620 echo $ac_n "(cached) $ac_c" 1>&6
7622 cat > conftest.$ac_ext <<EOF
7623 #line 7624 "configure"
7624 #include "confdefs.h"
7625 /* System header to define __stub macros and hopefully few prototypes,
7626 which can conflict with char $ac_func(); below. */
7628 /* Override any gcc2 internal prototype to avoid an error. */
7629 /* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7635 /* The GNU C library defines this for functions which it implements
7636 to always fail with ENOSYS. Some functions are actually named
7637 something starting with __ and the normal name is an alias. */
7638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7646 if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7648 eval "ac_cv_func_$ac_func=yes"
7650 echo "configure: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7653 eval "ac_cv_func_$ac_func=no"
7658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7659 echo "$ac_t""yes" 1>&6
7660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7661 cat >> confdefs.h <<EOF
7662 #define $ac_tr_func 1
7666 echo "$ac_t""no" 1>&6
7674 *-lsec*) for ac_func in getspnam
7676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7677 echo "configure:7678: checking for $ac_func" >&5
7678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* System header to define __stub macros and hopefully few prototypes,
7685 which can conflict with char $ac_func(); below. */
7687 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7694 /* The GNU C library defines this for functions which it implements
7695 to always fail with ENOSYS. Some functions are actually named
7696 something starting with __ and the normal name is an alias. */
7697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7705 if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7707 eval "ac_cv_func_$ac_func=yes"
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7712 eval "ac_cv_func_$ac_func=no"
7717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7718 echo "$ac_t""yes" 1>&6
7719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7720 cat >> confdefs.h <<EOF
7721 #define $ac_tr_func 1
7725 echo "$ac_t""no" 1>&6
7729 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7730 echo "configure:7731: checking for getspnam in -lsec" >&5
7731 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7735 ac_save_LIBS="$LIBS"
7737 cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 /* Override any gcc2 internal prototype to avoid an error. */
7741 /* We use char because int might match the return type of a gcc2
7742 builtin and then its argument prototype would still apply. */
7749 if { (eval echo configure:7750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7751 eval "ac_cv_lib_$ac_lib_var=yes"
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7756 eval "ac_cv_lib_$ac_lib_var=no"
7759 LIBS="$ac_save_LIBS"
7762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7766 cat >> confdefs.h <<EOF
7767 #define $ac_tr_lib 1
7773 echo "$ac_t""no" 1>&6
7776 for ac_func in getspnam
7778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7779 echo "configure:7780: checking for $ac_func" >&5
7780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7781 echo $ac_n "(cached) $ac_c" 1>&6
7783 cat > conftest.$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7786 /* System header to define __stub macros and hopefully few prototypes,
7787 which can conflict with char $ac_func(); below. */
7789 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7796 /* The GNU C library defines this for functions which it implements
7797 to always fail with ENOSYS. Some functions are actually named
7798 something starting with __ and the normal name is an alias. */
7799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7807 if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7809 eval "ac_cv_func_$ac_func=yes"
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7814 eval "ac_cv_func_$ac_func=no"
7819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7820 echo "$ac_t""yes" 1>&6
7821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7822 cat >> confdefs.h <<EOF
7823 #define $ac_tr_func 1
7827 echo "$ac_t""no" 1>&6
7836 *-lsecurity*) for ac_func in bigcrypt
7838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7839 echo "configure:7840: checking for $ac_func" >&5
7840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7841 echo $ac_n "(cached) $ac_c" 1>&6
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* System header to define __stub macros and hopefully few prototypes,
7847 which can conflict with char $ac_func(); below. */
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7856 /* The GNU C library defines this for functions which it implements
7857 to always fail with ENOSYS. Some functions are actually named
7858 something starting with __ and the normal name is an alias. */
7859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7867 if { (eval echo configure:7868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7869 eval "ac_cv_func_$ac_func=yes"
7871 echo "configure: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7874 eval "ac_cv_func_$ac_func=no"
7879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7882 cat >> confdefs.h <<EOF
7883 #define $ac_tr_func 1
7887 echo "$ac_t""no" 1>&6
7891 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7892 echo "configure:7893: checking for bigcrypt in -lsecurity" >&5
7893 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 ac_save_LIBS="$LIBS"
7898 LIBS="-lsecurity $LIBS"
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7911 if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7913 eval "ac_cv_lib_$ac_lib_var=yes"
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 eval "ac_cv_lib_$ac_lib_var=no"
7921 LIBS="$ac_save_LIBS"
7924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7925 echo "$ac_t""yes" 1>&6
7926 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7927 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7928 cat >> confdefs.h <<EOF
7929 #define $ac_tr_lib 1
7932 LIBS="-lsecurity $LIBS"
7935 echo "$ac_t""no" 1>&6
7938 for ac_func in bigcrypt
7940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7941 echo "configure:7942: checking for $ac_func" >&5
7942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7945 cat > conftest.$ac_ext <<EOF
7946 #line 7947 "configure"
7947 #include "confdefs.h"
7948 /* System header to define __stub macros and hopefully few prototypes,
7949 which can conflict with char $ac_func(); below. */
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7958 /* The GNU C library defines this for functions which it implements
7959 to always fail with ENOSYS. Some functions are actually named
7960 something starting with __ and the normal name is an alias. */
7961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7969 if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7971 eval "ac_cv_func_$ac_func=yes"
7973 echo "configure: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7976 eval "ac_cv_func_$ac_func=no"
7981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7982 echo "$ac_t""yes" 1>&6
7983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7984 cat >> confdefs.h <<EOF
7985 #define $ac_tr_func 1
7989 echo "$ac_t""no" 1>&6
7997 *-lsec*) for ac_func in bigcrypt
7999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8000 echo "configure:8001: checking for $ac_func" >&5
8001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8002 echo $ac_n "(cached) $ac_c" 1>&6
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* System header to define __stub macros and hopefully few prototypes,
8008 which can conflict with char $ac_func(); below. */
8010 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8017 /* The GNU C library defines this for functions which it implements
8018 to always fail with ENOSYS. Some functions are actually named
8019 something starting with __ and the normal name is an alias. */
8020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8028 if { (eval echo configure:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8030 eval "ac_cv_func_$ac_func=yes"
8032 echo "configure: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8035 eval "ac_cv_func_$ac_func=no"
8040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8043 cat >> confdefs.h <<EOF
8044 #define $ac_tr_func 1
8048 echo "$ac_t""no" 1>&6
8052 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8053 echo "configure:8054: checking for bigcrypt in -lsec" >&5
8054 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 ac_save_LIBS="$LIBS"
8060 cat > conftest.$ac_ext <<EOF
8061 #line 8062 "configure"
8062 #include "confdefs.h"
8063 /* Override any gcc2 internal prototype to avoid an error. */
8064 /* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8072 if { (eval echo configure:8073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8074 eval "ac_cv_lib_$ac_lib_var=yes"
8076 echo "configure: failed program was:" >&5
8077 cat conftest.$ac_ext >&5
8079 eval "ac_cv_lib_$ac_lib_var=no"
8082 LIBS="$ac_save_LIBS"
8085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8086 echo "$ac_t""yes" 1>&6
8087 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8088 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8089 cat >> confdefs.h <<EOF
8090 #define $ac_tr_lib 1
8096 echo "$ac_t""no" 1>&6
8099 for ac_func in bigcrypt
8101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8102 echo "configure:8103: checking for $ac_func" >&5
8103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8104 echo $ac_n "(cached) $ac_c" 1>&6
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* System header to define __stub macros and hopefully few prototypes,
8110 which can conflict with char $ac_func(); below. */
8112 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8119 /* The GNU C library defines this for functions which it implements
8120 to always fail with ENOSYS. Some functions are actually named
8121 something starting with __ and the normal name is an alias. */
8122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8130 if { (eval echo configure:8131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8132 eval "ac_cv_func_$ac_func=yes"
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8137 eval "ac_cv_func_$ac_func=no"
8142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8143 echo "$ac_t""yes" 1>&6
8144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8145 cat >> confdefs.h <<EOF
8146 #define $ac_tr_func 1
8150 echo "$ac_t""no" 1>&6
8159 *-lsecurity*) for ac_func in getprpwnam
8161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8162 echo "configure:8163: checking for $ac_func" >&5
8163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8169 /* System header to define __stub macros and hopefully few prototypes,
8170 which can conflict with char $ac_func(); below. */
8172 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8179 /* The GNU C library defines this for functions which it implements
8180 to always fail with ENOSYS. Some functions are actually named
8181 something starting with __ and the normal name is an alias. */
8182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8192 eval "ac_cv_func_$ac_func=yes"
8194 echo "configure: failed program was:" >&5
8195 cat conftest.$ac_ext >&5
8197 eval "ac_cv_func_$ac_func=no"
8202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8203 echo "$ac_t""yes" 1>&6
8204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8205 cat >> confdefs.h <<EOF
8206 #define $ac_tr_func 1
8210 echo "$ac_t""no" 1>&6
8214 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8215 echo "configure:8216: checking for getprpwnam in -lsecurity" >&5
8216 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8218 echo $ac_n "(cached) $ac_c" 1>&6
8220 ac_save_LIBS="$LIBS"
8221 LIBS="-lsecurity $LIBS"
8222 cat > conftest.$ac_ext <<EOF
8223 #line 8224 "configure"
8224 #include "confdefs.h"
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8234 if { (eval echo configure:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8236 eval "ac_cv_lib_$ac_lib_var=yes"
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8241 eval "ac_cv_lib_$ac_lib_var=no"
8244 LIBS="$ac_save_LIBS"
8247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8248 echo "$ac_t""yes" 1>&6
8249 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8250 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8251 cat >> confdefs.h <<EOF
8252 #define $ac_tr_lib 1
8255 LIBS="-lsecurity $LIBS"
8258 echo "$ac_t""no" 1>&6
8261 for ac_func in getprpwnam
8263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8264 echo "configure:8265: checking for $ac_func" >&5
8265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8266 echo $ac_n "(cached) $ac_c" 1>&6
8268 cat > conftest.$ac_ext <<EOF
8269 #line 8270 "configure"
8270 #include "confdefs.h"
8271 /* System header to define __stub macros and hopefully few prototypes,
8272 which can conflict with char $ac_func(); below. */
8274 /* Override any gcc2 internal prototype to avoid an error. */
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8281 /* The GNU C library defines this for functions which it implements
8282 to always fail with ENOSYS. Some functions are actually named
8283 something starting with __ and the normal name is an alias. */
8284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8294 eval "ac_cv_func_$ac_func=yes"
8296 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5
8299 eval "ac_cv_func_$ac_func=no"
8304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8305 echo "$ac_t""yes" 1>&6
8306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8307 cat >> confdefs.h <<EOF
8308 #define $ac_tr_func 1
8312 echo "$ac_t""no" 1>&6
8320 *-lsec*) for ac_func in getprpwnam
8322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8323 echo "configure:8324: checking for $ac_func" >&5
8324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8327 cat > conftest.$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 /* System header to define __stub macros and hopefully few prototypes,
8331 which can conflict with char $ac_func(); below. */
8333 /* Override any gcc2 internal prototype to avoid an error. */
8334 /* We use char because int might match the return type of a gcc2
8335 builtin and then its argument prototype would still apply. */
8340 /* The GNU C library defines this for functions which it implements
8341 to always fail with ENOSYS. Some functions are actually named
8342 something starting with __ and the normal name is an alias. */
8343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8351 if { (eval echo configure:8352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353 eval "ac_cv_func_$ac_func=yes"
8355 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8358 eval "ac_cv_func_$ac_func=no"
8363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8364 echo "$ac_t""yes" 1>&6
8365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8366 cat >> confdefs.h <<EOF
8367 #define $ac_tr_func 1
8371 echo "$ac_t""no" 1>&6
8375 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8376 echo "configure:8377: checking for getprpwnam in -lsec" >&5
8377 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8381 ac_save_LIBS="$LIBS"
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8386 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8395 if { (eval echo configure:8396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8397 eval "ac_cv_lib_$ac_lib_var=yes"
8399 echo "configure: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8402 eval "ac_cv_lib_$ac_lib_var=no"
8405 LIBS="$ac_save_LIBS"
8408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8409 echo "$ac_t""yes" 1>&6
8410 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8411 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8412 cat >> confdefs.h <<EOF
8413 #define $ac_tr_lib 1
8419 echo "$ac_t""no" 1>&6
8422 for ac_func in getprpwnam
8424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8425 echo "configure:8426: checking for $ac_func" >&5
8426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 /* System header to define __stub macros and hopefully few prototypes,
8433 which can conflict with char $ac_func(); below. */
8435 /* Override any gcc2 internal prototype to avoid an error. */
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8442 /* The GNU C library defines this for functions which it implements
8443 to always fail with ENOSYS. Some functions are actually named
8444 something starting with __ and the normal name is an alias. */
8445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8453 if { (eval echo configure:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8455 eval "ac_cv_func_$ac_func=yes"
8457 echo "configure: failed program was:" >&5
8458 cat conftest.$ac_ext >&5
8460 eval "ac_cv_func_$ac_func=no"
8465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8466 echo "$ac_t""yes" 1>&6
8467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8468 cat >> confdefs.h <<EOF
8469 #define $ac_tr_func 1
8473 echo "$ac_t""no" 1>&6
8481 # this bit needs to be modified for each OS that is suported by
8482 # smbwrapper. You need to specify how to created a shared library and
8483 # how to compile C code to produce PIC object files
8485 # these are the defaults, good for lots of systems
8495 # and these are for particular systems
8497 *linux*) cat >> confdefs.h <<\EOF
8505 *solaris*) cat >> confdefs.h <<\EOF
8510 LDSHFLAGS="-Wl,-h,\$@.so -G"
8511 if test "${ac_cv_prog_CC}" = "gcc"; then
8519 *sunos*) cat >> confdefs.h <<\EOF
8524 LDSHFLAGS="-Wl,-h,\$@ -G"
8525 PICFLAG="-KPIC" # Is this correct for SunOS
8527 *bsd*) BLDSHARED="true"
8528 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8531 *irix*) cat >> confdefs.h <<\EOF
8536 *irix6*) cat >> confdefs.h <<\EOF
8542 ATTEMPT_WRAP32_BUILD=yes
8544 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8545 if test "${ac_cv_prog_CC}" = "gcc"; then
8551 *aix*) cat >> confdefs.h <<\EOF
8556 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8557 PICFLAG="-O2 -qmaxmem=6000"
8559 *hpux*) cat >> confdefs.h <<\EOF
8564 # Use special PIC flags for the native HP-UX compiler.
8565 if test $ac_cv_prog_cc_Ae = yes; then
8567 LDSHFLAGS="-b -z +h \$@"
8571 *qnx*) cat >> confdefs.h <<\EOF
8575 *osf*) cat >> confdefs.h <<\EOF
8580 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8583 *sco*) cat >> confdefs.h <<\EOF
8587 *unixware*) cat >> confdefs.h <<\EOF
8592 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8595 *next2*) cat >> confdefs.h <<\EOF
8599 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8600 set dummy groff; ac_word=$2
8601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8602 echo "configure:8603: checking for $ac_word" >&5
8603 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8604 echo $ac_n "(cached) $ac_c" 1>&6
8606 if test -n "$ROFF"; then
8607 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8611 for ac_dir in $ac_dummy; do
8612 test -z "$ac_dir" && ac_dir=.
8613 if test -f $ac_dir/$ac_word; then
8614 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8621 ROFF="$ac_cv_prog_ROFF"
8622 if test -n "$ROFF"; then
8623 echo "$ac_t""$ROFF" 1>&6
8625 echo "$ac_t""no" 1>&6
8630 *-univel-*) if test "$GCC" != yes ; then
8631 cat >> confdefs.h <<\EOF
8632 #define HAVE_MEMSET 1
8638 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8639 #define RELIANTUNIX 1
8645 if test "$GCC" != yes ; then
8646 cat >> confdefs.h <<\EOF
8647 #define HAVE_MEMSET 1
8655 # this updates our target list if we can build shared libs
8656 if test $BLDSHARED = true; then
8657 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8659 LIBSMBCLIENT_SHARED=
8664 echo $ac_n "checking for long long""... $ac_c" 1>&6
8665 echo "configure:8666: checking for long long" >&5
8666 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8670 if test "$cross_compiling" = yes; then
8671 samba_cv_have_longlong=cross
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8677 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8681 samba_cv_have_longlong=yes
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 samba_cv_have_longlong=no
8693 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8694 if test x"$samba_cv_have_longlong" = x"yes"; then
8695 cat >> confdefs.h <<\EOF
8696 #define HAVE_LONGLONG 1
8702 # Check if the compiler supports the LL prefix on long long integers.
8705 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8706 echo "configure:8707: checking for LL suffix on long long integers" >&5
8707 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
8711 cat > conftest.$ac_ext <<EOF
8712 #line 8713 "configure"
8713 #include "confdefs.h"
8716 long long i = 0x8000000000LL
8719 if { (eval echo configure:8720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8721 samba_cv_compiler_supports_ll=yes
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8726 samba_cv_compiler_supports_ll=no
8731 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8732 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8733 cat >> confdefs.h <<\EOF
8734 #define COMPILER_SUPPORTS_LL 1
8740 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8741 echo "configure:8742: checking for 64 bit off_t" >&5
8742 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8743 echo $ac_n "(cached) $ac_c" 1>&6
8746 if test "$cross_compiling" = yes; then
8747 samba_cv_SIZEOF_OFF_T=cross
8749 cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8753 #include <sys/stat.h>
8754 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8756 if { (eval echo configure:8757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8758 samba_cv_SIZEOF_OFF_T=yes
8760 echo "configure: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8763 samba_cv_SIZEOF_OFF_T=no
8770 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8771 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8772 cat >> confdefs.h <<\EOF
8773 #define SIZEOF_OFF_T 8
8778 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8779 echo "configure:8780: checking for off64_t" >&5
8780 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8784 if test "$cross_compiling" = yes; then
8785 samba_cv_HAVE_OFF64_T=cross
8787 cat > conftest.$ac_ext <<EOF
8788 #line 8789 "configure"
8789 #include "confdefs.h"
8791 #if defined(HAVE_UNISTD_H)
8795 #include <sys/stat.h>
8796 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8798 if { (eval echo configure:8799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8800 samba_cv_HAVE_OFF64_T=yes
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8805 samba_cv_HAVE_OFF64_T=no
8812 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8813 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8814 cat >> confdefs.h <<\EOF
8815 #define HAVE_OFF64_T 1
8820 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8821 echo "configure:8822: checking for 64 bit ino_t" >&5
8822 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8823 echo $ac_n "(cached) $ac_c" 1>&6
8826 if test "$cross_compiling" = yes; then
8827 samba_cv_SIZEOF_INO_T=cross
8829 cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8833 #include <sys/stat.h>
8834 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8836 if { (eval echo configure:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8838 samba_cv_SIZEOF_INO_T=yes
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8843 samba_cv_SIZEOF_INO_T=no
8850 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8851 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8852 cat >> confdefs.h <<\EOF
8853 #define SIZEOF_INO_T 8
8858 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8859 echo "configure:8860: checking for ino64_t" >&5
8860 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
8864 if test "$cross_compiling" = yes; then
8865 samba_cv_HAVE_INO64_T=cross
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8871 #if defined(HAVE_UNISTD_H)
8875 #include <sys/stat.h>
8876 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8878 if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8880 samba_cv_HAVE_INO64_T=yes
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8885 samba_cv_HAVE_INO64_T=no
8892 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8893 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8894 cat >> confdefs.h <<\EOF
8895 #define HAVE_INO64_T 1
8900 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8901 echo "configure:8902: checking for struct dirent64" >&5
8902 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8906 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure"
8908 #include "confdefs.h"
8910 #if defined(HAVE_UNISTD_H)
8913 #include <sys/types.h>
8919 if { (eval echo configure:8920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8921 samba_cv_HAVE_STRUCT_DIRENT64=yes
8923 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8926 samba_cv_HAVE_STRUCT_DIRENT64=no
8931 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8932 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8933 cat >> confdefs.h <<\EOF
8934 #define HAVE_STRUCT_DIRENT64 1
8939 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8940 echo "configure:8941: checking for unsigned char" >&5
8941 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
8945 if test "$cross_compiling" = yes; then
8946 samba_cv_HAVE_UNSIGNED_CHAR=cross
8948 cat > conftest.$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8952 main() { char c; c=250; exit((c > 0)?0:1); }
8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8956 samba_cv_HAVE_UNSIGNED_CHAR=yes
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8961 samba_cv_HAVE_UNSIGNED_CHAR=no
8968 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8969 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8970 cat >> confdefs.h <<\EOF
8971 #define HAVE_UNSIGNED_CHAR 1
8976 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8977 echo "configure:8978: checking for sin_len in sock" >&5
8978 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8979 echo $ac_n "(cached) $ac_c" 1>&6
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985 #include <sys/types.h>
8986 #include <sys/socket.h>
8987 #include <netinet/in.h>
8989 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8992 if { (eval echo configure:8993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8994 samba_cv_HAVE_SOCK_SIN_LEN=yes
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8999 samba_cv_HAVE_SOCK_SIN_LEN=no
9004 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9005 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9006 cat >> confdefs.h <<\EOF
9007 #define HAVE_SOCK_SIN_LEN 1
9012 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9013 echo "configure:9014: checking whether seekdir returns void" >&5
9014 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9018 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9021 #include <sys/types.h>
9023 void seekdir(DIR *d, long loc) { return; }
9028 if { (eval echo configure:9029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9030 samba_cv_SEEKDIR_RETURNS_VOID=yes
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 samba_cv_SEEKDIR_RETURNS_VOID=no
9040 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9041 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9042 cat >> confdefs.h <<\EOF
9043 #define SEEKDIR_RETURNS_VOID 1
9048 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9049 echo "configure:9050: checking for __FILE__ macro" >&5
9050 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9059 printf("%s\n", __FILE__);
9062 if { (eval echo configure:9063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9064 samba_cv_HAVE_FILE_MACRO=yes
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 samba_cv_HAVE_FILE_MACRO=no
9074 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9075 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9076 cat >> confdefs.h <<\EOF
9077 #define HAVE_FILE_MACRO 1
9082 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9083 echo "configure:9084: checking for __FUNCTION__ macro" >&5
9084 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9088 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9093 printf("%s\n", __FUNCTION__);
9096 if { (eval echo configure:9097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9098 samba_cv_HAVE_FUNCTION_MACRO=yes
9100 echo "configure: failed program was:" >&5
9101 cat conftest.$ac_ext >&5
9103 samba_cv_HAVE_FUNCTION_MACRO=no
9108 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9109 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9110 cat >> confdefs.h <<\EOF
9111 #define HAVE_FUNCTION_MACRO 1
9116 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9117 echo "configure:9118: checking if gettimeofday takes tz argument" >&5
9118 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9119 echo $ac_n "(cached) $ac_c" 1>&6
9122 if test "$cross_compiling" = yes; then
9123 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9125 cat > conftest.$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9129 #include <sys/time.h>
9131 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9133 if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9135 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9140 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9147 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9148 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9149 cat >> confdefs.h <<\EOF
9150 #define HAVE_GETTIMEOFDAY_TZ 1
9155 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9156 echo "configure:9157: checking for C99 vsnprintf" >&5
9157 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9161 if test "$cross_compiling" = yes; then
9162 samba_cv_HAVE_C99_VSNPRINTF=cross
9164 cat > conftest.$ac_ext <<EOF
9165 #line 9166 "configure"
9166 #include "confdefs.h"
9168 #include <sys/types.h>
9170 void foo(const char *format, ...) {
9175 va_start(ap, format);
9176 len = vsnprintf(0, 0, format, ap);
9178 if (len != 5) exit(1);
9180 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9184 main() { foo("hello"); }
9187 if { (eval echo configure:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9189 samba_cv_HAVE_C99_VSNPRINTF=yes
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9194 samba_cv_HAVE_C99_VSNPRINTF=no
9201 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9202 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9203 cat >> confdefs.h <<\EOF
9204 #define HAVE_C99_VSNPRINTF 1
9209 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9210 echo "configure:9211: checking for broken readdir" >&5
9211 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9215 if test "$cross_compiling" = yes; then
9216 samba_cv_HAVE_BROKEN_READDIR=cross
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9221 #include <sys/types.h>
9223 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9224 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9225 di->d_name[0] == 0) exit(0); exit(1);}
9227 if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9229 samba_cv_HAVE_BROKEN_READDIR=yes
9231 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9234 samba_cv_HAVE_BROKEN_READDIR=no
9241 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9242 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9243 cat >> confdefs.h <<\EOF
9244 #define HAVE_BROKEN_READDIR 1
9249 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9250 echo "configure:9251: checking for utimbuf" >&5
9251 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9255 cat > conftest.$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9258 #include <sys/types.h>
9261 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9264 if { (eval echo configure:9265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9266 samba_cv_HAVE_UTIMBUF=yes
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9271 samba_cv_HAVE_UTIMBUF=no
9276 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9277 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9278 cat >> confdefs.h <<\EOF
9279 #define HAVE_UTIMBUF 1
9285 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9288 echo "configure:9289: checking for $ac_func" >&5
9289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9295 /* System header to define __stub macros and hopefully few prototypes,
9296 which can conflict with char $ac_func(); below. */
9298 /* Override any gcc2 internal prototype to avoid an error. */
9299 /* We use char because int might match the return type of a gcc2
9300 builtin and then its argument prototype would still apply. */
9305 /* The GNU C library defines this for functions which it implements
9306 to always fail with ENOSYS. Some functions are actually named
9307 something starting with __ and the normal name is an alias. */
9308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9316 if { (eval echo configure:9317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9318 eval "ac_cv_func_$ac_func=yes"
9320 echo "configure: failed program was:" >&5
9321 cat conftest.$ac_ext >&5
9323 eval "ac_cv_func_$ac_func=no"
9328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9329 echo "$ac_t""yes" 1>&6
9330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9331 cat >> confdefs.h <<EOF
9332 #define $ac_tr_func 1
9336 echo "$ac_t""no" 1>&6
9341 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9342 echo "configure:9343: checking for ut_name in utmp" >&5
9343 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
9347 cat > conftest.$ac_ext <<EOF
9348 #line 9349 "configure"
9349 #include "confdefs.h"
9350 #include <sys/types.h>
9353 struct utmp ut; ut.ut_name[0] = 'a';
9356 if { (eval echo configure:9357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9358 samba_cv_HAVE_UT_UT_NAME=yes
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9363 samba_cv_HAVE_UT_UT_NAME=no
9368 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9369 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9370 cat >> confdefs.h <<\EOF
9371 #define HAVE_UT_UT_NAME 1
9376 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9377 echo "configure:9378: checking for ut_user in utmp" >&5
9378 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9379 echo $ac_n "(cached) $ac_c" 1>&6
9382 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9385 #include <sys/types.h>
9388 struct utmp ut; ut.ut_user[0] = 'a';
9391 if { (eval echo configure:9392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9393 samba_cv_HAVE_UT_UT_USER=yes
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 samba_cv_HAVE_UT_UT_USER=no
9403 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9404 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9405 cat >> confdefs.h <<\EOF
9406 #define HAVE_UT_UT_USER 1
9411 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9412 echo "configure:9413: checking for ut_id in utmp" >&5
9413 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9417 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9420 #include <sys/types.h>
9423 struct utmp ut; ut.ut_id[0] = 'a';
9426 if { (eval echo configure:9427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9428 samba_cv_HAVE_UT_UT_ID=yes
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9433 samba_cv_HAVE_UT_UT_ID=no
9438 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9439 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9440 cat >> confdefs.h <<\EOF
9441 #define HAVE_UT_UT_ID 1
9446 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9447 echo "configure:9448: checking for ut_host in utmp" >&5
9448 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
9452 cat > conftest.$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9455 #include <sys/types.h>
9458 struct utmp ut; ut.ut_host[0] = 'a';
9461 if { (eval echo configure:9462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9463 samba_cv_HAVE_UT_UT_HOST=yes
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9468 samba_cv_HAVE_UT_UT_HOST=no
9473 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9474 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9475 cat >> confdefs.h <<\EOF
9476 #define HAVE_UT_UT_HOST 1
9481 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9482 echo "configure:9483: checking for ut_time in utmp" >&5
9483 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 #include <sys/types.h>
9493 struct utmp ut; time_t t; ut.ut_time = t;
9496 if { (eval echo configure:9497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9498 samba_cv_HAVE_UT_UT_TIME=yes
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9503 samba_cv_HAVE_UT_UT_TIME=no
9508 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9509 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9510 cat >> confdefs.h <<\EOF
9511 #define HAVE_UT_UT_TIME 1
9516 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9517 echo "configure:9518: checking for ut_tv in utmp" >&5
9518 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9519 echo $ac_n "(cached) $ac_c" 1>&6
9522 cat > conftest.$ac_ext <<EOF
9523 #line 9524 "configure"
9524 #include "confdefs.h"
9525 #include <sys/types.h>
9528 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9531 if { (eval echo configure:9532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9533 samba_cv_HAVE_UT_UT_TV=yes
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9538 samba_cv_HAVE_UT_UT_TV=no
9543 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9544 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9545 cat >> confdefs.h <<\EOF
9546 #define HAVE_UT_UT_TV 1
9551 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9552 echo "configure:9553: checking for ut_type in utmp" >&5
9553 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9554 echo $ac_n "(cached) $ac_c" 1>&6
9557 cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 #include <sys/types.h>
9563 struct utmp ut; ut.ut_type = 0;
9566 if { (eval echo configure:9567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9568 samba_cv_HAVE_UT_UT_TYPE=yes
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9573 samba_cv_HAVE_UT_UT_TYPE=no
9578 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9579 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9580 cat >> confdefs.h <<\EOF
9581 #define HAVE_UT_UT_TYPE 1
9586 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9587 echo "configure:9588: checking for ut_pid in utmp" >&5
9588 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9595 #include <sys/types.h>
9598 struct utmp ut; ut.ut_pid = 0;
9601 if { (eval echo configure:9602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9603 samba_cv_HAVE_UT_UT_PID=yes
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9608 samba_cv_HAVE_UT_UT_PID=no
9613 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9614 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9615 cat >> confdefs.h <<\EOF
9616 #define HAVE_UT_UT_PID 1
9621 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9622 echo "configure:9623: checking for ut_exit in utmp" >&5
9623 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9627 cat > conftest.$ac_ext <<EOF
9628 #line 9629 "configure"
9629 #include "confdefs.h"
9630 #include <sys/types.h>
9633 struct utmp ut; ut.ut_exit.e_exit = 0;
9636 if { (eval echo configure:9637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9638 samba_cv_HAVE_UT_UT_EXIT=yes
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9643 samba_cv_HAVE_UT_UT_EXIT=no
9648 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9649 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9650 cat >> confdefs.h <<\EOF
9651 #define HAVE_UT_UT_EXIT 1
9656 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9657 echo "configure:9658: checking for ut_addr in utmp" >&5
9658 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9659 echo $ac_n "(cached) $ac_c" 1>&6
9662 cat > conftest.$ac_ext <<EOF
9663 #line 9664 "configure"
9664 #include "confdefs.h"
9665 #include <sys/types.h>
9668 struct utmp ut; ut.ut_addr = 0;
9671 if { (eval echo configure:9672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9673 samba_cv_HAVE_UT_UT_ADDR=yes
9675 echo "configure: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9678 samba_cv_HAVE_UT_UT_ADDR=no
9683 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9684 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9685 cat >> confdefs.h <<\EOF
9686 #define HAVE_UT_UT_ADDR 1
9691 if test x$ac_cv_func_pututline = xyes ; then
9692 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9693 echo "configure:9694: checking whether pututline returns pointer" >&5
9694 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9695 echo $ac_n "(cached) $ac_c" 1>&6
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 #include <sys/types.h>
9704 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9707 if { (eval echo configure:9708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9709 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9714 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9719 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9720 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9721 cat >> confdefs.h <<\EOF
9722 #define PUTUTLINE_RETURNS_UTMP 1
9728 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9729 echo "configure:9730: checking for ut_syslen in utmpx" >&5
9730 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 #include <sys/types.h>
9740 struct utmpx ux; ux.ut_syslen = 0;
9743 if { (eval echo configure:9744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9745 samba_cv_HAVE_UX_UT_SYSLEN=yes
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9750 samba_cv_HAVE_UX_UT_SYSLEN=no
9755 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9756 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9757 cat >> confdefs.h <<\EOF
9758 #define HAVE_UX_UT_SYSLEN 1
9764 #################################################
9765 # check for libiconv support
9766 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9767 echo "configure:9768: checking whether to use libiconv" >&5
9768 # Check whether --with-libiconv or --without-libiconv was given.
9769 if test "${with_libiconv+set}" = set; then
9770 withval="$with_libiconv"
9773 echo "$ac_t""no" 1>&6
9776 echo "$ac_t""yes" 1>&6
9777 CFLAGS="$CFLAGS -I$withval/include"
9778 LDFLAGS="$LDFLAGS -L$withval/lib"
9779 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9780 echo "configure:9781: checking for iconv_open in -liconv" >&5
9781 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9783 echo $ac_n "(cached) $ac_c" 1>&6
9785 ac_save_LIBS="$LIBS"
9786 LIBS="-liconv $LIBS"
9787 cat > conftest.$ac_ext <<EOF
9788 #line 9789 "configure"
9789 #include "confdefs.h"
9790 /* Override any gcc2 internal prototype to avoid an error. */
9791 /* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9799 if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9801 eval "ac_cv_lib_$ac_lib_var=yes"
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9806 eval "ac_cv_lib_$ac_lib_var=no"
9809 LIBS="$ac_save_LIBS"
9812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9813 echo "$ac_t""yes" 1>&6
9814 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9816 cat >> confdefs.h <<EOF
9817 #define $ac_tr_lib 1
9820 LIBS="-liconv $LIBS"
9823 echo "$ac_t""no" 1>&6
9826 cat >> confdefs.h <<EOF
9827 #define WITH_LIBICONV "${withval}"
9833 echo "$ac_t""no" 1>&6
9840 # check for iconv in libc
9841 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9842 echo "configure:9843: checking for working iconv" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9847 if test "$cross_compiling" = yes; then
9848 samba_cv_HAVE_NATIVE_ICONV=cross
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9856 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9857 if (cd == 0 || cd == (iconv_t)-1) return -1;
9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9864 samba_cv_HAVE_NATIVE_ICONV=yes
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9869 samba_cv_HAVE_NATIVE_ICONV=no
9876 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9877 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9878 cat >> confdefs.h <<\EOF
9879 #define HAVE_NATIVE_ICONV 1
9885 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9886 echo "configure:9887: checking for Linux kernel oplocks" >&5
9887 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9891 if test "$cross_compiling" = yes; then
9892 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9894 cat > conftest.$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9898 #include <sys/types.h>
9901 #define F_GETLEASE 1025
9904 int fd = open("/dev/null", O_RDONLY);
9905 return fcntl(fd, F_GETLEASE, 0) == -1;
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9911 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9916 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9923 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9924 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9925 cat >> confdefs.h <<\EOF
9926 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9931 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9932 echo "configure:9933: checking for kernel change notify support" >&5
9933 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9937 if test "$cross_compiling" = yes; then
9938 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9940 cat > conftest.$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9944 #include <sys/types.h>
9948 #define F_NOTIFY 1026
9951 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9957 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9962 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9969 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9970 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9971 cat >> confdefs.h <<\EOF
9972 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9977 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9978 echo "configure:9979: checking for kernel share modes" >&5
9979 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9980 echo $ac_n "(cached) $ac_c" 1>&6
9983 if test "$cross_compiling" = yes; then
9984 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9986 cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9990 #include <sys/types.h>
9993 #include <sys/file.h>
9995 #define LOCK_MAND 32
9996 #define LOCK_READ 64
9999 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10005 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10010 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10017 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10018 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10019 cat >> confdefs.h <<\EOF
10020 #define HAVE_KERNEL_SHARE_MODES 1
10028 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10029 echo "configure:10030: checking for IRIX kernel oplock type definitions" >&5
10030 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10040 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10043 if { (eval echo configure:10044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10045 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10050 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10055 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10056 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10057 cat >> confdefs.h <<\EOF
10058 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10063 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10064 echo "configure:10065: checking for irix specific capabilities" >&5
10065 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10069 if test "$cross_compiling" = yes; then
10070 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10072 cat > conftest.$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 #include <sys/types.h>
10076 #include <sys/capability.h>
10079 if ((cap = cap_get_proc()) == NULL)
10081 cap->cap_effective |= CAP_NETWORK_MGT;
10082 cap->cap_inheritable |= CAP_NETWORK_MGT;
10088 if { (eval echo configure:10089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10090 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10092 echo "configure: failed program was:" >&5
10093 cat conftest.$ac_ext >&5
10095 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10102 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10103 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10104 cat >> confdefs.h <<\EOF
10105 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10111 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10112 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10115 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10116 echo "configure:10117: checking for int16 typedef included by rpc/rpc.h" >&5
10117 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10118 echo $ac_n "(cached) $ac_c" 1>&6
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 #include <sys/types.h>
10125 #if defined(HAVE_RPC_RPC_H)
10126 #include <rpc/rpc.h>
10132 if { (eval echo configure:10133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10134 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10139 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10144 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10145 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10146 cat >> confdefs.h <<\EOF
10147 #define HAVE_INT16_FROM_RPC_RPC_H 1
10152 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10153 echo "configure:10154: checking for uint16 typedef included by rpc/rpc.h" >&5
10154 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10155 echo $ac_n "(cached) $ac_c" 1>&6
10158 cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 #include <sys/types.h>
10162 #if defined(HAVE_RPC_RPC_H)
10163 #include <rpc/rpc.h>
10169 if { (eval echo configure:10170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10171 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10176 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10181 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10182 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10183 cat >> confdefs.h <<\EOF
10184 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10189 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10190 echo "configure:10191: checking for int32 typedef included by rpc/rpc.h" >&5
10191 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10195 cat > conftest.$ac_ext <<EOF
10196 #line 10197 "configure"
10197 #include "confdefs.h"
10198 #include <sys/types.h>
10199 #if defined(HAVE_RPC_RPC_H)
10200 #include <rpc/rpc.h>
10206 if { (eval echo configure:10207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10208 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10213 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10218 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10219 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10220 cat >> confdefs.h <<\EOF
10221 #define HAVE_INT32_FROM_RPC_RPC_H 1
10226 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10227 echo "configure:10228: checking for uint32 typedef included by rpc/rpc.h" >&5
10228 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10229 echo $ac_n "(cached) $ac_c" 1>&6
10232 cat > conftest.$ac_ext <<EOF
10233 #line 10234 "configure"
10234 #include "confdefs.h"
10235 #include <sys/types.h>
10236 #if defined(HAVE_RPC_RPC_H)
10237 #include <rpc/rpc.h>
10243 if { (eval echo configure:10244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10245 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10247 echo "configure: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10250 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10255 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10256 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10257 cat >> confdefs.h <<\EOF
10258 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10264 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10265 echo "configure:10266: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10266 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 #include <sys/types.h>
10274 #ifdef HAVE_SYS_SECURITY_H
10275 #include <sys/security.h>
10277 #endif /* HAVE_SYS_SECURITY_H */
10278 #if defined(HAVE_RPC_RPC_H)
10279 #include <rpc/rpc.h>
10285 if { (eval echo configure:10286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10287 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10292 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10297 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10298 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10299 cat >> confdefs.h <<\EOF
10300 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10305 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10306 echo "configure:10307: checking for test routines" >&5
10307 if test "$cross_compiling" = yes; then
10308 echo "configure: warning: cannot run when cross-compiling" 1>&2
10310 cat > conftest.$ac_ext <<EOF
10311 #line 10312 "configure"
10312 #include "confdefs.h"
10313 #include "${srcdir-.}/tests/trivial.c"
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10317 echo "$ac_t""yes" 1>&6
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10322 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10328 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10329 echo "configure:10330: checking for ftruncate extend" >&5
10330 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10331 echo $ac_n "(cached) $ac_c" 1>&6
10334 if test "$cross_compiling" = yes; then
10335 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10337 cat > conftest.$ac_ext <<EOF
10338 #line 10339 "configure"
10339 #include "confdefs.h"
10340 #include "${srcdir-.}/tests/ftruncate.c"
10342 if { (eval echo configure:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10344 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10349 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10356 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10357 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_FTRUNCATE_EXTEND 1
10364 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10365 echo "configure:10366: checking for AF_LOCAL socket support" >&5
10366 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10367 echo $ac_n "(cached) $ac_c" 1>&6
10370 if test "$cross_compiling" = yes; then
10371 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10376 #include "${srcdir-.}/tests/unixsock.c"
10378 if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10380 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10385 samba_cv_HAVE_WORKING_AF_LOCAL=no
10392 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10393 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10395 cat >> confdefs.h <<\EOF
10396 #define HAVE_WORKING_AF_LOCAL 1
10401 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10402 echo "configure:10403: checking for broken getgroups" >&5
10403 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10407 if test "$cross_compiling" = yes; then
10408 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 #include "${srcdir-.}/tests/getgroups.c"
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10417 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 samba_cv_HAVE_BROKEN_GETGROUPS=no
10429 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10430 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_BROKEN_GETGROUPS 1
10437 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10438 echo "configure:10439: checking whether getpass should be replaced" >&5
10439 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10443 SAVE_CPPFLAGS="$CPPFLAGS"
10444 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10445 cat > conftest.$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10449 #define REPLACE_GETPASS 1
10450 #define NO_CONFIG_H 1
10451 #define main dont_declare_main
10452 #include "${srcdir-.}/lib/getsmbpass.c"
10459 if { (eval echo configure:10460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10461 samba_cv_REPLACE_GETPASS=yes
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10466 samba_cv_REPLACE_GETPASS=no
10469 CPPFLAGS="$SAVE_CPPFLAGS"
10473 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10474 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10475 cat >> confdefs.h <<\EOF
10476 #define REPLACE_GETPASS 1
10481 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10482 echo "configure:10483: checking for broken inet_ntoa" >&5
10483 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10487 if test "$cross_compiling" = yes; then
10488 samba_cv_REPLACE_INET_NTOA=cross
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10495 #include <sys/types.h>
10496 #include <netinet/in.h>
10497 #ifdef HAVE_ARPA_INET_H
10498 #include <arpa/inet.h>
10500 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10501 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10502 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10507 samba_cv_REPLACE_INET_NTOA=yes
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10512 samba_cv_REPLACE_INET_NTOA=no
10519 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10520 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10521 cat >> confdefs.h <<\EOF
10522 #define REPLACE_INET_NTOA 1
10527 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10528 echo "configure:10529: checking for secure mkstemp" >&5
10529 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10533 if test "$cross_compiling" = yes; then
10534 samba_cv_HAVE_SECURE_MKSTEMP=cross
10536 cat > conftest.$ac_ext <<EOF
10537 #line 10538 "configure"
10538 #include "confdefs.h"
10539 #include <stdlib.h>
10540 #include <sys/types.h>
10541 #include <sys/stat.h>
10542 #include <unistd.h>
10545 char tpl[20]="/tmp/test.XXXXXX";
10546 int fd = mkstemp(tpl);
10547 if (fd == -1) exit(1);
10549 if (fstat(fd, &st) != 0) exit(1);
10550 if ((st.st_mode & 0777) != 0600) exit(1);
10554 if { (eval echo configure:10555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10556 samba_cv_HAVE_SECURE_MKSTEMP=yes
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10561 samba_cv_HAVE_SECURE_MKSTEMP=no
10568 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10569 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10570 cat >> confdefs.h <<\EOF
10571 #define HAVE_SECURE_MKSTEMP 1
10576 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10577 echo "configure:10578: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10578 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10582 if test "$cross_compiling" = yes; then
10583 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10585 cat > conftest.$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10588 #include <unistd.h>
10589 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10591 if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10593 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10598 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10605 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10606 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10607 cat >> confdefs.h <<\EOF
10608 #define SYSCONF_SC_NGROUPS_MAX 1
10613 echo $ac_n "checking for root""... $ac_c" 1>&6
10614 echo "configure:10615: checking for root" >&5
10615 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10619 if test "$cross_compiling" = yes; then
10620 samba_cv_HAVE_ROOT=cross
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10625 main() { exit(getuid() != 0); }
10627 if { (eval echo configure:10628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10629 samba_cv_HAVE_ROOT=yes
10631 echo "configure: failed program was:" >&5
10632 cat conftest.$ac_ext >&5
10634 samba_cv_HAVE_ROOT=no
10641 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10642 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10643 cat >> confdefs.h <<\EOF
10644 #define HAVE_ROOT 1
10648 echo "configure: warning: running as non-root will disable some tests" 1>&2
10652 # look for a method of finding the list of network interfaces
10654 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10655 echo "configure:10656: checking for iface AIX" >&5
10656 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10660 if test "$cross_compiling" = yes; then
10661 samba_cv_HAVE_IFACE_AIX=cross
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10667 #define HAVE_IFACE_AIX 1
10668 #define AUTOCONF_TEST 1
10669 #include "confdefs.h"
10670 #include "${srcdir-.}/lib/interfaces.c"
10672 if { (eval echo configure:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10674 samba_cv_HAVE_IFACE_AIX=yes
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10679 samba_cv_HAVE_IFACE_AIX=no
10686 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10687 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10688 iface=yes;cat >> confdefs.h <<\EOF
10689 #define HAVE_IFACE_AIX 1
10694 if test $iface = no; then
10695 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10696 echo "configure:10697: checking for iface ifconf" >&5
10697 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10701 if test "$cross_compiling" = yes; then
10702 samba_cv_HAVE_IFACE_IFCONF=cross
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10708 #define HAVE_IFACE_IFCONF 1
10709 #define AUTOCONF_TEST 1
10710 #include "confdefs.h"
10711 #include "${srcdir-.}/lib/interfaces.c"
10713 if { (eval echo configure:10714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10715 samba_cv_HAVE_IFACE_IFCONF=yes
10717 echo "configure: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10720 samba_cv_HAVE_IFACE_IFCONF=no
10727 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10728 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10729 iface=yes;cat >> confdefs.h <<\EOF
10730 #define HAVE_IFACE_IFCONF 1
10736 if test $iface = no; then
10737 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10738 echo "configure:10739: checking for iface ifreq" >&5
10739 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10743 if test "$cross_compiling" = yes; then
10744 samba_cv_HAVE_IFACE_IFREQ=cross
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10750 #define HAVE_IFACE_IFREQ 1
10751 #define AUTOCONF_TEST 1
10752 #include "confdefs.h"
10753 #include "${srcdir-.}/lib/interfaces.c"
10755 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10757 samba_cv_HAVE_IFACE_IFREQ=yes
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10762 samba_cv_HAVE_IFACE_IFREQ=no
10769 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10770 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10771 iface=yes;cat >> confdefs.h <<\EOF
10772 #define HAVE_IFACE_IFREQ 1
10779 ################################################
10780 # look for a method of setting the effective uid
10782 if test $seteuid = no; then
10783 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10784 echo "configure:10785: checking for setresuid" >&5
10785 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10786 echo $ac_n "(cached) $ac_c" 1>&6
10789 if test "$cross_compiling" = yes; then
10790 samba_cv_USE_SETRESUID=cross
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10796 #define AUTOCONF_TEST 1
10797 #define USE_SETRESUID 1
10798 #include "confdefs.h"
10799 #include "${srcdir-.}/lib/util_sec.c"
10801 if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10803 samba_cv_USE_SETRESUID=yes
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 samba_cv_USE_SETRESUID=no
10815 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10816 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10817 seteuid=yes;cat >> confdefs.h <<\EOF
10818 #define USE_SETRESUID 1
10825 if test $seteuid = no; then
10826 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10827 echo "configure:10828: checking for setreuid" >&5
10828 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10832 if test "$cross_compiling" = yes; then
10833 samba_cv_USE_SETREUID=cross
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10839 #define AUTOCONF_TEST 1
10840 #define USE_SETREUID 1
10841 #include "confdefs.h"
10842 #include "${srcdir-.}/lib/util_sec.c"
10844 if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10846 samba_cv_USE_SETREUID=yes
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10851 samba_cv_USE_SETREUID=no
10858 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10859 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10860 seteuid=yes;cat >> confdefs.h <<\EOF
10861 #define USE_SETREUID 1
10867 if test $seteuid = no; then
10868 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10869 echo "configure:10870: checking for seteuid" >&5
10870 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10874 if test "$cross_compiling" = yes; then
10875 samba_cv_USE_SETEUID=cross
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10881 #define AUTOCONF_TEST 1
10882 #define USE_SETEUID 1
10883 #include "confdefs.h"
10884 #include "${srcdir-.}/lib/util_sec.c"
10886 if { (eval echo configure:10887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10888 samba_cv_USE_SETEUID=yes
10890 echo "configure: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10893 samba_cv_USE_SETEUID=no
10900 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10901 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10902 seteuid=yes;cat >> confdefs.h <<\EOF
10903 #define USE_SETEUID 1
10909 if test $seteuid = no; then
10910 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10911 echo "configure:10912: checking for setuidx" >&5
10912 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10913 echo $ac_n "(cached) $ac_c" 1>&6
10916 if test "$cross_compiling" = yes; then
10917 samba_cv_USE_SETUIDX=cross
10919 cat > conftest.$ac_ext <<EOF
10920 #line 10921 "configure"
10921 #include "confdefs.h"
10923 #define AUTOCONF_TEST 1
10924 #define USE_SETUIDX 1
10925 #include "confdefs.h"
10926 #include "${srcdir-.}/lib/util_sec.c"
10928 if { (eval echo configure:10929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10930 samba_cv_USE_SETUIDX=yes
10932 echo "configure: failed program was:" >&5
10933 cat conftest.$ac_ext >&5
10935 samba_cv_USE_SETUIDX=no
10942 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10943 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10944 seteuid=yes;cat >> confdefs.h <<\EOF
10945 #define USE_SETUIDX 1
10952 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10953 echo "configure:10954: checking for working mmap" >&5
10954 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10955 echo $ac_n "(cached) $ac_c" 1>&6
10958 if test "$cross_compiling" = yes; then
10959 samba_cv_HAVE_MMAP=cross
10961 cat > conftest.$ac_ext <<EOF
10962 #line 10963 "configure"
10963 #include "confdefs.h"
10964 #include "${srcdir-.}/tests/shared_mmap.c"
10966 if { (eval echo configure:10967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10968 samba_cv_HAVE_MMAP=yes
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10973 samba_cv_HAVE_MMAP=no
10980 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10981 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10982 cat >> confdefs.h <<\EOF
10983 #define HAVE_MMAP 1
10988 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10989 echo "configure:10990: checking for ftruncate needs root" >&5
10990 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10991 echo $ac_n "(cached) $ac_c" 1>&6
10994 if test "$cross_compiling" = yes; then
10995 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 #include "${srcdir-.}/tests/ftruncroot.c"
11002 if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11004 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11009 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11016 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11017 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11018 cat >> confdefs.h <<\EOF
11019 #define FTRUNCATE_NEEDS_ROOT 1
11024 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11025 echo "configure:11026: checking for fcntl locking" >&5
11026 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11030 if test "$cross_compiling" = yes; then
11031 samba_cv_HAVE_FCNTL_LOCK=cross
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 #include "${srcdir-.}/tests/fcntl_lock.c"
11038 if { (eval echo configure:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11040 samba_cv_HAVE_FCNTL_LOCK=yes
11042 echo "configure: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11045 samba_cv_HAVE_FCNTL_LOCK=no
11052 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11053 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11054 cat >> confdefs.h <<\EOF
11055 #define HAVE_FCNTL_LOCK 1
11060 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11061 echo "configure:11062: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11062 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11066 if test "$cross_compiling" = yes; then
11067 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11072 #include "${srcdir-.}/tests/fcntl_lock64.c"
11074 if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11076 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11081 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11088 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11089 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11090 cat >> confdefs.h <<\EOF
11091 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11098 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11099 echo "configure:11100: checking for 64 bit fcntl locking" >&5
11100 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11101 echo $ac_n "(cached) $ac_c" 1>&6
11104 if test "$cross_compiling" = yes; then
11105 samba_cv_HAVE_STRUCT_FLOCK64=cross
11107 cat > conftest.$ac_ext <<EOF
11108 #line 11109 "configure"
11109 #include "confdefs.h"
11111 #if defined(HAVE_UNISTD_H)
11112 #include <unistd.h>
11115 #include <stdlib.h>
11117 #ifdef HAVE_FCNTL_H
11121 #ifdef HAVE_SYS_FCNTL_H
11122 #include <sys/fcntl.h>
11124 main() { struct flock64 fl64;
11125 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11132 if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11134 samba_cv_HAVE_STRUCT_FLOCK64=yes
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11139 samba_cv_HAVE_STRUCT_FLOCK64=no
11146 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11148 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11149 cat >> confdefs.h <<\EOF
11150 #define HAVE_STRUCT_FLOCK64 1
11159 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11160 echo "configure:11161: checking for broken RedHat 7.2 system header files" >&5
11161 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11169 #ifdef HAVE_SYS_VFS_H
11170 #include <sys/vfs.h>
11172 #ifdef HAVE_SYS_CAPABILITY_H
11173 #include <sys/capability.h>
11180 if { (eval echo configure:11181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11182 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11192 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11193 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11194 cat >> confdefs.h <<\EOF
11195 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11202 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11203 echo "configure:11204: checking for broken nisplus include files" >&5
11204 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11205 echo $ac_n "(cached) $ac_c" 1>&6
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <sys/acl.h>
11212 #if defined(HAVE_RPCSVC_NIS_H)
11213 #include <rpcsvc/nis.h>
11219 if { (eval echo configure:11220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11221 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11223 echo "configure: failed program was:" >&5
11224 cat conftest.$ac_ext >&5
11226 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11231 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11232 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11233 cat >> confdefs.h <<\EOF
11234 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11240 #################################################
11241 # check for smbwrapper support
11242 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11243 echo "configure:11244: checking whether to use smbwrapper" >&5
11244 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11245 if test "${with_smbwrapper+set}" = set; then
11246 withval="$with_smbwrapper"
11249 echo "$ac_t""yes" 1>&6
11250 cat >> confdefs.h <<\EOF
11251 #define WITH_SMBWRAPPER 1
11254 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11256 if test x$ATTEMPT_WRAP32_BUILD = x; then
11259 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11262 # Conditions under which smbwrapper should not be built.
11264 if test x$PICFLAG = x; then
11265 echo No support for PIC code - disabling smbwrapper and smbsh
11268 elif test x$ac_cv_func_syscall = xno; then
11269 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11275 echo "$ac_t""no" 1>&6
11279 echo "$ac_t""no" 1>&6
11284 #################################################
11285 # check for AFS clear-text auth support
11286 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11287 echo "configure:11288: checking whether to use AFS clear-text auth" >&5
11288 # Check whether --with-afs or --without-afs was given.
11289 if test "${with_afs+set}" = set; then
11290 withval="$with_afs"
11293 echo "$ac_t""yes" 1>&6
11294 cat >> confdefs.h <<\EOF
11300 echo "$ac_t""no" 1>&6
11304 echo "$ac_t""no" 1>&6
11310 #################################################
11311 # check for the DFS clear-text auth system
11312 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11313 echo "configure:11314: checking whether to use DFS clear-text auth" >&5
11314 # Check whether --with-dfs or --without-dfs was given.
11315 if test "${with_dfs+set}" = set; then
11316 withval="$with_dfs"
11319 echo "$ac_t""yes" 1>&6
11320 cat >> confdefs.h <<\EOF
11326 echo "$ac_t""no" 1>&6
11330 echo "$ac_t""no" 1>&6
11336 #################################################
11337 # see if this box has the RedHat location for kerberos
11338 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11339 echo "configure:11340: checking for /usr/kerberos" >&5
11340 if test -d /usr/kerberos; then
11341 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11342 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11343 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11344 echo "$ac_t""yes" 1>&6
11346 echo "$ac_t""no" 1>&6
11349 #################################################
11350 # check for location of Kerberos 5 install
11351 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11352 echo "configure:11353: checking for kerberos 5 install path" >&5
11353 # Check whether --with-krb5 or --without-krb5 was given.
11354 if test "${with_krb5+set}" = set; then
11355 withval="$with_krb5"
11358 echo "$ac_t""no" 1>&6
11361 echo "$ac_t""yes" 1>&6
11362 LIBS="$LIBS -lkrb5"
11363 CFLAGS="$CFLAGS -I$withval/include"
11364 CPPFLAGS="$CPPFLAGS -I$withval/include"
11365 LDFLAGS="$LDFLAGS -L$withval/lib"
11369 echo "$ac_t""no" 1>&6
11374 # now check for krb5.h. Some systems have the libraries without the headers!
11375 # note that this check is done here to allow for different kerberos
11377 for ac_hdr in krb5.h
11379 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11381 echo "configure:11382: checking for $ac_hdr" >&5
11382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11391 { (eval echo configure:11392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11393 if test -z "$ac_err"; then
11395 eval "ac_cv_header_$ac_safe=yes"
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11401 eval "ac_cv_header_$ac_safe=no"
11405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11406 echo "$ac_t""yes" 1>&6
11407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11408 cat >> confdefs.h <<EOF
11409 #define $ac_tr_hdr 1
11413 echo "$ac_t""no" 1>&6
11418 ##################################################################
11419 # we might need the k5crypto and com_err libraries on some systems
11420 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11421 echo "configure:11422: checking for _et_list in -lcom_err" >&5
11422 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11424 echo $ac_n "(cached) $ac_c" 1>&6
11426 ac_save_LIBS="$LIBS"
11427 LIBS="-lcom_err $LIBS"
11428 cat > conftest.$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 /* Override any gcc2 internal prototype to avoid an error. */
11432 /* We use char because int might match the return type of a gcc2
11433 builtin and then its argument prototype would still apply. */
11440 if { (eval echo configure:11441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11442 eval "ac_cv_lib_$ac_lib_var=yes"
11444 echo "configure: failed program was:" >&5
11445 cat conftest.$ac_ext >&5
11447 eval "ac_cv_lib_$ac_lib_var=no"
11450 LIBS="$ac_save_LIBS"
11453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11454 echo "$ac_t""yes" 1>&6
11455 LIBS="$LIBS -lcom_err"
11457 echo "$ac_t""no" 1>&6
11460 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11461 echo "configure:11462: checking for krb5_encrypt_data in -lk5crypto" >&5
11462 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11466 ac_save_LIBS="$LIBS"
11467 LIBS="-lk5crypto $LIBS"
11468 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure"
11470 #include "confdefs.h"
11471 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11474 char krb5_encrypt_data();
11477 krb5_encrypt_data()
11480 if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11482 eval "ac_cv_lib_$ac_lib_var=yes"
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11487 eval "ac_cv_lib_$ac_lib_var=no"
11490 LIBS="$ac_save_LIBS"
11493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11494 echo "$ac_t""yes" 1>&6
11495 LIBS="$LIBS -lk5crypto"
11497 echo "$ac_t""no" 1>&6
11500 echo $ac_n "checking for gss_import_name in -lgssapi_krb5""... $ac_c" 1>&6
11501 echo "configure:11502: checking for gss_import_name in -lgssapi_krb5" >&5
11502 ac_lib_var=`echo gssapi_krb5'_'gss_import_name | sed 'y%./+-%__p_%'`
11503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11504 echo $ac_n "(cached) $ac_c" 1>&6
11506 ac_save_LIBS="$LIBS"
11507 LIBS="-lgssapi_krb5 $LIBS"
11508 cat > conftest.$ac_ext <<EOF
11509 #line 11510 "configure"
11510 #include "confdefs.h"
11511 /* Override any gcc2 internal prototype to avoid an error. */
11512 /* We use char because int might match the return type of a gcc2
11513 builtin and then its argument prototype would still apply. */
11514 char gss_import_name();
11520 if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 eval "ac_cv_lib_$ac_lib_var=yes"
11524 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11527 eval "ac_cv_lib_$ac_lib_var=no"
11530 LIBS="$ac_save_LIBS"
11533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 LIBS="$LIBS -lgssapi_krb5"
11537 echo "$ac_t""no" 1>&6
11542 ########################################################
11543 # now see if we can find the krb5 libs in standard paths
11544 # or as specified above
11545 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11546 echo "configure:11547: checking for krb5_mk_req_extended in -lkrb5" >&5
11547 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11551 ac_save_LIBS="$LIBS"
11552 LIBS="-lkrb5 $LIBS"
11553 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure"
11555 #include "confdefs.h"
11556 /* Override any gcc2 internal prototype to avoid an error. */
11557 /* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */
11559 char krb5_mk_req_extended();
11562 krb5_mk_req_extended()
11565 if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11567 eval "ac_cv_lib_$ac_lib_var=yes"
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11572 eval "ac_cv_lib_$ac_lib_var=no"
11575 LIBS="$ac_save_LIBS"
11578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11579 echo "$ac_t""yes" 1>&6
11580 LIBS="$LIBS -lkrb5";
11581 cat >> confdefs.h <<\EOF
11582 #define HAVE_KRB5 1
11586 echo "$ac_t""no" 1>&6
11591 ##################################################################
11592 # we might need the lber lib on some systems. To avoid link errors
11593 # this test must be before the libldap test
11594 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11595 echo "configure:11596: checking for ber_scanf in -llber" >&5
11596 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11598 echo $ac_n "(cached) $ac_c" 1>&6
11600 ac_save_LIBS="$LIBS"
11601 LIBS="-llber $LIBS"
11602 cat > conftest.$ac_ext <<EOF
11603 #line 11604 "configure"
11604 #include "confdefs.h"
11605 /* Override any gcc2 internal prototype to avoid an error. */
11606 /* We use char because int might match the return type of a gcc2
11607 builtin and then its argument prototype would still apply. */
11614 if { (eval echo configure:11615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11616 eval "ac_cv_lib_$ac_lib_var=yes"
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11621 eval "ac_cv_lib_$ac_lib_var=no"
11624 LIBS="$ac_save_LIBS"
11627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11628 echo "$ac_t""yes" 1>&6
11629 LIBS="$LIBS -llber"
11631 echo "$ac_t""no" 1>&6
11635 ########################################################
11636 # now see if we can find the ldap libs in standard paths
11637 if test x$have_ldap != xyes; then
11638 echo $ac_n "checking for ldap_open in -lldap""... $ac_c" 1>&6
11639 echo "configure:11640: checking for ldap_open in -lldap" >&5
11640 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
11641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11644 ac_save_LIBS="$LIBS"
11645 LIBS="-lldap $LIBS"
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649 /* Override any gcc2 internal prototype to avoid an error. */
11650 /* We use char because int might match the return type of a gcc2
11651 builtin and then its argument prototype would still apply. */
11658 if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11660 eval "ac_cv_lib_$ac_lib_var=yes"
11662 echo "configure: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11665 eval "ac_cv_lib_$ac_lib_var=no"
11668 LIBS="$ac_save_LIBS"
11671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11672 echo "$ac_t""yes" 1>&6
11673 LIBS="$LIBS -lldap";
11674 cat >> confdefs.h <<\EOF
11675 #define HAVE_LDAP 1
11679 echo "$ac_t""no" 1>&6
11685 #################################################
11686 # check for automount support
11687 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11688 echo "configure:11689: checking whether to use AUTOMOUNT" >&5
11689 # Check whether --with-automount or --without-automount was given.
11690 if test "${with_automount+set}" = set; then
11691 withval="$with_automount"
11694 echo "$ac_t""yes" 1>&6
11695 cat >> confdefs.h <<\EOF
11696 #define WITH_AUTOMOUNT 1
11701 echo "$ac_t""no" 1>&6
11705 echo "$ac_t""no" 1>&6
11710 #################################################
11711 # check for smbmount support
11712 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11713 echo "configure:11714: checking whether to use SMBMOUNT" >&5
11714 # Check whether --with-smbmount or --without-smbmount was given.
11715 if test "${with_smbmount+set}" = set; then
11716 withval="$with_smbmount"
11721 echo "$ac_t""yes" 1>&6
11722 cat >> confdefs.h <<\EOF
11723 #define WITH_SMBMOUNT 1
11726 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11729 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11734 echo "$ac_t""no" 1>&6
11739 echo "$ac_t""no" 1>&6
11746 #################################################
11747 # check for a PAM clear-text auth, accounts, password and session support
11748 with_pam_for_crypt=no
11749 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
11750 echo "configure:11751: checking whether to use PAM" >&5
11751 # Check whether --with-pam or --without-pam was given.
11752 if test "${with_pam+set}" = set; then
11753 withval="$with_pam"
11756 echo "$ac_t""yes" 1>&6
11757 cat >> confdefs.h <<\EOF
11762 with_pam_for_crypt=yes
11765 echo "$ac_t""no" 1>&6
11769 echo "$ac_t""no" 1>&6
11774 # we can't build a pam module if we don't have pam.
11775 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11776 echo "configure:11777: checking for pam_get_data in -lpam" >&5
11777 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11781 ac_save_LIBS="$LIBS"
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11786 /* Override any gcc2 internal prototype to avoid an error. */
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11789 char pam_get_data();
11795 if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11797 eval "ac_cv_lib_$ac_lib_var=yes"
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11802 eval "ac_cv_lib_$ac_lib_var=no"
11805 LIBS="$ac_save_LIBS"
11808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11809 echo "$ac_t""yes" 1>&6
11810 cat >> confdefs.h <<\EOF
11811 #define HAVE_LIBPAM 1
11815 echo "$ac_t""no" 1>&6
11819 #################################################
11820 # check for pam_smbpass support
11821 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11822 echo "configure:11823: checking whether to use pam_smbpass" >&5
11823 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11824 if test "${with_pam_smbpass+set}" = set; then
11825 withval="$with_pam_smbpass"
11828 echo "$ac_t""yes" 1>&6
11830 # Conditions under which pam_smbpass should not be built.
11832 if test x$PICFLAG = x; then
11833 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11835 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11836 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11839 PAM_MOD="bin/pam_smbpass.so"
11843 echo "$ac_t""no" 1>&6
11847 echo "$ac_t""no" 1>&6
11853 ###############################################
11854 # test for where we get crypt() from, but only
11856 if test $with_pam_for_crypt = no; then
11857 for ac_func in crypt
11859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11860 echo "configure:11861: checking for $ac_func" >&5
11861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11862 echo $ac_n "(cached) $ac_c" 1>&6
11864 cat > conftest.$ac_ext <<EOF
11865 #line 11866 "configure"
11866 #include "confdefs.h"
11867 /* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func(); below. */
11869 #include <assert.h>
11870 /* Override any gcc2 internal prototype to avoid an error. */
11871 /* We use char because int might match the return type of a gcc2
11872 builtin and then its argument prototype would still apply. */
11877 /* The GNU C library defines this for functions which it implements
11878 to always fail with ENOSYS. Some functions are actually named
11879 something starting with __ and the normal name is an alias. */
11880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11888 if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11890 eval "ac_cv_func_$ac_func=yes"
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11895 eval "ac_cv_func_$ac_func=no"
11900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11901 echo "$ac_t""yes" 1>&6
11902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11903 cat >> confdefs.h <<EOF
11904 #define $ac_tr_func 1
11908 echo "$ac_t""no" 1>&6
11912 if test x"$ac_cv_func_crypt" = x"no"; then
11913 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11914 echo "configure:11915: checking for crypt in -lcrypt" >&5
11915 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11917 echo $ac_n "(cached) $ac_c" 1>&6
11919 ac_save_LIBS="$LIBS"
11920 LIBS="-lcrypt $LIBS"
11921 cat > conftest.$ac_ext <<EOF
11922 #line 11923 "configure"
11923 #include "confdefs.h"
11924 /* Override any gcc2 internal prototype to avoid an error. */
11925 /* We use char because int might match the return type of a gcc2
11926 builtin and then its argument prototype would still apply. */
11933 if { (eval echo configure:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11935 eval "ac_cv_lib_$ac_lib_var=yes"
11937 echo "configure: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11940 eval "ac_cv_lib_$ac_lib_var=no"
11943 LIBS="$ac_save_LIBS"
11946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11947 echo "$ac_t""yes" 1>&6
11948 LIBS="$LIBS -lcrypt";
11949 cat >> confdefs.h <<\EOF
11950 #define HAVE_CRYPT 1
11954 echo "$ac_t""no" 1>&6
11961 ## moved after the check for -lcrypt in order to
11962 ## ensure that the necessary libraries are included
11963 ## check checking for truncated salt. Wrapped by the
11964 ## $with_pam_for_crypt variable as above --jerry
11966 if test $with_pam_for_crypt = no; then
11967 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11968 echo "configure:11969: checking for a crypt that needs truncated salt" >&5
11969 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11970 echo $ac_n "(cached) $ac_c" 1>&6
11973 if test "$cross_compiling" = yes; then
11974 samba_cv_HAVE_TRUNCATED_SALT=cross
11976 cat > conftest.$ac_ext <<EOF
11977 #line 11978 "configure"
11978 #include "confdefs.h"
11979 #include "${srcdir-.}/tests/crypttest.c"
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11983 samba_cv_HAVE_TRUNCATED_SALT=no
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11988 samba_cv_HAVE_TRUNCATED_SALT=yes
11995 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11996 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11997 cat >> confdefs.h <<\EOF
11998 #define HAVE_TRUNCATED_SALT 1
12006 ########################################################################################
12008 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12010 ########################################################################################
12012 ## set the with_smbpasswd_sam as the default
12013 with_smbpasswd_sam=yes
12016 #################################################
12017 # check for a TDB password database
12018 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12019 echo "configure:12020: checking whether to use TDB SAM database" >&5
12020 # Check whether --with-tdbsam or --without-tdbsam was given.
12021 if test "${with_tdbsam+set}" = set; then
12022 withval="$with_tdbsam"
12025 echo "$ac_t""yes" 1>&6
12026 cat >> confdefs.h <<\EOF
12027 #define WITH_TDB_SAM 1
12030 with_smbpasswd_sam=no
12033 echo "$ac_t""no" 1>&6
12037 echo "$ac_t""no" 1>&6
12042 #################################################
12043 # check for a LDAP password database
12044 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12045 echo "configure:12046: checking whether to use LDAP SAM database" >&5
12046 # Check whether --with-ldapsam or --without-ldapsam was given.
12047 if test "${with_ldapsam+set}" = set; then
12048 withval="$with_ldapsam"
12051 echo "$ac_t""yes" 1>&6
12052 cat >> confdefs.h <<\EOF
12053 #define WITH_LDAP_SAM 1
12056 LIBS="-lldap -llber $LIBS"
12057 with_smbpasswd_sam=no
12060 echo "$ac_t""no" 1>&6
12064 echo "$ac_t""no" 1>&6
12069 #################################################
12070 # check for a NISPLUS password database
12071 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12072 echo "configure:12073: checking whether to use NISPLUS SAM database" >&5
12073 # Check whether --with-nisplussam or --without-nisplussam was given.
12074 if test "${with_nisplussam+set}" = set; then
12075 withval="$with_nisplussam"
12078 echo "$ac_t""yes" 1>&6
12079 cat >> confdefs.h <<\EOF
12080 #define WITH_NISPLUS_SAM 1
12083 with_smbpasswd_sam=no
12086 echo "$ac_t""no" 1>&6
12090 echo "$ac_t""no" 1>&6
12095 ################################################
12096 # This test should come last because the
12097 # smbpasswd SAM is only used if another format
12098 # has not been defined
12099 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12100 echo "configure:12101: checking whether to use traditional smbpasswd file" >&5
12101 if test $with_smbpasswd_sam = yes; then
12102 echo "$ac_t""yes" 1>&6
12103 cat >> confdefs.h <<\EOF
12104 #define WITH_SMBPASSWD_SAM 1
12108 echo "$ac_t""no" 1>&6
12111 ########################################################################################
12113 ## END OF TESTS FOR SAM BACKENDS.
12115 ########################################################################################
12117 #################################################
12118 # check for a NISPLUS_HOME support
12119 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12120 echo "configure:12121: checking whether to use NISPLUS_HOME" >&5
12121 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12122 if test "${with_nisplus_home+set}" = set; then
12123 withval="$with_nisplus_home"
12126 echo "$ac_t""yes" 1>&6
12127 cat >> confdefs.h <<\EOF
12128 #define WITH_NISPLUS_HOME 1
12133 echo "$ac_t""no" 1>&6
12137 echo "$ac_t""no" 1>&6
12142 #################################################
12143 # check for the secure socket layer
12144 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12145 echo "configure:12146: checking whether to use SSL" >&5
12146 # Check whether --with-ssl or --without-ssl was given.
12147 if test "${with_ssl+set}" = set; then
12148 withval="$with_ssl"
12151 echo "$ac_t""yes" 1>&6
12152 cat >> confdefs.h <<\EOF
12156 withval="/usr/local/ssl" # default
12158 if test "${with_sslinc+set}" = set; then
12160 withval="$with_sslinc"
12163 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12164 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12167 CFLAGS="-I${withval} $CFLAGS"
12173 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12177 if test "${with_ssllib+set}" = set; then
12179 withval="$with_ssllib"
12182 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12183 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12186 LDFLAGS="-L${withval}/lib $LDFLAGS"
12192 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12196 LIBS="-lssl -lcrypto $LIBS"
12198 # if test ! -d ${withval}; then
12199 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12203 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12207 echo "$ac_t""no" 1>&6
12211 echo "$ac_t""no" 1>&6
12216 #################################################
12217 # check for syslog logging
12218 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12219 echo "configure:12220: checking whether to use syslog logging" >&5
12220 # Check whether --with-syslog or --without-syslog was given.
12221 if test "${with_syslog+set}" = set; then
12222 withval="$with_syslog"
12225 echo "$ac_t""yes" 1>&6
12226 cat >> confdefs.h <<\EOF
12227 #define WITH_SYSLOG 1
12232 echo "$ac_t""no" 1>&6
12236 echo "$ac_t""no" 1>&6
12241 #################################################
12242 # check for a shared memory profiling support
12243 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12244 echo "configure:12245: checking whether to use profiling" >&5
12245 # Check whether --with-profiling-data or --without-profiling-data was given.
12246 if test "${with_profiling_data+set}" = set; then
12247 withval="$with_profiling_data"
12250 echo "$ac_t""yes" 1>&6
12251 cat >> confdefs.h <<\EOF
12252 #define WITH_PROFILE 1
12257 echo "$ac_t""no" 1>&6
12261 echo "$ac_t""no" 1>&6
12267 #################################################
12268 # check for experimental disk-quotas support
12269 QUOTAOBJS=smbd/noquotas.o
12271 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12272 echo "configure:12273: checking whether to support disk-quotas" >&5
12273 # Check whether --with-quotas or --without-quotas was given.
12274 if test "${with_quotas+set}" = set; then
12275 withval="$with_quotas"
12278 echo "$ac_t""yes" 1>&6
12281 # Check for kernel 2.4.x quota braindamage...
12282 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12283 echo "configure:12284: checking for linux 2.4.x quota braindamage.." >&5
12284 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12285 echo $ac_n "(cached) $ac_c" 1>&6
12288 cat > conftest.$ac_ext <<EOF
12289 #line 12290 "configure"
12290 #include "confdefs.h"
12292 #include <sys/types.h>
12293 #include <asm/types.h>
12294 #include <linux/quota.h>
12295 #include <mntent.h>
12296 #include <linux/unistd.h>
12298 struct mem_dqblk D;
12301 if { (eval echo configure:12302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12303 samba_cv_linux_2_4_quota_braindamage=yes
12305 echo "configure: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12308 samba_cv_linux_2_4_quota_braindamage=no
12313 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12314 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12315 cat >> confdefs.h <<\EOF
12316 #define LINUX_QUOTAS_2 1
12320 cat >> confdefs.h <<\EOF
12321 #define LINUX_QUOTAS_1 1
12329 QUOTAOBJS=smbd/quotas.o
12330 cat >> confdefs.h <<\EOF
12331 #define WITH_QUOTAS 1
12336 echo "$ac_t""no" 1>&6
12340 echo "$ac_t""no" 1>&6
12346 #################################################
12347 # check for experimental utmp accounting
12349 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12350 echo "configure:12351: checking whether to support utmp accounting" >&5
12351 # Check whether --with-utmp or --without-utmp was given.
12352 if test "${with_utmp+set}" = set; then
12353 withval="$with_utmp"
12356 echo "$ac_t""yes" 1>&6
12357 cat >> confdefs.h <<\EOF
12358 #define WITH_UTMP 1
12363 echo "$ac_t""no" 1>&6
12367 echo "$ac_t""no" 1>&6
12372 #################################################
12373 # set private directory location
12374 # Check whether --with-privatedir or --without-privatedir was given.
12375 if test "${with_privatedir+set}" = set; then
12376 withval="$with_privatedir"
12380 # Just in case anybody calls it without argument
12382 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12383 privatedir='${prefix}/private'
12386 privatedir="$withval"
12391 privatedir='${prefix}/private'
12397 #################################################
12398 # set lock directory location
12399 # Check whether --with-lockdir or --without-lockdir was given.
12400 if test "${with_lockdir+set}" = set; then
12401 withval="$with_lockdir"
12405 # Just in case anybody calls it without argument
12407 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12408 lockdir='$(VARDIR)/locks'
12416 lockdir='$(VARDIR)/locks'
12422 #################################################
12423 # set SWAT directory location
12424 # Check whether --with-swatdir or --without-swatdir was given.
12425 if test "${with_swatdir+set}" = set; then
12426 withval="$with_swatdir"
12430 # Just in case anybody does it
12432 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12433 swatdir='${prefix}/swat'
12441 swatdir='${prefix}/swat'
12447 #################################################
12448 # choose native language(s) of man pages
12449 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12450 echo "configure:12451: checking chosen man pages' language(s)" >&5
12451 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12452 if test "${with_manpages_langs+set}" = set; then
12453 withval="$with_manpages_langs"
12456 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12460 manlangs="$withval"
12464 echo "$ac_t""$manlangs" 1>&6
12465 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12469 echo "$ac_t""$manlangs" 1>&6
12475 #################################################
12476 # these tests are taken from the GNU fileutils package
12477 echo "checking how to get filesystem space usage" 1>&6
12478 echo "configure:12479: checking how to get filesystem space usage" >&5
12481 # Test for statvfs64.
12482 if test $space = no; then
12484 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12485 echo "configure:12486: checking statvfs64 function (SVR4)" >&5
12486 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12489 if test "$cross_compiling" = yes; then
12490 fu_cv_sys_stat_statvfs64=cross
12492 cat > conftest.$ac_ext <<EOF
12493 #line 12494 "configure"
12494 #include "confdefs.h"
12496 #if defined(HAVE_UNISTD_H)
12497 #include <unistd.h>
12499 #include <sys/types.h>
12500 #include <sys/statvfs.h>
12503 struct statvfs64 fsd;
12504 exit (statvfs64 (".", &fsd));
12507 if { (eval echo configure:12508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12509 fu_cv_sys_stat_statvfs64=yes
12511 echo "configure: failed program was:" >&5
12512 cat conftest.$ac_ext >&5
12514 fu_cv_sys_stat_statvfs64=no
12521 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12522 if test $fu_cv_sys_stat_statvfs64 = yes; then
12524 cat >> confdefs.h <<\EOF
12525 #define STAT_STATVFS64 1
12531 # Perform only the link test since it seems there are no variants of the
12532 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12533 # because that got a false positive on SCO OSR5. Adding the declaration
12534 # of a `struct statvfs' causes this test to fail (as it should) on such
12535 # systems. That system is reported to work fine with STAT_STATFS4 which
12536 # is what it gets when this test fails.
12537 if test $space = no; then
12539 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12540 echo "configure:12541: checking statvfs function (SVR4)" >&5
12541 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12542 echo $ac_n "(cached) $ac_c" 1>&6
12544 cat > conftest.$ac_ext <<EOF
12545 #line 12546 "configure"
12546 #include "confdefs.h"
12547 #include <sys/types.h>
12548 #include <sys/statvfs.h>
12550 struct statvfs fsd; statvfs (0, &fsd);
12553 if { (eval echo configure:12554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12555 fu_cv_sys_stat_statvfs=yes
12557 echo "configure: failed program was:" >&5
12558 cat conftest.$ac_ext >&5
12560 fu_cv_sys_stat_statvfs=no
12565 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12566 if test $fu_cv_sys_stat_statvfs = yes; then
12568 cat >> confdefs.h <<\EOF
12569 #define STAT_STATVFS 1
12575 if test $space = no; then
12576 # DEC Alpha running OSF/1
12577 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12578 echo "configure:12579: checking for 3-argument statfs function (DEC OSF/1)" >&5
12579 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12580 echo $ac_n "(cached) $ac_c" 1>&6
12582 if test "$cross_compiling" = yes; then
12583 fu_cv_sys_stat_statfs3_osf1=no
12585 cat > conftest.$ac_ext <<EOF
12586 #line 12587 "configure"
12587 #include "confdefs.h"
12589 #include <sys/param.h>
12590 #include <sys/types.h>
12591 #include <sys/mount.h>
12596 exit (statfs (".", &fsd, sizeof (struct statfs)));
12599 if { (eval echo configure:12600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12601 fu_cv_sys_stat_statfs3_osf1=yes
12603 echo "configure: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12606 fu_cv_sys_stat_statfs3_osf1=no
12613 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12614 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12616 cat >> confdefs.h <<\EOF
12617 #define STAT_STATFS3_OSF1 1
12623 if test $space = no; then
12625 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12626 echo "configure:12627: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12627 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12628 echo $ac_n "(cached) $ac_c" 1>&6
12630 if test "$cross_compiling" = yes; then
12631 fu_cv_sys_stat_statfs2_bsize=no
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12635 "configure"
12635 #include "confdefs.h"
12637 #ifdef HAVE_SYS_PARAM_H
12638 #include <sys/param.h>
12640 #ifdef HAVE_SYS_MOUNT_H
12641 #include <sys/mount.h>
12643 #ifdef HAVE_SYS_VFS_H
12644 #include <sys/vfs.h>
12650 exit (statfs (".", &fsd));
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12655 fu_cv_sys_stat_statfs2_bsize=yes
12657 echo "configure: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12660 fu_cv_sys_stat_statfs2_bsize=no
12667 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12668 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12670 cat >> confdefs.h <<\EOF
12671 #define STAT_STATFS2_BSIZE 1
12677 if test $space = no; then
12679 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12680 echo "configure:12681: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12681 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12682 echo $ac_n "(cached) $ac_c" 1>&6
12684 if test "$cross_compiling" = yes; then
12685 fu_cv_sys_stat_statfs4=no
12687 cat > conftest.$ac_ext <<EOF
12688 #line 12689 "configure"
12689 #include "confdefs.h"
12690 #include <sys/types.h>
12691 #include <sys/statfs.h>
12695 exit (statfs (".", &fsd, sizeof fsd, 0));
12698 if { (eval echo configure:12699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12700 fu_cv_sys_stat_statfs4=yes
12702 echo "configure: failed program was:" >&5
12703 cat conftest.$ac_ext >&5
12705 fu_cv_sys_stat_statfs4=no
12712 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12713 if test $fu_cv_sys_stat_statfs4 = yes; then
12715 cat >> confdefs.h <<\EOF
12716 #define STAT_STATFS4 1
12722 if test $space = no; then
12723 # 4.4BSD and NetBSD
12724 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12725 echo "configure:12726: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12726 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12727 echo $ac_n "(cached) $ac_c" 1>&6
12729 if test "$cross_compiling" = yes; then
12730 fu_cv_sys_stat_statfs2_fsize=no
12732 cat > conftest.$ac_ext <<EOF
12733 #line 12734 "configure"
12734 #include "confdefs.h"
12735 #include <sys/types.h>
12736 #ifdef HAVE_SYS_PARAM_H
12737 #include <sys/param.h>
12739 #ifdef HAVE_SYS_MOUNT_H
12740 #include <sys/mount.h>
12746 exit (statfs (".", &fsd));
12749 if { (eval echo configure:12750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12751 fu_cv_sys_stat_statfs2_fsize=yes
12753 echo "configure: failed program was:" >&5
12754 cat conftest.$ac_ext >&5
12756 fu_cv_sys_stat_statfs2_fsize=no
12763 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12764 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12766 cat >> confdefs.h <<\EOF
12767 #define STAT_STATFS2_FSIZE 1
12773 if test $space = no; then
12775 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12776 echo "configure:12777: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12777 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12778 echo $ac_n "(cached) $ac_c" 1>&6
12780 if test "$cross_compiling" = yes; then
12781 fu_cv_sys_stat_fs_data=no
12783 cat > conftest.$ac_ext <<EOF
12784 #line 12785 "configure"
12785 #include "confdefs.h"
12786 #include <sys/types.h>
12787 #ifdef HAVE_SYS_PARAM_H
12788 #include <sys/param.h>
12790 #ifdef HAVE_SYS_MOUNT_H
12791 #include <sys/mount.h>
12793 #ifdef HAVE_SYS_FS_TYPES_H
12794 #include <sys/fs_types.h>
12798 struct fs_data fsd;
12799 /* Ultrix's statfs returns 1 for success,
12800 0 for not mounted, -1 for failure. */
12801 exit (statfs (".", &fsd) != 1);
12804 if { (eval echo configure:12805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12806 fu_cv_sys_stat_fs_data=yes
12808 echo "configure: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12811 fu_cv_sys_stat_fs_data=no
12818 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12819 if test $fu_cv_sys_stat_fs_data = yes; then
12821 cat >> confdefs.h <<\EOF
12822 #define STAT_STATFS2_FS_DATA 1
12829 # As a gating factor for large file support, in order to
12830 # use <4GB files we must have the following minimal support
12832 # long long, and a 64 bit off_t or off64_t.
12833 # If we don't have all of these then disable large
12836 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12837 echo "configure:12838: checking if large file support can be enabled" >&5
12838 cat > conftest.$ac_ext <<EOF
12839 #line 12840 "configure"
12840 #include "confdefs.h"
12842 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12843 #include <sys/types.h>
12852 if { (eval echo configure:12853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12854 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12856 echo "configure: failed program was:" >&5
12857 cat conftest.$ac_ext >&5
12859 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12862 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12863 cat >> confdefs.h <<\EOF
12864 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12868 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12870 # Check whether --with-spinlocks or --without-spinlocks was given.
12871 if test "${with_spinlocks+set}" = set; then
12872 withval="$with_spinlocks"
12876 if test "x$with_spinlocks" = "xyes"; then
12877 cat >> confdefs.h <<\EOF
12878 #define USE_SPINLOCKS 1
12882 case "$host_cpu" in
12884 cat >> confdefs.h <<\EOF
12885 #define SPARC_SPINLOCKS 1
12890 i386|i486|i586|i686)
12891 cat >> confdefs.h <<\EOF
12892 #define INTEL_SPINLOCKS 1
12898 cat >> confdefs.h <<\EOF
12899 #define MIPS_SPINLOCKS 1
12905 cat >> confdefs.h <<\EOF
12906 #define POWERPC_SPINLOCKS 1
12913 #################################################
12914 # check for ACL support
12916 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12917 echo "configure:12918: checking whether to support ACLs" >&5
12918 # Check whether --with-acl-support or --without-acl-support was given.
12919 if test "${with_acl_support+set}" = set; then
12920 withval="$with_acl_support"
12926 echo "$ac_t""Using UnixWare ACLs" 1>&6
12927 cat >> confdefs.h <<\EOF
12928 #define HAVE_UNIXWARE_ACLS 1
12933 echo "$ac_t""Using solaris ACLs" 1>&6
12934 cat >> confdefs.h <<\EOF
12935 #define HAVE_SOLARIS_ACLS 1
12940 echo "$ac_t""Using IRIX ACLs" 1>&6
12941 cat >> confdefs.h <<\EOF
12942 #define HAVE_IRIX_ACLS 1
12947 echo "$ac_t""Using AIX ACLs" 1>&6
12948 cat >> confdefs.h <<\EOF
12949 #define HAVE_AIX_ACLS 1
12954 echo "$ac_t""Using Tru64 ACLs" 1>&6
12955 cat >> confdefs.h <<\EOF
12956 #define HAVE_TRU64_ACLS 1
12959 LIBS="$LIBS -lpacl"
12962 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12963 echo "configure:12964: checking for acl_get_file in -lacl" >&5
12964 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12966 echo $ac_n "(cached) $ac_c" 1>&6
12968 ac_save_LIBS="$LIBS"
12970 cat > conftest.$ac_ext <<EOF
12971 #line 12972 "configure"
12972 #include "confdefs.h"
12973 /* Override any gcc2 internal prototype to avoid an error. */
12974 /* We use char because int might match the return type of a gcc2
12975 builtin and then its argument prototype would still apply. */
12976 char acl_get_file();
12982 if { (eval echo configure:12983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12984 eval "ac_cv_lib_$ac_lib_var=yes"
12986 echo "configure: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12989 eval "ac_cv_lib_$ac_lib_var=no"
12992 LIBS="$ac_save_LIBS"
12995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12996 echo "$ac_t""yes" 1>&6
12997 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12999 cat >> confdefs.h <<EOF
13000 #define $ac_tr_lib 1
13006 echo "$ac_t""no" 1>&6
13009 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13010 echo "configure:13011: checking for ACL support" >&5
13011 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13012 echo $ac_n "(cached) $ac_c" 1>&6
13015 cat > conftest.$ac_ext <<EOF
13016 #line 13017 "configure"
13017 #include "confdefs.h"
13018 #include <sys/types.h>
13019 #include <sys/acl.h>
13021 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13024 if { (eval echo configure:13025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13026 samba_cv_HAVE_POSIX_ACLS=yes
13028 echo "configure: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13031 samba_cv_HAVE_POSIX_ACLS=no
13036 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13037 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13038 echo "$ac_t""Using posix ACLs" 1>&6
13039 cat >> confdefs.h <<\EOF
13040 #define HAVE_POSIX_ACLS 1
13043 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13044 echo "configure:13045: checking for acl_get_perm_np" >&5
13045 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13046 echo $ac_n "(cached) $ac_c" 1>&6
13049 cat > conftest.$ac_ext <<EOF
13050 #line 13051 "configure"
13051 #include "confdefs.h"
13052 #include <sys/types.h>
13053 #include <sys/acl.h>
13055 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13058 if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13060 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13065 samba_cv_HAVE_ACL_GET_PERM_NP=no
13070 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13071 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13072 cat >> confdefs.h <<\EOF
13073 #define HAVE_ACL_GET_PERM_NP 1
13082 echo "$ac_t""no" 1>&6
13083 cat >> confdefs.h <<\EOF
13084 #define HAVE_NO_ACLS 1
13090 cat >> confdefs.h <<\EOF
13091 #define HAVE_NO_ACLS 1
13094 echo "$ac_t""no" 1>&6
13099 #################################################
13100 # Check whether winbind is supported on this platform. If so we need to
13101 # build and install client programs (WINBIND_TARGETS), sbin programs
13102 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13104 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13105 echo "configure:13106: checking whether to build winbind" >&5
13107 # Initially, the value of $host_os decides whether winbind is supported
13115 winbind_no_reason=", unsupported on $host_os"
13119 # Check the setting of --with-winbindd
13121 # Check whether --with-winbind or --without-winbind was given.
13122 if test "${with_winbind+set}" = set; then
13123 withval="$with_winbind"
13137 # We need unix domain sockets for winbind
13139 if test x"$HAVE_WINBIND" = x"yes"; then
13140 if test x"$samba_cv_unixsocket" = x"no"; then
13141 winbind_no_reason=", no unix domain socket support on $host_os"
13146 # Display test results
13148 if test x"$HAVE_WINBIND" = x"yes"; then
13150 echo "$ac_t""yes" 1>&6
13152 WINBIND_TARGETS="bin/wbinfo"
13153 WINBIND_STARGETS="bin/winbindd"
13154 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13155 case "$with_pam" in
13157 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13161 echo "$ac_t""no$winbind_no_reason" 1>&6
13164 WINBIND_STARGETS=""
13165 WINBIND_LTARGETS=""
13166 WINBIND_PAM_PROGS=""
13169 # Substitution time!
13176 #################################################
13177 # Check to see if we should use the included popt
13179 # Check whether --with-included-popt or --without-included-popt was given.
13180 if test "${with_included_popt+set}" = set; then
13181 withval="$with_included_popt"
13193 if test x"$INCLUDED_POPT" != x"yes"; then
13194 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13195 echo "configure:13196: checking for poptGetContext in -lpopt" >&5
13196 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13198 echo $ac_n "(cached) $ac_c" 1>&6
13200 ac_save_LIBS="$LIBS"
13201 LIBS="-lpopt $LIBS"
13202 cat > conftest.$ac_ext <<EOF
13203 #line 13204 "configure"
13204 #include "confdefs.h"
13205 /* Override any gcc2 internal prototype to avoid an error. */
13206 /* We use char because int might match the return type of a gcc2
13207 builtin and then its argument prototype would still apply. */
13208 char poptGetContext();
13214 if { (eval echo configure:13215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13216 eval "ac_cv_lib_$ac_lib_var=yes"
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13221 eval "ac_cv_lib_$ac_lib_var=no"
13224 LIBS="$ac_save_LIBS"
13227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13228 echo "$ac_t""yes" 1>&6
13231 echo "$ac_t""no" 1>&6
13237 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13238 echo "configure:13239: checking whether to use included popt" >&5
13239 if test x"$INCLUDED_POPT" = x"yes"; then
13240 echo "$ac_t""$srcdir/popt" 1>&6
13241 BUILD_POPT='$(POPT_OBJS)'
13242 FLAGS1="-I$srcdir/popt"
13244 echo "$ac_t""no" 1>&6
13245 LIBS="$LIBS -lpopt"
13250 #################################################
13251 # final configure stuff
13253 echo "checking configure summary"
13254 if test "$cross_compiling" = yes; then
13257 cat > conftest.$ac_ext <<EOF
13258 #line 13259 "configure"
13259 #include "confdefs.h"
13260 #include "${srcdir-.}/tests/summary.c"
13262 if { (eval echo configure:13263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13264 echo "configure OK";
13266 echo "configure: failed program was:" >&5
13267 cat conftest.$ac_ext >&5
13269 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13279 cat > confcache <<\EOF
13280 # This file is a shell script that caches the results of configure
13281 # tests run on this system so they can be shared between configure
13282 # scripts and configure runs. It is not useful on other systems.
13283 # If it contains results you don't want to keep, you may remove or edit it.
13285 # By default, configure uses ./config.cache as the cache file,
13286 # creating it if it does not exist already. You can give configure
13287 # the --cache-file=FILE option to use a different cache file; that is
13288 # what configure does when it calls configure scripts in
13289 # subdirectories, so they share the cache.
13290 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13291 # config.status only pays attention to the cache file if you give it the
13292 # --recheck option to rerun configure.
13295 # The following way of writing the cache mishandles newlines in values,
13296 # but we know of no workaround that is simple, portable, and efficient.
13297 # So, don't put newlines in cache variables' values.
13298 # Ultrix sh set writes to stderr and can't be redirected directly,
13299 # and sets the high bit in the cache file unless we assign to the vars.
13301 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13303 # `set' does not quote correctly, so add quotes (double-quote substitution
13304 # turns \\\\ into \\, and sed turns \\ into \).
13306 -e "s/'/'\\\\''/g" \
13307 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13310 # `set' quotes correctly as required by POSIX, so do not add quotes.
13311 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13314 if cmp -s $cache_file confcache; then
13317 if test -w $cache_file; then
13318 echo "updating cache $cache_file"
13319 cat confcache > $cache_file
13321 echo "not updating unwritable cache $cache_file"
13326 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13329 # Let make expand exec_prefix.
13330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13332 # Any assignment to VPATH causes Sun make to only execute
13333 # the first set of double-colon rules, so remove it if not needed.
13334 # If there is a colon in the path, we need to keep it.
13335 if test "x$srcdir" = x.; then
13336 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13339 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13341 DEFS=-DHAVE_CONFIG_H
13343 # Without the "./", some shells look in PATH for config.status.
13344 : ${CONFIG_STATUS=./config.status}
13346 echo creating $CONFIG_STATUS
13347 rm -f $CONFIG_STATUS
13348 cat > $CONFIG_STATUS <<EOF
13350 # Generated automatically by configure.
13351 # Run this file to recreate the current configuration.
13352 # This directory was configured as follows,
13353 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13355 # $0 $ac_configure_args
13357 # Compiler output produced by configure, useful for debugging
13358 # configure, is in ./config.log if it exists.
13360 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13363 case "\$ac_option" in
13364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13365 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13366 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13367 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13368 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13370 -help | --help | --hel | --he | --h)
13371 echo "\$ac_cs_usage"; exit 0 ;;
13372 *) echo "\$ac_cs_usage"; exit 1 ;;
13376 ac_given_srcdir=$srcdir
13377 ac_given_INSTALL="$INSTALL"
13379 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13381 cat >> $CONFIG_STATUS <<EOF
13383 # Protect against being on the right side of a sed subst in config.status.
13384 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13385 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13389 s%@CFLAGS@%$CFLAGS%g
13390 s%@CPPFLAGS@%$CPPFLAGS%g
13391 s%@CXXFLAGS@%$CXXFLAGS%g
13392 s%@FFLAGS@%$FFLAGS%g
13394 s%@LDFLAGS@%$LDFLAGS%g
13396 s%@exec_prefix@%$exec_prefix%g
13397 s%@prefix@%$prefix%g
13398 s%@program_transform_name@%$program_transform_name%g
13399 s%@bindir@%$bindir%g
13400 s%@sbindir@%$sbindir%g
13401 s%@libexecdir@%$libexecdir%g
13402 s%@datadir@%$datadir%g
13403 s%@sysconfdir@%$sysconfdir%g
13404 s%@sharedstatedir@%$sharedstatedir%g
13405 s%@localstatedir@%$localstatedir%g
13406 s%@libdir@%$libdir%g
13407 s%@includedir@%$includedir%g
13408 s%@oldincludedir@%$oldincludedir%g
13409 s%@infodir@%$infodir%g
13410 s%@mandir@%$mandir%g
13411 s%@RUNPROG@%$RUNPROG%g
13412 s%@MPROGS@%$MPROGS%g
13413 s%@LDSHFLAGS@%$LDSHFLAGS%g
13415 s%@HOST_OS@%$HOST_OS%g
13416 s%@PAM_MOD@%$PAM_MOD%g
13418 s%@WRAP32@%$WRAP32%g
13419 s%@PICFLAG@%$PICFLAG%g
13420 s%@PICSUFFIX@%$PICSUFFIX%g
13421 s%@POBAD_CC@%$POBAD_CC%g
13422 s%@SHLIBEXT@%$SHLIBEXT%g
13423 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13425 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13426 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13427 s%@INSTALL_DATA@%$INSTALL_DATA%g
13429 s%@BROKEN_CC@%$BROKEN_CC%g
13431 s%@host_alias@%$host_alias%g
13432 s%@host_cpu@%$host_cpu%g
13433 s%@host_vendor@%$host_vendor%g
13434 s%@host_os@%$host_os%g
13435 s%@target@%$target%g
13436 s%@target_alias@%$target_alias%g
13437 s%@target_cpu@%$target_cpu%g
13438 s%@target_vendor@%$target_vendor%g
13439 s%@target_os@%$target_os%g
13441 s%@build_alias@%$build_alias%g
13442 s%@build_cpu@%$build_cpu%g
13443 s%@build_vendor@%$build_vendor%g
13444 s%@build_os@%$build_os%g
13446 s%@LIBOBJS@%$LIBOBJS%g
13447 s%@TERMLIBS@%$TERMLIBS%g
13448 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13450 s%@QUOTAOBJS@%$QUOTAOBJS%g
13451 s%@privatedir@%$privatedir%g
13452 s%@lockdir@%$lockdir%g
13453 s%@swatdir@%$swatdir%g
13454 s%@manlangs@%$manlangs%g
13455 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13456 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13457 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13458 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13459 s%@BUILD_POPT@%$BUILD_POPT%g
13460 s%@FLAGS1@%$FLAGS1%g
13461 s%@builddir@%$builddir%g
13466 cat >> $CONFIG_STATUS <<\EOF
13468 # Split the substitutions into bite-sized pieces for seds with
13469 # small command number limits, like on Digital OSF/1 and HP-UX.
13470 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13471 ac_file=1 # Number of current file.
13472 ac_beg=1 # First line for current file.
13473 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13476 while $ac_more_lines; do
13477 if test $ac_beg -gt 1; then
13478 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13480 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13482 if test ! -s conftest.s$ac_file; then
13483 ac_more_lines=false
13484 rm -f conftest.s$ac_file
13486 if test -z "$ac_sed_cmds"; then
13487 ac_sed_cmds="sed -f conftest.s$ac_file"
13489 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13491 ac_file=`expr $ac_file + 1`
13493 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13496 if test -z "$ac_sed_cmds"; then
13501 cat >> $CONFIG_STATUS <<EOF
13503 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13505 cat >> $CONFIG_STATUS <<\EOF
13506 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13509 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13510 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13511 *) ac_file_in="${ac_file}.in" ;;
13514 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13516 # Remove last slash and all that follows it. Not all systems have dirname.
13517 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13518 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13519 # The file is in a subdirectory.
13520 test ! -d "$ac_dir" && mkdir "$ac_dir"
13521 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13522 # A "../" for each directory in $ac_dir_suffix.
13523 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13525 ac_dir_suffix= ac_dots=
13528 case "$ac_given_srcdir" in
13530 if test -z "$ac_dots"; then top_srcdir=.
13531 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13532 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13533 *) # Relative path.
13534 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13535 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13538 case "$ac_given_INSTALL" in
13539 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13540 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13543 echo creating "$ac_file"
13545 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13547 *Makefile*) ac_comsub="1i\\
13548 # $configure_input" ;;
13552 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13554 s%@configure_input@%$configure_input%g
13555 s%@srcdir@%$srcdir%g
13556 s%@top_srcdir@%$top_srcdir%g
13557 s%@INSTALL@%$INSTALL%g
13558 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13562 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13563 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13565 # ac_d sets the value in "#define NAME VALUE" lines.
13566 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13567 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13570 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13571 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13572 ac_uB='\([ ]\)%\1#\2define\3'
13575 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13576 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13577 ac_eB='$%\1#\2define\3'
13581 if test "${CONFIG_HEADERS+set}" != set; then
13583 cat >> $CONFIG_STATUS <<EOF
13584 CONFIG_HEADERS="include/config.h"
13586 cat >> $CONFIG_STATUS <<\EOF
13588 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13589 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13591 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13592 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13593 *) ac_file_in="${ac_file}.in" ;;
13596 echo creating $ac_file
13598 rm -f conftest.frag conftest.in conftest.out
13599 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13600 cat $ac_file_inputs > conftest.in
13604 # Transform confdefs.h into a sed script conftest.vals that substitutes
13605 # the proper values into config.h.in to produce config.h. And first:
13606 # Protect against being on the right side of a sed subst in config.status.
13607 # Protect against being in an unquoted here document in config.status.
13608 rm -f conftest.vals
13609 cat > conftest.hdr <<\EOF
13612 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13616 sed -n -f conftest.hdr confdefs.h > conftest.vals
13619 # This sed command replaces #undef with comments. This is necessary, for
13620 # example, in the case of _POSIX_SOURCE, which is predefined and required
13621 # on some systems where configure will not decide to define it.
13622 cat >> conftest.vals <<\EOF
13623 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13626 # Break up conftest.vals because some shells have a limit on
13627 # the size of here documents, and old seds have small limits too.
13629 rm -f conftest.tail
13632 ac_lines=`grep -c . conftest.vals`
13633 # grep -c gives empty output for an empty file on some AIX systems.
13634 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13635 # Write a limited-size here document to conftest.frag.
13636 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13637 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13639 sed -f conftest.frag conftest.in > conftest.out
13641 mv conftest.out conftest.in
13642 ' >> $CONFIG_STATUS
13643 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13644 rm -f conftest.vals
13645 mv conftest.tail conftest.vals
13647 rm -f conftest.vals
13649 cat >> $CONFIG_STATUS <<\EOF
13650 rm -f conftest.frag conftest.h
13651 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13652 cat conftest.in >> conftest.h
13654 if cmp -s $ac_file conftest.h 2>/dev/null; then
13655 echo "$ac_file is unchanged"
13658 # Remove last slash and all that follows it. Not all systems have dirname.
13659 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13660 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13661 # The file is in a subdirectory.
13662 test ! -d "$ac_dir" && mkdir "$ac_dir"
13665 mv conftest.h $ac_file
13670 cat >> $CONFIG_STATUS <<EOF
13673 cat >> $CONFIG_STATUS <<\EOF
13677 chmod +x $CONFIG_STATUS
13678 rm -fr confdefs* $ac_clean_files
13679 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1