3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-developer turn on developer warnings and debugging [default=no]"
20 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
22 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
24 --with-smbwrapper Include SMB wrapper support (default=no) "
26 --with-afs Include AFS support (default=no) "
28 --with-dce-dfs Include DCE/DFS support (default=no)"
30 --with-krb4=base-dir Include Kerberos IV support (default=no)"
32 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
34 --with-automount Include AUTOMOUNT support (default=no)"
36 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
38 --with-pam Include PAM password database 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 # Extract the first word of "gcc", so it can be a program name with args.
628 set dummy gcc
; ac_word
=$2
629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
630 echo "configure:631: checking for $ac_word" >&5
631 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
634 if test -n "$CC"; then
635 ac_cv_prog_CC
="$CC" # Let the user override the test.
637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
639 for ac_dir
in $ac_dummy; do
640 test -z "$ac_dir" && ac_dir
=.
641 if test -f $ac_dir/$ac_word; then
650 if test -n "$CC"; then
651 echo "$ac_t""$CC" 1>&6
653 echo "$ac_t""no" 1>&6
656 if test -z "$CC"; then
657 # Extract the first word of "cc", so it can be a program name with args.
658 set dummy cc
; ac_word
=$2
659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
660 echo "configure:661: checking for $ac_word" >&5
661 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
664 if test -n "$CC"; then
665 ac_cv_prog_CC
="$CC" # Let the user override the test.
667 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
670 for ac_dir
in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir
=.
672 if test -f $ac_dir/$ac_word; then
673 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
682 if test $ac_prog_rejected = yes; then
683 # We found a bogon in the path, so make sure we never use it.
684 set dummy
$ac_cv_prog_CC
686 if test $# -gt 0; then
687 # We chose a different compiler from the bogus one.
688 # However, it has the same basename, so the bogon will be chosen
689 # first if we set CC to just the basename; use the full file name.
691 set dummy
"$ac_dir/$ac_word" "$@"
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
702 echo "$ac_t""no" 1>&6
705 if test -z "$CC"; then
708 # Extract the first word of "cl", so it can be a program name with args.
709 set dummy cl
; ac_word
=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 if test -n "$CC"; then
716 ac_cv_prog_CC
="$CC" # Let the user override the test.
718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
720 for ac_dir
in $ac_dummy; do
721 test -z "$ac_dir" && ac_dir
=.
722 if test -f $ac_dir/$ac_word; then
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
734 echo "$ac_t""no" 1>&6
739 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp
='$CPP $CPPFLAGS'
748 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling
=$ac_cv_prog_cc_cross
752 cat > conftest.
$ac_ext << EOF
754 #line 755 "configure"
755 #include "confdefs.h"
759 if { (eval echo configure
:760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
760 ac_cv_prog_cc_works
=yes
761 # If we can't run a trivial program, we are probably using a cross compiler.
762 if (.
/conftest
; exit) 2>/dev
/null
; then
763 ac_cv_prog_cc_cross
=no
765 ac_cv_prog_cc_cross
=yes
768 echo "configure: failed program was:" >&5
769 cat conftest.
$ac_ext >&5
770 ac_cv_prog_cc_works
=no
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp
='$CPP $CPPFLAGS'
776 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling
=$ac_cv_prog_cc_cross
780 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
781 if test $ac_cv_prog_cc_works = no
; then
782 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
784 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
785 echo "configure:786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
786 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
787 cross_compiling
=$ac_cv_prog_cc_cross
789 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
790 echo "configure:791: checking whether we are using GNU C" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 cat > conftest.c
<<EOF
799 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
806 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
808 if test $ac_cv_prog_gcc = yes; then
814 ac_test_CFLAGS
="${CFLAGS+set}"
815 ac_save_CFLAGS
="$CFLAGS"
817 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
818 echo "configure:819: checking whether ${CC-cc} accepts -g" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 echo 'void f(){}' > conftest.c
823 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
832 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
833 if test "$ac_test_CFLAGS" = set; then
834 CFLAGS
="$ac_save_CFLAGS"
835 elif test $ac_cv_prog_cc_g = yes; then
836 if test "$GCC" = yes; then
842 if test "$GCC" = yes; then
850 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
851 if test -f $ac_dir/install-sh
; then
853 ac_install_sh
="$ac_aux_dir/install-sh -c"
855 elif test -f $ac_dir/install.sh
; then
857 ac_install_sh
="$ac_aux_dir/install.sh -c"
861 if test -z "$ac_aux_dir"; then
862 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
864 ac_config_guess
=$ac_aux_dir/config.guess
865 ac_config_sub
=$ac_aux_dir/config.sub
866 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
868 # Find a good install program. We prefer a C program (faster),
869 # so one script is as good as another. But avoid the broken or
870 # incompatible versions:
871 # SysV /etc/install, /usr/sbin/install
872 # SunOS /usr/etc/install
875 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
878 # ./install, which can be erroneously created by make from ./install.sh.
879 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
880 echo "configure:881: checking for a BSD compatible install" >&5
881 if test -z "$INSTALL"; then
882 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
886 for ac_dir
in $PATH; do
887 # Account for people who put trailing slashes in PATH elements.
889 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
891 # OSF1 and SCO ODT 3.0 have their own names for install.
892 # Don't use installbsd from OSF since it installs stuff as root
894 for ac_prog
in ginstall scoinst
install; do
895 if test -f $ac_dir/$ac_prog; then
896 if test $ac_prog = install &&
897 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
898 # AIX install. It has an incompatible calling convention.
901 ac_cv_path_install
="$ac_dir/$ac_prog -c"
912 if test "${ac_cv_path_install+set}" = set; then
913 INSTALL
="$ac_cv_path_install"
915 # As a last resort, use the slow shell script. We don't cache a
916 # path for INSTALL within a source directory, because that will
917 # break other packages using the cache if that directory is
918 # removed, or if the path is relative.
919 INSTALL
="$ac_install_sh"
922 echo "$ac_t""$INSTALL" 1>&6
924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
925 # It thinks the first close brace ends the variable substitution.
926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
928 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
930 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
932 for ac_prog
in gawk mawk nawk
awk
934 # Extract the first word of "$ac_prog", so it can be a program name with args.
935 set dummy
$ac_prog; ac_word
=$2
936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
937 echo "configure:938: checking for $ac_word" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 if test -n "$AWK"; then
942 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
944 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
946 for ac_dir
in $ac_dummy; do
947 test -z "$ac_dir" && ac_dir
=.
948 if test -f $ac_dir/$ac_word; then
949 ac_cv_prog_AWK
="$ac_prog"
956 AWK
="$ac_cv_prog_AWK"
957 if test -n "$AWK"; then
958 echo "$ac_t""$AWK" 1>&6
960 echo "$ac_t""no" 1>&6
963 test -n "$AWK" && break
967 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
968 echo "configure:969: checking for POSIXized ISC" >&5
969 if test -d /etc
/conf
/kconfig.d
&&
970 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
972 echo "$ac_t""yes" 1>&6
973 ISC
=yes # If later tests want to check for ISC.
974 cat >> confdefs.h
<<\EOF
975 #define _POSIX_SOURCE 1
978 if test "$GCC" = yes; then
984 echo "$ac_t""no" 1>&6
989 if test "x$CC" != xcc
; then
990 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
991 echo "configure:992: checking whether $CC and cc understand -c and -o together" >&5
993 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
994 echo "configure:995: checking whether cc understands -c and -o together" >&5
996 set dummy
$CC; ac_cc
="`echo $2 |
997 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
998 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 echo 'foo(){}' > conftest.c
1002 # Make sure it works both with $CC and with simple cc.
1003 # We do the test twice because some compilers refuse to overwrite an
1004 # existing .o file with -o, though they will create one.
1005 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1006 if { (eval echo configure
:1007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1007 test -f conftest.o
&& { (eval echo configure
:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1009 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1010 if test "x$CC" != xcc
; then
1011 # Test first that cc exists at all.
1012 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1013 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1014 if { (eval echo configure
:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1015 test -f conftest.o
&& { (eval echo configure
:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1020 # cc exists but doesn't like -o.
1021 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1026 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1031 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1032 echo "$ac_t""yes" 1>&6
1034 echo "$ac_t""no" 1>&6
1035 cat >> confdefs.h
<<\EOF
1036 #define NO_MINUS_C_MINUS_O 1
1041 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1048 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1049 echo "configure:1050: checking that the C compiler understands volatile" >&5
1050 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.
$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1057 #include <sys/types.h>
1062 if { (eval echo configure
:1063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1064 samba_cv_volatile
=yes
1066 echo "configure: failed program was:" >&5
1067 cat conftest.
$ac_ext >&5
1069 samba_cv_volatile
=no
1074 echo "$ac_t""$samba_cv_volatile" 1>&6
1075 if test x
"$samba_cv_volatile" = x
"yes"; then
1076 cat >> confdefs.h
<<\EOF
1077 #define HAVE_VOLATILE 1
1084 # Do some error checking and defaulting for the host and target type.
1086 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1089 # 1. You are not allowed to specify --host, --target, and nonopt at the
1091 # 2. Host defaults to nonopt.
1092 # 3. If nonopt is not specified, then host defaults to the current host,
1093 # as determined by config.guess.
1094 # 4. Target and build default to nonopt.
1095 # 5. If nonopt is not specified, then target and build default to host.
1097 # The aliases save the names the user supplied, while $host etc.
1098 # will get canonicalized.
1099 case $host---$target---$nonopt in
1100 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1101 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1105 # Make sure we can run config.sub.
1106 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1107 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1110 echo $ac_n "checking host system type""... $ac_c" 1>&6
1111 echo "configure:1112: checking host system type" >&5
1114 case "$host_alias" in
1118 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1119 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1121 *) host_alias
=$nonopt ;;
1125 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1126 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1127 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1128 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1129 echo "$ac_t""$host" 1>&6
1131 echo $ac_n "checking target system type""... $ac_c" 1>&6
1132 echo "configure:1133: checking target system type" >&5
1134 target_alias
=$target
1135 case "$target_alias" in
1138 NONE
) target_alias
=$host_alias ;;
1139 *) target_alias
=$nonopt ;;
1143 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1144 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1145 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1146 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1147 echo "$ac_t""$target" 1>&6
1149 echo $ac_n "checking build system type""... $ac_c" 1>&6
1150 echo "configure:1151: checking build system type" >&5
1153 case "$build_alias" in
1156 NONE
) build_alias
=$host_alias ;;
1157 *) build_alias
=$nonopt ;;
1161 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1162 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1163 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1164 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1165 echo "$ac_t""$build" 1>&6
1167 test "$host_alias" != "$target_alias" &&
1168 test "$program_prefix$program_suffix$program_transform_name" = \
1170 program_prefix
=${target_alias}-
1174 *irix6
*) cat >> confdefs.h
<<\EOF
1175 #include <standards.h>
1183 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1184 echo "configure:1185: checking config.cache system type" >&5
1185 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1186 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1187 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1188 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1189 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1190 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1191 echo "$ac_t""different" 1>&6
1192 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1194 echo "$ac_t""same" 1>&6
1196 ac_cv_host_system_type
="$host"
1197 ac_cv_build_system_type
="$build"
1198 ac_cv_target_system_type
="$target"
1202 # Config CPPFLAG settings for strange OS's that must be set
1203 # before other tests.
1206 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1208 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether ${CC-cc} accepts -Ae" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 echo 'void f(){}' > conftest.c
1214 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1215 ac_cv_prog_cc_Ae
=yes
1223 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1224 # mmap on HPUX is completely broken...
1225 cat >> confdefs.h
<<\EOF
1226 #define MMAP_BLACKLIST 1
1229 if test $ac_cv_prog_cc_Ae = yes; then
1230 CPPFLAGS
="$CPPFLAGS -Ae"
1233 # Defines needed for HPUX support.
1234 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1235 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1239 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1240 cat >> confdefs.h
<<\EOF
1241 #define USE_BOTH_CRYPT_CALLS 1
1246 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1247 cat >> confdefs.h
<<\EOF
1248 #define USE_BOTH_CRYPT_CALLS 1
1255 # AIX4.x doesn't even admit to having large
1256 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1259 echo "$ac_t""enabling large file support" 1>&6
1260 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1263 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1264 # to the existance of large files..
1265 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1266 # recommendations on large file support, however it makes the
1267 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1268 # recommendation makes the compile fail on gcc2.7. JRA.
1272 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1273 echo "$ac_t""no large file support" 1>&6
1276 echo "$ac_t""enabling large file support" 1>&6
1277 if test "$ac_cv_prog_gcc" = yes; then
1278 ${CC-cc} -v >conftest.c
2>&1
1279 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1281 case "$ac_cv_gcc_compiler_version_number" in
1282 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1283 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1286 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1290 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1296 # Tests needed for SINIX large file support.
1299 if test $host = mips-sni-sysv4
; then
1300 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1301 echo "configure:1302: checking for LFS support" >&5
1302 old_CPPFLAGS
="$CPPFLAGS"
1303 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1304 if test "$cross_compiling" = yes; then
1305 SINIX_LFS_SUPPORT
=cross
1307 cat > conftest.
$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1313 #if _LFS64_LARGEFILE == 1
1320 if { (eval echo configure
:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1322 SINIX_LFS_SUPPORT
=yes
1324 echo "configure: failed program was:" >&5
1325 cat conftest.
$ac_ext >&5
1327 SINIX_LFS_SUPPORT
=no
1332 CPPFLAGS
="$old_CPPFLAGS"
1333 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1334 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1335 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1336 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1337 LIBS
="`getconf LFS64_LIBS` $LIBS"
1339 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1343 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1346 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1347 echo "configure:1348: checking for LFS support" >&5
1348 old_CPPFLAGS
="$CPPFLAGS"
1349 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1350 if test "$cross_compiling" = yes; then
1351 LINUX_LFS_SUPPORT
=cross
1353 cat > conftest.
$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1358 #include <sys/utsname.h>
1360 #if _LFS64_LARGEFILE == 1
1365 /* Ensure this is glibc 2.2 or higher */
1366 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1367 int libc_major = __GLIBC__;
1368 int libc_minor = __GLIBC_MINOR__;
1376 /* Ensure this is kernel 2.4 or higher */
1379 release = uts.release;
1380 major = atoi(strsep(&release, "."));
1381 minor = atoi(strsep(&release, "."));
1383 if (major > 2 || (major == 2 && minor > 3))
1392 if { (eval echo configure
:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1394 LINUX_LFS_SUPPORT
=yes
1396 echo "configure: failed program was:" >&5
1397 cat conftest.
$ac_ext >&5
1399 LINUX_LFS_SUPPORT
=no
1404 CPPFLAGS
="$old_CPPFLAGS"
1405 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1406 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1408 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1412 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1413 echo "configure:1414: checking for LFS support" >&5
1414 old_CPPFLAGS
="$CPPFLAGS"
1415 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1416 if test "$cross_compiling" = yes; then
1417 GLIBC_LFS_SUPPORT
=cross
1419 cat > conftest.
$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1425 #if _LFS64_LARGEFILE == 1
1432 if { (eval echo configure
:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1434 GLIBC_LFS_SUPPORT
=yes
1436 echo "configure: failed program was:" >&5
1437 cat conftest.
$ac_ext >&5
1439 GLIBC_LFS_SUPPORT
=no
1444 CPPFLAGS
="$old_CPPFLAGS"
1445 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1446 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1448 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1453 echo $ac_n "checking for inline""... $ac_c" 1>&6
1454 echo "configure:1455: checking for inline" >&5
1455 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1459 for ac_kw
in inline __inline__ __inline
; do
1460 cat > conftest.
$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1468 if { (eval echo configure
:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1470 ac_cv_c_inline
=$ac_kw; break
1472 echo "configure: failed program was:" >&5
1473 cat conftest.
$ac_ext >&5
1480 echo "$ac_t""$ac_cv_c_inline" 1>&6
1481 case "$ac_cv_c_inline" in
1483 no
) cat >> confdefs.h
<<\EOF
1487 *) cat >> confdefs.h
<<EOF
1488 #define inline $ac_cv_c_inline
1493 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1494 echo "configure:1495: checking how to run the C preprocessor" >&5
1495 # On Suns, sometimes $CPP names a directory.
1496 if test -n "$CPP" && test -d "$CPP"; then
1499 if test -z "$CPP"; then
1500 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 # This must be in double quotes, not single quotes, because CPP may get
1504 # substituted into the Makefile and "${CC-cc}" will confuse make.
1506 # On the NeXT, cc -E runs the code through the compiler's parser,
1507 # not just through cpp.
1508 cat > conftest.
$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1515 { (eval echo configure
:1516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1517 if test -z "$ac_err"; then
1521 echo "configure: failed program was:" >&5
1522 cat conftest.
$ac_ext >&5
1524 CPP
="${CC-cc} -E -traditional-cpp"
1525 cat > conftest.
$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1531 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1532 { (eval echo configure
:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1533 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1534 if test -z "$ac_err"; then
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1541 CPP
="${CC-cc} -nologo -E"
1542 cat > conftest.
$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549 { (eval echo configure
:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1551 if test -z "$ac_err"; then
1555 echo "configure: failed program was:" >&5
1556 cat conftest.
$ac_ext >&5
1565 ac_cv_prog_CPP
="$CPP"
1567 CPP
="$ac_cv_prog_CPP"
1569 ac_cv_prog_CPP
="$CPP"
1571 echo "$ac_t""$CPP" 1>&6
1573 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1574 echo "configure:1575: checking for ANSI C header files" >&5
1575 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.
$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1587 { (eval echo configure
:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1589 if test -z "$ac_err"; then
1591 ac_cv_header_stdc
=yes
1594 echo "configure: failed program was:" >&5
1595 cat conftest.
$ac_ext >&5
1597 ac_cv_header_stdc
=no
1601 if test $ac_cv_header_stdc = yes; then
1602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1603 cat > conftest.
$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1609 egrep "memchr" >/dev
/null
2>&1; then
1613 ac_cv_header_stdc
=no
1619 if test $ac_cv_header_stdc = yes; then
1620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1621 cat > conftest.
$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1627 egrep "free" >/dev
/null
2>&1; then
1631 ac_cv_header_stdc
=no
1637 if test $ac_cv_header_stdc = yes; then
1638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1639 if test "$cross_compiling" = yes; then
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1646 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1647 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1649 int main () { int i; for (i = 0; i < 256; i++)
1650 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1654 if { (eval echo configure
:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1658 echo "configure: failed program was:" >&5
1659 cat conftest.
$ac_ext >&5
1661 ac_cv_header_stdc
=no
1669 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1670 if test $ac_cv_header_stdc = yes; then
1671 cat >> confdefs.h
<<\EOF
1672 #define STDC_HEADERS 1
1678 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1680 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1681 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_hdr that defines DIR" >&5
1683 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.
$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1689 #include <sys/types.h>
1695 if { (eval echo configure
:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1697 eval "ac_cv_header_dirent_$ac_safe=yes"
1699 echo "configure: failed program was:" >&5
1700 cat conftest.
$ac_ext >&5
1702 eval "ac_cv_header_dirent_$ac_safe=no"
1706 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1708 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1709 cat >> confdefs.h
<<EOF
1710 #define $ac_tr_hdr 1
1712 ac_header_dirent
=$ac_hdr; break
1714 echo "$ac_t""no" 1>&6
1717 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1718 if test $ac_header_dirent = dirent.h
; then
1719 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1720 echo "configure:1721: checking for opendir in -ldir" >&5
1721 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 ac_save_LIBS
="$LIBS"
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 /* Override any gcc2 internal prototype to avoid an error. */
1731 /* We use char because int might match the return type of a gcc2
1732 builtin and then its argument prototype would still apply. */
1739 if { (eval echo configure
:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1741 eval "ac_cv_lib_$ac_lib_var=yes"
1743 echo "configure: failed program was:" >&5
1744 cat conftest.
$ac_ext >&5
1746 eval "ac_cv_lib_$ac_lib_var=no"
1749 LIBS
="$ac_save_LIBS"
1752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1753 echo "$ac_t""yes" 1>&6
1756 echo "$ac_t""no" 1>&6
1760 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1761 echo "configure:1762: checking for opendir in -lx" >&5
1762 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 ac_save_LIBS
="$LIBS"
1768 cat > conftest.
$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 /* Override any gcc2 internal prototype to avoid an error. */
1772 /* We use char because int might match the return type of a gcc2
1773 builtin and then its argument prototype would still apply. */
1780 if { (eval echo configure
:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1782 eval "ac_cv_lib_$ac_lib_var=yes"
1784 echo "configure: failed program was:" >&5
1785 cat conftest.
$ac_ext >&5
1787 eval "ac_cv_lib_$ac_lib_var=no"
1790 LIBS
="$ac_save_LIBS"
1793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1797 echo "$ac_t""no" 1>&6
1802 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether time.h and sys/time.h may both be included" >&5
1804 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 cat > conftest.
$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 #include <sys/types.h>
1811 #include <sys/time.h>
1817 if { (eval echo configure
:1818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819 ac_cv_header_time
=yes
1821 echo "configure: failed program was:" >&5
1822 cat conftest.
$ac_ext >&5
1824 ac_cv_header_time
=no
1829 echo "$ac_t""$ac_cv_header_time" 1>&6
1830 if test $ac_cv_header_time = yes; then
1831 cat >> confdefs.h
<<\EOF
1832 #define TIME_WITH_SYS_TIME 1
1837 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1838 echo "configure:1839: checking for sys/wait.h that is POSIX.1 compatible" >&5
1839 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 cat > conftest.
$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1845 #include <sys/types.h>
1846 #include <sys/wait.h>
1848 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1851 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1856 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1859 if { (eval echo configure
:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1861 ac_cv_header_sys_wait_h
=yes
1863 echo "configure: failed program was:" >&5
1864 cat conftest.
$ac_ext >&5
1866 ac_cv_header_sys_wait_h
=no
1871 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1872 if test $ac_cv_header_sys_wait_h = yes; then
1873 cat >> confdefs.h
<<\EOF
1874 #define HAVE_SYS_WAIT_H 1
1879 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1881 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_hdr" >&5
1884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.
$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1892 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure
:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1897 eval "ac_cv_header_$ac_safe=yes"
1900 echo "configure: failed program was:" >&5
1901 cat conftest.
$ac_ext >&5
1903 eval "ac_cv_header_$ac_safe=no"
1907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1910 cat >> confdefs.h
<<EOF
1911 #define $ac_tr_hdr 1
1915 echo "$ac_t""no" 1>&6
1919 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
1921 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_hdr" >&5
1924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 cat > conftest.
$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1932 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1933 { (eval echo configure
:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1934 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1935 if test -z "$ac_err"; then
1937 eval "ac_cv_header_$ac_safe=yes"
1940 echo "configure: failed program was:" >&5
1941 cat conftest.
$ac_ext >&5
1943 eval "ac_cv_header_$ac_safe=no"
1947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1949 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1950 cat >> confdefs.h
<<EOF
1951 #define $ac_tr_hdr 1
1955 echo "$ac_t""no" 1>&6
1959 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
1961 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_hdr" >&5
1964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 cat > conftest.
$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1972 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1973 { (eval echo configure
:1974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1974 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1975 if test -z "$ac_err"; then
1977 eval "ac_cv_header_$ac_safe=yes"
1980 echo "configure: failed program was:" >&5
1981 cat conftest.
$ac_ext >&5
1983 eval "ac_cv_header_$ac_safe=no"
1987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1989 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1990 cat >> confdefs.h
<<EOF
1991 #define $ac_tr_hdr 1
1995 echo "$ac_t""no" 1>&6
1999 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2001 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_hdr" >&5
2004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 cat > conftest.
$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2012 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2013 { (eval echo configure
:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2014 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2015 if test -z "$ac_err"; then
2017 eval "ac_cv_header_$ac_safe=yes"
2020 echo "configure: failed program was:" >&5
2021 cat conftest.
$ac_ext >&5
2023 eval "ac_cv_header_$ac_safe=no"
2027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2028 echo "$ac_t""yes" 1>&6
2029 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2030 cat >> confdefs.h
<<EOF
2031 #define $ac_tr_hdr 1
2035 echo "$ac_t""no" 1>&6
2039 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
2041 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_hdr" >&5
2044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 cat > conftest.
$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2052 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053 { (eval echo configure
:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055 if test -z "$ac_err"; then
2057 eval "ac_cv_header_$ac_safe=yes"
2060 echo "configure: failed program was:" >&5
2061 cat conftest.
$ac_ext >&5
2063 eval "ac_cv_header_$ac_safe=no"
2067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2070 cat >> confdefs.h
<<EOF
2071 #define $ac_tr_hdr 1
2075 echo "$ac_t""no" 1>&6
2079 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2081 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure
:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h
<<EOF
2111 #define $ac_tr_hdr 1
2115 echo "$ac_t""no" 1>&6
2119 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2121 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_hdr" >&5
2124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2132 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2133 { (eval echo configure
:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2134 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2135 if test -z "$ac_err"; then
2137 eval "ac_cv_header_$ac_safe=yes"
2140 echo "configure: failed program was:" >&5
2141 cat conftest.
$ac_ext >&5
2143 eval "ac_cv_header_$ac_safe=no"
2147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2149 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2150 cat >> confdefs.h
<<EOF
2151 #define $ac_tr_hdr 1
2155 echo "$ac_t""no" 1>&6
2159 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h
2161 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2163 echo "configure:2164: checking for $ac_hdr" >&5
2164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.
$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2172 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2173 { (eval echo configure
:2174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2174 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2175 if test -z "$ac_err"; then
2177 eval "ac_cv_header_$ac_safe=yes"
2180 echo "configure: failed program was:" >&5
2181 cat conftest.
$ac_ext >&5
2183 eval "ac_cv_header_$ac_safe=no"
2187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2189 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2190 cat >> confdefs.h
<<EOF
2191 #define $ac_tr_hdr 1
2195 echo "$ac_t""no" 1>&6
2201 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2202 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2206 cat > conftest.
$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2214 if { (eval echo configure
:2215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2216 ac_cv_header_shadow_h
=yes
2218 echo "configure: failed program was:" >&5
2219 cat conftest.
$ac_ext >&5
2221 ac_cv_header_shadow_h
=no
2224 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2225 cat >> confdefs.h
<<\EOF
2226 #define HAVE_SHADOW_H 1
2232 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2234 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 cat > conftest.
$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure
:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2250 eval "ac_cv_header_$ac_safe=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2256 eval "ac_cv_header_$ac_safe=no"
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h
<<EOF
2264 #define $ac_tr_hdr 1
2268 echo "$ac_t""no" 1>&6
2272 for ac_hdr
in nss.h nss_common.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2274 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_hdr" >&5
2277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 cat > conftest.
$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2285 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure
:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2290 eval "ac_cv_header_$ac_safe=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.
$ac_ext >&5
2296 eval "ac_cv_header_$ac_safe=no"
2300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2303 cat >> confdefs.h
<<EOF
2304 #define $ac_tr_hdr 1
2308 echo "$ac_t""no" 1>&6
2312 for ac_hdr
in stropts.h poll.h
2314 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_hdr" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.
$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2325 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure
:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2330 eval "ac_cv_header_$ac_safe=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2336 eval "ac_cv_header_$ac_safe=no"
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2343 cat >> confdefs.h
<<EOF
2344 #define $ac_tr_hdr 1
2348 echo "$ac_t""no" 1>&6
2352 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2354 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_hdr" >&5
2357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.
$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2365 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2366 { (eval echo configure
:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2367 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2368 if test -z "$ac_err"; then
2370 eval "ac_cv_header_$ac_safe=yes"
2373 echo "configure: failed program was:" >&5
2374 cat conftest.
$ac_ext >&5
2376 eval "ac_cv_header_$ac_safe=no"
2380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2383 cat >> confdefs.h
<<EOF
2384 #define $ac_tr_hdr 1
2388 echo "$ac_t""no" 1>&6
2392 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2394 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2405 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure
:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2410 eval "ac_cv_header_$ac_safe=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.
$ac_ext >&5
2416 eval "ac_cv_header_$ac_safe=no"
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423 cat >> confdefs.h
<<EOF
2424 #define $ac_tr_hdr 1
2428 echo "$ac_t""no" 1>&6
2433 # For experimental utmp support (lastlog on some BSD-like systems)
2434 for ac_hdr
in utmp.h utmpx.h lastlog.h
2436 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_hdr" >&5
2439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure
:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2452 eval "ac_cv_header_$ac_safe=yes"
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2458 eval "ac_cv_header_$ac_safe=no"
2462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2463 echo "$ac_t""yes" 1>&6
2464 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2465 cat >> confdefs.h
<<EOF
2466 #define $ac_tr_hdr 1
2470 echo "$ac_t""no" 1>&6
2475 # For quotas on Veritas VxFS filesystems
2476 for ac_hdr
in sys
/fs
/vx_quota.h
2478 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_hdr" >&5
2481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.
$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2489 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2490 { (eval echo configure
:2491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2491 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2492 if test -z "$ac_err"; then
2494 eval "ac_cv_header_$ac_safe=yes"
2497 echo "configure: failed program was:" >&5
2498 cat conftest.
$ac_ext >&5
2500 eval "ac_cv_header_$ac_safe=no"
2504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2505 echo "$ac_t""yes" 1>&6
2506 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2507 cat >> confdefs.h
<<EOF
2508 #define $ac_tr_hdr 1
2512 echo "$ac_t""no" 1>&6
2517 echo $ac_n "checking size of int""... $ac_c" 1>&6
2518 echo "configure:2519: checking size of int" >&5
2519 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 if test "$cross_compiling" = yes; then
2523 ac_cv_sizeof_int
=cross
2525 cat > conftest.
$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2531 FILE *f=fopen("conftestval", "w");
2533 fprintf(f, "%d\n", sizeof(int));
2537 if { (eval echo configure
:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2539 ac_cv_sizeof_int
=`cat conftestval`
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2550 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2551 cat >> confdefs.h
<<EOF
2552 #define SIZEOF_INT $ac_cv_sizeof_int
2556 echo $ac_n "checking size of long""... $ac_c" 1>&6
2557 echo "configure:2558: checking size of long" >&5
2558 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2561 if test "$cross_compiling" = yes; then
2562 ac_cv_sizeof_long
=cross
2564 cat > conftest.
$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2570 FILE *f=fopen("conftestval", "w");
2572 fprintf(f, "%d\n", sizeof(long));
2576 if { (eval echo configure
:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2578 ac_cv_sizeof_long
=`cat conftestval`
2580 echo "configure: failed program was:" >&5
2581 cat conftest.
$ac_ext >&5
2589 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2590 cat >> confdefs.h
<<EOF
2591 #define SIZEOF_LONG $ac_cv_sizeof_long
2595 echo $ac_n "checking size of short""... $ac_c" 1>&6
2596 echo "configure:2597: checking size of short" >&5
2597 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 if test "$cross_compiling" = yes; then
2601 ac_cv_sizeof_short
=cross
2603 cat > conftest.
$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2609 FILE *f=fopen("conftestval", "w");
2611 fprintf(f, "%d\n", sizeof(short));
2615 if { (eval echo configure
:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2617 ac_cv_sizeof_short
=`cat conftestval`
2619 echo "configure: failed program was:" >&5
2620 cat conftest.
$ac_ext >&5
2622 ac_cv_sizeof_short
=0
2628 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2629 cat >> confdefs.h
<<EOF
2630 #define SIZEOF_SHORT $ac_cv_sizeof_short
2635 echo $ac_n "checking for working const""... $ac_c" 1>&6
2636 echo "configure:2637: checking for working const" >&5
2637 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 cat > conftest.
$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2646 /* Ultrix mips cc rejects this. */
2647 typedef int charset[2]; const charset x;
2648 /* SunOS 4.1.1 cc rejects this. */
2649 char const *const *ccp;
2651 /* NEC SVR4.0.2 mips cc rejects this. */
2652 struct point {int x, y;};
2653 static struct point const zero = {0,0};
2654 /* AIX XL C 1.02.0.0 rejects this.
2655 It does not let you subtract one const X* pointer from another in an arm
2656 of an if-expression whose if-part is not a constant expression */
2657 const char *g = "string";
2658 ccp = &g + (g ? g-g : 0);
2659 /* HPUX 7.0 cc rejects these. */
2662 ccp = (char const *const *) p;
2663 { /* SCO 3.2v4 cc rejects this. */
2665 char const *s = 0 ? (char *) 0 : (char const *) 0;
2669 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2671 const int *foo = &x[0];
2674 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2675 typedef const int *iptr;
2679 { /* AIX XL C 1.02.0.0 rejects this saying
2680 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2681 struct s { int j; const int *ap[3]; };
2682 struct s *b; b->j = 5;
2684 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2690 if { (eval echo configure
:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2694 echo "configure: failed program was:" >&5
2695 cat conftest.
$ac_ext >&5
2702 echo "$ac_t""$ac_cv_c_const" 1>&6
2703 if test $ac_cv_c_const = no
; then
2704 cat >> confdefs.h
<<\EOF
2710 echo $ac_n "checking for inline""... $ac_c" 1>&6
2711 echo "configure:2712: checking for inline" >&5
2712 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2716 for ac_kw
in inline __inline__ __inline
; do
2717 cat > conftest.
$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2725 if { (eval echo configure
:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2727 ac_cv_c_inline
=$ac_kw; break
2729 echo "configure: failed program was:" >&5
2730 cat conftest.
$ac_ext >&5
2737 echo "$ac_t""$ac_cv_c_inline" 1>&6
2738 case "$ac_cv_c_inline" in
2740 no
) cat >> confdefs.h
<<\EOF
2744 *) cat >> confdefs.h
<<EOF
2745 #define inline $ac_cv_c_inline
2750 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2751 echo "configure:2752: checking whether byte ordering is bigendian" >&5
2752 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 ac_cv_c_bigendian
=unknown
2756 # See if sys/param.h defines the BYTE_ORDER macro.
2757 cat > conftest.
$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 #include <sys/types.h>
2761 #include <sys/param.h>
2764 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2769 if { (eval echo configure
:2770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2771 # It does; now see whether it defined to BIG_ENDIAN or not.
2772 cat > conftest.
$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <sys/types.h>
2776 #include <sys/param.h>
2779 #if BYTE_ORDER != BIG_ENDIAN
2784 if { (eval echo configure
:2785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2786 ac_cv_c_bigendian
=yes
2788 echo "configure: failed program was:" >&5
2789 cat conftest.
$ac_ext >&5
2791 ac_cv_c_bigendian
=no
2795 echo "configure: failed program was:" >&5
2796 cat conftest.
$ac_ext >&5
2799 if test $ac_cv_c_bigendian = unknown
; then
2800 if test "$cross_compiling" = yes; then
2801 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2803 cat > conftest.
$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2807 /* Are we little or big endian? From Harbison&Steele. */
2811 char c[sizeof (long)];
2814 exit (u.c[sizeof (long) - 1] == 1);
2817 if { (eval echo configure
:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2819 ac_cv_c_bigendian
=no
2821 echo "configure: failed program was:" >&5
2822 cat conftest.
$ac_ext >&5
2824 ac_cv_c_bigendian
=yes
2832 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2833 if test $ac_cv_c_bigendian = yes; then
2834 cat >> confdefs.h
<<\EOF
2835 #define WORDS_BIGENDIAN 1
2840 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2841 echo "configure:2842: checking whether char is unsigned" >&5
2842 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2845 if test "$GCC" = yes; then
2846 # GCC predefines this symbol on systems where it applies.
2847 cat > conftest.
$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2850 #ifdef __CHAR_UNSIGNED__
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856 egrep "yes" >/dev
/null
2>&1; then
2858 ac_cv_c_char_unsigned
=yes
2861 ac_cv_c_char_unsigned
=no
2866 if test "$cross_compiling" = yes; then
2867 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2869 cat > conftest.
$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2873 #if !defined(__STDC__) || __STDC__ != 1
2877 volatile char c = 255; exit(c < 0);
2880 if { (eval echo configure
:2881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2882 ac_cv_c_char_unsigned
=yes
2884 echo "configure: failed program was:" >&5
2885 cat conftest.
$ac_ext >&5
2887 ac_cv_c_char_unsigned
=no
2895 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2896 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2897 cat >> confdefs.h
<<\EOF
2898 #define __CHAR_UNSIGNED__ 1
2904 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2905 echo "configure:2906: checking return type of signal handlers" >&5
2906 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 cat > conftest.
$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 #include <sys/types.h>
2918 extern "C" void (*signal (int, void (*)(int)))(int);
2920 void (*signal ()) ();
2927 if { (eval echo configure
:2928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2929 ac_cv_type_signal
=void
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 ac_cv_type_signal
=int
2939 echo "$ac_t""$ac_cv_type_signal" 1>&6
2940 cat >> confdefs.h
<<EOF
2941 #define RETSIGTYPE $ac_cv_type_signal
2945 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2946 echo "configure:2947: checking for uid_t in sys/types.h" >&5
2947 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <sys/types.h>
2955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2956 egrep "uid_t" >/dev
/null
2>&1; then
2958 ac_cv_type_uid_t
=yes
2967 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2968 if test $ac_cv_type_uid_t = no
; then
2969 cat >> confdefs.h
<<\EOF
2973 cat >> confdefs.h
<<\EOF
2979 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2980 echo "configure:2981: checking for mode_t" >&5
2981 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 cat > conftest.
$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 #include <sys/types.h>
2993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2994 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2996 ac_cv_type_mode_t
=yes
2999 ac_cv_type_mode_t
=no
3004 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3005 if test $ac_cv_type_mode_t = no
; then
3006 cat >> confdefs.h
<<\EOF
3012 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3013 echo "configure:3014: checking for off_t" >&5
3014 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 cat > conftest.
$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 #include <sys/types.h>
3026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3027 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3029 ac_cv_type_off_t
=yes
3037 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3038 if test $ac_cv_type_off_t = no
; then
3039 cat >> confdefs.h
<<\EOF
3045 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3046 echo "configure:3047: checking for size_t" >&5
3047 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.
$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <sys/types.h>
3059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3060 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3062 ac_cv_type_size_t
=yes
3065 ac_cv_type_size_t
=no
3070 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3071 if test $ac_cv_type_size_t = no
; then
3072 cat >> confdefs.h
<<\EOF
3073 #define size_t unsigned
3078 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3079 echo "configure:3080: checking for pid_t" >&5
3080 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.
$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 #include <sys/types.h>
3092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3093 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3095 ac_cv_type_pid_t
=yes
3103 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3104 if test $ac_cv_type_pid_t = no
; then
3105 cat >> confdefs.h
<<\EOF
3111 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3112 echo "configure:3113: checking for st_rdev in struct stat" >&5
3113 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 cat > conftest.
$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 #include <sys/types.h>
3120 #include <sys/stat.h>
3122 struct stat s; s.st_rdev;
3125 if { (eval echo configure
:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3127 ac_cv_struct_st_rdev
=yes
3129 echo "configure: failed program was:" >&5
3130 cat conftest.
$ac_ext >&5
3132 ac_cv_struct_st_rdev
=no
3137 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3138 if test $ac_cv_struct_st_rdev = yes; then
3139 cat >> confdefs.h
<<\EOF
3140 #define HAVE_ST_RDEV 1
3145 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3146 echo "configure:3147: checking for d_off in dirent" >&5
3147 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.
$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3155 #include <sys/types.h>
3158 struct dirent d; d.d_off;
3161 if { (eval echo configure
:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3163 ac_cv_dirent_d_off
=yes
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3168 ac_cv_dirent_d_off
=no
3173 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3174 if test $ac_cv_dirent_d_off = yes; then
3175 cat >> confdefs.h
<<\EOF
3176 #define HAVE_DIRENT_D_OFF 1
3181 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3182 echo "configure:3183: checking for ino_t" >&5
3183 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 cat > conftest.
$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 #include <sys/types.h>
3195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3196 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3198 ac_cv_type_ino_t
=yes
3206 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3207 if test $ac_cv_type_ino_t = no
; then
3208 cat >> confdefs.h
<<\EOF
3209 #define ino_t unsigned
3214 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3215 echo "configure:3216: checking for loff_t" >&5
3216 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.
$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <sys/types.h>
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3231 ac_cv_type_loff_t
=yes
3234 ac_cv_type_loff_t
=no
3239 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3240 if test $ac_cv_type_loff_t = no
; then
3241 cat >> confdefs.h
<<\EOF
3242 #define loff_t off_t
3247 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3248 echo "configure:3249: checking for offset_t" >&5
3249 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.
$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 #include <sys/types.h>
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3264 ac_cv_type_offset_t
=yes
3267 ac_cv_type_offset_t
=no
3272 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3273 if test $ac_cv_type_offset_t = no
; then
3274 cat >> confdefs.h
<<\EOF
3275 #define offset_t loff_t
3280 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3281 echo "configure:3282: checking for ssize_t" >&5
3282 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.
$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3297 ac_cv_type_ssize_t
=yes
3300 ac_cv_type_ssize_t
=no
3305 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3306 if test $ac_cv_type_ssize_t = no
; then
3307 cat >> confdefs.h
<<\EOF
3313 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3314 echo "configure:3315: checking for wchar_t" >&5
3315 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.
$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3330 ac_cv_type_wchar_t
=yes
3333 ac_cv_type_wchar_t
=no
3338 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3339 if test $ac_cv_type_wchar_t = no
; then
3340 cat >> confdefs.h
<<\EOF
3341 #define wchar_t unsigned short
3347 ############################################
3348 # for cups support we need libcups, and a handful of header files
3350 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3351 echo "configure:3352: checking for httpConnect in -lcups" >&5
3352 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 ac_save_LIBS
="$LIBS"
3358 cat > conftest.
$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3370 if { (eval echo configure
:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3372 eval "ac_cv_lib_$ac_lib_var=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.
$ac_ext >&5
3377 eval "ac_cv_lib_$ac_lib_var=no"
3380 LIBS
="$ac_save_LIBS"
3383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3387 cat >> confdefs.h
<<EOF
3388 #define $ac_tr_lib 1
3394 echo "$ac_t""no" 1>&6
3398 # I wonder if there is a nicer way of doing this?
3400 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3401 for ac_hdr
in cups
/cups.h cups
/language.h
3403 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_hdr" >&5
3406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.
$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3414 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3415 { (eval echo configure
:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3416 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3417 if test -z "$ac_err"; then
3419 eval "ac_cv_header_$ac_safe=yes"
3422 echo "configure: failed program was:" >&5
3423 cat conftest.
$ac_ext >&5
3425 eval "ac_cv_header_$ac_safe=no"
3429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3430 echo "$ac_t""yes" 1>&6
3431 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3432 cat >> confdefs.h
<<EOF
3433 #define $ac_tr_hdr 1
3437 echo "$ac_t""no" 1>&6
3441 if test x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3442 if test x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3443 cat >> confdefs.h
<<\EOF
3451 ############################################
3452 # we need libdl for PAM and the new VFS code
3453 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3454 echo "configure:3455: checking for dlopen in -ldl" >&5
3455 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 ac_save_LIBS
="$LIBS"
3461 cat > conftest.
$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 /* Override any gcc2 internal prototype to avoid an error. */
3465 /* We use char because int might match the return type of a gcc2
3466 builtin and then its argument prototype would still apply. */
3473 if { (eval echo configure
:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3475 eval "ac_cv_lib_$ac_lib_var=yes"
3477 echo "configure: failed program was:" >&5
3478 cat conftest.
$ac_ext >&5
3480 eval "ac_cv_lib_$ac_lib_var=no"
3483 LIBS
="$ac_save_LIBS"
3486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3487 echo "$ac_t""yes" 1>&6
3489 cat >> confdefs.h
<<\EOF
3490 #define HAVE_LIBDL 1
3494 echo "$ac_t""no" 1>&6
3498 ############################################
3499 # check if the compiler can do immediate structures
3500 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3501 echo "configure:3502: checking for immediate structures" >&5
3502 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3506 cat > conftest.
$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3513 #define X_FOOBAR(x) ((FOOBAR) { x })
3514 typedef struct {unsigned x;} FOOBAR;
3515 FOOBAR f = X_FOOBAR(1);
3519 if { (eval echo configure
:3520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3521 samba_cv_immediate_structures
=yes
3523 echo "configure: failed program was:" >&5
3524 cat conftest.
$ac_ext >&5
3526 samba_cv_immediate_structures
=no
3531 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3532 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3533 cat >> confdefs.h
<<\EOF
3534 #define HAVE_IMMEDIATE_STRUCTURES 1
3539 ############################################
3540 # check for unix domain sockets
3541 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3542 echo "configure:3543: checking for unix domain sockets" >&5
3543 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.
$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3551 #include <sys/types.h>
3554 #include <sys/socket.h>
3558 struct sockaddr_un sunaddr;
3559 sunaddr.sun_family = AF_UNIX;
3563 if { (eval echo configure
:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3565 samba_cv_unixsocket
=yes
3567 echo "configure: failed program was:" >&5
3568 cat conftest.
$ac_ext >&5
3570 samba_cv_unixsocket
=no
3575 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3576 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3577 cat >> confdefs.h
<<\EOF
3578 #define HAVE_UNIXSOCKET 1
3584 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3585 echo "configure:3586: checking for socklen_t type" >&5
3586 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3590 cat > conftest.
$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3594 #include <sys/types.h>
3599 #include <sys/socket.h>
3604 if { (eval echo configure
:3605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606 samba_cv_socklen_t
=yes
3608 echo "configure: failed program was:" >&5
3609 cat conftest.
$ac_ext >&5
3611 samba_cv_socklen_t
=no
3616 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3617 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3618 cat >> confdefs.h
<<\EOF
3619 #define HAVE_SOCKLEN_T_TYPE 1
3624 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3625 echo "configure:3626: checking for sig_atomic_t type" >&5
3626 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.
$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3634 #include <sys/types.h>
3644 if { (eval echo configure
:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 samba_cv_sig_atomic_t
=yes
3648 echo "configure: failed program was:" >&5
3649 cat conftest.
$ac_ext >&5
3651 samba_cv_sig_atomic_t
=no
3656 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3657 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3658 cat >> confdefs.h
<<\EOF
3659 #define HAVE_SIG_ATOMIC_T_TYPE 1
3664 # stupid headers have the functions but no declaration. grrrr.
3666 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3667 echo "configure:3668: checking for errno declaration" >&5
3668 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3672 cat > conftest.
$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3680 if { (eval echo configure
:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682 ac_cv_have_errno_decl
=yes
3684 echo "configure: failed program was:" >&5
3685 cat conftest.
$ac_ext >&5
3687 ac_cv_have_errno_decl
=no
3692 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3693 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3694 cat >> confdefs.h
<<\EOF
3695 #define HAVE_ERRNO_DECL 1
3701 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3702 echo "configure:3703: checking for setresuid declaration" >&5
3703 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.
$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3712 int i = (int)setresuid
3715 if { (eval echo configure
:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3717 ac_cv_have_setresuid_decl
=yes
3719 echo "configure: failed program was:" >&5
3720 cat conftest.
$ac_ext >&5
3722 ac_cv_have_setresuid_decl
=no
3727 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3728 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3729 cat >> confdefs.h
<<\EOF
3730 #define HAVE_SETRESUID_DECL 1
3736 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3737 echo "configure:3738: checking for setresgid declaration" >&5
3738 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.
$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3747 int i = (int)setresgid
3750 if { (eval echo configure
:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752 ac_cv_have_setresgid_decl
=yes
3754 echo "configure: failed program was:" >&5
3755 cat conftest.
$ac_ext >&5
3757 ac_cv_have_setresgid_decl
=no
3762 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3763 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3764 cat >> confdefs.h
<<\EOF
3765 #define HAVE_SETRESGID_DECL 1
3771 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3772 echo "configure:3773: checking for asprintf declaration" >&5
3773 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3777 cat > conftest.
$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3782 int i = (int)asprintf
3785 if { (eval echo configure
:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3787 ac_cv_have_asprintf_decl
=yes
3789 echo "configure: failed program was:" >&5
3790 cat conftest.
$ac_ext >&5
3792 ac_cv_have_asprintf_decl
=no
3797 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3798 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3799 cat >> confdefs.h
<<\EOF
3800 #define HAVE_ASPRINTF_DECL 1
3806 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3807 echo "configure:3808: checking for vasprintf declaration" >&5
3808 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3812 cat > conftest.
$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3817 int i = (int)vasprintf
3820 if { (eval echo configure
:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 ac_cv_have_vasprintf_decl
=yes
3824 echo "configure: failed program was:" >&5
3825 cat conftest.
$ac_ext >&5
3827 ac_cv_have_vasprintf_decl
=no
3832 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3833 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3834 cat >> confdefs.h
<<\EOF
3835 #define HAVE_VASPRINTF_DECL 1
3841 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3842 echo "configure:3843: checking for vsnprintf declaration" >&5
3843 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.
$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3852 int i = (int)vsnprintf
3855 if { (eval echo configure
:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3857 ac_cv_have_vsnprintf_decl
=yes
3859 echo "configure: failed program was:" >&5
3860 cat conftest.
$ac_ext >&5
3862 ac_cv_have_vsnprintf_decl
=no
3867 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3868 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
3869 cat >> confdefs.h
<<\EOF
3870 #define HAVE_VSNPRINTF_DECL 1
3876 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3877 echo "configure:3878: checking for snprintf declaration" >&5
3878 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3882 cat > conftest.
$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3887 int i = (int)snprintf
3890 if { (eval echo configure
:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892 ac_cv_have_snprintf_decl
=yes
3894 echo "configure: failed program was:" >&5
3895 cat conftest.
$ac_ext >&5
3897 ac_cv_have_snprintf_decl
=no
3902 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3903 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
3904 cat >> confdefs.h
<<\EOF
3905 #define HAVE_SNPRINTF_DECL 1
3911 # and glibc has setresuid under linux but the function does
3912 # nothing until kernel 2.1.44! very dumb.
3913 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3914 echo "configure:3915: checking for real setresuid" >&5
3915 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3919 if test "$cross_compiling" = yes; then
3920 samba_cv_have_setresuid
=cross
3922 cat > conftest.
$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3926 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3928 if { (eval echo configure
:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3930 samba_cv_have_setresuid
=yes
3932 echo "configure: failed program was:" >&5
3933 cat conftest.
$ac_ext >&5
3935 samba_cv_have_setresuid
=no
3942 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3943 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3944 cat >> confdefs.h
<<\EOF
3945 #define HAVE_SETRESUID 1
3950 # Do the same check for setresguid...
3952 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3953 echo "configure:3954: checking for real setresgid" >&5
3954 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3958 if test "$cross_compiling" = yes; then
3959 samba_cv_have_setresgid
=cross
3961 cat > conftest.
$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3966 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3968 if { (eval echo configure
:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3970 samba_cv_have_setresgid
=yes
3972 echo "configure: failed program was:" >&5
3973 cat conftest.
$ac_ext >&5
3975 samba_cv_have_setresgid
=no
3982 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3983 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
3984 cat >> confdefs.h
<<\EOF
3985 #define HAVE_SETRESGID 1
3990 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3991 echo "configure:3992: checking for 8-bit clean memcmp" >&5
3992 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3995 if test "$cross_compiling" = yes; then
3996 ac_cv_func_memcmp_clean
=no
3998 cat > conftest.
$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4005 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4009 if { (eval echo configure
:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4011 ac_cv_func_memcmp_clean
=yes
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 ac_cv_func_memcmp_clean
=no
4023 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4024 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4027 ###############################################
4028 # test for where we get crypt() from
4029 for ac_func
in crypt
4031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4032 echo "configure:4033: checking for $ac_func" >&5
4033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4036 cat > conftest.
$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 /* System header to define __stub macros and hopefully few prototypes,
4040 which can conflict with char $ac_func(); below. */
4042 /* Override any gcc2 internal prototype to avoid an error. */
4043 /* We use char because int might match the return type of a gcc2
4044 builtin and then its argument prototype would still apply. */
4049 /* The GNU C library defines this for functions which it implements
4050 to always fail with ENOSYS. Some functions are actually named
4051 something starting with __ and the normal name is an alias. */
4052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4060 if { (eval echo configure
:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4062 eval "ac_cv_func_$ac_func=yes"
4064 echo "configure: failed program was:" >&5
4065 cat conftest.
$ac_ext >&5
4067 eval "ac_cv_func_$ac_func=no"
4072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4075 cat >> confdefs.h
<<EOF
4076 #define $ac_tr_func 1
4080 echo "$ac_t""no" 1>&6
4084 if test x
"$ac_cv_func_crypt" = x
"no"; then
4085 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4086 echo "configure:4087: checking for crypt in -lcrypt" >&5
4087 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_save_LIBS
="$LIBS"
4092 LIBS
="-lcrypt $LIBS"
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4105 if { (eval echo configure
:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.
$ac_ext >&5
4112 eval "ac_cv_lib_$ac_lib_var=no"
4115 LIBS
="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 LIBS
="$LIBS -lcrypt";
4121 cat >> confdefs.h
<<\EOF
4122 #define HAVE_CRYPT 1
4126 echo "$ac_t""no" 1>&6
4132 ###############################################
4133 # Readline included by default unless explicitly asked not to
4134 test "${with_readline+set}" != "set" && with_readline
=yes
4136 # test for where we get readline() from
4137 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4138 echo "configure:4139: checking whether to use readline" >&5
4139 # Check whether --with-readline or --without-readline was given.
4140 if test "${with_readline+set}" = set; then
4141 withval
="$with_readline"
4142 case "$with_readline" in
4144 echo "$ac_t""yes" 1>&6
4146 for ac_hdr
in readline.h
history.h readline
/readline.h
4148 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4150 echo "configure:4151: checking for $ac_hdr" >&5
4151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4154 cat > conftest.
$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4159 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4160 { (eval echo configure
:4161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4161 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4162 if test -z "$ac_err"; then
4164 eval "ac_cv_header_$ac_safe=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4170 eval "ac_cv_header_$ac_safe=no"
4174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4175 echo "$ac_t""yes" 1>&6
4176 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4177 cat >> confdefs.h
<<EOF
4178 #define $ac_tr_hdr 1
4182 echo "$ac_t""no" 1>&6
4186 for ac_hdr
in readline
/history.h
4188 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.
$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4199 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure
:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4204 eval "ac_cv_header_$ac_safe=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.
$ac_ext >&5
4210 eval "ac_cv_header_$ac_safe=no"
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h
<<EOF
4218 #define $ac_tr_hdr 1
4222 echo "$ac_t""no" 1>&6
4227 for ac_hdr
in readline.h readline
/readline.h
4229 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4231 echo "configure:4232: checking for $ac_hdr" >&5
4232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 cat > conftest.
$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4240 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4241 { (eval echo configure
:4242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4242 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4243 if test -z "$ac_err"; then
4245 eval "ac_cv_header_$ac_safe=yes"
4248 echo "configure: failed program was:" >&5
4249 cat conftest.
$ac_ext >&5
4251 eval "ac_cv_header_$ac_safe=no"
4255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4258 cat >> confdefs.h
<<EOF
4259 #define $ac_tr_hdr 1
4262 for termlib
in ncurses curses termcap terminfo termlib
; do
4263 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4264 echo "configure:4265: checking for tgetent in -l${termlib}" >&5
4265 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 ac_save_LIBS
="$LIBS"
4270 LIBS
="-l${termlib} $LIBS"
4271 cat > conftest.
$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4283 if { (eval echo configure
:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.
$ac_ext >&5
4290 eval "ac_cv_lib_$ac_lib_var=no"
4293 LIBS
="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 TERMLIBS
="-l${termlib}"; break
4300 echo "$ac_t""no" 1>&6
4304 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4305 echo "configure:4306: checking for rl_callback_handler_install in -lreadline" >&5
4306 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 ac_save_LIBS
="$LIBS"
4311 LIBS
="-lreadline $TERMLIBS $LIBS"
4312 cat > conftest.
$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 /* Override any gcc2 internal prototype to avoid an error. */
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4318 char rl_callback_handler_install();
4321 rl_callback_handler_install()
4324 if { (eval echo configure
:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4326 eval "ac_cv_lib_$ac_lib_var=yes"
4328 echo "configure: failed program was:" >&5
4329 cat conftest.
$ac_ext >&5
4331 eval "ac_cv_lib_$ac_lib_var=no"
4334 LIBS
="$ac_save_LIBS"
4337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 TERMLIBS
="-lreadline $TERMLIBS"
4340 cat >> confdefs.h
<<\EOF
4341 #define HAVE_LIBREADLINE 1
4346 echo "$ac_t""no" 1>&6
4351 echo "$ac_t""no" 1>&6
4357 echo "$ac_t""no" 1>&6
4360 echo "$ac_t""yes" 1>&6
4362 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4363 # alternate readline path
4365 _cppflags
=${CPPFLAGS}
4367 # Add additional search path
4368 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4369 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4371 for ac_hdr
in readline.h
history.h readline
/readline.h
4373 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_hdr" >&5
4376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 cat > conftest.
$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4384 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4385 { (eval echo configure
:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4386 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4387 if test -z "$ac_err"; then
4389 eval "ac_cv_header_$ac_safe=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.
$ac_ext >&5
4395 eval "ac_cv_header_$ac_safe=no"
4399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4402 cat >> confdefs.h
<<EOF
4403 #define $ac_tr_hdr 1
4407 echo "$ac_t""no" 1>&6
4411 for ac_hdr
in readline
/history.h
4413 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 cat > conftest.
$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4424 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure
:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4429 eval "ac_cv_header_$ac_safe=yes"
4432 echo "configure: failed program was:" >&5
4433 cat conftest.
$ac_ext >&5
4435 eval "ac_cv_header_$ac_safe=no"
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h
<<EOF
4443 #define $ac_tr_hdr 1
4447 echo "$ac_t""no" 1>&6
4452 for ac_hdr
in readline.h readline
/readline.h
4454 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_hdr" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.
$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4465 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure
:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4470 eval "ac_cv_header_$ac_safe=yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.
$ac_ext >&5
4476 eval "ac_cv_header_$ac_safe=no"
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4483 cat >> confdefs.h
<<EOF
4484 #define $ac_tr_hdr 1
4487 for termlib
in ncurses curses termcap terminfo termlib
; do
4488 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4489 echo "configure:4490: checking for tgetent in -l${termlib}" >&5
4490 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 ac_save_LIBS
="$LIBS"
4495 LIBS
="-l${termlib} $LIBS"
4496 cat > conftest.
$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4508 if { (eval echo configure
:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4510 eval "ac_cv_lib_$ac_lib_var=yes"
4512 echo "configure: failed program was:" >&5
4513 cat conftest.
$ac_ext >&5
4515 eval "ac_cv_lib_$ac_lib_var=no"
4518 LIBS
="$ac_save_LIBS"
4521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 TERMLIBS
="-l${termlib}"; break
4525 echo "$ac_t""no" 1>&6
4529 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4530 echo "configure:4531: checking for rl_callback_handler_install in -lreadline" >&5
4531 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 ac_save_LIBS
="$LIBS"
4536 LIBS
="-lreadline $TERMLIBS $LIBS"
4537 cat > conftest.
$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4543 char rl_callback_handler_install();
4546 rl_callback_handler_install()
4549 if { (eval echo configure
:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4551 eval "ac_cv_lib_$ac_lib_var=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.
$ac_ext >&5
4556 eval "ac_cv_lib_$ac_lib_var=no"
4559 LIBS
="$ac_save_LIBS"
4562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 TERMLDFLAGS
="-L$with_readline/lib"
4565 TERMCPPFLAGS
="-I$with_readline/include"
4566 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4567 TERMLIBS
="-lreadline $TERMLIBS"
4568 cat >> confdefs.h
<<\EOF
4569 #define HAVE_LIBREADLINE 1
4574 echo "$ac_t""no" 1>&6
4575 TERMLIBS
= CPPFLAGS
=$_cppflags
4579 echo "$ac_t""no" 1>&6
4588 echo "$ac_t""no" 1>&6
4595 # The following test taken from the cvs sources
4596 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4597 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4598 # libsocket.so which has a bad implementation of gethostbyname (it
4599 # only looks in /etc/hosts), so we only look for -lsocket if we need
4601 for ac_func
in connect
4603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4604 echo "configure:4605: checking for $ac_func" >&5
4605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 cat > conftest.
$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4611 /* System header to define __stub macros and hopefully few prototypes,
4612 which can conflict with char $ac_func(); below. */
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4632 if { (eval echo configure
:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4634 eval "ac_cv_func_$ac_func=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.
$ac_ext >&5
4639 eval "ac_cv_func_$ac_func=no"
4644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4647 cat >> confdefs.h
<<EOF
4648 #define $ac_tr_func 1
4652 echo "$ac_t""no" 1>&6
4656 if test x
"$ac_cv_func_connect" = x
"no"; then
4659 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4660 echo "configure:4661: checking for printf in -lnsl_s" >&5
4661 ac_lib_var
=`echo nsl_s'_'printf | 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
="-lnsl_s $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. */
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 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4695 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4696 cat >> confdefs.h
<<EOF
4697 #define $ac_tr_lib 1
4700 LIBS
="-lnsl_s $LIBS"
4703 echo "$ac_t""no" 1>&6
4709 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4710 echo "configure:4711: checking for printf in -lnsl" >&5
4711 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 ac_save_LIBS
="$LIBS"
4717 cat > conftest.
$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 /* Override any gcc2 internal prototype to avoid an error. */
4721 /* We use char because int might match the return type of a gcc2
4722 builtin and then its argument prototype would still apply. */
4729 if { (eval echo configure
:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4731 eval "ac_cv_lib_$ac_lib_var=yes"
4733 echo "configure: failed program was:" >&5
4734 cat conftest.
$ac_ext >&5
4736 eval "ac_cv_lib_$ac_lib_var=no"
4739 LIBS
="$ac_save_LIBS"
4742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4744 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4746 cat >> confdefs.h
<<EOF
4747 #define $ac_tr_lib 1
4753 echo "$ac_t""no" 1>&6
4759 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4760 echo "configure:4761: checking for connect in -lsocket" >&5
4761 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 ac_save_LIBS
="$LIBS"
4766 LIBS
="-lsocket $LIBS"
4767 cat > conftest.
$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4779 if { (eval echo configure
:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4781 eval "ac_cv_lib_$ac_lib_var=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.
$ac_ext >&5
4786 eval "ac_cv_lib_$ac_lib_var=no"
4789 LIBS
="$ac_save_LIBS"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4796 cat >> confdefs.h
<<EOF
4797 #define $ac_tr_lib 1
4800 LIBS
="-lsocket $LIBS"
4803 echo "$ac_t""no" 1>&6
4809 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4810 echo "configure:4811: checking for connect in -linet" >&5
4811 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 ac_save_LIBS
="$LIBS"
4817 cat > conftest.
$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4829 if { (eval echo configure
:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4831 eval "ac_cv_lib_$ac_lib_var=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.
$ac_ext >&5
4836 eval "ac_cv_lib_$ac_lib_var=no"
4839 LIBS
="$ac_save_LIBS"
4842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4845 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4846 cat >> confdefs.h
<<EOF
4847 #define $ac_tr_lib 1
4853 echo "$ac_t""no" 1>&6
4857 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4858 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4859 # ac_cv_func_connect=yes
4860 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4861 cat >> confdefs.h
<<\EOF
4862 #define HAVE_CONNECT 1
4868 ###############################################
4869 # test for where we get get_yp_default_domain() from
4870 for ac_func
in yp_get_default_domain
4872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_func" >&5
4874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 cat > conftest.
$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4880 /* System header to define __stub macros and hopefully few prototypes,
4881 which can conflict with char $ac_func(); below. */
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4890 /* The GNU C library defines this for functions which it implements
4891 to always fail with ENOSYS. Some functions are actually named
4892 something starting with __ and the normal name is an alias. */
4893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4901 if { (eval echo configure
:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4903 eval "ac_cv_func_$ac_func=yes"
4905 echo "configure: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4908 eval "ac_cv_func_$ac_func=no"
4913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4915 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4916 cat >> confdefs.h
<<EOF
4917 #define $ac_tr_func 1
4921 echo "$ac_t""no" 1>&6
4925 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4926 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4927 echo "configure:4928: checking for yp_get_default_domain in -lnsl" >&5
4928 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4932 ac_save_LIBS
="$LIBS"
4934 cat > conftest.
$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4940 char yp_get_default_domain();
4943 yp_get_default_domain()
4946 if { (eval echo configure
:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4948 eval "ac_cv_lib_$ac_lib_var=yes"
4950 echo "configure: failed program was:" >&5
4951 cat conftest.
$ac_ext >&5
4953 eval "ac_cv_lib_$ac_lib_var=no"
4956 LIBS
="$ac_save_LIBS"
4959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4960 echo "$ac_t""yes" 1>&6
4962 cat >> confdefs.h
<<\EOF
4963 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4967 echo "$ac_t""no" 1>&6
4972 # Check if we have execl, if not we need to compile smbrun.
4973 for ac_func
in execl
4975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4976 echo "configure:4977: checking for $ac_func" >&5
4977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 cat > conftest.
$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 /* System header to define __stub macros and hopefully few prototypes,
4984 which can conflict with char $ac_func(); below. */
4986 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4993 /* The GNU C library defines this for functions which it implements
4994 to always fail with ENOSYS. Some functions are actually named
4995 something starting with __ and the normal name is an alias. */
4996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5004 if { (eval echo configure
:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5006 eval "ac_cv_func_$ac_func=yes"
5008 echo "configure: failed program was:" >&5
5009 cat conftest.
$ac_ext >&5
5011 eval "ac_cv_func_$ac_func=no"
5016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5019 cat >> confdefs.h
<<EOF
5020 #define $ac_tr_func 1
5024 echo "$ac_t""no" 1>&6
5028 if test x
"$ac_cv_func_execl" = x
"no"; then
5029 RUNPROG
="bin/smbrun"
5034 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
5036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5037 echo "configure:5038: checking for $ac_func" >&5
5038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 cat > conftest.
$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char $ac_func(); below. */
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5054 /* The GNU C library defines this for functions which it implements
5055 to always fail with ENOSYS. Some functions are actually named
5056 something starting with __ and the normal name is an alias. */
5057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065 if { (eval echo configure
:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5067 eval "ac_cv_func_$ac_func=yes"
5069 echo "configure: failed program was:" >&5
5070 cat conftest.
$ac_ext >&5
5072 eval "ac_cv_func_$ac_func=no"
5077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5080 cat >> confdefs.h
<<EOF
5081 #define $ac_tr_func 1
5085 echo "$ac_t""no" 1>&6
5089 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5092 echo "configure:5093: checking for $ac_func" >&5
5093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 cat > conftest.
$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* System header to define __stub macros and hopefully few prototypes,
5100 which can conflict with char $ac_func(); below. */
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5120 if { (eval echo configure
:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5122 eval "ac_cv_func_$ac_func=yes"
5124 echo "configure: failed program was:" >&5
5125 cat conftest.
$ac_ext >&5
5127 eval "ac_cv_func_$ac_func=no"
5132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5134 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5135 cat >> confdefs.h
<<EOF
5136 #define $ac_tr_func 1
5140 echo "$ac_t""no" 1>&6
5144 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_func" >&5
5148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 cat > conftest.
$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char $ac_func(); below. */
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5175 if { (eval echo configure
:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5177 eval "ac_cv_func_$ac_func=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.
$ac_ext >&5
5182 eval "ac_cv_func_$ac_func=no"
5187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5190 cat >> confdefs.h
<<EOF
5191 #define $ac_tr_func 1
5195 echo "$ac_t""no" 1>&6
5199 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_func" >&5
5203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 cat > conftest.
$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func(); below. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5219 /* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5230 if { (eval echo configure
:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5232 eval "ac_cv_func_$ac_func=yes"
5234 echo "configure: failed program was:" >&5
5235 cat conftest.
$ac_ext >&5
5237 eval "ac_cv_func_$ac_func=no"
5242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5244 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5245 cat >> confdefs.h
<<EOF
5246 #define $ac_tr_func 1
5250 echo "$ac_t""no" 1>&6
5254 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_func" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.
$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char $ac_func(); below. */
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5285 if { (eval echo configure
:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5287 eval "ac_cv_func_$ac_func=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.
$ac_ext >&5
5292 eval "ac_cv_func_$ac_func=no"
5297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5300 cat >> confdefs.h
<<EOF
5301 #define $ac_tr_func 1
5305 echo "$ac_t""no" 1>&6
5309 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5312 echo "configure:5313: checking for $ac_func" >&5
5313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.
$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* System header to define __stub macros and hopefully few prototypes,
5320 which can conflict with char $ac_func(); below. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5340 if { (eval echo configure
:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5342 eval "ac_cv_func_$ac_func=yes"
5344 echo "configure: failed program was:" >&5
5345 cat conftest.
$ac_ext >&5
5347 eval "ac_cv_func_$ac_func=no"
5352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5354 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5355 cat >> confdefs.h
<<EOF
5356 #define $ac_tr_func 1
5360 echo "$ac_t""no" 1>&6
5364 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_func" >&5
5368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 cat > conftest.
$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 /* System header to define __stub macros and hopefully few prototypes,
5375 which can conflict with char $ac_func(); below. */
5377 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5384 /* The GNU C library defines this for functions which it implements
5385 to always fail with ENOSYS. Some functions are actually named
5386 something starting with __ and the normal name is an alias. */
5387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5395 if { (eval echo configure
:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5397 eval "ac_cv_func_$ac_func=yes"
5399 echo "configure: failed program was:" >&5
5400 cat conftest.
$ac_ext >&5
5402 eval "ac_cv_func_$ac_func=no"
5407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5408 echo "$ac_t""yes" 1>&6
5409 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5410 cat >> confdefs.h
<<EOF
5411 #define $ac_tr_func 1
5415 echo "$ac_t""no" 1>&6
5419 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5422 echo "configure:5423: checking for $ac_func" >&5
5423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 cat > conftest.
$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 /* System header to define __stub macros and hopefully few prototypes,
5430 which can conflict with char $ac_func(); below. */
5432 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5439 /* The GNU C library defines this for functions which it implements
5440 to always fail with ENOSYS. Some functions are actually named
5441 something starting with __ and the normal name is an alias. */
5442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5450 if { (eval echo configure
:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5452 eval "ac_cv_func_$ac_func=yes"
5454 echo "configure: failed program was:" >&5
5455 cat conftest.
$ac_ext >&5
5457 eval "ac_cv_func_$ac_func=no"
5462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5464 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5465 cat >> confdefs.h
<<EOF
5466 #define $ac_tr_func 1
5470 echo "$ac_t""no" 1>&6
5474 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5477 echo "configure:5478: checking for $ac_func" >&5
5478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5481 cat > conftest.
$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 /* System header to define __stub macros and hopefully few prototypes,
5485 which can conflict with char $ac_func(); below. */
5487 /* Override any gcc2 internal prototype to avoid an error. */
5488 /* We use char because int might match the return type of a gcc2
5489 builtin and then its argument prototype would still apply. */
5494 /* The GNU C library defines this for functions which it implements
5495 to always fail with ENOSYS. Some functions are actually named
5496 something starting with __ and the normal name is an alias. */
5497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5505 if { (eval echo configure
:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5507 eval "ac_cv_func_$ac_func=yes"
5509 echo "configure: failed program was:" >&5
5510 cat conftest.
$ac_ext >&5
5512 eval "ac_cv_func_$ac_func=no"
5517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5518 echo "$ac_t""yes" 1>&6
5519 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5520 cat >> confdefs.h
<<EOF
5521 #define $ac_tr_func 1
5525 echo "$ac_t""no" 1>&6
5529 # setbuffer is needed for smbtorture
5530 for ac_func
in setbuffer
5532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_func" >&5
5534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.
$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func(); below. */
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5550 /* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5561 if { (eval echo configure
:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5563 eval "ac_cv_func_$ac_func=yes"
5565 echo "configure: failed program was:" >&5
5566 cat conftest.
$ac_ext >&5
5568 eval "ac_cv_func_$ac_func=no"
5573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5576 cat >> confdefs.h
<<EOF
5577 #define $ac_tr_func 1
5581 echo "$ac_t""no" 1>&6
5586 # syscall() is needed for smbwrapper.
5587 for ac_func
in syscall
5589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_func" >&5
5591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 cat > conftest.
$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func(); below. */
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5607 /* The GNU C library defines this for functions which it implements
5608 to always fail with ENOSYS. Some functions are actually named
5609 something starting with __ and the normal name is an alias. */
5610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5618 if { (eval echo configure
:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5620 eval "ac_cv_func_$ac_func=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.
$ac_ext >&5
5625 eval "ac_cv_func_$ac_func=no"
5630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633 cat >> confdefs.h
<<EOF
5634 #define $ac_tr_func 1
5638 echo "$ac_t""no" 1>&6
5643 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5646 echo "configure:5647: checking for $ac_func" >&5
5647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 cat > conftest.
$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 /* System header to define __stub macros and hopefully few prototypes,
5654 which can conflict with char $ac_func(); below. */
5656 /* Override any gcc2 internal prototype to avoid an error. */
5657 /* We use char because int might match the return type of a gcc2
5658 builtin and then its argument prototype would still apply. */
5663 /* The GNU C library defines this for functions which it implements
5664 to always fail with ENOSYS. Some functions are actually named
5665 something starting with __ and the normal name is an alias. */
5666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5674 if { (eval echo configure
:5675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5676 eval "ac_cv_func_$ac_func=yes"
5678 echo "configure: failed program was:" >&5
5679 cat conftest.
$ac_ext >&5
5681 eval "ac_cv_func_$ac_func=no"
5686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5687 echo "$ac_t""yes" 1>&6
5688 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5689 cat >> confdefs.h
<<EOF
5690 #define $ac_tr_func 1
5694 echo "$ac_t""no" 1>&6
5698 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5701 echo "configure:5702: checking for $ac_func" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.
$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char $ac_func(); below. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 if { (eval echo configure
:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5731 eval "ac_cv_func_$ac_func=yes"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.
$ac_ext >&5
5736 eval "ac_cv_func_$ac_func=no"
5741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5744 cat >> confdefs.h
<<EOF
5745 #define $ac_tr_func 1
5749 echo "$ac_t""no" 1>&6
5753 for ac_func
in __getcwd _getcwd
5755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5756 echo "configure:5757: checking for $ac_func" >&5
5757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5758 echo $ac_n "(cached) $ac_c" 1>&6
5760 cat > conftest.
$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 /* System header to define __stub macros and hopefully few prototypes,
5764 which can conflict with char $ac_func(); below. */
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5773 /* The GNU C library defines this for functions which it implements
5774 to always fail with ENOSYS. Some functions are actually named
5775 something starting with __ and the normal name is an alias. */
5776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5784 if { (eval echo configure
:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5786 eval "ac_cv_func_$ac_func=yes"
5788 echo "configure: failed program was:" >&5
5789 cat conftest.
$ac_ext >&5
5791 eval "ac_cv_func_$ac_func=no"
5796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5799 cat >> confdefs.h
<<EOF
5800 #define $ac_tr_func 1
5804 echo "$ac_t""no" 1>&6
5808 for ac_func
in __xstat __fxstat __lxstat
5810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5811 echo "configure:5812: checking for $ac_func" >&5
5812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 cat > conftest.
$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5818 /* System header to define __stub macros and hopefully few prototypes,
5819 which can conflict with char $ac_func(); below. */
5821 /* Override any gcc2 internal prototype to avoid an error. */
5822 /* We use char because int might match the return type of a gcc2
5823 builtin and then its argument prototype would still apply. */
5828 /* The GNU C library defines this for functions which it implements
5829 to always fail with ENOSYS. Some functions are actually named
5830 something starting with __ and the normal name is an alias. */
5831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5839 if { (eval echo configure
:5840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5841 eval "ac_cv_func_$ac_func=yes"
5843 echo "configure: failed program was:" >&5
5844 cat conftest.
$ac_ext >&5
5846 eval "ac_cv_func_$ac_func=no"
5851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5852 echo "$ac_t""yes" 1>&6
5853 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5854 cat >> confdefs.h
<<EOF
5855 #define $ac_tr_func 1
5859 echo "$ac_t""no" 1>&6
5863 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5866 echo "configure:5867: checking for $ac_func" >&5
5867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5870 cat > conftest.
$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 /* System header to define __stub macros and hopefully few prototypes,
5874 which can conflict with char $ac_func(); below. */
5876 /* Override any gcc2 internal prototype to avoid an error. */
5877 /* We use char because int might match the return type of a gcc2
5878 builtin and then its argument prototype would still apply. */
5883 /* The GNU C library defines this for functions which it implements
5884 to always fail with ENOSYS. Some functions are actually named
5885 something starting with __ and the normal name is an alias. */
5886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5894 if { (eval echo configure
:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5896 eval "ac_cv_func_$ac_func=yes"
5898 echo "configure: failed program was:" >&5
5899 cat conftest.
$ac_ext >&5
5901 eval "ac_cv_func_$ac_func=no"
5906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5908 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5909 cat >> confdefs.h
<<EOF
5910 #define $ac_tr_func 1
5914 echo "$ac_t""no" 1>&6
5918 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5921 echo "configure:5922: checking for $ac_func" >&5
5922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5925 cat > conftest.
$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 /* System header to define __stub macros and hopefully few prototypes,
5929 which can conflict with char $ac_func(); below. */
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5938 /* The GNU C library defines this for functions which it implements
5939 to always fail with ENOSYS. Some functions are actually named
5940 something starting with __ and the normal name is an alias. */
5941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5949 if { (eval echo configure
:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5951 eval "ac_cv_func_$ac_func=yes"
5953 echo "configure: failed program was:" >&5
5954 cat conftest.
$ac_ext >&5
5956 eval "ac_cv_func_$ac_func=no"
5961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h
<<EOF
5965 #define $ac_tr_func 1
5969 echo "$ac_t""no" 1>&6
5973 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5976 echo "configure:5977: checking for $ac_func" >&5
5977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 cat > conftest.
$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char $ac_func(); below. */
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6004 if { (eval echo configure
:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6006 eval "ac_cv_func_$ac_func=yes"
6008 echo "configure: failed program was:" >&5
6009 cat conftest.
$ac_ext >&5
6011 eval "ac_cv_func_$ac_func=no"
6016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6019 cat >> confdefs.h
<<EOF
6020 #define $ac_tr_func 1
6024 echo "$ac_t""no" 1>&6
6028 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6031 echo "configure:6032: checking for $ac_func" >&5
6032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6035 cat > conftest.
$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* System header to define __stub macros and hopefully few prototypes,
6039 which can conflict with char $ac_func(); below. */
6041 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6048 /* The GNU C library defines this for functions which it implements
6049 to always fail with ENOSYS. Some functions are actually named
6050 something starting with __ and the normal name is an alias. */
6051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6059 if { (eval echo configure
:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6061 eval "ac_cv_func_$ac_func=yes"
6063 echo "configure: failed program was:" >&5
6064 cat conftest.
$ac_ext >&5
6066 eval "ac_cv_func_$ac_func=no"
6071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6073 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6074 cat >> confdefs.h
<<EOF
6075 #define $ac_tr_func 1
6079 echo "$ac_t""no" 1>&6
6083 for ac_func
in _write __write _fork __fork
6085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_func" >&5
6087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 cat > conftest.
$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char $ac_func(); below. */
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114 if { (eval echo configure
:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6116 eval "ac_cv_func_$ac_func=yes"
6118 echo "configure: failed program was:" >&5
6119 cat conftest.
$ac_ext >&5
6121 eval "ac_cv_func_$ac_func=no"
6126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6129 cat >> confdefs.h
<<EOF
6130 #define $ac_tr_func 1
6134 echo "$ac_t""no" 1>&6
6138 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_func" >&5
6142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.
$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func(); below. */
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169 if { (eval echo configure
:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6171 eval "ac_cv_func_$ac_func=yes"
6173 echo "configure: failed program was:" >&5
6174 cat conftest.
$ac_ext >&5
6176 eval "ac_cv_func_$ac_func=no"
6181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >> confdefs.h
<<EOF
6185 #define $ac_tr_func 1
6189 echo "$ac_t""no" 1>&6
6193 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_func" >&5
6197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6200 cat > conftest.
$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char $ac_func(); below. */
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6213 /* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6224 if { (eval echo configure
:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6226 eval "ac_cv_func_$ac_func=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.
$ac_ext >&5
6231 eval "ac_cv_func_$ac_func=no"
6236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6239 cat >> confdefs.h
<<EOF
6240 #define $ac_tr_func 1
6244 echo "$ac_t""no" 1>&6
6248 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6251 echo "configure:6252: checking for $ac_func" >&5
6252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6255 cat > conftest.
$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6261 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 if { (eval echo configure
:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6281 eval "ac_cv_func_$ac_func=yes"
6283 echo "configure: failed program was:" >&5
6284 cat conftest.
$ac_ext >&5
6286 eval "ac_cv_func_$ac_func=no"
6291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6294 cat >> confdefs.h
<<EOF
6295 #define $ac_tr_func 1
6299 echo "$ac_t""no" 1>&6
6303 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6306 echo "configure:6307: checking for $ac_func" >&5
6307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6308 echo $ac_n "(cached) $ac_c" 1>&6
6310 cat > conftest.
$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6313 /* System header to define __stub macros and hopefully few prototypes,
6314 which can conflict with char $ac_func(); below. */
6316 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6323 /* The GNU C library defines this for functions which it implements
6324 to always fail with ENOSYS. Some functions are actually named
6325 something starting with __ and the normal name is an alias. */
6326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6334 if { (eval echo configure
:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6336 eval "ac_cv_func_$ac_func=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.
$ac_ext >&5
6341 eval "ac_cv_func_$ac_func=no"
6346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6347 echo "$ac_t""yes" 1>&6
6348 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6349 cat >> confdefs.h
<<EOF
6350 #define $ac_tr_func 1
6354 echo "$ac_t""no" 1>&6
6358 for ac_func
in open64 _open64 __open64 creat64
6360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6361 echo "configure:6362: checking for $ac_func" >&5
6362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6363 echo $ac_n "(cached) $ac_c" 1>&6
6365 cat > conftest.
$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6368 /* System header to define __stub macros and hopefully few prototypes,
6369 which can conflict with char $ac_func(); below. */
6371 /* Override any gcc2 internal prototype to avoid an error. */
6372 /* We use char because int might match the return type of a gcc2
6373 builtin and then its argument prototype would still apply. */
6378 /* The GNU C library defines this for functions which it implements
6379 to always fail with ENOSYS. Some functions are actually named
6380 something starting with __ and the normal name is an alias. */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6389 if { (eval echo configure
:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6391 eval "ac_cv_func_$ac_func=yes"
6393 echo "configure: failed program was:" >&5
6394 cat conftest.
$ac_ext >&5
6396 eval "ac_cv_func_$ac_func=no"
6401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6402 echo "$ac_t""yes" 1>&6
6403 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6404 cat >> confdefs.h
<<EOF
6405 #define $ac_tr_func 1
6409 echo "$ac_t""no" 1>&6
6415 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6418 if test x
$ac_cv_func_stat64 = xno
; then
6419 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6420 echo "configure:6421: checking for stat64 in <sys/stat.h>" >&5
6421 cat > conftest.
$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6425 #if defined(HAVE_UNISTD_H)
6428 #include <sys/stat.h>
6431 struct stat64 st64; exit(stat64(".",&st64));
6434 if { (eval echo configure
:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6436 ac_cv_func_stat64
=yes
6438 echo "configure: failed program was:" >&5
6439 cat conftest.
$ac_ext >&5
6442 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6443 if test x
$ac_cv_func_stat64 = xyes
; then
6444 cat >> confdefs.h
<<\EOF
6445 #define HAVE_STAT64 1
6451 if test x
$ac_cv_func_lstat64 = xno
; then
6452 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6453 echo "configure:6454: checking for lstat64 in <sys/stat.h>" >&5
6454 cat > conftest.
$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6458 #if defined(HAVE_UNISTD_H)
6461 #include <sys/stat.h>
6464 struct stat64 st64; exit(lstat64(".",&st64));
6467 if { (eval echo configure
:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6469 ac_cv_func_lstat64
=yes
6471 echo "configure: failed program was:" >&5
6472 cat conftest.
$ac_ext >&5
6475 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6476 if test x
$ac_cv_func_lstat64 = xyes
; then
6477 cat >> confdefs.h
<<\EOF
6478 #define HAVE_LSTAT64 1
6484 if test x
$ac_cv_func_fstat64 = xno
; then
6485 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6486 echo "configure:6487: checking for fstat64 in <sys/stat.h>" >&5
6487 cat > conftest.
$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6491 #if defined(HAVE_UNISTD_H)
6494 #include <sys/stat.h>
6497 struct stat64 st64; exit(fstat64(0,&st64));
6500 if { (eval echo configure
:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6502 ac_cv_func_fstat64
=yes
6504 echo "configure: failed program was:" >&5
6505 cat conftest.
$ac_ext >&5
6508 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6509 if test x
$ac_cv_func_fstat64 = xyes
; then
6510 cat >> confdefs.h
<<\EOF
6511 #define HAVE_FSTAT64 1
6517 #####################################
6518 # we might need the resolv library on some systems
6519 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6520 echo "configure:6521: checking for dn_expand in -lresolv" >&5
6521 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6525 ac_save_LIBS
="$LIBS"
6526 LIBS
="-lresolv $LIBS"
6527 cat > conftest.
$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* Override any gcc2 internal prototype to avoid an error. */
6531 /* We use char because int might match the return type of a gcc2
6532 builtin and then its argument prototype would still apply. */
6539 if { (eval echo configure
:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6541 eval "ac_cv_lib_$ac_lib_var=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.
$ac_ext >&5
6546 eval "ac_cv_lib_$ac_lib_var=no"
6549 LIBS
="$ac_save_LIBS"
6552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6553 echo "$ac_t""yes" 1>&6
6554 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6556 cat >> confdefs.h
<<EOF
6557 #define $ac_tr_lib 1
6560 LIBS
="-lresolv $LIBS"
6563 echo "$ac_t""no" 1>&6
6568 # Check for the functions putprpwnam, set_auth_parameters,
6569 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6570 # Needed for OSF1 and HPUX.
6574 *-lsecurity*) for ac_func
in putprpwnam
6576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6577 echo "configure:6578: checking for $ac_func" >&5
6578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6581 cat > conftest.
$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6584 /* System header to define __stub macros and hopefully few prototypes,
6585 which can conflict with char $ac_func(); below. */
6587 /* Override any gcc2 internal prototype to avoid an error. */
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6594 /* The GNU C library defines this for functions which it implements
6595 to always fail with ENOSYS. Some functions are actually named
6596 something starting with __ and the normal name is an alias. */
6597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6605 if { (eval echo configure
:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6607 eval "ac_cv_func_$ac_func=yes"
6609 echo "configure: failed program was:" >&5
6610 cat conftest.
$ac_ext >&5
6612 eval "ac_cv_func_$ac_func=no"
6617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6618 echo "$ac_t""yes" 1>&6
6619 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6620 cat >> confdefs.h
<<EOF
6621 #define $ac_tr_func 1
6625 echo "$ac_t""no" 1>&6
6629 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6630 echo "configure:6631: checking for putprpwnam in -lsecurity" >&5
6631 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 ac_save_LIBS
="$LIBS"
6636 LIBS
="-lsecurity $LIBS"
6637 cat > conftest.
$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6649 if { (eval echo configure
:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6651 eval "ac_cv_lib_$ac_lib_var=yes"
6653 echo "configure: failed program was:" >&5
6654 cat conftest.
$ac_ext >&5
6656 eval "ac_cv_lib_$ac_lib_var=no"
6659 LIBS
="$ac_save_LIBS"
6662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6663 echo "$ac_t""yes" 1>&6
6664 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6665 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6666 cat >> confdefs.h
<<EOF
6667 #define $ac_tr_lib 1
6670 LIBS
="-lsecurity $LIBS"
6673 echo "$ac_t""no" 1>&6
6676 for ac_func
in putprpwnam
6678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6679 echo "configure:6680: checking for $ac_func" >&5
6680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6683 cat > conftest.
$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 /* System header to define __stub macros and hopefully few prototypes,
6687 which can conflict with char $ac_func(); below. */
6689 /* Override any gcc2 internal prototype to avoid an error. */
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6696 /* The GNU C library defines this for functions which it implements
6697 to always fail with ENOSYS. Some functions are actually named
6698 something starting with __ and the normal name is an alias. */
6699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6707 if { (eval echo configure
:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6709 eval "ac_cv_func_$ac_func=yes"
6711 echo "configure: failed program was:" >&5
6712 cat conftest.
$ac_ext >&5
6714 eval "ac_cv_func_$ac_func=no"
6719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6721 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6722 cat >> confdefs.h
<<EOF
6723 #define $ac_tr_func 1
6727 echo "$ac_t""no" 1>&6
6735 *-lsec*) for ac_func
in putprpwnam
6737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6738 echo "configure:6739: checking for $ac_func" >&5
6739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6740 echo $ac_n "(cached) $ac_c" 1>&6
6742 cat > conftest.
$ac_ext <<EOF
6743 #line 6744 "configure"
6744 #include "confdefs.h"
6745 /* System header to define __stub macros and hopefully few prototypes,
6746 which can conflict with char $ac_func(); below. */
6748 /* Override any gcc2 internal prototype to avoid an error. */
6749 /* We use char because int might match the return type of a gcc2
6750 builtin and then its argument prototype would still apply. */
6755 /* The GNU C library defines this for functions which it implements
6756 to always fail with ENOSYS. Some functions are actually named
6757 something starting with __ and the normal name is an alias. */
6758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6766 if { (eval echo configure
:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6768 eval "ac_cv_func_$ac_func=yes"
6770 echo "configure: failed program was:" >&5
6771 cat conftest.
$ac_ext >&5
6773 eval "ac_cv_func_$ac_func=no"
6778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6779 echo "$ac_t""yes" 1>&6
6780 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6781 cat >> confdefs.h
<<EOF
6782 #define $ac_tr_func 1
6786 echo "$ac_t""no" 1>&6
6790 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6791 echo "configure:6792: checking for putprpwnam in -lsec" >&5
6792 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 ac_save_LIBS
="$LIBS"
6798 cat > conftest.
$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6810 if { (eval echo configure
:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6812 eval "ac_cv_lib_$ac_lib_var=yes"
6814 echo "configure: failed program was:" >&5
6815 cat conftest.
$ac_ext >&5
6817 eval "ac_cv_lib_$ac_lib_var=no"
6820 LIBS
="$ac_save_LIBS"
6823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6824 echo "$ac_t""yes" 1>&6
6825 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6826 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6827 cat >> confdefs.h
<<EOF
6828 #define $ac_tr_lib 1
6834 echo "$ac_t""no" 1>&6
6837 for ac_func
in putprpwnam
6839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6840 echo "configure:6841: checking for $ac_func" >&5
6841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 cat > conftest.
$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char $ac_func(); below. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6857 /* The GNU C library defines this for functions which it implements
6858 to always fail with ENOSYS. Some functions are actually named
6859 something starting with __ and the normal name is an alias. */
6860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6868 if { (eval echo configure
:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6870 eval "ac_cv_func_$ac_func=yes"
6872 echo "configure: failed program was:" >&5
6873 cat conftest.
$ac_ext >&5
6875 eval "ac_cv_func_$ac_func=no"
6880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6881 echo "$ac_t""yes" 1>&6
6882 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6883 cat >> confdefs.h
<<EOF
6884 #define $ac_tr_func 1
6888 echo "$ac_t""no" 1>&6
6897 *-lsecurity*) for ac_func
in set_auth_parameters
6899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6900 echo "configure:6901: checking for $ac_func" >&5
6901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.
$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6907 /* System header to define __stub macros and hopefully few prototypes,
6908 which can conflict with char $ac_func(); below. */
6910 /* Override any gcc2 internal prototype to avoid an error. */
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6917 /* The GNU C library defines this for functions which it implements
6918 to always fail with ENOSYS. Some functions are actually named
6919 something starting with __ and the normal name is an alias. */
6920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6928 if { (eval echo configure
:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6930 eval "ac_cv_func_$ac_func=yes"
6932 echo "configure: failed program was:" >&5
6933 cat conftest.
$ac_ext >&5
6935 eval "ac_cv_func_$ac_func=no"
6940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6941 echo "$ac_t""yes" 1>&6
6942 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6943 cat >> confdefs.h
<<EOF
6944 #define $ac_tr_func 1
6948 echo "$ac_t""no" 1>&6
6952 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6953 echo "configure:6954: checking for set_auth_parameters in -lsecurity" >&5
6954 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6956 echo $ac_n "(cached) $ac_c" 1>&6
6958 ac_save_LIBS
="$LIBS"
6959 LIBS
="-lsecurity $LIBS"
6960 cat > conftest.
$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6963 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6966 char set_auth_parameters();
6969 set_auth_parameters()
6972 if { (eval echo configure
:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6974 eval "ac_cv_lib_$ac_lib_var=yes"
6976 echo "configure: failed program was:" >&5
6977 cat conftest.
$ac_ext >&5
6979 eval "ac_cv_lib_$ac_lib_var=no"
6982 LIBS
="$ac_save_LIBS"
6985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6986 echo "$ac_t""yes" 1>&6
6987 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6988 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6989 cat >> confdefs.h
<<EOF
6990 #define $ac_tr_lib 1
6993 LIBS
="-lsecurity $LIBS"
6996 echo "$ac_t""no" 1>&6
6999 for ac_func
in set_auth_parameters
7001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7002 echo "configure:7003: checking for $ac_func" >&5
7003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7004 echo $ac_n "(cached) $ac_c" 1>&6
7006 cat > conftest.
$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7009 /* System header to define __stub macros and hopefully few prototypes,
7010 which can conflict with char $ac_func(); below. */
7012 /* Override any gcc2 internal prototype to avoid an error. */
7013 /* We use char because int might match the return type of a gcc2
7014 builtin and then its argument prototype would still apply. */
7019 /* The GNU C library defines this for functions which it implements
7020 to always fail with ENOSYS. Some functions are actually named
7021 something starting with __ and the normal name is an alias. */
7022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7030 if { (eval echo configure
:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7032 eval "ac_cv_func_$ac_func=yes"
7034 echo "configure: failed program was:" >&5
7035 cat conftest.
$ac_ext >&5
7037 eval "ac_cv_func_$ac_func=no"
7042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7043 echo "$ac_t""yes" 1>&6
7044 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7045 cat >> confdefs.h
<<EOF
7046 #define $ac_tr_func 1
7050 echo "$ac_t""no" 1>&6
7058 *-lsec*) for ac_func
in set_auth_parameters
7060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7061 echo "configure:7062: checking for $ac_func" >&5
7062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7063 echo $ac_n "(cached) $ac_c" 1>&6
7065 cat > conftest.
$ac_ext <<EOF
7066 #line 7067 "configure"
7067 #include "confdefs.h"
7068 /* System header to define __stub macros and hopefully few prototypes,
7069 which can conflict with char $ac_func(); below. */
7071 /* Override any gcc2 internal prototype to avoid an error. */
7072 /* We use char because int might match the return type of a gcc2
7073 builtin and then its argument prototype would still apply. */
7078 /* The GNU C library defines this for functions which it implements
7079 to always fail with ENOSYS. Some functions are actually named
7080 something starting with __ and the normal name is an alias. */
7081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7089 if { (eval echo configure
:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7091 eval "ac_cv_func_$ac_func=yes"
7093 echo "configure: failed program was:" >&5
7094 cat conftest.
$ac_ext >&5
7096 eval "ac_cv_func_$ac_func=no"
7101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7102 echo "$ac_t""yes" 1>&6
7103 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7104 cat >> confdefs.h
<<EOF
7105 #define $ac_tr_func 1
7109 echo "$ac_t""no" 1>&6
7113 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7114 echo "configure:7115: checking for set_auth_parameters in -lsec" >&5
7115 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7119 ac_save_LIBS
="$LIBS"
7121 cat > conftest.
$ac_ext <<EOF
7122 #line 7123 "configure"
7123 #include "confdefs.h"
7124 /* Override any gcc2 internal prototype to avoid an error. */
7125 /* We use char because int might match the return type of a gcc2
7126 builtin and then its argument prototype would still apply. */
7127 char set_auth_parameters();
7130 set_auth_parameters()
7133 if { (eval echo configure
:7134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7135 eval "ac_cv_lib_$ac_lib_var=yes"
7137 echo "configure: failed program was:" >&5
7138 cat conftest.
$ac_ext >&5
7140 eval "ac_cv_lib_$ac_lib_var=no"
7143 LIBS
="$ac_save_LIBS"
7146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7150 cat >> confdefs.h
<<EOF
7151 #define $ac_tr_lib 1
7157 echo "$ac_t""no" 1>&6
7160 for ac_func
in set_auth_parameters
7162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7163 echo "configure:7164: checking for $ac_func" >&5
7164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 cat > conftest.
$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7170 /* System header to define __stub macros and hopefully few prototypes,
7171 which can conflict with char $ac_func(); below. */
7173 /* Override any gcc2 internal prototype to avoid an error. */
7174 /* We use char because int might match the return type of a gcc2
7175 builtin and then its argument prototype would still apply. */
7180 /* The GNU C library defines this for functions which it implements
7181 to always fail with ENOSYS. Some functions are actually named
7182 something starting with __ and the normal name is an alias. */
7183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7191 if { (eval echo configure
:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7193 eval "ac_cv_func_$ac_func=yes"
7195 echo "configure: failed program was:" >&5
7196 cat conftest.
$ac_ext >&5
7198 eval "ac_cv_func_$ac_func=no"
7203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7204 echo "$ac_t""yes" 1>&6
7205 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7206 cat >> confdefs.h
<<EOF
7207 #define $ac_tr_func 1
7211 echo "$ac_t""no" 1>&6
7219 # UnixWare 7.x has its getspnam in -lgen
7221 *-lgen*) for ac_func
in getspnam
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 getspnam in -lgen""... $ac_c" 1>&6
7277 echo "configure:7278: checking for getspnam in -lgen" >&5
7278 ac_lib_var
=`echo gen'_'getspnam | 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. */
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 gen | 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 getspnam
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
7383 *-lsecurity*) for ac_func
in getspnam
7385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7386 echo "configure:7387: checking for $ac_func" >&5
7387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7390 cat > conftest.
$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 /* System header to define __stub macros and hopefully few prototypes,
7394 which can conflict with char $ac_func(); below. */
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */
7403 /* The GNU C library defines this for functions which it implements
7404 to always fail with ENOSYS. Some functions are actually named
7405 something starting with __ and the normal name is an alias. */
7406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7414 if { (eval echo configure
:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7416 eval "ac_cv_func_$ac_func=yes"
7418 echo "configure: failed program was:" >&5
7419 cat conftest.
$ac_ext >&5
7421 eval "ac_cv_func_$ac_func=no"
7426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7427 echo "$ac_t""yes" 1>&6
7428 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7429 cat >> confdefs.h
<<EOF
7430 #define $ac_tr_func 1
7434 echo "$ac_t""no" 1>&6
7438 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7439 echo "configure:7440: checking for getspnam in -lsecurity" >&5
7440 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7444 ac_save_LIBS
="$LIBS"
7445 LIBS
="-lsecurity $LIBS"
7446 cat > conftest.
$ac_ext <<EOF
7447 #line 7448 "configure"
7448 #include "confdefs.h"
7449 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7458 if { (eval echo configure
:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7460 eval "ac_cv_lib_$ac_lib_var=yes"
7462 echo "configure: failed program was:" >&5
7463 cat conftest.
$ac_ext >&5
7465 eval "ac_cv_lib_$ac_lib_var=no"
7468 LIBS
="$ac_save_LIBS"
7471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7472 echo "$ac_t""yes" 1>&6
7473 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7474 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7475 cat >> confdefs.h
<<EOF
7476 #define $ac_tr_lib 1
7479 LIBS
="-lsecurity $LIBS"
7482 echo "$ac_t""no" 1>&6
7485 for ac_func
in getspnam
7487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7488 echo "configure:7489: checking for $ac_func" >&5
7489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7492 cat > conftest.
$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495 /* System header to define __stub macros and hopefully few prototypes,
7496 which can conflict with char $ac_func(); below. */
7498 /* Override any gcc2 internal prototype to avoid an error. */
7499 /* We use char because int might match the return type of a gcc2
7500 builtin and then its argument prototype would still apply. */
7505 /* The GNU C library defines this for functions which it implements
7506 to always fail with ENOSYS. Some functions are actually named
7507 something starting with __ and the normal name is an alias. */
7508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7516 if { (eval echo configure
:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7518 eval "ac_cv_func_$ac_func=yes"
7520 echo "configure: failed program was:" >&5
7521 cat conftest.
$ac_ext >&5
7523 eval "ac_cv_func_$ac_func=no"
7528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7529 echo "$ac_t""yes" 1>&6
7530 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7531 cat >> confdefs.h
<<EOF
7532 #define $ac_tr_func 1
7536 echo "$ac_t""no" 1>&6
7544 *-lsec*) for ac_func
in getspnam
7546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7547 echo "configure:7548: checking for $ac_func" >&5
7548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7551 cat > conftest.
$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7554 /* System header to define __stub macros and hopefully few prototypes,
7555 which can conflict with char $ac_func(); below. */
7557 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7564 /* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7575 if { (eval echo configure
:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7577 eval "ac_cv_func_$ac_func=yes"
7579 echo "configure: failed program was:" >&5
7580 cat conftest.
$ac_ext >&5
7582 eval "ac_cv_func_$ac_func=no"
7587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7590 cat >> confdefs.h
<<EOF
7591 #define $ac_tr_func 1
7595 echo "$ac_t""no" 1>&6
7599 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7600 echo "configure:7601: checking for getspnam in -lsec" >&5
7601 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7605 ac_save_LIBS
="$LIBS"
7607 cat > conftest.
$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7610 /* Override any gcc2 internal prototype to avoid an error. */
7611 /* We use char because int might match the return type of a gcc2
7612 builtin and then its argument prototype would still apply. */
7619 if { (eval echo configure
:7620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7621 eval "ac_cv_lib_$ac_lib_var=yes"
7623 echo "configure: failed program was:" >&5
7624 cat conftest.
$ac_ext >&5
7626 eval "ac_cv_lib_$ac_lib_var=no"
7629 LIBS
="$ac_save_LIBS"
7632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7633 echo "$ac_t""yes" 1>&6
7634 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7636 cat >> confdefs.h
<<EOF
7637 #define $ac_tr_lib 1
7643 echo "$ac_t""no" 1>&6
7646 for ac_func
in getspnam
7648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7649 echo "configure:7650: checking for $ac_func" >&5
7650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7653 cat > conftest.
$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 /* System header to define __stub macros and hopefully few prototypes,
7657 which can conflict with char $ac_func(); below. */
7659 /* Override any gcc2 internal prototype to avoid an error. */
7660 /* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */
7666 /* The GNU C library defines this for functions which it implements
7667 to always fail with ENOSYS. Some functions are actually named
7668 something starting with __ and the normal name is an alias. */
7669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7677 if { (eval echo configure
:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7679 eval "ac_cv_func_$ac_func=yes"
7681 echo "configure: failed program was:" >&5
7682 cat conftest.
$ac_ext >&5
7684 eval "ac_cv_func_$ac_func=no"
7689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7690 echo "$ac_t""yes" 1>&6
7691 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7692 cat >> confdefs.h
<<EOF
7693 #define $ac_tr_func 1
7697 echo "$ac_t""no" 1>&6
7706 *-lsecurity*) for ac_func
in bigcrypt
7708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7709 echo "configure:7710: checking for $ac_func" >&5
7710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7713 cat > conftest.
$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716 /* System header to define __stub macros and hopefully few prototypes,
7717 which can conflict with char $ac_func(); below. */
7719 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7726 /* The GNU C library defines this for functions which it implements
7727 to always fail with ENOSYS. Some functions are actually named
7728 something starting with __ and the normal name is an alias. */
7729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7737 if { (eval echo configure
:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7739 eval "ac_cv_func_$ac_func=yes"
7741 echo "configure: failed program was:" >&5
7742 cat conftest.
$ac_ext >&5
7744 eval "ac_cv_func_$ac_func=no"
7749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7750 echo "$ac_t""yes" 1>&6
7751 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7752 cat >> confdefs.h
<<EOF
7753 #define $ac_tr_func 1
7757 echo "$ac_t""no" 1>&6
7761 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7762 echo "configure:7763: checking for bigcrypt in -lsecurity" >&5
7763 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7765 echo $ac_n "(cached) $ac_c" 1>&6
7767 ac_save_LIBS
="$LIBS"
7768 LIBS
="-lsecurity $LIBS"
7769 cat > conftest.
$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7781 if { (eval echo configure
:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7783 eval "ac_cv_lib_$ac_lib_var=yes"
7785 echo "configure: failed program was:" >&5
7786 cat conftest.
$ac_ext >&5
7788 eval "ac_cv_lib_$ac_lib_var=no"
7791 LIBS
="$ac_save_LIBS"
7794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7795 echo "$ac_t""yes" 1>&6
7796 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7798 cat >> confdefs.h
<<EOF
7799 #define $ac_tr_lib 1
7802 LIBS
="-lsecurity $LIBS"
7805 echo "$ac_t""no" 1>&6
7808 for ac_func
in bigcrypt
7810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7811 echo "configure:7812: checking for $ac_func" >&5
7812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7813 echo $ac_n "(cached) $ac_c" 1>&6
7815 cat > conftest.
$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* System header to define __stub macros and hopefully few prototypes,
7819 which can conflict with char $ac_func(); below. */
7821 /* Override any gcc2 internal prototype to avoid an error. */
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7828 /* The GNU C library defines this for functions which it implements
7829 to always fail with ENOSYS. Some functions are actually named
7830 something starting with __ and the normal name is an alias. */
7831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7839 if { (eval echo configure
:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7841 eval "ac_cv_func_$ac_func=yes"
7843 echo "configure: failed program was:" >&5
7844 cat conftest.
$ac_ext >&5
7846 eval "ac_cv_func_$ac_func=no"
7851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7852 echo "$ac_t""yes" 1>&6
7853 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7854 cat >> confdefs.h
<<EOF
7855 #define $ac_tr_func 1
7859 echo "$ac_t""no" 1>&6
7867 *-lsec*) for ac_func
in bigcrypt
7869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7870 echo "configure:7871: checking for $ac_func" >&5
7871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7874 cat > conftest.
$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* System header to define __stub macros and hopefully few prototypes,
7878 which can conflict with char $ac_func(); below. */
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7887 /* The GNU C library defines this for functions which it implements
7888 to always fail with ENOSYS. Some functions are actually named
7889 something starting with __ and the normal name is an alias. */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7898 if { (eval echo configure
:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7900 eval "ac_cv_func_$ac_func=yes"
7902 echo "configure: failed program was:" >&5
7903 cat conftest.
$ac_ext >&5
7905 eval "ac_cv_func_$ac_func=no"
7910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7913 cat >> confdefs.h
<<EOF
7914 #define $ac_tr_func 1
7918 echo "$ac_t""no" 1>&6
7922 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7923 echo "configure:7924: checking for bigcrypt in -lsec" >&5
7924 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 ac_save_LIBS
="$LIBS"
7930 cat > conftest.
$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7942 if { (eval echo configure
:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7944 eval "ac_cv_lib_$ac_lib_var=yes"
7946 echo "configure: failed program was:" >&5
7947 cat conftest.
$ac_ext >&5
7949 eval "ac_cv_lib_$ac_lib_var=no"
7952 LIBS
="$ac_save_LIBS"
7955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7959 cat >> confdefs.h
<<EOF
7960 #define $ac_tr_lib 1
7966 echo "$ac_t""no" 1>&6
7969 for ac_func
in bigcrypt
7971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7972 echo "configure:7973: checking for $ac_func" >&5
7973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7976 cat > conftest.
$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7979 /* System header to define __stub macros and hopefully few prototypes,
7980 which can conflict with char $ac_func(); below. */
7982 /* Override any gcc2 internal prototype to avoid an error. */
7983 /* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7989 /* The GNU C library defines this for functions which it implements
7990 to always fail with ENOSYS. Some functions are actually named
7991 something starting with __ and the normal name is an alias. */
7992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8000 if { (eval echo configure
:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8002 eval "ac_cv_func_$ac_func=yes"
8004 echo "configure: failed program was:" >&5
8005 cat conftest.
$ac_ext >&5
8007 eval "ac_cv_func_$ac_func=no"
8012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8013 echo "$ac_t""yes" 1>&6
8014 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8015 cat >> confdefs.h
<<EOF
8016 #define $ac_tr_func 1
8020 echo "$ac_t""no" 1>&6
8029 *-lsecurity*) for ac_func
in getprpwnam
8031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8032 echo "configure:8033: checking for $ac_func" >&5
8033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8036 cat > conftest.
$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char $ac_func(); below. */
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 /* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8049 /* The GNU C library defines this for functions which it implements
8050 to always fail with ENOSYS. Some functions are actually named
8051 something starting with __ and the normal name is an alias. */
8052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8060 if { (eval echo configure
:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8062 eval "ac_cv_func_$ac_func=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.
$ac_ext >&5
8067 eval "ac_cv_func_$ac_func=no"
8072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8074 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8075 cat >> confdefs.h
<<EOF
8076 #define $ac_tr_func 1
8080 echo "$ac_t""no" 1>&6
8084 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8085 echo "configure:8086: checking for getprpwnam in -lsecurity" >&5
8086 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8090 ac_save_LIBS
="$LIBS"
8091 LIBS
="-lsecurity $LIBS"
8092 cat > conftest.
$ac_ext <<EOF
8093 #line 8094 "configure"
8094 #include "confdefs.h"
8095 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8104 if { (eval echo configure
:8105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8106 eval "ac_cv_lib_$ac_lib_var=yes"
8108 echo "configure: failed program was:" >&5
8109 cat conftest.
$ac_ext >&5
8111 eval "ac_cv_lib_$ac_lib_var=no"
8114 LIBS
="$ac_save_LIBS"
8117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8118 echo "$ac_t""yes" 1>&6
8119 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8121 cat >> confdefs.h
<<EOF
8122 #define $ac_tr_lib 1
8125 LIBS
="-lsecurity $LIBS"
8128 echo "$ac_t""no" 1>&6
8131 for ac_func
in getprpwnam
8133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8134 echo "configure:8135: checking for $ac_func" >&5
8135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8136 echo $ac_n "(cached) $ac_c" 1>&6
8138 cat > conftest.
$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 /* System header to define __stub macros and hopefully few prototypes,
8142 which can conflict with char $ac_func(); below. */
8144 /* Override any gcc2 internal prototype to avoid an error. */
8145 /* We use char because int might match the return type of a gcc2
8146 builtin and then its argument prototype would still apply. */
8151 /* The GNU C library defines this for functions which it implements
8152 to always fail with ENOSYS. Some functions are actually named
8153 something starting with __ and the normal name is an alias. */
8154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8162 if { (eval echo configure
:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8164 eval "ac_cv_func_$ac_func=yes"
8166 echo "configure: failed program was:" >&5
8167 cat conftest.
$ac_ext >&5
8169 eval "ac_cv_func_$ac_func=no"
8174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8176 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8177 cat >> confdefs.h
<<EOF
8178 #define $ac_tr_func 1
8182 echo "$ac_t""no" 1>&6
8190 *-lsec*) for ac_func
in getprpwnam
8192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8193 echo "configure:8194: checking for $ac_func" >&5
8194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8197 cat > conftest.
$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8200 /* System header to define __stub macros and hopefully few prototypes,
8201 which can conflict with char $ac_func(); below. */
8203 /* Override any gcc2 internal prototype to avoid an error. */
8204 /* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8210 /* The GNU C library defines this for functions which it implements
8211 to always fail with ENOSYS. Some functions are actually named
8212 something starting with __ and the normal name is an alias. */
8213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8221 if { (eval echo configure
:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8223 eval "ac_cv_func_$ac_func=yes"
8225 echo "configure: failed program was:" >&5
8226 cat conftest.
$ac_ext >&5
8228 eval "ac_cv_func_$ac_func=no"
8233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8234 echo "$ac_t""yes" 1>&6
8235 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8236 cat >> confdefs.h
<<EOF
8237 #define $ac_tr_func 1
8241 echo "$ac_t""no" 1>&6
8245 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8246 echo "configure:8247: checking for getprpwnam in -lsec" >&5
8247 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8251 ac_save_LIBS
="$LIBS"
8253 cat > conftest.
$ac_ext <<EOF
8254 #line 8255 "configure"
8255 #include "confdefs.h"
8256 /* Override any gcc2 internal prototype to avoid an error. */
8257 /* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8265 if { (eval echo configure
:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8267 eval "ac_cv_lib_$ac_lib_var=yes"
8269 echo "configure: failed program was:" >&5
8270 cat conftest.
$ac_ext >&5
8272 eval "ac_cv_lib_$ac_lib_var=no"
8275 LIBS
="$ac_save_LIBS"
8278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8281 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8282 cat >> confdefs.h
<<EOF
8283 #define $ac_tr_lib 1
8289 echo "$ac_t""no" 1>&6
8292 for ac_func
in getprpwnam
8294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8295 echo "configure:8296: checking for $ac_func" >&5
8296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 cat > conftest.
$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 /* System header to define __stub macros and hopefully few prototypes,
8303 which can conflict with char $ac_func(); below. */
8305 /* Override any gcc2 internal prototype to avoid an error. */
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8312 /* The GNU C library defines this for functions which it implements
8313 to always fail with ENOSYS. Some functions are actually named
8314 something starting with __ and the normal name is an alias. */
8315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8323 if { (eval echo configure
:8324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8325 eval "ac_cv_func_$ac_func=yes"
8327 echo "configure: failed program was:" >&5
8328 cat conftest.
$ac_ext >&5
8330 eval "ac_cv_func_$ac_func=no"
8335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8336 echo "$ac_t""yes" 1>&6
8337 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8338 cat >> confdefs.h
<<EOF
8339 #define $ac_tr_func 1
8343 echo "$ac_t""no" 1>&6
8351 # this bit needs to be modified for each OS that is suported by
8352 # smbwrapper. You need to specify how to created a shared library and
8353 # how to compile C code to produce PIC object files
8355 # these are the defaults, good for lots of systems
8365 # and these are for particular systems
8367 *linux
*) cat >> confdefs.h
<<\EOF
8375 *solaris
*) cat >> confdefs.h
<<\EOF
8380 LDSHFLAGS
="-Wl,-h,\$@.so -G"
8381 if test "${ac_cv_prog_CC}" = "gcc"; then
8389 *sunos
*) cat >> confdefs.h
<<\EOF
8394 LDSHFLAGS
="-Wl,-h,\$@ -G"
8395 PICFLAG
="-KPIC" # Is this correct for SunOS
8397 *bsd
*) BLDSHARED
="true"
8398 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8401 *irix
*) cat >> confdefs.h
<<\EOF
8406 *irix6
*) cat >> confdefs.h
<<\EOF
8412 ATTEMPT_WRAP32_BUILD
=yes
8414 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8415 if test "${ac_cv_prog_CC}" = "gcc"; then
8421 *aix
*) cat >> confdefs.h
<<\EOF
8426 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8427 PICFLAG
="-O2 -qmaxmem=6000"
8429 *hpux
*) cat >> confdefs.h
<<\EOF
8434 # Use special PIC flags for the native HP-UX compiler.
8435 if test $ac_cv_prog_cc_Ae = yes; then
8437 LDSHFLAGS
="-b -z +h \$@"
8441 *qnx
*) cat >> confdefs.h
<<\EOF
8445 *osf
*) cat >> confdefs.h
<<\EOF
8450 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8453 *sco
*) cat >> confdefs.h
<<\EOF
8457 *unixware
*) cat >> confdefs.h
<<\EOF
8462 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8465 *next2
*) cat >> confdefs.h
<<\EOF
8469 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8470 set dummy
groff; ac_word
=$2
8471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8472 echo "configure:8473: checking for $ac_word" >&5
8473 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8474 echo $ac_n "(cached) $ac_c" 1>&6
8476 if test -n "$ROFF"; then
8477 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8479 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8481 for ac_dir
in $ac_dummy; do
8482 test -z "$ac_dir" && ac_dir
=.
8483 if test -f $ac_dir/$ac_word; then
8484 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8491 ROFF
="$ac_cv_prog_ROFF"
8492 if test -n "$ROFF"; then
8493 echo "$ac_t""$ROFF" 1>&6
8495 echo "$ac_t""no" 1>&6
8500 *-univel-*) if test "$GCC" != yes ; then
8501 cat >> confdefs.h
<<\EOF
8502 #define HAVE_MEMSET 1
8508 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8509 #define RELIANTUNIX 1
8515 if test "$GCC" != yes ; then
8516 cat >> confdefs.h
<<\EOF
8517 #define HAVE_MEMSET 1
8525 # this updates our target list if we can build shared libs
8526 if test $BLDSHARED = true
; then
8527 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
8529 LIBSMBCLIENT_SHARED
=
8534 echo $ac_n "checking for long long""... $ac_c" 1>&6
8535 echo "configure:8536: checking for long long" >&5
8536 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8537 echo $ac_n "(cached) $ac_c" 1>&6
8540 if test "$cross_compiling" = yes; then
8541 samba_cv_have_longlong
=cross
8543 cat > conftest.
$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8547 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8549 if { (eval echo configure
:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8551 samba_cv_have_longlong
=yes
8553 echo "configure: failed program was:" >&5
8554 cat conftest.
$ac_ext >&5
8556 samba_cv_have_longlong
=no
8563 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8564 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8565 cat >> confdefs.h
<<\EOF
8566 #define HAVE_LONGLONG 1
8572 # Check if the compiler supports the LL prefix on long long integers.
8575 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8576 echo "configure:8577: checking for LL suffix on long long integers" >&5
8577 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8581 cat > conftest.
$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8586 long long i = 0x8000000000LL
8589 if { (eval echo configure
:8590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8591 samba_cv_compiler_supports_ll
=yes
8593 echo "configure: failed program was:" >&5
8594 cat conftest.
$ac_ext >&5
8596 samba_cv_compiler_supports_ll
=no
8601 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8602 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8603 cat >> confdefs.h
<<\EOF
8604 #define COMPILER_SUPPORTS_LL 1
8610 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8611 echo "configure:8612: checking for 64 bit off_t" >&5
8612 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8616 if test "$cross_compiling" = yes; then
8617 samba_cv_SIZEOF_OFF_T
=cross
8619 cat > conftest.
$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8623 #include <sys/stat.h>
8624 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8626 if { (eval echo configure
:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8628 samba_cv_SIZEOF_OFF_T
=yes
8630 echo "configure: failed program was:" >&5
8631 cat conftest.
$ac_ext >&5
8633 samba_cv_SIZEOF_OFF_T
=no
8640 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8641 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8642 cat >> confdefs.h
<<\EOF
8643 #define SIZEOF_OFF_T 8
8648 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8649 echo "configure:8650: checking for off64_t" >&5
8650 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8651 echo $ac_n "(cached) $ac_c" 1>&6
8654 if test "$cross_compiling" = yes; then
8655 samba_cv_HAVE_OFF64_T
=cross
8657 cat > conftest.
$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8661 #if defined(HAVE_UNISTD_H)
8665 #include <sys/stat.h>
8666 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8668 if { (eval echo configure
:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8670 samba_cv_HAVE_OFF64_T
=yes
8672 echo "configure: failed program was:" >&5
8673 cat conftest.
$ac_ext >&5
8675 samba_cv_HAVE_OFF64_T
=no
8682 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8683 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8684 cat >> confdefs.h
<<\EOF
8685 #define HAVE_OFF64_T 1
8690 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8691 echo "configure:8692: checking for 64 bit ino_t" >&5
8692 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8696 if test "$cross_compiling" = yes; then
8697 samba_cv_SIZEOF_INO_T
=cross
8699 cat > conftest.
$ac_ext <<EOF
8700 #line 8701 "configure"
8701 #include "confdefs.h"
8703 #include <sys/stat.h>
8704 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8706 if { (eval echo configure
:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8708 samba_cv_SIZEOF_INO_T
=yes
8710 echo "configure: failed program was:" >&5
8711 cat conftest.
$ac_ext >&5
8713 samba_cv_SIZEOF_INO_T
=no
8720 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8721 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8722 cat >> confdefs.h
<<\EOF
8723 #define SIZEOF_INO_T 8
8728 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8729 echo "configure:8730: checking for ino64_t" >&5
8730 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8734 if test "$cross_compiling" = yes; then
8735 samba_cv_HAVE_INO64_T
=cross
8737 cat > conftest.
$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8741 #if defined(HAVE_UNISTD_H)
8745 #include <sys/stat.h>
8746 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8748 if { (eval echo configure
:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8750 samba_cv_HAVE_INO64_T
=yes
8752 echo "configure: failed program was:" >&5
8753 cat conftest.
$ac_ext >&5
8755 samba_cv_HAVE_INO64_T
=no
8762 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8763 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8764 cat >> confdefs.h
<<\EOF
8765 #define HAVE_INO64_T 1
8770 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8771 echo "configure:8772: checking for struct dirent64" >&5
8772 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8773 echo $ac_n "(cached) $ac_c" 1>&6
8776 cat > conftest.
$ac_ext <<EOF
8777 #line 8778 "configure"
8778 #include "confdefs.h"
8780 #if defined(HAVE_UNISTD_H)
8783 #include <sys/types.h>
8789 if { (eval echo configure
:8790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8791 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8793 echo "configure: failed program was:" >&5
8794 cat conftest.
$ac_ext >&5
8796 samba_cv_HAVE_STRUCT_DIRENT64
=no
8801 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8802 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8803 cat >> confdefs.h
<<\EOF
8804 #define HAVE_STRUCT_DIRENT64 1
8809 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8810 echo "configure:8811: checking for unsigned char" >&5
8811 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8812 echo $ac_n "(cached) $ac_c" 1>&6
8815 if test "$cross_compiling" = yes; then
8816 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8818 cat > conftest.
$ac_ext <<EOF
8819 #line 8820 "configure"
8820 #include "confdefs.h"
8822 main() { char c; c=250; exit((c > 0)?0:1); }
8824 if { (eval echo configure
:8825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8826 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8828 echo "configure: failed program was:" >&5
8829 cat conftest.
$ac_ext >&5
8831 samba_cv_HAVE_UNSIGNED_CHAR
=no
8838 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8839 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8840 cat >> confdefs.h
<<\EOF
8841 #define HAVE_UNSIGNED_CHAR 1
8846 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8847 echo "configure:8848: checking for sin_len in sock" >&5
8848 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8849 echo $ac_n "(cached) $ac_c" 1>&6
8852 cat > conftest.
$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 #include <sys/types.h>
8856 #include <sys/socket.h>
8857 #include <netinet/in.h>
8859 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8862 if { (eval echo configure
:8863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8864 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8866 echo "configure: failed program was:" >&5
8867 cat conftest.
$ac_ext >&5
8869 samba_cv_HAVE_SOCK_SIN_LEN
=no
8874 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8875 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8876 cat >> confdefs.h
<<\EOF
8877 #define HAVE_SOCK_SIN_LEN 1
8882 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8883 echo "configure:8884: checking whether seekdir returns void" >&5
8884 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8888 cat > conftest.
$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8891 #include <sys/types.h>
8893 void seekdir(DIR *d, long loc) { return; }
8898 if { (eval echo configure
:8899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8900 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8902 echo "configure: failed program was:" >&5
8903 cat conftest.
$ac_ext >&5
8905 samba_cv_SEEKDIR_RETURNS_VOID
=no
8910 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8911 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8912 cat >> confdefs.h
<<\EOF
8913 #define SEEKDIR_RETURNS_VOID 1
8918 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8919 echo "configure:8920: checking for __FILE__ macro" >&5
8920 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8924 cat > conftest.
$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8929 printf("%s\n", __FILE__);
8932 if { (eval echo configure
:8933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8934 samba_cv_HAVE_FILE_MACRO
=yes
8936 echo "configure: failed program was:" >&5
8937 cat conftest.
$ac_ext >&5
8939 samba_cv_HAVE_FILE_MACRO
=no
8944 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8945 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8946 cat >> confdefs.h
<<\EOF
8947 #define HAVE_FILE_MACRO 1
8952 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8953 echo "configure:8954: checking for __FUNCTION__ macro" >&5
8954 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8955 echo $ac_n "(cached) $ac_c" 1>&6
8958 cat > conftest.
$ac_ext <<EOF
8959 #line 8960 "configure"
8960 #include "confdefs.h"
8963 printf("%s\n", __FUNCTION__);
8966 if { (eval echo configure
:8967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8968 samba_cv_HAVE_FUNCTION_MACRO
=yes
8970 echo "configure: failed program was:" >&5
8971 cat conftest.
$ac_ext >&5
8973 samba_cv_HAVE_FUNCTION_MACRO
=no
8978 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8979 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8980 cat >> confdefs.h
<<\EOF
8981 #define HAVE_FUNCTION_MACRO 1
8986 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8987 echo "configure:8988: checking if gettimeofday takes tz argument" >&5
8988 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
8992 if test "$cross_compiling" = yes; then
8993 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8995 cat > conftest.
$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8999 #include <sys/time.h>
9001 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9003 if { (eval echo configure
:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9005 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9007 echo "configure: failed program was:" >&5
9008 cat conftest.
$ac_ext >&5
9010 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9017 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9018 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9019 cat >> confdefs.h
<<\EOF
9020 #define HAVE_GETTIMEOFDAY_TZ 1
9025 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9026 echo "configure:9027: checking for C99 vsnprintf" >&5
9027 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9028 echo $ac_n "(cached) $ac_c" 1>&6
9031 if test "$cross_compiling" = yes; then
9032 samba_cv_HAVE_C99_VSNPRINTF
=cross
9034 cat > conftest.
$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9038 #include <sys/types.h>
9040 void foo(const char *format, ...) {
9045 va_start(ap, format);
9046 len = vsnprintf(0, 0, format, ap);
9048 if (len != 5) exit(1);
9050 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9054 main() { foo("hello"); }
9057 if { (eval echo configure
:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9059 samba_cv_HAVE_C99_VSNPRINTF
=yes
9061 echo "configure: failed program was:" >&5
9062 cat conftest.
$ac_ext >&5
9064 samba_cv_HAVE_C99_VSNPRINTF
=no
9071 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9072 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9073 cat >> confdefs.h
<<\EOF
9074 #define HAVE_C99_VSNPRINTF 1
9079 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9080 echo "configure:9081: checking for broken readdir" >&5
9081 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9085 if test "$cross_compiling" = yes; then
9086 samba_cv_HAVE_BROKEN_READDIR
=cross
9088 cat > conftest.
$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 #include <sys/types.h>
9093 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9094 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9095 di->d_name[0] == 0) exit(0); exit(1);}
9097 if { (eval echo configure
:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9099 samba_cv_HAVE_BROKEN_READDIR
=yes
9101 echo "configure: failed program was:" >&5
9102 cat conftest.
$ac_ext >&5
9104 samba_cv_HAVE_BROKEN_READDIR
=no
9111 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9112 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9113 cat >> confdefs.h
<<\EOF
9114 #define HAVE_BROKEN_READDIR 1
9119 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9120 echo "configure:9121: checking for utimbuf" >&5
9121 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9125 cat > conftest.
$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9128 #include <sys/types.h>
9131 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9134 if { (eval echo configure
:9135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9136 samba_cv_HAVE_UTIMBUF
=yes
9138 echo "configure: failed program was:" >&5
9139 cat conftest.
$ac_ext >&5
9141 samba_cv_HAVE_UTIMBUF
=no
9146 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9147 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9148 cat >> confdefs.h
<<\EOF
9149 #define HAVE_UTIMBUF 1
9155 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9158 echo "configure:9159: checking for $ac_func" >&5
9159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9160 echo $ac_n "(cached) $ac_c" 1>&6
9162 cat > conftest.
$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 /* System header to define __stub macros and hopefully few prototypes,
9166 which can conflict with char $ac_func(); below. */
9168 /* Override any gcc2 internal prototype to avoid an error. */
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9175 /* The GNU C library defines this for functions which it implements
9176 to always fail with ENOSYS. Some functions are actually named
9177 something starting with __ and the normal name is an alias. */
9178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9186 if { (eval echo configure
:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9188 eval "ac_cv_func_$ac_func=yes"
9190 echo "configure: failed program was:" >&5
9191 cat conftest.
$ac_ext >&5
9193 eval "ac_cv_func_$ac_func=no"
9198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9199 echo "$ac_t""yes" 1>&6
9200 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9201 cat >> confdefs.h
<<EOF
9202 #define $ac_tr_func 1
9206 echo "$ac_t""no" 1>&6
9211 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9212 echo "configure:9213: checking for ut_name in utmp" >&5
9213 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9217 cat > conftest.
$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220 #include <sys/types.h>
9223 struct utmp ut; ut.ut_name[0] = 'a';
9226 if { (eval echo configure
:9227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9228 samba_cv_HAVE_UT_UT_NAME
=yes
9230 echo "configure: failed program was:" >&5
9231 cat conftest.
$ac_ext >&5
9233 samba_cv_HAVE_UT_UT_NAME
=no
9238 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9239 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9240 cat >> confdefs.h
<<\EOF
9241 #define HAVE_UT_UT_NAME 1
9246 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9247 echo "configure:9248: checking for ut_user in utmp" >&5
9248 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9252 cat > conftest.
$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9255 #include <sys/types.h>
9258 struct utmp ut; ut.ut_user[0] = 'a';
9261 if { (eval echo configure
:9262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9263 samba_cv_HAVE_UT_UT_USER
=yes
9265 echo "configure: failed program was:" >&5
9266 cat conftest.
$ac_ext >&5
9268 samba_cv_HAVE_UT_UT_USER
=no
9273 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9274 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9275 cat >> confdefs.h
<<\EOF
9276 #define HAVE_UT_UT_USER 1
9281 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9282 echo "configure:9283: checking for ut_id in utmp" >&5
9283 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9287 cat > conftest.
$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <sys/types.h>
9293 struct utmp ut; ut.ut_id[0] = 'a';
9296 if { (eval echo configure
:9297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9298 samba_cv_HAVE_UT_UT_ID
=yes
9300 echo "configure: failed program was:" >&5
9301 cat conftest.
$ac_ext >&5
9303 samba_cv_HAVE_UT_UT_ID
=no
9308 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9309 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9310 cat >> confdefs.h
<<\EOF
9311 #define HAVE_UT_UT_ID 1
9316 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9317 echo "configure:9318: checking for ut_host in utmp" >&5
9318 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9319 echo $ac_n "(cached) $ac_c" 1>&6
9322 cat > conftest.
$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 #include <sys/types.h>
9328 struct utmp ut; ut.ut_host[0] = 'a';
9331 if { (eval echo configure
:9332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9333 samba_cv_HAVE_UT_UT_HOST
=yes
9335 echo "configure: failed program was:" >&5
9336 cat conftest.
$ac_ext >&5
9338 samba_cv_HAVE_UT_UT_HOST
=no
9343 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9344 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9345 cat >> confdefs.h
<<\EOF
9346 #define HAVE_UT_UT_HOST 1
9351 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9352 echo "configure:9353: checking for ut_time in utmp" >&5
9353 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9354 echo $ac_n "(cached) $ac_c" 1>&6
9357 cat > conftest.
$ac_ext <<EOF
9358 #line 9359 "configure"
9359 #include "confdefs.h"
9360 #include <sys/types.h>
9363 struct utmp ut; time_t t; ut.ut_time = t;
9366 if { (eval echo configure
:9367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9368 samba_cv_HAVE_UT_UT_TIME
=yes
9370 echo "configure: failed program was:" >&5
9371 cat conftest.
$ac_ext >&5
9373 samba_cv_HAVE_UT_UT_TIME
=no
9378 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9379 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9380 cat >> confdefs.h
<<\EOF
9381 #define HAVE_UT_UT_TIME 1
9386 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9387 echo "configure:9388: checking for ut_tv in utmp" >&5
9388 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9392 cat > conftest.
$ac_ext <<EOF
9393 #line 9394 "configure"
9394 #include "confdefs.h"
9395 #include <sys/types.h>
9398 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9401 if { (eval echo configure
:9402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9403 samba_cv_HAVE_UT_UT_TV
=yes
9405 echo "configure: failed program was:" >&5
9406 cat conftest.
$ac_ext >&5
9408 samba_cv_HAVE_UT_UT_TV
=no
9413 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9414 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9415 cat >> confdefs.h
<<\EOF
9416 #define HAVE_UT_UT_TV 1
9421 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9422 echo "configure:9423: checking for ut_type in utmp" >&5
9423 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9427 cat > conftest.
$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9430 #include <sys/types.h>
9433 struct utmp ut; ut.ut_type = 0;
9436 if { (eval echo configure
:9437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9438 samba_cv_HAVE_UT_UT_TYPE
=yes
9440 echo "configure: failed program was:" >&5
9441 cat conftest.
$ac_ext >&5
9443 samba_cv_HAVE_UT_UT_TYPE
=no
9448 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9449 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9450 cat >> confdefs.h
<<\EOF
9451 #define HAVE_UT_UT_TYPE 1
9456 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9457 echo "configure:9458: checking for ut_pid in utmp" >&5
9458 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9462 cat > conftest.
$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 #include <sys/types.h>
9468 struct utmp ut; ut.ut_pid = 0;
9471 if { (eval echo configure
:9472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9473 samba_cv_HAVE_UT_UT_PID
=yes
9475 echo "configure: failed program was:" >&5
9476 cat conftest.
$ac_ext >&5
9478 samba_cv_HAVE_UT_UT_PID
=no
9483 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9484 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9485 cat >> confdefs.h
<<\EOF
9486 #define HAVE_UT_UT_PID 1
9491 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9492 echo "configure:9493: checking for ut_exit in utmp" >&5
9493 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9494 echo $ac_n "(cached) $ac_c" 1>&6
9497 cat > conftest.
$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #include <sys/types.h>
9503 struct utmp ut; ut.ut_exit.e_exit = 0;
9506 if { (eval echo configure
:9507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9508 samba_cv_HAVE_UT_UT_EXIT
=yes
9510 echo "configure: failed program was:" >&5
9511 cat conftest.
$ac_ext >&5
9513 samba_cv_HAVE_UT_UT_EXIT
=no
9518 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9519 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9520 cat >> confdefs.h
<<\EOF
9521 #define HAVE_UT_UT_EXIT 1
9526 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9527 echo "configure:9528: checking for ut_addr in utmp" >&5
9528 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9532 cat > conftest.
$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9538 struct utmp ut; ut.ut_addr = 0;
9541 if { (eval echo configure
:9542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9543 samba_cv_HAVE_UT_UT_ADDR
=yes
9545 echo "configure: failed program was:" >&5
9546 cat conftest.
$ac_ext >&5
9548 samba_cv_HAVE_UT_UT_ADDR
=no
9553 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9554 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9555 cat >> confdefs.h
<<\EOF
9556 #define HAVE_UT_UT_ADDR 1
9561 if test x
$ac_cv_func_pututline = xyes
; then
9562 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9563 echo "configure:9564: checking whether pututline returns pointer" >&5
9564 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9568 cat > conftest.
$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9574 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9577 if { (eval echo configure
:9578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9579 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9581 echo "configure: failed program was:" >&5
9582 cat conftest.
$ac_ext >&5
9584 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9589 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9590 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9591 cat >> confdefs.h
<<\EOF
9592 #define PUTUTLINE_RETURNS_UTMP 1
9598 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9599 echo "configure:9600: checking for ut_syslen in utmpx" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9604 cat > conftest.
$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 #include <sys/types.h>
9610 struct utmpx ux; ux.ut_syslen = 0;
9613 if { (eval echo configure
:9614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9615 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9617 echo "configure: failed program was:" >&5
9618 cat conftest.
$ac_ext >&5
9620 samba_cv_HAVE_UX_UT_SYSLEN
=no
9625 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9626 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9627 cat >> confdefs.h
<<\EOF
9628 #define HAVE_UX_UT_SYSLEN 1
9634 #################################################
9635 # check for libiconv support
9636 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9637 echo "configure:9638: checking whether to use libiconv" >&5
9638 # Check whether --with-libiconv or --without-libiconv was given.
9639 if test "${with_libiconv+set}" = set; then
9640 withval
="$with_libiconv"
9643 echo "$ac_t""no" 1>&6
9646 echo "$ac_t""yes" 1>&6
9647 CFLAGS
="$CFLAGS -I$withval/include"
9648 LDFLAGS
="$LDFLAGS -L$withval/lib"
9649 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9650 echo "configure:9651: checking for iconv_open in -liconv" >&5
9651 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9655 ac_save_LIBS
="$LIBS"
9656 LIBS
="-liconv $LIBS"
9657 cat > conftest.
$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9669 if { (eval echo configure
:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9671 eval "ac_cv_lib_$ac_lib_var=yes"
9673 echo "configure: failed program was:" >&5
9674 cat conftest.
$ac_ext >&5
9676 eval "ac_cv_lib_$ac_lib_var=no"
9679 LIBS
="$ac_save_LIBS"
9682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9683 echo "$ac_t""yes" 1>&6
9684 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9686 cat >> confdefs.h
<<EOF
9687 #define $ac_tr_lib 1
9690 LIBS
="-liconv $LIBS"
9693 echo "$ac_t""no" 1>&6
9696 cat >> confdefs.h
<<EOF
9697 #define WITH_LIBICONV "${withval}"
9703 echo "$ac_t""no" 1>&6
9710 # check for iconv in libc
9711 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9712 echo "configure:9713: checking for working iconv" >&5
9713 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9717 if test "$cross_compiling" = yes; then
9718 samba_cv_HAVE_NATIVE_ICONV
=cross
9720 cat > conftest.
$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9726 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9727 if (cd == 0 || cd == (iconv_t)-1) return -1;
9732 if { (eval echo configure
:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9734 samba_cv_HAVE_NATIVE_ICONV
=yes
9736 echo "configure: failed program was:" >&5
9737 cat conftest.
$ac_ext >&5
9739 samba_cv_HAVE_NATIVE_ICONV
=no
9746 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9747 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
9748 cat >> confdefs.h
<<\EOF
9749 #define HAVE_NATIVE_ICONV 1
9755 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9756 echo "configure:9757: checking for Linux kernel oplocks" >&5
9757 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9758 echo $ac_n "(cached) $ac_c" 1>&6
9761 if test "$cross_compiling" = yes; then
9762 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9764 cat > conftest.
$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9768 #include <sys/types.h>
9771 #define F_GETLEASE 1025
9774 int fd = open("/dev/null", O_RDONLY);
9775 return fcntl(fd, F_GETLEASE, 0) == -1;
9779 if { (eval echo configure
:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9781 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9783 echo "configure: failed program was:" >&5
9784 cat conftest.
$ac_ext >&5
9786 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9793 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9794 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9795 cat >> confdefs.h
<<\EOF
9796 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9801 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9802 echo "configure:9803: checking for kernel change notify support" >&5
9803 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9807 if test "$cross_compiling" = yes; then
9808 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9810 cat > conftest.
$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9814 #include <sys/types.h>
9818 #define F_NOTIFY 1026
9821 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9825 if { (eval echo configure
:9826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9827 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9829 echo "configure: failed program was:" >&5
9830 cat conftest.
$ac_ext >&5
9832 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9839 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9840 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9841 cat >> confdefs.h
<<\EOF
9842 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9847 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9848 echo "configure:9849: checking for kernel share modes" >&5
9849 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9853 if test "$cross_compiling" = yes; then
9854 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9856 cat > conftest.
$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9860 #include <sys/types.h>
9863 #include <sys/file.h>
9865 #define LOCK_MAND 32
9866 #define LOCK_READ 64
9869 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9873 if { (eval echo configure
:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9875 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9877 echo "configure: failed program was:" >&5
9878 cat conftest.
$ac_ext >&5
9880 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9887 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9888 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9889 cat >> confdefs.h
<<\EOF
9890 #define HAVE_KERNEL_SHARE_MODES 1
9898 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9899 echo "configure:9900: checking for IRIX kernel oplock type definitions" >&5
9900 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9901 echo $ac_n "(cached) $ac_c" 1>&6
9904 cat > conftest.
$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9907 #include <sys/types.h>
9910 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9913 if { (eval echo configure
:9914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9915 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9917 echo "configure: failed program was:" >&5
9918 cat conftest.
$ac_ext >&5
9920 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9925 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9926 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9927 cat >> confdefs.h
<<\EOF
9928 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9933 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9934 echo "configure:9935: checking for irix specific capabilities" >&5
9935 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9939 if test "$cross_compiling" = yes; then
9940 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9942 cat > conftest.
$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 #include <sys/types.h>
9946 #include <sys/capability.h>
9949 if ((cap = cap_get_proc()) == NULL)
9951 cap->cap_effective |= CAP_NETWORK_MGT;
9952 cap->cap_inheritable |= CAP_NETWORK_MGT;
9958 if { (eval echo configure
:9959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9960 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9962 echo "configure: failed program was:" >&5
9963 cat conftest.
$ac_ext >&5
9965 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9972 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9973 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9974 cat >> confdefs.h
<<\EOF
9975 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9981 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9982 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9985 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9986 echo "configure:9987: checking for int16 typedef included by rpc/rpc.h" >&5
9987 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9991 cat > conftest.
$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 #include <sys/types.h>
9995 #if defined(HAVE_RPC_RPC_H)
9996 #include <rpc/rpc.h>
10002 if { (eval echo configure
:10003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10004 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10006 echo "configure: failed program was:" >&5
10007 cat conftest.
$ac_ext >&5
10009 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10014 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10015 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10016 cat >> confdefs.h
<<\EOF
10017 #define HAVE_INT16_FROM_RPC_RPC_H 1
10022 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10023 echo "configure:10024: checking for uint16 typedef included by rpc/rpc.h" >&5
10024 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10028 cat > conftest.
$ac_ext <<EOF
10029 #line 10030 "configure"
10030 #include "confdefs.h"
10031 #include <sys/types.h>
10032 #if defined(HAVE_RPC_RPC_H)
10033 #include <rpc/rpc.h>
10039 if { (eval echo configure
:10040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10041 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10043 echo "configure: failed program was:" >&5
10044 cat conftest.
$ac_ext >&5
10046 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10051 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10052 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10053 cat >> confdefs.h
<<\EOF
10054 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10059 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10060 echo "configure:10061: checking for int32 typedef included by rpc/rpc.h" >&5
10061 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10062 echo $ac_n "(cached) $ac_c" 1>&6
10065 cat > conftest.
$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 #include <sys/types.h>
10069 #if defined(HAVE_RPC_RPC_H)
10070 #include <rpc/rpc.h>
10076 if { (eval echo configure
:10077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10078 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10080 echo "configure: failed program was:" >&5
10081 cat conftest.
$ac_ext >&5
10083 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10088 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10089 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10090 cat >> confdefs.h
<<\EOF
10091 #define HAVE_INT32_FROM_RPC_RPC_H 1
10096 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10097 echo "configure:10098: checking for uint32 typedef included by rpc/rpc.h" >&5
10098 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10102 cat > conftest.
$ac_ext <<EOF
10103 #line 10104 "configure"
10104 #include "confdefs.h"
10105 #include <sys/types.h>
10106 #if defined(HAVE_RPC_RPC_H)
10107 #include <rpc/rpc.h>
10113 if { (eval echo configure
:10114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10115 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10117 echo "configure: failed program was:" >&5
10118 cat conftest.
$ac_ext >&5
10120 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10125 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10126 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10127 cat >> confdefs.h
<<\EOF
10128 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10134 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10135 echo "configure:10136: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10136 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10140 cat > conftest.
$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 #include <sys/types.h>
10144 #ifdef HAVE_SYS_SECURITY_H
10145 #include <sys/security.h>
10147 #endif /* HAVE_SYS_SECURITY_H */
10148 #if defined(HAVE_RPC_RPC_H)
10149 #include <rpc/rpc.h>
10155 if { (eval echo configure
:10156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10157 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10159 echo "configure: failed program was:" >&5
10160 cat conftest.
$ac_ext >&5
10162 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10167 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10168 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10169 cat >> confdefs.h
<<\EOF
10170 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10175 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10176 echo "configure:10177: checking for test routines" >&5
10177 if test "$cross_compiling" = yes; then
10178 echo "configure: warning: cannot run when cross-compiling" 1>&2
10180 cat > conftest.
$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include "${srcdir-.}/tests/trivial.c"
10185 if { (eval echo configure
:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10187 echo "$ac_t""yes" 1>&6
10189 echo "configure: failed program was:" >&5
10190 cat conftest.
$ac_ext >&5
10192 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10198 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10199 echo "configure:10200: checking for ftruncate extend" >&5
10200 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10201 echo $ac_n "(cached) $ac_c" 1>&6
10204 if test "$cross_compiling" = yes; then
10205 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10207 cat > conftest.
$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 #include "${srcdir-.}/tests/ftruncate.c"
10212 if { (eval echo configure
:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10214 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10216 echo "configure: failed program was:" >&5
10217 cat conftest.
$ac_ext >&5
10219 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10226 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10227 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10228 cat >> confdefs.h
<<\EOF
10229 #define HAVE_FTRUNCATE_EXTEND 1
10234 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10235 echo "configure:10236: checking for AF_LOCAL socket support" >&5
10236 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10240 if test "$cross_compiling" = yes; then
10241 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
10243 cat > conftest.
$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include "${srcdir-.}/tests/unixsock.c"
10248 if { (eval echo configure
:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10250 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
10252 echo "configure: failed program was:" >&5
10253 cat conftest.
$ac_ext >&5
10255 samba_cv_HAVE_WORKING_AF_LOCAL
=no
10262 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10263 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10265 cat >> confdefs.h
<<\EOF
10266 #define HAVE_WORKING_AF_LOCAL 1
10271 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10272 echo "configure:10273: checking for broken getgroups" >&5
10273 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10274 echo $ac_n "(cached) $ac_c" 1>&6
10277 if test "$cross_compiling" = yes; then
10278 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10280 cat > conftest.
$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 #include "${srcdir-.}/tests/getgroups.c"
10285 if { (eval echo configure
:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10287 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10289 echo "configure: failed program was:" >&5
10290 cat conftest.
$ac_ext >&5
10292 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10299 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10300 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10301 cat >> confdefs.h
<<\EOF
10302 #define HAVE_BROKEN_GETGROUPS 1
10307 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10308 echo "configure:10309: checking whether getpass should be replaced" >&5
10309 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10310 echo $ac_n "(cached) $ac_c" 1>&6
10313 SAVE_CPPFLAGS
="$CPPFLAGS"
10314 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10315 cat > conftest.
$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10319 #define REPLACE_GETPASS 1
10320 #define NO_CONFIG_H 1
10321 #define main dont_declare_main
10322 #include "${srcdir-.}/lib/getsmbpass.c"
10329 if { (eval echo configure
:10330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10331 samba_cv_REPLACE_GETPASS
=yes
10333 echo "configure: failed program was:" >&5
10334 cat conftest.
$ac_ext >&5
10336 samba_cv_REPLACE_GETPASS
=no
10339 CPPFLAGS
="$SAVE_CPPFLAGS"
10343 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10344 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10345 cat >> confdefs.h
<<\EOF
10346 #define REPLACE_GETPASS 1
10351 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10352 echo "configure:10353: checking for broken inet_ntoa" >&5
10353 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10357 if test "$cross_compiling" = yes; then
10358 samba_cv_REPLACE_INET_NTOA
=cross
10360 cat > conftest.
$ac_ext <<EOF
10361 #line 10362 "configure"
10362 #include "confdefs.h"
10365 #include <sys/types.h>
10366 #include <netinet/in.h>
10367 #ifdef HAVE_ARPA_INET_H
10368 #include <arpa/inet.h>
10370 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10371 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10372 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10375 if { (eval echo configure
:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10377 samba_cv_REPLACE_INET_NTOA
=yes
10379 echo "configure: failed program was:" >&5
10380 cat conftest.
$ac_ext >&5
10382 samba_cv_REPLACE_INET_NTOA
=no
10389 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10390 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10391 cat >> confdefs.h
<<\EOF
10392 #define REPLACE_INET_NTOA 1
10397 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10398 echo "configure:10399: checking for secure mkstemp" >&5
10399 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10403 if test "$cross_compiling" = yes; then
10404 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10406 cat > conftest.
$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409 #include <stdlib.h>
10410 #include <sys/types.h>
10411 #include <sys/stat.h>
10412 #include <unistd.h>
10415 char tpl[20]="/tmp/test.XXXXXX";
10416 int fd = mkstemp(tpl);
10417 if (fd == -1) exit(1);
10419 if (fstat(fd, &st) != 0) exit(1);
10420 if ((st.st_mode & 0777) != 0600) exit(1);
10424 if { (eval echo configure
:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10426 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10428 echo "configure: failed program was:" >&5
10429 cat conftest.
$ac_ext >&5
10431 samba_cv_HAVE_SECURE_MKSTEMP
=no
10438 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10439 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10440 cat >> confdefs.h
<<\EOF
10441 #define HAVE_SECURE_MKSTEMP 1
10446 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10447 echo "configure:10448: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10448 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10452 if test "$cross_compiling" = yes; then
10453 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10455 cat > conftest.
$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include <unistd.h>
10459 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10461 if { (eval echo configure
:10462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10463 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10465 echo "configure: failed program was:" >&5
10466 cat conftest.
$ac_ext >&5
10468 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10475 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10476 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10477 cat >> confdefs.h
<<\EOF
10478 #define SYSCONF_SC_NGROUPS_MAX 1
10483 echo $ac_n "checking for root""... $ac_c" 1>&6
10484 echo "configure:10485: checking for root" >&5
10485 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10489 if test "$cross_compiling" = yes; then
10490 samba_cv_HAVE_ROOT
=cross
10492 cat > conftest.
$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10495 main() { exit(getuid() != 0); }
10497 if { (eval echo configure
:10498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10499 samba_cv_HAVE_ROOT
=yes
10501 echo "configure: failed program was:" >&5
10502 cat conftest.
$ac_ext >&5
10504 samba_cv_HAVE_ROOT
=no
10511 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10512 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10513 cat >> confdefs.h
<<\EOF
10514 #define HAVE_ROOT 1
10518 echo "configure: warning: running as non-root will disable some tests" 1>&2
10522 # look for a method of finding the list of network interfaces
10524 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10525 echo "configure:10526: checking for iface AIX" >&5
10526 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10530 if test "$cross_compiling" = yes; then
10531 samba_cv_HAVE_IFACE_AIX
=cross
10533 cat > conftest.
$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10537 #define HAVE_IFACE_AIX 1
10538 #define AUTOCONF_TEST 1
10539 #include "confdefs.h"
10540 #include "${srcdir-.}/lib/interfaces.c"
10542 if { (eval echo configure
:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10544 samba_cv_HAVE_IFACE_AIX
=yes
10546 echo "configure: failed program was:" >&5
10547 cat conftest.
$ac_ext >&5
10549 samba_cv_HAVE_IFACE_AIX
=no
10556 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10557 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10558 iface
=yes;cat >> confdefs.h
<<\EOF
10559 #define HAVE_IFACE_AIX 1
10564 if test $iface = no
; then
10565 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10566 echo "configure:10567: checking for iface ifconf" >&5
10567 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10571 if test "$cross_compiling" = yes; then
10572 samba_cv_HAVE_IFACE_IFCONF
=cross
10574 cat > conftest.
$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10578 #define HAVE_IFACE_IFCONF 1
10579 #define AUTOCONF_TEST 1
10580 #include "confdefs.h"
10581 #include "${srcdir-.}/lib/interfaces.c"
10583 if { (eval echo configure
:10584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10585 samba_cv_HAVE_IFACE_IFCONF
=yes
10587 echo "configure: failed program was:" >&5
10588 cat conftest.
$ac_ext >&5
10590 samba_cv_HAVE_IFACE_IFCONF
=no
10597 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10598 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10599 iface
=yes;cat >> confdefs.h
<<\EOF
10600 #define HAVE_IFACE_IFCONF 1
10606 if test $iface = no
; then
10607 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10608 echo "configure:10609: checking for iface ifreq" >&5
10609 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10610 echo $ac_n "(cached) $ac_c" 1>&6
10613 if test "$cross_compiling" = yes; then
10614 samba_cv_HAVE_IFACE_IFREQ
=cross
10616 cat > conftest.
$ac_ext <<EOF
10617 #line 10618 "configure"
10618 #include "confdefs.h"
10620 #define HAVE_IFACE_IFREQ 1
10621 #define AUTOCONF_TEST 1
10622 #include "confdefs.h"
10623 #include "${srcdir-.}/lib/interfaces.c"
10625 if { (eval echo configure
:10626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10627 samba_cv_HAVE_IFACE_IFREQ
=yes
10629 echo "configure: failed program was:" >&5
10630 cat conftest.
$ac_ext >&5
10632 samba_cv_HAVE_IFACE_IFREQ
=no
10639 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10640 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10641 iface
=yes;cat >> confdefs.h
<<\EOF
10642 #define HAVE_IFACE_IFREQ 1
10649 ################################################
10650 # look for a method of setting the effective uid
10652 if test $seteuid = no
; then
10653 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10654 echo "configure:10655: checking for setresuid" >&5
10655 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10656 echo $ac_n "(cached) $ac_c" 1>&6
10659 if test "$cross_compiling" = yes; then
10660 samba_cv_USE_SETRESUID
=cross
10662 cat > conftest.
$ac_ext <<EOF
10663 #line 10664 "configure"
10664 #include "confdefs.h"
10666 #define AUTOCONF_TEST 1
10667 #define USE_SETRESUID 1
10668 #include "confdefs.h"
10669 #include "${srcdir-.}/lib/util_sec.c"
10671 if { (eval echo configure
:10672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10673 samba_cv_USE_SETRESUID
=yes
10675 echo "configure: failed program was:" >&5
10676 cat conftest.
$ac_ext >&5
10678 samba_cv_USE_SETRESUID
=no
10685 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10686 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10687 seteuid
=yes;cat >> confdefs.h
<<\EOF
10688 #define USE_SETRESUID 1
10695 if test $seteuid = no
; then
10696 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10697 echo "configure:10698: checking for setreuid" >&5
10698 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10699 echo $ac_n "(cached) $ac_c" 1>&6
10702 if test "$cross_compiling" = yes; then
10703 samba_cv_USE_SETREUID
=cross
10705 cat > conftest.
$ac_ext <<EOF
10706 #line 10707 "configure"
10707 #include "confdefs.h"
10709 #define AUTOCONF_TEST 1
10710 #define USE_SETREUID 1
10711 #include "confdefs.h"
10712 #include "${srcdir-.}/lib/util_sec.c"
10714 if { (eval echo configure
:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10716 samba_cv_USE_SETREUID
=yes
10718 echo "configure: failed program was:" >&5
10719 cat conftest.
$ac_ext >&5
10721 samba_cv_USE_SETREUID
=no
10728 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10729 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10730 seteuid
=yes;cat >> confdefs.h
<<\EOF
10731 #define USE_SETREUID 1
10737 if test $seteuid = no
; then
10738 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10739 echo "configure:10740: checking for seteuid" >&5
10740 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10744 if test "$cross_compiling" = yes; then
10745 samba_cv_USE_SETEUID
=cross
10747 cat > conftest.
$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10751 #define AUTOCONF_TEST 1
10752 #define USE_SETEUID 1
10753 #include "confdefs.h"
10754 #include "${srcdir-.}/lib/util_sec.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_USE_SETEUID
=yes
10760 echo "configure: failed program was:" >&5
10761 cat conftest.
$ac_ext >&5
10763 samba_cv_USE_SETEUID
=no
10770 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10771 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10772 seteuid
=yes;cat >> confdefs.h
<<\EOF
10773 #define USE_SETEUID 1
10779 if test $seteuid = no
; then
10780 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10781 echo "configure:10782: checking for setuidx" >&5
10782 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_USE_SETUIDX
=cross
10789 cat > conftest.
$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10793 #define AUTOCONF_TEST 1
10794 #define USE_SETUIDX 1
10795 #include "confdefs.h"
10796 #include "${srcdir-.}/lib/util_sec.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_USE_SETUIDX
=yes
10802 echo "configure: failed program was:" >&5
10803 cat conftest.
$ac_ext >&5
10805 samba_cv_USE_SETUIDX
=no
10812 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10813 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10814 seteuid
=yes;cat >> confdefs.h
<<\EOF
10815 #define USE_SETUIDX 1
10822 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10823 echo "configure:10824: checking for working mmap" >&5
10824 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10825 echo $ac_n "(cached) $ac_c" 1>&6
10828 if test "$cross_compiling" = yes; then
10829 samba_cv_HAVE_MMAP
=cross
10831 cat > conftest.
$ac_ext <<EOF
10832 #line 10833 "configure"
10833 #include "confdefs.h"
10834 #include "${srcdir-.}/tests/shared_mmap.c"
10836 if { (eval echo configure
:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10838 samba_cv_HAVE_MMAP
=yes
10840 echo "configure: failed program was:" >&5
10841 cat conftest.
$ac_ext >&5
10843 samba_cv_HAVE_MMAP
=no
10850 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10851 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10852 cat >> confdefs.h
<<\EOF
10853 #define HAVE_MMAP 1
10858 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10859 echo "configure:10860: checking for ftruncate needs root" >&5
10860 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10864 if test "$cross_compiling" = yes; then
10865 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10867 cat > conftest.
$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #include "${srcdir-.}/tests/ftruncroot.c"
10872 if { (eval echo configure
:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10874 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10876 echo "configure: failed program was:" >&5
10877 cat conftest.
$ac_ext >&5
10879 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10886 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10887 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10888 cat >> confdefs.h
<<\EOF
10889 #define FTRUNCATE_NEEDS_ROOT 1
10894 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10895 echo "configure:10896: checking for fcntl locking" >&5
10896 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10900 if test "$cross_compiling" = yes; then
10901 samba_cv_HAVE_FCNTL_LOCK
=cross
10903 cat > conftest.
$ac_ext <<EOF
10904 #line 10905 "configure"
10905 #include "confdefs.h"
10906 #include "${srcdir-.}/tests/fcntl_lock.c"
10908 if { (eval echo configure
:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10910 samba_cv_HAVE_FCNTL_LOCK
=yes
10912 echo "configure: failed program was:" >&5
10913 cat conftest.
$ac_ext >&5
10915 samba_cv_HAVE_FCNTL_LOCK
=no
10922 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10923 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10924 cat >> confdefs.h
<<\EOF
10925 #define HAVE_FCNTL_LOCK 1
10930 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10931 echo "configure:10932: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10932 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10936 if test "$cross_compiling" = yes; then
10937 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10939 cat > conftest.
$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10942 #include "${srcdir-.}/tests/fcntl_lock64.c"
10944 if { (eval echo configure
:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10946 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10948 echo "configure: failed program was:" >&5
10949 cat conftest.
$ac_ext >&5
10951 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10958 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10959 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10960 cat >> confdefs.h
<<\EOF
10961 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10968 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10969 echo "configure:10970: checking for 64 bit fcntl locking" >&5
10970 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10971 echo $ac_n "(cached) $ac_c" 1>&6
10974 if test "$cross_compiling" = yes; then
10975 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10977 cat > conftest.
$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10981 #if defined(HAVE_UNISTD_H)
10982 #include <unistd.h>
10985 #include <stdlib.h>
10987 #ifdef HAVE_FCNTL_H
10991 #ifdef HAVE_SYS_FCNTL_H
10992 #include <sys/fcntl.h>
10994 main() { struct flock64 fl64;
10995 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11002 if { (eval echo configure
:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11004 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11006 echo "configure: failed program was:" >&5
11007 cat conftest.
$ac_ext >&5
11009 samba_cv_HAVE_STRUCT_FLOCK64
=no
11016 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11018 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11019 cat >> confdefs.h
<<\EOF
11020 #define HAVE_STRUCT_FLOCK64 1
11026 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11027 echo "configure:11028: checking for broken nisplus include files" >&5
11028 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11029 echo $ac_n "(cached) $ac_c" 1>&6
11032 cat > conftest.
$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 #include <sys/acl.h>
11036 #if defined(HAVE_RPCSVC_NIS_H)
11037 #include <rpcsvc/nis.h>
11043 if { (eval echo configure
:11044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11045 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11047 echo "configure: failed program was:" >&5
11048 cat conftest.
$ac_ext >&5
11050 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11055 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11056 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11057 cat >> confdefs.h
<<\EOF
11058 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11064 #################################################
11065 # check for smbwrapper support
11066 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11067 echo "configure:11068: checking whether to use smbwrapper" >&5
11068 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11069 if test "${with_smbwrapper+set}" = set; then
11070 withval
="$with_smbwrapper"
11073 echo "$ac_t""yes" 1>&6
11074 cat >> confdefs.h
<<\EOF
11075 #define WITH_SMBWRAPPER 1
11078 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11080 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11083 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11086 # Conditions under which smbwrapper should not be built.
11088 if test x
$PICFLAG = x
; then
11089 echo No support
for PIC code
- disabling smbwrapper and smbsh
11092 elif test x
$ac_cv_func_syscall = xno
; then
11093 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11099 echo "$ac_t""no" 1>&6
11103 echo "$ac_t""no" 1>&6
11108 #################################################
11109 # check for the AFS filesystem
11110 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11111 echo "configure:11112: checking whether to use AFS" >&5
11112 # Check whether --with-afs or --without-afs was given.
11113 if test "${with_afs+set}" = set; then
11114 withval
="$with_afs"
11117 echo "$ac_t""yes" 1>&6
11118 cat >> confdefs.h
<<\EOF
11124 echo "$ac_t""no" 1>&6
11128 echo "$ac_t""no" 1>&6
11134 #################################################
11135 # check for the DFS auth system
11136 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11137 echo "configure:11138: checking whether to use DFS auth" >&5
11138 # Check whether --with-dfs or --without-dfs was given.
11139 if test "${with_dfs+set}" = set; then
11140 withval
="$with_dfs"
11143 echo "$ac_t""yes" 1>&6
11144 cat >> confdefs.h
<<\EOF
11150 echo "$ac_t""no" 1>&6
11154 echo "$ac_t""no" 1>&6
11159 #################################################
11160 # check for Kerberos IV auth system
11161 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11162 echo "configure:11163: checking whether to use Kerberos IV" >&5
11163 # Check whether --with-krb4 or --without-krb4 was given.
11164 if test "${with_krb4+set}" = set; then
11165 withval
="$with_krb4"
11168 echo "$ac_t""yes" 1>&6
11169 cat >> confdefs.h
<<\EOF
11170 #define KRB4_AUTH 1
11173 LIBS
="$LIBS -lkrb -ldes"
11174 CFLAGS
="$CFLAGS -I$withval/include"
11175 LDFLAGS
="$LDFLAGS -L$withval/lib"
11176 cat >> confdefs.h
<<EOF
11177 #define KRB4_DIR ${withval}
11182 echo "$ac_t""no" 1>&6
11186 echo "$ac_t""no" 1>&6
11193 #################################################
11194 # check for location of Kerberos 5 install
11195 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11196 echo "configure:11197: checking for kerberos 5 install path" >&5
11197 # Check whether --with-krb5 or --without-krb5 was given.
11198 if test "${with_krb5+set}" = set; then
11199 withval
="$with_krb5"
11202 echo "$ac_t""no" 1>&6
11205 echo "$ac_t""yes" 1>&6
11206 cat >> confdefs.h
<<\EOF
11207 #define KRB5_AUTH 1
11210 LIBS
="$LIBS -lkrb5"
11211 CFLAGS
="$CFLAGS -I$withval/include"
11212 LDFLAGS
="$LDFLAGS -L$withval/lib"
11213 cat >> confdefs.h
<<\EOF
11214 #define HAVE_KRB5 1
11221 echo "$ac_t""no" 1>&6
11227 ########################################################
11228 # now see if we can find the krb5 libs in standard paths
11229 if test x
$have_krb5 != xyes
; then
11230 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11231 echo "configure:11232: checking for krb5_mk_req_extended in -lkrb5" >&5
11232 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11236 ac_save_LIBS
="$LIBS"
11237 LIBS
="-lkrb5 $LIBS"
11238 cat > conftest.
$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 /* Override any gcc2 internal prototype to avoid an error. */
11242 /* We use char because int might match the return type of a gcc2
11243 builtin and then its argument prototype would still apply. */
11244 char krb5_mk_req_extended();
11247 krb5_mk_req_extended()
11250 if { (eval echo configure
:11251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11252 eval "ac_cv_lib_$ac_lib_var=yes"
11254 echo "configure: failed program was:" >&5
11255 cat conftest.
$ac_ext >&5
11257 eval "ac_cv_lib_$ac_lib_var=no"
11260 LIBS
="$ac_save_LIBS"
11263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11264 echo "$ac_t""yes" 1>&6
11265 LIBS
="$LIBS -lkrb5";
11266 cat >> confdefs.h
<<\EOF
11267 #define HAVE_KRB5 1
11271 echo "$ac_t""no" 1>&6
11276 ##################################################################
11277 # we might need the k5crypto and com_err libraries on some systems
11278 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11279 echo "configure:11280: checking for _et_list in -lcom_err" >&5
11280 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11284 ac_save_LIBS
="$LIBS"
11285 LIBS
="-lcom_err $LIBS"
11286 cat > conftest.
$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11289 /* Override any gcc2 internal prototype to avoid an error. */
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11298 if { (eval echo configure
:11299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11300 eval "ac_cv_lib_$ac_lib_var=yes"
11302 echo "configure: failed program was:" >&5
11303 cat conftest.
$ac_ext >&5
11305 eval "ac_cv_lib_$ac_lib_var=no"
11308 LIBS
="$ac_save_LIBS"
11311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11312 echo "$ac_t""yes" 1>&6
11313 LIBS
="$LIBS -lcom_err"
11315 echo "$ac_t""no" 1>&6
11318 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11319 echo "configure:11320: checking for krb5_encrypt_data in -lk5crypto" >&5
11320 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11324 ac_save_LIBS
="$LIBS"
11325 LIBS
="-lk5crypto $LIBS"
11326 cat > conftest.
$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11329 /* Override any gcc2 internal prototype to avoid an error. */
11330 /* We use char because int might match the return type of a gcc2
11331 builtin and then its argument prototype would still apply. */
11332 char krb5_encrypt_data();
11335 krb5_encrypt_data()
11338 if { (eval echo configure
:11339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11340 eval "ac_cv_lib_$ac_lib_var=yes"
11342 echo "configure: failed program was:" >&5
11343 cat conftest.
$ac_ext >&5
11345 eval "ac_cv_lib_$ac_lib_var=no"
11348 LIBS
="$ac_save_LIBS"
11351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11352 echo "$ac_t""yes" 1>&6
11353 LIBS
="$LIBS -lk5crypto"
11355 echo "$ac_t""no" 1>&6
11359 #################################################
11360 # check for automount support
11361 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11362 echo "configure:11363: checking whether to use AUTOMOUNT" >&5
11363 # Check whether --with-automount or --without-automount was given.
11364 if test "${with_automount+set}" = set; then
11365 withval
="$with_automount"
11368 echo "$ac_t""yes" 1>&6
11369 cat >> confdefs.h
<<\EOF
11370 #define WITH_AUTOMOUNT 1
11375 echo "$ac_t""no" 1>&6
11379 echo "$ac_t""no" 1>&6
11384 #################################################
11385 # check for smbmount support
11386 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11387 echo "configure:11388: checking whether to use SMBMOUNT" >&5
11388 # Check whether --with-smbmount or --without-smbmount was given.
11389 if test "${with_smbmount+set}" = set; then
11390 withval
="$with_smbmount"
11395 echo "$ac_t""yes" 1>&6
11396 cat >> confdefs.h
<<\EOF
11397 #define WITH_SMBMOUNT 1
11400 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11403 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11408 echo "$ac_t""no" 1>&6
11413 echo "$ac_t""no" 1>&6
11420 #################################################
11421 # check for a PAM password database
11422 with_pam_for_crypt
=no
11423 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11424 echo "configure:11425: checking whether to use PAM password database" >&5
11425 # Check whether --with-pam or --without-pam was given.
11426 if test "${with_pam+set}" = set; then
11427 withval
="$with_pam"
11430 echo "$ac_t""yes" 1>&6
11431 cat >> confdefs.h
<<\EOF
11436 with_pam_for_crypt
=yes
11439 echo "$ac_t""no" 1>&6
11443 echo "$ac_t""no" 1>&6
11448 # we can't build a pam module if we don't have pam.
11449 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11450 echo "configure:11451: checking for pam_get_data in -lpam" >&5
11451 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11455 ac_save_LIBS
="$LIBS"
11457 cat > conftest.
$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 /* Override any gcc2 internal prototype to avoid an error. */
11461 /* We use char because int might match the return type of a gcc2
11462 builtin and then its argument prototype would still apply. */
11463 char pam_get_data();
11469 if { (eval echo configure
:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11471 eval "ac_cv_lib_$ac_lib_var=yes"
11473 echo "configure: failed program was:" >&5
11474 cat conftest.
$ac_ext >&5
11476 eval "ac_cv_lib_$ac_lib_var=no"
11479 LIBS
="$ac_save_LIBS"
11482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11483 echo "$ac_t""yes" 1>&6
11484 cat >> confdefs.h
<<\EOF
11485 #define HAVE_LIBPAM 1
11489 echo "$ac_t""no" 1>&6
11493 #################################################
11494 # check for pam_smbpass support
11495 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11496 echo "configure:11497: checking whether to use pam_smbpass" >&5
11497 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11498 if test "${with_pam_smbpass+set}" = set; then
11499 withval
="$with_pam_smbpass"
11502 echo "$ac_t""yes" 1>&6
11504 # Conditions under which pam_smbpass should not be built.
11506 if test x
$PICFLAG = x
; then
11507 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11509 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11510 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11513 PAM_MOD
="bin/pam_smbpass.so"
11517 echo "$ac_t""no" 1>&6
11521 echo "$ac_t""no" 1>&6
11527 ###############################################
11528 # test for where we get crypt() from, but only
11530 if test $with_pam_for_crypt = no
; then
11531 for ac_func
in crypt
11533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11534 echo "configure:11535: checking for $ac_func" >&5
11535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11538 cat > conftest.
$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11541 /* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char $ac_func(); below. */
11543 #include <assert.h>
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11562 if { (eval echo configure
:11563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11564 eval "ac_cv_func_$ac_func=yes"
11566 echo "configure: failed program was:" >&5
11567 cat conftest.
$ac_ext >&5
11569 eval "ac_cv_func_$ac_func=no"
11574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11575 echo "$ac_t""yes" 1>&6
11576 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11577 cat >> confdefs.h
<<EOF
11578 #define $ac_tr_func 1
11582 echo "$ac_t""no" 1>&6
11586 if test x
"$ac_cv_func_crypt" = x
"no"; then
11587 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11588 echo "configure:11589: checking for crypt in -lcrypt" >&5
11589 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11593 ac_save_LIBS
="$LIBS"
11594 LIBS
="-lcrypt $LIBS"
11595 cat > conftest.
$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11598 /* Override any gcc2 internal prototype to avoid an error. */
11599 /* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11607 if { (eval echo configure
:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11609 eval "ac_cv_lib_$ac_lib_var=yes"
11611 echo "configure: failed program was:" >&5
11612 cat conftest.
$ac_ext >&5
11614 eval "ac_cv_lib_$ac_lib_var=no"
11617 LIBS
="$ac_save_LIBS"
11620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11621 echo "$ac_t""yes" 1>&6
11622 LIBS
="$LIBS -lcrypt";
11623 cat >> confdefs.h
<<\EOF
11624 #define HAVE_CRYPT 1
11628 echo "$ac_t""no" 1>&6
11635 ## moved after the check for -lcrypt in order to
11636 ## ensure that the necessary libraries are included
11637 ## check checking for truncated salt. Wrapped by the
11638 ## $with_pam_for_crypt variable as above --jerry
11640 if test $with_pam_for_crypt = no
; then
11641 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11642 echo "configure:11643: checking for a crypt that needs truncated salt" >&5
11643 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11644 echo $ac_n "(cached) $ac_c" 1>&6
11647 if test "$cross_compiling" = yes; then
11648 samba_cv_HAVE_TRUNCATED_SALT
=cross
11650 cat > conftest.
$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 #include "${srcdir-.}/tests/crypttest.c"
11655 if { (eval echo configure
:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11657 samba_cv_HAVE_TRUNCATED_SALT
=no
11659 echo "configure: failed program was:" >&5
11660 cat conftest.
$ac_ext >&5
11662 samba_cv_HAVE_TRUNCATED_SALT
=yes
11669 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11670 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11671 cat >> confdefs.h
<<\EOF
11672 #define HAVE_TRUNCATED_SALT 1
11680 ########################################################################################
11682 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11684 ########################################################################################
11686 ## set the with_smbpasswd_sam as the default
11687 with_smbpasswd_sam
=yes
11690 #################################################
11691 # check for a TDB password database
11692 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11693 echo "configure:11694: checking whether to use TDB SAM database" >&5
11694 # Check whether --with-tdbsam or --without-tdbsam was given.
11695 if test "${with_tdbsam+set}" = set; then
11696 withval
="$with_tdbsam"
11699 echo "$ac_t""yes" 1>&6
11700 cat >> confdefs.h
<<\EOF
11701 #define WITH_TDB_SAM 1
11704 with_smbpasswd_sam
=no
11707 echo "$ac_t""no" 1>&6
11711 echo "$ac_t""no" 1>&6
11716 #################################################
11717 # check for a LDAP password database
11718 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11719 echo "configure:11720: checking whether to use LDAP SAM database" >&5
11720 # Check whether --with-ldapsam or --without-ldapsam was given.
11721 if test "${with_ldapsam+set}" = set; then
11722 withval
="$with_ldapsam"
11725 echo "$ac_t""yes" 1>&6
11726 cat >> confdefs.h
<<\EOF
11727 #define WITH_LDAP_SAM 1
11730 LIBS
="-lldap -llber $LIBS"
11731 with_smbpasswd_sam
=no
11734 echo "$ac_t""no" 1>&6
11738 echo "$ac_t""no" 1>&6
11743 #################################################
11744 # check for a NISPLUS password database
11745 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11746 echo "configure:11747: checking whether to use NISPLUS SAM database" >&5
11747 # Check whether --with-nisplussam or --without-nisplussam was given.
11748 if test "${with_nisplussam+set}" = set; then
11749 withval
="$with_nisplussam"
11752 echo "$ac_t""yes" 1>&6
11753 cat >> confdefs.h
<<\EOF
11754 #define WITH_NISPLUS_SAM 1
11757 with_smbpasswd_sam
=no
11760 echo "$ac_t""no" 1>&6
11764 echo "$ac_t""no" 1>&6
11769 ################################################
11770 # This test should come last because the
11771 # smbpasswd SAM is only used if another format
11772 # has not been defined
11773 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11774 echo "configure:11775: checking whether to use traditional smbpasswd file" >&5
11775 if test $with_smbpasswd_sam = yes; then
11776 echo "$ac_t""yes" 1>&6
11777 cat >> confdefs.h
<<\EOF
11778 #define WITH_SMBPASSWD_SAM 1
11782 echo "$ac_t""no" 1>&6
11785 ########################################################################################
11787 ## END OF TESTS FOR SAM BACKENDS.
11789 ########################################################################################
11791 #################################################
11792 # check for a NISPLUS_HOME support
11793 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11794 echo "configure:11795: checking whether to use NISPLUS_HOME" >&5
11795 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11796 if test "${with_nisplus_home+set}" = set; then
11797 withval
="$with_nisplus_home"
11800 echo "$ac_t""yes" 1>&6
11801 cat >> confdefs.h
<<\EOF
11802 #define WITH_NISPLUS_HOME 1
11807 echo "$ac_t""no" 1>&6
11811 echo "$ac_t""no" 1>&6
11816 #################################################
11817 # check for the secure socket layer
11818 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11819 echo "configure:11820: checking whether to use SSL" >&5
11820 # Check whether --with-ssl or --without-ssl was given.
11821 if test "${with_ssl+set}" = set; then
11822 withval
="$with_ssl"
11825 echo "$ac_t""yes" 1>&6
11826 cat >> confdefs.h
<<\EOF
11830 withval
="/usr/local/ssl" # default
11832 if test "${with_sslinc+set}" = set; then
11834 withval
="$with_sslinc"
11837 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11838 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11841 CFLAGS
="-I${withval} $CFLAGS"
11847 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11851 if test "${with_ssllib+set}" = set; then
11853 withval
="$with_ssllib"
11856 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11857 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11860 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11866 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11870 LIBS
="-lssl -lcrypto $LIBS"
11872 # if test ! -d ${withval}; then
11873 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11877 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11881 echo "$ac_t""no" 1>&6
11885 echo "$ac_t""no" 1>&6
11890 #################################################
11891 # check for syslog logging
11892 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11893 echo "configure:11894: checking whether to use syslog logging" >&5
11894 # Check whether --with-syslog or --without-syslog was given.
11895 if test "${with_syslog+set}" = set; then
11896 withval
="$with_syslog"
11899 echo "$ac_t""yes" 1>&6
11900 cat >> confdefs.h
<<\EOF
11901 #define WITH_SYSLOG 1
11906 echo "$ac_t""no" 1>&6
11910 echo "$ac_t""no" 1>&6
11915 #################################################
11916 # check for a shared memory profiling support
11917 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11918 echo "configure:11919: checking whether to use profiling" >&5
11919 # Check whether --with-profiling-data or --without-profiling-data was given.
11920 if test "${with_profiling_data+set}" = set; then
11921 withval
="$with_profiling_data"
11924 echo "$ac_t""yes" 1>&6
11925 cat >> confdefs.h
<<\EOF
11926 #define WITH_PROFILE 1
11931 echo "$ac_t""no" 1>&6
11935 echo "$ac_t""no" 1>&6
11941 #################################################
11942 # check for experimental disk-quotas support
11943 QUOTAOBJS
=smbd
/noquotas.o
11945 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11946 echo "configure:11947: checking whether to support disk-quotas" >&5
11947 # Check whether --with-quotas or --without-quotas was given.
11948 if test "${with_quotas+set}" = set; then
11949 withval
="$with_quotas"
11952 echo "$ac_t""yes" 1>&6
11955 # Check for kernel 2.4.x quota braindamage...
11956 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11957 echo "configure:11958: checking for linux 2.4.x quota braindamage.." >&5
11958 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11959 echo $ac_n "(cached) $ac_c" 1>&6
11962 cat > conftest.
$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11966 #include <sys/types.h>
11967 #include <asm/types.h>
11968 #include <linux/quota.h>
11969 #include <mntent.h>
11970 #include <linux/unistd.h>
11972 struct mem_dqblk D;
11975 if { (eval echo configure
:11976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11977 samba_cv_linux_2_4_quota_braindamage
=yes
11979 echo "configure: failed program was:" >&5
11980 cat conftest.
$ac_ext >&5
11982 samba_cv_linux_2_4_quota_braindamage
=no
11987 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11988 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
11989 cat >> confdefs.h
<<\EOF
11990 #define LINUX_QUOTAS_2 1
11994 cat >> confdefs.h
<<\EOF
11995 #define LINUX_QUOTAS_1 1
12003 QUOTAOBJS
=smbd
/quotas.o
12004 cat >> confdefs.h
<<\EOF
12005 #define WITH_QUOTAS 1
12010 echo "$ac_t""no" 1>&6
12014 echo "$ac_t""no" 1>&6
12020 #################################################
12021 # check for experimental utmp accounting
12023 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12024 echo "configure:12025: checking whether to support utmp accounting" >&5
12025 # Check whether --with-utmp or --without-utmp was given.
12026 if test "${with_utmp+set}" = set; then
12027 withval
="$with_utmp"
12030 echo "$ac_t""yes" 1>&6
12031 cat >> confdefs.h
<<\EOF
12032 #define WITH_UTMP 1
12037 echo "$ac_t""no" 1>&6
12041 echo "$ac_t""no" 1>&6
12046 #################################################
12047 # set private directory location
12048 # Check whether --with-privatedir or --without-privatedir was given.
12049 if test "${with_privatedir+set}" = set; then
12050 withval
="$with_privatedir"
12054 # Just in case anybody calls it without argument
12056 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12057 privatedir
='${prefix}/private'
12060 privatedir
="$withval"
12065 privatedir
='${prefix}/private'
12071 #################################################
12072 # set lock directory location
12073 # Check whether --with-lockdir or --without-lockdir was given.
12074 if test "${with_lockdir+set}" = set; then
12075 withval
="$with_lockdir"
12079 # Just in case anybody calls it without argument
12081 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12082 lockdir
='$(VARDIR)/locks'
12090 lockdir
='$(VARDIR)/locks'
12096 #################################################
12097 # set SWAT directory location
12098 # Check whether --with-swatdir or --without-swatdir was given.
12099 if test "${with_swatdir+set}" = set; then
12100 withval
="$with_swatdir"
12104 # Just in case anybody does it
12106 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12107 swatdir
='${prefix}/swat'
12115 swatdir
='${prefix}/swat'
12121 #################################################
12122 # choose native language(s) of man pages
12123 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12124 echo "configure:12125: checking chosen man pages' language(s)" >&5
12125 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12126 if test "${with_manpages_langs+set}" = set; then
12127 withval
="$with_manpages_langs"
12130 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12134 manlangs
="$withval"
12138 echo "$ac_t""$manlangs" 1>&6
12139 manlangs
=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12143 echo "$ac_t""$manlangs" 1>&6
12149 #################################################
12150 # these tests are taken from the GNU fileutils package
12151 echo "checking how to get filesystem space usage" 1>&6
12152 echo "configure:12153: checking how to get filesystem space usage" >&5
12155 # Test for statvfs64.
12156 if test $space = no
; then
12158 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12159 echo "configure:12160: checking statvfs64 function (SVR4)" >&5
12160 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
12163 if test "$cross_compiling" = yes; then
12164 fu_cv_sys_stat_statvfs64
=cross
12166 cat > conftest.
$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12170 #if defined(HAVE_UNISTD_H)
12171 #include <unistd.h>
12173 #include <sys/types.h>
12174 #include <sys/statvfs.h>
12177 struct statvfs64 fsd;
12178 exit (statvfs64 (".", &fsd));
12181 if { (eval echo configure
:12182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12183 fu_cv_sys_stat_statvfs64
=yes
12185 echo "configure: failed program was:" >&5
12186 cat conftest.
$ac_ext >&5
12188 fu_cv_sys_stat_statvfs64
=no
12195 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12196 if test $fu_cv_sys_stat_statvfs64 = yes; then
12198 cat >> confdefs.h
<<\EOF
12199 #define STAT_STATVFS64 1
12205 # Perform only the link test since it seems there are no variants of the
12206 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12207 # because that got a false positive on SCO OSR5. Adding the declaration
12208 # of a `struct statvfs' causes this test to fail (as it should) on such
12209 # systems. That system is reported to work fine with STAT_STATFS4 which
12210 # is what it gets when this test fails.
12211 if test $space = no
; then
12213 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12214 echo "configure:12215: checking statvfs function (SVR4)" >&5
12215 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12218 cat > conftest.
$ac_ext <<EOF
12219 #line 12220 "configure"
12220 #include "confdefs.h"
12221 #include <sys/types.h>
12222 #include <sys/statvfs.h>
12224 struct statvfs fsd; statvfs (0, &fsd);
12227 if { (eval echo configure
:12228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12229 fu_cv_sys_stat_statvfs
=yes
12231 echo "configure: failed program was:" >&5
12232 cat conftest.
$ac_ext >&5
12234 fu_cv_sys_stat_statvfs
=no
12239 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12240 if test $fu_cv_sys_stat_statvfs = yes; then
12242 cat >> confdefs.h
<<\EOF
12243 #define STAT_STATVFS 1
12249 if test $space = no
; then
12250 # DEC Alpha running OSF/1
12251 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12252 echo "configure:12253: checking for 3-argument statfs function (DEC OSF/1)" >&5
12253 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12256 if test "$cross_compiling" = yes; then
12257 fu_cv_sys_stat_statfs3_osf1
=no
12259 cat > conftest.
$ac_ext <<EOF
12260 #line 12261 "configure"
12261 #include "confdefs.h"
12263 #include <sys/param.h>
12264 #include <sys/types.h>
12265 #include <sys/mount.h>
12270 exit (statfs (".", &fsd, sizeof (struct statfs)));
12273 if { (eval echo configure
:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12275 fu_cv_sys_stat_statfs3_osf1
=yes
12277 echo "configure: failed program was:" >&5
12278 cat conftest.
$ac_ext >&5
12280 fu_cv_sys_stat_statfs3_osf1
=no
12287 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12288 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12290 cat >> confdefs.h
<<\EOF
12291 #define STAT_STATFS3_OSF1 1
12297 if test $space = no
; then
12299 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12300 echo "configure:12301: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12301 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12302 echo $ac_n "(cached) $ac_c" 1>&6
12304 if test "$cross_compiling" = yes; then
12305 fu_cv_sys_stat_statfs2_bsize
=no
12307 cat > conftest.
$ac_ext <<EOF
12308 #line 12309 "configure"
12309 #include "confdefs.h"
12311 #ifdef HAVE_SYS_PARAM_H
12312 #include <sys/param.h>
12314 #ifdef HAVE_SYS_MOUNT_H
12315 #include <sys/mount.h>
12317 #ifdef HAVE_SYS_VFS_H
12318 #include <sys/vfs.h>
12324 exit (statfs (".", &fsd));
12327 if { (eval echo configure
:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12329 fu_cv_sys_stat_statfs2_bsize
=yes
12331 echo "configure: failed program was:" >&5
12332 cat conftest.
$ac_ext >&5
12334 fu_cv_sys_stat_statfs2_bsize
=no
12341 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12342 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12344 cat >> confdefs.h
<<\EOF
12345 #define STAT_STATFS2_BSIZE 1
12351 if test $space = no
; then
12353 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12354 echo "configure:12355: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12355 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12356 echo $ac_n "(cached) $ac_c" 1>&6
12358 if test "$cross_compiling" = yes; then
12359 fu_cv_sys_stat_statfs4
=no
12361 cat > conftest.
$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12364 #include <sys/types.h>
12365 #include <sys/statfs.h>
12369 exit (statfs (".", &fsd, sizeof fsd, 0));
12372 if { (eval echo configure
:12373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12374 fu_cv_sys_stat_statfs4
=yes
12376 echo "configure: failed program was:" >&5
12377 cat conftest.
$ac_ext >&5
12379 fu_cv_sys_stat_statfs4
=no
12386 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12387 if test $fu_cv_sys_stat_statfs4 = yes; then
12389 cat >> confdefs.h
<<\EOF
12390 #define STAT_STATFS4 1
12396 if test $space = no
; then
12397 # 4.4BSD and NetBSD
12398 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12399 echo "configure:12400: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12400 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12403 if test "$cross_compiling" = yes; then
12404 fu_cv_sys_stat_statfs2_fsize
=no
12406 cat > conftest.
$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12409 #include <sys/types.h>
12410 #ifdef HAVE_SYS_PARAM_H
12411 #include <sys/param.h>
12413 #ifdef HAVE_SYS_MOUNT_H
12414 #include <sys/mount.h>
12420 exit (statfs (".", &fsd));
12423 if { (eval echo configure
:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12425 fu_cv_sys_stat_statfs2_fsize
=yes
12427 echo "configure: failed program was:" >&5
12428 cat conftest.
$ac_ext >&5
12430 fu_cv_sys_stat_statfs2_fsize
=no
12437 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12438 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12440 cat >> confdefs.h
<<\EOF
12441 #define STAT_STATFS2_FSIZE 1
12447 if test $space = no
; then
12449 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12450 echo "configure:12451: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12451 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12452 echo $ac_n "(cached) $ac_c" 1>&6
12454 if test "$cross_compiling" = yes; then
12455 fu_cv_sys_stat_fs_data
=no
12457 cat > conftest.
$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 #include <sys/types.h>
12461 #ifdef HAVE_SYS_PARAM_H
12462 #include <sys/param.h>
12464 #ifdef HAVE_SYS_MOUNT_H
12465 #include <sys/mount.h>
12467 #ifdef HAVE_SYS_FS_TYPES_H
12468 #include <sys/fs_types.h>
12472 struct fs_data fsd;
12473 /* Ultrix's statfs returns 1 for success,
12474 0 for not mounted, -1 for failure. */
12475 exit (statfs (".", &fsd) != 1);
12478 if { (eval echo configure
:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12480 fu_cv_sys_stat_fs_data
=yes
12482 echo "configure: failed program was:" >&5
12483 cat conftest.
$ac_ext >&5
12485 fu_cv_sys_stat_fs_data
=no
12492 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12493 if test $fu_cv_sys_stat_fs_data = yes; then
12495 cat >> confdefs.h
<<\EOF
12496 #define STAT_STATFS2_FS_DATA 1
12503 # As a gating factor for large file support, in order to
12504 # use <4GB files we must have the following minimal support
12506 # long long, and a 64 bit off_t or off64_t.
12507 # If we don't have all of these then disable large
12510 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12511 echo "configure:12512: checking if large file support can be enabled" >&5
12512 cat > conftest.
$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12516 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12517 #include <sys/types.h>
12526 if { (eval echo configure
:12527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12528 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12530 echo "configure: failed program was:" >&5
12531 cat conftest.
$ac_ext >&5
12533 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12536 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12537 cat >> confdefs.h
<<\EOF
12538 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12542 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12544 # Check whether --with-spinlocks or --without-spinlocks was given.
12545 if test "${with_spinlocks+set}" = set; then
12546 withval
="$with_spinlocks"
12550 if test "x$with_spinlocks" = "xyes"; then
12551 cat >> confdefs.h
<<\EOF
12552 #define USE_SPINLOCKS 1
12556 case "$host_cpu" in
12558 cat >> confdefs.h
<<\EOF
12559 #define SPARC_SPINLOCKS 1
12564 i386|i486|i586|i686
)
12565 cat >> confdefs.h
<<\EOF
12566 #define INTEL_SPINLOCKS 1
12572 cat >> confdefs.h
<<\EOF
12573 #define MIPS_SPINLOCKS 1
12579 cat >> confdefs.h
<<\EOF
12580 #define POWERPC_SPINLOCKS 1
12587 #################################################
12588 # check for ACL support
12590 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12591 echo "configure:12592: checking whether to support ACLs" >&5
12592 # Check whether --with-acl-support or --without-acl-support was given.
12593 if test "${with_acl_support+set}" = set; then
12594 withval
="$with_acl_support"
12600 echo "$ac_t""Using UnixWare ACLs" 1>&6
12601 cat >> confdefs.h
<<\EOF
12602 #define HAVE_UNIXWARE_ACLS 1
12607 echo "$ac_t""Using solaris ACLs" 1>&6
12608 cat >> confdefs.h
<<\EOF
12609 #define HAVE_SOLARIS_ACLS 1
12614 echo "$ac_t""Using IRIX ACLs" 1>&6
12615 cat >> confdefs.h
<<\EOF
12616 #define HAVE_IRIX_ACLS 1
12621 echo "$ac_t""Using AIX ACLs" 1>&6
12622 cat >> confdefs.h
<<\EOF
12623 #define HAVE_AIX_ACLS 1
12628 echo "$ac_t""Using Tru64 ACLs" 1>&6
12629 cat >> confdefs.h
<<\EOF
12630 #define HAVE_TRU64_ACLS 1
12633 LIBS
="$LIBS -lpacl"
12636 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12637 echo "configure:12638: checking for acl_get_file in -lacl" >&5
12638 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12640 echo $ac_n "(cached) $ac_c" 1>&6
12642 ac_save_LIBS
="$LIBS"
12644 cat > conftest.
$ac_ext <<EOF
12645 #line 12646 "configure"
12646 #include "confdefs.h"
12647 /* Override any gcc2 internal prototype to avoid an error. */
12648 /* We use char because int might match the return type of a gcc2
12649 builtin and then its argument prototype would still apply. */
12650 char acl_get_file();
12656 if { (eval echo configure
:12657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12658 eval "ac_cv_lib_$ac_lib_var=yes"
12660 echo "configure: failed program was:" >&5
12661 cat conftest.
$ac_ext >&5
12663 eval "ac_cv_lib_$ac_lib_var=no"
12666 LIBS
="$ac_save_LIBS"
12669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12673 cat >> confdefs.h
<<EOF
12674 #define $ac_tr_lib 1
12680 echo "$ac_t""no" 1>&6
12683 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12684 echo "configure:12685: checking for ACL support" >&5
12685 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12686 echo $ac_n "(cached) $ac_c" 1>&6
12689 cat > conftest.
$ac_ext <<EOF
12690 #line 12691 "configure"
12691 #include "confdefs.h"
12692 #include <sys/types.h>
12693 #include <sys/acl.h>
12695 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12698 if { (eval echo configure
:12699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12700 samba_cv_HAVE_POSIX_ACLS
=yes
12702 echo "configure: failed program was:" >&5
12703 cat conftest.
$ac_ext >&5
12705 samba_cv_HAVE_POSIX_ACLS
=no
12710 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12711 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12712 echo "$ac_t""Using posix ACLs" 1>&6
12713 cat >> confdefs.h
<<\EOF
12714 #define HAVE_POSIX_ACLS 1
12717 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12718 echo "configure:12719: checking for acl_get_perm_np" >&5
12719 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12720 echo $ac_n "(cached) $ac_c" 1>&6
12723 cat > conftest.
$ac_ext <<EOF
12724 #line 12725 "configure"
12725 #include "confdefs.h"
12726 #include <sys/types.h>
12727 #include <sys/acl.h>
12729 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12732 if { (eval echo configure
:12733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12734 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12736 echo "configure: failed program was:" >&5
12737 cat conftest.
$ac_ext >&5
12739 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12744 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12745 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12746 cat >> confdefs.h
<<\EOF
12747 #define HAVE_ACL_GET_PERM_NP 1
12756 echo "$ac_t""no" 1>&6
12757 cat >> confdefs.h
<<\EOF
12758 #define HAVE_NO_ACLS 1
12764 cat >> confdefs.h
<<\EOF
12765 #define HAVE_NO_ACLS 1
12768 echo "$ac_t""no" 1>&6
12773 #################################################
12774 # Check whether winbind is supported on this platform. If so we need to
12775 # build and install client programs (WINBIND_TARGETS), sbin programs
12776 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12778 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12779 echo "configure:12780: checking whether to build winbind" >&5
12781 # Initially, the value of $host_os decides whether winbind is supported
12789 winbind_no_reason
=", unsupported on $host_os"
12793 # Check the setting of --with-winbindd
12795 # Check whether --with-winbind or --without-winbind was given.
12796 if test "${with_winbind+set}" = set; then
12797 withval
="$with_winbind"
12811 # We need unix domain sockets for winbind
12813 if test x
"$HAVE_WINBIND" = x
"yes"; then
12814 if test x
"$samba_cv_unixsocket" = x
"no"; then
12815 winbind_no_reason
=", no unix domain socket support on $host_os"
12820 # Display test results
12822 if test x
"$HAVE_WINBIND" = x
"yes"; then
12824 echo "$ac_t""yes" 1>&6
12826 WINBIND_TARGETS
="\$(WINBIND_PROGS)"
12827 WINBIND_STARGETS
="\$(WINBIND_SPROGS)"
12828 WINBIND_LTARGETS
="\$(WINBIND_LPROGS)"
12829 case "$with_pam" in
12831 WINBIND_PAM_PROGS
="\$(WINBIND_PAM_PROGS)"
12835 echo "$ac_t""no$winbind_no_reason" 1>&6
12838 WINBIND_STARGETS
=""
12839 WINBIND_LTARGETS
=""
12840 WINBIND_PAM_PROGS
=""
12843 # Substitution time!
12850 #################################################
12851 # Check to see if we should use the included popt
12853 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
12854 echo "configure:12855: checking whether to use included popt" >&5
12855 # Check whether --with-included-popt or --without-included-popt was given.
12856 if test "${with_included_popt+set}" = set; then
12857 withval
="$with_included_popt"
12869 if test x
"$INCLUDED_POPT" != x
"yes"; then
12870 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
12871 echo "configure:12872: checking for poptGetContext in -lpopt" >&5
12872 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
12873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12874 echo $ac_n "(cached) $ac_c" 1>&6
12876 ac_save_LIBS
="$LIBS"
12877 LIBS
="-lpopt $LIBS"
12878 cat > conftest.
$ac_ext <<EOF
12879 #line 12880 "configure"
12880 #include "confdefs.h"
12881 /* Override any gcc2 internal prototype to avoid an error. */
12882 /* We use char because int might match the return type of a gcc2
12883 builtin and then its argument prototype would still apply. */
12884 char poptGetContext();
12890 if { (eval echo configure
:12891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12892 eval "ac_cv_lib_$ac_lib_var=yes"
12894 echo "configure: failed program was:" >&5
12895 cat conftest.
$ac_ext >&5
12897 eval "ac_cv_lib_$ac_lib_var=no"
12900 LIBS
="$ac_save_LIBS"
12903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12904 echo "$ac_t""yes" 1>&6
12907 echo "$ac_t""no" 1>&6
12913 if test x
"$INCLUDED_POPT" = x
"yes"; then
12914 echo "$ac_t""$srcdir/popt" 1>&6
12915 BUILD_POPT
='$(POPT_OBJS)'
12916 CFLAGS
="$CFLAGS -I$srcdir/popt"
12918 echo "$ac_t""no" 1>&6
12919 LIBS
="$LIBS -lpopt"
12923 #################################################
12924 # final configure stuff
12926 echo "checking configure summary"
12927 if test "$cross_compiling" = yes; then
12930 cat > conftest.
$ac_ext <<EOF
12931 #line 12932 "configure"
12932 #include "confdefs.h"
12933 #include "${srcdir-.}/tests/summary.c"
12935 if { (eval echo configure
:12936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12937 echo "configure OK";
12939 echo "configure: failed program was:" >&5
12940 cat conftest.
$ac_ext >&5
12942 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12952 cat > confcache
<<\EOF
12953 # This file is a shell script that caches the results of configure
12954 # tests run on this system so they can be shared between configure
12955 # scripts and configure runs. It is not useful on other systems.
12956 # If it contains results you don't want to keep, you may remove or edit it.
12958 # By default, configure uses ./config.cache as the cache file,
12959 # creating it if it does not exist already. You can give configure
12960 # the --cache-file=FILE option to use a different cache file; that is
12961 # what configure does when it calls configure scripts in
12962 # subdirectories, so they share the cache.
12963 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12964 # config.status only pays attention to the cache file if you give it the
12965 # --recheck option to rerun configure.
12968 # The following way of writing the cache mishandles newlines in values,
12969 # but we know of no workaround that is simple, portable, and efficient.
12970 # So, don't put newlines in cache variables' values.
12971 # Ultrix sh set writes to stderr and can't be redirected directly,
12972 # and sets the high bit in the cache file unless we assign to the vars.
12974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12976 # `set' does not quote correctly, so add quotes (double-quote substitution
12977 # turns \\\\ into \\, and sed turns \\ into \).
12979 -e "s/'/'\\\\''/g" \
12980 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12983 # `set' quotes correctly as required by POSIX, so do not add quotes.
12984 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12987 if cmp -s $cache_file confcache
; then
12990 if test -w $cache_file; then
12991 echo "updating cache $cache_file"
12992 cat confcache
> $cache_file
12994 echo "not updating unwritable cache $cache_file"
12999 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13001 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13002 # Let make expand exec_prefix.
13003 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13005 # Any assignment to VPATH causes Sun make to only execute
13006 # the first set of double-colon rules, so remove it if not needed.
13007 # If there is a colon in the path, we need to keep it.
13008 if test "x$srcdir" = x.
; then
13009 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13012 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13014 DEFS
=-DHAVE_CONFIG_H
13016 # Without the "./", some shells look in PATH for config.status.
13017 : ${CONFIG_STATUS=./config.status}
13019 echo creating
$CONFIG_STATUS
13020 rm -f $CONFIG_STATUS
13021 cat > $CONFIG_STATUS <<EOF
13023 # Generated automatically by configure.
13024 # Run this file to recreate the current configuration.
13025 # This directory was configured as follows,
13026 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13028 # $0 $ac_configure_args
13030 # Compiler output produced by configure, useful for debugging
13031 # configure, is in ./config.log if it exists.
13033 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13036 case "\$ac_option" in
13037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13038 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13039 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13040 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13041 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13043 -help | --help | --hel | --he | --h)
13044 echo "\$ac_cs_usage"; exit 0 ;;
13045 *) echo "\$ac_cs_usage"; exit 1 ;;
13049 ac_given_srcdir=$srcdir
13050 ac_given_INSTALL="$INSTALL"
13052 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13054 cat >> $CONFIG_STATUS <<EOF
13056 # Protect against being on the right side of a sed subst in config.status.
13057 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13058 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13062 s%@CFLAGS@%$CFLAGS%g
13063 s%@CPPFLAGS@%$CPPFLAGS%g
13064 s%@CXXFLAGS@%$CXXFLAGS%g
13065 s%@FFLAGS@%$FFLAGS%g
13067 s%@LDFLAGS@%$LDFLAGS%g
13069 s%@exec_prefix@%$exec_prefix%g
13070 s%@prefix@%$prefix%g
13071 s%@program_transform_name@%$program_transform_name%g
13072 s%@bindir@%$bindir%g
13073 s%@sbindir@%$sbindir%g
13074 s%@libexecdir@%$libexecdir%g
13075 s%@datadir@%$datadir%g
13076 s%@sysconfdir@%$sysconfdir%g
13077 s%@sharedstatedir@%$sharedstatedir%g
13078 s%@localstatedir@%$localstatedir%g
13079 s%@libdir@%$libdir%g
13080 s%@includedir@%$includedir%g
13081 s%@oldincludedir@%$oldincludedir%g
13082 s%@infodir@%$infodir%g
13083 s%@mandir@%$mandir%g
13084 s%@RUNPROG@%$RUNPROG%g
13085 s%@MPROGS@%$MPROGS%g
13086 s%@LDSHFLAGS@%$LDSHFLAGS%g
13088 s%@HOST_OS@%$HOST_OS%g
13089 s%@PAM_MOD@%$PAM_MOD%g
13091 s%@WRAP32@%$WRAP32%g
13092 s%@PICFLAG@%$PICFLAG%g
13093 s%@PICSUFFIX@%$PICSUFFIX%g
13094 s%@POBAD_CC@%$POBAD_CC%g
13095 s%@SHLIBEXT@%$SHLIBEXT%g
13096 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13098 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13099 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13100 s%@INSTALL_DATA@%$INSTALL_DATA%g
13102 s%@BROKEN_CC@%$BROKEN_CC%g
13104 s%@host_alias@%$host_alias%g
13105 s%@host_cpu@%$host_cpu%g
13106 s%@host_vendor@%$host_vendor%g
13107 s%@host_os@%$host_os%g
13108 s%@target@%$target%g
13109 s%@target_alias@%$target_alias%g
13110 s%@target_cpu@%$target_cpu%g
13111 s%@target_vendor@%$target_vendor%g
13112 s%@target_os@%$target_os%g
13114 s%@build_alias@%$build_alias%g
13115 s%@build_cpu@%$build_cpu%g
13116 s%@build_vendor@%$build_vendor%g
13117 s%@build_os@%$build_os%g
13119 s%@LIBOBJS@%$LIBOBJS%g
13120 s%@TERMLIBS@%$TERMLIBS%g
13121 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13123 s%@QUOTAOBJS@%$QUOTAOBJS%g
13124 s%@privatedir@%$privatedir%g
13125 s%@lockdir@%$lockdir%g
13126 s%@swatdir@%$swatdir%g
13127 s%@manlangs@%$manlangs%g
13128 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13129 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13130 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13131 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
13132 s%@BUILD_POPT@%$BUILD_POPT%g
13133 s%@builddir@%$builddir%g
13138 cat >> $CONFIG_STATUS <<\EOF
13140 # Split the substitutions into bite-sized pieces for seds with
13141 # small command number limits, like on Digital OSF/1 and HP-UX.
13142 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13143 ac_file
=1 # Number of current file.
13144 ac_beg
=1 # First line for current file.
13145 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13148 while $ac_more_lines; do
13149 if test $ac_beg -gt 1; then
13150 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13152 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13154 if test ! -s conftest.s
$ac_file; then
13155 ac_more_lines
=false
13156 rm -f conftest.s
$ac_file
13158 if test -z "$ac_sed_cmds"; then
13159 ac_sed_cmds
="sed -f conftest.s$ac_file"
13161 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13163 ac_file
=`expr $ac_file + 1`
13165 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13168 if test -z "$ac_sed_cmds"; then
13173 cat >> $CONFIG_STATUS <<EOF
13175 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13177 cat >> $CONFIG_STATUS <<\EOF
13178 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13179 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13181 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13182 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13183 *) ac_file_in
="${ac_file}.in" ;;
13186 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13188 # Remove last slash and all that follows it. Not all systems have dirname.
13189 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13190 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13191 # The file is in a subdirectory.
13192 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13193 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13194 # A "../" for each directory in $ac_dir_suffix.
13195 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13197 ac_dir_suffix
= ac_dots
=
13200 case "$ac_given_srcdir" in
13202 if test -z "$ac_dots"; then top_srcdir
=.
13203 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13204 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13205 *) # Relative path.
13206 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13207 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13210 case "$ac_given_INSTALL" in
13211 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13212 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13215 echo creating
"$ac_file"
13217 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13219 *Makefile
*) ac_comsub
="1i\\
13220 # $configure_input" ;;
13224 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13226 s%@configure_input@%$configure_input%g
13227 s%@srcdir@%$srcdir%g
13228 s%@top_srcdir@%$top_srcdir%g
13229 s%@INSTALL@%$INSTALL%g
13230 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13234 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13235 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13237 # ac_d sets the value in "#define NAME VALUE" lines.
13238 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13239 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13242 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13243 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13244 ac_uB
='\([ ]\)%\1#\2define\3'
13247 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13248 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13249 ac_eB
='$%\1#\2define\3'
13253 if test "${CONFIG_HEADERS+set}" != set; then
13255 cat >> $CONFIG_STATUS <<EOF
13256 CONFIG_HEADERS="include/config.h"
13258 cat >> $CONFIG_STATUS <<\EOF
13260 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13263 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13264 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13265 *) ac_file_in
="${ac_file}.in" ;;
13268 echo creating
$ac_file
13270 rm -f conftest.frag conftest.
in conftest.out
13271 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13272 cat $ac_file_inputs > conftest.
in
13276 # Transform confdefs.h into a sed script conftest.vals that substitutes
13277 # the proper values into config.h.in to produce config.h. And first:
13278 # Protect against being on the right side of a sed subst in config.status.
13279 # Protect against being in an unquoted here document in config.status.
13280 rm -f conftest.vals
13281 cat > conftest.hdr
<<\EOF
13284 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13288 sed -n -f conftest.hdr confdefs.h > conftest.vals
13291 # This sed command replaces #undef with comments. This is necessary, for
13292 # example, in the case of _POSIX_SOURCE, which is predefined and required
13293 # on some systems where configure will not decide to define it.
13294 cat >> conftest.vals <<\EOF
13295 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13298 # Break up conftest.vals because some shells have a limit on
13299 # the size of here documents, and old seds have small limits too.
13301 rm -f conftest.tail
13304 ac_lines=`grep -c . conftest.vals
`
13305 # grep -c gives empty output for an empty file on some AIX systems.
13306 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13307 # Write a limited-size here document to conftest.frag.
13308 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13309 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13311 sed -f conftest.frag conftest.in > conftest.out
13313 mv conftest.out conftest.in
13314 ' >> $CONFIG_STATUS
13315 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13316 rm -f conftest.vals
13317 mv conftest.tail conftest.vals
13319 rm -f conftest.vals
13321 cat >> $CONFIG_STATUS <<\EOF
13322 rm -f conftest.frag conftest.h
13323 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13324 cat conftest.in >> conftest.h
13326 if cmp -s $ac_file conftest.h 2>/dev/null; then
13327 echo "$ac_file is unchanged"
13330 # Remove last slash and all that follows it. Not all systems have dirname.
13331 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
13332 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13333 # The file is in a subdirectory.
13334 test ! -d "$ac_dir" && mkdir "$ac_dir"
13337 mv conftest.h $ac_file
13342 cat >> $CONFIG_STATUS <<EOF
13345 cat >> $CONFIG_STATUS <<\EOF
13349 chmod +x $CONFIG_STATUS
13350 rm -fr confdefs* $ac_clean_files
13351 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1