3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-developer turn on developer warnings and debugging [default=no]"
20 --enable-dmalloc enable heap debugging [default=no]"
22 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
24 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
26 --with-smbwrapper Include SMB wrapper support (default=no) "
28 --with-afs Include AFS clear-text auth support (default=no) "
30 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
32 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
34 --with-automount Include AUTOMOUNT support (default=no)"
36 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
38 --with-pam Include PAM support (default=no)"
40 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
42 --with-tdbsam Include experimental TDB SAM support (default=no)"
44 --with-ldapsam Include experimental LDAP SAM support (default=no)"
46 --with-nisplussam Include NISPLUS SAM support (default=no)"
48 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
50 --with-ssl Include SSL support (default=no)
51 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
52 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
54 --with-syslog Include experimental SYSLOG support (default=no)"
56 --with-profiling-data Include gathering source code profile information (default=no)"
58 --with-quotas Include experimental disk-quota support (default=no)"
60 --with-utmp Include experimental utmp accounting (default=no)"
62 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
64 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
66 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
68 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
70 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
72 --with-acl-support Include ACL support (default=no)"
74 --with-winbind Build winbind (default, if supported by OS)"
76 --with-included-popt use bundled popt library, not from system"
78 # Initialize some variables set by options.
79 # The variables have the same names as the options, with
80 # dashes changed to underlines.
82 cache_file
=.
/config.cache
91 program_transform_name
=s
,x
,x
,
99 bindir
='${exec_prefix}/bin'
100 sbindir
='${exec_prefix}/sbin'
101 libexecdir
='${exec_prefix}/libexec'
102 datadir
='${prefix}/share'
103 sysconfdir
='${prefix}/etc'
104 sharedstatedir
='${prefix}/com'
105 localstatedir
='${prefix}/var'
106 libdir
='${exec_prefix}/lib'
107 includedir
='${prefix}/include'
108 oldincludedir
='/usr/include'
109 infodir
='${prefix}/info'
110 mandir
='${prefix}/man'
112 # Initialize some other variables.
115 SHELL
=${CONFIG_SHELL-/bin/sh}
116 # Maximum number of lines to put in a shell here document.
123 # If the previous option needs an argument, assign it.
124 if test -n "$ac_prev"; then
125 eval "$ac_prev=\$ac_option"
131 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 # Accept the important Cygnus configure options, so we can diagnose typos.
139 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
141 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
142 bindir
="$ac_optarg" ;;
144 -build |
--build |
--buil |
--bui |
--bu)
146 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
147 build
="$ac_optarg" ;;
149 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
150 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
151 ac_prev
=cache_file
;;
152 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
153 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
154 cache_file
="$ac_optarg" ;;
156 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
158 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
160 datadir
="$ac_optarg" ;;
162 -disable-* |
--disable-*)
163 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}=no" ;;
171 -enable-* |
--enable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}='$ac_optarg'" ;;
184 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
185 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
186 |
--exec |
--exe |
--ex)
187 ac_prev
=exec_prefix
;;
188 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
189 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
190 |
--exec=* |
--exe=* |
--ex=*)
191 exec_prefix
="$ac_optarg" ;;
193 -gas |
--gas |
--ga |
--g)
194 # Obsolete; use --with-gas.
197 -help |
--help |
--hel |
--he)
198 # Omit some internal or obsolete options to make the list less imposing.
199 # This message is too long to be a string in the A/UX 3.1 sh.
201 Usage: configure [options] [host]
202 Options: [defaults in brackets after descriptions]
204 --cache-file=FILE cache test results in FILE
205 --help print this message
206 --no-create do not create output files
207 --quiet, --silent do not print \`checking...' messages
208 --version print the version of autoconf that created configure
209 Directory and file names:
210 --prefix=PREFIX install architecture-independent files in PREFIX
212 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
214 --bindir=DIR user executables in DIR [EPREFIX/bin]
215 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
216 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
217 --datadir=DIR read-only architecture-independent data in DIR
219 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
220 --sharedstatedir=DIR modifiable architecture-independent data in DIR
222 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
223 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
224 --includedir=DIR C header files in DIR [PREFIX/include]
225 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
226 --infodir=DIR info documentation in DIR [PREFIX/info]
227 --mandir=DIR man documentation in DIR [PREFIX/man]
228 --srcdir=DIR find the sources in DIR [configure dir or ..]
229 --program-prefix=PREFIX prepend PREFIX to installed program names
230 --program-suffix=SUFFIX append SUFFIX to installed program names
231 --program-transform-name=PROGRAM
232 run sed PROGRAM on installed program names
236 --build=BUILD configure for building on BUILD [BUILD=HOST]
237 --host=HOST configure for HOST [guessed]
238 --target=TARGET configure for TARGET [TARGET=HOST]
239 Features and packages:
240 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
241 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
242 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
243 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
244 --x-includes=DIR X include files are in DIR
245 --x-libraries=DIR X library files are in DIR
247 if test -n "$ac_help"; then
248 echo "--enable and --with options recognized:$ac_help"
252 -host |
--host |
--hos |
--ho)
254 -host=* |
--host=* |
--hos=* |
--ho=*)
257 -includedir |
--includedir |
--includedi |
--included |
--include \
258 |
--includ |
--inclu |
--incl |
--inc)
259 ac_prev
=includedir
;;
260 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
261 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
262 includedir
="$ac_optarg" ;;
264 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
266 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
267 infodir
="$ac_optarg" ;;
269 -libdir |
--libdir |
--libdi |
--libd)
271 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
272 libdir
="$ac_optarg" ;;
274 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
275 |
--libexe |
--libex |
--libe)
276 ac_prev
=libexecdir
;;
277 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
278 |
--libexe=* |
--libex=* |
--libe=*)
279 libexecdir
="$ac_optarg" ;;
281 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
282 |
--localstate |
--localstat |
--localsta |
--localst \
283 |
--locals |
--local |
--loca |
--loc |
--lo)
284 ac_prev
=localstatedir
;;
285 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
286 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
287 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
288 localstatedir
="$ac_optarg" ;;
290 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
292 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
293 mandir
="$ac_optarg" ;;
296 # Obsolete; use --without-fp.
299 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
303 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
304 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
307 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
308 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
309 |
--oldin |
--oldi |
--old |
--ol |
--o)
310 ac_prev
=oldincludedir
;;
311 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
312 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
313 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
314 oldincludedir
="$ac_optarg" ;;
316 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
318 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
319 prefix
="$ac_optarg" ;;
321 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
322 |
--program-pre |
--program-pr |
--program-p)
323 ac_prev
=program_prefix
;;
324 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
325 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
326 program_prefix
="$ac_optarg" ;;
328 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
329 |
--program-suf |
--program-su |
--program-s)
330 ac_prev
=program_suffix
;;
331 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
332 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
333 program_suffix
="$ac_optarg" ;;
335 -program-transform-name |
--program-transform-name \
336 |
--program-transform-nam |
--program-transform-na \
337 |
--program-transform-n |
--program-transform- \
338 |
--program-transform |
--program-transfor \
339 |
--program-transfo |
--program-transf \
340 |
--program-trans |
--program-tran \
341 |
--progr-tra |
--program-tr |
--program-t)
342 ac_prev
=program_transform_name
;;
343 -program-transform-name=* |
--program-transform-name=* \
344 |
--program-transform-nam=* |
--program-transform-na=* \
345 |
--program-transform-n=* |
--program-transform-=* \
346 |
--program-transform=* |
--program-transfor=* \
347 |
--program-transfo=* |
--program-transf=* \
348 |
--program-trans=* |
--program-tran=* \
349 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
350 program_transform_name
="$ac_optarg" ;;
352 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
353 |
-silent |
--silent |
--silen |
--sile |
--sil)
356 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
358 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
360 sbindir
="$ac_optarg" ;;
362 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
363 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
364 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
366 ac_prev
=sharedstatedir
;;
367 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
368 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
369 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
371 sharedstatedir
="$ac_optarg" ;;
373 -site |
--site |
--sit)
375 -site=* |
--site=* |
--sit=*)
378 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
380 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
381 srcdir
="$ac_optarg" ;;
383 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
384 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
385 ac_prev
=sysconfdir
;;
386 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
387 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
388 sysconfdir
="$ac_optarg" ;;
390 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
392 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
393 target
="$ac_optarg" ;;
395 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
398 -version |
--version |
--versio |
--versi |
--vers)
399 echo "configure generated by autoconf version 2.13"
403 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}='$ac_optarg'" ;;
415 -without-* |
--without-*)
416 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}=no" ;;
425 # Obsolete; use --with-x.
428 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
429 |
--x-incl |
--x-inc |
--x-in |
--x-i)
430 ac_prev
=x_includes
;;
431 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
432 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
433 x_includes
="$ac_optarg" ;;
435 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
436 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
437 ac_prev
=x_libraries
;;
438 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
439 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
440 x_libraries
="$ac_optarg" ;;
442 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
447 echo "configure: warning: $ac_option: invalid host type" 1>&2
449 if test "x$nonopt" != xNONE
; then
450 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 if test -n "$ac_prev"; then
459 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464 # File descriptor usage:
467 # 2 errors and warnings
468 # 3 some systems may open it to /dev/tty
469 # 4 used on the Kubota Titan
470 # 6 checking for... messages and results
471 # 5 compiler messages saved in config.log
472 if test "$silent" = yes; then
480 This file contains any messages produced by compilers while
481 running configure, to aid debugging if configure makes a mistake.
484 # Strip out --no-create and --no-recursion so they do not pile up.
485 # Also quote any args containing shell metacharacters.
490 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
491 |
--no-cr |
--no-c) ;;
492 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
493 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
494 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
495 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
496 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
501 # Only set these to C if already set. These must not be set unconditionally
502 # because not all systems understand e.g. LANG=C (notably SCO).
503 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
504 # Non-C LC_CTYPE values break the ctype check.
505 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
506 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
507 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
508 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
511 rm -rf conftest
* confdefs.h
512 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 # A filename unique to this package, relative to the directory that
516 # configure is in, which we can look for to find out if srcdir is correct.
517 ac_unique_file
=include
/includes.h
519 # Find the source files, if location was not specified.
520 if test -z "$srcdir"; then
521 ac_srcdir_defaulted
=yes
522 # Try the directory containing this script, then its parent.
524 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
525 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
527 if test ! -r $srcdir/$ac_unique_file; then
531 ac_srcdir_defaulted
=no
533 if test ! -r $srcdir/$ac_unique_file; then
534 if test "$ac_srcdir_defaulted" = yes; then
535 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542 # Prefer explicitly selected file to automatically selected ones.
543 if test -z "$CONFIG_SITE"; then
544 if test "x$prefix" != xNONE
; then
545 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
547 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 for ac_site_file
in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
561 echo "creating cache $cache_file"
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp
='$CPP $CPPFLAGS'
568 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling
=$ac_cv_prog_cc_cross
574 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
583 ac_n
= ac_c
='\c' ac_t
=
588 # we want to be compatibe with older versions of Samba
606 # compile with optimisation and without debugging by default
607 CFLAGS
="-O ${CFLAGS}"
609 # Check whether --enable-debug or --disable-debug was given.
610 if test "${enable_debug+set}" = set; then
611 enableval
="$enable_debug"
612 if eval "test x$enable_debug = xyes"; then
613 CFLAGS
="${CFLAGS} -g"
618 # Check whether --enable-developer or --disable-developer was given.
619 if test "${enable_developer+set}" = set; then
620 enableval
="$enable_developer"
621 if eval "test x$enable_developer = xyes"; then
622 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
627 # Check whether --enable-dmalloc or --disable-dmalloc was given.
628 if test "${enable_dmalloc+set}" = set; then
629 enableval
="$enable_dmalloc"
634 if test "x$enable_dmalloc" = xyes
636 cat >> confdefs.h
<<\EOF
637 #define ENABLE_DMALLOC 1
640 LIBS
="$LIBS -ldmalloc"
643 # Extract the first word of "gcc", so it can be a program name with args.
644 set dummy gcc
; ac_word
=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC
="$CC" # Let the user override the test.
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
655 for ac_dir
in $ac_dummy; do
656 test -z "$ac_dir" && ac_dir
=.
657 if test -f $ac_dir/$ac_word; then
666 if test -n "$CC"; then
667 echo "$ac_t""$CC" 1>&6
669 echo "$ac_t""no" 1>&6
672 if test -z "$CC"; then
673 # Extract the first word of "cc", so it can be a program name with args.
674 set dummy cc
; ac_word
=$2
675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676 echo "configure:677: checking for $ac_word" >&5
677 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 if test -n "$CC"; then
681 ac_cv_prog_CC
="$CC" # Let the user override the test.
683 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
686 for ac_dir
in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir
=.
688 if test -f $ac_dir/$ac_word; then
689 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
698 if test $ac_prog_rejected = yes; then
699 # We found a bogon in the path, so make sure we never use it.
700 set dummy
$ac_cv_prog_CC
702 if test $# -gt 0; then
703 # We chose a different compiler from the bogus one.
704 # However, it has the same basename, so the bogon will be chosen
705 # first if we set CC to just the basename; use the full file name.
707 set dummy
"$ac_dir/$ac_word" "$@"
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
721 if test -z "$CC"; then
724 # Extract the first word of "cl", so it can be a program name with args.
725 set dummy cl
; ac_word
=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 if test -n "$CC"; then
732 ac_cv_prog_CC
="$CC" # Let the user override the test.
734 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
736 for ac_dir
in $ac_dummy; do
737 test -z "$ac_dir" && ac_dir
=.
738 if test -f $ac_dir/$ac_word; then
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
755 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
758 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
759 echo "configure:760: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
763 ac_cpp
='$CPP $CPPFLAGS'
764 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
765 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
766 cross_compiling
=$ac_cv_prog_cc_cross
768 cat > conftest.
$ac_ext << EOF
770 #line 771 "configure"
771 #include "confdefs.h"
775 if { (eval echo configure
:776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
776 ac_cv_prog_cc_works
=yes
777 # If we can't run a trivial program, we are probably using a cross compiler.
778 if (.
/conftest
; exit) 2>/dev
/null
; then
779 ac_cv_prog_cc_cross
=no
781 ac_cv_prog_cc_cross
=yes
784 echo "configure: failed program was:" >&5
785 cat conftest.
$ac_ext >&5
786 ac_cv_prog_cc_works
=no
790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp
='$CPP $CPPFLAGS'
792 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling
=$ac_cv_prog_cc_cross
796 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
797 if test $ac_cv_prog_cc_works = no
; then
798 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
800 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
801 echo "configure:802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
802 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
803 cross_compiling
=$ac_cv_prog_cc_cross
805 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
806 echo "configure:807: checking whether we are using GNU C" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 cat > conftest.c
<<EOF
815 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
822 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
824 if test $ac_cv_prog_gcc = yes; then
830 ac_test_CFLAGS
="${CFLAGS+set}"
831 ac_save_CFLAGS
="$CFLAGS"
833 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
834 echo "configure:835: checking whether ${CC-cc} accepts -g" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 echo 'void f(){}' > conftest.c
839 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
848 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
849 if test "$ac_test_CFLAGS" = set; then
850 CFLAGS
="$ac_save_CFLAGS"
851 elif test $ac_cv_prog_cc_g = yes; then
852 if test "$GCC" = yes; then
858 if test "$GCC" = yes; then
866 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
867 if test -f $ac_dir/install-sh
; then
869 ac_install_sh
="$ac_aux_dir/install-sh -c"
871 elif test -f $ac_dir/install.sh
; then
873 ac_install_sh
="$ac_aux_dir/install.sh -c"
877 if test -z "$ac_aux_dir"; then
878 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
880 ac_config_guess
=$ac_aux_dir/config.guess
881 ac_config_sub
=$ac_aux_dir/config.sub
882 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
884 # Find a good install program. We prefer a C program (faster),
885 # so one script is as good as another. But avoid the broken or
886 # incompatible versions:
887 # SysV /etc/install, /usr/sbin/install
888 # SunOS /usr/etc/install
891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
894 # ./install, which can be erroneously created by make from ./install.sh.
895 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
896 echo "configure:897: checking for a BSD compatible install" >&5
897 if test -z "$INSTALL"; then
898 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
902 for ac_dir
in $PATH; do
903 # Account for people who put trailing slashes in PATH elements.
905 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
907 # OSF1 and SCO ODT 3.0 have their own names for install.
908 # Don't use installbsd from OSF since it installs stuff as root
910 for ac_prog
in ginstall scoinst
install; do
911 if test -f $ac_dir/$ac_prog; then
912 if test $ac_prog = install &&
913 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
914 # AIX install. It has an incompatible calling convention.
917 ac_cv_path_install
="$ac_dir/$ac_prog -c"
928 if test "${ac_cv_path_install+set}" = set; then
929 INSTALL
="$ac_cv_path_install"
931 # As a last resort, use the slow shell script. We don't cache a
932 # path for INSTALL within a source directory, because that will
933 # break other packages using the cache if that directory is
934 # removed, or if the path is relative.
935 INSTALL
="$ac_install_sh"
938 echo "$ac_t""$INSTALL" 1>&6
940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
941 # It thinks the first close brace ends the variable substitution.
942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
946 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
948 for ac_prog
in mawk gawk nawk
awk
950 # Extract the first word of "$ac_prog", so it can be a program name with args.
951 set dummy
$ac_prog; ac_word
=$2
952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953 echo "configure:954: checking for $ac_word" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 if test -n "$AWK"; then
958 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
960 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
962 for ac_dir
in $ac_dummy; do
963 test -z "$ac_dir" && ac_dir
=.
964 if test -f $ac_dir/$ac_word; then
965 ac_cv_prog_AWK
="$ac_prog"
972 AWK
="$ac_cv_prog_AWK"
973 if test -n "$AWK"; then
974 echo "$ac_t""$AWK" 1>&6
976 echo "$ac_t""no" 1>&6
979 test -n "$AWK" && break
983 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
984 echo "configure:985: checking for POSIXized ISC" >&5
985 if test -d /etc
/conf
/kconfig.d
&&
986 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
988 echo "$ac_t""yes" 1>&6
989 ISC
=yes # If later tests want to check for ISC.
990 cat >> confdefs.h
<<\EOF
991 #define _POSIX_SOURCE 1
994 if test "$GCC" = yes; then
1000 echo "$ac_t""no" 1>&6
1005 if test "x$CC" != xcc
; then
1006 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether $CC and cc understand -c and -o together" >&5
1009 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1010 echo "configure:1011: checking whether cc understands -c and -o together" >&5
1012 set dummy
$CC; ac_cc
="`echo $2 |
1013 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1014 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 echo 'foo(){}' > conftest.c
1018 # Make sure it works both with $CC and with simple cc.
1019 # We do the test twice because some compilers refuse to overwrite an
1020 # existing .o file with -o, though they will create one.
1021 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1022 if { (eval echo configure
:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1023 test -f conftest.o
&& { (eval echo configure
:1024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1025 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1026 if test "x$CC" != xcc
; then
1027 # Test first that cc exists at all.
1028 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1029 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1030 if { (eval echo configure
:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1031 test -f conftest.o
&& { (eval echo configure
:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1036 # cc exists but doesn't like -o.
1037 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1042 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1047 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1048 echo "$ac_t""yes" 1>&6
1050 echo "$ac_t""no" 1>&6
1051 cat >> confdefs.h
<<\EOF
1052 #define NO_MINUS_C_MINUS_O 1
1057 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1064 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1065 echo "configure:1066: checking that the C compiler understands volatile" >&5
1066 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1070 cat > conftest.
$ac_ext <<EOF
1071 #line 1072 "configure"
1072 #include "confdefs.h"
1073 #include <sys/types.h>
1078 if { (eval echo configure
:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1080 samba_cv_volatile
=yes
1082 echo "configure: failed program was:" >&5
1083 cat conftest.
$ac_ext >&5
1085 samba_cv_volatile
=no
1090 echo "$ac_t""$samba_cv_volatile" 1>&6
1091 if test x
"$samba_cv_volatile" = x
"yes"; then
1092 cat >> confdefs.h
<<\EOF
1093 #define HAVE_VOLATILE 1
1100 # Do some error checking and defaulting for the host and target type.
1102 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1105 # 1. You are not allowed to specify --host, --target, and nonopt at the
1107 # 2. Host defaults to nonopt.
1108 # 3. If nonopt is not specified, then host defaults to the current host,
1109 # as determined by config.guess.
1110 # 4. Target and build default to nonopt.
1111 # 5. If nonopt is not specified, then target and build default to host.
1113 # The aliases save the names the user supplied, while $host etc.
1114 # will get canonicalized.
1115 case $host---$target---$nonopt in
1116 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1117 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1121 # Make sure we can run config.sub.
1122 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1123 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1126 echo $ac_n "checking host system type""... $ac_c" 1>&6
1127 echo "configure:1128: checking host system type" >&5
1130 case "$host_alias" in
1134 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1135 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1137 *) host_alias
=$nonopt ;;
1141 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1142 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 echo "$ac_t""$host" 1>&6
1147 echo $ac_n "checking target system type""... $ac_c" 1>&6
1148 echo "configure:1149: checking target system type" >&5
1150 target_alias
=$target
1151 case "$target_alias" in
1154 NONE
) target_alias
=$host_alias ;;
1155 *) target_alias
=$nonopt ;;
1159 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1160 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1161 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1162 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1163 echo "$ac_t""$target" 1>&6
1165 echo $ac_n "checking build system type""... $ac_c" 1>&6
1166 echo "configure:1167: checking build system type" >&5
1169 case "$build_alias" in
1172 NONE
) build_alias
=$host_alias ;;
1173 *) build_alias
=$nonopt ;;
1177 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1178 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1179 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1180 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1181 echo "$ac_t""$build" 1>&6
1183 test "$host_alias" != "$target_alias" &&
1184 test "$program_prefix$program_suffix$program_transform_name" = \
1186 program_prefix
=${target_alias}-
1190 *irix6
*) cat >> confdefs.h
<<\EOF
1191 #include <standards.h>
1199 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1200 echo "configure:1201: checking config.cache system type" >&5
1201 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1202 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1203 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1204 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1205 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1206 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1207 echo "$ac_t""different" 1>&6
1208 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1210 echo "$ac_t""same" 1>&6
1212 ac_cv_host_system_type
="$host"
1213 ac_cv_build_system_type
="$build"
1214 ac_cv_target_system_type
="$target"
1218 # Config CPPFLAG settings for strange OS's that must be set
1219 # before other tests.
1222 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1224 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -Ae" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1231 ac_cv_prog_cc_Ae
=yes
1239 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1240 # mmap on HPUX is completely broken...
1241 cat >> confdefs.h
<<\EOF
1242 #define MMAP_BLACKLIST 1
1245 if test $ac_cv_prog_cc_Ae = yes; then
1246 CPPFLAGS
="$CPPFLAGS -Ae"
1249 # Defines needed for HPUX support.
1250 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1251 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1255 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1256 cat >> confdefs.h
<<\EOF
1257 #define USE_BOTH_CRYPT_CALLS 1
1262 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1263 cat >> confdefs.h
<<\EOF
1264 #define USE_BOTH_CRYPT_CALLS 1
1271 # AIX4.x doesn't even admit to having large
1272 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1275 echo "$ac_t""enabling large file support" 1>&6
1276 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1279 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1280 # to the existance of large files..
1281 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1282 # recommendations on large file support, however it makes the
1283 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1284 # recommendation makes the compile fail on gcc2.7. JRA.
1288 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1289 echo "$ac_t""no large file support" 1>&6
1292 echo "$ac_t""enabling large file support" 1>&6
1293 if test "$ac_cv_prog_gcc" = yes; then
1294 ${CC-cc} -v >conftest.c
2>&1
1295 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1297 case "$ac_cv_gcc_compiler_version_number" in
1298 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1299 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1302 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1306 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1312 # Tests needed for SINIX large file support.
1315 if test $host = mips-sni-sysv4
; then
1316 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1317 echo "configure:1318: checking for LFS support" >&5
1318 old_CPPFLAGS
="$CPPFLAGS"
1319 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1320 if test "$cross_compiling" = yes; then
1321 SINIX_LFS_SUPPORT
=cross
1323 cat > conftest.
$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1329 #if _LFS64_LARGEFILE == 1
1336 if { (eval echo configure
:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1338 SINIX_LFS_SUPPORT
=yes
1340 echo "configure: failed program was:" >&5
1341 cat conftest.
$ac_ext >&5
1343 SINIX_LFS_SUPPORT
=no
1348 CPPFLAGS
="$old_CPPFLAGS"
1349 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1350 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1351 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1352 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1353 LIBS
="`getconf LFS64_LIBS` $LIBS"
1355 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1359 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1362 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1363 echo "configure:1364: checking for LFS support" >&5
1364 old_CPPFLAGS
="$CPPFLAGS"
1365 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1366 if test "$cross_compiling" = yes; then
1367 LINUX_LFS_SUPPORT
=cross
1369 cat > conftest.
$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1374 #include <sys/utsname.h>
1376 #if _LFS64_LARGEFILE == 1
1381 /* Ensure this is glibc 2.2 or higher */
1382 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1383 int libc_major = __GLIBC__;
1384 int libc_minor = __GLIBC_MINOR__;
1392 /* Ensure this is kernel 2.4 or higher */
1395 release = uts.release;
1396 major = atoi(strsep(&release, "."));
1397 minor = atoi(strsep(&release, "."));
1399 if (major > 2 || (major == 2 && minor > 3))
1408 if { (eval echo configure
:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1410 LINUX_LFS_SUPPORT
=yes
1412 echo "configure: failed program was:" >&5
1413 cat conftest.
$ac_ext >&5
1415 LINUX_LFS_SUPPORT
=no
1420 CPPFLAGS
="$old_CPPFLAGS"
1421 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1422 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1424 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1428 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1429 echo "configure:1430: checking for LFS support" >&5
1430 old_CPPFLAGS
="$CPPFLAGS"
1431 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1432 if test "$cross_compiling" = yes; then
1433 GLIBC_LFS_SUPPORT
=cross
1435 cat > conftest.
$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1441 #if _LFS64_LARGEFILE == 1
1448 if { (eval echo configure
:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1450 GLIBC_LFS_SUPPORT
=yes
1452 echo "configure: failed program was:" >&5
1453 cat conftest.
$ac_ext >&5
1455 GLIBC_LFS_SUPPORT
=no
1460 CPPFLAGS
="$old_CPPFLAGS"
1461 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1462 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1464 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1469 echo $ac_n "checking for inline""... $ac_c" 1>&6
1470 echo "configure:1471: checking for inline" >&5
1471 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1475 for ac_kw
in inline __inline__ __inline
; do
1476 cat > conftest.
$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1484 if { (eval echo configure
:1485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1486 ac_cv_c_inline
=$ac_kw; break
1488 echo "configure: failed program was:" >&5
1489 cat conftest.
$ac_ext >&5
1496 echo "$ac_t""$ac_cv_c_inline" 1>&6
1497 case "$ac_cv_c_inline" in
1499 no
) cat >> confdefs.h
<<\EOF
1503 *) cat >> confdefs.h
<<EOF
1504 #define inline $ac_cv_c_inline
1509 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1510 echo "configure:1511: checking how to run the C preprocessor" >&5
1511 # On Suns, sometimes $CPP names a directory.
1512 if test -n "$CPP" && test -d "$CPP"; then
1515 if test -z "$CPP"; then
1516 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 # This must be in double quotes, not single quotes, because CPP may get
1520 # substituted into the Makefile and "${CC-cc}" will confuse make.
1522 # On the NeXT, cc -E runs the code through the compiler's parser,
1523 # not just through cpp.
1524 cat > conftest.
$ac_ext <<EOF
1525 #line 1526 "configure"
1526 #include "confdefs.h"
1530 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1531 { (eval echo configure
:1532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1532 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1533 if test -z "$ac_err"; then
1537 echo "configure: failed program was:" >&5
1538 cat conftest.
$ac_ext >&5
1540 CPP
="${CC-cc} -E -traditional-cpp"
1541 cat > conftest.
$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1547 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1548 { (eval echo configure
:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1549 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1550 if test -z "$ac_err"; then
1554 echo "configure: failed program was:" >&5
1555 cat conftest.
$ac_ext >&5
1557 CPP
="${CC-cc} -nologo -E"
1558 cat > conftest.
$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1564 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1565 { (eval echo configure
:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1566 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1567 if test -z "$ac_err"; then
1571 echo "configure: failed program was:" >&5
1572 cat conftest.
$ac_ext >&5
1581 ac_cv_prog_CPP
="$CPP"
1583 CPP
="$ac_cv_prog_CPP"
1585 ac_cv_prog_CPP
="$CPP"
1587 echo "$ac_t""$CPP" 1>&6
1589 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1590 echo "configure:1591: checking for ANSI C header files" >&5
1591 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1602 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1603 { (eval echo configure
:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1604 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1605 if test -z "$ac_err"; then
1607 ac_cv_header_stdc
=yes
1610 echo "configure: failed program was:" >&5
1611 cat conftest.
$ac_ext >&5
1613 ac_cv_header_stdc
=no
1617 if test $ac_cv_header_stdc = yes; then
1618 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev
/null
2>&1; then
1629 ac_cv_header_stdc
=no
1635 if test $ac_cv_header_stdc = yes; then
1636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1637 cat > conftest.
$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1643 egrep "free" >/dev
/null
2>&1; then
1647 ac_cv_header_stdc
=no
1653 if test $ac_cv_header_stdc = yes; then
1654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1655 if test "$cross_compiling" = yes; then
1658 cat > conftest.
$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1662 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1663 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1665 int main () { int i; for (i = 0; i < 256; i++)
1666 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1670 if { (eval echo configure
:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1674 echo "configure: failed program was:" >&5
1675 cat conftest.
$ac_ext >&5
1677 ac_cv_header_stdc
=no
1685 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1686 if test $ac_cv_header_stdc = yes; then
1687 cat >> confdefs.h
<<\EOF
1688 #define STDC_HEADERS 1
1694 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1696 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1697 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1698 echo "configure:1699: checking for $ac_hdr that defines DIR" >&5
1699 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 #include <sys/types.h>
1711 if { (eval echo configure
:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1713 eval "ac_cv_header_dirent_$ac_safe=yes"
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1718 eval "ac_cv_header_dirent_$ac_safe=no"
1722 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1723 echo "$ac_t""yes" 1>&6
1724 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1725 cat >> confdefs.h
<<EOF
1726 #define $ac_tr_hdr 1
1728 ac_header_dirent
=$ac_hdr; break
1730 echo "$ac_t""no" 1>&6
1733 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1734 if test $ac_header_dirent = dirent.h
; then
1735 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1736 echo "configure:1737: checking for opendir in -ldir" >&5
1737 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 ac_save_LIBS
="$LIBS"
1743 cat > conftest.
$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 /* Override any gcc2 internal prototype to avoid an error. */
1747 /* We use char because int might match the return type of a gcc2
1748 builtin and then its argument prototype would still apply. */
1755 if { (eval echo configure
:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1757 eval "ac_cv_lib_$ac_lib_var=yes"
1759 echo "configure: failed program was:" >&5
1760 cat conftest.
$ac_ext >&5
1762 eval "ac_cv_lib_$ac_lib_var=no"
1765 LIBS
="$ac_save_LIBS"
1768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1769 echo "$ac_t""yes" 1>&6
1772 echo "$ac_t""no" 1>&6
1776 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1777 echo "configure:1778: checking for opendir in -lx" >&5
1778 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 ac_save_LIBS
="$LIBS"
1784 cat > conftest.
$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 /* Override any gcc2 internal prototype to avoid an error. */
1788 /* We use char because int might match the return type of a gcc2
1789 builtin and then its argument prototype would still apply. */
1796 if { (eval echo configure
:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1798 eval "ac_cv_lib_$ac_lib_var=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.
$ac_ext >&5
1803 eval "ac_cv_lib_$ac_lib_var=no"
1806 LIBS
="$ac_save_LIBS"
1809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1813 echo "$ac_t""no" 1>&6
1818 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether time.h and sys/time.h may both be included" >&5
1820 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 cat > conftest.
$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 #include <sys/types.h>
1827 #include <sys/time.h>
1833 if { (eval echo configure
:1834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1835 ac_cv_header_time
=yes
1837 echo "configure: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1840 ac_cv_header_time
=no
1845 echo "$ac_t""$ac_cv_header_time" 1>&6
1846 if test $ac_cv_header_time = yes; then
1847 cat >> confdefs.h
<<\EOF
1848 #define TIME_WITH_SYS_TIME 1
1853 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1854 echo "configure:1855: checking for sys/wait.h that is POSIX.1 compatible" >&5
1855 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 #include <sys/types.h>
1862 #include <sys/wait.h>
1864 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1867 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1872 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1875 if { (eval echo configure
:1876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1877 ac_cv_header_sys_wait_h
=yes
1879 echo "configure: failed program was:" >&5
1880 cat conftest.
$ac_ext >&5
1882 ac_cv_header_sys_wait_h
=no
1887 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1888 if test $ac_cv_header_sys_wait_h = yes; then
1889 cat >> confdefs.h
<<\EOF
1890 #define HAVE_SYS_WAIT_H 1
1895 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1897 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1899 echo "configure:1900: checking for $ac_hdr" >&5
1900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 cat > conftest.
$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1909 { (eval echo configure
:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1911 if test -z "$ac_err"; then
1913 eval "ac_cv_header_$ac_safe=yes"
1916 echo "configure: failed program was:" >&5
1917 cat conftest.
$ac_ext >&5
1919 eval "ac_cv_header_$ac_safe=no"
1923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1925 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1926 cat >> confdefs.h
<<EOF
1927 #define $ac_tr_hdr 1
1931 echo "$ac_t""no" 1>&6
1935 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
1937 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_hdr" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.
$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1949 { (eval echo configure
:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1950 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1951 if test -z "$ac_err"; then
1953 eval "ac_cv_header_$ac_safe=yes"
1956 echo "configure: failed program was:" >&5
1957 cat conftest.
$ac_ext >&5
1959 eval "ac_cv_header_$ac_safe=no"
1963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1964 echo "$ac_t""yes" 1>&6
1965 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1966 cat >> confdefs.h
<<EOF
1967 #define $ac_tr_hdr 1
1971 echo "$ac_t""no" 1>&6
1975 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
1977 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1979 echo "configure:1980: checking for $ac_hdr" >&5
1980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 cat > conftest.
$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1988 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1989 { (eval echo configure
:1990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1990 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1991 if test -z "$ac_err"; then
1993 eval "ac_cv_header_$ac_safe=yes"
1996 echo "configure: failed program was:" >&5
1997 cat conftest.
$ac_ext >&5
1999 eval "ac_cv_header_$ac_safe=no"
2003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2004 echo "$ac_t""yes" 1>&6
2005 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2006 cat >> confdefs.h
<<EOF
2007 #define $ac_tr_hdr 1
2011 echo "$ac_t""no" 1>&6
2015 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2017 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_hdr" >&5
2020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2028 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2029 { (eval echo configure
:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2030 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2031 if test -z "$ac_err"; then
2033 eval "ac_cv_header_$ac_safe=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 eval "ac_cv_header_$ac_safe=no"
2043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2046 cat >> confdefs.h
<<EOF
2047 #define $ac_tr_hdr 1
2051 echo "$ac_t""no" 1>&6
2055 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
2057 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_hdr" >&5
2060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2068 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2069 { (eval echo configure
:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2070 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2071 if test -z "$ac_err"; then
2073 eval "ac_cv_header_$ac_safe=yes"
2076 echo "configure: failed program was:" >&5
2077 cat conftest.
$ac_ext >&5
2079 eval "ac_cv_header_$ac_safe=no"
2083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2084 echo "$ac_t""yes" 1>&6
2085 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2086 cat >> confdefs.h
<<EOF
2087 #define $ac_tr_hdr 1
2091 echo "$ac_t""no" 1>&6
2095 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2097 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2099 echo "configure:2100: checking for $ac_hdr" >&5
2100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 cat > conftest.
$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2108 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2109 { (eval echo configure
:2110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2110 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2111 if test -z "$ac_err"; then
2113 eval "ac_cv_header_$ac_safe=yes"
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 eval "ac_cv_header_$ac_safe=no"
2123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2126 cat >> confdefs.h
<<EOF
2127 #define $ac_tr_hdr 1
2131 echo "$ac_t""no" 1>&6
2135 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2137 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_hdr" >&5
2140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 cat > conftest.
$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2148 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2149 { (eval echo configure
:2150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2150 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2151 if test -z "$ac_err"; then
2153 eval "ac_cv_header_$ac_safe=yes"
2156 echo "configure: failed program was:" >&5
2157 cat conftest.
$ac_ext >&5
2159 eval "ac_cv_header_$ac_safe=no"
2163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2166 cat >> confdefs.h
<<EOF
2167 #define $ac_tr_hdr 1
2171 echo "$ac_t""no" 1>&6
2175 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h ldap.h
2177 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2179 echo "configure:2180: checking for $ac_hdr" >&5
2180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2188 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2189 { (eval echo configure
:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2190 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2191 if test -z "$ac_err"; then
2193 eval "ac_cv_header_$ac_safe=yes"
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 eval "ac_cv_header_$ac_safe=no"
2203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2205 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2206 cat >> confdefs.h
<<EOF
2207 #define $ac_tr_hdr 1
2211 echo "$ac_t""no" 1>&6
2217 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2218 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2230 if { (eval echo configure
:2231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2232 ac_cv_header_shadow_h
=yes
2234 echo "configure: failed program was:" >&5
2235 cat conftest.
$ac_ext >&5
2237 ac_cv_header_shadow_h
=no
2240 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2241 cat >> confdefs.h
<<\EOF
2242 #define HAVE_SHADOW_H 1
2248 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2250 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_hdr" >&5
2253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.
$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2261 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262 { (eval echo configure
:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2264 if test -z "$ac_err"; then
2266 eval "ac_cv_header_$ac_safe=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.
$ac_ext >&5
2272 eval "ac_cv_header_$ac_safe=no"
2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2278 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2279 cat >> confdefs.h
<<EOF
2280 #define $ac_tr_hdr 1
2284 echo "$ac_t""no" 1>&6
2288 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2290 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2292 echo "configure:2293: checking for $ac_hdr" >&5
2293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 cat > conftest.
$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2301 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2302 { (eval echo configure
:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2303 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2304 if test -z "$ac_err"; then
2306 eval "ac_cv_header_$ac_safe=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2312 eval "ac_cv_header_$ac_safe=no"
2316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2317 echo "$ac_t""yes" 1>&6
2318 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2319 cat >> confdefs.h
<<EOF
2320 #define $ac_tr_hdr 1
2324 echo "$ac_t""no" 1>&6
2328 for ac_hdr
in stropts.h poll.h
2330 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_hdr" >&5
2333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2341 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2342 { (eval echo configure
:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2343 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2344 if test -z "$ac_err"; then
2346 eval "ac_cv_header_$ac_safe=yes"
2349 echo "configure: failed program was:" >&5
2350 cat conftest.
$ac_ext >&5
2352 eval "ac_cv_header_$ac_safe=no"
2356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2357 echo "$ac_t""yes" 1>&6
2358 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2359 cat >> confdefs.h
<<EOF
2360 #define $ac_tr_hdr 1
2364 echo "$ac_t""no" 1>&6
2368 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2370 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2372 echo "configure:2373: checking for $ac_hdr" >&5
2373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2382 { (eval echo configure
:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2383 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2384 if test -z "$ac_err"; then
2386 eval "ac_cv_header_$ac_safe=yes"
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2392 eval "ac_cv_header_$ac_safe=no"
2396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2399 cat >> confdefs.h
<<EOF
2400 #define $ac_tr_hdr 1
2404 echo "$ac_t""no" 1>&6
2408 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2410 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_hdr" >&5
2413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2421 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2422 { (eval echo configure
:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2423 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2424 if test -z "$ac_err"; then
2426 eval "ac_cv_header_$ac_safe=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.
$ac_ext >&5
2432 eval "ac_cv_header_$ac_safe=no"
2436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2437 echo "$ac_t""yes" 1>&6
2438 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2439 cat >> confdefs.h
<<EOF
2440 #define $ac_tr_hdr 1
2444 echo "$ac_t""no" 1>&6
2449 # For experimental utmp support (lastlog on some BSD-like systems)
2450 for ac_hdr
in utmp.h utmpx.h lastlog.h
2452 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_hdr" >&5
2455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 cat > conftest.
$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2463 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2464 { (eval echo configure
:2465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2465 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2466 if test -z "$ac_err"; then
2468 eval "ac_cv_header_$ac_safe=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.
$ac_ext >&5
2474 eval "ac_cv_header_$ac_safe=no"
2478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2480 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2481 cat >> confdefs.h
<<EOF
2482 #define $ac_tr_hdr 1
2486 echo "$ac_t""no" 1>&6
2491 # For quotas on Veritas VxFS filesystems
2492 for ac_hdr
in sys
/fs
/vx_quota.h
2494 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_hdr" >&5
2497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 cat > conftest.
$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure
:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2510 eval "ac_cv_header_$ac_safe=yes"
2513 echo "configure: failed program was:" >&5
2514 cat conftest.
$ac_ext >&5
2516 eval "ac_cv_header_$ac_safe=no"
2520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2523 cat >> confdefs.h
<<EOF
2524 #define $ac_tr_hdr 1
2528 echo "$ac_t""no" 1>&6
2533 # For quotas on Linux XFS filesystems
2534 for ac_hdr
in linux
/xqm.h
2536 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_hdr" >&5
2539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 cat > conftest.
$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2547 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2548 { (eval echo configure
:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2549 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2550 if test -z "$ac_err"; then
2552 eval "ac_cv_header_$ac_safe=yes"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.
$ac_ext >&5
2558 eval "ac_cv_header_$ac_safe=no"
2562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2565 cat >> confdefs.h
<<EOF
2566 #define $ac_tr_hdr 1
2570 echo "$ac_t""no" 1>&6
2575 echo $ac_n "checking size of int""... $ac_c" 1>&6
2576 echo "configure:2577: checking size of int" >&5
2577 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 if test "$cross_compiling" = yes; then
2581 ac_cv_sizeof_int
=cross
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2587 #include <sys/types.h>
2590 FILE *f=fopen("conftestval", "w");
2592 fprintf(f, "%d\n", sizeof(int));
2596 if { (eval echo configure
:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2598 ac_cv_sizeof_int
=`cat conftestval`
2600 echo "configure: failed program was:" >&5
2601 cat conftest.
$ac_ext >&5
2609 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2610 cat >> confdefs.h
<<EOF
2611 #define SIZEOF_INT $ac_cv_sizeof_int
2615 echo $ac_n "checking size of long""... $ac_c" 1>&6
2616 echo "configure:2617: checking size of long" >&5
2617 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 if test "$cross_compiling" = yes; then
2621 ac_cv_sizeof_long
=cross
2623 cat > conftest.
$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2627 #include <sys/types.h>
2630 FILE *f=fopen("conftestval", "w");
2632 fprintf(f, "%d\n", sizeof(long));
2636 if { (eval echo configure
:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2638 ac_cv_sizeof_long
=`cat conftestval`
2640 echo "configure: failed program was:" >&5
2641 cat conftest.
$ac_ext >&5
2649 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2650 cat >> confdefs.h
<<EOF
2651 #define SIZEOF_LONG $ac_cv_sizeof_long
2655 echo $ac_n "checking size of short""... $ac_c" 1>&6
2656 echo "configure:2657: checking size of short" >&5
2657 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 if test "$cross_compiling" = yes; then
2661 ac_cv_sizeof_short
=cross
2663 cat > conftest.
$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2667 #include <sys/types.h>
2670 FILE *f=fopen("conftestval", "w");
2672 fprintf(f, "%d\n", sizeof(short));
2676 if { (eval echo configure
:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2678 ac_cv_sizeof_short
=`cat conftestval`
2680 echo "configure: failed program was:" >&5
2681 cat conftest.
$ac_ext >&5
2683 ac_cv_sizeof_short
=0
2689 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2690 cat >> confdefs.h
<<EOF
2691 #define SIZEOF_SHORT $ac_cv_sizeof_short
2696 echo $ac_n "checking for working const""... $ac_c" 1>&6
2697 echo "configure:2698: checking for working const" >&5
2698 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.
$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2707 /* Ultrix mips cc rejects this. */
2708 typedef int charset[2]; const charset x;
2709 /* SunOS 4.1.1 cc rejects this. */
2710 char const *const *ccp;
2712 /* NEC SVR4.0.2 mips cc rejects this. */
2713 struct point {int x, y;};
2714 static struct point const zero = {0,0};
2715 /* AIX XL C 1.02.0.0 rejects this.
2716 It does not let you subtract one const X* pointer from another in an arm
2717 of an if-expression whose if-part is not a constant expression */
2718 const char *g = "string";
2719 ccp = &g + (g ? g-g : 0);
2720 /* HPUX 7.0 cc rejects these. */
2723 ccp = (char const *const *) p;
2724 { /* SCO 3.2v4 cc rejects this. */
2726 char const *s = 0 ? (char *) 0 : (char const *) 0;
2730 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2732 const int *foo = &x[0];
2735 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2736 typedef const int *iptr;
2740 { /* AIX XL C 1.02.0.0 rejects this saying
2741 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2742 struct s { int j; const int *ap[3]; };
2743 struct s *b; b->j = 5;
2745 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2751 if { (eval echo configure
:2752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2755 echo "configure: failed program was:" >&5
2756 cat conftest.
$ac_ext >&5
2763 echo "$ac_t""$ac_cv_c_const" 1>&6
2764 if test $ac_cv_c_const = no
; then
2765 cat >> confdefs.h
<<\EOF
2771 echo $ac_n "checking for inline""... $ac_c" 1>&6
2772 echo "configure:2773: checking for inline" >&5
2773 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2777 for ac_kw
in inline __inline__ __inline
; do
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2786 if { (eval echo configure
:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2788 ac_cv_c_inline
=$ac_kw; break
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2798 echo "$ac_t""$ac_cv_c_inline" 1>&6
2799 case "$ac_cv_c_inline" in
2801 no
) cat >> confdefs.h
<<\EOF
2805 *) cat >> confdefs.h
<<EOF
2806 #define inline $ac_cv_c_inline
2811 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2812 echo "configure:2813: checking whether byte ordering is bigendian" >&5
2813 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 ac_cv_c_bigendian
=unknown
2817 # See if sys/param.h defines the BYTE_ORDER macro.
2818 cat > conftest.
$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 #include <sys/types.h>
2822 #include <sys/param.h>
2825 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2830 if { (eval echo configure
:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 # It does; now see whether it defined to BIG_ENDIAN or not.
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <sys/types.h>
2837 #include <sys/param.h>
2840 #if BYTE_ORDER != BIG_ENDIAN
2845 if { (eval echo configure
:2846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2847 ac_cv_c_bigendian
=yes
2849 echo "configure: failed program was:" >&5
2850 cat conftest.
$ac_ext >&5
2852 ac_cv_c_bigendian
=no
2856 echo "configure: failed program was:" >&5
2857 cat conftest.
$ac_ext >&5
2860 if test $ac_cv_c_bigendian = unknown
; then
2861 if test "$cross_compiling" = yes; then
2862 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2864 cat > conftest.
$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2868 /* Are we little or big endian? From Harbison&Steele. */
2872 char c[sizeof (long)];
2875 exit (u.c[sizeof (long) - 1] == 1);
2878 if { (eval echo configure
:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2880 ac_cv_c_bigendian
=no
2882 echo "configure: failed program was:" >&5
2883 cat conftest.
$ac_ext >&5
2885 ac_cv_c_bigendian
=yes
2893 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2894 if test $ac_cv_c_bigendian = yes; then
2895 cat >> confdefs.h
<<\EOF
2896 #define WORDS_BIGENDIAN 1
2901 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2902 echo "configure:2903: checking whether char is unsigned" >&5
2903 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 if test "$GCC" = yes; then
2907 # GCC predefines this symbol on systems where it applies.
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #ifdef __CHAR_UNSIGNED__
2916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917 egrep "yes" >/dev
/null
2>&1; then
2919 ac_cv_c_char_unsigned
=yes
2922 ac_cv_c_char_unsigned
=no
2927 if test "$cross_compiling" = yes; then
2928 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2934 #if !defined(__STDC__) || __STDC__ != 1
2938 volatile char c = 255; exit(c < 0);
2941 if { (eval echo configure
:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2943 ac_cv_c_char_unsigned
=yes
2945 echo "configure: failed program was:" >&5
2946 cat conftest.
$ac_ext >&5
2948 ac_cv_c_char_unsigned
=no
2956 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2957 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2958 cat >> confdefs.h
<<\EOF
2959 #define __CHAR_UNSIGNED__ 1
2965 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2966 echo "configure:2967: checking return type of signal handlers" >&5
2967 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 cat > conftest.
$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2973 #include <sys/types.h>
2979 extern "C" void (*signal (int, void (*)(int)))(int);
2981 void (*signal ()) ();
2988 if { (eval echo configure
:2989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 ac_cv_type_signal
=void
2992 echo "configure: failed program was:" >&5
2993 cat conftest.
$ac_ext >&5
2995 ac_cv_type_signal
=int
3000 echo "$ac_t""$ac_cv_type_signal" 1>&6
3001 cat >> confdefs.h
<<EOF
3002 #define RETSIGTYPE $ac_cv_type_signal
3006 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3007 echo "configure:3008: checking for uid_t in sys/types.h" >&5
3008 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 cat > conftest.
$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 #include <sys/types.h>
3016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3017 egrep "uid_t" >/dev
/null
2>&1; then
3019 ac_cv_type_uid_t
=yes
3028 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3029 if test $ac_cv_type_uid_t = no
; then
3030 cat >> confdefs.h
<<\EOF
3034 cat >> confdefs.h
<<\EOF
3040 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3041 echo "configure:3042: checking for mode_t" >&5
3042 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.
$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048 #include <sys/types.h>
3054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3055 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3057 ac_cv_type_mode_t
=yes
3060 ac_cv_type_mode_t
=no
3065 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3066 if test $ac_cv_type_mode_t = no
; then
3067 cat >> confdefs.h
<<\EOF
3073 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3074 echo "configure:3075: checking for off_t" >&5
3075 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 cat > conftest.
$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 #include <sys/types.h>
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3090 ac_cv_type_off_t
=yes
3098 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3099 if test $ac_cv_type_off_t = no
; then
3100 cat >> confdefs.h
<<\EOF
3106 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3107 echo "configure:3108: checking for size_t" >&5
3108 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.
$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3121 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3123 ac_cv_type_size_t
=yes
3126 ac_cv_type_size_t
=no
3131 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3132 if test $ac_cv_type_size_t = no
; then
3133 cat >> confdefs.h
<<\EOF
3134 #define size_t unsigned
3139 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3140 echo "configure:3141: checking for pid_t" >&5
3141 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.
$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <sys/types.h>
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3156 ac_cv_type_pid_t
=yes
3164 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3165 if test $ac_cv_type_pid_t = no
; then
3166 cat >> confdefs.h
<<\EOF
3172 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3173 echo "configure:3174: checking for st_rdev in struct stat" >&5
3174 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.
$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 #include <sys/types.h>
3181 #include <sys/stat.h>
3183 struct stat s; s.st_rdev;
3186 if { (eval echo configure
:3187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3188 ac_cv_struct_st_rdev
=yes
3190 echo "configure: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3193 ac_cv_struct_st_rdev
=no
3198 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3199 if test $ac_cv_struct_st_rdev = yes; then
3200 cat >> confdefs.h
<<\EOF
3201 #define HAVE_ST_RDEV 1
3206 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3207 echo "configure:3208: checking for d_off in dirent" >&5
3208 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 cat > conftest.
$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3216 #include <sys/types.h>
3219 struct dirent d; d.d_off;
3222 if { (eval echo configure
:3223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3224 ac_cv_dirent_d_off
=yes
3226 echo "configure: failed program was:" >&5
3227 cat conftest.
$ac_ext >&5
3229 ac_cv_dirent_d_off
=no
3234 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3235 if test $ac_cv_dirent_d_off = yes; then
3236 cat >> confdefs.h
<<\EOF
3237 #define HAVE_DIRENT_D_OFF 1
3242 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3243 echo "configure:3244: checking for ino_t" >&5
3244 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 cat > conftest.
$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <sys/types.h>
3256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3257 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3259 ac_cv_type_ino_t
=yes
3267 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3268 if test $ac_cv_type_ino_t = no
; then
3269 cat >> confdefs.h
<<\EOF
3270 #define ino_t unsigned
3275 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3276 echo "configure:3277: checking for loff_t" >&5
3277 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 cat > conftest.
$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <sys/types.h>
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3292 ac_cv_type_loff_t
=yes
3295 ac_cv_type_loff_t
=no
3300 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3301 if test $ac_cv_type_loff_t = no
; then
3302 cat >> confdefs.h
<<\EOF
3303 #define loff_t off_t
3308 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3309 echo "configure:3310: checking for offset_t" >&5
3310 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3325 ac_cv_type_offset_t
=yes
3328 ac_cv_type_offset_t
=no
3333 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3334 if test $ac_cv_type_offset_t = no
; then
3335 cat >> confdefs.h
<<\EOF
3336 #define offset_t loff_t
3341 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3342 echo "configure:3343: checking for ssize_t" >&5
3343 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 cat > conftest.
$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3356 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3358 ac_cv_type_ssize_t
=yes
3361 ac_cv_type_ssize_t
=no
3366 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3367 if test $ac_cv_type_ssize_t = no
; then
3368 cat >> confdefs.h
<<\EOF
3374 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3375 echo "configure:3376: checking for wchar_t" >&5
3376 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.
$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3391 ac_cv_type_wchar_t
=yes
3394 ac_cv_type_wchar_t
=no
3399 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3400 if test $ac_cv_type_wchar_t = no
; then
3401 cat >> confdefs.h
<<\EOF
3402 #define wchar_t unsigned short
3408 ############################################
3409 # for cups support we need libcups, and a handful of header files
3411 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3412 echo "configure:3413: checking for httpConnect in -lcups" >&5
3413 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 ac_save_LIBS
="$LIBS"
3419 cat > conftest.
$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3431 if { (eval echo configure
:3432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3433 eval "ac_cv_lib_$ac_lib_var=yes"
3435 echo "configure: failed program was:" >&5
3436 cat conftest.
$ac_ext >&5
3438 eval "ac_cv_lib_$ac_lib_var=no"
3441 LIBS
="$ac_save_LIBS"
3444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3445 echo "$ac_t""yes" 1>&6
3446 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3448 cat >> confdefs.h
<<EOF
3449 #define $ac_tr_lib 1
3455 echo "$ac_t""no" 1>&6
3459 # I wonder if there is a nicer way of doing this?
3461 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3462 for ac_hdr
in cups
/cups.h cups
/language.h
3464 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_hdr" >&5
3467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3475 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3476 { (eval echo configure
:3477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3477 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3478 if test -z "$ac_err"; then
3480 eval "ac_cv_header_$ac_safe=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.
$ac_ext >&5
3486 eval "ac_cv_header_$ac_safe=no"
3490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3492 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3493 cat >> confdefs.h
<<EOF
3494 #define $ac_tr_hdr 1
3498 echo "$ac_t""no" 1>&6
3502 if test x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3503 if test x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3504 cat >> confdefs.h
<<\EOF
3512 ############################################
3513 # we need libdl for PAM and the new VFS code
3514 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3515 echo "configure:3516: checking for dlopen in -ldl" >&5
3516 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 ac_save_LIBS
="$LIBS"
3522 cat > conftest.
$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3534 if { (eval echo configure
:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3536 eval "ac_cv_lib_$ac_lib_var=yes"
3538 echo "configure: failed program was:" >&5
3539 cat conftest.
$ac_ext >&5
3541 eval "ac_cv_lib_$ac_lib_var=no"
3544 LIBS
="$ac_save_LIBS"
3547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3550 cat >> confdefs.h
<<\EOF
3551 #define HAVE_LIBDL 1
3555 echo "$ac_t""no" 1>&6
3559 ############################################
3560 # check if the compiler can do immediate structures
3561 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3562 echo "configure:3563: checking for immediate structures" >&5
3563 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3567 cat > conftest.
$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3574 #define X_FOOBAR(x) ((FOOBAR) { x })
3575 typedef struct {unsigned x;} FOOBAR;
3576 FOOBAR f = X_FOOBAR(1);
3580 if { (eval echo configure
:3581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3582 samba_cv_immediate_structures
=yes
3584 echo "configure: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3587 samba_cv_immediate_structures
=no
3592 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3593 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3594 cat >> confdefs.h
<<\EOF
3595 #define HAVE_IMMEDIATE_STRUCTURES 1
3600 ############################################
3601 # check for unix domain sockets
3602 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3603 echo "configure:3604: checking for unix domain sockets" >&5
3604 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3608 cat > conftest.
$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3612 #include <sys/types.h>
3615 #include <sys/socket.h>
3619 struct sockaddr_un sunaddr;
3620 sunaddr.sun_family = AF_UNIX;
3624 if { (eval echo configure
:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626 samba_cv_unixsocket
=yes
3628 echo "configure: failed program was:" >&5
3629 cat conftest.
$ac_ext >&5
3631 samba_cv_unixsocket
=no
3636 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3637 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3638 cat >> confdefs.h
<<\EOF
3639 #define HAVE_UNIXSOCKET 1
3645 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3646 echo "configure:3647: checking for socklen_t type" >&5
3647 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3651 cat > conftest.
$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3655 #include <sys/types.h>
3660 #include <sys/socket.h>
3665 if { (eval echo configure
:3666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3667 samba_cv_socklen_t
=yes
3669 echo "configure: failed program was:" >&5
3670 cat conftest.
$ac_ext >&5
3672 samba_cv_socklen_t
=no
3677 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3678 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3679 cat >> confdefs.h
<<\EOF
3680 #define HAVE_SOCKLEN_T_TYPE 1
3685 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3686 echo "configure:3687: checking for sig_atomic_t type" >&5
3687 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.
$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3695 #include <sys/types.h>
3705 if { (eval echo configure
:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707 samba_cv_sig_atomic_t
=yes
3709 echo "configure: failed program was:" >&5
3710 cat conftest.
$ac_ext >&5
3712 samba_cv_sig_atomic_t
=no
3717 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3718 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3719 cat >> confdefs.h
<<\EOF
3720 #define HAVE_SIG_ATOMIC_T_TYPE 1
3725 # stupid headers have the functions but no declaration. grrrr.
3727 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3728 echo "configure:3729: checking for errno declaration" >&5
3729 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.
$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3741 if { (eval echo configure
:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3743 ac_cv_have_errno_decl
=yes
3745 echo "configure: failed program was:" >&5
3746 cat conftest.
$ac_ext >&5
3748 ac_cv_have_errno_decl
=no
3753 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3754 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3755 cat >> confdefs.h
<<\EOF
3756 #define HAVE_ERRNO_DECL 1
3762 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3763 echo "configure:3764: checking for setresuid declaration" >&5
3764 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3768 cat > conftest.
$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3773 int i = (int)setresuid
3776 if { (eval echo configure
:3777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3778 ac_cv_have_setresuid_decl
=yes
3780 echo "configure: failed program was:" >&5
3781 cat conftest.
$ac_ext >&5
3783 ac_cv_have_setresuid_decl
=no
3788 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3789 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3790 cat >> confdefs.h
<<\EOF
3791 #define HAVE_SETRESUID_DECL 1
3797 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3798 echo "configure:3799: checking for setresgid declaration" >&5
3799 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.
$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3808 int i = (int)setresgid
3811 if { (eval echo configure
:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3813 ac_cv_have_setresgid_decl
=yes
3815 echo "configure: failed program was:" >&5
3816 cat conftest.
$ac_ext >&5
3818 ac_cv_have_setresgid_decl
=no
3823 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3824 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3825 cat >> confdefs.h
<<\EOF
3826 #define HAVE_SETRESGID_DECL 1
3832 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3833 echo "configure:3834: checking for asprintf declaration" >&5
3834 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3838 cat > conftest.
$ac_ext <<EOF
3839 #line 3840 "configure"
3840 #include "confdefs.h"
3843 int i = (int)asprintf
3846 if { (eval echo configure
:3847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3848 ac_cv_have_asprintf_decl
=yes
3850 echo "configure: failed program was:" >&5
3851 cat conftest.
$ac_ext >&5
3853 ac_cv_have_asprintf_decl
=no
3858 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3859 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3860 cat >> confdefs.h
<<\EOF
3861 #define HAVE_ASPRINTF_DECL 1
3867 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3868 echo "configure:3869: checking for vasprintf declaration" >&5
3869 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.
$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3878 int i = (int)vasprintf
3881 if { (eval echo configure
:3882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 ac_cv_have_vasprintf_decl
=yes
3885 echo "configure: failed program was:" >&5
3886 cat conftest.
$ac_ext >&5
3888 ac_cv_have_vasprintf_decl
=no
3893 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3894 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3895 cat >> confdefs.h
<<\EOF
3896 #define HAVE_VASPRINTF_DECL 1
3902 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3903 echo "configure:3904: checking for vsnprintf declaration" >&5
3904 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3908 cat > conftest.
$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3913 int i = (int)vsnprintf
3916 if { (eval echo configure
:3917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3918 ac_cv_have_vsnprintf_decl
=yes
3920 echo "configure: failed program was:" >&5
3921 cat conftest.
$ac_ext >&5
3923 ac_cv_have_vsnprintf_decl
=no
3928 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3929 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
3930 cat >> confdefs.h
<<\EOF
3931 #define HAVE_VSNPRINTF_DECL 1
3937 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3938 echo "configure:3939: checking for snprintf declaration" >&5
3939 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3943 cat > conftest.
$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3948 int i = (int)snprintf
3951 if { (eval echo configure
:3952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3953 ac_cv_have_snprintf_decl
=yes
3955 echo "configure: failed program was:" >&5
3956 cat conftest.
$ac_ext >&5
3958 ac_cv_have_snprintf_decl
=no
3963 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3964 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
3965 cat >> confdefs.h
<<\EOF
3966 #define HAVE_SNPRINTF_DECL 1
3972 # and glibc has setresuid under linux but the function does
3973 # nothing until kernel 2.1.44! very dumb.
3974 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3975 echo "configure:3976: checking for real setresuid" >&5
3976 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3980 if test "$cross_compiling" = yes; then
3981 samba_cv_have_setresuid
=cross
3983 cat > conftest.
$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3987 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3989 if { (eval echo configure
:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3991 samba_cv_have_setresuid
=yes
3993 echo "configure: failed program was:" >&5
3994 cat conftest.
$ac_ext >&5
3996 samba_cv_have_setresuid
=no
4003 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4004 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4005 cat >> confdefs.h
<<\EOF
4006 #define HAVE_SETRESUID 1
4011 # Do the same check for setresguid...
4013 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4014 echo "configure:4015: checking for real setresgid" >&5
4015 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4019 if test "$cross_compiling" = yes; then
4020 samba_cv_have_setresgid
=cross
4022 cat > conftest.
$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4027 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4029 if { (eval echo configure
:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4031 samba_cv_have_setresgid
=yes
4033 echo "configure: failed program was:" >&5
4034 cat conftest.
$ac_ext >&5
4036 samba_cv_have_setresgid
=no
4043 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4044 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4045 cat >> confdefs.h
<<\EOF
4046 #define HAVE_SETRESGID 1
4051 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4052 echo "configure:4053: checking for 8-bit clean memcmp" >&5
4053 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 if test "$cross_compiling" = yes; then
4057 ac_cv_func_memcmp_clean
=no
4059 cat > conftest.
$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4065 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4066 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4070 if { (eval echo configure
:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4072 ac_cv_func_memcmp_clean
=yes
4074 echo "configure: failed program was:" >&5
4075 cat conftest.
$ac_ext >&5
4077 ac_cv_func_memcmp_clean
=no
4084 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4085 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4088 ###############################################
4089 # test for where we get crypt() from
4090 for ac_func
in crypt
4092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4093 echo "configure:4094: checking for $ac_func" >&5
4094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 cat > conftest.
$ac_ext <<EOF
4098 #line 4099 "configure"
4099 #include "confdefs.h"
4100 /* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char $ac_func(); below. */
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4110 /* The GNU C library defines this for functions which it implements
4111 to always fail with ENOSYS. Some functions are actually named
4112 something starting with __ and the normal name is an alias. */
4113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4121 if { (eval echo configure
:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4123 eval "ac_cv_func_$ac_func=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 eval "ac_cv_func_$ac_func=no"
4133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4136 cat >> confdefs.h
<<EOF
4137 #define $ac_tr_func 1
4141 echo "$ac_t""no" 1>&6
4145 if test x
"$ac_cv_func_crypt" = x
"no"; then
4146 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4147 echo "configure:4148: checking for crypt in -lcrypt" >&5
4148 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 ac_save_LIBS
="$LIBS"
4153 LIBS
="-lcrypt $LIBS"
4154 cat > conftest.
$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157 /* Override any gcc2 internal prototype to avoid an error. */
4158 /* We use char because int might match the return type of a gcc2
4159 builtin and then its argument prototype would still apply. */
4166 if { (eval echo configure
:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4168 eval "ac_cv_lib_$ac_lib_var=yes"
4170 echo "configure: failed program was:" >&5
4171 cat conftest.
$ac_ext >&5
4173 eval "ac_cv_lib_$ac_lib_var=no"
4176 LIBS
="$ac_save_LIBS"
4179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4180 echo "$ac_t""yes" 1>&6
4181 LIBS
="$LIBS -lcrypt";
4182 cat >> confdefs.h
<<\EOF
4183 #define HAVE_CRYPT 1
4187 echo "$ac_t""no" 1>&6
4193 ###############################################
4194 # Readline included by default unless explicitly asked not to
4195 test "${with_readline+set}" != "set" && with_readline
=yes
4197 # test for where we get readline() from
4198 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4199 echo "configure:4200: checking whether to use readline" >&5
4200 # Check whether --with-readline or --without-readline was given.
4201 if test "${with_readline+set}" = set; then
4202 withval
="$with_readline"
4203 case "$with_readline" in
4205 echo "$ac_t""yes" 1>&6
4207 for ac_hdr
in readline.h
history.h readline
/readline.h
4209 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4211 echo "configure:4212: checking for $ac_hdr" >&5
4212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4215 cat > conftest.
$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4221 { (eval echo configure
:4222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4222 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4223 if test -z "$ac_err"; then
4225 eval "ac_cv_header_$ac_safe=yes"
4228 echo "configure: failed program was:" >&5
4229 cat conftest.
$ac_ext >&5
4231 eval "ac_cv_header_$ac_safe=no"
4235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4236 echo "$ac_t""yes" 1>&6
4237 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4238 cat >> confdefs.h
<<EOF
4239 #define $ac_tr_hdr 1
4243 echo "$ac_t""no" 1>&6
4247 for ac_hdr
in readline
/history.h
4249 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4251 echo "configure:4252: checking for $ac_hdr" >&5
4252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 cat > conftest.
$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4260 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4261 { (eval echo configure
:4262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4262 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4263 if test -z "$ac_err"; then
4265 eval "ac_cv_header_$ac_safe=yes"
4268 echo "configure: failed program was:" >&5
4269 cat conftest.
$ac_ext >&5
4271 eval "ac_cv_header_$ac_safe=no"
4275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4277 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4278 cat >> confdefs.h
<<EOF
4279 #define $ac_tr_hdr 1
4283 echo "$ac_t""no" 1>&6
4288 for ac_hdr
in readline.h readline
/readline.h
4290 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4292 echo "configure:4293: checking for $ac_hdr" >&5
4293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4296 cat > conftest.
$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4301 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4302 { (eval echo configure
:4303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4303 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4304 if test -z "$ac_err"; then
4306 eval "ac_cv_header_$ac_safe=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.
$ac_ext >&5
4312 eval "ac_cv_header_$ac_safe=no"
4316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4319 cat >> confdefs.h
<<EOF
4320 #define $ac_tr_hdr 1
4323 for termlib
in ncurses curses termcap terminfo termlib
; do
4324 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4325 echo "configure:4326: checking for tgetent in -l${termlib}" >&5
4326 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 ac_save_LIBS
="$LIBS"
4331 LIBS
="-l${termlib} $LIBS"
4332 cat > conftest.
$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4344 if { (eval echo configure
:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4346 eval "ac_cv_lib_$ac_lib_var=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4351 eval "ac_cv_lib_$ac_lib_var=no"
4354 LIBS
="$ac_save_LIBS"
4357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 TERMLIBS
="-l${termlib}"; break
4361 echo "$ac_t""no" 1>&6
4365 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4366 echo "configure:4367: checking for rl_callback_handler_install in -lreadline" >&5
4367 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 ac_save_LIBS
="$LIBS"
4372 LIBS
="-lreadline $TERMLIBS $LIBS"
4373 cat > conftest.
$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4379 char rl_callback_handler_install();
4382 rl_callback_handler_install()
4385 if { (eval echo configure
:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4387 eval "ac_cv_lib_$ac_lib_var=yes"
4389 echo "configure: failed program was:" >&5
4390 cat conftest.
$ac_ext >&5
4392 eval "ac_cv_lib_$ac_lib_var=no"
4395 LIBS
="$ac_save_LIBS"
4398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 TERMLIBS
="-lreadline $TERMLIBS"
4401 cat >> confdefs.h
<<\EOF
4402 #define HAVE_LIBREADLINE 1
4407 echo "$ac_t""no" 1>&6
4412 echo "$ac_t""no" 1>&6
4418 echo "$ac_t""no" 1>&6
4421 echo "$ac_t""yes" 1>&6
4423 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4424 # alternate readline path
4426 _cppflags
=${CPPFLAGS}
4428 # Add additional search path
4429 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4430 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4432 for ac_hdr
in readline.h
history.h readline
/readline.h
4434 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4436 echo "configure:4437: checking for $ac_hdr" >&5
4437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 cat > conftest.
$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4445 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4446 { (eval echo configure
:4447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4447 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4448 if test -z "$ac_err"; then
4450 eval "ac_cv_header_$ac_safe=yes"
4453 echo "configure: failed program was:" >&5
4454 cat conftest.
$ac_ext >&5
4456 eval "ac_cv_header_$ac_safe=no"
4460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4461 echo "$ac_t""yes" 1>&6
4462 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4463 cat >> confdefs.h
<<EOF
4464 #define $ac_tr_hdr 1
4468 echo "$ac_t""no" 1>&6
4472 for ac_hdr
in readline
/history.h
4474 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4476 echo "configure:4477: checking for $ac_hdr" >&5
4477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 cat > conftest.
$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4485 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4486 { (eval echo configure
:4487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4487 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4488 if test -z "$ac_err"; then
4490 eval "ac_cv_header_$ac_safe=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4496 eval "ac_cv_header_$ac_safe=no"
4500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4501 echo "$ac_t""yes" 1>&6
4502 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4503 cat >> confdefs.h
<<EOF
4504 #define $ac_tr_hdr 1
4508 echo "$ac_t""no" 1>&6
4513 for ac_hdr
in readline.h readline
/readline.h
4515 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4517 echo "configure:4518: checking for $ac_hdr" >&5
4518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4521 cat > conftest.
$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4526 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4527 { (eval echo configure
:4528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4528 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4529 if test -z "$ac_err"; then
4531 eval "ac_cv_header_$ac_safe=yes"
4534 echo "configure: failed program was:" >&5
4535 cat conftest.
$ac_ext >&5
4537 eval "ac_cv_header_$ac_safe=no"
4541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4542 echo "$ac_t""yes" 1>&6
4543 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4544 cat >> confdefs.h
<<EOF
4545 #define $ac_tr_hdr 1
4548 for termlib
in ncurses curses termcap terminfo termlib
; do
4549 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4550 echo "configure:4551: checking for tgetent in -l${termlib}" >&5
4551 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 ac_save_LIBS
="$LIBS"
4556 LIBS
="-l${termlib} $LIBS"
4557 cat > conftest.
$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4569 if { (eval echo configure
:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4571 eval "ac_cv_lib_$ac_lib_var=yes"
4573 echo "configure: failed program was:" >&5
4574 cat conftest.
$ac_ext >&5
4576 eval "ac_cv_lib_$ac_lib_var=no"
4579 LIBS
="$ac_save_LIBS"
4582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4583 echo "$ac_t""yes" 1>&6
4584 TERMLIBS
="-l${termlib}"; break
4586 echo "$ac_t""no" 1>&6
4590 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4591 echo "configure:4592: checking for rl_callback_handler_install in -lreadline" >&5
4592 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 ac_save_LIBS
="$LIBS"
4597 LIBS
="-lreadline $TERMLIBS $LIBS"
4598 cat > conftest.
$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4604 char rl_callback_handler_install();
4607 rl_callback_handler_install()
4610 if { (eval echo configure
:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4612 eval "ac_cv_lib_$ac_lib_var=yes"
4614 echo "configure: failed program was:" >&5
4615 cat conftest.
$ac_ext >&5
4617 eval "ac_cv_lib_$ac_lib_var=no"
4620 LIBS
="$ac_save_LIBS"
4623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4624 echo "$ac_t""yes" 1>&6
4625 TERMLDFLAGS
="-L$with_readline/lib"
4626 TERMCPPFLAGS
="-I$with_readline/include"
4627 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4628 TERMLIBS
="-lreadline $TERMLIBS"
4629 cat >> confdefs.h
<<\EOF
4630 #define HAVE_LIBREADLINE 1
4635 echo "$ac_t""no" 1>&6
4636 TERMLIBS
= CPPFLAGS
=$_cppflags
4640 echo "$ac_t""no" 1>&6
4649 echo "$ac_t""no" 1>&6
4656 # The readline API changed slightly from readline3 to readline4, so
4657 # code will generate warnings on one of them unless we have a few
4659 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4660 echo "configure:4661: checking for rl_completion_matches in -lreadline" >&5
4661 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 ac_save_LIBS
="$LIBS"
4666 LIBS
="-lreadline $TERMLIBS $LIBS"
4667 cat > conftest.
$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4670 /* Override any gcc2 internal prototype to avoid an error. */
4671 /* We use char because int might match the return type of a gcc2
4672 builtin and then its argument prototype would still apply. */
4673 char rl_completion_matches();
4676 rl_completion_matches()
4679 if { (eval echo configure
:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4681 eval "ac_cv_lib_$ac_lib_var=yes"
4683 echo "configure: failed program was:" >&5
4684 cat conftest.
$ac_ext >&5
4686 eval "ac_cv_lib_$ac_lib_var=no"
4689 LIBS
="$ac_save_LIBS"
4692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4693 echo "$ac_t""yes" 1>&6
4694 cat >> confdefs.h
<<\EOF
4695 #define HAVE_NEW_LIBREADLINE 1
4699 echo "$ac_t""no" 1>&6
4703 # The following test taken from the cvs sources
4704 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4705 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4706 # libsocket.so which has a bad implementation of gethostbyname (it
4707 # only looks in /etc/hosts), so we only look for -lsocket if we need
4709 for ac_func
in connect
4711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4712 echo "configure:4713: checking for $ac_func" >&5
4713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 cat > conftest.
$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4719 /* System header to define __stub macros and hopefully few prototypes,
4720 which can conflict with char $ac_func(); below. */
4722 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4729 /* The GNU C library defines this for functions which it implements
4730 to always fail with ENOSYS. Some functions are actually named
4731 something starting with __ and the normal name is an alias. */
4732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4740 if { (eval echo configure
:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4742 eval "ac_cv_func_$ac_func=yes"
4744 echo "configure: failed program was:" >&5
4745 cat conftest.
$ac_ext >&5
4747 eval "ac_cv_func_$ac_func=no"
4752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4753 echo "$ac_t""yes" 1>&6
4754 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4755 cat >> confdefs.h
<<EOF
4756 #define $ac_tr_func 1
4760 echo "$ac_t""no" 1>&6
4764 if test x
"$ac_cv_func_connect" = x
"no"; then
4767 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4768 echo "configure:4769: checking for printf in -lnsl_s" >&5
4769 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 ac_save_LIBS
="$LIBS"
4774 LIBS
="-lnsl_s $LIBS"
4775 cat > conftest.
$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 /* Override any gcc2 internal prototype to avoid an error. */
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4787 if { (eval echo configure
:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4789 eval "ac_cv_lib_$ac_lib_var=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.
$ac_ext >&5
4794 eval "ac_cv_lib_$ac_lib_var=no"
4797 LIBS
="$ac_save_LIBS"
4800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4803 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4804 cat >> confdefs.h
<<EOF
4805 #define $ac_tr_lib 1
4808 LIBS
="-lnsl_s $LIBS"
4811 echo "$ac_t""no" 1>&6
4817 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4818 echo "configure:4819: checking for printf in -lnsl" >&5
4819 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 ac_save_LIBS
="$LIBS"
4825 cat > conftest.
$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4828 /* Override any gcc2 internal prototype to avoid an error. */
4829 /* We use char because int might match the return type of a gcc2
4830 builtin and then its argument prototype would still apply. */
4837 if { (eval echo configure
:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4839 eval "ac_cv_lib_$ac_lib_var=yes"
4841 echo "configure: failed program was:" >&5
4842 cat conftest.
$ac_ext >&5
4844 eval "ac_cv_lib_$ac_lib_var=no"
4847 LIBS
="$ac_save_LIBS"
4850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4853 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4854 cat >> confdefs.h
<<EOF
4855 #define $ac_tr_lib 1
4861 echo "$ac_t""no" 1>&6
4867 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4868 echo "configure:4869: checking for connect in -lsocket" >&5
4869 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 ac_save_LIBS
="$LIBS"
4874 LIBS
="-lsocket $LIBS"
4875 cat > conftest.
$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4878 /* Override any gcc2 internal prototype to avoid an error. */
4879 /* We use char because int might match the return type of a gcc2
4880 builtin and then its argument prototype would still apply. */
4887 if { (eval echo configure
:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4889 eval "ac_cv_lib_$ac_lib_var=yes"
4891 echo "configure: failed program was:" >&5
4892 cat conftest.
$ac_ext >&5
4894 eval "ac_cv_lib_$ac_lib_var=no"
4897 LIBS
="$ac_save_LIBS"
4900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4901 echo "$ac_t""yes" 1>&6
4902 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4903 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4904 cat >> confdefs.h
<<EOF
4905 #define $ac_tr_lib 1
4908 LIBS
="-lsocket $LIBS"
4911 echo "$ac_t""no" 1>&6
4917 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4918 echo "configure:4919: checking for connect in -linet" >&5
4919 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 ac_save_LIBS
="$LIBS"
4925 cat > conftest.
$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */
4937 if { (eval echo configure
:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4939 eval "ac_cv_lib_$ac_lib_var=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.
$ac_ext >&5
4944 eval "ac_cv_lib_$ac_lib_var=no"
4947 LIBS
="$ac_save_LIBS"
4950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4951 echo "$ac_t""yes" 1>&6
4952 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4953 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4954 cat >> confdefs.h
<<EOF
4955 #define $ac_tr_lib 1
4961 echo "$ac_t""no" 1>&6
4965 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4966 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4967 # ac_cv_func_connect=yes
4968 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4969 cat >> confdefs.h
<<\EOF
4970 #define HAVE_CONNECT 1
4976 ###############################################
4977 # test for where we get get_yp_default_domain() from
4978 for ac_func
in yp_get_default_domain
4980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4981 echo "configure:4982: checking for $ac_func" >&5
4982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4983 echo $ac_n "(cached) $ac_c" 1>&6
4985 cat > conftest.
$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4988 /* System header to define __stub macros and hopefully few prototypes,
4989 which can conflict with char $ac_func(); below. */
4991 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
4998 /* The GNU C library defines this for functions which it implements
4999 to always fail with ENOSYS. Some functions are actually named
5000 something starting with __ and the normal name is an alias. */
5001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5009 if { (eval echo configure
:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5011 eval "ac_cv_func_$ac_func=yes"
5013 echo "configure: failed program was:" >&5
5014 cat conftest.
$ac_ext >&5
5016 eval "ac_cv_func_$ac_func=no"
5021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5022 echo "$ac_t""yes" 1>&6
5023 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5024 cat >> confdefs.h
<<EOF
5025 #define $ac_tr_func 1
5029 echo "$ac_t""no" 1>&6
5033 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5034 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5035 echo "configure:5036: checking for yp_get_default_domain in -lnsl" >&5
5036 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 ac_save_LIBS
="$LIBS"
5042 cat > conftest.
$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5048 char yp_get_default_domain();
5051 yp_get_default_domain()
5054 if { (eval echo configure
:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5056 eval "ac_cv_lib_$ac_lib_var=yes"
5058 echo "configure: failed program was:" >&5
5059 cat conftest.
$ac_ext >&5
5061 eval "ac_cv_lib_$ac_lib_var=no"
5064 LIBS
="$ac_save_LIBS"
5067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5068 echo "$ac_t""yes" 1>&6
5070 cat >> confdefs.h
<<\EOF
5071 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5075 echo "$ac_t""no" 1>&6
5080 # Check if we have execl, if not we need to compile smbrun.
5081 for ac_func
in execl
5083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5084 echo "configure:5085: checking for $ac_func" >&5
5085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 cat > conftest.
$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 /* System header to define __stub macros and hopefully few prototypes,
5092 which can conflict with char $ac_func(); below. */
5094 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5101 /* The GNU C library defines this for functions which it implements
5102 to always fail with ENOSYS. Some functions are actually named
5103 something starting with __ and the normal name is an alias. */
5104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5112 if { (eval echo configure
:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5114 eval "ac_cv_func_$ac_func=yes"
5116 echo "configure: failed program was:" >&5
5117 cat conftest.
$ac_ext >&5
5119 eval "ac_cv_func_$ac_func=no"
5124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5127 cat >> confdefs.h
<<EOF
5128 #define $ac_tr_func 1
5132 echo "$ac_t""no" 1>&6
5136 if test x
"$ac_cv_func_execl" = x
"no"; then
5137 RUNPROG
="bin/smbrun"
5142 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
5144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5145 echo "configure:5146: checking for $ac_func" >&5
5146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5149 cat > conftest.
$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 /* System header to define __stub macros and hopefully few prototypes,
5153 which can conflict with char $ac_func(); below. */
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5162 /* The GNU C library defines this for functions which it implements
5163 to always fail with ENOSYS. Some functions are actually named
5164 something starting with __ and the normal name is an alias. */
5165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5173 if { (eval echo configure
:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5175 eval "ac_cv_func_$ac_func=yes"
5177 echo "configure: failed program was:" >&5
5178 cat conftest.
$ac_ext >&5
5180 eval "ac_cv_func_$ac_func=no"
5185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5188 cat >> confdefs.h
<<EOF
5189 #define $ac_tr_func 1
5193 echo "$ac_t""no" 1>&6
5197 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat
5199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5200 echo "configure:5201: checking for $ac_func" >&5
5201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 cat > conftest.
$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char $ac_func(); below. */
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5217 /* The GNU C library defines this for functions which it implements
5218 to always fail with ENOSYS. Some functions are actually named
5219 something starting with __ and the normal name is an alias. */
5220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5228 if { (eval echo configure
:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5230 eval "ac_cv_func_$ac_func=yes"
5232 echo "configure: failed program was:" >&5
5233 cat conftest.
$ac_ext >&5
5235 eval "ac_cv_func_$ac_func=no"
5240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5241 echo "$ac_t""yes" 1>&6
5242 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5243 cat >> confdefs.h
<<EOF
5244 #define $ac_tr_func 1
5248 echo "$ac_t""no" 1>&6
5252 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5255 echo "configure:5256: checking for $ac_func" >&5
5256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 cat > conftest.
$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5262 /* System header to define __stub macros and hopefully few prototypes,
5263 which can conflict with char $ac_func(); below. */
5265 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5272 /* The GNU C library defines this for functions which it implements
5273 to always fail with ENOSYS. Some functions are actually named
5274 something starting with __ and the normal name is an alias. */
5275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5283 if { (eval echo configure
:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5285 eval "ac_cv_func_$ac_func=yes"
5287 echo "configure: failed program was:" >&5
5288 cat conftest.
$ac_ext >&5
5290 eval "ac_cv_func_$ac_func=no"
5295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5298 cat >> confdefs.h
<<EOF
5299 #define $ac_tr_func 1
5303 echo "$ac_t""no" 1>&6
5307 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5310 echo "configure:5311: checking for $ac_func" >&5
5311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5314 cat > conftest.
$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5317 /* System header to define __stub macros and hopefully few prototypes,
5318 which can conflict with char $ac_func(); below. */
5320 /* Override any gcc2 internal prototype to avoid an error. */
5321 /* We use char because int might match the return type of a gcc2
5322 builtin and then its argument prototype would still apply. */
5327 /* The GNU C library defines this for functions which it implements
5328 to always fail with ENOSYS. Some functions are actually named
5329 something starting with __ and the normal name is an alias. */
5330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5338 if { (eval echo configure
:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5340 eval "ac_cv_func_$ac_func=yes"
5342 echo "configure: failed program was:" >&5
5343 cat conftest.
$ac_ext >&5
5345 eval "ac_cv_func_$ac_func=no"
5350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5352 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5353 cat >> confdefs.h
<<EOF
5354 #define $ac_tr_func 1
5358 echo "$ac_t""no" 1>&6
5362 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5365 echo "configure:5366: checking for $ac_func" >&5
5366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.
$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372 /* System header to define __stub macros and hopefully few prototypes,
5373 which can conflict with char $ac_func(); below. */
5375 /* Override any gcc2 internal prototype to avoid an error. */
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5382 /* The GNU C library defines this for functions which it implements
5383 to always fail with ENOSYS. Some functions are actually named
5384 something starting with __ and the normal name is an alias. */
5385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5393 if { (eval echo configure
:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5395 eval "ac_cv_func_$ac_func=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.
$ac_ext >&5
5400 eval "ac_cv_func_$ac_func=no"
5405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5406 echo "$ac_t""yes" 1>&6
5407 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5408 cat >> confdefs.h
<<EOF
5409 #define $ac_tr_func 1
5413 echo "$ac_t""no" 1>&6
5417 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5420 echo "configure:5421: checking for $ac_func" >&5
5421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 cat > conftest.
$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 /* System header to define __stub macros and hopefully few prototypes,
5428 which can conflict with char $ac_func(); below. */
5430 /* Override any gcc2 internal prototype to avoid an error. */
5431 /* We use char because int might match the return type of a gcc2
5432 builtin and then its argument prototype would still apply. */
5437 /* The GNU C library defines this for functions which it implements
5438 to always fail with ENOSYS. Some functions are actually named
5439 something starting with __ and the normal name is an alias. */
5440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5448 if { (eval echo configure
:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5450 eval "ac_cv_func_$ac_func=yes"
5452 echo "configure: failed program was:" >&5
5453 cat conftest.
$ac_ext >&5
5455 eval "ac_cv_func_$ac_func=no"
5460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5461 echo "$ac_t""yes" 1>&6
5462 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5463 cat >> confdefs.h
<<EOF
5464 #define $ac_tr_func 1
5468 echo "$ac_t""no" 1>&6
5472 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5475 echo "configure:5476: checking for $ac_func" >&5
5476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5479 cat > conftest.
$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5482 /* System header to define __stub macros and hopefully few prototypes,
5483 which can conflict with char $ac_func(); below. */
5485 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5492 /* The GNU C library defines this for functions which it implements
5493 to always fail with ENOSYS. Some functions are actually named
5494 something starting with __ and the normal name is an alias. */
5495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5503 if { (eval echo configure
:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5505 eval "ac_cv_func_$ac_func=yes"
5507 echo "configure: failed program was:" >&5
5508 cat conftest.
$ac_ext >&5
5510 eval "ac_cv_func_$ac_func=no"
5515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5516 echo "$ac_t""yes" 1>&6
5517 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5518 cat >> confdefs.h
<<EOF
5519 #define $ac_tr_func 1
5523 echo "$ac_t""no" 1>&6
5527 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5530 echo "configure:5531: checking for $ac_func" >&5
5531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5534 cat > conftest.
$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5537 /* System header to define __stub macros and hopefully few prototypes,
5538 which can conflict with char $ac_func(); below. */
5540 /* Override any gcc2 internal prototype to avoid an error. */
5541 /* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5547 /* The GNU C library defines this for functions which it implements
5548 to always fail with ENOSYS. Some functions are actually named
5549 something starting with __ and the normal name is an alias. */
5550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5558 if { (eval echo configure
:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5560 eval "ac_cv_func_$ac_func=yes"
5562 echo "configure: failed program was:" >&5
5563 cat conftest.
$ac_ext >&5
5565 eval "ac_cv_func_$ac_func=no"
5570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5571 echo "$ac_t""yes" 1>&6
5572 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5573 cat >> confdefs.h
<<EOF
5574 #define $ac_tr_func 1
5578 echo "$ac_t""no" 1>&6
5582 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5585 echo "configure:5586: checking for $ac_func" >&5
5586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 cat > conftest.
$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 /* System header to define __stub macros and hopefully few prototypes,
5593 which can conflict with char $ac_func(); below. */
5595 /* Override any gcc2 internal prototype to avoid an error. */
5596 /* We use char because int might match the return type of a gcc2
5597 builtin and then its argument prototype would still apply. */
5602 /* The GNU C library defines this for functions which it implements
5603 to always fail with ENOSYS. Some functions are actually named
5604 something starting with __ and the normal name is an alias. */
5605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5613 if { (eval echo configure
:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5615 eval "ac_cv_func_$ac_func=yes"
5617 echo "configure: failed program was:" >&5
5618 cat conftest.
$ac_ext >&5
5620 eval "ac_cv_func_$ac_func=no"
5625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5626 echo "$ac_t""yes" 1>&6
5627 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5628 cat >> confdefs.h
<<EOF
5629 #define $ac_tr_func 1
5633 echo "$ac_t""no" 1>&6
5637 for ac_func
in syslog vsyslog
5639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5640 echo "configure:5641: checking for $ac_func" >&5
5641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 cat > conftest.
$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 /* System header to define __stub macros and hopefully few prototypes,
5648 which can conflict with char $ac_func(); below. */
5650 /* Override any gcc2 internal prototype to avoid an error. */
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5657 /* The GNU C library defines this for functions which it implements
5658 to always fail with ENOSYS. Some functions are actually named
5659 something starting with __ and the normal name is an alias. */
5660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5668 if { (eval echo configure
:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5670 eval "ac_cv_func_$ac_func=yes"
5672 echo "configure: failed program was:" >&5
5673 cat conftest.
$ac_ext >&5
5675 eval "ac_cv_func_$ac_func=no"
5680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5681 echo "$ac_t""yes" 1>&6
5682 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5683 cat >> confdefs.h
<<EOF
5684 #define $ac_tr_func 1
5688 echo "$ac_t""no" 1>&6
5692 # setbuffer is needed for smbtorture
5693 for ac_func
in setbuffer
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 cat > conftest.
$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char $ac_func(); below. */
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 if { (eval echo configure
:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5726 eval "ac_cv_func_$ac_func=yes"
5728 echo "configure: failed program was:" >&5
5729 cat conftest.
$ac_ext >&5
5731 eval "ac_cv_func_$ac_func=no"
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739 cat >> confdefs.h
<<EOF
5740 #define $ac_tr_func 1
5744 echo "$ac_t""no" 1>&6
5749 # syscall() is needed for smbwrapper.
5750 for ac_func
in syscall
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 cat > conftest.
$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5781 if { (eval echo configure
:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5783 eval "ac_cv_func_$ac_func=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.
$ac_ext >&5
5788 eval "ac_cv_func_$ac_func=no"
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h
<<EOF
5797 #define $ac_tr_func 1
5801 echo "$ac_t""no" 1>&6
5806 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5809 echo "configure:5810: checking for $ac_func" >&5
5810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5813 cat > conftest.
$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char $ac_func(); below. */
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5826 /* The GNU C library defines this for functions which it implements
5827 to always fail with ENOSYS. Some functions are actually named
5828 something starting with __ and the normal name is an alias. */
5829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5837 if { (eval echo configure
:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5839 eval "ac_cv_func_$ac_func=yes"
5841 echo "configure: failed program was:" >&5
5842 cat conftest.
$ac_ext >&5
5844 eval "ac_cv_func_$ac_func=no"
5849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5850 echo "$ac_t""yes" 1>&6
5851 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5852 cat >> confdefs.h
<<EOF
5853 #define $ac_tr_func 1
5857 echo "$ac_t""no" 1>&6
5861 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5864 echo "configure:5865: checking for $ac_func" >&5
5865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5868 cat > conftest.
$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5871 /* System header to define __stub macros and hopefully few prototypes,
5872 which can conflict with char $ac_func(); below. */
5874 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5881 /* The GNU C library defines this for functions which it implements
5882 to always fail with ENOSYS. Some functions are actually named
5883 something starting with __ and the normal name is an alias. */
5884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5892 if { (eval echo configure
:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5894 eval "ac_cv_func_$ac_func=yes"
5896 echo "configure: failed program was:" >&5
5897 cat conftest.
$ac_ext >&5
5899 eval "ac_cv_func_$ac_func=no"
5904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5905 echo "$ac_t""yes" 1>&6
5906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5907 cat >> confdefs.h
<<EOF
5908 #define $ac_tr_func 1
5912 echo "$ac_t""no" 1>&6
5916 for ac_func
in __getcwd _getcwd
5918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5919 echo "configure:5920: checking for $ac_func" >&5
5920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 cat > conftest.
$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926 /* System header to define __stub macros and hopefully few prototypes,
5927 which can conflict with char $ac_func(); below. */
5929 /* Override any gcc2 internal prototype to avoid an error. */
5930 /* We use char because int might match the return type of a gcc2
5931 builtin and then its argument prototype would still apply. */
5936 /* The GNU C library defines this for functions which it implements
5937 to always fail with ENOSYS. Some functions are actually named
5938 something starting with __ and the normal name is an alias. */
5939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5947 if { (eval echo configure
:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5949 eval "ac_cv_func_$ac_func=yes"
5951 echo "configure: failed program was:" >&5
5952 cat conftest.
$ac_ext >&5
5954 eval "ac_cv_func_$ac_func=no"
5959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5960 echo "$ac_t""yes" 1>&6
5961 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5962 cat >> confdefs.h
<<EOF
5963 #define $ac_tr_func 1
5967 echo "$ac_t""no" 1>&6
5971 for ac_func
in __xstat __fxstat __lxstat
5973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5974 echo "configure:5975: checking for $ac_func" >&5
5975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5978 cat > conftest.
$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5981 /* System header to define __stub macros and hopefully few prototypes,
5982 which can conflict with char $ac_func(); below. */
5984 /* Override any gcc2 internal prototype to avoid an error. */
5985 /* We use char because int might match the return type of a gcc2
5986 builtin and then its argument prototype would still apply. */
5991 /* The GNU C library defines this for functions which it implements
5992 to always fail with ENOSYS. Some functions are actually named
5993 something starting with __ and the normal name is an alias. */
5994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6002 if { (eval echo configure
:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6004 eval "ac_cv_func_$ac_func=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.
$ac_ext >&5
6009 eval "ac_cv_func_$ac_func=no"
6014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6017 cat >> confdefs.h
<<EOF
6018 #define $ac_tr_func 1
6022 echo "$ac_t""no" 1>&6
6026 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6029 echo "configure:6030: checking for $ac_func" >&5
6030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 cat > conftest.
$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036 /* System header to define __stub macros and hopefully few prototypes,
6037 which can conflict with char $ac_func(); below. */
6039 /* Override any gcc2 internal prototype to avoid an error. */
6040 /* We use char because int might match the return type of a gcc2
6041 builtin and then its argument prototype would still apply. */
6046 /* The GNU C library defines this for functions which it implements
6047 to always fail with ENOSYS. Some functions are actually named
6048 something starting with __ and the normal name is an alias. */
6049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6057 if { (eval echo configure
:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6059 eval "ac_cv_func_$ac_func=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.
$ac_ext >&5
6064 eval "ac_cv_func_$ac_func=no"
6069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6072 cat >> confdefs.h
<<EOF
6073 #define $ac_tr_func 1
6077 echo "$ac_t""no" 1>&6
6081 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6084 echo "configure:6085: checking for $ac_func" >&5
6085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6088 cat > conftest.
$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6091 /* System header to define __stub macros and hopefully few prototypes,
6092 which can conflict with char $ac_func(); below. */
6094 /* Override any gcc2 internal prototype to avoid an error. */
6095 /* We use char because int might match the return type of a gcc2
6096 builtin and then its argument prototype would still apply. */
6101 /* The GNU C library defines this for functions which it implements
6102 to always fail with ENOSYS. Some functions are actually named
6103 something starting with __ and the normal name is an alias. */
6104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6112 if { (eval echo configure
:6113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6114 eval "ac_cv_func_$ac_func=yes"
6116 echo "configure: failed program was:" >&5
6117 cat conftest.
$ac_ext >&5
6119 eval "ac_cv_func_$ac_func=no"
6124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6125 echo "$ac_t""yes" 1>&6
6126 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6127 cat >> confdefs.h
<<EOF
6128 #define $ac_tr_func 1
6132 echo "$ac_t""no" 1>&6
6136 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6139 echo "configure:6140: checking for $ac_func" >&5
6140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6143 cat > conftest.
$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 /* System header to define __stub macros and hopefully few prototypes,
6147 which can conflict with char $ac_func(); below. */
6149 /* Override any gcc2 internal prototype to avoid an error. */
6150 /* We use char because int might match the return type of a gcc2
6151 builtin and then its argument prototype would still apply. */
6156 /* The GNU C library defines this for functions which it implements
6157 to always fail with ENOSYS. Some functions are actually named
6158 something starting with __ and the normal name is an alias. */
6159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6167 if { (eval echo configure
:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6169 eval "ac_cv_func_$ac_func=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.
$ac_ext >&5
6174 eval "ac_cv_func_$ac_func=no"
6179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6180 echo "$ac_t""yes" 1>&6
6181 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6182 cat >> confdefs.h
<<EOF
6183 #define $ac_tr_func 1
6187 echo "$ac_t""no" 1>&6
6191 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6194 echo "configure:6195: checking for $ac_func" >&5
6195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6198 cat > conftest.
$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 /* System header to define __stub macros and hopefully few prototypes,
6202 which can conflict with char $ac_func(); below. */
6204 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6211 /* The GNU C library defines this for functions which it implements
6212 to always fail with ENOSYS. Some functions are actually named
6213 something starting with __ and the normal name is an alias. */
6214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6222 if { (eval echo configure
:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6224 eval "ac_cv_func_$ac_func=yes"
6226 echo "configure: failed program was:" >&5
6227 cat conftest.
$ac_ext >&5
6229 eval "ac_cv_func_$ac_func=no"
6234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6236 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6237 cat >> confdefs.h
<<EOF
6238 #define $ac_tr_func 1
6242 echo "$ac_t""no" 1>&6
6246 for ac_func
in _write __write _fork __fork
6248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6249 echo "configure:6250: checking for $ac_func" >&5
6250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6253 cat > conftest.
$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 /* System header to define __stub macros and hopefully few prototypes,
6257 which can conflict with char $ac_func(); below. */
6259 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6266 /* The GNU C library defines this for functions which it implements
6267 to always fail with ENOSYS. Some functions are actually named
6268 something starting with __ and the normal name is an alias. */
6269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6277 if { (eval echo configure
:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6279 eval "ac_cv_func_$ac_func=yes"
6281 echo "configure: failed program was:" >&5
6282 cat conftest.
$ac_ext >&5
6284 eval "ac_cv_func_$ac_func=no"
6289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6290 echo "$ac_t""yes" 1>&6
6291 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6292 cat >> confdefs.h
<<EOF
6293 #define $ac_tr_func 1
6297 echo "$ac_t""no" 1>&6
6301 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6304 echo "configure:6305: checking for $ac_func" >&5
6305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6306 echo $ac_n "(cached) $ac_c" 1>&6
6308 cat > conftest.
$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6311 /* System header to define __stub macros and hopefully few prototypes,
6312 which can conflict with char $ac_func(); below. */
6314 /* Override any gcc2 internal prototype to avoid an error. */
6315 /* We use char because int might match the return type of a gcc2
6316 builtin and then its argument prototype would still apply. */
6321 /* The GNU C library defines this for functions which it implements
6322 to always fail with ENOSYS. Some functions are actually named
6323 something starting with __ and the normal name is an alias. */
6324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6332 if { (eval echo configure
:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6334 eval "ac_cv_func_$ac_func=yes"
6336 echo "configure: failed program was:" >&5
6337 cat conftest.
$ac_ext >&5
6339 eval "ac_cv_func_$ac_func=no"
6344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6345 echo "$ac_t""yes" 1>&6
6346 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6347 cat >> confdefs.h
<<EOF
6348 #define $ac_tr_func 1
6352 echo "$ac_t""no" 1>&6
6356 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6359 echo "configure:6360: checking for $ac_func" >&5
6360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6361 echo $ac_n "(cached) $ac_c" 1>&6
6363 cat > conftest.
$ac_ext <<EOF
6364 #line 6365 "configure"
6365 #include "confdefs.h"
6366 /* System header to define __stub macros and hopefully few prototypes,
6367 which can conflict with char $ac_func(); below. */
6369 /* Override any gcc2 internal prototype to avoid an error. */
6370 /* We use char because int might match the return type of a gcc2
6371 builtin and then its argument prototype would still apply. */
6376 /* The GNU C library defines this for functions which it implements
6377 to always fail with ENOSYS. Some functions are actually named
6378 something starting with __ and the normal name is an alias. */
6379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6387 if { (eval echo configure
:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6389 eval "ac_cv_func_$ac_func=yes"
6391 echo "configure: failed program was:" >&5
6392 cat conftest.
$ac_ext >&5
6394 eval "ac_cv_func_$ac_func=no"
6399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6401 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6402 cat >> confdefs.h
<<EOF
6403 #define $ac_tr_func 1
6407 echo "$ac_t""no" 1>&6
6411 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6414 echo "configure:6415: checking for $ac_func" >&5
6415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6416 echo $ac_n "(cached) $ac_c" 1>&6
6418 cat > conftest.
$ac_ext <<EOF
6419 #line 6420 "configure"
6420 #include "confdefs.h"
6421 /* System header to define __stub macros and hopefully few prototypes,
6422 which can conflict with char $ac_func(); below. */
6424 /* Override any gcc2 internal prototype to avoid an error. */
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6431 /* The GNU C library defines this for functions which it implements
6432 to always fail with ENOSYS. Some functions are actually named
6433 something starting with __ and the normal name is an alias. */
6434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6442 if { (eval echo configure
:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6444 eval "ac_cv_func_$ac_func=yes"
6446 echo "configure: failed program was:" >&5
6447 cat conftest.
$ac_ext >&5
6449 eval "ac_cv_func_$ac_func=no"
6454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6455 echo "$ac_t""yes" 1>&6
6456 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6457 cat >> confdefs.h
<<EOF
6458 #define $ac_tr_func 1
6462 echo "$ac_t""no" 1>&6
6466 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6469 echo "configure:6470: checking for $ac_func" >&5
6470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 cat > conftest.
$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6476 /* System header to define __stub macros and hopefully few prototypes,
6477 which can conflict with char $ac_func(); below. */
6479 /* Override any gcc2 internal prototype to avoid an error. */
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6486 /* The GNU C library defines this for functions which it implements
6487 to always fail with ENOSYS. Some functions are actually named
6488 something starting with __ and the normal name is an alias. */
6489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6497 if { (eval echo configure
:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6499 eval "ac_cv_func_$ac_func=yes"
6501 echo "configure: failed program was:" >&5
6502 cat conftest.
$ac_ext >&5
6504 eval "ac_cv_func_$ac_func=no"
6509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6511 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6512 cat >> confdefs.h
<<EOF
6513 #define $ac_tr_func 1
6517 echo "$ac_t""no" 1>&6
6521 for ac_func
in open64 _open64 __open64 creat64
6523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6524 echo "configure:6525: checking for $ac_func" >&5
6525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6528 cat > conftest.
$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 /* System header to define __stub macros and hopefully few prototypes,
6532 which can conflict with char $ac_func(); below. */
6534 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6541 /* The GNU C library defines this for functions which it implements
6542 to always fail with ENOSYS. Some functions are actually named
6543 something starting with __ and the normal name is an alias. */
6544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6552 if { (eval echo configure
:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6554 eval "ac_cv_func_$ac_func=yes"
6556 echo "configure: failed program was:" >&5
6557 cat conftest.
$ac_ext >&5
6559 eval "ac_cv_func_$ac_func=no"
6564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6565 echo "$ac_t""yes" 1>&6
6566 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6567 cat >> confdefs.h
<<EOF
6568 #define $ac_tr_func 1
6572 echo "$ac_t""no" 1>&6
6578 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6581 if test x
$ac_cv_func_stat64 = xno
; then
6582 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6583 echo "configure:6584: checking for stat64 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(stat64(".",&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_stat64
=yes
6601 echo "configure: failed program was:" >&5
6602 cat conftest.
$ac_ext >&5
6605 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6606 if test x
$ac_cv_func_stat64 = xyes
; then
6607 cat >> confdefs.h
<<\EOF
6608 #define HAVE_STAT64 1
6614 if test x
$ac_cv_func_lstat64 = xno
; then
6615 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6616 echo "configure:6617: checking for lstat64 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(lstat64(".",&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_lstat64
=yes
6634 echo "configure: failed program was:" >&5
6635 cat conftest.
$ac_ext >&5
6638 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6639 if test x
$ac_cv_func_lstat64 = xyes
; then
6640 cat >> confdefs.h
<<\EOF
6641 #define HAVE_LSTAT64 1
6647 if test x
$ac_cv_func_fstat64 = xno
; then
6648 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6649 echo "configure:6650: checking for fstat64 in <sys/stat.h>" >&5
6650 cat > conftest.
$ac_ext <<EOF
6651 #line 6652 "configure"
6652 #include "confdefs.h"
6654 #if defined(HAVE_UNISTD_H)
6657 #include <sys/stat.h>
6660 struct stat64 st64; exit(fstat64(0,&st64));
6663 if { (eval echo configure
:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6665 ac_cv_func_fstat64
=yes
6667 echo "configure: failed program was:" >&5
6668 cat conftest.
$ac_ext >&5
6671 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6672 if test x
$ac_cv_func_fstat64 = xyes
; then
6673 cat >> confdefs.h
<<\EOF
6674 #define HAVE_FSTAT64 1
6680 #####################################
6681 # we might need the resolv library on some systems
6682 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6683 echo "configure:6684: checking for dn_expand in -lresolv" >&5
6684 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 ac_save_LIBS
="$LIBS"
6689 LIBS
="-lresolv $LIBS"
6690 cat > conftest.
$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6702 if { (eval echo configure
:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6704 eval "ac_cv_lib_$ac_lib_var=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.
$ac_ext >&5
6709 eval "ac_cv_lib_$ac_lib_var=no"
6712 LIBS
="$ac_save_LIBS"
6715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6717 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6718 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6719 cat >> confdefs.h
<<EOF
6720 #define $ac_tr_lib 1
6723 LIBS
="-lresolv $LIBS"
6726 echo "$ac_t""no" 1>&6
6731 # Check for the functions putprpwnam, set_auth_parameters,
6732 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6733 # Needed for OSF1 and HPUX.
6737 *-lsecurity*) for ac_func
in putprpwnam
6739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6740 echo "configure:6741: checking for $ac_func" >&5
6741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6744 cat > conftest.
$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char $ac_func(); below. */
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6757 /* The GNU C library defines this for functions which it implements
6758 to always fail with ENOSYS. Some functions are actually named
6759 something starting with __ and the normal name is an alias. */
6760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6768 if { (eval echo configure
:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6770 eval "ac_cv_func_$ac_func=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.
$ac_ext >&5
6775 eval "ac_cv_func_$ac_func=no"
6780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6782 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6783 cat >> confdefs.h
<<EOF
6784 #define $ac_tr_func 1
6788 echo "$ac_t""no" 1>&6
6792 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6793 echo "configure:6794: checking for putprpwnam in -lsecurity" >&5
6794 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 ac_save_LIBS
="$LIBS"
6799 LIBS
="-lsecurity $LIBS"
6800 cat > conftest.
$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6812 if { (eval echo configure
:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6814 eval "ac_cv_lib_$ac_lib_var=yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.
$ac_ext >&5
6819 eval "ac_cv_lib_$ac_lib_var=no"
6822 LIBS
="$ac_save_LIBS"
6825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6828 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6829 cat >> confdefs.h
<<EOF
6830 #define $ac_tr_lib 1
6833 LIBS
="-lsecurity $LIBS"
6836 echo "$ac_t""no" 1>&6
6839 for ac_func
in putprpwnam
6841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_func" >&5
6843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 cat > conftest.
$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* System header to define __stub macros and hopefully few prototypes,
6850 which can conflict with char $ac_func(); below. */
6852 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6859 /* The GNU C library defines this for functions which it implements
6860 to always fail with ENOSYS. Some functions are actually named
6861 something starting with __ and the normal name is an alias. */
6862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6870 if { (eval echo configure
:6871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6872 eval "ac_cv_func_$ac_func=yes"
6874 echo "configure: failed program was:" >&5
6875 cat conftest.
$ac_ext >&5
6877 eval "ac_cv_func_$ac_func=no"
6882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6884 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6885 cat >> confdefs.h
<<EOF
6886 #define $ac_tr_func 1
6890 echo "$ac_t""no" 1>&6
6898 *-lsec*) for ac_func
in putprpwnam
6900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6901 echo "configure:6902: checking for $ac_func" >&5
6902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6905 cat > conftest.
$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6908 /* System header to define __stub macros and hopefully few prototypes,
6909 which can conflict with char $ac_func(); below. */
6911 /* Override any gcc2 internal prototype to avoid an error. */
6912 /* We use char because int might match the return type of a gcc2
6913 builtin and then its argument prototype would still apply. */
6918 /* The GNU C library defines this for functions which it implements
6919 to always fail with ENOSYS. Some functions are actually named
6920 something starting with __ and the normal name is an alias. */
6921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6929 if { (eval echo configure
:6930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6931 eval "ac_cv_func_$ac_func=yes"
6933 echo "configure: failed program was:" >&5
6934 cat conftest.
$ac_ext >&5
6936 eval "ac_cv_func_$ac_func=no"
6941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6942 echo "$ac_t""yes" 1>&6
6943 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6944 cat >> confdefs.h
<<EOF
6945 #define $ac_tr_func 1
6949 echo "$ac_t""no" 1>&6
6953 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6954 echo "configure:6955: checking for putprpwnam in -lsec" >&5
6955 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 ac_save_LIBS
="$LIBS"
6961 cat > conftest.
$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6973 if { (eval echo configure
:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6975 eval "ac_cv_lib_$ac_lib_var=yes"
6977 echo "configure: failed program was:" >&5
6978 cat conftest.
$ac_ext >&5
6980 eval "ac_cv_lib_$ac_lib_var=no"
6983 LIBS
="$ac_save_LIBS"
6986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6990 cat >> confdefs.h
<<EOF
6991 #define $ac_tr_lib 1
6997 echo "$ac_t""no" 1>&6
7000 for ac_func
in putprpwnam
7002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7003 echo "configure:7004: checking for $ac_func" >&5
7004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7007 cat > conftest.
$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* System header to define __stub macros and hopefully few prototypes,
7011 which can conflict with char $ac_func(); below. */
7013 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7020 /* The GNU C library defines this for functions which it implements
7021 to always fail with ENOSYS. Some functions are actually named
7022 something starting with __ and the normal name is an alias. */
7023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7031 if { (eval echo configure
:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7033 eval "ac_cv_func_$ac_func=yes"
7035 echo "configure: failed program was:" >&5
7036 cat conftest.
$ac_ext >&5
7038 eval "ac_cv_func_$ac_func=no"
7043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7045 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7046 cat >> confdefs.h
<<EOF
7047 #define $ac_tr_func 1
7051 echo "$ac_t""no" 1>&6
7060 *-lsecurity*) for ac_func
in set_auth_parameters
7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7063 echo "configure:7064: checking for $ac_func" >&5
7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 cat > conftest.
$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func(); below. */
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7080 /* The GNU C library defines this for functions which it implements
7081 to always fail with ENOSYS. Some functions are actually named
7082 something starting with __ and the normal name is an alias. */
7083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 if { (eval echo configure
:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7093 eval "ac_cv_func_$ac_func=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.
$ac_ext >&5
7098 eval "ac_cv_func_$ac_func=no"
7103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7104 echo "$ac_t""yes" 1>&6
7105 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7106 cat >> confdefs.h
<<EOF
7107 #define $ac_tr_func 1
7111 echo "$ac_t""no" 1>&6
7115 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7116 echo "configure:7117: checking for set_auth_parameters in -lsecurity" >&5
7117 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7119 echo $ac_n "(cached) $ac_c" 1>&6
7121 ac_save_LIBS
="$LIBS"
7122 LIBS
="-lsecurity $LIBS"
7123 cat > conftest.
$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7126 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7129 char set_auth_parameters();
7132 set_auth_parameters()
7135 if { (eval echo configure
:7136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7137 eval "ac_cv_lib_$ac_lib_var=yes"
7139 echo "configure: failed program was:" >&5
7140 cat conftest.
$ac_ext >&5
7142 eval "ac_cv_lib_$ac_lib_var=no"
7145 LIBS
="$ac_save_LIBS"
7148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7149 echo "$ac_t""yes" 1>&6
7150 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7152 cat >> confdefs.h
<<EOF
7153 #define $ac_tr_lib 1
7156 LIBS
="-lsecurity $LIBS"
7159 echo "$ac_t""no" 1>&6
7162 for ac_func
in set_auth_parameters
7164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7165 echo "configure:7166: checking for $ac_func" >&5
7166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7167 echo $ac_n "(cached) $ac_c" 1>&6
7169 cat > conftest.
$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* System header to define __stub macros and hopefully few prototypes,
7173 which can conflict with char $ac_func(); below. */
7175 /* Override any gcc2 internal prototype to avoid an error. */
7176 /* We use char because int might match the return type of a gcc2
7177 builtin and then its argument prototype would still apply. */
7182 /* The GNU C library defines this for functions which it implements
7183 to always fail with ENOSYS. Some functions are actually named
7184 something starting with __ and the normal name is an alias. */
7185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7193 if { (eval echo configure
:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7195 eval "ac_cv_func_$ac_func=yes"
7197 echo "configure: failed program was:" >&5
7198 cat conftest.
$ac_ext >&5
7200 eval "ac_cv_func_$ac_func=no"
7205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7206 echo "$ac_t""yes" 1>&6
7207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7208 cat >> confdefs.h
<<EOF
7209 #define $ac_tr_func 1
7213 echo "$ac_t""no" 1>&6
7221 *-lsec*) for ac_func
in set_auth_parameters
7223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7224 echo "configure:7225: checking for $ac_func" >&5
7225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 cat > conftest.
$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 /* System header to define __stub macros and hopefully few prototypes,
7232 which can conflict with char $ac_func(); below. */
7234 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7241 /* The GNU C library defines this for functions which it implements
7242 to always fail with ENOSYS. Some functions are actually named
7243 something starting with __ and the normal name is an alias. */
7244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7252 if { (eval echo configure
:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7254 eval "ac_cv_func_$ac_func=yes"
7256 echo "configure: failed program was:" >&5
7257 cat conftest.
$ac_ext >&5
7259 eval "ac_cv_func_$ac_func=no"
7264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7265 echo "$ac_t""yes" 1>&6
7266 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7267 cat >> confdefs.h
<<EOF
7268 #define $ac_tr_func 1
7272 echo "$ac_t""no" 1>&6
7276 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7277 echo "configure:7278: checking for set_auth_parameters in -lsec" >&5
7278 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7282 ac_save_LIBS
="$LIBS"
7284 cat > conftest.
$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 /* Override any gcc2 internal prototype to avoid an error. */
7288 /* We use char because int might match the return type of a gcc2
7289 builtin and then its argument prototype would still apply. */
7290 char set_auth_parameters();
7293 set_auth_parameters()
7296 if { (eval echo configure
:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7298 eval "ac_cv_lib_$ac_lib_var=yes"
7300 echo "configure: failed program was:" >&5
7301 cat conftest.
$ac_ext >&5
7303 eval "ac_cv_lib_$ac_lib_var=no"
7306 LIBS
="$ac_save_LIBS"
7309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7311 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7313 cat >> confdefs.h
<<EOF
7314 #define $ac_tr_lib 1
7320 echo "$ac_t""no" 1>&6
7323 for ac_func
in set_auth_parameters
7325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7326 echo "configure:7327: checking for $ac_func" >&5
7327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 cat > conftest.
$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7333 /* System header to define __stub macros and hopefully few prototypes,
7334 which can conflict with char $ac_func(); below. */
7336 /* Override any gcc2 internal prototype to avoid an error. */
7337 /* We use char because int might match the return type of a gcc2
7338 builtin and then its argument prototype would still apply. */
7343 /* The GNU C library defines this for functions which it implements
7344 to always fail with ENOSYS. Some functions are actually named
7345 something starting with __ and the normal name is an alias. */
7346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7354 if { (eval echo configure
:7355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7356 eval "ac_cv_func_$ac_func=yes"
7358 echo "configure: failed program was:" >&5
7359 cat conftest.
$ac_ext >&5
7361 eval "ac_cv_func_$ac_func=no"
7366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7367 echo "$ac_t""yes" 1>&6
7368 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7369 cat >> confdefs.h
<<EOF
7370 #define $ac_tr_func 1
7374 echo "$ac_t""no" 1>&6
7382 # UnixWare 7.x has its getspnam in -lgen
7384 *-lgen*) for ac_func
in getspnam
7386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7387 echo "configure:7388: checking for $ac_func" >&5
7388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6
7391 cat > conftest.
$ac_ext <<EOF
7392 #line 7393 "configure"
7393 #include "confdefs.h"
7394 /* System header to define __stub macros and hopefully few prototypes,
7395 which can conflict with char $ac_func(); below. */
7397 /* Override any gcc2 internal prototype to avoid an error. */
7398 /* We use char because int might match the return type of a gcc2
7399 builtin and then its argument prototype would still apply. */
7404 /* The GNU C library defines this for functions which it implements
7405 to always fail with ENOSYS. Some functions are actually named
7406 something starting with __ and the normal name is an alias. */
7407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7415 if { (eval echo configure
:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7417 eval "ac_cv_func_$ac_func=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.
$ac_ext >&5
7422 eval "ac_cv_func_$ac_func=no"
7427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7428 echo "$ac_t""yes" 1>&6
7429 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7430 cat >> confdefs.h
<<EOF
7431 #define $ac_tr_func 1
7435 echo "$ac_t""no" 1>&6
7439 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7440 echo "configure:7441: checking for getspnam in -lgen" >&5
7441 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7443 echo $ac_n "(cached) $ac_c" 1>&6
7445 ac_save_LIBS
="$LIBS"
7447 cat > conftest.
$ac_ext <<EOF
7448 #line 7449 "configure"
7449 #include "confdefs.h"
7450 /* Override any gcc2 internal prototype to avoid an error. */
7451 /* We use char because int might match the return type of a gcc2
7452 builtin and then its argument prototype would still apply. */
7459 if { (eval echo configure
:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7461 eval "ac_cv_lib_$ac_lib_var=yes"
7463 echo "configure: failed program was:" >&5
7464 cat conftest.
$ac_ext >&5
7466 eval "ac_cv_lib_$ac_lib_var=no"
7469 LIBS
="$ac_save_LIBS"
7472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7473 echo "$ac_t""yes" 1>&6
7474 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7475 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7476 cat >> confdefs.h
<<EOF
7477 #define $ac_tr_lib 1
7483 echo "$ac_t""no" 1>&6
7486 for ac_func
in getspnam
7488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7489 echo "configure:7490: checking for $ac_func" >&5
7490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7491 echo $ac_n "(cached) $ac_c" 1>&6
7493 cat > conftest.
$ac_ext <<EOF
7494 #line 7495 "configure"
7495 #include "confdefs.h"
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char $ac_func(); below. */
7499 /* Override any gcc2 internal prototype to avoid an error. */
7500 /* We use char because int might match the return type of a gcc2
7501 builtin and then its argument prototype would still apply. */
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7517 if { (eval echo configure
:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7519 eval "ac_cv_func_$ac_func=yes"
7521 echo "configure: failed program was:" >&5
7522 cat conftest.
$ac_ext >&5
7524 eval "ac_cv_func_$ac_func=no"
7529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7530 echo "$ac_t""yes" 1>&6
7531 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7532 cat >> confdefs.h
<<EOF
7533 #define $ac_tr_func 1
7537 echo "$ac_t""no" 1>&6
7546 *-lsecurity*) for ac_func
in getspnam
7548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_func" >&5
7550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 cat > conftest.
$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* System header to define __stub macros and hopefully few prototypes,
7557 which can conflict with char $ac_func(); below. */
7559 /* Override any gcc2 internal prototype to avoid an error. */
7560 /* We use char because int might match the return type of a gcc2
7561 builtin and then its argument prototype would still apply. */
7566 /* The GNU C library defines this for functions which it implements
7567 to always fail with ENOSYS. Some functions are actually named
7568 something starting with __ and the normal name is an alias. */
7569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7577 if { (eval echo configure
:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7579 eval "ac_cv_func_$ac_func=yes"
7581 echo "configure: failed program was:" >&5
7582 cat conftest.
$ac_ext >&5
7584 eval "ac_cv_func_$ac_func=no"
7589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7592 cat >> confdefs.h
<<EOF
7593 #define $ac_tr_func 1
7597 echo "$ac_t""no" 1>&6
7601 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7602 echo "configure:7603: checking for getspnam in -lsecurity" >&5
7603 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7607 ac_save_LIBS
="$LIBS"
7608 LIBS
="-lsecurity $LIBS"
7609 cat > conftest.
$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7612 /* Override any gcc2 internal prototype to avoid an error. */
7613 /* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */
7621 if { (eval echo configure
:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7623 eval "ac_cv_lib_$ac_lib_var=yes"
7625 echo "configure: failed program was:" >&5
7626 cat conftest.
$ac_ext >&5
7628 eval "ac_cv_lib_$ac_lib_var=no"
7631 LIBS
="$ac_save_LIBS"
7634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7635 echo "$ac_t""yes" 1>&6
7636 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7637 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7638 cat >> confdefs.h
<<EOF
7639 #define $ac_tr_lib 1
7642 LIBS
="-lsecurity $LIBS"
7645 echo "$ac_t""no" 1>&6
7648 for ac_func
in getspnam
7650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7651 echo "configure:7652: checking for $ac_func" >&5
7652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7655 cat > conftest.
$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 /* System header to define __stub macros and hopefully few prototypes,
7659 which can conflict with char $ac_func(); below. */
7661 /* Override any gcc2 internal prototype to avoid an error. */
7662 /* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7668 /* The GNU C library defines this for functions which it implements
7669 to always fail with ENOSYS. Some functions are actually named
7670 something starting with __ and the normal name is an alias. */
7671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7679 if { (eval echo configure
:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7681 eval "ac_cv_func_$ac_func=yes"
7683 echo "configure: failed program was:" >&5
7684 cat conftest.
$ac_ext >&5
7686 eval "ac_cv_func_$ac_func=no"
7691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7692 echo "$ac_t""yes" 1>&6
7693 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7694 cat >> confdefs.h
<<EOF
7695 #define $ac_tr_func 1
7699 echo "$ac_t""no" 1>&6
7707 *-lsec*) for ac_func
in getspnam
7709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7710 echo "configure:7711: checking for $ac_func" >&5
7711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7714 cat > conftest.
$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* System header to define __stub macros and hopefully few prototypes,
7718 which can conflict with char $ac_func(); below. */
7720 /* Override any gcc2 internal prototype to avoid an error. */
7721 /* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7727 /* The GNU C library defines this for functions which it implements
7728 to always fail with ENOSYS. Some functions are actually named
7729 something starting with __ and the normal name is an alias. */
7730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7738 if { (eval echo configure
:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7740 eval "ac_cv_func_$ac_func=yes"
7742 echo "configure: failed program was:" >&5
7743 cat conftest.
$ac_ext >&5
7745 eval "ac_cv_func_$ac_func=no"
7750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7751 echo "$ac_t""yes" 1>&6
7752 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7753 cat >> confdefs.h
<<EOF
7754 #define $ac_tr_func 1
7758 echo "$ac_t""no" 1>&6
7762 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7763 echo "configure:7764: checking for getspnam in -lsec" >&5
7764 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 ac_save_LIBS
="$LIBS"
7770 cat > conftest.
$ac_ext <<EOF
7771 #line 7772 "configure"
7772 #include "confdefs.h"
7773 /* Override any gcc2 internal prototype to avoid an error. */
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7782 if { (eval echo configure
:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7784 eval "ac_cv_lib_$ac_lib_var=yes"
7786 echo "configure: failed program was:" >&5
7787 cat conftest.
$ac_ext >&5
7789 eval "ac_cv_lib_$ac_lib_var=no"
7792 LIBS
="$ac_save_LIBS"
7795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7796 echo "$ac_t""yes" 1>&6
7797 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7798 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7799 cat >> confdefs.h
<<EOF
7800 #define $ac_tr_lib 1
7806 echo "$ac_t""no" 1>&6
7809 for ac_func
in getspnam
7811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7812 echo "configure:7813: checking for $ac_func" >&5
7813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7816 cat > conftest.
$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819 /* System header to define __stub macros and hopefully few prototypes,
7820 which can conflict with char $ac_func(); below. */
7822 /* Override any gcc2 internal prototype to avoid an error. */
7823 /* We use char because int might match the return type of a gcc2
7824 builtin and then its argument prototype would still apply. */
7829 /* The GNU C library defines this for functions which it implements
7830 to always fail with ENOSYS. Some functions are actually named
7831 something starting with __ and the normal name is an alias. */
7832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7840 if { (eval echo configure
:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7842 eval "ac_cv_func_$ac_func=yes"
7844 echo "configure: failed program was:" >&5
7845 cat conftest.
$ac_ext >&5
7847 eval "ac_cv_func_$ac_func=no"
7852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7853 echo "$ac_t""yes" 1>&6
7854 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7855 cat >> confdefs.h
<<EOF
7856 #define $ac_tr_func 1
7860 echo "$ac_t""no" 1>&6
7869 *-lsecurity*) for ac_func
in bigcrypt
7871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7872 echo "configure:7873: checking for $ac_func" >&5
7873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7876 cat > conftest.
$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 /* System header to define __stub macros and hopefully few prototypes,
7880 which can conflict with char $ac_func(); below. */
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 /* We use char because int might match the return type of a gcc2
7884 builtin and then its argument prototype would still apply. */
7889 /* The GNU C library defines this for functions which it implements
7890 to always fail with ENOSYS. Some functions are actually named
7891 something starting with __ and the normal name is an alias. */
7892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7900 if { (eval echo configure
:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7902 eval "ac_cv_func_$ac_func=yes"
7904 echo "configure: failed program was:" >&5
7905 cat conftest.
$ac_ext >&5
7907 eval "ac_cv_func_$ac_func=no"
7912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7913 echo "$ac_t""yes" 1>&6
7914 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7915 cat >> confdefs.h
<<EOF
7916 #define $ac_tr_func 1
7920 echo "$ac_t""no" 1>&6
7924 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7925 echo "configure:7926: checking for bigcrypt in -lsecurity" >&5
7926 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7930 ac_save_LIBS
="$LIBS"
7931 LIBS
="-lsecurity $LIBS"
7932 cat > conftest.
$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 /* Override any gcc2 internal prototype to avoid an error. */
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7944 if { (eval echo configure
:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7946 eval "ac_cv_lib_$ac_lib_var=yes"
7948 echo "configure: failed program was:" >&5
7949 cat conftest.
$ac_ext >&5
7951 eval "ac_cv_lib_$ac_lib_var=no"
7954 LIBS
="$ac_save_LIBS"
7957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7958 echo "$ac_t""yes" 1>&6
7959 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7961 cat >> confdefs.h
<<EOF
7962 #define $ac_tr_lib 1
7965 LIBS
="-lsecurity $LIBS"
7968 echo "$ac_t""no" 1>&6
7971 for ac_func
in bigcrypt
7973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7974 echo "configure:7975: checking for $ac_func" >&5
7975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7976 echo $ac_n "(cached) $ac_c" 1>&6
7978 cat > conftest.
$ac_ext <<EOF
7979 #line 7980 "configure"
7980 #include "confdefs.h"
7981 /* System header to define __stub macros and hopefully few prototypes,
7982 which can conflict with char $ac_func(); below. */
7984 /* Override any gcc2 internal prototype to avoid an error. */
7985 /* We use char because int might match the return type of a gcc2
7986 builtin and then its argument prototype would still apply. */
7991 /* The GNU C library defines this for functions which it implements
7992 to always fail with ENOSYS. Some functions are actually named
7993 something starting with __ and the normal name is an alias. */
7994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8002 if { (eval echo configure
:8003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8004 eval "ac_cv_func_$ac_func=yes"
8006 echo "configure: failed program was:" >&5
8007 cat conftest.
$ac_ext >&5
8009 eval "ac_cv_func_$ac_func=no"
8014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8015 echo "$ac_t""yes" 1>&6
8016 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8017 cat >> confdefs.h
<<EOF
8018 #define $ac_tr_func 1
8022 echo "$ac_t""no" 1>&6
8030 *-lsec*) for ac_func
in bigcrypt
8032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8033 echo "configure:8034: checking for $ac_func" >&5
8034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8035 echo $ac_n "(cached) $ac_c" 1>&6
8037 cat > conftest.
$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8040 /* System header to define __stub macros and hopefully few prototypes,
8041 which can conflict with char $ac_func(); below. */
8043 /* Override any gcc2 internal prototype to avoid an error. */
8044 /* We use char because int might match the return type of a gcc2
8045 builtin and then its argument prototype would still apply. */
8050 /* The GNU C library defines this for functions which it implements
8051 to always fail with ENOSYS. Some functions are actually named
8052 something starting with __ and the normal name is an alias. */
8053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8061 if { (eval echo configure
:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8063 eval "ac_cv_func_$ac_func=yes"
8065 echo "configure: failed program was:" >&5
8066 cat conftest.
$ac_ext >&5
8068 eval "ac_cv_func_$ac_func=no"
8073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8074 echo "$ac_t""yes" 1>&6
8075 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8076 cat >> confdefs.h
<<EOF
8077 #define $ac_tr_func 1
8081 echo "$ac_t""no" 1>&6
8085 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8086 echo "configure:8087: checking for bigcrypt in -lsec" >&5
8087 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8091 ac_save_LIBS
="$LIBS"
8093 cat > conftest.
$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 /* Override any gcc2 internal prototype to avoid an error. */
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8105 if { (eval echo configure
:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8107 eval "ac_cv_lib_$ac_lib_var=yes"
8109 echo "configure: failed program was:" >&5
8110 cat conftest.
$ac_ext >&5
8112 eval "ac_cv_lib_$ac_lib_var=no"
8115 LIBS
="$ac_save_LIBS"
8118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8119 echo "$ac_t""yes" 1>&6
8120 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8122 cat >> confdefs.h
<<EOF
8123 #define $ac_tr_lib 1
8129 echo "$ac_t""no" 1>&6
8132 for ac_func
in bigcrypt
8134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8135 echo "configure:8136: checking for $ac_func" >&5
8136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 cat > conftest.
$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* System header to define __stub macros and hopefully few prototypes,
8143 which can conflict with char $ac_func(); below. */
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8152 /* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8163 if { (eval echo configure
:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8165 eval "ac_cv_func_$ac_func=yes"
8167 echo "configure: failed program was:" >&5
8168 cat conftest.
$ac_ext >&5
8170 eval "ac_cv_func_$ac_func=no"
8175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8176 echo "$ac_t""yes" 1>&6
8177 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8178 cat >> confdefs.h
<<EOF
8179 #define $ac_tr_func 1
8183 echo "$ac_t""no" 1>&6
8192 *-lsecurity*) for ac_func
in getprpwnam
8194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8195 echo "configure:8196: checking for $ac_func" >&5
8196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8199 cat > conftest.
$ac_ext <<EOF
8200 #line 8201 "configure"
8201 #include "confdefs.h"
8202 /* System header to define __stub macros and hopefully few prototypes,
8203 which can conflict with char $ac_func(); below. */
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8212 /* The GNU C library defines this for functions which it implements
8213 to always fail with ENOSYS. Some functions are actually named
8214 something starting with __ and the normal name is an alias. */
8215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8223 if { (eval echo configure
:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8225 eval "ac_cv_func_$ac_func=yes"
8227 echo "configure: failed program was:" >&5
8228 cat conftest.
$ac_ext >&5
8230 eval "ac_cv_func_$ac_func=no"
8235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8236 echo "$ac_t""yes" 1>&6
8237 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8238 cat >> confdefs.h
<<EOF
8239 #define $ac_tr_func 1
8243 echo "$ac_t""no" 1>&6
8247 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8248 echo "configure:8249: checking for getprpwnam in -lsecurity" >&5
8249 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8253 ac_save_LIBS
="$LIBS"
8254 LIBS
="-lsecurity $LIBS"
8255 cat > conftest.
$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* Override any gcc2 internal prototype to avoid an error. */
8259 /* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8267 if { (eval echo configure
:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8269 eval "ac_cv_lib_$ac_lib_var=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.
$ac_ext >&5
8274 eval "ac_cv_lib_$ac_lib_var=no"
8277 LIBS
="$ac_save_LIBS"
8280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8281 echo "$ac_t""yes" 1>&6
8282 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8284 cat >> confdefs.h
<<EOF
8285 #define $ac_tr_lib 1
8288 LIBS
="-lsecurity $LIBS"
8291 echo "$ac_t""no" 1>&6
8294 for ac_func
in getprpwnam
8296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8297 echo "configure:8298: checking for $ac_func" >&5
8298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8301 cat > conftest.
$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 /* System header to define __stub macros and hopefully few prototypes,
8305 which can conflict with char $ac_func(); below. */
8307 /* Override any gcc2 internal prototype to avoid an error. */
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8314 /* The GNU C library defines this for functions which it implements
8315 to always fail with ENOSYS. Some functions are actually named
8316 something starting with __ and the normal name is an alias. */
8317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8325 if { (eval echo configure
:8326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8327 eval "ac_cv_func_$ac_func=yes"
8329 echo "configure: failed program was:" >&5
8330 cat conftest.
$ac_ext >&5
8332 eval "ac_cv_func_$ac_func=no"
8337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8338 echo "$ac_t""yes" 1>&6
8339 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8340 cat >> confdefs.h
<<EOF
8341 #define $ac_tr_func 1
8345 echo "$ac_t""no" 1>&6
8353 *-lsec*) for ac_func
in getprpwnam
8355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8356 echo "configure:8357: checking for $ac_func" >&5
8357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 cat > conftest.
$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func(); below. */
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8373 /* The GNU C library defines this for functions which it implements
8374 to always fail with ENOSYS. Some functions are actually named
8375 something starting with __ and the normal name is an alias. */
8376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8384 if { (eval echo configure
:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8386 eval "ac_cv_func_$ac_func=yes"
8388 echo "configure: failed program was:" >&5
8389 cat conftest.
$ac_ext >&5
8391 eval "ac_cv_func_$ac_func=no"
8396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8397 echo "$ac_t""yes" 1>&6
8398 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8399 cat >> confdefs.h
<<EOF
8400 #define $ac_tr_func 1
8404 echo "$ac_t""no" 1>&6
8408 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8409 echo "configure:8410: checking for getprpwnam in -lsec" >&5
8410 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8412 echo $ac_n "(cached) $ac_c" 1>&6
8414 ac_save_LIBS
="$LIBS"
8416 cat > conftest.
$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8419 /* Override any gcc2 internal prototype to avoid an error. */
8420 /* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8428 if { (eval echo configure
:8429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8430 eval "ac_cv_lib_$ac_lib_var=yes"
8432 echo "configure: failed program was:" >&5
8433 cat conftest.
$ac_ext >&5
8435 eval "ac_cv_lib_$ac_lib_var=no"
8438 LIBS
="$ac_save_LIBS"
8441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8442 echo "$ac_t""yes" 1>&6
8443 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8445 cat >> confdefs.h
<<EOF
8446 #define $ac_tr_lib 1
8452 echo "$ac_t""no" 1>&6
8455 for ac_func
in getprpwnam
8457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8458 echo "configure:8459: checking for $ac_func" >&5
8459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8462 cat > conftest.
$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8465 /* System header to define __stub macros and hopefully few prototypes,
8466 which can conflict with char $ac_func(); below. */
8468 /* Override any gcc2 internal prototype to avoid an error. */
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8475 /* The GNU C library defines this for functions which it implements
8476 to always fail with ENOSYS. Some functions are actually named
8477 something starting with __ and the normal name is an alias. */
8478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8486 if { (eval echo configure
:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8488 eval "ac_cv_func_$ac_func=yes"
8490 echo "configure: failed program was:" >&5
8491 cat conftest.
$ac_ext >&5
8493 eval "ac_cv_func_$ac_func=no"
8498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8499 echo "$ac_t""yes" 1>&6
8500 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8501 cat >> confdefs.h
<<EOF
8502 #define $ac_tr_func 1
8506 echo "$ac_t""no" 1>&6
8514 # this bit needs to be modified for each OS that is suported by
8515 # smbwrapper. You need to specify how to created a shared library and
8516 # how to compile C code to produce PIC object files
8518 # these are the defaults, good for lots of systems
8526 # Assume non-shared by default and override below
8528 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8529 echo "configure:8530: checking ability to build shared libraries" >&5
8531 # and these are for particular systems
8533 *linux
*) cat >> confdefs.h
<<\EOF
8541 *solaris
*) cat >> confdefs.h
<<\EOF
8546 LDSHFLAGS
="-h \$@ -G"
8547 if test "${ac_cv_prog_CC}" = "gcc"; then
8555 *sunos
*) cat >> confdefs.h
<<\EOF
8560 LDSHFLAGS
="-Wl,-h,\$@ -G"
8561 PICFLAG
="-KPIC" # Is this correct for SunOS
8563 *bsd
*) BLDSHARED
="true"
8564 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8567 *irix
*) cat >> confdefs.h
<<\EOF
8572 *irix6
*) cat >> confdefs.h
<<\EOF
8578 ATTEMPT_WRAP32_BUILD
=yes
8580 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8581 if test "${ac_cv_prog_CC}" = "gcc"; then
8587 *aix
*) cat >> confdefs.h
<<\EOF
8592 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8593 PICFLAG
="-O2 -qmaxmem=6000"
8595 *hpux
*) cat >> confdefs.h
<<\EOF
8600 # Use special PIC flags for the native HP-UX compiler.
8601 if test $ac_cv_prog_cc_Ae = yes; then
8603 LDSHFLAGS
="-b -z +h \$@"
8607 *qnx
*) cat >> confdefs.h
<<\EOF
8611 *osf
*) cat >> confdefs.h
<<\EOF
8616 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8619 *sco
*) cat >> confdefs.h
<<\EOF
8623 *unixware
*) cat >> confdefs.h
<<\EOF
8628 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8631 *next2
*) cat >> confdefs.h
<<\EOF
8635 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8636 set dummy
groff; ac_word
=$2
8637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8638 echo "configure:8639: checking for $ac_word" >&5
8639 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8640 echo $ac_n "(cached) $ac_c" 1>&6
8642 if test -n "$ROFF"; then
8643 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8645 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8647 for ac_dir
in $ac_dummy; do
8648 test -z "$ac_dir" && ac_dir
=.
8649 if test -f $ac_dir/$ac_word; then
8650 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8657 ROFF
="$ac_cv_prog_ROFF"
8658 if test -n "$ROFF"; then
8659 echo "$ac_t""$ROFF" 1>&6
8661 echo "$ac_t""no" 1>&6
8666 *-univel-*) if test "$GCC" != yes ; then
8667 cat >> confdefs.h
<<\EOF
8668 #define HAVE_MEMSET 1
8674 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8675 #define RELIANTUNIX 1
8681 if test "$GCC" != yes ; then
8682 cat >> confdefs.h
<<\EOF
8683 #define HAVE_MEMSET 1
8690 echo "$ac_t""$BLDSHARED" 1>&6
8691 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8692 echo "configure:8693: checking linker flags for shared libraries" >&5
8693 echo "$ac_t""$LDSHFLAGS" 1>&6
8694 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8695 echo "configure:8696: checking compiler flags for position-independent code" >&5
8696 echo "$ac_t""$PICFLAGS" 1>&6
8698 # this updates our target list if we can build shared libs
8699 if test $BLDSHARED = true
; then
8700 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
8702 LIBSMBCLIENT_SHARED
=
8707 echo $ac_n "checking for long long""... $ac_c" 1>&6
8708 echo "configure:8709: checking for long long" >&5
8709 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8713 if test "$cross_compiling" = yes; then
8714 samba_cv_have_longlong
=cross
8716 cat > conftest.
$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8720 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8722 if { (eval echo configure
:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8724 samba_cv_have_longlong
=yes
8726 echo "configure: failed program was:" >&5
8727 cat conftest.
$ac_ext >&5
8729 samba_cv_have_longlong
=no
8736 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8737 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8738 cat >> confdefs.h
<<\EOF
8739 #define HAVE_LONGLONG 1
8745 # Check if the compiler supports the LL prefix on long long integers.
8748 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8749 echo "configure:8750: checking for LL suffix on long long integers" >&5
8750 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8751 echo $ac_n "(cached) $ac_c" 1>&6
8754 cat > conftest.
$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8759 long long i = 0x8000000000LL
8762 if { (eval echo configure
:8763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8764 samba_cv_compiler_supports_ll
=yes
8766 echo "configure: failed program was:" >&5
8767 cat conftest.
$ac_ext >&5
8769 samba_cv_compiler_supports_ll
=no
8774 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8775 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8776 cat >> confdefs.h
<<\EOF
8777 #define COMPILER_SUPPORTS_LL 1
8783 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8784 echo "configure:8785: checking for 64 bit off_t" >&5
8785 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8789 if test "$cross_compiling" = yes; then
8790 samba_cv_SIZEOF_OFF_T
=cross
8792 cat > conftest.
$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8796 #include <sys/stat.h>
8797 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8799 if { (eval echo configure
:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8801 samba_cv_SIZEOF_OFF_T
=yes
8803 echo "configure: failed program was:" >&5
8804 cat conftest.
$ac_ext >&5
8806 samba_cv_SIZEOF_OFF_T
=no
8813 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8814 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8815 cat >> confdefs.h
<<\EOF
8816 #define SIZEOF_OFF_T 8
8821 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8822 echo "configure:8823: checking for off64_t" >&5
8823 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8824 echo $ac_n "(cached) $ac_c" 1>&6
8827 if test "$cross_compiling" = yes; then
8828 samba_cv_HAVE_OFF64_T
=cross
8830 cat > conftest.
$ac_ext <<EOF
8831 #line 8832 "configure"
8832 #include "confdefs.h"
8834 #if defined(HAVE_UNISTD_H)
8838 #include <sys/stat.h>
8839 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8841 if { (eval echo configure
:8842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8843 samba_cv_HAVE_OFF64_T
=yes
8845 echo "configure: failed program was:" >&5
8846 cat conftest.
$ac_ext >&5
8848 samba_cv_HAVE_OFF64_T
=no
8855 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8856 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8857 cat >> confdefs.h
<<\EOF
8858 #define HAVE_OFF64_T 1
8863 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8864 echo "configure:8865: checking for 64 bit ino_t" >&5
8865 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8866 echo $ac_n "(cached) $ac_c" 1>&6
8869 if test "$cross_compiling" = yes; then
8870 samba_cv_SIZEOF_INO_T
=cross
8872 cat > conftest.
$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8876 #include <sys/stat.h>
8877 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8879 if { (eval echo configure
:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8881 samba_cv_SIZEOF_INO_T
=yes
8883 echo "configure: failed program was:" >&5
8884 cat conftest.
$ac_ext >&5
8886 samba_cv_SIZEOF_INO_T
=no
8893 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8894 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8895 cat >> confdefs.h
<<\EOF
8896 #define SIZEOF_INO_T 8
8901 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8902 echo "configure:8903: checking for ino64_t" >&5
8903 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8907 if test "$cross_compiling" = yes; then
8908 samba_cv_HAVE_INO64_T
=cross
8910 cat > conftest.
$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8914 #if defined(HAVE_UNISTD_H)
8918 #include <sys/stat.h>
8919 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8921 if { (eval echo configure
:8922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8923 samba_cv_HAVE_INO64_T
=yes
8925 echo "configure: failed program was:" >&5
8926 cat conftest.
$ac_ext >&5
8928 samba_cv_HAVE_INO64_T
=no
8935 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8936 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8937 cat >> confdefs.h
<<\EOF
8938 #define HAVE_INO64_T 1
8943 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8944 echo "configure:8945: checking for struct dirent64" >&5
8945 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8949 cat > conftest.
$ac_ext <<EOF
8950 #line 8951 "configure"
8951 #include "confdefs.h"
8953 #if defined(HAVE_UNISTD_H)
8956 #include <sys/types.h>
8962 if { (eval echo configure
:8963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8964 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8966 echo "configure: failed program was:" >&5
8967 cat conftest.
$ac_ext >&5
8969 samba_cv_HAVE_STRUCT_DIRENT64
=no
8974 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8975 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8976 cat >> confdefs.h
<<\EOF
8977 #define HAVE_STRUCT_DIRENT64 1
8982 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8983 echo "configure:8984: checking for unsigned char" >&5
8984 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8988 if test "$cross_compiling" = yes; then
8989 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8991 cat > conftest.
$ac_ext <<EOF
8992 #line 8993 "configure"
8993 #include "confdefs.h"
8995 main() { char c; c=250; exit((c > 0)?0:1); }
8997 if { (eval echo configure
:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8999 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9001 echo "configure: failed program was:" >&5
9002 cat conftest.
$ac_ext >&5
9004 samba_cv_HAVE_UNSIGNED_CHAR
=no
9011 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9012 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9013 cat >> confdefs.h
<<\EOF
9014 #define HAVE_UNSIGNED_CHAR 1
9019 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9020 echo "configure:9021: checking for sin_len in sock" >&5
9021 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9022 echo $ac_n "(cached) $ac_c" 1>&6
9025 cat > conftest.
$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 #include <sys/types.h>
9029 #include <sys/socket.h>
9030 #include <netinet/in.h>
9032 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9035 if { (eval echo configure
:9036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9037 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9039 echo "configure: failed program was:" >&5
9040 cat conftest.
$ac_ext >&5
9042 samba_cv_HAVE_SOCK_SIN_LEN
=no
9047 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9048 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9049 cat >> confdefs.h
<<\EOF
9050 #define HAVE_SOCK_SIN_LEN 1
9055 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9056 echo "configure:9057: checking whether seekdir returns void" >&5
9057 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9061 cat > conftest.
$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <sys/types.h>
9066 void seekdir(DIR *d, long loc) { return; }
9071 if { (eval echo configure
:9072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9073 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9075 echo "configure: failed program was:" >&5
9076 cat conftest.
$ac_ext >&5
9078 samba_cv_SEEKDIR_RETURNS_VOID
=no
9083 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9084 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9085 cat >> confdefs.h
<<\EOF
9086 #define SEEKDIR_RETURNS_VOID 1
9091 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9092 echo "configure:9093: checking for __FILE__ macro" >&5
9093 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9094 echo $ac_n "(cached) $ac_c" 1>&6
9097 cat > conftest.
$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9102 printf("%s\n", __FILE__);
9105 if { (eval echo configure
:9106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9107 samba_cv_HAVE_FILE_MACRO
=yes
9109 echo "configure: failed program was:" >&5
9110 cat conftest.
$ac_ext >&5
9112 samba_cv_HAVE_FILE_MACRO
=no
9117 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9118 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9119 cat >> confdefs.h
<<\EOF
9120 #define HAVE_FILE_MACRO 1
9125 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9126 echo "configure:9127: checking for __FUNCTION__ macro" >&5
9127 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9131 cat > conftest.
$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9136 printf("%s\n", __FUNCTION__);
9139 if { (eval echo configure
:9140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9141 samba_cv_HAVE_FUNCTION_MACRO
=yes
9143 echo "configure: failed program was:" >&5
9144 cat conftest.
$ac_ext >&5
9146 samba_cv_HAVE_FUNCTION_MACRO
=no
9151 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9152 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9153 cat >> confdefs.h
<<\EOF
9154 #define HAVE_FUNCTION_MACRO 1
9159 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9160 echo "configure:9161: checking if gettimeofday takes tz argument" >&5
9161 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9165 if test "$cross_compiling" = yes; then
9166 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9168 cat > conftest.
$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9172 #include <sys/time.h>
9174 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9176 if { (eval echo configure
:9177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9178 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9180 echo "configure: failed program was:" >&5
9181 cat conftest.
$ac_ext >&5
9183 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9190 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9191 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9192 cat >> confdefs.h
<<\EOF
9193 #define HAVE_GETTIMEOFDAY_TZ 1
9198 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9199 echo "configure:9200: checking for C99 vsnprintf" >&5
9200 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9204 if test "$cross_compiling" = yes; then
9205 samba_cv_HAVE_C99_VSNPRINTF
=cross
9207 cat > conftest.
$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9211 #include <sys/types.h>
9213 void foo(const char *format, ...) {
9218 va_start(ap, format);
9219 len = vsnprintf(0, 0, format, ap);
9221 if (len != 5) exit(1);
9223 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9227 main() { foo("hello"); }
9230 if { (eval echo configure
:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9232 samba_cv_HAVE_C99_VSNPRINTF
=yes
9234 echo "configure: failed program was:" >&5
9235 cat conftest.
$ac_ext >&5
9237 samba_cv_HAVE_C99_VSNPRINTF
=no
9244 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9245 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9246 cat >> confdefs.h
<<\EOF
9247 #define HAVE_C99_VSNPRINTF 1
9252 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9253 echo "configure:9254: checking for broken readdir" >&5
9254 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9258 if test "$cross_compiling" = yes; then
9259 samba_cv_HAVE_BROKEN_READDIR
=cross
9261 cat > conftest.
$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9264 #include <sys/types.h>
9266 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9267 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9268 di->d_name[0] == 0) exit(0); exit(1);}
9270 if { (eval echo configure
:9271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9272 samba_cv_HAVE_BROKEN_READDIR
=yes
9274 echo "configure: failed program was:" >&5
9275 cat conftest.
$ac_ext >&5
9277 samba_cv_HAVE_BROKEN_READDIR
=no
9284 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9285 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9286 cat >> confdefs.h
<<\EOF
9287 #define HAVE_BROKEN_READDIR 1
9292 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9293 echo "configure:9294: checking for utimbuf" >&5
9294 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9295 echo $ac_n "(cached) $ac_c" 1>&6
9298 cat > conftest.
$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9301 #include <sys/types.h>
9304 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9307 if { (eval echo configure
:9308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9309 samba_cv_HAVE_UTIMBUF
=yes
9311 echo "configure: failed program was:" >&5
9312 cat conftest.
$ac_ext >&5
9314 samba_cv_HAVE_UTIMBUF
=no
9319 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9320 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9321 cat >> confdefs.h
<<\EOF
9322 #define HAVE_UTIMBUF 1
9328 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9331 echo "configure:9332: checking for $ac_func" >&5
9332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9333 echo $ac_n "(cached) $ac_c" 1>&6
9335 cat > conftest.
$ac_ext <<EOF
9336 #line 9337 "configure"
9337 #include "confdefs.h"
9338 /* System header to define __stub macros and hopefully few prototypes,
9339 which can conflict with char $ac_func(); below. */
9341 /* Override any gcc2 internal prototype to avoid an error. */
9342 /* We use char because int might match the return type of a gcc2
9343 builtin and then its argument prototype would still apply. */
9348 /* The GNU C library defines this for functions which it implements
9349 to always fail with ENOSYS. Some functions are actually named
9350 something starting with __ and the normal name is an alias. */
9351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9359 if { (eval echo configure
:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9361 eval "ac_cv_func_$ac_func=yes"
9363 echo "configure: failed program was:" >&5
9364 cat conftest.
$ac_ext >&5
9366 eval "ac_cv_func_$ac_func=no"
9371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9372 echo "$ac_t""yes" 1>&6
9373 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9374 cat >> confdefs.h
<<EOF
9375 #define $ac_tr_func 1
9379 echo "$ac_t""no" 1>&6
9384 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9385 echo "configure:9386: checking for ut_name in utmp" >&5
9386 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9390 cat > conftest.
$ac_ext <<EOF
9391 #line 9392 "configure"
9392 #include "confdefs.h"
9393 #include <sys/types.h>
9396 struct utmp ut; ut.ut_name[0] = 'a';
9399 if { (eval echo configure
:9400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9401 samba_cv_HAVE_UT_UT_NAME
=yes
9403 echo "configure: failed program was:" >&5
9404 cat conftest.
$ac_ext >&5
9406 samba_cv_HAVE_UT_UT_NAME
=no
9411 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9412 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9413 cat >> confdefs.h
<<\EOF
9414 #define HAVE_UT_UT_NAME 1
9419 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9420 echo "configure:9421: checking for ut_user in utmp" >&5
9421 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9425 cat > conftest.
$ac_ext <<EOF
9426 #line 9427 "configure"
9427 #include "confdefs.h"
9428 #include <sys/types.h>
9431 struct utmp ut; ut.ut_user[0] = 'a';
9434 if { (eval echo configure
:9435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9436 samba_cv_HAVE_UT_UT_USER
=yes
9438 echo "configure: failed program was:" >&5
9439 cat conftest.
$ac_ext >&5
9441 samba_cv_HAVE_UT_UT_USER
=no
9446 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9447 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9448 cat >> confdefs.h
<<\EOF
9449 #define HAVE_UT_UT_USER 1
9454 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9455 echo "configure:9456: checking for ut_id in utmp" >&5
9456 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9457 echo $ac_n "(cached) $ac_c" 1>&6
9460 cat > conftest.
$ac_ext <<EOF
9461 #line 9462 "configure"
9462 #include "confdefs.h"
9463 #include <sys/types.h>
9466 struct utmp ut; ut.ut_id[0] = 'a';
9469 if { (eval echo configure
:9470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9471 samba_cv_HAVE_UT_UT_ID
=yes
9473 echo "configure: failed program was:" >&5
9474 cat conftest.
$ac_ext >&5
9476 samba_cv_HAVE_UT_UT_ID
=no
9481 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9482 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9483 cat >> confdefs.h
<<\EOF
9484 #define HAVE_UT_UT_ID 1
9489 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9490 echo "configure:9491: checking for ut_host in utmp" >&5
9491 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9495 cat > conftest.
$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 #include <sys/types.h>
9501 struct utmp ut; ut.ut_host[0] = 'a';
9504 if { (eval echo configure
:9505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9506 samba_cv_HAVE_UT_UT_HOST
=yes
9508 echo "configure: failed program was:" >&5
9509 cat conftest.
$ac_ext >&5
9511 samba_cv_HAVE_UT_UT_HOST
=no
9516 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9517 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9518 cat >> confdefs.h
<<\EOF
9519 #define HAVE_UT_UT_HOST 1
9524 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9525 echo "configure:9526: checking for ut_time in utmp" >&5
9526 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9530 cat > conftest.
$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9536 struct utmp ut; time_t t; ut.ut_time = t;
9539 if { (eval echo configure
:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9541 samba_cv_HAVE_UT_UT_TIME
=yes
9543 echo "configure: failed program was:" >&5
9544 cat conftest.
$ac_ext >&5
9546 samba_cv_HAVE_UT_UT_TIME
=no
9551 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9552 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9553 cat >> confdefs.h
<<\EOF
9554 #define HAVE_UT_UT_TIME 1
9559 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9560 echo "configure:9561: checking for ut_tv in utmp" >&5
9561 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9565 cat > conftest.
$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9571 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9574 if { (eval echo configure
:9575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9576 samba_cv_HAVE_UT_UT_TV
=yes
9578 echo "configure: failed program was:" >&5
9579 cat conftest.
$ac_ext >&5
9581 samba_cv_HAVE_UT_UT_TV
=no
9586 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9587 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9588 cat >> confdefs.h
<<\EOF
9589 #define HAVE_UT_UT_TV 1
9594 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9595 echo "configure:9596: checking for ut_type in utmp" >&5
9596 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9600 cat > conftest.
$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 #include <sys/types.h>
9606 struct utmp ut; ut.ut_type = 0;
9609 if { (eval echo configure
:9610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9611 samba_cv_HAVE_UT_UT_TYPE
=yes
9613 echo "configure: failed program was:" >&5
9614 cat conftest.
$ac_ext >&5
9616 samba_cv_HAVE_UT_UT_TYPE
=no
9621 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9622 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9623 cat >> confdefs.h
<<\EOF
9624 #define HAVE_UT_UT_TYPE 1
9629 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9630 echo "configure:9631: checking for ut_pid in utmp" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9635 cat > conftest.
$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9638 #include <sys/types.h>
9641 struct utmp ut; ut.ut_pid = 0;
9644 if { (eval echo configure
:9645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9646 samba_cv_HAVE_UT_UT_PID
=yes
9648 echo "configure: failed program was:" >&5
9649 cat conftest.
$ac_ext >&5
9651 samba_cv_HAVE_UT_UT_PID
=no
9656 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9657 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9658 cat >> confdefs.h
<<\EOF
9659 #define HAVE_UT_UT_PID 1
9664 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9665 echo "configure:9666: checking for ut_exit in utmp" >&5
9666 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9667 echo $ac_n "(cached) $ac_c" 1>&6
9670 cat > conftest.
$ac_ext <<EOF
9671 #line 9672 "configure"
9672 #include "confdefs.h"
9673 #include <sys/types.h>
9676 struct utmp ut; ut.ut_exit.e_exit = 0;
9679 if { (eval echo configure
:9680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9681 samba_cv_HAVE_UT_UT_EXIT
=yes
9683 echo "configure: failed program was:" >&5
9684 cat conftest.
$ac_ext >&5
9686 samba_cv_HAVE_UT_UT_EXIT
=no
9691 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9692 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9693 cat >> confdefs.h
<<\EOF
9694 #define HAVE_UT_UT_EXIT 1
9699 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9700 echo "configure:9701: checking for ut_addr in utmp" >&5
9701 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9705 cat > conftest.
$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9708 #include <sys/types.h>
9711 struct utmp ut; ut.ut_addr = 0;
9714 if { (eval echo configure
:9715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9716 samba_cv_HAVE_UT_UT_ADDR
=yes
9718 echo "configure: failed program was:" >&5
9719 cat conftest.
$ac_ext >&5
9721 samba_cv_HAVE_UT_UT_ADDR
=no
9726 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9727 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9728 cat >> confdefs.h
<<\EOF
9729 #define HAVE_UT_UT_ADDR 1
9734 if test x
$ac_cv_func_pututline = xyes
; then
9735 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9736 echo "configure:9737: checking whether pututline returns pointer" >&5
9737 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9738 echo $ac_n "(cached) $ac_c" 1>&6
9741 cat > conftest.
$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9744 #include <sys/types.h>
9747 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9750 if { (eval echo configure
:9751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9752 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9754 echo "configure: failed program was:" >&5
9755 cat conftest.
$ac_ext >&5
9757 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9762 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9763 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9764 cat >> confdefs.h
<<\EOF
9765 #define PUTUTLINE_RETURNS_UTMP 1
9771 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9772 echo "configure:9773: checking for ut_syslen in utmpx" >&5
9773 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9777 cat > conftest.
$ac_ext <<EOF
9778 #line 9779 "configure"
9779 #include "confdefs.h"
9780 #include <sys/types.h>
9783 struct utmpx ux; ux.ut_syslen = 0;
9786 if { (eval echo configure
:9787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9788 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9790 echo "configure: failed program was:" >&5
9791 cat conftest.
$ac_ext >&5
9793 samba_cv_HAVE_UX_UT_SYSLEN
=no
9798 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9799 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9800 cat >> confdefs.h
<<\EOF
9801 #define HAVE_UX_UT_SYSLEN 1
9807 #################################################
9808 # check for libiconv support
9809 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9810 echo "configure:9811: checking whether to use libiconv" >&5
9811 # Check whether --with-libiconv or --without-libiconv was given.
9812 if test "${with_libiconv+set}" = set; then
9813 withval
="$with_libiconv"
9816 echo "$ac_t""no" 1>&6
9819 echo "$ac_t""yes" 1>&6
9820 CFLAGS
="$CFLAGS -I$withval/include"
9821 LDFLAGS
="$LDFLAGS -L$withval/lib"
9822 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9823 echo "configure:9824: checking for iconv_open in -liconv" >&5
9824 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9828 ac_save_LIBS
="$LIBS"
9829 LIBS
="-liconv $LIBS"
9830 cat > conftest.
$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9833 /* Override any gcc2 internal prototype to avoid an error. */
9834 /* We use char because int might match the return type of a gcc2
9835 builtin and then its argument prototype would still apply. */
9842 if { (eval echo configure
:9843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9844 eval "ac_cv_lib_$ac_lib_var=yes"
9846 echo "configure: failed program was:" >&5
9847 cat conftest.
$ac_ext >&5
9849 eval "ac_cv_lib_$ac_lib_var=no"
9852 LIBS
="$ac_save_LIBS"
9855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9856 echo "$ac_t""yes" 1>&6
9857 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9859 cat >> confdefs.h
<<EOF
9860 #define $ac_tr_lib 1
9863 LIBS
="-liconv $LIBS"
9866 echo "$ac_t""no" 1>&6
9869 cat >> confdefs.h
<<EOF
9870 #define WITH_LIBICONV "${withval}"
9876 echo "$ac_t""no" 1>&6
9883 # check for iconv in libc
9884 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9885 echo "configure:9886: checking for working iconv" >&5
9886 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9887 echo $ac_n "(cached) $ac_c" 1>&6
9890 if test "$cross_compiling" = yes; then
9891 samba_cv_HAVE_NATIVE_ICONV
=cross
9893 cat > conftest.
$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9899 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9900 if (cd == 0 || cd == (iconv_t)-1) return -1;
9905 if { (eval echo configure
:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9907 samba_cv_HAVE_NATIVE_ICONV
=yes
9909 echo "configure: failed program was:" >&5
9910 cat conftest.
$ac_ext >&5
9912 samba_cv_HAVE_NATIVE_ICONV
=no
9919 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9920 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
9921 cat >> confdefs.h
<<\EOF
9922 #define HAVE_NATIVE_ICONV 1
9928 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9929 echo "configure:9930: checking for Linux kernel oplocks" >&5
9930 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9934 if test "$cross_compiling" = yes; then
9935 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9937 cat > conftest.
$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9941 #include <sys/types.h>
9944 #define F_GETLEASE 1025
9947 int fd = open("/dev/null", O_RDONLY);
9948 return fcntl(fd, F_GETLEASE, 0) == -1;
9952 if { (eval echo configure
:9953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9954 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9956 echo "configure: failed program was:" >&5
9957 cat conftest.
$ac_ext >&5
9959 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9966 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9967 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9968 cat >> confdefs.h
<<\EOF
9969 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9974 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9975 echo "configure:9976: checking for kernel change notify support" >&5
9976 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9977 echo $ac_n "(cached) $ac_c" 1>&6
9980 if test "$cross_compiling" = yes; then
9981 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9983 cat > conftest.
$ac_ext <<EOF
9984 #line 9985 "configure"
9985 #include "confdefs.h"
9987 #include <sys/types.h>
9991 #define F_NOTIFY 1026
9994 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9998 if { (eval echo configure
:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10000 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10002 echo "configure: failed program was:" >&5
10003 cat conftest.
$ac_ext >&5
10005 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10012 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10013 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10014 cat >> confdefs.h
<<\EOF
10015 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10020 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10021 echo "configure:10022: checking for kernel share modes" >&5
10022 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
10026 if test "$cross_compiling" = yes; then
10027 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10029 cat > conftest.
$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10033 #include <sys/types.h>
10035 #include <signal.h>
10036 #include <sys/file.h>
10038 #define LOCK_MAND 32
10039 #define LOCK_READ 64
10042 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10046 if { (eval echo configure
:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10048 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10050 echo "configure: failed program was:" >&5
10051 cat conftest.
$ac_ext >&5
10053 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10060 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10061 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10062 cat >> confdefs.h
<<\EOF
10063 #define HAVE_KERNEL_SHARE_MODES 1
10071 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10072 echo "configure:10073: checking for IRIX kernel oplock type definitions" >&5
10073 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10077 cat > conftest.
$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <sys/types.h>
10083 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10086 if { (eval echo configure
:10087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10088 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10090 echo "configure: failed program was:" >&5
10091 cat conftest.
$ac_ext >&5
10093 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10098 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10099 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10100 cat >> confdefs.h
<<\EOF
10101 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10106 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10107 echo "configure:10108: checking for irix specific capabilities" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10112 if test "$cross_compiling" = yes; then
10113 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10115 cat > conftest.
$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 #include <sys/types.h>
10119 #include <sys/capability.h>
10122 if ((cap = cap_get_proc()) == NULL)
10124 cap->cap_effective |= CAP_NETWORK_MGT;
10125 cap->cap_inheritable |= CAP_NETWORK_MGT;
10131 if { (eval echo configure
:10132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10133 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10135 echo "configure: failed program was:" >&5
10136 cat conftest.
$ac_ext >&5
10138 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10145 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10146 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10147 cat >> confdefs.h
<<\EOF
10148 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10154 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10155 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10158 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10159 echo "configure:10160: checking for int16 typedef included by rpc/rpc.h" >&5
10160 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10164 cat > conftest.
$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 #include <sys/types.h>
10168 #if defined(HAVE_RPC_RPC_H)
10169 #include <rpc/rpc.h>
10175 if { (eval echo configure
:10176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10177 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10179 echo "configure: failed program was:" >&5
10180 cat conftest.
$ac_ext >&5
10182 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10187 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10188 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10189 cat >> confdefs.h
<<\EOF
10190 #define HAVE_INT16_FROM_RPC_RPC_H 1
10195 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10196 echo "configure:10197: checking for uint16 typedef included by rpc/rpc.h" >&5
10197 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10198 echo $ac_n "(cached) $ac_c" 1>&6
10201 cat > conftest.
$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10204 #include <sys/types.h>
10205 #if defined(HAVE_RPC_RPC_H)
10206 #include <rpc/rpc.h>
10212 if { (eval echo configure
:10213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10214 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10216 echo "configure: failed program was:" >&5
10217 cat conftest.
$ac_ext >&5
10219 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10224 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10225 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10226 cat >> confdefs.h
<<\EOF
10227 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10232 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10233 echo "configure:10234: checking for int32 typedef included by rpc/rpc.h" >&5
10234 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10238 cat > conftest.
$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241 #include <sys/types.h>
10242 #if defined(HAVE_RPC_RPC_H)
10243 #include <rpc/rpc.h>
10249 if { (eval echo configure
:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10251 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10253 echo "configure: failed program was:" >&5
10254 cat conftest.
$ac_ext >&5
10256 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10261 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10262 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10263 cat >> confdefs.h
<<\EOF
10264 #define HAVE_INT32_FROM_RPC_RPC_H 1
10269 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10270 echo "configure:10271: checking for uint32 typedef included by rpc/rpc.h" >&5
10271 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10272 echo $ac_n "(cached) $ac_c" 1>&6
10275 cat > conftest.
$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10278 #include <sys/types.h>
10279 #if defined(HAVE_RPC_RPC_H)
10280 #include <rpc/rpc.h>
10286 if { (eval echo configure
:10287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10288 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10290 echo "configure: failed program was:" >&5
10291 cat conftest.
$ac_ext >&5
10293 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10298 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10299 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10300 cat >> confdefs.h
<<\EOF
10301 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10307 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10308 echo "configure:10309: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10309 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10310 echo $ac_n "(cached) $ac_c" 1>&6
10313 cat > conftest.
$ac_ext <<EOF
10314 #line 10315 "configure"
10315 #include "confdefs.h"
10316 #include <sys/types.h>
10317 #ifdef HAVE_SYS_SECURITY_H
10318 #include <sys/security.h>
10320 #endif /* HAVE_SYS_SECURITY_H */
10321 #if defined(HAVE_RPC_RPC_H)
10322 #include <rpc/rpc.h>
10328 if { (eval echo configure
:10329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10330 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10332 echo "configure: failed program was:" >&5
10333 cat conftest.
$ac_ext >&5
10335 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10340 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10341 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10342 cat >> confdefs.h
<<\EOF
10343 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10348 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10349 echo "configure:10350: checking for test routines" >&5
10350 if test "$cross_compiling" = yes; then
10351 echo "configure: warning: cannot run when cross-compiling" 1>&2
10353 cat > conftest.
$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10356 #include "${srcdir-.}/tests/trivial.c"
10358 if { (eval echo configure
:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10360 echo "$ac_t""yes" 1>&6
10362 echo "configure: failed program was:" >&5
10363 cat conftest.
$ac_ext >&5
10365 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10371 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10372 echo "configure:10373: checking for ftruncate extend" >&5
10373 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10374 echo $ac_n "(cached) $ac_c" 1>&6
10377 if test "$cross_compiling" = yes; then
10378 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10380 cat > conftest.
$ac_ext <<EOF
10381 #line 10382 "configure"
10382 #include "confdefs.h"
10383 #include "${srcdir-.}/tests/ftruncate.c"
10385 if { (eval echo configure
:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10387 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10389 echo "configure: failed program was:" >&5
10390 cat conftest.
$ac_ext >&5
10392 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10399 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10400 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10401 cat >> confdefs.h
<<\EOF
10402 #define HAVE_FTRUNCATE_EXTEND 1
10407 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10408 echo "configure:10409: checking for AF_LOCAL socket support" >&5
10409 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10413 if test "$cross_compiling" = yes; then
10414 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
10416 cat > conftest.
$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10419 #include "${srcdir-.}/tests/unixsock.c"
10421 if { (eval echo configure
:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10423 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
10425 echo "configure: failed program was:" >&5
10426 cat conftest.
$ac_ext >&5
10428 samba_cv_HAVE_WORKING_AF_LOCAL
=no
10435 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10436 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10438 cat >> confdefs.h
<<\EOF
10439 #define HAVE_WORKING_AF_LOCAL 1
10444 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10445 echo "configure:10446: checking for broken getgroups" >&5
10446 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
10450 if test "$cross_compiling" = yes; then
10451 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10453 cat > conftest.
$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456 #include "${srcdir-.}/tests/getgroups.c"
10458 if { (eval echo configure
:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10460 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10462 echo "configure: failed program was:" >&5
10463 cat conftest.
$ac_ext >&5
10465 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10472 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10473 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10474 cat >> confdefs.h
<<\EOF
10475 #define HAVE_BROKEN_GETGROUPS 1
10480 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10481 echo "configure:10482: checking whether getpass should be replaced" >&5
10482 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10483 echo $ac_n "(cached) $ac_c" 1>&6
10486 SAVE_CPPFLAGS
="$CPPFLAGS"
10487 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10488 cat > conftest.
$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10492 #define REPLACE_GETPASS 1
10493 #define NO_CONFIG_H 1
10494 #define main dont_declare_main
10495 #include "${srcdir-.}/lib/getsmbpass.c"
10502 if { (eval echo configure
:10503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10504 samba_cv_REPLACE_GETPASS
=yes
10506 echo "configure: failed program was:" >&5
10507 cat conftest.
$ac_ext >&5
10509 samba_cv_REPLACE_GETPASS
=no
10512 CPPFLAGS
="$SAVE_CPPFLAGS"
10516 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10517 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10518 cat >> confdefs.h
<<\EOF
10519 #define REPLACE_GETPASS 1
10524 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10525 echo "configure:10526: checking for broken inet_ntoa" >&5
10526 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10530 if test "$cross_compiling" = yes; then
10531 samba_cv_REPLACE_INET_NTOA
=cross
10533 cat > conftest.
$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10538 #include <sys/types.h>
10539 #include <netinet/in.h>
10540 #ifdef HAVE_ARPA_INET_H
10541 #include <arpa/inet.h>
10543 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10544 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10545 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10548 if { (eval echo configure
:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10550 samba_cv_REPLACE_INET_NTOA
=yes
10552 echo "configure: failed program was:" >&5
10553 cat conftest.
$ac_ext >&5
10555 samba_cv_REPLACE_INET_NTOA
=no
10562 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10563 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10564 cat >> confdefs.h
<<\EOF
10565 #define REPLACE_INET_NTOA 1
10570 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10571 echo "configure:10572: checking for secure mkstemp" >&5
10572 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10573 echo $ac_n "(cached) $ac_c" 1>&6
10576 if test "$cross_compiling" = yes; then
10577 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10579 cat > conftest.
$ac_ext <<EOF
10580 #line 10581 "configure"
10581 #include "confdefs.h"
10582 #include <stdlib.h>
10583 #include <sys/types.h>
10584 #include <sys/stat.h>
10585 #include <unistd.h>
10588 char tpl[20]="/tmp/test.XXXXXX";
10589 int fd = mkstemp(tpl);
10590 if (fd == -1) exit(1);
10592 if (fstat(fd, &st) != 0) exit(1);
10593 if ((st.st_mode & 0777) != 0600) exit(1);
10597 if { (eval echo configure
:10598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10599 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10601 echo "configure: failed program was:" >&5
10602 cat conftest.
$ac_ext >&5
10604 samba_cv_HAVE_SECURE_MKSTEMP
=no
10611 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10612 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10613 cat >> confdefs.h
<<\EOF
10614 #define HAVE_SECURE_MKSTEMP 1
10619 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10620 echo "configure:10621: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10621 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10625 if test "$cross_compiling" = yes; then
10626 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10628 cat > conftest.
$ac_ext <<EOF
10629 #line 10630 "configure"
10630 #include "confdefs.h"
10631 #include <unistd.h>
10632 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10634 if { (eval echo configure
:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10636 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10638 echo "configure: failed program was:" >&5
10639 cat conftest.
$ac_ext >&5
10641 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10648 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10649 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10650 cat >> confdefs.h
<<\EOF
10651 #define SYSCONF_SC_NGROUPS_MAX 1
10656 echo $ac_n "checking for root""... $ac_c" 1>&6
10657 echo "configure:10658: checking for root" >&5
10658 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10659 echo $ac_n "(cached) $ac_c" 1>&6
10662 if test "$cross_compiling" = yes; then
10663 samba_cv_HAVE_ROOT
=cross
10665 cat > conftest.
$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10668 main() { exit(getuid() != 0); }
10670 if { (eval echo configure
:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10672 samba_cv_HAVE_ROOT
=yes
10674 echo "configure: failed program was:" >&5
10675 cat conftest.
$ac_ext >&5
10677 samba_cv_HAVE_ROOT
=no
10684 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10685 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10686 cat >> confdefs.h
<<\EOF
10687 #define HAVE_ROOT 1
10691 echo "configure: warning: running as non-root will disable some tests" 1>&2
10695 # look for a method of finding the list of network interfaces
10697 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10698 echo "configure:10699: checking for iface AIX" >&5
10699 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10703 if test "$cross_compiling" = yes; then
10704 samba_cv_HAVE_IFACE_AIX
=cross
10706 cat > conftest.
$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10710 #define HAVE_IFACE_AIX 1
10711 #define AUTOCONF_TEST 1
10712 #include "confdefs.h"
10713 #include "${srcdir-.}/lib/interfaces.c"
10715 if { (eval echo configure
:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10717 samba_cv_HAVE_IFACE_AIX
=yes
10719 echo "configure: failed program was:" >&5
10720 cat conftest.
$ac_ext >&5
10722 samba_cv_HAVE_IFACE_AIX
=no
10729 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10730 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10731 iface
=yes;cat >> confdefs.h
<<\EOF
10732 #define HAVE_IFACE_AIX 1
10737 if test $iface = no
; then
10738 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10739 echo "configure:10740: checking for iface ifconf" >&5
10740 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10744 if test "$cross_compiling" = yes; then
10745 samba_cv_HAVE_IFACE_IFCONF
=cross
10747 cat > conftest.
$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10751 #define HAVE_IFACE_IFCONF 1
10752 #define AUTOCONF_TEST 1
10753 #include "confdefs.h"
10754 #include "${srcdir-.}/lib/interfaces.c"
10756 if { (eval echo configure
:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10758 samba_cv_HAVE_IFACE_IFCONF
=yes
10760 echo "configure: failed program was:" >&5
10761 cat conftest.
$ac_ext >&5
10763 samba_cv_HAVE_IFACE_IFCONF
=no
10770 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10771 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10772 iface
=yes;cat >> confdefs.h
<<\EOF
10773 #define HAVE_IFACE_IFCONF 1
10779 if test $iface = no
; then
10780 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10781 echo "configure:10782: checking for iface ifreq" >&5
10782 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_HAVE_IFACE_IFREQ
=cross
10789 cat > conftest.
$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10793 #define HAVE_IFACE_IFREQ 1
10794 #define AUTOCONF_TEST 1
10795 #include "confdefs.h"
10796 #include "${srcdir-.}/lib/interfaces.c"
10798 if { (eval echo configure
:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10800 samba_cv_HAVE_IFACE_IFREQ
=yes
10802 echo "configure: failed program was:" >&5
10803 cat conftest.
$ac_ext >&5
10805 samba_cv_HAVE_IFACE_IFREQ
=no
10812 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10813 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10814 iface
=yes;cat >> confdefs.h
<<\EOF
10815 #define HAVE_IFACE_IFREQ 1
10822 ################################################
10823 # look for a method of setting the effective uid
10825 if test $seteuid = no
; then
10826 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10827 echo "configure:10828: checking for setresuid" >&5
10828 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10832 if test "$cross_compiling" = yes; then
10833 samba_cv_USE_SETRESUID
=cross
10835 cat > conftest.
$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10839 #define AUTOCONF_TEST 1
10840 #define USE_SETRESUID 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_SETRESUID
=yes
10848 echo "configure: failed program was:" >&5
10849 cat conftest.
$ac_ext >&5
10851 samba_cv_USE_SETRESUID
=no
10858 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10859 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10860 seteuid
=yes;cat >> confdefs.h
<<\EOF
10861 #define USE_SETRESUID 1
10868 if test $seteuid = no
; then
10869 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10870 echo "configure:10871: checking for setreuid" >&5
10871 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10872 echo $ac_n "(cached) $ac_c" 1>&6
10875 if test "$cross_compiling" = yes; then
10876 samba_cv_USE_SETREUID
=cross
10878 cat > conftest.
$ac_ext <<EOF
10879 #line 10880 "configure"
10880 #include "confdefs.h"
10882 #define AUTOCONF_TEST 1
10883 #define USE_SETREUID 1
10884 #include "confdefs.h"
10885 #include "${srcdir-.}/lib/util_sec.c"
10887 if { (eval echo configure
:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10889 samba_cv_USE_SETREUID
=yes
10891 echo "configure: failed program was:" >&5
10892 cat conftest.
$ac_ext >&5
10894 samba_cv_USE_SETREUID
=no
10901 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10902 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10903 seteuid
=yes;cat >> confdefs.h
<<\EOF
10904 #define USE_SETREUID 1
10910 if test $seteuid = no
; then
10911 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10912 echo "configure:10913: checking for seteuid" >&5
10913 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10917 if test "$cross_compiling" = yes; then
10918 samba_cv_USE_SETEUID
=cross
10920 cat > conftest.
$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10924 #define AUTOCONF_TEST 1
10925 #define USE_SETEUID 1
10926 #include "confdefs.h"
10927 #include "${srcdir-.}/lib/util_sec.c"
10929 if { (eval echo configure
:10930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10931 samba_cv_USE_SETEUID
=yes
10933 echo "configure: failed program was:" >&5
10934 cat conftest.
$ac_ext >&5
10936 samba_cv_USE_SETEUID
=no
10943 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10944 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10945 seteuid
=yes;cat >> confdefs.h
<<\EOF
10946 #define USE_SETEUID 1
10952 if test $seteuid = no
; then
10953 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10954 echo "configure:10955: checking for setuidx" >&5
10955 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10956 echo $ac_n "(cached) $ac_c" 1>&6
10959 if test "$cross_compiling" = yes; then
10960 samba_cv_USE_SETUIDX
=cross
10962 cat > conftest.
$ac_ext <<EOF
10963 #line 10964 "configure"
10964 #include "confdefs.h"
10966 #define AUTOCONF_TEST 1
10967 #define USE_SETUIDX 1
10968 #include "confdefs.h"
10969 #include "${srcdir-.}/lib/util_sec.c"
10971 if { (eval echo configure
:10972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10973 samba_cv_USE_SETUIDX
=yes
10975 echo "configure: failed program was:" >&5
10976 cat conftest.
$ac_ext >&5
10978 samba_cv_USE_SETUIDX
=no
10985 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10986 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10987 seteuid
=yes;cat >> confdefs.h
<<\EOF
10988 #define USE_SETUIDX 1
10995 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10996 echo "configure:10997: checking for working mmap" >&5
10997 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
11001 if test "$cross_compiling" = yes; then
11002 samba_cv_HAVE_MMAP
=cross
11004 cat > conftest.
$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 #include "${srcdir-.}/tests/shared_mmap.c"
11009 if { (eval echo configure
:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11011 samba_cv_HAVE_MMAP
=yes
11013 echo "configure: failed program was:" >&5
11014 cat conftest.
$ac_ext >&5
11016 samba_cv_HAVE_MMAP
=no
11023 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11024 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11025 cat >> confdefs.h
<<\EOF
11026 #define HAVE_MMAP 1
11031 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11032 echo "configure:11033: checking for ftruncate needs root" >&5
11033 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11037 if test "$cross_compiling" = yes; then
11038 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11040 cat > conftest.
$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11043 #include "${srcdir-.}/tests/ftruncroot.c"
11045 if { (eval echo configure
:11046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11047 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11049 echo "configure: failed program was:" >&5
11050 cat conftest.
$ac_ext >&5
11052 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11059 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11060 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11061 cat >> confdefs.h
<<\EOF
11062 #define FTRUNCATE_NEEDS_ROOT 1
11067 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11068 echo "configure:11069: checking for fcntl locking" >&5
11069 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11070 echo $ac_n "(cached) $ac_c" 1>&6
11073 if test "$cross_compiling" = yes; then
11074 samba_cv_HAVE_FCNTL_LOCK
=cross
11076 cat > conftest.
$ac_ext <<EOF
11077 #line 11078 "configure"
11078 #include "confdefs.h"
11079 #include "${srcdir-.}/tests/fcntl_lock.c"
11081 if { (eval echo configure
:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11083 samba_cv_HAVE_FCNTL_LOCK
=yes
11085 echo "configure: failed program was:" >&5
11086 cat conftest.
$ac_ext >&5
11088 samba_cv_HAVE_FCNTL_LOCK
=no
11095 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11096 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11097 cat >> confdefs.h
<<\EOF
11098 #define HAVE_FCNTL_LOCK 1
11103 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11104 echo "configure:11105: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11105 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11109 if test "$cross_compiling" = yes; then
11110 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11112 cat > conftest.
$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 #include "${srcdir-.}/tests/fcntl_lock64.c"
11117 if { (eval echo configure
:11118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11119 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11121 echo "configure: failed program was:" >&5
11122 cat conftest.
$ac_ext >&5
11124 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11131 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11132 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11133 cat >> confdefs.h
<<\EOF
11134 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11141 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11142 echo "configure:11143: checking for 64 bit fcntl locking" >&5
11143 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11144 echo $ac_n "(cached) $ac_c" 1>&6
11147 if test "$cross_compiling" = yes; then
11148 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11150 cat > conftest.
$ac_ext <<EOF
11151 #line 11152 "configure"
11152 #include "confdefs.h"
11154 #if defined(HAVE_UNISTD_H)
11155 #include <unistd.h>
11158 #include <stdlib.h>
11160 #ifdef HAVE_FCNTL_H
11164 #ifdef HAVE_SYS_FCNTL_H
11165 #include <sys/fcntl.h>
11167 main() { struct flock64 fl64;
11168 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11175 if { (eval echo configure
:11176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11177 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11179 echo "configure: failed program was:" >&5
11180 cat conftest.
$ac_ext >&5
11182 samba_cv_HAVE_STRUCT_FLOCK64
=no
11189 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11191 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11192 cat >> confdefs.h
<<\EOF
11193 #define HAVE_STRUCT_FLOCK64 1
11202 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11203 echo "configure:11204: checking for broken RedHat 7.2 system header files" >&5
11204 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+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"
11212 #ifdef HAVE_SYS_VFS_H
11213 #include <sys/vfs.h>
11215 #ifdef HAVE_SYS_CAPABILITY_H
11216 #include <sys/capability.h>
11223 if { (eval echo configure
:11224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11225 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11227 echo "configure: failed program was:" >&5
11228 cat conftest.
$ac_ext >&5
11230 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11235 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11236 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11237 cat >> confdefs.h
<<\EOF
11238 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11245 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11246 echo "configure:11247: checking for broken nisplus include files" >&5
11247 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11248 echo $ac_n "(cached) $ac_c" 1>&6
11251 cat > conftest.
$ac_ext <<EOF
11252 #line 11253 "configure"
11253 #include "confdefs.h"
11254 #include <sys/acl.h>
11255 #if defined(HAVE_RPCSVC_NIS_H)
11256 #include <rpcsvc/nis.h>
11262 if { (eval echo configure
:11263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11264 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11266 echo "configure: failed program was:" >&5
11267 cat conftest.
$ac_ext >&5
11269 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11274 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11275 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11276 cat >> confdefs.h
<<\EOF
11277 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11283 #################################################
11284 # check for smbwrapper support
11285 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11286 echo "configure:11287: checking whether to use smbwrapper" >&5
11287 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11288 if test "${with_smbwrapper+set}" = set; then
11289 withval
="$with_smbwrapper"
11292 echo "$ac_t""yes" 1>&6
11293 cat >> confdefs.h
<<\EOF
11294 #define WITH_SMBWRAPPER 1
11297 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11299 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11302 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11305 # Conditions under which smbwrapper should not be built.
11307 if test x
$PICFLAG = x
; then
11308 echo No support
for PIC code
- disabling smbwrapper and smbsh
11311 elif test x
$ac_cv_func_syscall = xno
; then
11312 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11318 echo "$ac_t""no" 1>&6
11322 echo "$ac_t""no" 1>&6
11327 #################################################
11328 # check for AFS clear-text auth support
11329 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11330 echo "configure:11331: checking whether to use AFS clear-text auth" >&5
11331 # Check whether --with-afs or --without-afs was given.
11332 if test "${with_afs+set}" = set; then
11333 withval
="$with_afs"
11336 echo "$ac_t""yes" 1>&6
11337 cat >> confdefs.h
<<\EOF
11343 echo "$ac_t""no" 1>&6
11347 echo "$ac_t""no" 1>&6
11353 #################################################
11354 # check for the DFS clear-text auth system
11355 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11356 echo "configure:11357: checking whether to use DFS clear-text auth" >&5
11357 # Check whether --with-dfs or --without-dfs was given.
11358 if test "${with_dfs+set}" = set; then
11359 withval
="$with_dfs"
11362 echo "$ac_t""yes" 1>&6
11363 cat >> confdefs.h
<<\EOF
11369 echo "$ac_t""no" 1>&6
11373 echo "$ac_t""no" 1>&6
11379 #################################################
11380 # see if this box has the RedHat location for kerberos
11381 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11382 echo "configure:11383: checking for /usr/kerberos" >&5
11383 if test -d /usr
/kerberos
; then
11384 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
11385 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
11386 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
11387 echo "$ac_t""yes" 1>&6
11389 echo "$ac_t""no" 1>&6
11392 #################################################
11393 # check for location of Kerberos 5 install
11394 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11395 echo "configure:11396: checking for kerberos 5 install path" >&5
11396 # Check whether --with-krb5 or --without-krb5 was given.
11397 if test "${with_krb5+set}" = set; then
11398 withval
="$with_krb5"
11401 echo "$ac_t""no" 1>&6
11404 echo "$ac_t""yes" 1>&6
11405 LIBS
="$LIBS -lkrb5"
11406 CFLAGS
="$CFLAGS -I$withval/include"
11407 CPPFLAGS
="$CPPFLAGS -I$withval/include"
11408 LDFLAGS
="$LDFLAGS -L$withval/lib"
11412 echo "$ac_t""no" 1>&6
11417 # now check for krb5.h. Some systems have the libraries without the headers!
11418 # note that this check is done here to allow for different kerberos
11420 for ac_hdr
in krb5.h
11422 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11424 echo "configure:11425: checking for $ac_hdr" >&5
11425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11426 echo $ac_n "(cached) $ac_c" 1>&6
11428 cat > conftest.
$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11434 { (eval echo configure
:11435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11436 if test -z "$ac_err"; then
11438 eval "ac_cv_header_$ac_safe=yes"
11441 echo "configure: failed program was:" >&5
11442 cat conftest.
$ac_ext >&5
11444 eval "ac_cv_header_$ac_safe=no"
11448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11449 echo "$ac_t""yes" 1>&6
11450 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11451 cat >> confdefs.h
<<EOF
11452 #define $ac_tr_hdr 1
11456 echo "$ac_t""no" 1>&6
11461 # now check for gssapi headers. This is also done here to allow for
11462 # different kerberos include paths
11463 for ac_hdr
in gssapi
/gssapi_generic.h gssapi
/gssapi.h
11465 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11467 echo "configure:11468: checking for $ac_hdr" >&5
11468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11469 echo $ac_n "(cached) $ac_c" 1>&6
11471 cat > conftest.
$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11476 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11477 { (eval echo configure
:11478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11478 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11479 if test -z "$ac_err"; then
11481 eval "ac_cv_header_$ac_safe=yes"
11484 echo "configure: failed program was:" >&5
11485 cat conftest.
$ac_ext >&5
11487 eval "ac_cv_header_$ac_safe=no"
11491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11492 echo "$ac_t""yes" 1>&6
11493 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11494 cat >> confdefs.h
<<EOF
11495 #define $ac_tr_hdr 1
11499 echo "$ac_t""no" 1>&6
11504 ##################################################################
11505 # we might need the k5crypto and com_err libraries on some systems
11506 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11507 echo "configure:11508: checking for _et_list in -lcom_err" >&5
11508 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11512 ac_save_LIBS
="$LIBS"
11513 LIBS
="-lcom_err $LIBS"
11514 cat > conftest.
$ac_ext <<EOF
11515 #line 11516 "configure"
11516 #include "confdefs.h"
11517 /* Override any gcc2 internal prototype to avoid an error. */
11518 /* We use char because int might match the return type of a gcc2
11519 builtin and then its argument prototype would still apply. */
11526 if { (eval echo configure
:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11528 eval "ac_cv_lib_$ac_lib_var=yes"
11530 echo "configure: failed program was:" >&5
11531 cat conftest.
$ac_ext >&5
11533 eval "ac_cv_lib_$ac_lib_var=no"
11536 LIBS
="$ac_save_LIBS"
11539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11540 echo "$ac_t""yes" 1>&6
11541 LIBS
="$LIBS -lcom_err"
11543 echo "$ac_t""no" 1>&6
11546 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11547 echo "configure:11548: checking for krb5_encrypt_data in -lk5crypto" >&5
11548 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11552 ac_save_LIBS
="$LIBS"
11553 LIBS
="-lk5crypto $LIBS"
11554 cat > conftest.
$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11557 /* Override any gcc2 internal prototype to avoid an error. */
11558 /* We use char because int might match the return type of a gcc2
11559 builtin and then its argument prototype would still apply. */
11560 char krb5_encrypt_data();
11563 krb5_encrypt_data()
11566 if { (eval echo configure
:11567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11568 eval "ac_cv_lib_$ac_lib_var=yes"
11570 echo "configure: failed program was:" >&5
11571 cat conftest.
$ac_ext >&5
11573 eval "ac_cv_lib_$ac_lib_var=no"
11576 LIBS
="$ac_save_LIBS"
11579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11580 echo "$ac_t""yes" 1>&6
11581 LIBS
="$LIBS -lk5crypto"
11583 echo "$ac_t""no" 1>&6
11586 echo $ac_n "checking for gss_import_name in -lgssapi_krb5""... $ac_c" 1>&6
11587 echo "configure:11588: checking for gss_import_name in -lgssapi_krb5" >&5
11588 ac_lib_var
=`echo gssapi_krb5'_'gss_import_name | sed 'y%./+-%__p_%'`
11589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11592 ac_save_LIBS
="$LIBS"
11593 LIBS
="-lgssapi_krb5 $LIBS"
11594 cat > conftest.
$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11597 /* Override any gcc2 internal prototype to avoid an error. */
11598 /* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11600 char gss_import_name();
11606 if { (eval echo configure
:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11608 eval "ac_cv_lib_$ac_lib_var=yes"
11610 echo "configure: failed program was:" >&5
11611 cat conftest.
$ac_ext >&5
11613 eval "ac_cv_lib_$ac_lib_var=no"
11616 LIBS
="$ac_save_LIBS"
11619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11620 echo "$ac_t""yes" 1>&6
11621 LIBS
="$LIBS -lgssapi_krb5"
11623 echo "$ac_t""no" 1>&6
11628 ########################################################
11629 # now see if we can find the krb5 libs in standard paths
11630 # or as specified above
11631 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11632 echo "configure:11633: checking for krb5_mk_req_extended in -lkrb5" >&5
11633 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11635 echo $ac_n "(cached) $ac_c" 1>&6
11637 ac_save_LIBS
="$LIBS"
11638 LIBS
="-lkrb5 $LIBS"
11639 cat > conftest.
$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11642 /* Override any gcc2 internal prototype to avoid an error. */
11643 /* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11645 char krb5_mk_req_extended();
11648 krb5_mk_req_extended()
11651 if { (eval echo configure
:11652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11653 eval "ac_cv_lib_$ac_lib_var=yes"
11655 echo "configure: failed program was:" >&5
11656 cat conftest.
$ac_ext >&5
11658 eval "ac_cv_lib_$ac_lib_var=no"
11661 LIBS
="$ac_save_LIBS"
11664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11665 echo "$ac_t""yes" 1>&6
11666 LIBS
="$LIBS -lkrb5";
11667 cat >> confdefs.h
<<\EOF
11668 #define HAVE_KRB5 1
11672 echo "$ac_t""no" 1>&6
11677 ##################################################################
11678 # we might need the lber lib on some systems. To avoid link errors
11679 # this test must be before the libldap test
11680 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11681 echo "configure:11682: checking for ber_scanf in -llber" >&5
11682 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11684 echo $ac_n "(cached) $ac_c" 1>&6
11686 ac_save_LIBS
="$LIBS"
11687 LIBS
="-llber $LIBS"
11688 cat > conftest.
$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11691 /* Override any gcc2 internal prototype to avoid an error. */
11692 /* We use char because int might match the return type of a gcc2
11693 builtin and then its argument prototype would still apply. */
11700 if { (eval echo configure
:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11702 eval "ac_cv_lib_$ac_lib_var=yes"
11704 echo "configure: failed program was:" >&5
11705 cat conftest.
$ac_ext >&5
11707 eval "ac_cv_lib_$ac_lib_var=no"
11710 LIBS
="$ac_save_LIBS"
11713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11714 echo "$ac_t""yes" 1>&6
11715 LIBS
="$LIBS -llber"
11717 echo "$ac_t""no" 1>&6
11721 ########################################################
11722 # now see if we can find the ldap libs in standard paths
11723 if test x
$have_ldap != xyes
; then
11724 echo $ac_n "checking for ldap_open in -lldap""... $ac_c" 1>&6
11725 echo "configure:11726: checking for ldap_open in -lldap" >&5
11726 ac_lib_var
=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
11727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11728 echo $ac_n "(cached) $ac_c" 1>&6
11730 ac_save_LIBS
="$LIBS"
11731 LIBS
="-lldap $LIBS"
11732 cat > conftest.
$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11735 /* Override any gcc2 internal prototype to avoid an error. */
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11744 if { (eval echo configure
:11745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11746 eval "ac_cv_lib_$ac_lib_var=yes"
11748 echo "configure: failed program was:" >&5
11749 cat conftest.
$ac_ext >&5
11751 eval "ac_cv_lib_$ac_lib_var=no"
11754 LIBS
="$ac_save_LIBS"
11757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11758 echo "$ac_t""yes" 1>&6
11759 LIBS
="$LIBS -lldap";
11760 cat >> confdefs.h
<<\EOF
11761 #define HAVE_LDAP 1
11765 echo "$ac_t""no" 1>&6
11771 #################################################
11772 # check for automount support
11773 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11774 echo "configure:11775: checking whether to use AUTOMOUNT" >&5
11775 # Check whether --with-automount or --without-automount was given.
11776 if test "${with_automount+set}" = set; then
11777 withval
="$with_automount"
11780 echo "$ac_t""yes" 1>&6
11781 cat >> confdefs.h
<<\EOF
11782 #define WITH_AUTOMOUNT 1
11787 echo "$ac_t""no" 1>&6
11791 echo "$ac_t""no" 1>&6
11796 #################################################
11797 # check for smbmount support
11798 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11799 echo "configure:11800: checking whether to use SMBMOUNT" >&5
11800 # Check whether --with-smbmount or --without-smbmount was given.
11801 if test "${with_smbmount+set}" = set; then
11802 withval
="$with_smbmount"
11807 echo "$ac_t""yes" 1>&6
11808 cat >> confdefs.h
<<\EOF
11809 #define WITH_SMBMOUNT 1
11812 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11815 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11820 echo "$ac_t""no" 1>&6
11825 echo "$ac_t""no" 1>&6
11832 #################################################
11833 # check for a PAM clear-text auth, accounts, password and session support
11834 with_pam_for_crypt
=no
11835 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
11836 echo "configure:11837: checking whether to use PAM" >&5
11837 # Check whether --with-pam or --without-pam was given.
11838 if test "${with_pam+set}" = set; then
11839 withval
="$with_pam"
11842 echo "$ac_t""yes" 1>&6
11843 cat >> confdefs.h
<<\EOF
11848 with_pam_for_crypt
=yes
11851 echo "$ac_t""no" 1>&6
11855 echo "$ac_t""no" 1>&6
11860 # we can't build a pam module if we don't have pam.
11861 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11862 echo "configure:11863: checking for pam_get_data in -lpam" >&5
11863 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11867 ac_save_LIBS
="$LIBS"
11869 cat > conftest.
$ac_ext <<EOF
11870 #line 11871 "configure"
11871 #include "confdefs.h"
11872 /* Override any gcc2 internal prototype to avoid an error. */
11873 /* We use char because int might match the return type of a gcc2
11874 builtin and then its argument prototype would still apply. */
11875 char pam_get_data();
11881 if { (eval echo configure
:11882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11883 eval "ac_cv_lib_$ac_lib_var=yes"
11885 echo "configure: failed program was:" >&5
11886 cat conftest.
$ac_ext >&5
11888 eval "ac_cv_lib_$ac_lib_var=no"
11891 LIBS
="$ac_save_LIBS"
11894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11895 echo "$ac_t""yes" 1>&6
11896 cat >> confdefs.h
<<\EOF
11897 #define HAVE_LIBPAM 1
11901 echo "$ac_t""no" 1>&6
11905 #################################################
11906 # check for pam_smbpass support
11907 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11908 echo "configure:11909: checking whether to use pam_smbpass" >&5
11909 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11910 if test "${with_pam_smbpass+set}" = set; then
11911 withval
="$with_pam_smbpass"
11914 echo "$ac_t""yes" 1>&6
11916 # Conditions under which pam_smbpass should not be built.
11918 if test x
$PICFLAG = x
; then
11919 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11921 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11922 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11925 PAM_MOD
="bin/pam_smbpass.so"
11929 echo "$ac_t""no" 1>&6
11933 echo "$ac_t""no" 1>&6
11939 ###############################################
11940 # test for where we get crypt() from, but only
11942 if test $with_pam_for_crypt = no
; then
11943 for ac_func
in crypt
11945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11946 echo "configure:11947: checking for $ac_func" >&5
11947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11948 echo $ac_n "(cached) $ac_c" 1>&6
11950 cat > conftest.
$ac_ext <<EOF
11951 #line 11952 "configure"
11952 #include "confdefs.h"
11953 /* System header to define __stub macros and hopefully few prototypes,
11954 which can conflict with char $ac_func(); below. */
11955 #include <assert.h>
11956 /* Override any gcc2 internal prototype to avoid an error. */
11957 /* We use char because int might match the return type of a gcc2
11958 builtin and then its argument prototype would still apply. */
11963 /* The GNU C library defines this for functions which it implements
11964 to always fail with ENOSYS. Some functions are actually named
11965 something starting with __ and the normal name is an alias. */
11966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11974 if { (eval echo configure
:11975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11976 eval "ac_cv_func_$ac_func=yes"
11978 echo "configure: failed program was:" >&5
11979 cat conftest.
$ac_ext >&5
11981 eval "ac_cv_func_$ac_func=no"
11986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11987 echo "$ac_t""yes" 1>&6
11988 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11989 cat >> confdefs.h
<<EOF
11990 #define $ac_tr_func 1
11994 echo "$ac_t""no" 1>&6
11998 if test x
"$ac_cv_func_crypt" = x
"no"; then
11999 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12000 echo "configure:12001: checking for crypt in -lcrypt" >&5
12001 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12003 echo $ac_n "(cached) $ac_c" 1>&6
12005 ac_save_LIBS
="$LIBS"
12006 LIBS
="-lcrypt $LIBS"
12007 cat > conftest.
$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12010 /* Override any gcc2 internal prototype to avoid an error. */
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12019 if { (eval echo configure
:12020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12021 eval "ac_cv_lib_$ac_lib_var=yes"
12023 echo "configure: failed program was:" >&5
12024 cat conftest.
$ac_ext >&5
12026 eval "ac_cv_lib_$ac_lib_var=no"
12029 LIBS
="$ac_save_LIBS"
12032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12033 echo "$ac_t""yes" 1>&6
12034 LIBS
="$LIBS -lcrypt";
12035 cat >> confdefs.h
<<\EOF
12036 #define HAVE_CRYPT 1
12040 echo "$ac_t""no" 1>&6
12047 ## moved after the check for -lcrypt in order to
12048 ## ensure that the necessary libraries are included
12049 ## check checking for truncated salt. Wrapped by the
12050 ## $with_pam_for_crypt variable as above --jerry
12052 if test $with_pam_for_crypt = no
; then
12053 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12054 echo "configure:12055: checking for a crypt that needs truncated salt" >&5
12055 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12059 if test "$cross_compiling" = yes; then
12060 samba_cv_HAVE_TRUNCATED_SALT
=cross
12062 cat > conftest.
$ac_ext <<EOF
12063 #line 12064 "configure"
12064 #include "confdefs.h"
12065 #include "${srcdir-.}/tests/crypttest.c"
12067 if { (eval echo configure
:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12069 samba_cv_HAVE_TRUNCATED_SALT
=no
12071 echo "configure: failed program was:" >&5
12072 cat conftest.
$ac_ext >&5
12074 samba_cv_HAVE_TRUNCATED_SALT
=yes
12081 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12082 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12083 cat >> confdefs.h
<<\EOF
12084 #define HAVE_TRUNCATED_SALT 1
12092 ########################################################################################
12094 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12096 ########################################################################################
12098 ## set the with_smbpasswd_sam as the default
12099 with_smbpasswd_sam
=yes
12102 #################################################
12103 # check for a TDB password database
12104 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12105 echo "configure:12106: checking whether to use TDB SAM database" >&5
12106 # Check whether --with-tdbsam or --without-tdbsam was given.
12107 if test "${with_tdbsam+set}" = set; then
12108 withval
="$with_tdbsam"
12111 echo "$ac_t""yes" 1>&6
12112 cat >> confdefs.h
<<\EOF
12113 #define WITH_TDB_SAM 1
12116 with_smbpasswd_sam
=no
12119 echo "$ac_t""no" 1>&6
12123 echo "$ac_t""no" 1>&6
12128 #################################################
12129 # check for a LDAP password database
12130 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12131 echo "configure:12132: checking whether to use LDAP SAM database" >&5
12132 # Check whether --with-ldapsam or --without-ldapsam was given.
12133 if test "${with_ldapsam+set}" = set; then
12134 withval
="$with_ldapsam"
12137 echo "$ac_t""yes" 1>&6
12138 cat >> confdefs.h
<<\EOF
12139 #define WITH_LDAP_SAM 1
12142 LIBS
="-lldap -llber $LIBS"
12143 with_smbpasswd_sam
=no
12146 echo "$ac_t""no" 1>&6
12150 echo "$ac_t""no" 1>&6
12155 #################################################
12156 # check for a NISPLUS password database
12157 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12158 echo "configure:12159: checking whether to use NISPLUS SAM database" >&5
12159 # Check whether --with-nisplussam or --without-nisplussam was given.
12160 if test "${with_nisplussam+set}" = set; then
12161 withval
="$with_nisplussam"
12164 echo "$ac_t""yes" 1>&6
12165 cat >> confdefs.h
<<\EOF
12166 #define WITH_NISPLUS_SAM 1
12169 with_smbpasswd_sam
=no
12172 echo "$ac_t""no" 1>&6
12176 echo "$ac_t""no" 1>&6
12181 ################################################
12182 # This test should come last because the
12183 # smbpasswd SAM is only used if another format
12184 # has not been defined
12185 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12186 echo "configure:12187: checking whether to use traditional smbpasswd file" >&5
12187 if test $with_smbpasswd_sam = yes; then
12188 echo "$ac_t""yes" 1>&6
12189 cat >> confdefs.h
<<\EOF
12190 #define WITH_SMBPASSWD_SAM 1
12194 echo "$ac_t""no" 1>&6
12197 ########################################################################################
12199 ## END OF TESTS FOR SAM BACKENDS.
12201 ########################################################################################
12203 #################################################
12204 # check for a NISPLUS_HOME support
12205 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12206 echo "configure:12207: checking whether to use NISPLUS_HOME" >&5
12207 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12208 if test "${with_nisplus_home+set}" = set; then
12209 withval
="$with_nisplus_home"
12212 echo "$ac_t""yes" 1>&6
12213 cat >> confdefs.h
<<\EOF
12214 #define WITH_NISPLUS_HOME 1
12219 echo "$ac_t""no" 1>&6
12223 echo "$ac_t""no" 1>&6
12228 #################################################
12229 # check for the secure socket layer
12230 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12231 echo "configure:12232: checking whether to use SSL" >&5
12232 # Check whether --with-ssl or --without-ssl was given.
12233 if test "${with_ssl+set}" = set; then
12234 withval
="$with_ssl"
12237 echo "$ac_t""yes" 1>&6
12238 cat >> confdefs.h
<<\EOF
12242 withval
="/usr/local/ssl" # default
12244 if test "${with_sslinc+set}" = set; then
12246 withval
="$with_sslinc"
12249 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12250 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12253 CFLAGS
="-I${withval} $CFLAGS"
12259 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12263 if test "${with_ssllib+set}" = set; then
12265 withval
="$with_ssllib"
12268 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12269 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12272 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12278 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12282 LIBS
="-lssl -lcrypto $LIBS"
12284 # if test ! -d ${withval}; then
12285 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12289 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12293 echo "$ac_t""no" 1>&6
12297 echo "$ac_t""no" 1>&6
12302 #################################################
12303 # check for syslog logging
12304 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12305 echo "configure:12306: checking whether to use syslog logging" >&5
12306 # Check whether --with-syslog or --without-syslog was given.
12307 if test "${with_syslog+set}" = set; then
12308 withval
="$with_syslog"
12311 echo "$ac_t""yes" 1>&6
12312 cat >> confdefs.h
<<\EOF
12313 #define WITH_SYSLOG 1
12318 echo "$ac_t""no" 1>&6
12322 echo "$ac_t""no" 1>&6
12327 #################################################
12328 # check for a shared memory profiling support
12329 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12330 echo "configure:12331: checking whether to use profiling" >&5
12331 # Check whether --with-profiling-data or --without-profiling-data was given.
12332 if test "${with_profiling_data+set}" = set; then
12333 withval
="$with_profiling_data"
12336 echo "$ac_t""yes" 1>&6
12337 cat >> confdefs.h
<<\EOF
12338 #define WITH_PROFILE 1
12343 echo "$ac_t""no" 1>&6
12347 echo "$ac_t""no" 1>&6
12353 #################################################
12354 # check for experimental disk-quotas support
12355 QUOTAOBJS
=smbd
/noquotas.o
12357 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12358 echo "configure:12359: checking whether to support disk-quotas" >&5
12359 # Check whether --with-quotas or --without-quotas was given.
12360 if test "${with_quotas+set}" = set; then
12361 withval
="$with_quotas"
12364 echo "$ac_t""yes" 1>&6
12367 # Check for kernel 2.4.x quota braindamage...
12368 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12369 echo "configure:12370: checking for linux 2.4.x quota braindamage.." >&5
12370 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12371 echo $ac_n "(cached) $ac_c" 1>&6
12374 cat > conftest.
$ac_ext <<EOF
12375 #line 12376 "configure"
12376 #include "confdefs.h"
12378 #include <sys/types.h>
12379 #include <asm/types.h>
12380 #include <linux/quota.h>
12381 #include <mntent.h>
12382 #include <linux/unistd.h>
12384 struct mem_dqblk D;
12387 if { (eval echo configure
:12388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12389 samba_cv_linux_2_4_quota_braindamage
=yes
12391 echo "configure: failed program was:" >&5
12392 cat conftest.
$ac_ext >&5
12394 samba_cv_linux_2_4_quota_braindamage
=no
12399 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12400 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
12401 cat >> confdefs.h
<<\EOF
12402 #define LINUX_QUOTAS_2 1
12406 cat >> confdefs.h
<<\EOF
12407 #define LINUX_QUOTAS_1 1
12415 QUOTAOBJS
=smbd
/quotas.o
12416 cat >> confdefs.h
<<\EOF
12417 #define WITH_QUOTAS 1
12422 echo "$ac_t""no" 1>&6
12426 echo "$ac_t""no" 1>&6
12432 #################################################
12433 # check for experimental utmp accounting
12435 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12436 echo "configure:12437: checking whether to support utmp accounting" >&5
12437 # Check whether --with-utmp or --without-utmp was given.
12438 if test "${with_utmp+set}" = set; then
12439 withval
="$with_utmp"
12442 echo "$ac_t""yes" 1>&6
12443 cat >> confdefs.h
<<\EOF
12444 #define WITH_UTMP 1
12449 echo "$ac_t""no" 1>&6
12453 echo "$ac_t""no" 1>&6
12458 #################################################
12459 # set private directory location
12460 # Check whether --with-privatedir or --without-privatedir was given.
12461 if test "${with_privatedir+set}" = set; then
12462 withval
="$with_privatedir"
12466 # Just in case anybody calls it without argument
12468 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12469 privatedir
='${prefix}/private'
12472 privatedir
="$withval"
12477 privatedir
='${prefix}/private'
12483 #################################################
12484 # set lock directory location
12485 # Check whether --with-lockdir or --without-lockdir was given.
12486 if test "${with_lockdir+set}" = set; then
12487 withval
="$with_lockdir"
12491 # Just in case anybody calls it without argument
12493 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12494 lockdir
='$(VARDIR)/locks'
12502 lockdir
='$(VARDIR)/locks'
12508 #################################################
12509 # set SWAT directory location
12510 # Check whether --with-swatdir or --without-swatdir was given.
12511 if test "${with_swatdir+set}" = set; then
12512 withval
="$with_swatdir"
12516 # Just in case anybody does it
12518 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12519 swatdir
='${prefix}/swat'
12527 swatdir
='${prefix}/swat'
12533 #################################################
12534 # choose native language(s) of man pages
12535 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12536 echo "configure:12537: checking chosen man pages' language(s)" >&5
12537 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12538 if test "${with_manpages_langs+set}" = set; then
12539 withval
="$with_manpages_langs"
12542 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12546 manlangs
="$withval"
12550 echo "$ac_t""$manlangs" 1>&6
12551 manlangs
=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12555 echo "$ac_t""$manlangs" 1>&6
12561 #################################################
12562 # these tests are taken from the GNU fileutils package
12563 echo "checking how to get filesystem space usage" 1>&6
12564 echo "configure:12565: checking how to get filesystem space usage" >&5
12567 # Test for statvfs64.
12568 if test $space = no
; then
12570 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12571 echo "configure:12572: checking statvfs64 function (SVR4)" >&5
12572 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12573 echo $ac_n "(cached) $ac_c" 1>&6
12575 if test "$cross_compiling" = yes; then
12576 fu_cv_sys_stat_statvfs64
=cross
12578 cat > conftest.
$ac_ext <<EOF
12579 #line 12580 "configure"
12580 #include "confdefs.h"
12582 #if defined(HAVE_UNISTD_H)
12583 #include <unistd.h>
12585 #include <sys/types.h>
12586 #include <sys/statvfs.h>
12589 struct statvfs64 fsd;
12590 exit (statvfs64 (".", &fsd));
12593 if { (eval echo configure
:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12595 fu_cv_sys_stat_statvfs64
=yes
12597 echo "configure: failed program was:" >&5
12598 cat conftest.
$ac_ext >&5
12600 fu_cv_sys_stat_statvfs64
=no
12607 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12608 if test $fu_cv_sys_stat_statvfs64 = yes; then
12610 cat >> confdefs.h
<<\EOF
12611 #define STAT_STATVFS64 1
12617 # Perform only the link test since it seems there are no variants of the
12618 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12619 # because that got a false positive on SCO OSR5. Adding the declaration
12620 # of a `struct statvfs' causes this test to fail (as it should) on such
12621 # systems. That system is reported to work fine with STAT_STATFS4 which
12622 # is what it gets when this test fails.
12623 if test $space = no
; then
12625 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12626 echo "configure:12627: checking statvfs function (SVR4)" >&5
12627 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12628 echo $ac_n "(cached) $ac_c" 1>&6
12630 cat > conftest.
$ac_ext <<EOF
12631 #line 12632 "configure"
12632 #include "confdefs.h"
12633 #include <sys/types.h>
12634 #include <sys/statvfs.h>
12636 struct statvfs fsd; statvfs (0, &fsd);
12639 if { (eval echo configure
:12640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12641 fu_cv_sys_stat_statvfs
=yes
12643 echo "configure: failed program was:" >&5
12644 cat conftest.
$ac_ext >&5
12646 fu_cv_sys_stat_statvfs
=no
12651 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12652 if test $fu_cv_sys_stat_statvfs = yes; then
12654 cat >> confdefs.h
<<\EOF
12655 #define STAT_STATVFS 1
12661 if test $space = no
; then
12662 # DEC Alpha running OSF/1
12663 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12664 echo "configure:12665: checking for 3-argument statfs function (DEC OSF/1)" >&5
12665 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12666 echo $ac_n "(cached) $ac_c" 1>&6
12668 if test "$cross_compiling" = yes; then
12669 fu_cv_sys_stat_statfs3_osf1
=no
12671 cat > conftest.
$ac_ext <<EOF
12672 #line 12673 "configure"
12673 #include "confdefs.h"
12675 #include <sys/param.h>
12676 #include <sys/types.h>
12677 #include <sys/mount.h>
12682 exit (statfs (".", &fsd, sizeof (struct statfs)));
12685 if { (eval echo configure
:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12687 fu_cv_sys_stat_statfs3_osf1
=yes
12689 echo "configure: failed program was:" >&5
12690 cat conftest.
$ac_ext >&5
12692 fu_cv_sys_stat_statfs3_osf1
=no
12699 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12700 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12702 cat >> confdefs.h
<<\EOF
12703 #define STAT_STATFS3_OSF1 1
12709 if test $space = no
; then
12711 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12712 echo "configure:12713: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12713 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12716 if test "$cross_compiling" = yes; then
12717 fu_cv_sys_stat_statfs2_bsize
=no
12719 cat > conftest.
$ac_ext <<EOF
12720 #line 12721 "configure"
12721 #include "confdefs.h"
12723 #ifdef HAVE_SYS_PARAM_H
12724 #include <sys/param.h>
12726 #ifdef HAVE_SYS_MOUNT_H
12727 #include <sys/mount.h>
12729 #ifdef HAVE_SYS_VFS_H
12730 #include <sys/vfs.h>
12736 exit (statfs (".", &fsd));
12739 if { (eval echo configure
:12740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12741 fu_cv_sys_stat_statfs2_bsize
=yes
12743 echo "configure: failed program was:" >&5
12744 cat conftest.
$ac_ext >&5
12746 fu_cv_sys_stat_statfs2_bsize
=no
12753 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12754 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12756 cat >> confdefs.h
<<\EOF
12757 #define STAT_STATFS2_BSIZE 1
12763 if test $space = no
; then
12765 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12766 echo "configure:12767: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12767 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12768 echo $ac_n "(cached) $ac_c" 1>&6
12770 if test "$cross_compiling" = yes; then
12771 fu_cv_sys_stat_statfs4
=no
12773 cat > conftest.
$ac_ext <<EOF
12774 #line 12775 "configure"
12775 #include "confdefs.h"
12776 #include <sys/types.h>
12777 #include <sys/statfs.h>
12781 exit (statfs (".", &fsd, sizeof fsd, 0));
12784 if { (eval echo configure
:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12786 fu_cv_sys_stat_statfs4
=yes
12788 echo "configure: failed program was:" >&5
12789 cat conftest.
$ac_ext >&5
12791 fu_cv_sys_stat_statfs4
=no
12798 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12799 if test $fu_cv_sys_stat_statfs4 = yes; then
12801 cat >> confdefs.h
<<\EOF
12802 #define STAT_STATFS4 1
12808 if test $space = no
; then
12809 # 4.4BSD and NetBSD
12810 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12811 echo "configure:12812: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12812 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12815 if test "$cross_compiling" = yes; then
12816 fu_cv_sys_stat_statfs2_fsize
=no
12818 cat > conftest.
$ac_ext <<EOF
12819 #line 12820 "configure"
12820 #include "confdefs.h"
12821 #include <sys/types.h>
12822 #ifdef HAVE_SYS_PARAM_H
12823 #include <sys/param.h>
12825 #ifdef HAVE_SYS_MOUNT_H
12826 #include <sys/mount.h>
12832 exit (statfs (".", &fsd));
12835 if { (eval echo configure
:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12837 fu_cv_sys_stat_statfs2_fsize
=yes
12839 echo "configure: failed program was:" >&5
12840 cat conftest.
$ac_ext >&5
12842 fu_cv_sys_stat_statfs2_fsize
=no
12849 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12850 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12852 cat >> confdefs.h
<<\EOF
12853 #define STAT_STATFS2_FSIZE 1
12859 if test $space = no
; then
12861 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12862 echo "configure:12863: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12863 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12864 echo $ac_n "(cached) $ac_c" 1>&6
12866 if test "$cross_compiling" = yes; then
12867 fu_cv_sys_stat_fs_data
=no
12869 cat > conftest.
$ac_ext <<EOF
12870 #line 12871 "configure"
12871 #include "confdefs.h"
12872 #include <sys/types.h>
12873 #ifdef HAVE_SYS_PARAM_H
12874 #include <sys/param.h>
12876 #ifdef HAVE_SYS_MOUNT_H
12877 #include <sys/mount.h>
12879 #ifdef HAVE_SYS_FS_TYPES_H
12880 #include <sys/fs_types.h>
12884 struct fs_data fsd;
12885 /* Ultrix's statfs returns 1 for success,
12886 0 for not mounted, -1 for failure. */
12887 exit (statfs (".", &fsd) != 1);
12890 if { (eval echo configure
:12891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12892 fu_cv_sys_stat_fs_data
=yes
12894 echo "configure: failed program was:" >&5
12895 cat conftest.
$ac_ext >&5
12897 fu_cv_sys_stat_fs_data
=no
12904 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12905 if test $fu_cv_sys_stat_fs_data = yes; then
12907 cat >> confdefs.h
<<\EOF
12908 #define STAT_STATFS2_FS_DATA 1
12915 # As a gating factor for large file support, in order to
12916 # use <4GB files we must have the following minimal support
12918 # long long, and a 64 bit off_t or off64_t.
12919 # If we don't have all of these then disable large
12922 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12923 echo "configure:12924: checking if large file support can be enabled" >&5
12924 cat > conftest.
$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12928 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12929 #include <sys/types.h>
12938 if { (eval echo configure
:12939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12940 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12942 echo "configure: failed program was:" >&5
12943 cat conftest.
$ac_ext >&5
12945 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12948 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12949 cat >> confdefs.h
<<\EOF
12950 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12954 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12956 # Check whether --with-spinlocks or --without-spinlocks was given.
12957 if test "${with_spinlocks+set}" = set; then
12958 withval
="$with_spinlocks"
12962 if test "x$with_spinlocks" = "xyes"; then
12963 cat >> confdefs.h
<<\EOF
12964 #define USE_SPINLOCKS 1
12968 case "$host_cpu" in
12970 cat >> confdefs.h
<<\EOF
12971 #define SPARC_SPINLOCKS 1
12976 i386|i486|i586|i686
)
12977 cat >> confdefs.h
<<\EOF
12978 #define INTEL_SPINLOCKS 1
12984 cat >> confdefs.h
<<\EOF
12985 #define MIPS_SPINLOCKS 1
12991 cat >> confdefs.h
<<\EOF
12992 #define POWERPC_SPINLOCKS 1
12999 #################################################
13000 # check for ACL support
13002 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13003 echo "configure:13004: checking whether to support ACLs" >&5
13004 # Check whether --with-acl-support or --without-acl-support was given.
13005 if test "${with_acl_support+set}" = set; then
13006 withval
="$with_acl_support"
13012 echo "$ac_t""Using UnixWare ACLs" 1>&6
13013 cat >> confdefs.h
<<\EOF
13014 #define HAVE_UNIXWARE_ACLS 1
13019 echo "$ac_t""Using solaris ACLs" 1>&6
13020 cat >> confdefs.h
<<\EOF
13021 #define HAVE_SOLARIS_ACLS 1
13026 echo "$ac_t""Using HPUX ACLs" 1>&6
13027 cat >> confdefs.h
<<\EOF
13028 #define HAVE_HPUX_ACLS 1
13033 echo "$ac_t""Using IRIX ACLs" 1>&6
13034 cat >> confdefs.h
<<\EOF
13035 #define HAVE_IRIX_ACLS 1
13040 echo "$ac_t""Using AIX ACLs" 1>&6
13041 cat >> confdefs.h
<<\EOF
13042 #define HAVE_AIX_ACLS 1
13047 echo "$ac_t""Using Tru64 ACLs" 1>&6
13048 cat >> confdefs.h
<<\EOF
13049 #define HAVE_TRU64_ACLS 1
13052 LIBS
="$LIBS -lpacl"
13055 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13056 echo "configure:13057: checking for acl_get_file in -lacl" >&5
13057 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13059 echo $ac_n "(cached) $ac_c" 1>&6
13061 ac_save_LIBS
="$LIBS"
13063 cat > conftest.
$ac_ext <<EOF
13064 #line 13065 "configure"
13065 #include "confdefs.h"
13066 /* Override any gcc2 internal prototype to avoid an error. */
13067 /* We use char because int might match the return type of a gcc2
13068 builtin and then its argument prototype would still apply. */
13069 char acl_get_file();
13075 if { (eval echo configure
:13076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13077 eval "ac_cv_lib_$ac_lib_var=yes"
13079 echo "configure: failed program was:" >&5
13080 cat conftest.
$ac_ext >&5
13082 eval "ac_cv_lib_$ac_lib_var=no"
13085 LIBS
="$ac_save_LIBS"
13088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13089 echo "$ac_t""yes" 1>&6
13090 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13092 cat >> confdefs.h
<<EOF
13093 #define $ac_tr_lib 1
13099 echo "$ac_t""no" 1>&6
13102 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13103 echo "configure:13104: checking for ACL support" >&5
13104 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13105 echo $ac_n "(cached) $ac_c" 1>&6
13108 cat > conftest.
$ac_ext <<EOF
13109 #line 13110 "configure"
13110 #include "confdefs.h"
13111 #include <sys/types.h>
13112 #include <sys/acl.h>
13114 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13117 if { (eval echo configure
:13118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13119 samba_cv_HAVE_POSIX_ACLS
=yes
13121 echo "configure: failed program was:" >&5
13122 cat conftest.
$ac_ext >&5
13124 samba_cv_HAVE_POSIX_ACLS
=no
13129 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13130 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13131 echo "$ac_t""Using posix ACLs" 1>&6
13132 cat >> confdefs.h
<<\EOF
13133 #define HAVE_POSIX_ACLS 1
13136 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13137 echo "configure:13138: checking for acl_get_perm_np" >&5
13138 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
13142 cat > conftest.
$ac_ext <<EOF
13143 #line 13144 "configure"
13144 #include "confdefs.h"
13145 #include <sys/types.h>
13146 #include <sys/acl.h>
13148 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13151 if { (eval echo configure
:13152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13153 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13155 echo "configure: failed program was:" >&5
13156 cat conftest.
$ac_ext >&5
13158 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13163 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13164 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13165 cat >> confdefs.h
<<\EOF
13166 #define HAVE_ACL_GET_PERM_NP 1
13175 echo "$ac_t""no" 1>&6
13176 cat >> confdefs.h
<<\EOF
13177 #define HAVE_NO_ACLS 1
13183 cat >> confdefs.h
<<\EOF
13184 #define HAVE_NO_ACLS 1
13187 echo "$ac_t""no" 1>&6
13192 #################################################
13193 # Check whether winbind is supported on this platform. If so we need to
13194 # build and install client programs (WINBIND_TARGETS), sbin programs
13195 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13197 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13198 echo "configure:13199: checking whether to build winbind" >&5
13200 # Initially, the value of $host_os decides whether winbind is supported
13208 winbind_no_reason
=", unsupported on $host_os"
13212 # Check the setting of --with-winbindd
13214 # Check whether --with-winbind or --without-winbind was given.
13215 if test "${with_winbind+set}" = set; then
13216 withval
="$with_winbind"
13230 # We need unix domain sockets for winbind
13232 if test x
"$HAVE_WINBIND" = x
"yes"; then
13233 if test x
"$samba_cv_unixsocket" = x
"no"; then
13234 winbind_no_reason
=", no unix domain socket support on $host_os"
13239 # Display test results
13241 if test x
"$HAVE_WINBIND" = x
"yes"; then
13243 echo "$ac_t""yes" 1>&6
13245 WINBIND_TARGETS
="bin/wbinfo"
13246 WINBIND_STARGETS
="bin/winbindd"
13247 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13248 case "$with_pam" in
13250 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13254 echo "$ac_t""no$winbind_no_reason" 1>&6
13257 WINBIND_STARGETS
=""
13258 WINBIND_LTARGETS
=""
13259 WINBIND_PAM_PROGS
=""
13262 # Substitution time!
13269 #################################################
13270 # Check to see if we should use the included popt
13272 # Check whether --with-included-popt or --without-included-popt was given.
13273 if test "${with_included_popt+set}" = set; then
13274 withval
="$with_included_popt"
13286 if test x
"$INCLUDED_POPT" != x
"yes"; then
13287 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13288 echo "configure:13289: checking for poptGetContext in -lpopt" >&5
13289 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13291 echo $ac_n "(cached) $ac_c" 1>&6
13293 ac_save_LIBS
="$LIBS"
13294 LIBS
="-lpopt $LIBS"
13295 cat > conftest.
$ac_ext <<EOF
13296 #line 13297 "configure"
13297 #include "confdefs.h"
13298 /* Override any gcc2 internal prototype to avoid an error. */
13299 /* We use char because int might match the return type of a gcc2
13300 builtin and then its argument prototype would still apply. */
13301 char poptGetContext();
13307 if { (eval echo configure
:13308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13309 eval "ac_cv_lib_$ac_lib_var=yes"
13311 echo "configure: failed program was:" >&5
13312 cat conftest.
$ac_ext >&5
13314 eval "ac_cv_lib_$ac_lib_var=no"
13317 LIBS
="$ac_save_LIBS"
13320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13321 echo "$ac_t""yes" 1>&6
13324 echo "$ac_t""no" 1>&6
13330 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13331 echo "configure:13332: checking whether to use included popt" >&5
13332 if test x
"$INCLUDED_POPT" = x
"yes"; then
13333 echo "$ac_t""$srcdir/popt" 1>&6
13334 BUILD_POPT
='$(POPT_OBJS)'
13335 FLAGS1
="-I$srcdir/popt"
13337 echo "$ac_t""no" 1>&6
13338 LIBS
="$LIBS -lpopt"
13343 #################################################
13344 # final configure stuff
13346 echo "checking configure summary"
13347 if test "$cross_compiling" = yes; then
13350 cat > conftest.
$ac_ext <<EOF
13351 #line 13352 "configure"
13352 #include "confdefs.h"
13353 #include "${srcdir-.}/tests/summary.c"
13355 if { (eval echo configure
:13356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13357 echo "configure OK";
13359 echo "configure: failed program was:" >&5
13360 cat conftest.
$ac_ext >&5
13362 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13372 cat > confcache
<<\EOF
13373 # This file is a shell script that caches the results of configure
13374 # tests run on this system so they can be shared between configure
13375 # scripts and configure runs. It is not useful on other systems.
13376 # If it contains results you don't want to keep, you may remove or edit it.
13378 # By default, configure uses ./config.cache as the cache file,
13379 # creating it if it does not exist already. You can give configure
13380 # the --cache-file=FILE option to use a different cache file; that is
13381 # what configure does when it calls configure scripts in
13382 # subdirectories, so they share the cache.
13383 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13384 # config.status only pays attention to the cache file if you give it the
13385 # --recheck option to rerun configure.
13388 # The following way of writing the cache mishandles newlines in values,
13389 # but we know of no workaround that is simple, portable, and efficient.
13390 # So, don't put newlines in cache variables' values.
13391 # Ultrix sh set writes to stderr and can't be redirected directly,
13392 # and sets the high bit in the cache file unless we assign to the vars.
13394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13396 # `set' does not quote correctly, so add quotes (double-quote substitution
13397 # turns \\\\ into \\, and sed turns \\ into \).
13399 -e "s/'/'\\\\''/g" \
13400 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13403 # `set' quotes correctly as required by POSIX, so do not add quotes.
13404 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13407 if cmp -s $cache_file confcache
; then
13410 if test -w $cache_file; then
13411 echo "updating cache $cache_file"
13412 cat confcache
> $cache_file
13414 echo "not updating unwritable cache $cache_file"
13419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13421 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13422 # Let make expand exec_prefix.
13423 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13425 # Any assignment to VPATH causes Sun make to only execute
13426 # the first set of double-colon rules, so remove it if not needed.
13427 # If there is a colon in the path, we need to keep it.
13428 if test "x$srcdir" = x.
; then
13429 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13432 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13434 DEFS
=-DHAVE_CONFIG_H
13436 # Without the "./", some shells look in PATH for config.status.
13437 : ${CONFIG_STATUS=./config.status}
13439 echo creating
$CONFIG_STATUS
13440 rm -f $CONFIG_STATUS
13441 cat > $CONFIG_STATUS <<EOF
13443 # Generated automatically by configure.
13444 # Run this file to recreate the current configuration.
13445 # This directory was configured as follows,
13446 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13448 # $0 $ac_configure_args
13450 # Compiler output produced by configure, useful for debugging
13451 # configure, is in ./config.log if it exists.
13453 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13456 case "\$ac_option" in
13457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13458 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13459 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13460 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13461 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13463 -help | --help | --hel | --he | --h)
13464 echo "\$ac_cs_usage"; exit 0 ;;
13465 *) echo "\$ac_cs_usage"; exit 1 ;;
13469 ac_given_srcdir=$srcdir
13470 ac_given_INSTALL="$INSTALL"
13472 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13474 cat >> $CONFIG_STATUS <<EOF
13476 # Protect against being on the right side of a sed subst in config.status.
13477 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13478 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13482 s%@CFLAGS@%$CFLAGS%g
13483 s%@CPPFLAGS@%$CPPFLAGS%g
13484 s%@CXXFLAGS@%$CXXFLAGS%g
13485 s%@FFLAGS@%$FFLAGS%g
13487 s%@LDFLAGS@%$LDFLAGS%g
13489 s%@exec_prefix@%$exec_prefix%g
13490 s%@prefix@%$prefix%g
13491 s%@program_transform_name@%$program_transform_name%g
13492 s%@bindir@%$bindir%g
13493 s%@sbindir@%$sbindir%g
13494 s%@libexecdir@%$libexecdir%g
13495 s%@datadir@%$datadir%g
13496 s%@sysconfdir@%$sysconfdir%g
13497 s%@sharedstatedir@%$sharedstatedir%g
13498 s%@localstatedir@%$localstatedir%g
13499 s%@libdir@%$libdir%g
13500 s%@includedir@%$includedir%g
13501 s%@oldincludedir@%$oldincludedir%g
13502 s%@infodir@%$infodir%g
13503 s%@mandir@%$mandir%g
13504 s%@RUNPROG@%$RUNPROG%g
13505 s%@MPROGS@%$MPROGS%g
13506 s%@LDSHFLAGS@%$LDSHFLAGS%g
13508 s%@HOST_OS@%$HOST_OS%g
13509 s%@PAM_MOD@%$PAM_MOD%g
13511 s%@WRAP32@%$WRAP32%g
13512 s%@PICFLAG@%$PICFLAG%g
13513 s%@PICSUFFIX@%$PICSUFFIX%g
13514 s%@POBAD_CC@%$POBAD_CC%g
13515 s%@SHLIBEXT@%$SHLIBEXT%g
13516 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13518 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13519 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13520 s%@INSTALL_DATA@%$INSTALL_DATA%g
13522 s%@BROKEN_CC@%$BROKEN_CC%g
13524 s%@host_alias@%$host_alias%g
13525 s%@host_cpu@%$host_cpu%g
13526 s%@host_vendor@%$host_vendor%g
13527 s%@host_os@%$host_os%g
13528 s%@target@%$target%g
13529 s%@target_alias@%$target_alias%g
13530 s%@target_cpu@%$target_cpu%g
13531 s%@target_vendor@%$target_vendor%g
13532 s%@target_os@%$target_os%g
13534 s%@build_alias@%$build_alias%g
13535 s%@build_cpu@%$build_cpu%g
13536 s%@build_vendor@%$build_vendor%g
13537 s%@build_os@%$build_os%g
13539 s%@LIBOBJS@%$LIBOBJS%g
13540 s%@TERMLIBS@%$TERMLIBS%g
13541 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13543 s%@QUOTAOBJS@%$QUOTAOBJS%g
13544 s%@privatedir@%$privatedir%g
13545 s%@lockdir@%$lockdir%g
13546 s%@swatdir@%$swatdir%g
13547 s%@manlangs@%$manlangs%g
13548 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13549 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13550 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13551 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13552 s%@BUILD_POPT@%$BUILD_POPT%g
13553 s%@FLAGS1@%$FLAGS1%g
13554 s%@builddir@%$builddir%g
13559 cat >> $CONFIG_STATUS <<\EOF
13561 # Split the substitutions into bite-sized pieces for seds with
13562 # small command number limits, like on Digital OSF/1 and HP-UX.
13563 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13564 ac_file
=1 # Number of current file.
13565 ac_beg
=1 # First line for current file.
13566 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13569 while $ac_more_lines; do
13570 if test $ac_beg -gt 1; then
13571 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13573 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13575 if test ! -s conftest.s
$ac_file; then
13576 ac_more_lines
=false
13577 rm -f conftest.s
$ac_file
13579 if test -z "$ac_sed_cmds"; then
13580 ac_sed_cmds
="sed -f conftest.s$ac_file"
13582 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13584 ac_file
=`expr $ac_file + 1`
13586 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13589 if test -z "$ac_sed_cmds"; then
13594 cat >> $CONFIG_STATUS <<EOF
13596 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13598 cat >> $CONFIG_STATUS <<\EOF
13599 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13602 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13603 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13604 *) ac_file_in
="${ac_file}.in" ;;
13607 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13609 # Remove last slash and all that follows it. Not all systems have dirname.
13610 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13612 # The file is in a subdirectory.
13613 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13614 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13615 # A "../" for each directory in $ac_dir_suffix.
13616 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13618 ac_dir_suffix
= ac_dots
=
13621 case "$ac_given_srcdir" in
13623 if test -z "$ac_dots"; then top_srcdir
=.
13624 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13625 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13626 *) # Relative path.
13627 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13628 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13631 case "$ac_given_INSTALL" in
13632 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13633 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13636 echo creating
"$ac_file"
13638 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13640 *Makefile
*) ac_comsub
="1i\\
13641 # $configure_input" ;;
13645 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13647 s%@configure_input@%$configure_input%g
13648 s%@srcdir@%$srcdir%g
13649 s%@top_srcdir@%$top_srcdir%g
13650 s%@INSTALL@%$INSTALL%g
13651 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13655 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13656 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13658 # ac_d sets the value in "#define NAME VALUE" lines.
13659 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13660 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13663 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13664 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13665 ac_uB
='\([ ]\)%\1#\2define\3'
13668 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13669 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13670 ac_eB
='$%\1#\2define\3'
13674 if test "${CONFIG_HEADERS+set}" != set; then
13676 cat >> $CONFIG_STATUS <<EOF
13677 CONFIG_HEADERS="include/config.h"
13679 cat >> $CONFIG_STATUS <<\EOF
13681 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13684 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13685 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13686 *) ac_file_in
="${ac_file}.in" ;;
13689 echo creating
$ac_file
13691 rm -f conftest.frag conftest.
in conftest.out
13692 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13693 cat $ac_file_inputs > conftest.
in
13697 # Transform confdefs.h into a sed script conftest.vals that substitutes
13698 # the proper values into config.h.in to produce config.h. And first:
13699 # Protect against being on the right side of a sed subst in config.status.
13700 # Protect against being in an unquoted here document in config.status.
13701 rm -f conftest.vals
13702 cat > conftest.hdr
<<\EOF
13705 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13709 sed -n -f conftest.hdr confdefs.h > conftest.vals
13712 # This sed command replaces #undef with comments. This is necessary, for
13713 # example, in the case of _POSIX_SOURCE, which is predefined and required
13714 # on some systems where configure will not decide to define it.
13715 cat >> conftest.vals <<\EOF
13716 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13719 # Break up conftest.vals because some shells have a limit on
13720 # the size of here documents, and old seds have small limits too.
13722 rm -f conftest.tail
13725 ac_lines=`grep -c . conftest.vals
`
13726 # grep -c gives empty output for an empty file on some AIX systems.
13727 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13728 # Write a limited-size here document to conftest.frag.
13729 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13730 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13732 sed -f conftest.frag conftest.in > conftest.out
13734 mv conftest.out conftest.in
13735 ' >> $CONFIG_STATUS
13736 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13737 rm -f conftest.vals
13738 mv conftest.tail conftest.vals
13740 rm -f conftest.vals
13742 cat >> $CONFIG_STATUS <<\EOF
13743 rm -f conftest.frag conftest.h
13744 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13745 cat conftest.in >> conftest.h
13747 if cmp -s $ac_file conftest.h 2>/dev/null; then
13748 echo "$ac_file is unchanged"
13751 # Remove last slash and all that follows it. Not all systems have dirname.
13752 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
13753 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13754 # The file is in a subdirectory.
13755 test ! -d "$ac_dir" && mkdir "$ac_dir"
13758 mv conftest.h $ac_file
13763 cat >> $CONFIG_STATUS <<EOF
13766 cat >> $CONFIG_STATUS <<\EOF
13770 chmod +x $CONFIG_STATUS
13771 rm -fr confdefs* $ac_clean_files
13772 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1