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 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-cups Turn on CUPS support (default=auto)"
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
38 --with-smbwrapper Include SMB wrapper support (default=no)"
40 --with-afs Include AFS support (default=no)"
42 --with-dce-dfs Include DCE/DFS support (default=no)"
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
48 --with-automount Include AUTOMOUNT support (default=no)"
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
52 --with-pam Include PAM password database support (default=no)"
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-msdfs Include MS Dfs support (default=no)"
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
82 --with-acl-support Include ACL support (default=no)"
84 --with-winbind Build winbind (default, if supported by OS)"
86 --with-included-popt use bundled popt library, not from system"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file
=.
/config.cache
101 program_transform_name
=s
,x
,x
,
109 bindir
='${exec_prefix}/bin'
110 sbindir
='${exec_prefix}/sbin'
111 libexecdir
='${exec_prefix}/libexec'
112 datadir
='${prefix}/share'
113 sysconfdir
='${prefix}/etc'
114 sharedstatedir
='${prefix}/com'
115 localstatedir
='${prefix}/var'
116 libdir
='${exec_prefix}/lib'
117 includedir
='${prefix}/include'
118 oldincludedir
='/usr/include'
119 infodir
='${prefix}/info'
120 mandir
='${prefix}/man'
122 # Initialize some other variables.
125 SHELL
=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
151 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
152 bindir
="$ac_optarg" ;;
154 -build |
--build |
--buil |
--bui |
--bu)
156 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
157 build
="$ac_optarg" ;;
159 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
160 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
161 ac_prev
=cache_file
;;
162 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
163 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
164 cache_file
="$ac_optarg" ;;
166 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
168 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
170 datadir
="$ac_optarg" ;;
172 -disable-* |
--disable-*)
173 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* |
--enable-*)
182 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
195 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
196 |
--exec |
--exe |
--ex)
197 ac_prev
=exec_prefix
;;
198 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
199 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
200 |
--exec=* |
--exe=* |
--ex=*)
201 exec_prefix
="$ac_optarg" ;;
203 -gas |
--gas |
--ga |
--g)
204 # Obsolete; use --with-gas.
207 -help |
--help |
--hel |
--he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host |
--host |
--hos |
--ho)
264 -host=* |
--host=* |
--hos=* |
--ho=*)
267 -includedir |
--includedir |
--includedi |
--included |
--include \
268 |
--includ |
--inclu |
--incl |
--inc)
269 ac_prev
=includedir
;;
270 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
271 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
272 includedir
="$ac_optarg" ;;
274 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
276 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
277 infodir
="$ac_optarg" ;;
279 -libdir |
--libdir |
--libdi |
--libd)
281 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
282 libdir
="$ac_optarg" ;;
284 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
285 |
--libexe |
--libex |
--libe)
286 ac_prev
=libexecdir
;;
287 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
288 |
--libexe=* |
--libex=* |
--libe=*)
289 libexecdir
="$ac_optarg" ;;
291 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
292 |
--localstate |
--localstat |
--localsta |
--localst \
293 |
--locals |
--local |
--loca |
--loc |
--lo)
294 ac_prev
=localstatedir
;;
295 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
296 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
297 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
298 localstatedir
="$ac_optarg" ;;
300 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
302 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
303 mandir
="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
313 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
314 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
317 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
318 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
319 |
--oldin |
--oldi |
--old |
--ol |
--o)
320 ac_prev
=oldincludedir
;;
321 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
322 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
323 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
324 oldincludedir
="$ac_optarg" ;;
326 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
328 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
329 prefix
="$ac_optarg" ;;
331 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
332 |
--program-pre |
--program-pr |
--program-p)
333 ac_prev
=program_prefix
;;
334 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
335 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
336 program_prefix
="$ac_optarg" ;;
338 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
339 |
--program-suf |
--program-su |
--program-s)
340 ac_prev
=program_suffix
;;
341 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
342 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
343 program_suffix
="$ac_optarg" ;;
345 -program-transform-name |
--program-transform-name \
346 |
--program-transform-nam |
--program-transform-na \
347 |
--program-transform-n |
--program-transform- \
348 |
--program-transform |
--program-transfor \
349 |
--program-transfo |
--program-transf \
350 |
--program-trans |
--program-tran \
351 |
--progr-tra |
--program-tr |
--program-t)
352 ac_prev
=program_transform_name
;;
353 -program-transform-name=* |
--program-transform-name=* \
354 |
--program-transform-nam=* |
--program-transform-na=* \
355 |
--program-transform-n=* |
--program-transform-=* \
356 |
--program-transform=* |
--program-transfor=* \
357 |
--program-transfo=* |
--program-transf=* \
358 |
--program-trans=* |
--program-tran=* \
359 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
360 program_transform_name
="$ac_optarg" ;;
362 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
363 |
-silent |
--silent |
--silen |
--sile |
--sil)
366 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
368 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
370 sbindir
="$ac_optarg" ;;
372 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
373 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
374 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
376 ac_prev
=sharedstatedir
;;
377 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
378 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
379 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
381 sharedstatedir
="$ac_optarg" ;;
383 -site |
--site |
--sit)
385 -site=* |
--site=* |
--sit=*)
388 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
390 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
391 srcdir
="$ac_optarg" ;;
393 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
394 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
395 ac_prev
=sysconfdir
;;
396 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
397 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
398 sysconfdir
="$ac_optarg" ;;
400 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
402 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
403 target
="$ac_optarg" ;;
405 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
408 -version |
--version |
--versio |
--versi |
--vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* |
--without-*)
426 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package
=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
439 |
--x-incl |
--x-inc |
--x-in |
--x-i)
440 ac_prev
=x_includes
;;
441 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
442 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
443 x_includes
="$ac_optarg" ;;
445 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
446 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
447 ac_prev
=x_libraries
;;
448 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
449 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
450 x_libraries
="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE
; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
501 |
--no-cr |
--no-c) ;;
502 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
503 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
504 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest
* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file
=include
/includes.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted
=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted
=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE
; then
555 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file
in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp
='$CPP $CPPFLAGS'
578 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling
=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
593 ac_n
= ac_c
='\c' ac_t
=
599 #################################################
600 # Directory handling stuff to support both the
601 # legacy SAMBA directories and FHS compliant
605 # Check whether --with-fhs or --without-fhs was given.
606 if test "${with_fhs+set}" = set; then
608 codepagedir
="\$(DATADIR)/samba/codepages"
609 configdir
="${sysconfdir}/samba"
610 lockdir
="\${VARDIR}/cache/samba"
611 piddir
="\$(VARDIR)/run/samba"
612 logfilebase
="\${VARDIR}/log/samba"
613 privatedir
="\${CONFIGDIR}/private"
614 swatdir
="\${DATADIR}/samba/swat"
616 codepagedir
="\$(LIBDIR)/codepages"
617 configdir
="\$(LIBDIR)"
618 logfilebase
="\$(VARDIR)"
619 lockdir
="\${VARDIR}/locks"
620 piddir
="\$(VARDIR)/locks"
621 privatedir
="\${prefix}/private"
622 swatdir
="\${prefix}/swat"
626 #################################################
627 # set private directory location
628 # Check whether --with-privatedir or --without-privatedir was given.
629 if test "${with_privatedir+set}" = set; then
630 withval
="$with_privatedir"
634 # Just in case anybody calls it without argument
636 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
639 privatedir
="$withval"
645 #################################################
646 # set lock directory location
647 # Check whether --with-lockdir or --without-lockdir was given.
648 if test "${with_lockdir+set}" = set; then
649 withval
="$with_lockdir"
653 # Just in case anybody calls it without argument
655 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
664 #################################################
665 # set pid directory location
666 # Check whether --with-piddir or --without-piddir was given.
667 if test "${with_piddir+set}" = set; then
668 withval
="$with_piddir"
672 # Just in case anybody calls it without argument
674 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
683 #################################################
684 # set SWAT directory location
685 # Check whether --with-swatdir or --without-swatdir was given.
686 if test "${with_swatdir+set}" = set; then
687 withval
="$with_swatdir"
691 # Just in case anybody does it
693 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
702 #################################################
703 # set configuration directory location
704 # Check whether --with-configdir or --without-configdir was given.
705 if test "${with_configdir+set}" = set; then
706 withval
="$with_configdir"
710 # Just in case anybody does it
712 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
721 #################################################
722 # set codepage directory location
723 # Check whether --with-codepagedir or --without-codepagedir was given.
724 if test "${with_codepagedir+set}" = set; then
725 withval
="$with_codepagedir"
729 # Just in case anybody does it
731 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
734 codepagedir
="$withval"
740 #################################################
741 # set log directory location
742 # Check whether --with-logfilebase or --without-logfilebase was given.
743 if test "${with_logfilebase+set}" = set; then
744 withval
="$with_logfilebase"
748 # Just in case anybody does it
750 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
753 logfilebase
="$withval"
788 # compile with optimization and without debugging by default
789 CFLAGS
="-O ${CFLAGS}"
791 # Check whether --enable-debug or --disable-debug was given.
792 if test "${enable_debug+set}" = set; then
793 enableval
="$enable_debug"
794 if eval "test x$enable_debug = xyes"; then
795 CFLAGS
="${CFLAGS} -g"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc
; ac_word
=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$CC"; then
810 ac_cv_prog_CC
="$CC" # Let the user override the test.
812 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
814 for ac_dir
in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir
=.
816 if test -f $ac_dir/$ac_word; then
825 if test -n "$CC"; then
826 echo "$ac_t""$CC" 1>&6
828 echo "$ac_t""no" 1>&6
831 if test -z "$CC"; then
832 # Extract the first word of "cc", so it can be a program name with args.
833 set dummy cc
; ac_word
=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$CC"; then
840 ac_cv_prog_CC
="$CC" # Let the user override the test.
842 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
845 for ac_dir
in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir
=.
847 if test -f $ac_dir/$ac_word; then
848 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
857 if test $ac_prog_rejected = yes; then
858 # We found a bogon in the path, so make sure we never use it.
859 set dummy
$ac_cv_prog_CC
861 if test $# -gt 0; then
862 # We chose a different compiler from the bogus one.
863 # However, it has the same basename, so the bogon will be chosen
864 # first if we set CC to just the basename; use the full file name.
866 set dummy
"$ac_dir/$ac_word" "$@"
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
877 echo "$ac_t""no" 1>&6
880 if test -z "$CC"; then
883 # Extract the first word of "cl", so it can be a program name with args.
884 set dummy cl
; ac_word
=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 if test -n "$CC"; then
891 ac_cv_prog_CC
="$CC" # Let the user override the test.
893 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
895 for ac_dir
in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir
=.
897 if test -f $ac_dir/$ac_word; then
906 if test -n "$CC"; then
907 echo "$ac_t""$CC" 1>&6
909 echo "$ac_t""no" 1>&6
914 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918 echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp
='$CPP $CPPFLAGS'
923 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling
=$ac_cv_prog_cc_cross
927 cat > conftest.
$ac_ext << EOF
929 #line 930 "configure"
930 #include "confdefs.h"
934 if { (eval echo configure
:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
935 ac_cv_prog_cc_works
=yes
936 # If we can't run a trivial program, we are probably using a cross compiler.
937 if (.
/conftest
; exit) 2>/dev
/null
; then
938 ac_cv_prog_cc_cross
=no
940 ac_cv_prog_cc_cross
=yes
943 echo "configure: failed program was:" >&5
944 cat conftest.
$ac_ext >&5
945 ac_cv_prog_cc_works
=no
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp
='$CPP $CPPFLAGS'
951 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling
=$ac_cv_prog_cc_cross
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no
; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling
=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.c
<<EOF
974 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
989 ac_test_CFLAGS
="${CFLAGS+set}"
990 ac_save_CFLAGS
="$CFLAGS"
992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 echo 'void f(){}' > conftest.c
998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008 if test "$ac_test_CFLAGS" = set; then
1009 CFLAGS
="$ac_save_CFLAGS"
1010 elif test $ac_cv_prog_cc_g = yes; then
1011 if test "$GCC" = yes; then
1017 if test "$GCC" = yes; then
1025 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1026 if test -f $ac_dir/install-sh
; then
1028 ac_install_sh
="$ac_aux_dir/install-sh -c"
1030 elif test -f $ac_dir/install.sh
; then
1032 ac_install_sh
="$ac_aux_dir/install.sh -c"
1036 if test -z "$ac_aux_dir"; then
1037 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1039 ac_config_guess
=$ac_aux_dir/config.guess
1040 ac_config_sub
=$ac_aux_dir/config.sub
1041 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1043 # Find a good install program. We prefer a C program (faster),
1044 # so one script is as good as another. But avoid the broken or
1045 # incompatible versions:
1046 # SysV /etc/install, /usr/sbin/install
1047 # SunOS /usr/etc/install
1048 # IRIX /sbin/install
1050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1053 # ./install, which can be erroneously created by make from ./install.sh.
1054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1055 echo "configure:1056: checking for a BSD compatible install" >&5
1056 if test -z "$INSTALL"; then
1057 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1061 for ac_dir
in $PATH; do
1062 # Account for people who put trailing slashes in PATH elements.
1064 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1066 # OSF1 and SCO ODT 3.0 have their own names for install.
1067 # Don't use installbsd from OSF since it installs stuff as root
1069 for ac_prog
in ginstall scoinst
install; do
1070 if test -f $ac_dir/$ac_prog; then
1071 if test $ac_prog = install &&
1072 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1073 # AIX install. It has an incompatible calling convention.
1076 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL
="$ac_cv_path_install"
1090 # As a last resort, use the slow shell script. We don't cache a
1091 # path for INSTALL within a source directory, because that will
1092 # break other packages using the cache if that directory is
1093 # removed, or if the path is relative.
1094 INSTALL
="$ac_install_sh"
1097 echo "$ac_t""$INSTALL" 1>&6
1099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1100 # It thinks the first close brace ends the variable substitution.
1101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1105 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1107 for ac_prog
in gawk mawk nawk
awk
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy
$ac_prog; ac_word
=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$AWK"; then
1117 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1121 for ac_dir
in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir
=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_AWK
="$ac_prog"
1131 AWK
="$ac_cv_prog_AWK"
1132 if test -n "$AWK"; then
1133 echo "$ac_t""$AWK" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 test -n "$AWK" && break
1141 # Extract the first word of "passwd", so it can be a program name with args.
1142 set dummy passwd
; ac_word
=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 case "$passwd_program" in
1150 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1153 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1158 for ac_dir
in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir
=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1166 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1170 passwd_program
="$ac_cv_path_passwd_program"
1171 if test -n "$passwd_program"; then
1172 echo "$ac_t""$passwd_program" 1>&6
1174 echo "$ac_t""no" 1>&6
1179 if test "x$CC" != xcc
; then
1180 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether $CC and cc understand -c and -o together" >&5
1183 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether cc understands -c and -o together" >&5
1186 set dummy
$CC; ac_cc
="`echo $2 |
1187 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1188 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 echo 'foo(){}' > conftest.c
1192 # Make sure it works both with $CC and with simple cc.
1193 # We do the test twice because some compilers refuse to overwrite an
1194 # existing .o file with -o, though they will create one.
1195 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1196 if { (eval echo configure
:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1197 test -f conftest.o
&& { (eval echo configure
:1198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1199 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1200 if test "x$CC" != xcc
; then
1201 # Test first that cc exists at all.
1202 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1203 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1204 if { (eval echo configure
:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1205 test -f conftest.o
&& { (eval echo configure
:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1210 # cc exists but doesn't like -o.
1211 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1216 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1221 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1224 echo "$ac_t""no" 1>&6
1225 cat >> confdefs.h
<<\EOF
1226 #define NO_MINUS_C_MINUS_O 1
1231 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1238 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1239 echo "configure:1240: checking that the C compiler understands volatile" >&5
1240 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <sys/types.h>
1252 if { (eval echo configure
:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1254 samba_cv_volatile
=yes
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1259 samba_cv_volatile
=no
1264 echo "$ac_t""$samba_cv_volatile" 1>&6
1265 if test x
"$samba_cv_volatile" = x
"yes"; then
1266 cat >> confdefs.h
<<\EOF
1267 #define HAVE_VOLATILE 1
1275 # Do some error checking and defaulting for the host and target type.
1277 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1280 # 1. You are not allowed to specify --host, --target, and nonopt at the
1282 # 2. Host defaults to nonopt.
1283 # 3. If nonopt is not specified, then host defaults to the current host,
1284 # as determined by config.guess.
1285 # 4. Target and build default to nonopt.
1286 # 5. If nonopt is not specified, then target and build default to host.
1288 # The aliases save the names the user supplied, while $host etc.
1289 # will get canonicalized.
1290 case $host---$target---$nonopt in
1291 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1292 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1296 # Make sure we can run config.sub.
1297 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1298 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1301 echo $ac_n "checking host system type""... $ac_c" 1>&6
1302 echo "configure:1303: checking host system type" >&5
1305 case "$host_alias" in
1309 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1310 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1312 *) host_alias
=$nonopt ;;
1316 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1317 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 echo "$ac_t""$host" 1>&6
1322 echo $ac_n "checking target system type""... $ac_c" 1>&6
1323 echo "configure:1324: checking target system type" >&5
1325 target_alias
=$target
1326 case "$target_alias" in
1329 NONE
) target_alias
=$host_alias ;;
1330 *) target_alias
=$nonopt ;;
1334 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1335 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$ac_t""$target" 1>&6
1340 echo $ac_n "checking build system type""... $ac_c" 1>&6
1341 echo "configure:1342: checking build system type" >&5
1344 case "$build_alias" in
1347 NONE
) build_alias
=$host_alias ;;
1348 *) build_alias
=$nonopt ;;
1352 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1353 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$ac_t""$build" 1>&6
1358 test "$host_alias" != "$target_alias" &&
1359 test "$program_prefix$program_suffix$program_transform_name" = \
1361 program_prefix
=${target_alias}-
1365 *irix6
*) cat >> confdefs.h
<<\EOF
1366 #include <standards.h>
1374 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1375 echo "configure:1376: checking config.cache system type" >&5
1376 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1377 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1378 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1379 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1380 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1381 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1382 echo "$ac_t""different" 1>&6
1383 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1385 echo "$ac_t""same" 1>&6
1387 ac_cv_host_system_type
="$host"
1388 ac_cv_build_system_type
="$build"
1389 ac_cv_target_system_type
="$target"
1395 # Config CPPFLAG settings for strange OS's that must be set
1396 # before other tests.
1399 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1401 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether ${CC-cc} accepts -Ae" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 echo 'void f(){}' > conftest.c
1407 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1408 ac_cv_prog_cc_Ae
=yes
1416 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1417 # mmap on HPUX is completely broken...
1418 cat >> confdefs.h
<<\EOF
1419 #define MMAP_BLACKLIST 1
1422 if test $ac_cv_prog_cc_Ae = yes; then
1423 CPPFLAGS
="$CPPFLAGS -Ae"
1426 # Defines needed for HPUX support.
1427 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1428 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1432 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1433 cat >> confdefs.h
<<\EOF
1434 #define USE_BOTH_CRYPT_CALLS 1
1437 cat >> confdefs.h
<<\EOF
1438 #define _HPUX_SOURCE 1
1441 cat >> confdefs.h
<<\EOF
1442 #define _POSIX_SOURCE 1
1445 cat >> confdefs.h
<<\EOF
1446 #define _ALIGNMENT_REQUIRED 1
1449 cat >> confdefs.h
<<\EOF
1450 #define _MAX_ALIGNMENT 4
1455 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1456 cat >> confdefs.h
<<\EOF
1457 #define _HPUX_SOURCE 1
1460 cat >> confdefs.h
<<\EOF
1461 #define _POSIX_SOURCE 1
1464 cat >> confdefs.h
<<\EOF
1465 #define _LARGEFILE64_SOURCE 1
1468 cat >> confdefs.h
<<\EOF
1469 #define _ALIGNMENT_REQUIRED 1
1472 cat >> confdefs.h
<<\EOF
1473 #define _MAX_ALIGNMENT 4
1476 cat >> confdefs.h
<<\EOF
1477 #define USE_BOTH_CRYPT_CALLS 1
1487 # CRAY Unicos has broken const handling
1489 echo "$ac_t""disabling const" 1>&6
1490 CPPFLAGS
="$CPPFLAGS -Dconst="
1494 # AIX4.x doesn't even admit to having large
1495 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1498 echo "$ac_t""enabling large file support" 1>&6
1499 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1500 cat >> confdefs.h
<<\EOF
1501 #define _LARGE_FILES 1
1506 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1507 # to the existance of large files..
1508 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1509 # recommendations on large file support, however it makes the
1510 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1511 # recommendation makes the compile fail on gcc2.7. JRA.
1515 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1516 echo "$ac_t""no large file support" 1>&6
1519 echo "$ac_t""enabling large file support" 1>&6
1520 if test "$ac_cv_prog_gcc" = yes; then
1521 ${CC-cc} -v >conftest.c
2>&1
1522 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1524 case "$ac_cv_gcc_compiler_version_number" in
1525 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1526 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1527 cat >> confdefs.h
<<\EOF
1528 #define _LARGEFILE64_SOURCE 1
1533 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1534 cat >> confdefs.h
<<\EOF
1535 #define _LARGEFILE64_SOURCE 1
1538 cat >> confdefs.h
<<\EOF
1539 #define _FILE_OFFSET_BITS 64
1545 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1546 cat >> confdefs.h
<<\EOF
1547 #define _LARGEFILE64_SOURCE 1
1550 cat >> confdefs.h
<<\EOF
1551 #define _FILE_OFFSET_BITS 64
1559 # Tests needed for SINIX large file support.
1562 if test $host = mips-sni-sysv4
; then
1563 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1564 echo "configure:1565: checking for LFS support" >&5
1565 old_CPPFLAGS
="$CPPFLAGS"
1566 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1567 if test "$cross_compiling" = yes; then
1568 SINIX_LFS_SUPPORT
=cross
1570 cat > conftest.
$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1576 #if _LFS64_LARGEFILE == 1
1583 if { (eval echo configure
:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1585 SINIX_LFS_SUPPORT
=yes
1587 echo "configure: failed program was:" >&5
1588 cat conftest.
$ac_ext >&5
1590 SINIX_LFS_SUPPORT
=no
1595 CPPFLAGS
="$old_CPPFLAGS"
1596 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1597 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1598 cat >> confdefs.h
<<\EOF
1599 #define _LARGEFILE64_SOURCE 1
1602 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1603 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1604 LIBS
="`getconf LFS64_LIBS` $LIBS"
1606 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1610 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1613 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1614 echo "configure:1615: checking for LFS support" >&5
1615 old_CPPFLAGS
="$CPPFLAGS"
1616 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1617 if test "$cross_compiling" = yes; then
1618 LINUX_LFS_SUPPORT
=cross
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1625 #include <sys/utsname.h>
1627 #if _LFS64_LARGEFILE == 1
1632 /* Ensure this is glibc 2.2 or higher */
1633 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1634 int libc_major = __GLIBC__;
1635 int libc_minor = __GLIBC_MINOR__;
1643 /* Ensure this is kernel 2.4 or higher */
1646 release = uts.release;
1647 major = atoi(strsep(&release, "."));
1648 minor = atoi(strsep(&release, "."));
1650 if (major > 2 || (major == 2 && minor > 3))
1659 if { (eval echo configure
:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1661 LINUX_LFS_SUPPORT
=yes
1663 echo "configure: failed program was:" >&5
1664 cat conftest.
$ac_ext >&5
1666 LINUX_LFS_SUPPORT
=no
1671 CPPFLAGS
="$old_CPPFLAGS"
1672 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1673 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1674 cat >> confdefs.h
<<\EOF
1675 #define _LARGEFILE64_SOURCE 1
1678 cat >> confdefs.h
<<\EOF
1679 #define _FILE_OFFSET_BITS 64
1682 cat >> confdefs.h
<<\EOF
1683 #define _GNU_SOURCE 1
1687 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1691 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1692 echo "configure:1693: checking for LFS support" >&5
1693 old_CPPFLAGS
="$CPPFLAGS"
1694 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1695 if test "$cross_compiling" = yes; then
1696 GLIBC_LFS_SUPPORT
=cross
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1704 #if _LFS64_LARGEFILE == 1
1711 if { (eval echo configure
:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1713 GLIBC_LFS_SUPPORT
=yes
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1718 GLIBC_LFS_SUPPORT
=no
1723 CPPFLAGS
="$old_CPPFLAGS"
1724 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1725 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1726 cat >> confdefs.h
<<\EOF
1727 #define _LARGEFILE64_SOURCE 1
1730 cat >> confdefs.h
<<\EOF
1731 #define _GNU_SOURCE 1
1735 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1740 echo $ac_n "checking for inline""... $ac_c" 1>&6
1741 echo "configure:1742: checking for inline" >&5
1742 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1746 for ac_kw
in inline __inline__ __inline
; do
1747 cat > conftest.
$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1755 if { (eval echo configure
:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1757 ac_cv_c_inline
=$ac_kw; break
1759 echo "configure: failed program was:" >&5
1760 cat conftest.
$ac_ext >&5
1767 echo "$ac_t""$ac_cv_c_inline" 1>&6
1768 case "$ac_cv_c_inline" in
1770 no
) cat >> confdefs.h
<<\EOF
1774 *) cat >> confdefs.h
<<EOF
1775 #define inline $ac_cv_c_inline
1780 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1781 echo "configure:1782: checking how to run the C preprocessor" >&5
1782 # On Suns, sometimes $CPP names a directory.
1783 if test -n "$CPP" && test -d "$CPP"; then
1786 if test -z "$CPP"; then
1787 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 # This must be in double quotes, not single quotes, because CPP may get
1791 # substituted into the Makefile and "${CC-cc}" will confuse make.
1793 # On the NeXT, cc -E runs the code through the compiler's parser,
1794 # not just through cpp.
1795 cat > conftest.
$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1801 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1802 { (eval echo configure
:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1803 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1804 if test -z "$ac_err"; then
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1811 CPP
="${CC-cc} -E -traditional-cpp"
1812 cat > conftest.
$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1819 { (eval echo configure
:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1820 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1821 if test -z "$ac_err"; then
1825 echo "configure: failed program was:" >&5
1826 cat conftest.
$ac_ext >&5
1828 CPP
="${CC-cc} -nologo -E"
1829 cat > conftest.
$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1835 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1836 { (eval echo configure
:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1837 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1838 if test -z "$ac_err"; then
1842 echo "configure: failed program was:" >&5
1843 cat conftest.
$ac_ext >&5
1852 ac_cv_prog_CPP
="$CPP"
1854 CPP
="$ac_cv_prog_CPP"
1856 ac_cv_prog_CPP
="$CPP"
1858 echo "$ac_t""$CPP" 1>&6
1860 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1861 echo "configure:1862: checking for ANSI C header files" >&5
1862 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 cat > conftest.
$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1873 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1874 { (eval echo configure
:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1875 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1876 if test -z "$ac_err"; then
1878 ac_cv_header_stdc
=yes
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 ac_cv_header_stdc
=no
1888 if test $ac_cv_header_stdc = yes; then
1889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1896 egrep "memchr" >/dev
/null
2>&1; then
1900 ac_cv_header_stdc
=no
1906 if test $ac_cv_header_stdc = yes; then
1907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1908 cat > conftest.
$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1914 egrep "free" >/dev
/null
2>&1; then
1918 ac_cv_header_stdc
=no
1924 if test $ac_cv_header_stdc = yes; then
1925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1926 if test "$cross_compiling" = yes; then
1929 cat > conftest.
$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1933 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1934 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1936 int main () { int i; for (i = 0; i < 256; i++)
1937 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1941 if { (eval echo configure
:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1945 echo "configure: failed program was:" >&5
1946 cat conftest.
$ac_ext >&5
1948 ac_cv_header_stdc
=no
1956 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1957 if test $ac_cv_header_stdc = yes; then
1958 cat >> confdefs.h
<<\EOF
1959 #define STDC_HEADERS 1
1965 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1967 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1968 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_hdr that defines DIR" >&5
1970 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 cat > conftest.
$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 #include <sys/types.h>
1982 if { (eval echo configure
:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1984 eval "ac_cv_header_dirent_$ac_safe=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 eval "ac_cv_header_dirent_$ac_safe=no"
1993 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1996 cat >> confdefs.h
<<EOF
1997 #define $ac_tr_hdr 1
1999 ac_header_dirent
=$ac_hdr; break
2001 echo "$ac_t""no" 1>&6
2004 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2005 if test $ac_header_dirent = dirent.h
; then
2006 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2007 echo "configure:2008: checking for opendir in -ldir" >&5
2008 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 ac_save_LIBS
="$LIBS"
2014 cat > conftest.
$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 /* Override any gcc2 internal prototype to avoid an error. */
2018 /* We use char because int might match the return type of a gcc2
2019 builtin and then its argument prototype would still apply. */
2026 if { (eval echo configure
:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2028 eval "ac_cv_lib_$ac_lib_var=yes"
2030 echo "configure: failed program was:" >&5
2031 cat conftest.
$ac_ext >&5
2033 eval "ac_cv_lib_$ac_lib_var=no"
2036 LIBS
="$ac_save_LIBS"
2039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2043 echo "$ac_t""no" 1>&6
2047 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2048 echo "configure:2049: checking for opendir in -lx" >&5
2049 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 ac_save_LIBS
="$LIBS"
2055 cat > conftest.
$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2067 if { (eval echo configure
:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2069 eval "ac_cv_lib_$ac_lib_var=yes"
2071 echo "configure: failed program was:" >&5
2072 cat conftest.
$ac_ext >&5
2074 eval "ac_cv_lib_$ac_lib_var=no"
2077 LIBS
="$ac_save_LIBS"
2080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2084 echo "$ac_t""no" 1>&6
2089 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether time.h and sys/time.h may both be included" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.
$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 #include <sys/types.h>
2098 #include <sys/time.h>
2104 if { (eval echo configure
:2105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2106 ac_cv_header_time
=yes
2108 echo "configure: failed program was:" >&5
2109 cat conftest.
$ac_ext >&5
2111 ac_cv_header_time
=no
2116 echo "$ac_t""$ac_cv_header_time" 1>&6
2117 if test $ac_cv_header_time = yes; then
2118 cat >> confdefs.h
<<\EOF
2119 #define TIME_WITH_SYS_TIME 1
2124 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2125 echo "configure:2126: checking for sys/wait.h that is POSIX.1 compatible" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2133 #include <sys/wait.h>
2135 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2138 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2143 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2146 if { (eval echo configure
:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2148 ac_cv_header_sys_wait_h
=yes
2150 echo "configure: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2153 ac_cv_header_sys_wait_h
=no
2158 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2159 if test $ac_cv_header_sys_wait_h = yes; then
2160 cat >> confdefs.h
<<\EOF
2161 #define HAVE_SYS_WAIT_H 1
2166 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2168 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_hdr" >&5
2171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2179 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2180 { (eval echo configure
:2181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2181 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2182 if test -z "$ac_err"; then
2184 eval "ac_cv_header_$ac_safe=yes"
2187 echo "configure: failed program was:" >&5
2188 cat conftest.
$ac_ext >&5
2190 eval "ac_cv_header_$ac_safe=no"
2194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2195 echo "$ac_t""yes" 1>&6
2196 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2197 cat >> confdefs.h
<<EOF
2198 #define $ac_tr_hdr 1
2202 echo "$ac_t""no" 1>&6
2206 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2208 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2210 echo "configure:2211: checking for $ac_hdr" >&5
2211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 cat > conftest.
$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2219 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2220 { (eval echo configure
:2221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2221 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2222 if test -z "$ac_err"; then
2224 eval "ac_cv_header_$ac_safe=yes"
2227 echo "configure: failed program was:" >&5
2228 cat conftest.
$ac_ext >&5
2230 eval "ac_cv_header_$ac_safe=no"
2234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2235 echo "$ac_t""yes" 1>&6
2236 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2237 cat >> confdefs.h
<<EOF
2238 #define $ac_tr_hdr 1
2242 echo "$ac_t""no" 1>&6
2246 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2248 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2250 echo "configure:2251: checking for $ac_hdr" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2259 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2260 { (eval echo configure
:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2261 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2262 if test -z "$ac_err"; then
2264 eval "ac_cv_header_$ac_safe=yes"
2267 echo "configure: failed program was:" >&5
2268 cat conftest.
$ac_ext >&5
2270 eval "ac_cv_header_$ac_safe=no"
2274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2277 cat >> confdefs.h
<<EOF
2278 #define $ac_tr_hdr 1
2282 echo "$ac_t""no" 1>&6
2286 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2288 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2290 echo "configure:2291: checking for $ac_hdr" >&5
2291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.
$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2299 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2300 { (eval echo configure
:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2301 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2302 if test -z "$ac_err"; then
2304 eval "ac_cv_header_$ac_safe=yes"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 eval "ac_cv_header_$ac_safe=no"
2314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2316 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2317 cat >> confdefs.h
<<EOF
2318 #define $ac_tr_hdr 1
2322 echo "$ac_t""no" 1>&6
2326 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
2328 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_hdr" >&5
2331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2339 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure
:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2344 eval "ac_cv_header_$ac_safe=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2350 eval "ac_cv_header_$ac_safe=no"
2354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2357 cat >> confdefs.h
<<EOF
2358 #define $ac_tr_hdr 1
2362 echo "$ac_t""no" 1>&6
2366 for ac_hdr
in syslog.h sys
/syslog.h sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2368 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_hdr" >&5
2371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.
$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2379 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2380 { (eval echo configure
:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2381 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2382 if test -z "$ac_err"; then
2384 eval "ac_cv_header_$ac_safe=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 eval "ac_cv_header_$ac_safe=no"
2394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2397 cat >> confdefs.h
<<EOF
2398 #define $ac_tr_hdr 1
2402 echo "$ac_t""no" 1>&6
2406 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2408 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_hdr" >&5
2411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2419 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure
:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2424 eval "ac_cv_header_$ac_safe=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 eval "ac_cv_header_$ac_safe=no"
2434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2437 cat >> confdefs.h
<<EOF
2438 #define $ac_tr_hdr 1
2442 echo "$ac_t""no" 1>&6
2446 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2448 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_hdr" >&5
2451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 cat > conftest.
$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2459 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2460 { (eval echo configure
:2461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2461 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2462 if test -z "$ac_err"; then
2464 eval "ac_cv_header_$ac_safe=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.
$ac_ext >&5
2470 eval "ac_cv_header_$ac_safe=no"
2474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2476 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2477 cat >> confdefs.h
<<EOF
2478 #define $ac_tr_hdr 1
2482 echo "$ac_t""no" 1>&6
2488 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2489 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2501 if { (eval echo configure
:2502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503 ac_cv_header_shadow_h
=yes
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 ac_cv_header_shadow_h
=no
2511 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2512 cat >> confdefs.h
<<\EOF
2513 #define HAVE_SHADOW_H 1
2519 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2521 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2523 echo "configure:2524: checking for $ac_hdr" >&5
2524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 cat > conftest.
$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2532 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2533 { (eval echo configure
:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2534 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2535 if test -z "$ac_err"; then
2537 eval "ac_cv_header_$ac_safe=yes"
2540 echo "configure: failed program was:" >&5
2541 cat conftest.
$ac_ext >&5
2543 eval "ac_cv_header_$ac_safe=no"
2547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2548 echo "$ac_t""yes" 1>&6
2549 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2550 cat >> confdefs.h
<<EOF
2551 #define $ac_tr_hdr 1
2555 echo "$ac_t""no" 1>&6
2559 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2561 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2563 echo "configure:2564: checking for $ac_hdr" >&5
2564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 cat > conftest.
$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2572 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2573 { (eval echo configure
:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2574 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2575 if test -z "$ac_err"; then
2577 eval "ac_cv_header_$ac_safe=yes"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.
$ac_ext >&5
2583 eval "ac_cv_header_$ac_safe=no"
2587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2590 cat >> confdefs.h
<<EOF
2591 #define $ac_tr_hdr 1
2595 echo "$ac_t""no" 1>&6
2599 for ac_hdr
in stropts.h poll.h
2601 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2603 echo "configure:2604: checking for $ac_hdr" >&5
2604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2612 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure
:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2615 if test -z "$ac_err"; then
2617 eval "ac_cv_header_$ac_safe=yes"
2620 echo "configure: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2623 eval "ac_cv_header_$ac_safe=no"
2627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2628 echo "$ac_t""yes" 1>&6
2629 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2630 cat >> confdefs.h
<<EOF
2631 #define $ac_tr_hdr 1
2635 echo "$ac_t""no" 1>&6
2639 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2641 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2643 echo "configure:2644: checking for $ac_hdr" >&5
2644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2652 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2653 { (eval echo configure
:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2654 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2655 if test -z "$ac_err"; then
2657 eval "ac_cv_header_$ac_safe=yes"
2660 echo "configure: failed program was:" >&5
2661 cat conftest.
$ac_ext >&5
2663 eval "ac_cv_header_$ac_safe=no"
2667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2670 cat >> confdefs.h
<<EOF
2671 #define $ac_tr_hdr 1
2675 echo "$ac_t""no" 1>&6
2679 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2681 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2683 echo "configure:2684: checking for $ac_hdr" >&5
2684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2687 cat > conftest.
$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2692 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2693 { (eval echo configure
:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2694 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2695 if test -z "$ac_err"; then
2697 eval "ac_cv_header_$ac_safe=yes"
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2703 eval "ac_cv_header_$ac_safe=no"
2707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2708 echo "$ac_t""yes" 1>&6
2709 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2710 cat >> confdefs.h
<<EOF
2711 #define $ac_tr_hdr 1
2715 echo "$ac_t""no" 1>&6
2720 # For experimental utmp support (lastlog on some BSD-like systems)
2721 for ac_hdr
in utmp.h utmpx.h lastlog.h
2723 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_hdr" >&5
2726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.
$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2734 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2735 { (eval echo configure
:2736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2736 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2737 if test -z "$ac_err"; then
2739 eval "ac_cv_header_$ac_safe=yes"
2742 echo "configure: failed program was:" >&5
2743 cat conftest.
$ac_ext >&5
2745 eval "ac_cv_header_$ac_safe=no"
2749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2751 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2752 cat >> confdefs.h
<<EOF
2753 #define $ac_tr_hdr 1
2757 echo "$ac_t""no" 1>&6
2762 # For quotas on Veritas VxFS filesystems
2763 for ac_hdr
in sys
/fs
/vx_quota.h
2765 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_hdr" >&5
2768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2771 cat > conftest.
$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2776 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure
:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2781 eval "ac_cv_header_$ac_safe=yes"
2784 echo "configure: failed program was:" >&5
2785 cat conftest.
$ac_ext >&5
2787 eval "ac_cv_header_$ac_safe=no"
2791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2794 cat >> confdefs.h
<<EOF
2795 #define $ac_tr_hdr 1
2799 echo "$ac_t""no" 1>&6
2804 # For quotas on Linux XFS filesystems
2805 for ac_hdr
in linux
/xqm.h
2807 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_hdr" >&5
2810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.
$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2819 { (eval echo configure
:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2820 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2821 if test -z "$ac_err"; then
2823 eval "ac_cv_header_$ac_safe=yes"
2826 echo "configure: failed program was:" >&5
2827 cat conftest.
$ac_ext >&5
2829 eval "ac_cv_header_$ac_safe=no"
2833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2836 cat >> confdefs.h
<<EOF
2837 #define $ac_tr_hdr 1
2841 echo "$ac_t""no" 1>&6
2846 echo $ac_n "checking size of int""... $ac_c" 1>&6
2847 echo "configure:2848: checking size of int" >&5
2848 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 if test "$cross_compiling" = yes; then
2852 ac_cv_sizeof_int
=cross
2854 cat > conftest.
$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2860 FILE *f=fopen("conftestval", "w");
2862 fprintf(f, "%d\n", sizeof(int));
2866 if { (eval echo configure
:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2868 ac_cv_sizeof_int
=`cat conftestval`
2870 echo "configure: failed program was:" >&5
2871 cat conftest.
$ac_ext >&5
2879 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2880 cat >> confdefs.h
<<EOF
2881 #define SIZEOF_INT $ac_cv_sizeof_int
2885 echo $ac_n "checking size of long""... $ac_c" 1>&6
2886 echo "configure:2887: checking size of long" >&5
2887 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 if test "$cross_compiling" = yes; then
2891 ac_cv_sizeof_long
=cross
2893 cat > conftest.
$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2899 FILE *f=fopen("conftestval", "w");
2901 fprintf(f, "%d\n", sizeof(long));
2905 if { (eval echo configure
:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2907 ac_cv_sizeof_long
=`cat conftestval`
2909 echo "configure: failed program was:" >&5
2910 cat conftest.
$ac_ext >&5
2918 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2919 cat >> confdefs.h
<<EOF
2920 #define SIZEOF_LONG $ac_cv_sizeof_long
2924 echo $ac_n "checking size of short""... $ac_c" 1>&6
2925 echo "configure:2926: checking size of short" >&5
2926 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 if test "$cross_compiling" = yes; then
2930 ac_cv_sizeof_short
=cross
2932 cat > conftest.
$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2938 FILE *f=fopen("conftestval", "w");
2940 fprintf(f, "%d\n", sizeof(short));
2944 if { (eval echo configure
:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2946 ac_cv_sizeof_short
=`cat conftestval`
2948 echo "configure: failed program was:" >&5
2949 cat conftest.
$ac_ext >&5
2951 ac_cv_sizeof_short
=0
2957 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2958 cat >> confdefs.h
<<EOF
2959 #define SIZEOF_SHORT $ac_cv_sizeof_short
2964 echo $ac_n "checking for working const""... $ac_c" 1>&6
2965 echo "configure:2966: checking for working const" >&5
2966 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 cat > conftest.
$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2975 /* Ultrix mips cc rejects this. */
2976 typedef int charset[2]; const charset x;
2977 /* SunOS 4.1.1 cc rejects this. */
2978 char const *const *ccp;
2980 /* NEC SVR4.0.2 mips cc rejects this. */
2981 struct point {int x, y;};
2982 static struct point const zero = {0,0};
2983 /* AIX XL C 1.02.0.0 rejects this.
2984 It does not let you subtract one const X* pointer from another in an arm
2985 of an if-expression whose if-part is not a constant expression */
2986 const char *g = "string";
2987 ccp = &g + (g ? g-g : 0);
2988 /* HPUX 7.0 cc rejects these. */
2991 ccp = (char const *const *) p;
2992 { /* SCO 3.2v4 cc rejects this. */
2994 char const *s = 0 ? (char *) 0 : (char const *) 0;
2998 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3000 const int *foo = &x[0];
3003 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3004 typedef const int *iptr;
3008 { /* AIX XL C 1.02.0.0 rejects this saying
3009 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3010 struct s { int j; const int *ap[3]; };
3011 struct s *b; b->j = 5;
3013 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3019 if { (eval echo configure
:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3023 echo "configure: failed program was:" >&5
3024 cat conftest.
$ac_ext >&5
3031 echo "$ac_t""$ac_cv_c_const" 1>&6
3032 if test $ac_cv_c_const = no
; then
3033 cat >> confdefs.h
<<\EOF
3039 echo $ac_n "checking for inline""... $ac_c" 1>&6
3040 echo "configure:3041: checking for inline" >&5
3041 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3045 for ac_kw
in inline __inline__ __inline
; do
3046 cat > conftest.
$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3054 if { (eval echo configure
:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3056 ac_cv_c_inline
=$ac_kw; break
3058 echo "configure: failed program was:" >&5
3059 cat conftest.
$ac_ext >&5
3066 echo "$ac_t""$ac_cv_c_inline" 1>&6
3067 case "$ac_cv_c_inline" in
3069 no
) cat >> confdefs.h
<<\EOF
3073 *) cat >> confdefs.h
<<EOF
3074 #define inline $ac_cv_c_inline
3079 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3080 echo "configure:3081: checking whether byte ordering is bigendian" >&5
3081 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 ac_cv_c_bigendian
=unknown
3085 # See if sys/param.h defines the BYTE_ORDER macro.
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 #include <sys/types.h>
3090 #include <sys/param.h>
3093 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3098 if { (eval echo configure
:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100 # It does; now see whether it defined to BIG_ENDIAN or not.
3101 cat > conftest.
$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 #include <sys/types.h>
3105 #include <sys/param.h>
3108 #if BYTE_ORDER != BIG_ENDIAN
3113 if { (eval echo configure
:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115 ac_cv_c_bigendian
=yes
3117 echo "configure: failed program was:" >&5
3118 cat conftest.
$ac_ext >&5
3120 ac_cv_c_bigendian
=no
3124 echo "configure: failed program was:" >&5
3125 cat conftest.
$ac_ext >&5
3128 if test $ac_cv_c_bigendian = unknown
; then
3129 if test "$cross_compiling" = yes; then
3130 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3132 cat > conftest.
$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3136 /* Are we little or big endian? From Harbison&Steele. */
3140 char c[sizeof (long)];
3143 exit (u.c[sizeof (long) - 1] == 1);
3146 if { (eval echo configure
:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3148 ac_cv_c_bigendian
=no
3150 echo "configure: failed program was:" >&5
3151 cat conftest.
$ac_ext >&5
3153 ac_cv_c_bigendian
=yes
3161 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3162 if test $ac_cv_c_bigendian = yes; then
3163 cat >> confdefs.h
<<\EOF
3164 #define WORDS_BIGENDIAN 1
3169 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3170 echo "configure:3171: checking whether char is unsigned" >&5
3171 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 if test "$GCC" = yes; then
3175 # GCC predefines this symbol on systems where it applies.
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #ifdef __CHAR_UNSIGNED__
3184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3185 egrep "yes" >/dev
/null
2>&1; then
3187 ac_cv_c_char_unsigned
=yes
3190 ac_cv_c_char_unsigned
=no
3195 if test "$cross_compiling" = yes; then
3196 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3202 #if !defined(__STDC__) || __STDC__ != 1
3206 volatile char c = 255; exit(c < 0);
3209 if { (eval echo configure
:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3211 ac_cv_c_char_unsigned
=yes
3213 echo "configure: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3216 ac_cv_c_char_unsigned
=no
3224 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3225 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3226 cat >> confdefs.h
<<\EOF
3227 #define __CHAR_UNSIGNED__ 1
3233 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3234 echo "configure:3235: checking return type of signal handlers" >&5
3235 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #include <sys/types.h>
3247 extern "C" void (*signal (int, void (*)(int)))(int);
3249 void (*signal ()) ();
3256 if { (eval echo configure
:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 ac_cv_type_signal
=void
3260 echo "configure: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3263 ac_cv_type_signal
=int
3268 echo "$ac_t""$ac_cv_type_signal" 1>&6
3269 cat >> confdefs.h
<<EOF
3270 #define RETSIGTYPE $ac_cv_type_signal
3274 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3275 echo "configure:3276: checking for uid_t in sys/types.h" >&5
3276 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 cat > conftest.
$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 #include <sys/types.h>
3284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3285 egrep "uid_t" >/dev
/null
2>&1; then
3287 ac_cv_type_uid_t
=yes
3296 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3297 if test $ac_cv_type_uid_t = no
; then
3298 cat >> confdefs.h
<<\EOF
3302 cat >> confdefs.h
<<\EOF
3308 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3309 echo "configure:3310: checking for mode_t" >&5
3310 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3325 ac_cv_type_mode_t
=yes
3328 ac_cv_type_mode_t
=no
3333 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3334 if test $ac_cv_type_mode_t = no
; then
3335 cat >> confdefs.h
<<\EOF
3341 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3342 echo "configure:3343: checking for off_t" >&5
3343 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 cat > conftest.
$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3356 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3358 ac_cv_type_off_t
=yes
3366 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3367 if test $ac_cv_type_off_t = no
; then
3368 cat >> confdefs.h
<<\EOF
3374 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3375 echo "configure:3376: checking for size_t" >&5
3376 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.
$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3391 ac_cv_type_size_t
=yes
3394 ac_cv_type_size_t
=no
3399 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3400 if test $ac_cv_type_size_t = no
; then
3401 cat >> confdefs.h
<<\EOF
3402 #define size_t unsigned
3407 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3408 echo "configure:3409: checking for pid_t" >&5
3409 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.
$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3424 ac_cv_type_pid_t
=yes
3432 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3433 if test $ac_cv_type_pid_t = no
; then
3434 cat >> confdefs.h
<<\EOF
3440 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3441 echo "configure:3442: checking for st_rdev in struct stat" >&5
3442 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 cat > conftest.
$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3451 struct stat s; s.st_rdev;
3454 if { (eval echo configure
:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3456 ac_cv_struct_st_rdev
=yes
3458 echo "configure: failed program was:" >&5
3459 cat conftest.
$ac_ext >&5
3461 ac_cv_struct_st_rdev
=no
3466 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3467 if test $ac_cv_struct_st_rdev = yes; then
3468 cat >> confdefs.h
<<\EOF
3469 #define HAVE_ST_RDEV 1
3474 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3475 echo "configure:3476: checking for d_off in dirent" >&5
3476 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.
$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3484 #include <sys/types.h>
3487 struct dirent d; d.d_off;
3490 if { (eval echo configure
:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492 ac_cv_dirent_d_off
=yes
3494 echo "configure: failed program was:" >&5
3495 cat conftest.
$ac_ext >&5
3497 ac_cv_dirent_d_off
=no
3502 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3503 if test $ac_cv_dirent_d_off = yes; then
3504 cat >> confdefs.h
<<\EOF
3505 #define HAVE_DIRENT_D_OFF 1
3510 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3511 echo "configure:3512: checking for ino_t" >&5
3512 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 #include <sys/types.h>
3524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3525 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3527 ac_cv_type_ino_t
=yes
3535 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3536 if test $ac_cv_type_ino_t = no
; then
3537 cat >> confdefs.h
<<\EOF
3538 #define ino_t unsigned
3543 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3544 echo "configure:3545: checking for loff_t" >&5
3545 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 cat > conftest.
$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <sys/types.h>
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3560 ac_cv_type_loff_t
=yes
3563 ac_cv_type_loff_t
=no
3568 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3569 if test $ac_cv_type_loff_t = no
; then
3570 cat >> confdefs.h
<<\EOF
3571 #define loff_t off_t
3576 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3577 echo "configure:3578: checking for offset_t" >&5
3578 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3581 cat > conftest.
$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 #include <sys/types.h>
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3593 ac_cv_type_offset_t
=yes
3596 ac_cv_type_offset_t
=no
3601 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3602 if test $ac_cv_type_offset_t = no
; then
3603 cat >> confdefs.h
<<\EOF
3604 #define offset_t loff_t
3609 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3610 echo "configure:3611: checking for ssize_t" >&5
3611 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 cat > conftest.
$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <sys/types.h>
3623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3624 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3626 ac_cv_type_ssize_t
=yes
3629 ac_cv_type_ssize_t
=no
3634 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3635 if test $ac_cv_type_ssize_t = no
; then
3636 cat >> confdefs.h
<<\EOF
3642 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3643 echo "configure:3644: checking for wchar_t" >&5
3644 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 cat > conftest.
$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <sys/types.h>
3656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3659 ac_cv_type_wchar_t
=yes
3662 ac_cv_type_wchar_t
=no
3667 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3668 if test $ac_cv_type_wchar_t = no
; then
3669 cat >> confdefs.h
<<\EOF
3670 #define wchar_t unsigned short
3676 ############################################
3677 # for cups support we need libcups, and a handful of header files
3679 # Check whether --enable-cups or --disable-cups was given.
3680 if test "${enable_cups+set}" = set; then
3681 enableval
="$enable_cups"
3686 if test x
$enable_cups != xno
; then
3687 # Extract the first word of "cups-config", so it can be a program name with args.
3688 set dummy cups-config
; ac_word
=$2
3689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3690 echo "configure:3691: checking for $ac_word" >&5
3691 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 case "$CUPS_CONFIG" in
3696 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3699 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3704 for ac_dir
in $ac_dummy; do
3705 test -z "$ac_dir" && ac_dir
=.
3706 if test -f $ac_dir/$ac_word; then
3707 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3715 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3716 if test -n "$CUPS_CONFIG"; then
3717 echo "$ac_t""$CUPS_CONFIG" 1>&6
3719 echo "$ac_t""no" 1>&6
3723 if test "x$CUPS_CONFIG" != x
; then
3724 cat >> confdefs.h
<<\EOF
3728 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3729 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3730 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3734 ############################################
3735 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3736 for ac_func
in dlopen
3738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3739 echo "configure:3740: checking for $ac_func" >&5
3740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.
$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* System header to define __stub macros and hopefully few prototypes,
3747 which can conflict with char $ac_func(); below. */
3749 /* Override any gcc2 internal prototype to avoid an error. */
3750 /* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3756 /* The GNU C library defines this for functions which it implements
3757 to always fail with ENOSYS. Some functions are actually named
3758 something starting with __ and the normal name is an alias. */
3759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3767 if { (eval echo configure
:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3769 eval "ac_cv_func_$ac_func=yes"
3771 echo "configure: failed program was:" >&5
3772 cat conftest.
$ac_ext >&5
3774 eval "ac_cv_func_$ac_func=no"
3779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3781 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3782 cat >> confdefs.h
<<EOF
3783 #define $ac_tr_func 1
3787 echo "$ac_t""no" 1>&6
3791 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3792 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3793 echo "configure:3794: checking for dlopen in -ldl" >&5
3794 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 ac_save_LIBS
="$LIBS"
3800 cat > conftest.
$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 /* We use char because int might match the return type of a gcc2
3805 builtin and then its argument prototype would still apply. */
3812 if { (eval echo configure
:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3814 eval "ac_cv_lib_$ac_lib_var=yes"
3816 echo "configure: failed program was:" >&5
3817 cat conftest.
$ac_ext >&5
3819 eval "ac_cv_lib_$ac_lib_var=no"
3822 LIBS
="$ac_save_LIBS"
3825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3826 echo "$ac_t""yes" 1>&6
3828 cat >> confdefs.h
<<\EOF
3829 #define HAVE_DLOPEN 1
3833 echo "$ac_t""no" 1>&6
3837 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3839 ############################################
3840 # check if the compiler can do immediate structures
3841 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3842 echo "configure:3843: checking for immediate structures" >&5
3843 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+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"
3854 typedef struct {unsigned x;} FOOBAR;
3855 #define X_FOOBAR(x) ((FOOBAR) { x })
3856 #define FOO_ONE X_FOOBAR(1)
3866 if { (eval echo configure
:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868 samba_cv_immediate_structures
=yes
3870 echo "configure: failed program was:" >&5
3871 cat conftest.
$ac_ext >&5
3873 samba_cv_immediate_structures
=no
3878 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3879 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3880 cat >> confdefs.h
<<\EOF
3881 #define HAVE_IMMEDIATE_STRUCTURES 1
3886 ############################################
3887 # check for unix domain sockets
3888 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3889 echo "configure:3890: checking for unix domain sockets" >&5
3890 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3894 cat > conftest.
$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3898 #include <sys/types.h>
3901 #include <sys/socket.h>
3905 struct sockaddr_un sunaddr;
3906 sunaddr.sun_family = AF_UNIX;
3910 if { (eval echo configure
:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3912 samba_cv_unixsocket
=yes
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3917 samba_cv_unixsocket
=no
3922 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3923 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3924 cat >> confdefs.h
<<\EOF
3925 #define HAVE_UNIXSOCKET 1
3930 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3931 echo "configure:3932: checking for socklen_t type" >&5
3932 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3936 cat > conftest.
$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3940 #include <sys/types.h>
3945 #include <sys/socket.h>
3950 if { (eval echo configure
:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3952 samba_cv_socklen_t
=yes
3954 echo "configure: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3957 samba_cv_socklen_t
=no
3962 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3963 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3964 cat >> confdefs.h
<<\EOF
3965 #define HAVE_SOCKLEN_T_TYPE 1
3970 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3971 echo "configure:3972: checking for sig_atomic_t type" >&5
3972 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3980 #include <sys/types.h>
3990 if { (eval echo configure
:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3992 samba_cv_sig_atomic_t
=yes
3994 echo "configure: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 samba_cv_sig_atomic_t
=no
4002 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4003 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4004 cat >> confdefs.h
<<\EOF
4005 #define HAVE_SIG_ATOMIC_T_TYPE 1
4010 # stupid headers have the functions but no declaration. grrrr.
4012 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4013 echo "configure:4014: checking for errno declaration" >&5
4014 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4018 cat > conftest.
$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4026 if { (eval echo configure
:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4028 ac_cv_have_errno_decl
=yes
4030 echo "configure: failed program was:" >&5
4031 cat conftest.
$ac_ext >&5
4033 ac_cv_have_errno_decl
=no
4038 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4039 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4040 cat >> confdefs.h
<<\EOF
4041 #define HAVE_ERRNO_DECL 1
4047 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4048 echo "configure:4049: checking for setresuid declaration" >&5
4049 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4053 cat > conftest.
$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4058 int i = (int)setresuid
4061 if { (eval echo configure
:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 ac_cv_have_setresuid_decl
=yes
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 ac_cv_have_setresuid_decl
=no
4073 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4074 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4075 cat >> confdefs.h
<<\EOF
4076 #define HAVE_SETRESUID_DECL 1
4082 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4083 echo "configure:4084: checking for setresgid declaration" >&5
4084 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4093 int i = (int)setresgid
4096 if { (eval echo configure
:4097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4098 ac_cv_have_setresgid_decl
=yes
4100 echo "configure: failed program was:" >&5
4101 cat conftest.
$ac_ext >&5
4103 ac_cv_have_setresgid_decl
=no
4108 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4109 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4110 cat >> confdefs.h
<<\EOF
4111 #define HAVE_SETRESGID_DECL 1
4117 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4118 echo "configure:4119: checking for asprintf declaration" >&5
4119 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.
$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4128 int i = (int)asprintf
4131 if { (eval echo configure
:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4133 ac_cv_have_asprintf_decl
=yes
4135 echo "configure: failed program was:" >&5
4136 cat conftest.
$ac_ext >&5
4138 ac_cv_have_asprintf_decl
=no
4143 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4144 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4145 cat >> confdefs.h
<<\EOF
4146 #define HAVE_ASPRINTF_DECL 1
4152 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4153 echo "configure:4154: checking for vasprintf declaration" >&5
4154 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.
$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4163 int i = (int)vasprintf
4166 if { (eval echo configure
:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 ac_cv_have_vasprintf_decl
=yes
4170 echo "configure: failed program was:" >&5
4171 cat conftest.
$ac_ext >&5
4173 ac_cv_have_vasprintf_decl
=no
4178 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4179 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4180 cat >> confdefs.h
<<\EOF
4181 #define HAVE_VASPRINTF_DECL 1
4187 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4188 echo "configure:4189: checking for vsnprintf declaration" >&5
4189 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4193 cat > conftest.
$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4198 int i = (int)vsnprintf
4201 if { (eval echo configure
:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4203 ac_cv_have_vsnprintf_decl
=yes
4205 echo "configure: failed program was:" >&5
4206 cat conftest.
$ac_ext >&5
4208 ac_cv_have_vsnprintf_decl
=no
4213 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4214 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4215 cat >> confdefs.h
<<\EOF
4216 #define HAVE_VSNPRINTF_DECL 1
4222 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4223 echo "configure:4224: checking for snprintf declaration" >&5
4224 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4233 int i = (int)snprintf
4236 if { (eval echo configure
:4237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4238 ac_cv_have_snprintf_decl
=yes
4240 echo "configure: failed program was:" >&5
4241 cat conftest.
$ac_ext >&5
4243 ac_cv_have_snprintf_decl
=no
4248 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4249 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4250 cat >> confdefs.h
<<\EOF
4251 #define HAVE_SNPRINTF_DECL 1
4257 # and glibc has setresuid under linux but the function does
4258 # nothing until kernel 2.1.44! very dumb.
4259 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4260 echo "configure:4261: checking for real setresuid" >&5
4261 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4265 if test "$cross_compiling" = yes; then
4266 samba_cv_have_setresuid
=cross
4268 cat > conftest.
$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4272 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4274 if { (eval echo configure
:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4276 samba_cv_have_setresuid
=yes
4278 echo "configure: failed program was:" >&5
4279 cat conftest.
$ac_ext >&5
4281 samba_cv_have_setresuid
=no
4288 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4289 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4290 cat >> confdefs.h
<<\EOF
4291 #define HAVE_SETRESUID 1
4296 # Do the same check for setresguid...
4298 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4299 echo "configure:4300: checking for real setresgid" >&5
4300 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4304 if test "$cross_compiling" = yes; then
4305 samba_cv_have_setresgid
=cross
4307 cat > conftest.
$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4312 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4314 if { (eval echo configure
:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4316 samba_cv_have_setresgid
=yes
4318 echo "configure: failed program was:" >&5
4319 cat conftest.
$ac_ext >&5
4321 samba_cv_have_setresgid
=no
4328 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4329 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4330 cat >> confdefs.h
<<\EOF
4331 #define HAVE_SETRESGID 1
4336 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4337 echo "configure:4338: checking for 8-bit clean memcmp" >&5
4338 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 if test "$cross_compiling" = yes; then
4342 ac_cv_func_memcmp_clean
=no
4344 cat > conftest.
$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4350 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4351 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4355 if { (eval echo configure
:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4357 ac_cv_func_memcmp_clean
=yes
4359 echo "configure: failed program was:" >&5
4360 cat conftest.
$ac_ext >&5
4362 ac_cv_func_memcmp_clean
=no
4369 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4370 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4373 ###############################################
4374 # Readline included by default unless explicitly asked not to
4375 test "${with_readline+set}" != "set" && with_readline
=yes
4377 # test for where we get readline() from
4378 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4379 echo "configure:4380: checking whether to use readline" >&5
4380 # Check whether --with-readline or --without-readline was given.
4381 if test "${with_readline+set}" = set; then
4382 withval
="$with_readline"
4383 case "$with_readline" in
4385 echo "$ac_t""yes" 1>&6
4387 for ac_hdr
in readline.h
history.h readline
/readline.h
4389 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4391 echo "configure:4392: checking for $ac_hdr" >&5
4392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 cat > conftest.
$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4400 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4401 { (eval echo configure
:4402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4402 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4403 if test -z "$ac_err"; then
4405 eval "ac_cv_header_$ac_safe=yes"
4408 echo "configure: failed program was:" >&5
4409 cat conftest.
$ac_ext >&5
4411 eval "ac_cv_header_$ac_safe=no"
4415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4416 echo "$ac_t""yes" 1>&6
4417 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4418 cat >> confdefs.h
<<EOF
4419 #define $ac_tr_hdr 1
4423 echo "$ac_t""no" 1>&6
4427 for ac_hdr
in readline
/history.h
4429 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_hdr" >&5
4432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 cat > conftest.
$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4440 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4441 { (eval echo configure
:4442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4442 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4443 if test -z "$ac_err"; then
4445 eval "ac_cv_header_$ac_safe=yes"
4448 echo "configure: failed program was:" >&5
4449 cat conftest.
$ac_ext >&5
4451 eval "ac_cv_header_$ac_safe=no"
4455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4458 cat >> confdefs.h
<<EOF
4459 #define $ac_tr_hdr 1
4463 echo "$ac_t""no" 1>&6
4468 for ac_hdr
in readline.h readline
/readline.h
4470 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_hdr" >&5
4473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.
$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4481 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4482 { (eval echo configure
:4483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4483 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4484 if test -z "$ac_err"; then
4486 eval "ac_cv_header_$ac_safe=yes"
4489 echo "configure: failed program was:" >&5
4490 cat conftest.
$ac_ext >&5
4492 eval "ac_cv_header_$ac_safe=no"
4496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4499 cat >> confdefs.h
<<EOF
4500 #define $ac_tr_hdr 1
4503 for termlib
in ncurses curses termcap terminfo termlib
; do
4504 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4505 echo "configure:4506: checking for tgetent in -l${termlib}" >&5
4506 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 ac_save_LIBS
="$LIBS"
4511 LIBS
="-l${termlib} $LIBS"
4512 cat > conftest.
$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 /* Override any gcc2 internal prototype to avoid an error. */
4516 /* We use char because int might match the return type of a gcc2
4517 builtin and then its argument prototype would still apply. */
4524 if { (eval echo configure
:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4526 eval "ac_cv_lib_$ac_lib_var=yes"
4528 echo "configure: failed program was:" >&5
4529 cat conftest.
$ac_ext >&5
4531 eval "ac_cv_lib_$ac_lib_var=no"
4534 LIBS
="$ac_save_LIBS"
4537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4538 echo "$ac_t""yes" 1>&6
4539 TERMLIBS
="-l${termlib}"; break
4541 echo "$ac_t""no" 1>&6
4545 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4546 echo "configure:4547: checking for rl_callback_handler_install in -lreadline" >&5
4547 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4551 ac_save_LIBS
="$LIBS"
4552 LIBS
="-lreadline $TERMLIBS $LIBS"
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 /* Override any gcc2 internal prototype to avoid an error. */
4557 /* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4559 char rl_callback_handler_install();
4562 rl_callback_handler_install()
4565 if { (eval echo configure
:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4567 eval "ac_cv_lib_$ac_lib_var=yes"
4569 echo "configure: failed program was:" >&5
4570 cat conftest.
$ac_ext >&5
4572 eval "ac_cv_lib_$ac_lib_var=no"
4575 LIBS
="$ac_save_LIBS"
4578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4579 echo "$ac_t""yes" 1>&6
4580 TERMLIBS
="-lreadline $TERMLIBS"
4581 cat >> confdefs.h
<<\EOF
4582 #define HAVE_LIBREADLINE 1
4587 echo "$ac_t""no" 1>&6
4592 echo "$ac_t""no" 1>&6
4598 echo "$ac_t""no" 1>&6
4601 echo "$ac_t""yes" 1>&6
4603 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4604 # alternate readline path
4606 _cppflags
=${CPPFLAGS}
4608 # Add additional search path
4609 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4610 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4612 for ac_hdr
in readline.h
history.h readline
/readline.h
4614 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_hdr" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 cat > conftest.
$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4625 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure
:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4630 eval "ac_cv_header_$ac_safe=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.
$ac_ext >&5
4636 eval "ac_cv_header_$ac_safe=no"
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4643 cat >> confdefs.h
<<EOF
4644 #define $ac_tr_hdr 1
4648 echo "$ac_t""no" 1>&6
4652 for ac_hdr
in readline
/history.h
4654 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4665 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure
:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4670 eval "ac_cv_header_$ac_safe=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4676 eval "ac_cv_header_$ac_safe=no"
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h
<<EOF
4684 #define $ac_tr_hdr 1
4688 echo "$ac_t""no" 1>&6
4693 for ac_hdr
in readline.h readline
/readline.h
4695 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_hdr" >&5
4698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 cat > conftest.
$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4707 { (eval echo configure
:4708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4708 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4709 if test -z "$ac_err"; then
4711 eval "ac_cv_header_$ac_safe=yes"
4714 echo "configure: failed program was:" >&5
4715 cat conftest.
$ac_ext >&5
4717 eval "ac_cv_header_$ac_safe=no"
4721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4724 cat >> confdefs.h
<<EOF
4725 #define $ac_tr_hdr 1
4728 for termlib
in ncurses curses termcap terminfo termlib
; do
4729 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4730 echo "configure:4731: checking for tgetent in -l${termlib}" >&5
4731 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 ac_save_LIBS
="$LIBS"
4736 LIBS
="-l${termlib} $LIBS"
4737 cat > conftest.
$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 /* Override any gcc2 internal prototype to avoid an error. */
4741 /* We use char because int might match the return type of a gcc2
4742 builtin and then its argument prototype would still apply. */
4749 if { (eval echo configure
:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4751 eval "ac_cv_lib_$ac_lib_var=yes"
4753 echo "configure: failed program was:" >&5
4754 cat conftest.
$ac_ext >&5
4756 eval "ac_cv_lib_$ac_lib_var=no"
4759 LIBS
="$ac_save_LIBS"
4762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 TERMLIBS
="-l${termlib}"; break
4766 echo "$ac_t""no" 1>&6
4770 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4771 echo "configure:4772: checking for rl_callback_handler_install in -lreadline" >&5
4772 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 ac_save_LIBS
="$LIBS"
4777 LIBS
="-lreadline $TERMLIBS $LIBS"
4778 cat > conftest.
$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 /* Override any gcc2 internal prototype to avoid an error. */
4782 /* We use char because int might match the return type of a gcc2
4783 builtin and then its argument prototype would still apply. */
4784 char rl_callback_handler_install();
4787 rl_callback_handler_install()
4790 if { (eval echo configure
:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4792 eval "ac_cv_lib_$ac_lib_var=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.
$ac_ext >&5
4797 eval "ac_cv_lib_$ac_lib_var=no"
4800 LIBS
="$ac_save_LIBS"
4803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4805 TERMLDFLAGS
="-L$with_readline/lib"
4806 TERMCPPFLAGS
="-I$with_readline/include"
4807 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4808 TERMLIBS
="-lreadline $TERMLIBS"
4809 cat >> confdefs.h
<<\EOF
4810 #define HAVE_LIBREADLINE 1
4815 echo "$ac_t""no" 1>&6
4816 TERMLIBS
= CPPFLAGS
=$_cppflags
4820 echo "$ac_t""no" 1>&6
4829 echo "$ac_t""no" 1>&6
4836 # The following test taken from the cvs sources
4837 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4838 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4839 # libsocket.so which has a bad implementation of gethostbyname (it
4840 # only looks in /etc/hosts), so we only look for -lsocket if we need
4842 for ac_func
in connect
4844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_func" >&5
4846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 cat > conftest.
$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 /* System header to define __stub macros and hopefully few prototypes,
4853 which can conflict with char $ac_func(); below. */
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4862 /* The GNU C library defines this for functions which it implements
4863 to always fail with ENOSYS. Some functions are actually named
4864 something starting with __ and the normal name is an alias. */
4865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4873 if { (eval echo configure
:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4875 eval "ac_cv_func_$ac_func=yes"
4877 echo "configure: failed program was:" >&5
4878 cat conftest.
$ac_ext >&5
4880 eval "ac_cv_func_$ac_func=no"
4885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4886 echo "$ac_t""yes" 1>&6
4887 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4888 cat >> confdefs.h
<<EOF
4889 #define $ac_tr_func 1
4893 echo "$ac_t""no" 1>&6
4897 if test x
"$ac_cv_func_connect" = x
"no"; then
4900 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4901 echo "configure:4902: checking for printf in -lnsl_s" >&5
4902 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4906 ac_save_LIBS
="$LIBS"
4907 LIBS
="-lnsl_s $LIBS"
4908 cat > conftest.
$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4920 if { (eval echo configure
:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4922 eval "ac_cv_lib_$ac_lib_var=yes"
4924 echo "configure: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4927 eval "ac_cv_lib_$ac_lib_var=no"
4930 LIBS
="$ac_save_LIBS"
4933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4935 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4936 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4937 cat >> confdefs.h
<<EOF
4938 #define $ac_tr_lib 1
4941 LIBS
="-lnsl_s $LIBS"
4944 echo "$ac_t""no" 1>&6
4950 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4951 echo "configure:4952: checking for printf in -lnsl" >&5
4952 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 ac_save_LIBS
="$LIBS"
4958 cat > conftest.
$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4961 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4970 if { (eval echo configure
:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4972 eval "ac_cv_lib_$ac_lib_var=yes"
4974 echo "configure: failed program was:" >&5
4975 cat conftest.
$ac_ext >&5
4977 eval "ac_cv_lib_$ac_lib_var=no"
4980 LIBS
="$ac_save_LIBS"
4983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4984 echo "$ac_t""yes" 1>&6
4985 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4986 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4987 cat >> confdefs.h
<<EOF
4988 #define $ac_tr_lib 1
4994 echo "$ac_t""no" 1>&6
5000 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5001 echo "configure:5002: checking for connect in -lsocket" >&5
5002 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 ac_save_LIBS
="$LIBS"
5007 LIBS
="-lsocket $LIBS"
5008 cat > conftest.
$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 /* Override any gcc2 internal prototype to avoid an error. */
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5020 if { (eval echo configure
:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5022 eval "ac_cv_lib_$ac_lib_var=yes"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.
$ac_ext >&5
5027 eval "ac_cv_lib_$ac_lib_var=no"
5030 LIBS
="$ac_save_LIBS"
5033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5037 cat >> confdefs.h
<<EOF
5038 #define $ac_tr_lib 1
5041 LIBS
="-lsocket $LIBS"
5044 echo "$ac_t""no" 1>&6
5050 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5051 echo "configure:5052: checking for connect in -linet" >&5
5052 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 ac_save_LIBS
="$LIBS"
5058 cat > conftest.
$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5070 if { (eval echo configure
:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5072 eval "ac_cv_lib_$ac_lib_var=yes"
5074 echo "configure: failed program was:" >&5
5075 cat conftest.
$ac_ext >&5
5077 eval "ac_cv_lib_$ac_lib_var=no"
5080 LIBS
="$ac_save_LIBS"
5083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5084 echo "$ac_t""yes" 1>&6
5085 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5087 cat >> confdefs.h
<<EOF
5088 #define $ac_tr_lib 1
5094 echo "$ac_t""no" 1>&6
5098 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5099 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5100 # ac_cv_func_connect=yes
5101 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5102 cat >> confdefs.h
<<\EOF
5103 #define HAVE_CONNECT 1
5109 ###############################################
5110 # test for where we get get_yp_default_domain() from
5111 for ac_func
in yp_get_default_domain
5113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $ac_func" >&5
5115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 cat > conftest.
$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 /* System header to define __stub macros and hopefully few prototypes,
5122 which can conflict with char $ac_func(); below. */
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5131 /* The GNU C library defines this for functions which it implements
5132 to always fail with ENOSYS. Some functions are actually named
5133 something starting with __ and the normal name is an alias. */
5134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5142 if { (eval echo configure
:5143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5144 eval "ac_cv_func_$ac_func=yes"
5146 echo "configure: failed program was:" >&5
5147 cat conftest.
$ac_ext >&5
5149 eval "ac_cv_func_$ac_func=no"
5154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5157 cat >> confdefs.h
<<EOF
5158 #define $ac_tr_func 1
5162 echo "$ac_t""no" 1>&6
5166 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5167 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5168 echo "configure:5169: checking for yp_get_default_domain in -lnsl" >&5
5169 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 ac_save_LIBS
="$LIBS"
5175 cat > conftest.
$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5181 char yp_get_default_domain();
5184 yp_get_default_domain()
5187 if { (eval echo configure
:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.
$ac_ext >&5
5194 eval "ac_cv_lib_$ac_lib_var=no"
5197 LIBS
="$ac_save_LIBS"
5200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5201 echo "$ac_t""yes" 1>&6
5203 cat >> confdefs.h
<<\EOF
5204 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5208 echo "$ac_t""no" 1>&6
5213 # Check if we have execl, if not we need to compile smbrun.
5214 for ac_func
in execl
5216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5217 echo "configure:5218: checking for $ac_func" >&5
5218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 cat > conftest.
$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5224 /* System header to define __stub macros and hopefully few prototypes,
5225 which can conflict with char $ac_func(); below. */
5227 /* Override any gcc2 internal prototype to avoid an error. */
5228 /* We use char because int might match the return type of a gcc2
5229 builtin and then its argument prototype would still apply. */
5234 /* The GNU C library defines this for functions which it implements
5235 to always fail with ENOSYS. Some functions are actually named
5236 something starting with __ and the normal name is an alias. */
5237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5245 if { (eval echo configure
:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5247 eval "ac_cv_func_$ac_func=yes"
5249 echo "configure: failed program was:" >&5
5250 cat conftest.
$ac_ext >&5
5252 eval "ac_cv_func_$ac_func=no"
5257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5258 echo "$ac_t""yes" 1>&6
5259 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5260 cat >> confdefs.h
<<EOF
5261 #define $ac_tr_func 1
5265 echo "$ac_t""no" 1>&6
5269 if test x
"$ac_cv_func_execl" = x
"no"; then
5270 RUNPROG
="bin/smbrun"
5275 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5278 echo "configure:5279: checking for $ac_func" >&5
5279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.
$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 /* System header to define __stub macros and hopefully few prototypes,
5286 which can conflict with char $ac_func(); below. */
5288 /* Override any gcc2 internal prototype to avoid an error. */
5289 /* We use char because int might match the return type of a gcc2
5290 builtin and then its argument prototype would still apply. */
5295 /* The GNU C library defines this for functions which it implements
5296 to always fail with ENOSYS. Some functions are actually named
5297 something starting with __ and the normal name is an alias. */
5298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5306 if { (eval echo configure
:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5308 eval "ac_cv_func_$ac_func=yes"
5310 echo "configure: failed program was:" >&5
5311 cat conftest.
$ac_ext >&5
5313 eval "ac_cv_func_$ac_func=no"
5318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5319 echo "$ac_t""yes" 1>&6
5320 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5321 cat >> confdefs.h
<<EOF
5322 #define $ac_tr_func 1
5326 echo "$ac_t""no" 1>&6
5330 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5333 echo "configure:5334: checking for $ac_func" >&5
5334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 cat > conftest.
$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func(); below. */
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5350 /* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5361 if { (eval echo configure
:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5363 eval "ac_cv_func_$ac_func=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.
$ac_ext >&5
5368 eval "ac_cv_func_$ac_func=no"
5373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5376 cat >> confdefs.h
<<EOF
5377 #define $ac_tr_func 1
5381 echo "$ac_t""no" 1>&6
5385 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5388 echo "configure:5389: checking for $ac_func" >&5
5389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.
$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 /* System header to define __stub macros and hopefully few prototypes,
5396 which can conflict with char $ac_func(); below. */
5398 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5405 /* The GNU C library defines this for functions which it implements
5406 to always fail with ENOSYS. Some functions are actually named
5407 something starting with __ and the normal name is an alias. */
5408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5416 if { (eval echo configure
:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5418 eval "ac_cv_func_$ac_func=yes"
5420 echo "configure: failed program was:" >&5
5421 cat conftest.
$ac_ext >&5
5423 eval "ac_cv_func_$ac_func=no"
5428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5429 echo "$ac_t""yes" 1>&6
5430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5431 cat >> confdefs.h
<<EOF
5432 #define $ac_tr_func 1
5436 echo "$ac_t""no" 1>&6
5440 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5443 echo "configure:5444: checking for $ac_func" >&5
5444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 cat > conftest.
$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 /* System header to define __stub macros and hopefully few prototypes,
5451 which can conflict with char $ac_func(); below. */
5453 /* Override any gcc2 internal prototype to avoid an error. */
5454 /* We use char because int might match the return type of a gcc2
5455 builtin and then its argument prototype would still apply. */
5460 /* The GNU C library defines this for functions which it implements
5461 to always fail with ENOSYS. Some functions are actually named
5462 something starting with __ and the normal name is an alias. */
5463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471 if { (eval echo configure
:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5473 eval "ac_cv_func_$ac_func=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.
$ac_ext >&5
5478 eval "ac_cv_func_$ac_func=no"
5483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5484 echo "$ac_t""yes" 1>&6
5485 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5486 cat >> confdefs.h
<<EOF
5487 #define $ac_tr_func 1
5491 echo "$ac_t""no" 1>&6
5495 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5502 cat > conftest.
$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506 which can conflict with char $ac_func(); below. */
5508 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5515 /* The GNU C library defines this for functions which it implements
5516 to always fail with ENOSYS. Some functions are actually named
5517 something starting with __ and the normal name is an alias. */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5526 if { (eval echo configure
:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5528 eval "ac_cv_func_$ac_func=yes"
5530 echo "configure: failed program was:" >&5
5531 cat conftest.
$ac_ext >&5
5533 eval "ac_cv_func_$ac_func=no"
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539 echo "$ac_t""yes" 1>&6
5540 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541 cat >> confdefs.h
<<EOF
5542 #define $ac_tr_func 1
5546 echo "$ac_t""no" 1>&6
5550 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5553 echo "configure:5554: checking for $ac_func" >&5
5554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char $ac_func(); below. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5570 /* The GNU C library defines this for functions which it implements
5571 to always fail with ENOSYS. Some functions are actually named
5572 something starting with __ and the normal name is an alias. */
5573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5581 if { (eval echo configure
:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5583 eval "ac_cv_func_$ac_func=yes"
5585 echo "configure: failed program was:" >&5
5586 cat conftest.
$ac_ext >&5
5588 eval "ac_cv_func_$ac_func=no"
5593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5594 echo "$ac_t""yes" 1>&6
5595 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5596 cat >> confdefs.h
<<EOF
5597 #define $ac_tr_func 1
5601 echo "$ac_t""no" 1>&6
5605 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5608 echo "configure:5609: checking for $ac_func" >&5
5609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.
$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 /* System header to define __stub macros and hopefully few prototypes,
5616 which can conflict with char $ac_func(); below. */
5618 /* Override any gcc2 internal prototype to avoid an error. */
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5625 /* The GNU C library defines this for functions which it implements
5626 to always fail with ENOSYS. Some functions are actually named
5627 something starting with __ and the normal name is an alias. */
5628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5636 if { (eval echo configure
:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5638 eval "ac_cv_func_$ac_func=yes"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.
$ac_ext >&5
5643 eval "ac_cv_func_$ac_func=no"
5648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5650 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5651 cat >> confdefs.h
<<EOF
5652 #define $ac_tr_func 1
5656 echo "$ac_t""no" 1>&6
5660 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5663 echo "configure:5664: checking for $ac_func" >&5
5664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5667 cat > conftest.
$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* System header to define __stub macros and hopefully few prototypes,
5671 which can conflict with char $ac_func(); below. */
5673 /* Override any gcc2 internal prototype to avoid an error. */
5674 /* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5680 /* The GNU C library defines this for functions which it implements
5681 to always fail with ENOSYS. Some functions are actually named
5682 something starting with __ and the normal name is an alias. */
5683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5691 if { (eval echo configure
:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5693 eval "ac_cv_func_$ac_func=yes"
5695 echo "configure: failed program was:" >&5
5696 cat conftest.
$ac_ext >&5
5698 eval "ac_cv_func_$ac_func=no"
5703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5705 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5706 cat >> confdefs.h
<<EOF
5707 #define $ac_tr_func 1
5711 echo "$ac_t""no" 1>&6
5715 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5718 echo "configure:5719: checking for $ac_func" >&5
5719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.
$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 /* System header to define __stub macros and hopefully few prototypes,
5726 which can conflict with char $ac_func(); below. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5729 /* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5735 /* The GNU C library defines this for functions which it implements
5736 to always fail with ENOSYS. Some functions are actually named
5737 something starting with __ and the normal name is an alias. */
5738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5746 if { (eval echo configure
:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5748 eval "ac_cv_func_$ac_func=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.
$ac_ext >&5
5753 eval "ac_cv_func_$ac_func=no"
5758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5760 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5761 cat >> confdefs.h
<<EOF
5762 #define $ac_tr_func 1
5766 echo "$ac_t""no" 1>&6
5770 for ac_func
in syslog vsyslog
5772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5773 echo "configure:5774: checking for $ac_func" >&5
5774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.
$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 /* System header to define __stub macros and hopefully few prototypes,
5781 which can conflict with char $ac_func(); below. */
5783 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5790 /* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5801 if { (eval echo configure
:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5803 eval "ac_cv_func_$ac_func=yes"
5805 echo "configure: failed program was:" >&5
5806 cat conftest.
$ac_ext >&5
5808 eval "ac_cv_func_$ac_func=no"
5813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5814 echo "$ac_t""yes" 1>&6
5815 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5816 cat >> confdefs.h
<<EOF
5817 #define $ac_tr_func 1
5821 echo "$ac_t""no" 1>&6
5826 # syscall() is needed for smbwrapper.
5827 for ac_func
in syscall
5829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_func" >&5
5831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.
$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* System header to define __stub macros and hopefully few prototypes,
5838 which can conflict with char $ac_func(); below. */
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5858 if { (eval echo configure
:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5860 eval "ac_cv_func_$ac_func=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.
$ac_ext >&5
5865 eval "ac_cv_func_$ac_func=no"
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h
<<EOF
5874 #define $ac_tr_func 1
5878 echo "$ac_t""no" 1>&6
5883 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.
$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5914 if { (eval echo configure
:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5916 eval "ac_cv_func_$ac_func=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.
$ac_ext >&5
5921 eval "ac_cv_func_$ac_func=no"
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h
<<EOF
5930 #define $ac_tr_func 1
5934 echo "$ac_t""no" 1>&6
5938 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_func" >&5
5942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.
$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* System header to define __stub macros and hopefully few prototypes,
5949 which can conflict with char $ac_func(); below. */
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5969 if { (eval echo configure
:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5971 eval "ac_cv_func_$ac_func=yes"
5973 echo "configure: failed program was:" >&5
5974 cat conftest.
$ac_ext >&5
5976 eval "ac_cv_func_$ac_func=no"
5981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5984 cat >> confdefs.h
<<EOF
5985 #define $ac_tr_func 1
5989 echo "$ac_t""no" 1>&6
5993 for ac_func
in __getcwd _getcwd
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5
5997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.
$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6013 /* The GNU C library defines this for functions which it implements
6014 to always fail with ENOSYS. Some functions are actually named
6015 something starting with __ and the normal name is an alias. */
6016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6024 if { (eval echo configure
:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6026 eval "ac_cv_func_$ac_func=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.
$ac_ext >&5
6031 eval "ac_cv_func_$ac_func=no"
6036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6039 cat >> confdefs.h
<<EOF
6040 #define $ac_tr_func 1
6044 echo "$ac_t""no" 1>&6
6048 for ac_func
in __xstat __fxstat __lxstat
6050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_func" >&5
6052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6055 cat > conftest.
$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 /* System header to define __stub macros and hopefully few prototypes,
6059 which can conflict with char $ac_func(); below. */
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6068 /* The GNU C library defines this for functions which it implements
6069 to always fail with ENOSYS. Some functions are actually named
6070 something starting with __ and the normal name is an alias. */
6071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6079 if { (eval echo configure
:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6081 eval "ac_cv_func_$ac_func=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.
$ac_ext >&5
6086 eval "ac_cv_func_$ac_func=no"
6091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6094 cat >> confdefs.h
<<EOF
6095 #define $ac_tr_func 1
6099 echo "$ac_t""no" 1>&6
6103 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6106 echo "configure:6107: checking for $ac_func" >&5
6107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6110 cat > conftest.
$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* System header to define __stub macros and hopefully few prototypes,
6114 which can conflict with char $ac_func(); below. */
6116 /* Override any gcc2 internal prototype to avoid an error. */
6117 /* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6123 /* The GNU C library defines this for functions which it implements
6124 to always fail with ENOSYS. Some functions are actually named
6125 something starting with __ and the normal name is an alias. */
6126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6134 if { (eval echo configure
:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6136 eval "ac_cv_func_$ac_func=yes"
6138 echo "configure: failed program was:" >&5
6139 cat conftest.
$ac_ext >&5
6141 eval "ac_cv_func_$ac_func=no"
6146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6147 echo "$ac_t""yes" 1>&6
6148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6149 cat >> confdefs.h
<<EOF
6150 #define $ac_tr_func 1
6154 echo "$ac_t""no" 1>&6
6158 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_func" >&5
6162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6165 cat > conftest.
$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* System header to define __stub macros and hopefully few prototypes,
6169 which can conflict with char $ac_func(); below. */
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6178 /* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 if { (eval echo configure
:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6191 eval "ac_cv_func_$ac_func=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.
$ac_ext >&5
6196 eval "ac_cv_func_$ac_func=no"
6201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6203 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6204 cat >> confdefs.h
<<EOF
6205 #define $ac_tr_func 1
6209 echo "$ac_t""no" 1>&6
6213 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_func" >&5
6217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 cat > conftest.
$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 if { (eval echo configure
:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6246 eval "ac_cv_func_$ac_func=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.
$ac_ext >&5
6251 eval "ac_cv_func_$ac_func=no"
6256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6259 cat >> confdefs.h
<<EOF
6260 #define $ac_tr_func 1
6264 echo "$ac_t""no" 1>&6
6268 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_func" >&5
6272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.
$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* System header to define __stub macros and hopefully few prototypes,
6279 which can conflict with char $ac_func(); below. */
6281 /* Override any gcc2 internal prototype to avoid an error. */
6282 /* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6288 /* The GNU C library defines this for functions which it implements
6289 to always fail with ENOSYS. Some functions are actually named
6290 something starting with __ and the normal name is an alias. */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6299 if { (eval echo configure
:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6301 eval "ac_cv_func_$ac_func=yes"
6303 echo "configure: failed program was:" >&5
6304 cat conftest.
$ac_ext >&5
6306 eval "ac_cv_func_$ac_func=no"
6311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6314 cat >> confdefs.h
<<EOF
6315 #define $ac_tr_func 1
6319 echo "$ac_t""no" 1>&6
6323 for ac_func
in _write __write _fork __fork
6325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_func" >&5
6327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 cat > conftest.
$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6333 /* System header to define __stub macros and hopefully few prototypes,
6334 which can conflict with char $ac_func(); below. */
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 /* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6343 /* The GNU C library defines this for functions which it implements
6344 to always fail with ENOSYS. Some functions are actually named
6345 something starting with __ and the normal name is an alias. */
6346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 if { (eval echo configure
:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6356 eval "ac_cv_func_$ac_func=yes"
6358 echo "configure: failed program was:" >&5
6359 cat conftest.
$ac_ext >&5
6361 eval "ac_cv_func_$ac_func=no"
6366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6368 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6369 cat >> confdefs.h
<<EOF
6370 #define $ac_tr_func 1
6374 echo "$ac_t""no" 1>&6
6378 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6381 echo "configure:6382: checking for $ac_func" >&5
6382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6385 cat > conftest.
$ac_ext <<EOF
6386 #line 6387 "configure"
6387 #include "confdefs.h"
6388 /* System header to define __stub macros and hopefully few prototypes,
6389 which can conflict with char $ac_func(); below. */
6391 /* Override any gcc2 internal prototype to avoid an error. */
6392 /* We use char because int might match the return type of a gcc2
6393 builtin and then its argument prototype would still apply. */
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6409 if { (eval echo configure
:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6411 eval "ac_cv_func_$ac_func=yes"
6413 echo "configure: failed program was:" >&5
6414 cat conftest.
$ac_ext >&5
6416 eval "ac_cv_func_$ac_func=no"
6421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6422 echo "$ac_t""yes" 1>&6
6423 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6424 cat >> confdefs.h
<<EOF
6425 #define $ac_tr_func 1
6429 echo "$ac_t""no" 1>&6
6433 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6436 echo "configure:6437: checking for $ac_func" >&5
6437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6438 echo $ac_n "(cached) $ac_c" 1>&6
6440 cat > conftest.
$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 /* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func(); below. */
6446 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6453 /* The GNU C library defines this for functions which it implements
6454 to always fail with ENOSYS. Some functions are actually named
6455 something starting with __ and the normal name is an alias. */
6456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6464 if { (eval echo configure
:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6466 eval "ac_cv_func_$ac_func=yes"
6468 echo "configure: failed program was:" >&5
6469 cat conftest.
$ac_ext >&5
6471 eval "ac_cv_func_$ac_func=no"
6476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6478 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6479 cat >> confdefs.h
<<EOF
6480 #define $ac_tr_func 1
6484 echo "$ac_t""no" 1>&6
6488 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6491 echo "configure:6492: checking for $ac_func" >&5
6492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6495 cat > conftest.
$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* System header to define __stub macros and hopefully few prototypes,
6499 which can conflict with char $ac_func(); below. */
6501 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6519 if { (eval echo configure
:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6521 eval "ac_cv_func_$ac_func=yes"
6523 echo "configure: failed program was:" >&5
6524 cat conftest.
$ac_ext >&5
6526 eval "ac_cv_func_$ac_func=no"
6531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6
6533 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6534 cat >> confdefs.h
<<EOF
6535 #define $ac_tr_func 1
6539 echo "$ac_t""no" 1>&6
6543 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6546 echo "configure:6547: checking for $ac_func" >&5
6547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6548 echo $ac_n "(cached) $ac_c" 1>&6
6550 cat > conftest.
$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553 /* System header to define __stub macros and hopefully few prototypes,
6554 which can conflict with char $ac_func(); below. */
6556 /* Override any gcc2 internal prototype to avoid an error. */
6557 /* We use char because int might match the return type of a gcc2
6558 builtin and then its argument prototype would still apply. */
6563 /* The GNU C library defines this for functions which it implements
6564 to always fail with ENOSYS. Some functions are actually named
6565 something starting with __ and the normal name is an alias. */
6566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6574 if { (eval echo configure
:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6576 eval "ac_cv_func_$ac_func=yes"
6578 echo "configure: failed program was:" >&5
6579 cat conftest.
$ac_ext >&5
6581 eval "ac_cv_func_$ac_func=no"
6586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6587 echo "$ac_t""yes" 1>&6
6588 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6589 cat >> confdefs.h
<<EOF
6590 #define $ac_tr_func 1
6594 echo "$ac_t""no" 1>&6
6598 for ac_func
in open64 _open64 __open64 creat64
6600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6601 echo "configure:6602: checking for $ac_func" >&5
6602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6605 cat > conftest.
$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 /* System header to define __stub macros and hopefully few prototypes,
6609 which can conflict with char $ac_func(); below. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6612 /* We use char because int might match the return type of a gcc2
6613 builtin and then its argument prototype would still apply. */
6618 /* The GNU C library defines this for functions which it implements
6619 to always fail with ENOSYS. Some functions are actually named
6620 something starting with __ and the normal name is an alias. */
6621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6629 if { (eval echo configure
:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6631 eval "ac_cv_func_$ac_func=yes"
6633 echo "configure: failed program was:" >&5
6634 cat conftest.
$ac_ext >&5
6636 eval "ac_cv_func_$ac_func=no"
6641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6642 echo "$ac_t""yes" 1>&6
6643 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6644 cat >> confdefs.h
<<EOF
6645 #define $ac_tr_func 1
6649 echo "$ac_t""no" 1>&6
6655 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6658 if test x
$ac_cv_func_stat64 = xno
; then
6659 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6660 echo "configure:6661: checking for stat64 in <sys/stat.h>" >&5
6661 cat > conftest.
$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6665 #if defined(HAVE_UNISTD_H)
6668 #include <sys/stat.h>
6671 struct stat64 st64; exit(stat64(".",&st64));
6674 if { (eval echo configure
:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6676 ac_cv_func_stat64
=yes
6678 echo "configure: failed program was:" >&5
6679 cat conftest.
$ac_ext >&5
6682 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6683 if test x
$ac_cv_func_stat64 = xyes
; then
6684 cat >> confdefs.h
<<\EOF
6685 #define HAVE_STAT64 1
6691 if test x
$ac_cv_func_lstat64 = xno
; then
6692 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6693 echo "configure:6694: checking for lstat64 in <sys/stat.h>" >&5
6694 cat > conftest.
$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6698 #if defined(HAVE_UNISTD_H)
6701 #include <sys/stat.h>
6704 struct stat64 st64; exit(lstat64(".",&st64));
6707 if { (eval echo configure
:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6709 ac_cv_func_lstat64
=yes
6711 echo "configure: failed program was:" >&5
6712 cat conftest.
$ac_ext >&5
6715 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6716 if test x
$ac_cv_func_lstat64 = xyes
; then
6717 cat >> confdefs.h
<<\EOF
6718 #define HAVE_LSTAT64 1
6724 if test x
$ac_cv_func_fstat64 = xno
; then
6725 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6726 echo "configure:6727: checking for fstat64 in <sys/stat.h>" >&5
6727 cat > conftest.
$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6731 #if defined(HAVE_UNISTD_H)
6734 #include <sys/stat.h>
6737 struct stat64 st64; exit(fstat64(0,&st64));
6740 if { (eval echo configure
:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6742 ac_cv_func_fstat64
=yes
6744 echo "configure: failed program was:" >&5
6745 cat conftest.
$ac_ext >&5
6748 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6749 if test x
$ac_cv_func_fstat64 = xyes
; then
6750 cat >> confdefs.h
<<\EOF
6751 #define HAVE_FSTAT64 1
6758 # If no strcasecmp, check for it in some known places
6759 # It is in -lresolv on ReliantUNIX and UnixWare
6760 # -lresolve *must* follow -lnsl for name resolution to work properly
6763 if test x
$ac_cv_func_strcasecmp = xno
; then
6764 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6765 echo "configure:6766: checking for strcasecmp in -lresolv" >&5
6766 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 ac_save_LIBS
="$LIBS"
6771 LIBS
="-lresolv $LIBS"
6772 cat > conftest.
$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6784 if { (eval echo configure
:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6786 eval "ac_cv_lib_$ac_lib_var=yes"
6788 echo "configure: failed program was:" >&5
6789 cat conftest.
$ac_ext >&5
6791 eval "ac_cv_lib_$ac_lib_var=no"
6794 LIBS
="$ac_save_LIBS"
6797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 LIBS
="$LIBS -lresolv"
6800 cat >> confdefs.h
<<\EOF
6801 #define HAVE_STRCASECMP 1
6805 echo "$ac_t""no" 1>&6
6811 # Check for the functions putprpwnam, set_auth_parameters,
6812 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6813 # Needed for OSF1 and HPUX.
6817 *-lsecurity*) for ac_func
in putprpwnam
6819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6820 echo "configure:6821: checking for $ac_func" >&5
6821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6824 cat > conftest.
$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* System header to define __stub macros and hopefully few prototypes,
6828 which can conflict with char $ac_func(); below. */
6830 /* Override any gcc2 internal prototype to avoid an error. */
6831 /* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */
6837 /* The GNU C library defines this for functions which it implements
6838 to always fail with ENOSYS. Some functions are actually named
6839 something starting with __ and the normal name is an alias. */
6840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6848 if { (eval echo configure
:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6850 eval "ac_cv_func_$ac_func=yes"
6852 echo "configure: failed program was:" >&5
6853 cat conftest.
$ac_ext >&5
6855 eval "ac_cv_func_$ac_func=no"
6860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6863 cat >> confdefs.h
<<EOF
6864 #define $ac_tr_func 1
6868 echo "$ac_t""no" 1>&6
6872 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6873 echo "configure:6874: checking for putprpwnam in -lsecurity" >&5
6874 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 ac_save_LIBS
="$LIBS"
6879 LIBS
="-lsecurity $LIBS"
6880 cat > conftest.
$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6892 if { (eval echo configure
:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6894 eval "ac_cv_lib_$ac_lib_var=yes"
6896 echo "configure: failed program was:" >&5
6897 cat conftest.
$ac_ext >&5
6899 eval "ac_cv_lib_$ac_lib_var=no"
6902 LIBS
="$ac_save_LIBS"
6905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6906 echo "$ac_t""yes" 1>&6
6907 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6909 cat >> confdefs.h
<<EOF
6910 #define $ac_tr_lib 1
6913 LIBS
="-lsecurity $LIBS"
6916 echo "$ac_t""no" 1>&6
6919 for ac_func
in putprpwnam
6921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6922 echo "configure:6923: checking for $ac_func" >&5
6923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6926 cat > conftest.
$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char $ac_func(); below. */
6932 /* Override any gcc2 internal prototype to avoid an error. */
6933 /* We use char because int might match the return type of a gcc2
6934 builtin and then its argument prototype would still apply. */
6939 /* The GNU C library defines this for functions which it implements
6940 to always fail with ENOSYS. Some functions are actually named
6941 something starting with __ and the normal name is an alias. */
6942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950 if { (eval echo configure
:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6952 eval "ac_cv_func_$ac_func=yes"
6954 echo "configure: failed program was:" >&5
6955 cat conftest.
$ac_ext >&5
6957 eval "ac_cv_func_$ac_func=no"
6962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6963 echo "$ac_t""yes" 1>&6
6964 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6965 cat >> confdefs.h
<<EOF
6966 #define $ac_tr_func 1
6970 echo "$ac_t""no" 1>&6
6978 *-lsec*) for ac_func
in putprpwnam
6980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6981 echo "configure:6982: checking for $ac_func" >&5
6982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6985 cat > conftest.
$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6988 /* System header to define __stub macros and hopefully few prototypes,
6989 which can conflict with char $ac_func(); below. */
6991 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6998 /* The GNU C library defines this for functions which it implements
6999 to always fail with ENOSYS. Some functions are actually named
7000 something starting with __ and the normal name is an alias. */
7001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7009 if { (eval echo configure
:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7011 eval "ac_cv_func_$ac_func=yes"
7013 echo "configure: failed program was:" >&5
7014 cat conftest.
$ac_ext >&5
7016 eval "ac_cv_func_$ac_func=no"
7021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7022 echo "$ac_t""yes" 1>&6
7023 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7024 cat >> confdefs.h
<<EOF
7025 #define $ac_tr_func 1
7029 echo "$ac_t""no" 1>&6
7033 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7034 echo "configure:7035: checking for putprpwnam in -lsec" >&5
7035 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 ac_save_LIBS
="$LIBS"
7041 cat > conftest.
$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 /* Override any gcc2 internal prototype to avoid an error. */
7045 /* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */
7053 if { (eval echo configure
:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7055 eval "ac_cv_lib_$ac_lib_var=yes"
7057 echo "configure: failed program was:" >&5
7058 cat conftest.
$ac_ext >&5
7060 eval "ac_cv_lib_$ac_lib_var=no"
7063 LIBS
="$ac_save_LIBS"
7066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7067 echo "$ac_t""yes" 1>&6
7068 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7069 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7070 cat >> confdefs.h
<<EOF
7071 #define $ac_tr_lib 1
7077 echo "$ac_t""no" 1>&6
7080 for ac_func
in putprpwnam
7082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7083 echo "configure:7084: checking for $ac_func" >&5
7084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 cat > conftest.
$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 /* System header to define __stub macros and hopefully few prototypes,
7091 which can conflict with char $ac_func(); below. */
7093 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7100 /* The GNU C library defines this for functions which it implements
7101 to always fail with ENOSYS. Some functions are actually named
7102 something starting with __ and the normal name is an alias. */
7103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7111 if { (eval echo configure
:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7113 eval "ac_cv_func_$ac_func=yes"
7115 echo "configure: failed program was:" >&5
7116 cat conftest.
$ac_ext >&5
7118 eval "ac_cv_func_$ac_func=no"
7123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7124 echo "$ac_t""yes" 1>&6
7125 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7126 cat >> confdefs.h
<<EOF
7127 #define $ac_tr_func 1
7131 echo "$ac_t""no" 1>&6
7140 *-lsecurity*) for ac_func
in set_auth_parameters
7142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7143 echo "configure:7144: checking for $ac_func" >&5
7144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 cat > conftest.
$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 /* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func(); below. */
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7171 if { (eval echo configure
:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7173 eval "ac_cv_func_$ac_func=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.
$ac_ext >&5
7178 eval "ac_cv_func_$ac_func=no"
7183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7186 cat >> confdefs.h
<<EOF
7187 #define $ac_tr_func 1
7191 echo "$ac_t""no" 1>&6
7195 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7196 echo "configure:7197: checking for set_auth_parameters in -lsecurity" >&5
7197 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7199 echo $ac_n "(cached) $ac_c" 1>&6
7201 ac_save_LIBS
="$LIBS"
7202 LIBS
="-lsecurity $LIBS"
7203 cat > conftest.
$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7209 char set_auth_parameters();
7212 set_auth_parameters()
7215 if { (eval echo configure
:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7217 eval "ac_cv_lib_$ac_lib_var=yes"
7219 echo "configure: failed program was:" >&5
7220 cat conftest.
$ac_ext >&5
7222 eval "ac_cv_lib_$ac_lib_var=no"
7225 LIBS
="$ac_save_LIBS"
7228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7229 echo "$ac_t""yes" 1>&6
7230 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7232 cat >> confdefs.h
<<EOF
7233 #define $ac_tr_lib 1
7236 LIBS
="-lsecurity $LIBS"
7239 echo "$ac_t""no" 1>&6
7242 for ac_func
in set_auth_parameters
7244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7245 echo "configure:7246: checking for $ac_func" >&5
7246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7249 cat > conftest.
$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 /* System header to define __stub macros and hopefully few prototypes,
7253 which can conflict with char $ac_func(); below. */
7255 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7273 if { (eval echo configure
:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7275 eval "ac_cv_func_$ac_func=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.
$ac_ext >&5
7280 eval "ac_cv_func_$ac_func=no"
7285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7288 cat >> confdefs.h
<<EOF
7289 #define $ac_tr_func 1
7293 echo "$ac_t""no" 1>&6
7301 *-lsec*) for ac_func
in set_auth_parameters
7303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7304 echo "configure:7305: checking for $ac_func" >&5
7305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7306 echo $ac_n "(cached) $ac_c" 1>&6
7308 cat > conftest.
$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 /* System header to define __stub macros and hopefully few prototypes,
7312 which can conflict with char $ac_func(); below. */
7314 /* Override any gcc2 internal prototype to avoid an error. */
7315 /* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */
7321 /* The GNU C library defines this for functions which it implements
7322 to always fail with ENOSYS. Some functions are actually named
7323 something starting with __ and the normal name is an alias. */
7324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7332 if { (eval echo configure
:7333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7334 eval "ac_cv_func_$ac_func=yes"
7336 echo "configure: failed program was:" >&5
7337 cat conftest.
$ac_ext >&5
7339 eval "ac_cv_func_$ac_func=no"
7344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7345 echo "$ac_t""yes" 1>&6
7346 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7347 cat >> confdefs.h
<<EOF
7348 #define $ac_tr_func 1
7352 echo "$ac_t""no" 1>&6
7356 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7357 echo "configure:7358: checking for set_auth_parameters in -lsec" >&5
7358 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7360 echo $ac_n "(cached) $ac_c" 1>&6
7362 ac_save_LIBS
="$LIBS"
7364 cat > conftest.
$ac_ext <<EOF
7365 #line 7366 "configure"
7366 #include "confdefs.h"
7367 /* Override any gcc2 internal prototype to avoid an error. */
7368 /* We use char because int might match the return type of a gcc2
7369 builtin and then its argument prototype would still apply. */
7370 char set_auth_parameters();
7373 set_auth_parameters()
7376 if { (eval echo configure
:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7378 eval "ac_cv_lib_$ac_lib_var=yes"
7380 echo "configure: failed program was:" >&5
7381 cat conftest.
$ac_ext >&5
7383 eval "ac_cv_lib_$ac_lib_var=no"
7386 LIBS
="$ac_save_LIBS"
7389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7390 echo "$ac_t""yes" 1>&6
7391 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7393 cat >> confdefs.h
<<EOF
7394 #define $ac_tr_lib 1
7400 echo "$ac_t""no" 1>&6
7403 for ac_func
in set_auth_parameters
7405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7406 echo "configure:7407: checking for $ac_func" >&5
7407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7408 echo $ac_n "(cached) $ac_c" 1>&6
7410 cat > conftest.
$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7413 /* System header to define __stub macros and hopefully few prototypes,
7414 which can conflict with char $ac_func(); below. */
7416 /* Override any gcc2 internal prototype to avoid an error. */
7417 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */
7423 /* The GNU C library defines this for functions which it implements
7424 to always fail with ENOSYS. Some functions are actually named
7425 something starting with __ and the normal name is an alias. */
7426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7434 if { (eval echo configure
:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7436 eval "ac_cv_func_$ac_func=yes"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.
$ac_ext >&5
7441 eval "ac_cv_func_$ac_func=no"
7446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7447 echo "$ac_t""yes" 1>&6
7448 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7449 cat >> confdefs.h
<<EOF
7450 #define $ac_tr_func 1
7454 echo "$ac_t""no" 1>&6
7462 # UnixWare 7.x has its getspnam in -lgen
7464 *-lgen*) for ac_func
in getspnam
7466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7467 echo "configure:7468: checking for $ac_func" >&5
7468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7471 cat > conftest.
$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 /* System header to define __stub macros and hopefully few prototypes,
7475 which can conflict with char $ac_func(); below. */
7477 /* Override any gcc2 internal prototype to avoid an error. */
7478 /* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7484 /* The GNU C library defines this for functions which it implements
7485 to always fail with ENOSYS. Some functions are actually named
7486 something starting with __ and the normal name is an alias. */
7487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7495 if { (eval echo configure
:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7497 eval "ac_cv_func_$ac_func=yes"
7499 echo "configure: failed program was:" >&5
7500 cat conftest.
$ac_ext >&5
7502 eval "ac_cv_func_$ac_func=no"
7507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7508 echo "$ac_t""yes" 1>&6
7509 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7510 cat >> confdefs.h
<<EOF
7511 #define $ac_tr_func 1
7515 echo "$ac_t""no" 1>&6
7519 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7520 echo "configure:7521: checking for getspnam in -lgen" >&5
7521 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7525 ac_save_LIBS
="$LIBS"
7527 cat > conftest.
$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* Override any gcc2 internal prototype to avoid an error. */
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7539 if { (eval echo configure
:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7541 eval "ac_cv_lib_$ac_lib_var=yes"
7543 echo "configure: failed program was:" >&5
7544 cat conftest.
$ac_ext >&5
7546 eval "ac_cv_lib_$ac_lib_var=no"
7549 LIBS
="$ac_save_LIBS"
7552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7553 echo "$ac_t""yes" 1>&6
7554 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7556 cat >> confdefs.h
<<EOF
7557 #define $ac_tr_lib 1
7563 echo "$ac_t""no" 1>&6
7566 for ac_func
in getspnam
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7573 cat > conftest.
$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7597 if { (eval echo configure
:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7599 eval "ac_cv_func_$ac_func=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 eval "ac_cv_func_$ac_func=no"
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h
<<EOF
7613 #define $ac_tr_func 1
7617 echo "$ac_t""no" 1>&6
7626 *-lsecurity*) for ac_func
in getspnam
7628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7629 echo "configure:7630: checking for $ac_func" >&5
7630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7633 cat > conftest.
$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func(); below. */
7639 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7646 /* The GNU C library defines this for functions which it implements
7647 to always fail with ENOSYS. Some functions are actually named
7648 something starting with __ and the normal name is an alias. */
7649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7657 if { (eval echo configure
:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7659 eval "ac_cv_func_$ac_func=yes"
7661 echo "configure: failed program was:" >&5
7662 cat conftest.
$ac_ext >&5
7664 eval "ac_cv_func_$ac_func=no"
7669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7672 cat >> confdefs.h
<<EOF
7673 #define $ac_tr_func 1
7677 echo "$ac_t""no" 1>&6
7681 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7682 echo "configure:7683: checking for getspnam in -lsecurity" >&5
7683 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7687 ac_save_LIBS
="$LIBS"
7688 LIBS
="-lsecurity $LIBS"
7689 cat > conftest.
$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* Override any gcc2 internal prototype to avoid an error. */
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7701 if { (eval echo configure
:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7703 eval "ac_cv_lib_$ac_lib_var=yes"
7705 echo "configure: failed program was:" >&5
7706 cat conftest.
$ac_ext >&5
7708 eval "ac_cv_lib_$ac_lib_var=no"
7711 LIBS
="$ac_save_LIBS"
7714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7715 echo "$ac_t""yes" 1>&6
7716 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7718 cat >> confdefs.h
<<EOF
7719 #define $ac_tr_lib 1
7722 LIBS
="-lsecurity $LIBS"
7725 echo "$ac_t""no" 1>&6
7728 for ac_func
in getspnam
7730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_func" >&5
7732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7735 cat > conftest.
$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7738 /* System header to define __stub macros and hopefully few prototypes,
7739 which can conflict with char $ac_func(); below. */
7741 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7748 /* The GNU C library defines this for functions which it implements
7749 to always fail with ENOSYS. Some functions are actually named
7750 something starting with __ and the normal name is an alias. */
7751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7759 if { (eval echo configure
:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7761 eval "ac_cv_func_$ac_func=yes"
7763 echo "configure: failed program was:" >&5
7764 cat conftest.
$ac_ext >&5
7766 eval "ac_cv_func_$ac_func=no"
7771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7774 cat >> confdefs.h
<<EOF
7775 #define $ac_tr_func 1
7779 echo "$ac_t""no" 1>&6
7787 *-lsec*) for ac_func
in getspnam
7789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7790 echo "configure:7791: checking for $ac_func" >&5
7791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7794 cat > conftest.
$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 /* System header to define __stub macros and hopefully few prototypes,
7798 which can conflict with char $ac_func(); below. */
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7818 if { (eval echo configure
:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7820 eval "ac_cv_func_$ac_func=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.
$ac_ext >&5
7825 eval "ac_cv_func_$ac_func=no"
7830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7831 echo "$ac_t""yes" 1>&6
7832 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7833 cat >> confdefs.h
<<EOF
7834 #define $ac_tr_func 1
7838 echo "$ac_t""no" 1>&6
7842 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7843 echo "configure:7844: checking for getspnam in -lsec" >&5
7844 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7848 ac_save_LIBS
="$LIBS"
7850 cat > conftest.
$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 /* Override any gcc2 internal prototype to avoid an error. */
7854 /* We use char because int might match the return type of a gcc2
7855 builtin and then its argument prototype would still apply. */
7862 if { (eval echo configure
:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7864 eval "ac_cv_lib_$ac_lib_var=yes"
7866 echo "configure: failed program was:" >&5
7867 cat conftest.
$ac_ext >&5
7869 eval "ac_cv_lib_$ac_lib_var=no"
7872 LIBS
="$ac_save_LIBS"
7875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7876 echo "$ac_t""yes" 1>&6
7877 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7879 cat >> confdefs.h
<<EOF
7880 #define $ac_tr_lib 1
7886 echo "$ac_t""no" 1>&6
7889 for ac_func
in getspnam
7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7892 echo "configure:7893: checking for $ac_func" >&5
7893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7896 cat > conftest.
$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char $ac_func(); below. */
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7920 if { (eval echo configure
:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7922 eval "ac_cv_func_$ac_func=yes"
7924 echo "configure: failed program was:" >&5
7925 cat conftest.
$ac_ext >&5
7927 eval "ac_cv_func_$ac_func=no"
7932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7933 echo "$ac_t""yes" 1>&6
7934 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7935 cat >> confdefs.h
<<EOF
7936 #define $ac_tr_func 1
7940 echo "$ac_t""no" 1>&6
7949 *-lsecurity*) for ac_func
in bigcrypt
7951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7952 echo "configure:7953: checking for $ac_func" >&5
7953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7956 cat > conftest.
$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char $ac_func(); below. */
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7969 /* The GNU C library defines this for functions which it implements
7970 to always fail with ENOSYS. Some functions are actually named
7971 something starting with __ and the normal name is an alias. */
7972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7980 if { (eval echo configure
:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7982 eval "ac_cv_func_$ac_func=yes"
7984 echo "configure: failed program was:" >&5
7985 cat conftest.
$ac_ext >&5
7987 eval "ac_cv_func_$ac_func=no"
7992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7995 cat >> confdefs.h
<<EOF
7996 #define $ac_tr_func 1
8000 echo "$ac_t""no" 1>&6
8004 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8005 echo "configure:8006: checking for bigcrypt in -lsecurity" >&5
8006 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8010 ac_save_LIBS
="$LIBS"
8011 LIBS
="-lsecurity $LIBS"
8012 cat > conftest.
$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8024 if { (eval echo configure
:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8026 eval "ac_cv_lib_$ac_lib_var=yes"
8028 echo "configure: failed program was:" >&5
8029 cat conftest.
$ac_ext >&5
8031 eval "ac_cv_lib_$ac_lib_var=no"
8034 LIBS
="$ac_save_LIBS"
8037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8038 echo "$ac_t""yes" 1>&6
8039 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8041 cat >> confdefs.h
<<EOF
8042 #define $ac_tr_lib 1
8045 LIBS
="-lsecurity $LIBS"
8048 echo "$ac_t""no" 1>&6
8051 for ac_func
in bigcrypt
8053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8054 echo "configure:8055: checking for $ac_func" >&5
8055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.
$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char $ac_func(); below. */
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8071 /* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8082 if { (eval echo configure
:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8084 eval "ac_cv_func_$ac_func=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8089 eval "ac_cv_func_$ac_func=no"
8094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8097 cat >> confdefs.h
<<EOF
8098 #define $ac_tr_func 1
8102 echo "$ac_t""no" 1>&6
8110 *-lsec*) for ac_func
in bigcrypt
8112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8113 echo "configure:8114: checking for $ac_func" >&5
8114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8117 cat > conftest.
$ac_ext <<EOF
8118 #line 8119 "configure"
8119 #include "confdefs.h"
8120 /* System header to define __stub macros and hopefully few prototypes,
8121 which can conflict with char $ac_func(); below. */
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8130 /* The GNU C library defines this for functions which it implements
8131 to always fail with ENOSYS. Some functions are actually named
8132 something starting with __ and the normal name is an alias. */
8133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8141 if { (eval echo configure
:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8143 eval "ac_cv_func_$ac_func=yes"
8145 echo "configure: failed program was:" >&5
8146 cat conftest.
$ac_ext >&5
8148 eval "ac_cv_func_$ac_func=no"
8153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8154 echo "$ac_t""yes" 1>&6
8155 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8156 cat >> confdefs.h
<<EOF
8157 #define $ac_tr_func 1
8161 echo "$ac_t""no" 1>&6
8165 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8166 echo "configure:8167: checking for bigcrypt in -lsec" >&5
8167 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8171 ac_save_LIBS
="$LIBS"
8173 cat > conftest.
$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 /* Override any gcc2 internal prototype to avoid an error. */
8177 /* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8185 if { (eval echo configure
:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8187 eval "ac_cv_lib_$ac_lib_var=yes"
8189 echo "configure: failed program was:" >&5
8190 cat conftest.
$ac_ext >&5
8192 eval "ac_cv_lib_$ac_lib_var=no"
8195 LIBS
="$ac_save_LIBS"
8198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8199 echo "$ac_t""yes" 1>&6
8200 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8202 cat >> confdefs.h
<<EOF
8203 #define $ac_tr_lib 1
8209 echo "$ac_t""no" 1>&6
8212 for ac_func
in bigcrypt
8214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8215 echo "configure:8216: checking for $ac_func" >&5
8216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8219 cat > conftest.
$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8222 /* System header to define __stub macros and hopefully few prototypes,
8223 which can conflict with char $ac_func(); below. */
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8232 /* The GNU C library defines this for functions which it implements
8233 to always fail with ENOSYS. Some functions are actually named
8234 something starting with __ and the normal name is an alias. */
8235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8243 if { (eval echo configure
:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8245 eval "ac_cv_func_$ac_func=yes"
8247 echo "configure: failed program was:" >&5
8248 cat conftest.
$ac_ext >&5
8250 eval "ac_cv_func_$ac_func=no"
8255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8258 cat >> confdefs.h
<<EOF
8259 #define $ac_tr_func 1
8263 echo "$ac_t""no" 1>&6
8272 *-lsecurity*) for ac_func
in getprpwnam
8274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8275 echo "configure:8276: checking for $ac_func" >&5
8276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8279 cat > conftest.
$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func(); below. */
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8303 if { (eval echo configure
:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8305 eval "ac_cv_func_$ac_func=yes"
8307 echo "configure: failed program was:" >&5
8308 cat conftest.
$ac_ext >&5
8310 eval "ac_cv_func_$ac_func=no"
8315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8318 cat >> confdefs.h
<<EOF
8319 #define $ac_tr_func 1
8323 echo "$ac_t""no" 1>&6
8327 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8328 echo "configure:8329: checking for getprpwnam in -lsecurity" >&5
8329 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8333 ac_save_LIBS
="$LIBS"
8334 LIBS
="-lsecurity $LIBS"
8335 cat > conftest.
$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* Override any gcc2 internal prototype to avoid an error. */
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8347 if { (eval echo configure
:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8349 eval "ac_cv_lib_$ac_lib_var=yes"
8351 echo "configure: failed program was:" >&5
8352 cat conftest.
$ac_ext >&5
8354 eval "ac_cv_lib_$ac_lib_var=no"
8357 LIBS
="$ac_save_LIBS"
8360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8361 echo "$ac_t""yes" 1>&6
8362 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8364 cat >> confdefs.h
<<EOF
8365 #define $ac_tr_lib 1
8368 LIBS
="-lsecurity $LIBS"
8371 echo "$ac_t""no" 1>&6
8374 for ac_func
in getprpwnam
8376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8377 echo "configure:8378: checking for $ac_func" >&5
8378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8381 cat > conftest.
$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 /* System header to define __stub macros and hopefully few prototypes,
8385 which can conflict with char $ac_func(); below. */
8387 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8394 /* The GNU C library defines this for functions which it implements
8395 to always fail with ENOSYS. Some functions are actually named
8396 something starting with __ and the normal name is an alias. */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8405 if { (eval echo configure
:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8407 eval "ac_cv_func_$ac_func=yes"
8409 echo "configure: failed program was:" >&5
8410 cat conftest.
$ac_ext >&5
8412 eval "ac_cv_func_$ac_func=no"
8417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8418 echo "$ac_t""yes" 1>&6
8419 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8420 cat >> confdefs.h
<<EOF
8421 #define $ac_tr_func 1
8425 echo "$ac_t""no" 1>&6
8433 *-lsec*) for ac_func
in getprpwnam
8435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8436 echo "configure:8437: checking for $ac_func" >&5
8437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8440 cat > conftest.
$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 /* System header to define __stub macros and hopefully few prototypes,
8444 which can conflict with char $ac_func(); below. */
8446 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8453 /* The GNU C library defines this for functions which it implements
8454 to always fail with ENOSYS. Some functions are actually named
8455 something starting with __ and the normal name is an alias. */
8456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8464 if { (eval echo configure
:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8466 eval "ac_cv_func_$ac_func=yes"
8468 echo "configure: failed program was:" >&5
8469 cat conftest.
$ac_ext >&5
8471 eval "ac_cv_func_$ac_func=no"
8476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8477 echo "$ac_t""yes" 1>&6
8478 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8479 cat >> confdefs.h
<<EOF
8480 #define $ac_tr_func 1
8484 echo "$ac_t""no" 1>&6
8488 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8489 echo "configure:8490: checking for getprpwnam in -lsec" >&5
8490 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8494 ac_save_LIBS
="$LIBS"
8496 cat > conftest.
$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 /* We use char because int might match the return type of a gcc2
8501 builtin and then its argument prototype would still apply. */
8508 if { (eval echo configure
:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8510 eval "ac_cv_lib_$ac_lib_var=yes"
8512 echo "configure: failed program was:" >&5
8513 cat conftest.
$ac_ext >&5
8515 eval "ac_cv_lib_$ac_lib_var=no"
8518 LIBS
="$ac_save_LIBS"
8521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8522 echo "$ac_t""yes" 1>&6
8523 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8525 cat >> confdefs.h
<<EOF
8526 #define $ac_tr_lib 1
8532 echo "$ac_t""no" 1>&6
8535 for ac_func
in getprpwnam
8537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8538 echo "configure:8539: checking for $ac_func" >&5
8539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8540 echo $ac_n "(cached) $ac_c" 1>&6
8542 cat > conftest.
$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8545 /* System header to define __stub macros and hopefully few prototypes,
8546 which can conflict with char $ac_func(); below. */
8548 /* Override any gcc2 internal prototype to avoid an error. */
8549 /* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8555 /* The GNU C library defines this for functions which it implements
8556 to always fail with ENOSYS. Some functions are actually named
8557 something starting with __ and the normal name is an alias. */
8558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8566 if { (eval echo configure
:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8568 eval "ac_cv_func_$ac_func=yes"
8570 echo "configure: failed program was:" >&5
8571 cat conftest.
$ac_ext >&5
8573 eval "ac_cv_func_$ac_func=no"
8578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8579 echo "$ac_t""yes" 1>&6
8580 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8581 cat >> confdefs.h
<<EOF
8582 #define $ac_tr_func 1
8586 echo "$ac_t""no" 1>&6
8594 # this bit needs to be modified for each OS that is suported by
8595 # smbwrapper. You need to specify how to created a shared library and
8596 # how to compile C code to produce PIC object files
8598 # these are the defaults, good for lots of systems
8606 # Assume non-shared by default and override below
8608 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8609 echo "configure:8610: checking ability to build shared libraries" >&5
8611 # and these are for particular systems
8613 *linux
*) cat >> confdefs.h
<<\EOF
8619 DYNEXP
="-Wl,--export-dynamic"
8621 SONAMEFLAG
="-Wl,-soname="
8622 cat >> confdefs.h
<<\EOF
8623 #define STAT_ST_BLOCKSIZE 512
8627 *solaris
*) cat >> confdefs.h
<<\EOF
8634 if test "${GCC}" = "yes"; then
8639 ## ${CFLAGS} added for building 64-bit shared
8640 ## libs using Sun's Compiler
8641 LDSHFLAGS
="-G \${CFLAGS}"
8645 cat >> confdefs.h
<<\EOF
8646 #define STAT_ST_BLOCKSIZE 512
8650 *sunos
*) cat >> confdefs.h
<<\EOF
8656 SONAMEFLAG
="-Wl,-h,"
8657 PICFLAG
="-KPIC" # Is this correct for SunOS
8659 *bsd
*) BLDSHARED
="true"
8661 DYNEXP
="-Wl,-Bdynamic"
8662 SONAMEFLAG
="-Wl,-soname,"
8664 cat >> confdefs.h
<<\EOF
8665 #define STAT_ST_BLOCKSIZE 512
8669 *irix
*) cat >> confdefs.h
<<\EOF
8674 *irix6
*) cat >> confdefs.h
<<\EOF
8680 ATTEMPT_WRAP32_BUILD
=yes
8682 LDSHFLAGS
="-set_version sgi1.0 -shared"
8683 SONAMEFLAG
="-soname "
8685 if test "${GCC}" = "yes"; then
8690 cat >> confdefs.h
<<\EOF
8691 #define STAT_ST_BLOCKSIZE 512
8695 *aix
*) cat >> confdefs.h
<<\EOF
8700 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8701 DYNEXP
="-Wl,-brtl,-bexpall"
8702 if test "${GCC}" = "yes"; then
8705 PICFLAG
="-O2 -qmaxmem=6000"
8708 cat >> confdefs.h
<<\EOF
8709 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8713 *hpux
*) cat >> confdefs.h
<<\EOF
8718 # Use special PIC flags for the native HP-UX compiler.
8719 if test $ac_cv_prog_cc_Ae = yes; then
8722 LDSHFLAGS
="-B symbolic -b -z"
8727 cat >> confdefs.h
<<\EOF
8728 #define STAT_ST_BLOCKSIZE 8192
8732 *qnx
*) cat >> confdefs.h
<<\EOF
8736 *osf
*) cat >> confdefs.h
<<\EOF
8742 SONAMEFLAG
="-Wl,-soname,"
8745 *sco
*) cat >> confdefs.h
<<\EOF
8749 *unixware
*) cat >> confdefs.h
<<\EOF
8755 SONAMEFLAG
="-Wl,-soname,"
8758 *next2
*) cat >> confdefs.h
<<\EOF
8762 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8763 set dummy
groff; ac_word
=$2
8764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8765 echo "configure:8766: checking for $ac_word" >&5
8766 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8769 if test -n "$ROFF"; then
8770 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8774 for ac_dir
in $ac_dummy; do
8775 test -z "$ac_dir" && ac_dir
=.
8776 if test -f $ac_dir/$ac_word; then
8777 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8784 ROFF
="$ac_cv_prog_ROFF"
8785 if test -n "$ROFF"; then
8786 echo "$ac_t""$ROFF" 1>&6
8788 echo "$ac_t""no" 1>&6
8793 *-univel-*) if test "$GCC" != yes ; then
8794 cat >> confdefs.h
<<\EOF
8795 #define HAVE_MEMSET 1
8802 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8803 #define RELIANTUNIX 1
8809 if test "$GCC" != yes ; then
8810 cat >> confdefs.h
<<\EOF
8811 #define HAVE_MEMSET 1
8819 echo "$ac_t""$BLDSHARED" 1>&6
8820 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8821 echo "configure:8822: checking linker flags for shared libraries" >&5
8822 echo "$ac_t""$LDSHFLAGS" 1>&6
8823 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8824 echo "configure:8825: checking compiler flags for position-independent code" >&5
8825 echo "$ac_t""$PICFLAGS" 1>&6
8827 # try to work out how to produce pic code with this compiler
8828 if test x
$PICFLAG = x
; then
8829 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8830 echo "configure:8831: checking whether ${CC-cc} accepts -fpic" >&5
8831 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8834 echo 'void f(){}' > conftest.c
8835 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8836 ac_cv_prog_cc_fpic
=yes
8838 ac_cv_prog_cc_fpic
=no
8844 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8845 if test $ac_cv_prog_cc_fpic = yes; then
8849 if test x
$PICFLAG = x
; then
8850 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8851 echo "configure:8852: checking whether ${CC-cc} accepts -KPIC" >&5
8852 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8855 echo 'void f(){}' > conftest.c
8856 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8857 ac_cv_prog_cc_KPIC
=yes
8859 ac_cv_prog_cc_KPIC
=no
8865 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8866 if test $ac_cv_prog_cc_KPIC = yes; then
8870 if test x
$PICFLAG = x
; then
8871 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8872 echo "configure:8873: checking whether ${CC-cc} accepts -Kpic" >&5
8873 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8876 echo 'void f(){}' > conftest.c
8877 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8878 ac_cv_prog_cc_Kpic
=yes
8880 ac_cv_prog_cc_Kpic
=no
8886 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8887 if test $ac_cv_prog_cc_Kpic = yes; then
8894 echo $ac_n "checking for long long""... $ac_c" 1>&6
8895 echo "configure:8896: checking for long long" >&5
8896 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8900 if test "$cross_compiling" = yes; then
8901 samba_cv_have_longlong
=cross
8903 cat > conftest.
$ac_ext <<EOF
8904 #line 8905 "configure"
8905 #include "confdefs.h"
8907 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8909 if { (eval echo configure
:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8911 samba_cv_have_longlong
=yes
8913 echo "configure: failed program was:" >&5
8914 cat conftest.
$ac_ext >&5
8916 samba_cv_have_longlong
=no
8923 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8924 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8925 cat >> confdefs.h
<<\EOF
8926 #define HAVE_LONGLONG 1
8932 # Check if the compiler supports the LL prefix on long long integers.
8935 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8936 echo "configure:8937: checking for LL suffix on long long integers" >&5
8937 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8938 echo $ac_n "(cached) $ac_c" 1>&6
8941 cat > conftest.
$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8946 long long i = 0x8000000000LL
8949 if { (eval echo configure
:8950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8951 samba_cv_compiler_supports_ll
=yes
8953 echo "configure: failed program was:" >&5
8954 cat conftest.
$ac_ext >&5
8956 samba_cv_compiler_supports_ll
=no
8961 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8962 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8963 cat >> confdefs.h
<<\EOF
8964 #define COMPILER_SUPPORTS_LL 1
8970 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8971 echo "configure:8972: checking for 64 bit off_t" >&5
8972 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8976 if test "$cross_compiling" = yes; then
8977 samba_cv_SIZEOF_OFF_T
=cross
8979 cat > conftest.
$ac_ext <<EOF
8980 #line 8981 "configure"
8981 #include "confdefs.h"
8983 #include <sys/stat.h>
8984 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8986 if { (eval echo configure
:8987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8988 samba_cv_SIZEOF_OFF_T
=yes
8990 echo "configure: failed program was:" >&5
8991 cat conftest.
$ac_ext >&5
8993 samba_cv_SIZEOF_OFF_T
=no
9000 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9001 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9002 cat >> confdefs.h
<<\EOF
9003 #define SIZEOF_OFF_T 8
9008 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9009 echo "configure:9010: checking for off64_t" >&5
9010 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9014 if test "$cross_compiling" = yes; then
9015 samba_cv_HAVE_OFF64_T
=cross
9017 cat > conftest.
$ac_ext <<EOF
9018 #line 9019 "configure"
9019 #include "confdefs.h"
9021 #if defined(HAVE_UNISTD_H)
9025 #include <sys/stat.h>
9026 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9028 if { (eval echo configure
:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9030 samba_cv_HAVE_OFF64_T
=yes
9032 echo "configure: failed program was:" >&5
9033 cat conftest.
$ac_ext >&5
9035 samba_cv_HAVE_OFF64_T
=no
9042 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9043 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9044 cat >> confdefs.h
<<\EOF
9045 #define HAVE_OFF64_T 1
9050 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9051 echo "configure:9052: checking for 64 bit ino_t" >&5
9052 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9056 if test "$cross_compiling" = yes; then
9057 samba_cv_SIZEOF_INO_T
=cross
9059 cat > conftest.
$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9063 #include <sys/stat.h>
9064 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9066 if { (eval echo configure
:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9068 samba_cv_SIZEOF_INO_T
=yes
9070 echo "configure: failed program was:" >&5
9071 cat conftest.
$ac_ext >&5
9073 samba_cv_SIZEOF_INO_T
=no
9080 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9081 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9082 cat >> confdefs.h
<<\EOF
9083 #define SIZEOF_INO_T 8
9088 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9089 echo "configure:9090: checking for ino64_t" >&5
9090 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9094 if test "$cross_compiling" = yes; then
9095 samba_cv_HAVE_INO64_T
=cross
9097 cat > conftest.
$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9101 #if defined(HAVE_UNISTD_H)
9105 #include <sys/stat.h>
9106 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9108 if { (eval echo configure
:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9110 samba_cv_HAVE_INO64_T
=yes
9112 echo "configure: failed program was:" >&5
9113 cat conftest.
$ac_ext >&5
9115 samba_cv_HAVE_INO64_T
=no
9122 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9123 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9124 cat >> confdefs.h
<<\EOF
9125 #define HAVE_INO64_T 1
9130 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9131 echo "configure:9132: checking for dev64_t" >&5
9132 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9136 if test "$cross_compiling" = yes; then
9137 samba_cv_HAVE_DEV64_T
=cross
9139 cat > conftest.
$ac_ext <<EOF
9140 #line 9141 "configure"
9141 #include "confdefs.h"
9143 #if defined(HAVE_UNISTD_H)
9147 #include <sys/stat.h>
9148 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9150 if { (eval echo configure
:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9152 samba_cv_HAVE_DEV64_T
=yes
9154 echo "configure: failed program was:" >&5
9155 cat conftest.
$ac_ext >&5
9157 samba_cv_HAVE_DEV64_T
=no
9164 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9165 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9166 cat >> confdefs.h
<<\EOF
9167 #define HAVE_DEV64_T 1
9172 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9173 echo "configure:9174: checking for struct dirent64" >&5
9174 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9178 cat > conftest.
$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9182 #if defined(HAVE_UNISTD_H)
9185 #include <sys/types.h>
9191 if { (eval echo configure
:9192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9193 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9195 echo "configure: failed program was:" >&5
9196 cat conftest.
$ac_ext >&5
9198 samba_cv_HAVE_STRUCT_DIRENT64
=no
9203 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9204 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
9205 cat >> confdefs.h
<<\EOF
9206 #define HAVE_STRUCT_DIRENT64 1
9211 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9212 echo "configure:9213: checking for major macro" >&5
9213 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9217 if test "$cross_compiling" = yes; then
9218 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9220 cat > conftest.
$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9224 #if defined(HAVE_UNISTD_H)
9227 #include <sys/types.h>
9228 main() { dev_t dev; int i = major(dev); return 0; }
9230 if { (eval echo configure
:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9232 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9234 echo "configure: failed program was:" >&5
9235 cat conftest.
$ac_ext >&5
9237 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9244 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9245 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9246 cat >> confdefs.h
<<\EOF
9247 #define HAVE_DEVICE_MAJOR_FN 1
9252 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9253 echo "configure:9254: checking for minor macro" >&5
9254 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9258 if test "$cross_compiling" = yes; then
9259 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9261 cat > conftest.
$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9265 #if defined(HAVE_UNISTD_H)
9268 #include <sys/types.h>
9269 main() { dev_t dev; int i = minor(dev); return 0; }
9271 if { (eval echo configure
:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9273 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9275 echo "configure: failed program was:" >&5
9276 cat conftest.
$ac_ext >&5
9278 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9285 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9286 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9287 cat >> confdefs.h
<<\EOF
9288 #define HAVE_DEVICE_MINOR_FN 1
9293 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9294 echo "configure:9295: checking for makedev macro" >&5
9295 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
9299 if test "$cross_compiling" = yes; then
9300 samba_cv_HAVE_MAKEDEV_FN
=cross
9302 cat > conftest.
$ac_ext <<EOF
9303 #line 9304 "configure"
9304 #include "confdefs.h"
9306 #if defined(HAVE_UNISTD_H)
9309 #include <sys/types.h>
9310 main() { dev_t dev = makedev(1,2); return 0; }
9312 if { (eval echo configure
:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9314 samba_cv_HAVE_MAKEDEV_FN
=yes
9316 echo "configure: failed program was:" >&5
9317 cat conftest.
$ac_ext >&5
9319 samba_cv_HAVE_MAKEDEV_FN
=no
9326 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9327 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9328 cat >> confdefs.h
<<\EOF
9329 #define MAKEDEV_FN 1
9334 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9335 echo "configure:9336: checking for unsigned char" >&5
9336 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9340 if test "$cross_compiling" = yes; then
9341 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9343 cat > conftest.
$ac_ext <<EOF
9344 #line 9345 "configure"
9345 #include "confdefs.h"
9347 main() { char c; c=250; exit((c > 0)?0:1); }
9349 if { (eval echo configure
:9350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9351 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9353 echo "configure: failed program was:" >&5
9354 cat conftest.
$ac_ext >&5
9356 samba_cv_HAVE_UNSIGNED_CHAR
=no
9363 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9364 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9365 cat >> confdefs.h
<<\EOF
9366 #define HAVE_UNSIGNED_CHAR 1
9371 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9372 echo "configure:9373: checking for sin_len in sock" >&5
9373 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9377 cat > conftest.
$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 #include <sys/types.h>
9381 #include <sys/socket.h>
9382 #include <netinet/in.h>
9384 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9387 if { (eval echo configure
:9388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9389 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9391 echo "configure: failed program was:" >&5
9392 cat conftest.
$ac_ext >&5
9394 samba_cv_HAVE_SOCK_SIN_LEN
=no
9399 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9400 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9401 cat >> confdefs.h
<<\EOF
9402 #define HAVE_SOCK_SIN_LEN 1
9407 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9408 echo "configure:9409: checking whether seekdir returns void" >&5
9409 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9413 cat > conftest.
$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 #include <sys/types.h>
9418 void seekdir(DIR *d, long loc) { return; }
9423 if { (eval echo configure
:9424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9425 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9427 echo "configure: failed program was:" >&5
9428 cat conftest.
$ac_ext >&5
9430 samba_cv_SEEKDIR_RETURNS_VOID
=no
9435 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9436 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9437 cat >> confdefs.h
<<\EOF
9438 #define SEEKDIR_RETURNS_VOID 1
9443 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9444 echo "configure:9445: checking for __FILE__ macro" >&5
9445 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9449 cat > conftest.
$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9454 printf("%s\n", __FILE__);
9457 if { (eval echo configure
:9458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9459 samba_cv_HAVE_FILE_MACRO
=yes
9461 echo "configure: failed program was:" >&5
9462 cat conftest.
$ac_ext >&5
9464 samba_cv_HAVE_FILE_MACRO
=no
9469 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9470 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9471 cat >> confdefs.h
<<\EOF
9472 #define HAVE_FILE_MACRO 1
9477 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9478 echo "configure:9479: checking for __FUNCTION__ macro" >&5
9479 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9480 echo $ac_n "(cached) $ac_c" 1>&6
9483 cat > conftest.
$ac_ext <<EOF
9484 #line 9485 "configure"
9485 #include "confdefs.h"
9488 printf("%s\n", __FUNCTION__);
9491 if { (eval echo configure
:9492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9493 samba_cv_HAVE_FUNCTION_MACRO
=yes
9495 echo "configure: failed program was:" >&5
9496 cat conftest.
$ac_ext >&5
9498 samba_cv_HAVE_FUNCTION_MACRO
=no
9503 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9504 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9505 cat >> confdefs.h
<<\EOF
9506 #define HAVE_FUNCTION_MACRO 1
9511 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9512 echo "configure:9513: checking if gettimeofday takes tz argument" >&5
9513 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9517 if test "$cross_compiling" = yes; then
9518 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9520 cat > conftest.
$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9524 #include <sys/time.h>
9526 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9528 if { (eval echo configure
:9529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9530 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9532 echo "configure: failed program was:" >&5
9533 cat conftest.
$ac_ext >&5
9535 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9542 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9543 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9544 cat >> confdefs.h
<<\EOF
9545 #define HAVE_GETTIMEOFDAY_TZ 1
9550 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9551 echo "configure:9552: checking for __va_copy" >&5
9552 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9556 cat > conftest.
$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9565 if { (eval echo configure
:9566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9567 samba_cv_HAVE_VA_COPY
=yes
9569 echo "configure: failed program was:" >&5
9570 cat conftest.
$ac_ext >&5
9572 samba_cv_HAVE_VA_COPY
=no
9577 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9578 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9579 cat >> confdefs.h
<<\EOF
9580 #define HAVE_VA_COPY 1
9585 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9586 echo "configure:9587: checking for C99 vsnprintf" >&5
9587 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9591 if test "$cross_compiling" = yes; then
9592 samba_cv_HAVE_C99_VSNPRINTF
=cross
9594 cat > conftest.
$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9598 #include <sys/types.h>
9600 void foo(const char *format, ...) {
9605 va_start(ap, format);
9606 len = vsnprintf(buf, 0, format, ap);
9608 if (len != 5) exit(1);
9610 va_start(ap, format);
9611 len = vsnprintf(0, 0, format, ap);
9613 if (len != 5) exit(1);
9615 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9619 main() { foo("hello"); }
9622 if { (eval echo configure
:9623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9624 samba_cv_HAVE_C99_VSNPRINTF
=yes
9626 echo "configure: failed program was:" >&5
9627 cat conftest.
$ac_ext >&5
9629 samba_cv_HAVE_C99_VSNPRINTF
=no
9636 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9637 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9638 cat >> confdefs.h
<<\EOF
9639 #define HAVE_C99_VSNPRINTF 1
9644 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9645 echo "configure:9646: checking for broken readdir" >&5
9646 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9650 if test "$cross_compiling" = yes; then
9651 samba_cv_HAVE_BROKEN_READDIR
=cross
9653 cat > conftest.
$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 #include <sys/types.h>
9658 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9659 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9660 di->d_name[0] == 0) exit(0); exit(1);}
9662 if { (eval echo configure
:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9664 samba_cv_HAVE_BROKEN_READDIR
=yes
9666 echo "configure: failed program was:" >&5
9667 cat conftest.
$ac_ext >&5
9669 samba_cv_HAVE_BROKEN_READDIR
=no
9676 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9677 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9678 cat >> confdefs.h
<<\EOF
9679 #define HAVE_BROKEN_READDIR 1
9684 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9685 echo "configure:9686: checking for utimbuf" >&5
9686 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9690 cat > conftest.
$ac_ext <<EOF
9691 #line 9692 "configure"
9692 #include "confdefs.h"
9693 #include <sys/types.h>
9696 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9699 if { (eval echo configure
:9700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9701 samba_cv_HAVE_UTIMBUF
=yes
9703 echo "configure: failed program was:" >&5
9704 cat conftest.
$ac_ext >&5
9706 samba_cv_HAVE_UTIMBUF
=no
9711 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9712 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9713 cat >> confdefs.h
<<\EOF
9714 #define HAVE_UTIMBUF 1
9720 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9723 echo "configure:9724: checking for $ac_func" >&5
9724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9727 cat > conftest.
$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func(); below. */
9733 /* Override any gcc2 internal prototype to avoid an error. */
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9740 /* The GNU C library defines this for functions which it implements
9741 to always fail with ENOSYS. Some functions are actually named
9742 something starting with __ and the normal name is an alias. */
9743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9751 if { (eval echo configure
:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9753 eval "ac_cv_func_$ac_func=yes"
9755 echo "configure: failed program was:" >&5
9756 cat conftest.
$ac_ext >&5
9758 eval "ac_cv_func_$ac_func=no"
9763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9764 echo "$ac_t""yes" 1>&6
9765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9766 cat >> confdefs.h
<<EOF
9767 #define $ac_tr_func 1
9771 echo "$ac_t""no" 1>&6
9776 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9777 echo "configure:9778: checking for ut_name in utmp" >&5
9778 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9782 cat > conftest.
$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 #include <sys/types.h>
9788 struct utmp ut; ut.ut_name[0] = 'a';
9791 if { (eval echo configure
:9792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9793 samba_cv_HAVE_UT_UT_NAME
=yes
9795 echo "configure: failed program was:" >&5
9796 cat conftest.
$ac_ext >&5
9798 samba_cv_HAVE_UT_UT_NAME
=no
9803 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9804 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9805 cat >> confdefs.h
<<\EOF
9806 #define HAVE_UT_UT_NAME 1
9811 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9812 echo "configure:9813: checking for ut_user in utmp" >&5
9813 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9814 echo $ac_n "(cached) $ac_c" 1>&6
9817 cat > conftest.
$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 #include <sys/types.h>
9823 struct utmp ut; ut.ut_user[0] = 'a';
9826 if { (eval echo configure
:9827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9828 samba_cv_HAVE_UT_UT_USER
=yes
9830 echo "configure: failed program was:" >&5
9831 cat conftest.
$ac_ext >&5
9833 samba_cv_HAVE_UT_UT_USER
=no
9838 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9839 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9840 cat >> confdefs.h
<<\EOF
9841 #define HAVE_UT_UT_USER 1
9846 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9847 echo "configure:9848: checking for ut_id in utmp" >&5
9848 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9849 echo $ac_n "(cached) $ac_c" 1>&6
9852 cat > conftest.
$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 #include <sys/types.h>
9858 struct utmp ut; ut.ut_id[0] = 'a';
9861 if { (eval echo configure
:9862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9863 samba_cv_HAVE_UT_UT_ID
=yes
9865 echo "configure: failed program was:" >&5
9866 cat conftest.
$ac_ext >&5
9868 samba_cv_HAVE_UT_UT_ID
=no
9873 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9874 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9875 cat >> confdefs.h
<<\EOF
9876 #define HAVE_UT_UT_ID 1
9881 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9882 echo "configure:9883: checking for ut_host in utmp" >&5
9883 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9884 echo $ac_n "(cached) $ac_c" 1>&6
9887 cat > conftest.
$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9890 #include <sys/types.h>
9893 struct utmp ut; ut.ut_host[0] = 'a';
9896 if { (eval echo configure
:9897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9898 samba_cv_HAVE_UT_UT_HOST
=yes
9900 echo "configure: failed program was:" >&5
9901 cat conftest.
$ac_ext >&5
9903 samba_cv_HAVE_UT_UT_HOST
=no
9908 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9909 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9910 cat >> confdefs.h
<<\EOF
9911 #define HAVE_UT_UT_HOST 1
9916 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9917 echo "configure:9918: checking for ut_time in utmp" >&5
9918 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9922 cat > conftest.
$ac_ext <<EOF
9923 #line 9924 "configure"
9924 #include "confdefs.h"
9925 #include <sys/types.h>
9928 struct utmp ut; time_t t; ut.ut_time = t;
9931 if { (eval echo configure
:9932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9933 samba_cv_HAVE_UT_UT_TIME
=yes
9935 echo "configure: failed program was:" >&5
9936 cat conftest.
$ac_ext >&5
9938 samba_cv_HAVE_UT_UT_TIME
=no
9943 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9944 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9945 cat >> confdefs.h
<<\EOF
9946 #define HAVE_UT_UT_TIME 1
9951 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9952 echo "configure:9953: checking for ut_tv in utmp" >&5
9953 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9957 cat > conftest.
$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 #include <sys/types.h>
9963 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9966 if { (eval echo configure
:9967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9968 samba_cv_HAVE_UT_UT_TV
=yes
9970 echo "configure: failed program was:" >&5
9971 cat conftest.
$ac_ext >&5
9973 samba_cv_HAVE_UT_UT_TV
=no
9978 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9979 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9980 cat >> confdefs.h
<<\EOF
9981 #define HAVE_UT_UT_TV 1
9986 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9987 echo "configure:9988: checking for ut_type in utmp" >&5
9988 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9992 cat > conftest.
$ac_ext <<EOF
9993 #line 9994 "configure"
9994 #include "confdefs.h"
9995 #include <sys/types.h>
9998 struct utmp ut; ut.ut_type = 0;
10001 if { (eval echo configure
:10002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10003 samba_cv_HAVE_UT_UT_TYPE
=yes
10005 echo "configure: failed program was:" >&5
10006 cat conftest.
$ac_ext >&5
10008 samba_cv_HAVE_UT_UT_TYPE
=no
10013 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10014 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10015 cat >> confdefs.h
<<\EOF
10016 #define HAVE_UT_UT_TYPE 1
10021 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10022 echo "configure:10023: checking for ut_pid in utmp" >&5
10023 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10024 echo $ac_n "(cached) $ac_c" 1>&6
10027 cat > conftest.
$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10033 struct utmp ut; ut.ut_pid = 0;
10036 if { (eval echo configure
:10037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10038 samba_cv_HAVE_UT_UT_PID
=yes
10040 echo "configure: failed program was:" >&5
10041 cat conftest.
$ac_ext >&5
10043 samba_cv_HAVE_UT_UT_PID
=no
10048 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10049 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10050 cat >> confdefs.h
<<\EOF
10051 #define HAVE_UT_UT_PID 1
10056 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10057 echo "configure:10058: checking for ut_exit in utmp" >&5
10058 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10062 cat > conftest.
$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 #include <sys/types.h>
10068 struct utmp ut; ut.ut_exit.e_exit = 0;
10071 if { (eval echo configure
:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10073 samba_cv_HAVE_UT_UT_EXIT
=yes
10075 echo "configure: failed program was:" >&5
10076 cat conftest.
$ac_ext >&5
10078 samba_cv_HAVE_UT_UT_EXIT
=no
10083 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10084 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10085 cat >> confdefs.h
<<\EOF
10086 #define HAVE_UT_UT_EXIT 1
10091 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10092 echo "configure:10093: checking for ut_addr in utmp" >&5
10093 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10094 echo $ac_n "(cached) $ac_c" 1>&6
10097 cat > conftest.
$ac_ext <<EOF
10098 #line 10099 "configure"
10099 #include "confdefs.h"
10100 #include <sys/types.h>
10103 struct utmp ut; ut.ut_addr = 0;
10106 if { (eval echo configure
:10107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10108 samba_cv_HAVE_UT_UT_ADDR
=yes
10110 echo "configure: failed program was:" >&5
10111 cat conftest.
$ac_ext >&5
10113 samba_cv_HAVE_UT_UT_ADDR
=no
10118 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10119 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10120 cat >> confdefs.h
<<\EOF
10121 #define HAVE_UT_UT_ADDR 1
10126 if test x
$ac_cv_func_pututline = xyes
; then
10127 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10128 echo "configure:10129: checking whether pututline returns pointer" >&5
10129 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10130 echo $ac_n "(cached) $ac_c" 1>&6
10133 cat > conftest.
$ac_ext <<EOF
10134 #line 10135 "configure"
10135 #include "confdefs.h"
10136 #include <sys/types.h>
10139 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10142 if { (eval echo configure
:10143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10144 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10146 echo "configure: failed program was:" >&5
10147 cat conftest.
$ac_ext >&5
10149 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10154 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10155 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10156 cat >> confdefs.h
<<\EOF
10157 #define PUTUTLINE_RETURNS_UTMP 1
10163 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10164 echo "configure:10165: checking for ut_syslen in utmpx" >&5
10165 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10169 cat > conftest.
$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <sys/types.h>
10175 struct utmpx ux; ux.ut_syslen = 0;
10178 if { (eval echo configure
:10179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10180 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10182 echo "configure: failed program was:" >&5
10183 cat conftest.
$ac_ext >&5
10185 samba_cv_HAVE_UX_UT_SYSLEN
=no
10190 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10191 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10192 cat >> confdefs.h
<<\EOF
10193 #define HAVE_UX_UT_SYSLEN 1
10198 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10199 echo "configure:10200: checking for Linux kernel oplocks" >&5
10200 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10201 echo $ac_n "(cached) $ac_c" 1>&6
10204 if test "$cross_compiling" = yes; then
10205 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10207 cat > conftest.
$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10211 #include <sys/types.h>
10214 #define F_GETLEASE 1025
10217 int fd = open("/dev/null", O_RDONLY);
10218 return fcntl(fd, F_GETLEASE, 0) == -1;
10222 if { (eval echo configure
:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10224 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10226 echo "configure: failed program was:" >&5
10227 cat conftest.
$ac_ext >&5
10229 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10236 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10237 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10238 cat >> confdefs.h
<<\EOF
10239 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10244 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10245 echo "configure:10246: checking for kernel change notify support" >&5
10246 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10250 if test "$cross_compiling" = yes; then
10251 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10253 cat > conftest.
$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10257 #include <sys/types.h>
10259 #include <signal.h>
10261 #define F_NOTIFY 1026
10264 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10268 if { (eval echo configure
:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10270 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10272 echo "configure: failed program was:" >&5
10273 cat conftest.
$ac_ext >&5
10275 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10282 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10283 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10284 cat >> confdefs.h
<<\EOF
10285 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10290 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10291 echo "configure:10292: checking for kernel share modes" >&5
10292 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10293 echo $ac_n "(cached) $ac_c" 1>&6
10296 if test "$cross_compiling" = yes; then
10297 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10299 cat > conftest.
$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10303 #include <sys/types.h>
10305 #include <signal.h>
10306 #include <sys/file.h>
10308 #define LOCK_MAND 32
10309 #define LOCK_READ 64
10312 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10316 if { (eval echo configure
:10317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10318 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10320 echo "configure: failed program was:" >&5
10321 cat conftest.
$ac_ext >&5
10323 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10330 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10331 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10332 cat >> confdefs.h
<<\EOF
10333 #define HAVE_KERNEL_SHARE_MODES 1
10341 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10342 echo "configure:10343: checking for IRIX kernel oplock type definitions" >&5
10343 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10347 cat > conftest.
$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include <sys/types.h>
10353 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10356 if { (eval echo configure
:10357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10358 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10360 echo "configure: failed program was:" >&5
10361 cat conftest.
$ac_ext >&5
10363 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10368 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10369 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10370 cat >> confdefs.h
<<\EOF
10371 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10376 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10377 echo "configure:10378: checking for irix specific capabilities" >&5
10378 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10382 if test "$cross_compiling" = yes; then
10383 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10385 cat > conftest.
$ac_ext <<EOF
10386 #line 10387 "configure"
10387 #include "confdefs.h"
10388 #include <sys/types.h>
10389 #include <sys/capability.h>
10392 if ((cap = cap_get_proc()) == NULL)
10394 cap->cap_effective |= CAP_NETWORK_MGT;
10395 cap->cap_inheritable |= CAP_NETWORK_MGT;
10401 if { (eval echo configure
:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10403 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10405 echo "configure: failed program was:" >&5
10406 cat conftest.
$ac_ext >&5
10408 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10415 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10416 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10417 cat >> confdefs.h
<<\EOF
10418 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10424 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10425 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10428 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10429 echo "configure:10430: checking for int16 typedef included by rpc/rpc.h" >&5
10430 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10434 cat > conftest.
$ac_ext <<EOF
10435 #line 10436 "configure"
10436 #include "confdefs.h"
10437 #include <sys/types.h>
10438 #if defined(HAVE_RPC_RPC_H)
10439 #include <rpc/rpc.h>
10445 if { (eval echo configure
:10446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10447 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10449 echo "configure: failed program was:" >&5
10450 cat conftest.
$ac_ext >&5
10452 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10457 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10458 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10459 cat >> confdefs.h
<<\EOF
10460 #define HAVE_INT16_FROM_RPC_RPC_H 1
10465 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10466 echo "configure:10467: checking for uint16 typedef included by rpc/rpc.h" >&5
10467 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10471 cat > conftest.
$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 #include <sys/types.h>
10475 #if defined(HAVE_RPC_RPC_H)
10476 #include <rpc/rpc.h>
10482 if { (eval echo configure
:10483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10484 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10486 echo "configure: failed program was:" >&5
10487 cat conftest.
$ac_ext >&5
10489 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10494 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10495 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10496 cat >> confdefs.h
<<\EOF
10497 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10502 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10503 echo "configure:10504: checking for int32 typedef included by rpc/rpc.h" >&5
10504 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10505 echo $ac_n "(cached) $ac_c" 1>&6
10508 cat > conftest.
$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10511 #include <sys/types.h>
10512 #if defined(HAVE_RPC_RPC_H)
10513 #include <rpc/rpc.h>
10519 if { (eval echo configure
:10520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10521 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10523 echo "configure: failed program was:" >&5
10524 cat conftest.
$ac_ext >&5
10526 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10531 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10532 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10533 cat >> confdefs.h
<<\EOF
10534 #define HAVE_INT32_FROM_RPC_RPC_H 1
10539 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10540 echo "configure:10541: checking for uint32 typedef included by rpc/rpc.h" >&5
10541 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10545 cat > conftest.
$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 #include <sys/types.h>
10549 #if defined(HAVE_RPC_RPC_H)
10550 #include <rpc/rpc.h>
10556 if { (eval echo configure
:10557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10558 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10560 echo "configure: failed program was:" >&5
10561 cat conftest.
$ac_ext >&5
10563 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10568 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10569 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10570 cat >> confdefs.h
<<\EOF
10571 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10577 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10578 echo "configure:10579: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10579 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10580 echo $ac_n "(cached) $ac_c" 1>&6
10583 cat > conftest.
$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10586 #include <sys/types.h>
10587 #ifdef HAVE_SYS_SECURITY_H
10588 #include <sys/security.h>
10590 #endif /* HAVE_SYS_SECURITY_H */
10591 #if defined(HAVE_RPC_RPC_H)
10592 #include <rpc/rpc.h>
10598 if { (eval echo configure
:10599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10600 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10602 echo "configure: failed program was:" >&5
10603 cat conftest.
$ac_ext >&5
10605 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10610 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10611 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10612 cat >> confdefs.h
<<\EOF
10613 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10618 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10619 echo "configure:10620: checking for test routines" >&5
10620 if test "$cross_compiling" = yes; then
10621 echo "configure: warning: cannot run when cross-compiling" 1>&2
10623 cat > conftest.
$ac_ext <<EOF
10624 #line 10625 "configure"
10625 #include "confdefs.h"
10626 #include "${srcdir-.}/tests/trivial.c"
10628 if { (eval echo configure
:10629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10630 echo "$ac_t""yes" 1>&6
10632 echo "configure: failed program was:" >&5
10633 cat conftest.
$ac_ext >&5
10635 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10641 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10642 echo "configure:10643: checking for ftruncate extend" >&5
10643 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10644 echo $ac_n "(cached) $ac_c" 1>&6
10647 if test "$cross_compiling" = yes; then
10648 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10650 cat > conftest.
$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 #include "${srcdir-.}/tests/ftruncate.c"
10655 if { (eval echo configure
:10656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10657 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10659 echo "configure: failed program was:" >&5
10660 cat conftest.
$ac_ext >&5
10662 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10669 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10670 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10671 cat >> confdefs.h
<<\EOF
10672 #define HAVE_FTRUNCATE_EXTEND 1
10677 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10678 echo "configure:10679: checking for broken getgroups" >&5
10679 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10680 echo $ac_n "(cached) $ac_c" 1>&6
10683 if test "$cross_compiling" = yes; then
10684 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10686 cat > conftest.
$ac_ext <<EOF
10687 #line 10688 "configure"
10688 #include "confdefs.h"
10689 #include "${srcdir-.}/tests/getgroups.c"
10691 if { (eval echo configure
:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10693 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10695 echo "configure: failed program was:" >&5
10696 cat conftest.
$ac_ext >&5
10698 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10705 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10706 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10707 cat >> confdefs.h
<<\EOF
10708 #define HAVE_BROKEN_GETGROUPS 1
10713 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10714 echo "configure:10715: checking whether getpass should be replaced" >&5
10715 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10719 SAVE_CPPFLAGS
="$CPPFLAGS"
10720 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/popt -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10721 cat > conftest.
$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10725 #define REPLACE_GETPASS 1
10726 #define NO_CONFIG_H 1
10727 #define main dont_declare_main
10728 #include "${srcdir-.}/lib/getsmbpass.c"
10735 if { (eval echo configure
:10736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10737 samba_cv_REPLACE_GETPASS
=yes
10739 echo "configure: failed program was:" >&5
10740 cat conftest.
$ac_ext >&5
10742 samba_cv_REPLACE_GETPASS
=no
10745 CPPFLAGS
="$SAVE_CPPFLAGS"
10749 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10750 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10751 cat >> confdefs.h
<<\EOF
10752 #define REPLACE_GETPASS 1
10757 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10758 echo "configure:10759: checking for broken inet_ntoa" >&5
10759 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10763 if test "$cross_compiling" = yes; then
10764 samba_cv_REPLACE_INET_NTOA
=cross
10766 cat > conftest.
$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10771 #include <sys/types.h>
10772 #include <netinet/in.h>
10773 #ifdef HAVE_ARPA_INET_H
10774 #include <arpa/inet.h>
10776 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10777 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10778 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10781 if { (eval echo configure
:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10783 samba_cv_REPLACE_INET_NTOA
=yes
10785 echo "configure: failed program was:" >&5
10786 cat conftest.
$ac_ext >&5
10788 samba_cv_REPLACE_INET_NTOA
=no
10795 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10796 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10797 cat >> confdefs.h
<<\EOF
10798 #define REPLACE_INET_NTOA 1
10803 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10804 echo "configure:10805: checking for secure mkstemp" >&5
10805 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10809 if test "$cross_compiling" = yes; then
10810 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10812 cat > conftest.
$ac_ext <<EOF
10813 #line 10814 "configure"
10814 #include "confdefs.h"
10815 #include <stdlib.h>
10816 #include <sys/types.h>
10817 #include <sys/stat.h>
10818 #include <unistd.h>
10821 char tpl[20]="/tmp/test.XXXXXX";
10822 int fd = mkstemp(tpl);
10823 if (fd == -1) exit(1);
10825 if (fstat(fd, &st) != 0) exit(1);
10826 if ((st.st_mode & 0777) != 0600) exit(1);
10830 if { (eval echo configure
:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10832 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10834 echo "configure: failed program was:" >&5
10835 cat conftest.
$ac_ext >&5
10837 samba_cv_HAVE_SECURE_MKSTEMP
=no
10844 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10845 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10846 cat >> confdefs.h
<<\EOF
10847 #define HAVE_SECURE_MKSTEMP 1
10852 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10853 echo "configure:10854: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10854 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10858 if test "$cross_compiling" = yes; then
10859 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10861 cat > conftest.
$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 #include <unistd.h>
10865 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10867 if { (eval echo configure
:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10869 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10871 echo "configure: failed program was:" >&5
10872 cat conftest.
$ac_ext >&5
10874 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10881 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10882 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10883 cat >> confdefs.h
<<\EOF
10884 #define SYSCONF_SC_NGROUPS_MAX 1
10889 echo $ac_n "checking for root""... $ac_c" 1>&6
10890 echo "configure:10891: checking for root" >&5
10891 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10895 if test "$cross_compiling" = yes; then
10896 samba_cv_HAVE_ROOT
=cross
10898 cat > conftest.
$ac_ext <<EOF
10899 #line 10900 "configure"
10900 #include "confdefs.h"
10901 main() { exit(getuid() != 0); }
10903 if { (eval echo configure
:10904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10905 samba_cv_HAVE_ROOT
=yes
10907 echo "configure: failed program was:" >&5
10908 cat conftest.
$ac_ext >&5
10910 samba_cv_HAVE_ROOT
=no
10917 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10918 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10919 cat >> confdefs.h
<<\EOF
10920 #define HAVE_ROOT 1
10924 echo "configure: warning: running as non-root will disable some tests" 1>&2
10928 # look for a method of finding the list of network interfaces
10930 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10931 echo "configure:10932: checking for iface AIX" >&5
10932 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10936 if test "$cross_compiling" = yes; then
10937 samba_cv_HAVE_IFACE_AIX
=cross
10939 cat > conftest.
$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10943 #define HAVE_IFACE_AIX 1
10944 #define AUTOCONF_TEST 1
10945 #include "confdefs.h"
10946 #include "${srcdir-.}/lib/interfaces.c"
10948 if { (eval echo configure
:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10950 samba_cv_HAVE_IFACE_AIX
=yes
10952 echo "configure: failed program was:" >&5
10953 cat conftest.
$ac_ext >&5
10955 samba_cv_HAVE_IFACE_AIX
=no
10962 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10963 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10964 iface
=yes;cat >> confdefs.h
<<\EOF
10965 #define HAVE_IFACE_AIX 1
10970 if test $iface = no
; then
10971 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10972 echo "configure:10973: checking for iface ifconf" >&5
10973 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10974 echo $ac_n "(cached) $ac_c" 1>&6
10977 if test "$cross_compiling" = yes; then
10978 samba_cv_HAVE_IFACE_IFCONF
=cross
10980 cat > conftest.
$ac_ext <<EOF
10981 #line 10982 "configure"
10982 #include "confdefs.h"
10984 #define HAVE_IFACE_IFCONF 1
10985 #define AUTOCONF_TEST 1
10986 #include "confdefs.h"
10987 #include "${srcdir-.}/lib/interfaces.c"
10989 if { (eval echo configure
:10990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10991 samba_cv_HAVE_IFACE_IFCONF
=yes
10993 echo "configure: failed program was:" >&5
10994 cat conftest.
$ac_ext >&5
10996 samba_cv_HAVE_IFACE_IFCONF
=no
11003 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11004 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11005 iface
=yes;cat >> confdefs.h
<<\EOF
11006 #define HAVE_IFACE_IFCONF 1
11012 if test $iface = no
; then
11013 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11014 echo "configure:11015: checking for iface ifreq" >&5
11015 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11019 if test "$cross_compiling" = yes; then
11020 samba_cv_HAVE_IFACE_IFREQ
=cross
11022 cat > conftest.
$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11026 #define HAVE_IFACE_IFREQ 1
11027 #define AUTOCONF_TEST 1
11028 #include "confdefs.h"
11029 #include "${srcdir-.}/lib/interfaces.c"
11031 if { (eval echo configure
:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11033 samba_cv_HAVE_IFACE_IFREQ
=yes
11035 echo "configure: failed program was:" >&5
11036 cat conftest.
$ac_ext >&5
11038 samba_cv_HAVE_IFACE_IFREQ
=no
11045 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11046 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11047 iface
=yes;cat >> confdefs.h
<<\EOF
11048 #define HAVE_IFACE_IFREQ 1
11055 ################################################
11056 # look for a method of setting the effective uid
11058 if test $seteuid = no
; then
11059 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11060 echo "configure:11061: checking for setresuid" >&5
11061 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11062 echo $ac_n "(cached) $ac_c" 1>&6
11065 if test "$cross_compiling" = yes; then
11066 samba_cv_USE_SETRESUID
=cross
11068 cat > conftest.
$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11072 #define AUTOCONF_TEST 1
11073 #define USE_SETRESUID 1
11074 #include "confdefs.h"
11075 #include "${srcdir-.}/lib/util_sec.c"
11077 if { (eval echo configure
:11078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11079 samba_cv_USE_SETRESUID
=yes
11081 echo "configure: failed program was:" >&5
11082 cat conftest.
$ac_ext >&5
11084 samba_cv_USE_SETRESUID
=no
11091 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11092 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11093 seteuid
=yes;cat >> confdefs.h
<<\EOF
11094 #define USE_SETRESUID 1
11101 if test $seteuid = no
; then
11102 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11103 echo "configure:11104: checking for setreuid" >&5
11104 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11105 echo $ac_n "(cached) $ac_c" 1>&6
11108 if test "$cross_compiling" = yes; then
11109 samba_cv_USE_SETREUID
=cross
11111 cat > conftest.
$ac_ext <<EOF
11112 #line 11113 "configure"
11113 #include "confdefs.h"
11115 #define AUTOCONF_TEST 1
11116 #define USE_SETREUID 1
11117 #include "confdefs.h"
11118 #include "${srcdir-.}/lib/util_sec.c"
11120 if { (eval echo configure
:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11122 samba_cv_USE_SETREUID
=yes
11124 echo "configure: failed program was:" >&5
11125 cat conftest.
$ac_ext >&5
11127 samba_cv_USE_SETREUID
=no
11134 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11135 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11136 seteuid
=yes;cat >> confdefs.h
<<\EOF
11137 #define USE_SETREUID 1
11143 if test $seteuid = no
; then
11144 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11145 echo "configure:11146: checking for seteuid" >&5
11146 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11150 if test "$cross_compiling" = yes; then
11151 samba_cv_USE_SETEUID
=cross
11153 cat > conftest.
$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11157 #define AUTOCONF_TEST 1
11158 #define USE_SETEUID 1
11159 #include "confdefs.h"
11160 #include "${srcdir-.}/lib/util_sec.c"
11162 if { (eval echo configure
:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11164 samba_cv_USE_SETEUID
=yes
11166 echo "configure: failed program was:" >&5
11167 cat conftest.
$ac_ext >&5
11169 samba_cv_USE_SETEUID
=no
11176 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11177 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11178 seteuid
=yes;cat >> confdefs.h
<<\EOF
11179 #define USE_SETEUID 1
11185 if test $seteuid = no
; then
11186 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11187 echo "configure:11188: checking for setuidx" >&5
11188 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11189 echo $ac_n "(cached) $ac_c" 1>&6
11192 if test "$cross_compiling" = yes; then
11193 samba_cv_USE_SETUIDX
=cross
11195 cat > conftest.
$ac_ext <<EOF
11196 #line 11197 "configure"
11197 #include "confdefs.h"
11199 #define AUTOCONF_TEST 1
11200 #define USE_SETUIDX 1
11201 #include "confdefs.h"
11202 #include "${srcdir-.}/lib/util_sec.c"
11204 if { (eval echo configure
:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11206 samba_cv_USE_SETUIDX
=yes
11208 echo "configure: failed program was:" >&5
11209 cat conftest.
$ac_ext >&5
11211 samba_cv_USE_SETUIDX
=no
11218 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11219 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11220 seteuid
=yes;cat >> confdefs.h
<<\EOF
11221 #define USE_SETUIDX 1
11228 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11229 echo "configure:11230: checking for working mmap" >&5
11230 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11231 echo $ac_n "(cached) $ac_c" 1>&6
11234 if test "$cross_compiling" = yes; then
11235 samba_cv_HAVE_MMAP
=cross
11237 cat > conftest.
$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11240 #include "${srcdir-.}/tests/shared_mmap.c"
11242 if { (eval echo configure
:11243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11244 samba_cv_HAVE_MMAP
=yes
11246 echo "configure: failed program was:" >&5
11247 cat conftest.
$ac_ext >&5
11249 samba_cv_HAVE_MMAP
=no
11256 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11257 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11258 cat >> confdefs.h
<<\EOF
11259 #define HAVE_MMAP 1
11264 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11265 echo "configure:11266: checking for ftruncate needs root" >&5
11266 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11270 if test "$cross_compiling" = yes; then
11271 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11273 cat > conftest.
$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11276 #include "${srcdir-.}/tests/ftruncroot.c"
11278 if { (eval echo configure
:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11280 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11282 echo "configure: failed program was:" >&5
11283 cat conftest.
$ac_ext >&5
11285 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11292 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11293 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11294 cat >> confdefs.h
<<\EOF
11295 #define FTRUNCATE_NEEDS_ROOT 1
11300 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11301 echo "configure:11302: checking for fcntl locking" >&5
11302 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11303 echo $ac_n "(cached) $ac_c" 1>&6
11306 if test "$cross_compiling" = yes; then
11307 samba_cv_HAVE_FCNTL_LOCK
=cross
11309 cat > conftest.
$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 #include "${srcdir-.}/tests/fcntl_lock.c"
11314 if { (eval echo configure
:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11316 samba_cv_HAVE_FCNTL_LOCK
=yes
11318 echo "configure: failed program was:" >&5
11319 cat conftest.
$ac_ext >&5
11321 samba_cv_HAVE_FCNTL_LOCK
=no
11328 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11329 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11330 cat >> confdefs.h
<<\EOF
11331 #define HAVE_FCNTL_LOCK 1
11336 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11337 echo "configure:11338: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11338 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11342 if test "$cross_compiling" = yes; then
11343 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11345 cat > conftest.
$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 #include "${srcdir-.}/tests/fcntl_lock64.c"
11350 if { (eval echo configure
:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11352 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11354 echo "configure: failed program was:" >&5
11355 cat conftest.
$ac_ext >&5
11357 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11364 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11365 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11366 cat >> confdefs.h
<<\EOF
11367 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11374 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11375 echo "configure:11376: checking for 64 bit fcntl locking" >&5
11376 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11377 echo $ac_n "(cached) $ac_c" 1>&6
11380 if test "$cross_compiling" = yes; then
11381 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11383 cat > conftest.
$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11387 #if defined(HAVE_UNISTD_H)
11388 #include <unistd.h>
11391 #include <stdlib.h>
11393 #ifdef HAVE_FCNTL_H
11397 #ifdef HAVE_SYS_FCNTL_H
11398 #include <sys/fcntl.h>
11400 main() { struct flock64 fl64;
11401 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11408 if { (eval echo configure
:11409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11410 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11412 echo "configure: failed program was:" >&5
11413 cat conftest.
$ac_ext >&5
11415 samba_cv_HAVE_STRUCT_FLOCK64
=no
11422 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11424 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11425 cat >> confdefs.h
<<\EOF
11426 #define HAVE_STRUCT_FLOCK64 1
11432 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11433 echo "configure:11434: checking for st_blocks in struct stat" >&5
11434 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11438 cat > conftest.
$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11441 #include <sys/types.h>
11442 #include <sys/stat.h>
11443 #include <unistd.h>
11445 struct stat st; st.st_blocks = 0;
11448 if { (eval echo configure
:11449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11450 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11452 echo "configure: failed program was:" >&5
11453 cat conftest.
$ac_ext >&5
11455 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11460 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11461 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11462 cat >> confdefs.h
<<\EOF
11463 #define HAVE_STAT_ST_BLOCKS 1
11470 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11471 echo "configure:11472: checking for broken RedHat 7.2 system header files" >&5
11472 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11476 cat > conftest.
$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11480 #ifdef HAVE_SYS_VFS_H
11481 #include <sys/vfs.h>
11483 #ifdef HAVE_SYS_CAPABILITY_H
11484 #include <sys/capability.h>
11491 if { (eval echo configure
:11492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11493 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11495 echo "configure: failed program was:" >&5
11496 cat conftest.
$ac_ext >&5
11498 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11503 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11504 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11505 cat >> confdefs.h
<<\EOF
11506 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11513 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11514 echo "configure:11515: checking for broken nisplus include files" >&5
11515 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11516 echo $ac_n "(cached) $ac_c" 1>&6
11519 cat > conftest.
$ac_ext <<EOF
11520 #line 11521 "configure"
11521 #include "confdefs.h"
11522 #include <sys/acl.h>
11523 #if defined(HAVE_RPCSVC_NIS_H)
11524 #include <rpcsvc/nis.h>
11530 if { (eval echo configure
:11531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11532 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11534 echo "configure: failed program was:" >&5
11535 cat conftest.
$ac_ext >&5
11537 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11542 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11543 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11544 cat >> confdefs.h
<<\EOF
11545 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11551 #################################################
11552 # check for smbwrapper support
11553 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11554 echo "configure:11555: checking whether to use smbwrapper" >&5
11555 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11556 if test "${with_smbwrapper+set}" = set; then
11557 withval
="$with_smbwrapper"
11560 echo "$ac_t""yes" 1>&6
11561 cat >> confdefs.h
<<\EOF
11562 #define WITH_SMBWRAPPER 1
11565 WRAPPROG
="bin/smbsh"
11566 WRAP
="bin/smbwrapper.$SHLIBEXT"
11568 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11571 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11574 # Conditions under which smbwrapper should not be built.
11576 if test x
$PICFLAG = x
; then
11577 echo No support
for PIC code
- disabling smbwrapper and smbsh
11581 elif test x
$ac_cv_func_syscall = xno
; then
11582 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11589 echo "$ac_t""no" 1>&6
11593 echo "$ac_t""no" 1>&6
11598 #################################################
11599 # check for the AFS filesystem
11600 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11601 echo "configure:11602: checking whether to use AFS" >&5
11602 # Check whether --with-afs or --without-afs was given.
11603 if test "${with_afs+set}" = set; then
11604 withval
="$with_afs"
11607 echo "$ac_t""yes" 1>&6
11608 cat >> confdefs.h
<<\EOF
11614 echo "$ac_t""no" 1>&6
11618 echo "$ac_t""no" 1>&6
11624 #################################################
11625 # check for the DFS auth system
11626 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11627 echo "configure:11628: checking whether to use DCE/DFS auth" >&5
11628 # Check whether --with-dfs or --without-dfs was given.
11629 if test "${with_dfs+set}" = set; then
11630 withval
="$with_dfs"
11633 echo "$ac_t""yes" 1>&6
11634 cat >> confdefs.h
<<\EOF
11640 echo "$ac_t""no" 1>&6
11644 echo "$ac_t""no" 1>&6
11649 #################################################
11650 # check for Kerberos IV auth system
11651 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11652 echo "configure:11653: checking whether to use Kerberos IV" >&5
11653 # Check whether --with-krb4 or --without-krb4 was given.
11654 if test "${with_krb4+set}" = set; then
11655 withval
="$with_krb4"
11658 echo "$ac_t""yes" 1>&6
11659 cat >> confdefs.h
<<\EOF
11660 #define KRB4_AUTH 1
11663 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11664 echo "configure:11665: checking for dn_expand in -lresolv" >&5
11665 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11669 ac_save_LIBS
="$LIBS"
11670 LIBS
="-lresolv $LIBS"
11671 cat > conftest.
$ac_ext <<EOF
11672 #line 11673 "configure"
11673 #include "confdefs.h"
11674 /* Override any gcc2 internal prototype to avoid an error. */
11675 /* We use char because int might match the return type of a gcc2
11676 builtin and then its argument prototype would still apply. */
11683 if { (eval echo configure
:11684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11685 eval "ac_cv_lib_$ac_lib_var=yes"
11687 echo "configure: failed program was:" >&5
11688 cat conftest.
$ac_ext >&5
11690 eval "ac_cv_lib_$ac_lib_var=no"
11693 LIBS
="$ac_save_LIBS"
11696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11697 echo "$ac_t""yes" 1>&6
11698 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11699 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11700 cat >> confdefs.h
<<EOF
11701 #define $ac_tr_lib 1
11704 LIBS
="-lresolv $LIBS"
11707 echo "$ac_t""no" 1>&6
11710 LIBS
="$LIBS -lkrb -ldes"
11711 CFLAGS
="$CFLAGS -I$withval/include"
11712 LDFLAGS
="$LDFLAGS -L$withval/lib"
11715 echo "$ac_t""no" 1>&6
11719 echo "$ac_t""no" 1>&6
11724 #################################################
11725 # check for Kerberos 5 auth system
11726 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11727 echo "configure:11728: checking whether to use Kerberos 5" >&5
11728 # Check whether --with-krb5 or --without-krb5 was given.
11729 if test "${with_krb5+set}" = set; then
11730 withval
="$with_krb5"
11733 echo "$ac_t""yes" 1>&6
11734 cat >> confdefs.h
<<\EOF
11735 #define KRB5_AUTH 1
11738 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11739 CFLAGS
="$CFLAGS -I$withval/include"
11740 LDFLAGS
="$LDFLAGS -L$withval/lib"
11743 echo "$ac_t""no" 1>&6
11747 echo "$ac_t""no" 1>&6
11752 #################################################
11753 # check for automount support
11754 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11755 echo "configure:11756: checking whether to use AUTOMOUNT" >&5
11756 # Check whether --with-automount or --without-automount was given.
11757 if test "${with_automount+set}" = set; then
11758 withval
="$with_automount"
11761 echo "$ac_t""yes" 1>&6
11762 cat >> confdefs.h
<<\EOF
11763 #define WITH_AUTOMOUNT 1
11768 echo "$ac_t""no" 1>&6
11772 echo "$ac_t""no" 1>&6
11777 #################################################
11778 # check for smbmount support
11779 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11780 echo "configure:11781: checking whether to use SMBMOUNT" >&5
11781 # Check whether --with-smbmount or --without-smbmount was given.
11782 if test "${with_smbmount+set}" = set; then
11783 withval
="$with_smbmount"
11788 echo "$ac_t""yes" 1>&6
11789 cat >> confdefs.h
<<\EOF
11790 #define WITH_SMBMOUNT 1
11793 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11796 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11801 echo "$ac_t""no" 1>&6
11806 echo "$ac_t""no" 1>&6
11813 #################################################
11814 # check for a PAM password database
11815 with_pam_for_crypt
=no
11816 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11817 echo "configure:11818: checking whether to use PAM password database" >&5
11818 # Check whether --with-pam or --without-pam was given.
11819 if test "${with_pam+set}" = set; then
11820 withval
="$with_pam"
11823 echo "$ac_t""yes" 1>&6
11824 cat >> confdefs.h
<<\EOF
11829 with_pam_for_crypt
=yes
11832 echo "$ac_t""no" 1>&6
11836 echo "$ac_t""no" 1>&6
11841 # we can't build a pam module if we don't have pam.
11842 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11843 echo "configure:11844: checking for pam_get_data in -lpam" >&5
11844 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11846 echo $ac_n "(cached) $ac_c" 1>&6
11848 ac_save_LIBS
="$LIBS"
11850 cat > conftest.
$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11853 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856 char pam_get_data();
11862 if { (eval echo configure
:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11864 eval "ac_cv_lib_$ac_lib_var=yes"
11866 echo "configure: failed program was:" >&5
11867 cat conftest.
$ac_ext >&5
11869 eval "ac_cv_lib_$ac_lib_var=no"
11872 LIBS
="$ac_save_LIBS"
11875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11876 echo "$ac_t""yes" 1>&6
11877 cat >> confdefs.h
<<\EOF
11878 #define HAVE_LIBPAM 1
11882 echo "$ac_t""no" 1>&6
11886 #################################################
11887 # check for pam_smbpass support
11888 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11889 echo "configure:11890: checking whether to use pam_smbpass" >&5
11890 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11891 if test "${with_pam_smbpass+set}" = set; then
11892 withval
="$with_pam_smbpass"
11895 echo "$ac_t""yes" 1>&6
11897 # Conditions under which pam_smbpass should not be built.
11899 if test x
$PICFLAG = x
; then
11900 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11902 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11903 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11906 cat >> confdefs.h
<<\EOF
11907 #define WITH_PAM_SMBPASS 1
11910 PAM_MOD
="bin/pam_smbpass.so"
11914 echo "$ac_t""no" 1>&6
11918 echo "$ac_t""no" 1>&6
11924 ###############################################
11925 # test for where we get crypt() from, but only
11927 if test $with_pam_for_crypt = no
; then
11928 for ac_func
in crypt
11930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11931 echo "configure:11932: checking for $ac_func" >&5
11932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11933 echo $ac_n "(cached) $ac_c" 1>&6
11935 cat > conftest.
$ac_ext <<EOF
11936 #line 11937 "configure"
11937 #include "confdefs.h"
11938 /* System header to define __stub macros and hopefully few prototypes,
11939 which can conflict with char $ac_func(); below. */
11940 #include <assert.h>
11941 /* Override any gcc2 internal prototype to avoid an error. */
11942 /* We use char because int might match the return type of a gcc2
11943 builtin and then its argument prototype would still apply. */
11948 /* The GNU C library defines this for functions which it implements
11949 to always fail with ENOSYS. Some functions are actually named
11950 something starting with __ and the normal name is an alias. */
11951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11959 if { (eval echo configure
:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11961 eval "ac_cv_func_$ac_func=yes"
11963 echo "configure: failed program was:" >&5
11964 cat conftest.
$ac_ext >&5
11966 eval "ac_cv_func_$ac_func=no"
11971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11972 echo "$ac_t""yes" 1>&6
11973 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11974 cat >> confdefs.h
<<EOF
11975 #define $ac_tr_func 1
11979 echo "$ac_t""no" 1>&6
11983 if test x
"$ac_cv_func_crypt" = x
"no"; then
11984 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11985 echo "configure:11986: checking for crypt in -lcrypt" >&5
11986 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11988 echo $ac_n "(cached) $ac_c" 1>&6
11990 ac_save_LIBS
="$LIBS"
11991 LIBS
="-lcrypt $LIBS"
11992 cat > conftest.
$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11995 /* Override any gcc2 internal prototype to avoid an error. */
11996 /* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
12004 if { (eval echo configure
:12005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12006 eval "ac_cv_lib_$ac_lib_var=yes"
12008 echo "configure: failed program was:" >&5
12009 cat conftest.
$ac_ext >&5
12011 eval "ac_cv_lib_$ac_lib_var=no"
12014 LIBS
="$ac_save_LIBS"
12017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12018 echo "$ac_t""yes" 1>&6
12019 LIBS
="$LIBS -lcrypt";
12020 cat >> confdefs.h
<<\EOF
12021 #define HAVE_CRYPT 1
12025 echo "$ac_t""no" 1>&6
12032 ## moved after the check for -lcrypt in order to
12033 ## ensure that the necessary libraries are included
12034 ## check checking for truncated salt. Wrapped by the
12035 ## $with_pam_for_crypt variable as above --jerry
12037 if test $with_pam_for_crypt = no
; then
12038 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12039 echo "configure:12040: checking for a crypt that needs truncated salt" >&5
12040 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12041 echo $ac_n "(cached) $ac_c" 1>&6
12044 if test "$cross_compiling" = yes; then
12045 samba_cv_HAVE_TRUNCATED_SALT
=cross
12047 cat > conftest.
$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12050 #include "${srcdir-.}/tests/crypttest.c"
12052 if { (eval echo configure
:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12054 samba_cv_HAVE_TRUNCATED_SALT
=no
12056 echo "configure: failed program was:" >&5
12057 cat conftest.
$ac_ext >&5
12059 samba_cv_HAVE_TRUNCATED_SALT
=yes
12066 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12067 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12068 cat >> confdefs.h
<<\EOF
12069 #define HAVE_TRUNCATED_SALT 1
12076 ########################################################################################
12078 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12080 ########################################################################################
12082 ## set the with_smbpasswd_sam as the default
12083 with_smbpasswd_sam
=yes
12087 #################################################
12088 # check for a TDB password database
12089 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12090 echo "configure:12091: checking whether to use TDB SAM database" >&5
12091 # Check whether --with-tdbsam or --without-tdbsam was given.
12092 if test "${with_tdbsam+set}" = set; then
12093 withval
="$with_tdbsam"
12096 echo "$ac_t""yes" 1>&6
12097 cat >> confdefs.h
<<\EOF
12098 #define WITH_TDB_SAM 1
12101 with_smbpasswd_sam
=no
12104 echo "$ac_t""no" 1>&6
12108 echo "$ac_t""no" 1>&6
12113 #################################################
12114 # check for a LDAP password database
12115 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12116 echo "configure:12117: checking whether to use LDAP SAM database" >&5
12117 # Check whether --with-ldapsam or --without-ldapsam was given.
12118 if test "${with_ldapsam+set}" = set; then
12119 withval
="$with_ldapsam"
12122 echo "$ac_t""yes" 1>&6
12123 cat >> confdefs.h
<<\EOF
12124 #define WITH_LDAP_SAM 1
12127 LIBS
="-lldap -llber -lresolv $LIBS"
12128 with_smbpasswd_sam
=no
12131 echo "$ac_t""no" 1>&6
12135 echo "$ac_t""no" 1>&6
12140 #################################################
12141 # check for a NISPLUS password database
12142 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12143 echo "configure:12144: checking whether to use NISPLUS SAM database" >&5
12144 # Check whether --with-nisplussam or --without-nisplussam was given.
12145 if test "${with_nisplussam+set}" = set; then
12146 withval
="$with_nisplussam"
12149 echo "$ac_t""yes" 1>&6
12150 cat >> confdefs.h
<<\EOF
12151 #define WITH_NISPLUS_SAM 1
12154 with_smbpasswd_sam
=no
12157 echo "$ac_t""no" 1>&6
12161 echo "$ac_t""no" 1>&6
12166 ################################################
12167 # This test should come last because the
12168 # smbpasswd SAM is only used if another format
12169 # has not been defined
12170 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12171 echo "configure:12172: checking whether to use traditional smbpasswd file" >&5
12172 if test $with_smbpasswd_sam = yes; then
12173 echo "$ac_t""yes" 1>&6
12174 cat >> confdefs.h
<<\EOF
12175 #define WITH_SMBPASSWD_SAM 1
12180 echo "$ac_t""no" 1>&6
12181 PDBEDIT
=bin
/pdbedit
12184 ########################################################################################
12186 ## END OF TESTS FOR SAM BACKENDS.
12188 ########################################################################################
12190 #################################################
12191 # check for a NISPLUS_HOME support
12192 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12193 echo "configure:12194: checking whether to use NISPLUS_HOME" >&5
12194 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12195 if test "${with_nisplus_home+set}" = set; then
12196 withval
="$with_nisplus_home"
12199 echo "$ac_t""yes" 1>&6
12200 cat >> confdefs.h
<<\EOF
12201 #define WITH_NISPLUS_HOME 1
12206 echo "$ac_t""no" 1>&6
12210 echo "$ac_t""no" 1>&6
12215 #################################################
12216 # check for the secure socket layer
12217 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12218 echo "configure:12219: checking whether to use SSL" >&5
12219 # Check whether --with-ssl or --without-ssl was given.
12220 if test "${with_ssl+set}" = set; then
12221 withval
="$with_ssl"
12224 echo "$ac_t""yes" 1>&6
12225 cat >> confdefs.h
<<\EOF
12229 withval
="/usr/local/ssl" # default
12231 if test "${with_sslinc+set}" = set; then
12233 withval
="$with_sslinc"
12236 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12237 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12240 CFLAGS
="-I${withval} $CFLAGS"
12246 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12250 if test "${with_ssllib+set}" = set; then
12252 withval
="$with_ssllib"
12255 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12256 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12259 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12265 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12269 LIBS
="-lssl -lcrypto $LIBS"
12271 # if test ! -d ${withval}; then
12272 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12276 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12280 echo "$ac_t""no" 1>&6
12284 echo "$ac_t""no" 1>&6
12289 #################################################
12290 # check for syslog logging
12291 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12292 echo "configure:12293: checking whether to use syslog logging" >&5
12293 # Check whether --with-syslog or --without-syslog was given.
12294 if test "${with_syslog+set}" = set; then
12295 withval
="$with_syslog"
12298 echo "$ac_t""yes" 1>&6
12299 cat >> confdefs.h
<<\EOF
12300 #define WITH_SYSLOG 1
12305 echo "$ac_t""no" 1>&6
12309 echo "$ac_t""no" 1>&6
12314 #################################################
12315 # check for a shared memory profiling support
12316 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12317 echo "configure:12318: checking whether to use profiling" >&5
12318 # Check whether --with-profiling-data or --without-profiling-data was given.
12319 if test "${with_profiling_data+set}" = set; then
12320 withval
="$with_profiling_data"
12323 echo "$ac_t""yes" 1>&6
12324 cat >> confdefs.h
<<\EOF
12325 #define WITH_PROFILE 1
12330 echo "$ac_t""no" 1>&6
12334 echo "$ac_t""no" 1>&6
12340 #################################################
12341 # check for experimental disk-quotas support
12342 QUOTAOBJS
=smbd
/noquotas.o
12344 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12345 echo "configure:12346: checking whether to support disk-quotas" >&5
12346 # Check whether --with-quotas or --without-quotas was given.
12347 if test "${with_quotas+set}" = set; then
12348 withval
="$with_quotas"
12351 echo "$ac_t""yes" 1>&6
12352 QUOTAOBJS
=smbd
/quotas.o
12355 # Check for kernel 2.4.x quota braindamage...
12356 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12357 echo "configure:12358: checking for linux 2.4.x quota braindamage.." >&5
12358 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12359 echo $ac_n "(cached) $ac_c" 1>&6
12362 cat > conftest.
$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12366 #include <sys/types.h>
12367 #include <asm/types.h>
12368 #include <linux/quota.h>
12369 #include <mntent.h>
12370 #include <linux/unistd.h>
12372 struct mem_dqblk D;
12375 if { (eval echo configure
:12376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12377 samba_cv_linux_2_4_quota_braindamage
=yes
12379 echo "configure: failed program was:" >&5
12380 cat conftest.
$ac_ext >&5
12382 samba_cv_linux_2_4_quota_braindamage
=no
12387 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12388 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
12389 cat >> confdefs.h
<<\EOF
12390 #define LINUX_QUOTAS_2 1
12394 cat >> confdefs.h
<<\EOF
12395 #define LINUX_QUOTAS_1 1
12405 echo "$ac_t""no" 1>&6
12409 echo "$ac_t""no" 1>&6
12415 #################################################
12416 # check for experimental utmp accounting
12418 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12419 echo "configure:12420: checking whether to support utmp accounting" >&5
12420 # Check whether --with-utmp or --without-utmp was given.
12421 if test "${with_utmp+set}" = set; then
12422 withval
="$with_utmp"
12425 echo "$ac_t""yes" 1>&6
12426 cat >> confdefs.h
<<\EOF
12427 #define WITH_UTMP 1
12432 echo "$ac_t""no" 1>&6
12436 echo "$ac_t""no" 1>&6
12441 #################################################
12442 # check for MS Dfs support
12444 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12445 echo "configure:12446: checking whether to support Microsoft Dfs" >&5
12446 # Check whether --with-msdfs or --without-msdfs was given.
12447 if test "${with_msdfs+set}" = set; then
12448 withval
="$with_msdfs"
12451 echo "$ac_t""yes" 1>&6
12452 cat >> confdefs.h
<<\EOF
12453 #define WITH_MSDFS 1
12458 echo "$ac_t""no" 1>&6
12462 echo "$ac_t""no" 1>&6
12467 #################################################
12468 # should we build libsmbclient?
12470 LIBSMBCLIENT_SHARED
=
12472 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12473 echo "configure:12474: checking whether to build the libsmbclient shared library" >&5
12474 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12475 if test "${with_libsmbclient+set}" = set; then
12476 withval
="$with_libsmbclient"
12479 if test $BLDSHARED = true
; then
12480 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12481 LIBSMBCLIENT
=libsmbclient
12482 echo "$ac_t""yes" 1>&6
12484 echo "$ac_t""no shared library support" 1>&6
12488 echo "$ac_t""no" 1>&6
12492 echo "$ac_t""no" 1>&6
12497 #################################################
12498 # these tests are taken from the GNU fileutils package
12499 echo "checking how to get filesystem space usage" 1>&6
12500 echo "configure:12501: checking how to get filesystem space usage" >&5
12503 # Test for statvfs64.
12504 if test $space = no
; then
12506 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12507 echo "configure:12508: checking statvfs64 function (SVR4)" >&5
12508 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12509 echo $ac_n "(cached) $ac_c" 1>&6
12511 if test "$cross_compiling" = yes; then
12512 fu_cv_sys_stat_statvfs64
=cross
12514 cat > conftest.
$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12518 #if defined(HAVE_UNISTD_H)
12519 #include <unistd.h>
12521 #include <sys/types.h>
12522 #include <sys/statvfs.h>
12525 struct statvfs64 fsd;
12526 exit (statvfs64 (".", &fsd));
12529 if { (eval echo configure
:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12531 fu_cv_sys_stat_statvfs64
=yes
12533 echo "configure: failed program was:" >&5
12534 cat conftest.
$ac_ext >&5
12536 fu_cv_sys_stat_statvfs64
=no
12543 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12544 if test $fu_cv_sys_stat_statvfs64 = yes; then
12546 cat >> confdefs.h
<<\EOF
12547 #define STAT_STATVFS64 1
12553 # Perform only the link test since it seems there are no variants of the
12554 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12555 # because that got a false positive on SCO OSR5. Adding the declaration
12556 # of a `struct statvfs' causes this test to fail (as it should) on such
12557 # systems. That system is reported to work fine with STAT_STATFS4 which
12558 # is what it gets when this test fails.
12559 if test $space = no
; then
12561 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12562 echo "configure:12563: checking statvfs function (SVR4)" >&5
12563 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12564 echo $ac_n "(cached) $ac_c" 1>&6
12566 cat > conftest.
$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12569 #include <sys/types.h>
12570 #include <sys/statvfs.h>
12572 struct statvfs fsd; statvfs (0, &fsd);
12575 if { (eval echo configure
:12576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12577 fu_cv_sys_stat_statvfs
=yes
12579 echo "configure: failed program was:" >&5
12580 cat conftest.
$ac_ext >&5
12582 fu_cv_sys_stat_statvfs
=no
12587 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12588 if test $fu_cv_sys_stat_statvfs = yes; then
12590 cat >> confdefs.h
<<\EOF
12591 #define STAT_STATVFS 1
12597 if test $space = no
; then
12598 # DEC Alpha running OSF/1
12599 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12600 echo "configure:12601: checking for 3-argument statfs function (DEC OSF/1)" >&5
12601 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12604 if test "$cross_compiling" = yes; then
12605 fu_cv_sys_stat_statfs3_osf1
=no
12607 cat > conftest.
$ac_ext <<EOF
12608 #line 12609 "configure"
12609 #include "confdefs.h"
12611 #include <sys/param.h>
12612 #include <sys/types.h>
12613 #include <sys/mount.h>
12618 exit (statfs (".", &fsd, sizeof (struct statfs)));
12621 if { (eval echo configure
:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12623 fu_cv_sys_stat_statfs3_osf1
=yes
12625 echo "configure: failed program was:" >&5
12626 cat conftest.
$ac_ext >&5
12628 fu_cv_sys_stat_statfs3_osf1
=no
12635 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12636 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12638 cat >> confdefs.h
<<\EOF
12639 #define STAT_STATFS3_OSF1 1
12645 if test $space = no
; then
12647 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12648 echo "configure:12649: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12649 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12650 echo $ac_n "(cached) $ac_c" 1>&6
12652 if test "$cross_compiling" = yes; then
12653 fu_cv_sys_stat_statfs2_bsize
=no
12655 cat > conftest.
$ac_ext <<EOF
12656 #line 12657 "configure"
12657 #include "confdefs.h"
12659 #ifdef HAVE_SYS_PARAM_H
12660 #include <sys/param.h>
12662 #ifdef HAVE_SYS_MOUNT_H
12663 #include <sys/mount.h>
12665 #ifdef HAVE_SYS_VFS_H
12666 #include <sys/vfs.h>
12672 exit (statfs (".", &fsd));
12675 if { (eval echo configure
:12676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12677 fu_cv_sys_stat_statfs2_bsize
=yes
12679 echo "configure: failed program was:" >&5
12680 cat conftest.
$ac_ext >&5
12682 fu_cv_sys_stat_statfs2_bsize
=no
12689 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12690 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12692 cat >> confdefs.h
<<\EOF
12693 #define STAT_STATFS2_BSIZE 1
12699 if test $space = no
; then
12701 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12702 echo "configure:12703: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12703 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12706 if test "$cross_compiling" = yes; then
12707 fu_cv_sys_stat_statfs4
=no
12709 cat > conftest.
$ac_ext <<EOF
12710 #line 12711 "configure"
12711 #include "confdefs.h"
12712 #include <sys/types.h>
12713 #include <sys/statfs.h>
12717 exit (statfs (".", &fsd, sizeof fsd, 0));
12720 if { (eval echo configure
:12721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12722 fu_cv_sys_stat_statfs4
=yes
12724 echo "configure: failed program was:" >&5
12725 cat conftest.
$ac_ext >&5
12727 fu_cv_sys_stat_statfs4
=no
12734 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12735 if test $fu_cv_sys_stat_statfs4 = yes; then
12737 cat >> confdefs.h
<<\EOF
12738 #define STAT_STATFS4 1
12744 if test $space = no
; then
12745 # 4.4BSD and NetBSD
12746 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12747 echo "configure:12748: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12748 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12749 echo $ac_n "(cached) $ac_c" 1>&6
12751 if test "$cross_compiling" = yes; then
12752 fu_cv_sys_stat_statfs2_fsize
=no
12754 cat > conftest.
$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757 #include <sys/types.h>
12758 #ifdef HAVE_SYS_PARAM_H
12759 #include <sys/param.h>
12761 #ifdef HAVE_SYS_MOUNT_H
12762 #include <sys/mount.h>
12768 exit (statfs (".", &fsd));
12771 if { (eval echo configure
:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12773 fu_cv_sys_stat_statfs2_fsize
=yes
12775 echo "configure: failed program was:" >&5
12776 cat conftest.
$ac_ext >&5
12778 fu_cv_sys_stat_statfs2_fsize
=no
12785 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12786 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12788 cat >> confdefs.h
<<\EOF
12789 #define STAT_STATFS2_FSIZE 1
12795 if test $space = no
; then
12797 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12798 echo "configure:12799: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12799 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12800 echo $ac_n "(cached) $ac_c" 1>&6
12802 if test "$cross_compiling" = yes; then
12803 fu_cv_sys_stat_fs_data
=no
12805 cat > conftest.
$ac_ext <<EOF
12806 #line 12807 "configure"
12807 #include "confdefs.h"
12808 #include <sys/types.h>
12809 #ifdef HAVE_SYS_PARAM_H
12810 #include <sys/param.h>
12812 #ifdef HAVE_SYS_MOUNT_H
12813 #include <sys/mount.h>
12815 #ifdef HAVE_SYS_FS_TYPES_H
12816 #include <sys/fs_types.h>
12820 struct fs_data fsd;
12821 /* Ultrix's statfs returns 1 for success,
12822 0 for not mounted, -1 for failure. */
12823 exit (statfs (".", &fsd) != 1);
12826 if { (eval echo configure
:12827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12828 fu_cv_sys_stat_fs_data
=yes
12830 echo "configure: failed program was:" >&5
12831 cat conftest.
$ac_ext >&5
12833 fu_cv_sys_stat_fs_data
=no
12840 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12841 if test $fu_cv_sys_stat_fs_data = yes; then
12843 cat >> confdefs.h
<<\EOF
12844 #define STAT_STATFS2_FS_DATA 1
12851 # As a gating factor for large file support, in order to
12852 # use <4GB files we must have the following minimal support
12854 # long long, and a 64 bit off_t or off64_t.
12855 # If we don't have all of these then disable large
12858 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12859 echo "configure:12860: checking if large file support can be enabled" >&5
12860 cat > conftest.
$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12864 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12865 #include <sys/types.h>
12874 if { (eval echo configure
:12875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12876 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12878 echo "configure: failed program was:" >&5
12879 cat conftest.
$ac_ext >&5
12881 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12884 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12885 echo "$ac_t""yes" 1>&6
12886 cat >> confdefs.h
<<\EOF
12887 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12891 echo "$ac_t""no" 1>&6
12894 # Check whether --with-spinlocks or --without-spinlocks was given.
12895 if test "${with_spinlocks+set}" = set; then
12896 withval
="$with_spinlocks"
12900 if test "x$with_spinlocks" = "xyes"; then
12901 cat >> confdefs.h
<<\EOF
12902 #define USE_SPINLOCKS 1
12906 case "$host_cpu" in
12908 cat >> confdefs.h
<<\EOF
12909 #define SPARC_SPINLOCKS 1
12914 i386|i486|i586|i686
)
12915 cat >> confdefs.h
<<\EOF
12916 #define INTEL_SPINLOCKS 1
12922 cat >> confdefs.h
<<\EOF
12923 #define MIPS_SPINLOCKS 1
12929 cat >> confdefs.h
<<\EOF
12930 #define POWERPC_SPINLOCKS 1
12937 #################################################
12938 # check for ACL support
12940 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12941 echo "configure:12942: checking whether to support ACLs" >&5
12942 # Check whether --with-acl-support or --without-acl-support was given.
12943 if test "${with_acl_support+set}" = set; then
12944 withval
="$with_acl_support"
12950 echo "$ac_t""Using UnixWare ACLs" 1>&6
12951 cat >> confdefs.h
<<\EOF
12952 #define HAVE_UNIXWARE_ACLS 1
12957 echo "$ac_t""Using solaris ACLs" 1>&6
12958 cat >> confdefs.h
<<\EOF
12959 #define HAVE_SOLARIS_ACLS 1
12964 echo "$ac_t""Using HPUX ACLs" 1>&6
12965 cat >> confdefs.h
<<\EOF
12966 #define HAVE_HPUX_ACLS 1
12971 echo "$ac_t""Using IRIX ACLs" 1>&6
12972 cat >> confdefs.h
<<\EOF
12973 #define HAVE_IRIX_ACLS 1
12978 echo "$ac_t""Using AIX ACLs" 1>&6
12979 cat >> confdefs.h
<<\EOF
12980 #define HAVE_AIX_ACLS 1
12985 echo "$ac_t""Using Tru64 ACLs" 1>&6
12986 cat >> confdefs.h
<<\EOF
12987 #define HAVE_TRU64_ACLS 1
12990 LIBS
="$LIBS -lpacl"
12993 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12994 echo "configure:12995: checking for acl_get_file in -lacl" >&5
12995 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12997 echo $ac_n "(cached) $ac_c" 1>&6
12999 ac_save_LIBS
="$LIBS"
13001 cat > conftest.
$ac_ext <<EOF
13002 #line 13003 "configure"
13003 #include "confdefs.h"
13004 /* Override any gcc2 internal prototype to avoid an error. */
13005 /* We use char because int might match the return type of a gcc2
13006 builtin and then its argument prototype would still apply. */
13007 char acl_get_file();
13013 if { (eval echo configure
:13014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13015 eval "ac_cv_lib_$ac_lib_var=yes"
13017 echo "configure: failed program was:" >&5
13018 cat conftest.
$ac_ext >&5
13020 eval "ac_cv_lib_$ac_lib_var=no"
13023 LIBS
="$ac_save_LIBS"
13026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13027 echo "$ac_t""yes" 1>&6
13028 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13030 cat >> confdefs.h
<<EOF
13031 #define $ac_tr_lib 1
13037 echo "$ac_t""no" 1>&6
13040 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13041 echo "configure:13042: checking for ACL support" >&5
13042 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13043 echo $ac_n "(cached) $ac_c" 1>&6
13046 cat > conftest.
$ac_ext <<EOF
13047 #line 13048 "configure"
13048 #include "confdefs.h"
13049 #include <sys/types.h>
13050 #include <sys/acl.h>
13052 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13055 if { (eval echo configure
:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13057 samba_cv_HAVE_POSIX_ACLS
=yes
13059 echo "configure: failed program was:" >&5
13060 cat conftest.
$ac_ext >&5
13062 samba_cv_HAVE_POSIX_ACLS
=no
13067 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13068 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13069 echo "$ac_t""Using posix ACLs" 1>&6
13070 cat >> confdefs.h
<<\EOF
13071 #define HAVE_POSIX_ACLS 1
13074 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13075 echo "configure:13076: checking for acl_get_perm_np" >&5
13076 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13080 cat > conftest.
$ac_ext <<EOF
13081 #line 13082 "configure"
13082 #include "confdefs.h"
13083 #include <sys/types.h>
13084 #include <sys/acl.h>
13086 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13089 if { (eval echo configure
:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13091 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13093 echo "configure: failed program was:" >&5
13094 cat conftest.
$ac_ext >&5
13096 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13101 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13102 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13103 cat >> confdefs.h
<<\EOF
13104 #define HAVE_ACL_GET_PERM_NP 1
13113 echo "$ac_t""no" 1>&6
13114 cat >> confdefs.h
<<\EOF
13115 #define HAVE_NO_ACLS 1
13121 cat >> confdefs.h
<<\EOF
13122 #define HAVE_NO_ACLS 1
13125 echo "$ac_t""no" 1>&6
13130 #################################################
13131 # check for the historical SAMBA installation
13133 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13134 # Put all binaries under the /usr/local/samba/bin directory.
13138 #################################################
13139 # Check whether winbind is supported on this platform. If so we need to
13140 # build and install client programs (WINBIND_TARGETS), sbin programs
13141 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13143 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13144 echo "configure:13145: checking whether to build winbind" >&5
13146 # Initially, the value of $host_os decides whether winbind is supported
13154 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13155 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13159 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13166 winbind_no_reason
=", unsupported on $host_os"
13170 # Check the setting of --with-winbindd
13172 # Check whether --with-winbind or --without-winbind was given.
13173 if test "${with_winbind+set}" = set; then
13174 withval
="$with_winbind"
13188 # We need unix domain sockets for winbind
13190 if test x
"$HAVE_WINBIND" = x
"yes"; then
13191 if test x
"$samba_cv_unixsocket" = x
"no"; then
13192 winbind_no_reason
=", no unix domain socket support on $host_os"
13197 # Display test results
13199 if test x
"$HAVE_WINBIND" = x
"yes"; then
13201 echo "$ac_t""yes" 1>&6
13203 WINBIND_TARGETS
="bin/wbinfo"
13204 WINBIND_STARGETS
="bin/winbindd"
13207 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
13210 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13215 case "$with_pam" in
13217 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13221 echo "$ac_t""no$winbind_no_reason" 1>&6
13224 WINBIND_STARGETS
=""
13225 WINBIND_LTARGETS
=""
13226 WINBIND_PAM_TARGETS
=""
13229 # Check for FreeBSD problem with getgroups
13230 # It returns EGID too many times in the list of groups
13231 # and causes a security problem
13232 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13233 echo "configure:13234: checking whether or not getgroups returns EGID too many times" >&5
13234 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13235 echo $ac_n "(cached) $ac_c" 1>&6
13237 if test "$cross_compiling" = yes; then
13238 samba_cv_have_getgroups_too_many_egids
=cross
13240 cat > conftest.
$ac_ext <<EOF
13241 #line 13242 "configure"
13242 #include "confdefs.h"
13244 #include <sys/types.h>
13247 int main(int argc, char *argv[])
13252 n = getgroups(n, &groups);
13253 /* Could actually pass back the number of EGIDs there ... */
13254 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13257 if { (eval echo configure
:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13259 samba_cv_have_getgroups_too_many_egids
=no
13261 echo "configure: failed program was:" >&5
13262 cat conftest.
$ac_ext >&5
13264 samba_cv_have_getgroups_too_many_egids
=yes
13271 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13272 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
13273 cat >> confdefs.h
<<\EOF
13274 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13279 # Substitution time!
13288 # Solaris has some extra fields in struct passwd that need to be
13289 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13290 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13293 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13294 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13295 # [#include <pwd.h>])
13297 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13298 echo "configure:13299: checking whether struct passwd has pw_comment" >&5
13299 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13300 echo $ac_n "(cached) $ac_c" 1>&6
13303 cat > conftest.
$ac_ext <<EOF
13304 #line 13305 "configure"
13305 #include "confdefs.h"
13308 struct passwd p; p.pw_comment;
13311 if { (eval echo configure
:13312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13313 samba_cv_passwd_pw_comment
=yes
13315 echo "configure: failed program was:" >&5
13316 cat conftest.
$ac_ext >&5
13318 samba_cv_passwd_pw_comment
=no
13323 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13324 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
13325 cat >> confdefs.h
<<\EOF
13326 #define HAVE_PASSWD_PW_COMMENT 1
13331 #AC_CHECK_MEMBER(struct passwd.pw_age,
13332 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13333 # [#include <pwd.h>])
13335 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13336 echo "configure:13337: checking whether struct passwd has pw_age" >&5
13337 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13338 echo $ac_n "(cached) $ac_c" 1>&6
13341 cat > conftest.
$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13346 struct passwd p; p.pw_age;
13349 if { (eval echo configure
:13350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13351 samba_cv_passwd_pw_age
=yes
13353 echo "configure: failed program was:" >&5
13354 cat conftest.
$ac_ext >&5
13356 samba_cv_passwd_pw_age
=no
13361 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13362 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
13363 cat >> confdefs.h
<<\EOF
13364 #define HAVE_PASSWD_PW_AGE 1
13369 #################################################
13370 # Check to see if we should use the included popt
13372 # Check whether --with-included-popt or --without-included-popt was given.
13373 if test "${with_included_popt+set}" = set; then
13374 withval
="$with_included_popt"
13386 if test x
"$INCLUDED_POPT" != x
"yes"; then
13387 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13388 echo "configure:13389: checking for poptGetContext in -lpopt" >&5
13389 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13391 echo $ac_n "(cached) $ac_c" 1>&6
13393 ac_save_LIBS
="$LIBS"
13394 LIBS
="-lpopt $LIBS"
13395 cat > conftest.
$ac_ext <<EOF
13396 #line 13397 "configure"
13397 #include "confdefs.h"
13398 /* Override any gcc2 internal prototype to avoid an error. */
13399 /* We use char because int might match the return type of a gcc2
13400 builtin and then its argument prototype would still apply. */
13401 char poptGetContext();
13407 if { (eval echo configure
:13408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13409 eval "ac_cv_lib_$ac_lib_var=yes"
13411 echo "configure: failed program was:" >&5
13412 cat conftest.
$ac_ext >&5
13414 eval "ac_cv_lib_$ac_lib_var=no"
13417 LIBS
="$ac_save_LIBS"
13420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13421 echo "$ac_t""yes" 1>&6
13424 echo "$ac_t""no" 1>&6
13430 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13431 echo "configure:13432: checking whether to use included popt" >&5
13432 if test x
"$INCLUDED_POPT" = x
"yes"; then
13433 echo "$ac_t""$srcdir/popt" 1>&6
13434 BUILD_POPT
='$(POPT_OBJS)'
13435 FLAGS1
="-I$srcdir/popt"
13437 echo "$ac_t""no" 1>&6
13438 LIBS
="$LIBS -lpopt"
13443 #################################################
13444 # final configure stuff
13445 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13446 echo "configure:13447: checking configure summary" >&5
13447 if test "$cross_compiling" = yes; then
13448 echo "configure: warning: cannot run when cross-compiling" 1>&2
13450 cat > conftest.
$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 #include "${srcdir-.}/tests/summary.c"
13455 if { (eval echo configure
:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13457 echo "$ac_t""yes" 1>&6
13459 echo "configure: failed program was:" >&5
13460 cat conftest.
$ac_ext >&5
13462 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13472 cat > confcache
<<\EOF
13473 # This file is a shell script that caches the results of configure
13474 # tests run on this system so they can be shared between configure
13475 # scripts and configure runs. It is not useful on other systems.
13476 # If it contains results you don't want to keep, you may remove or edit it.
13478 # By default, configure uses ./config.cache as the cache file,
13479 # creating it if it does not exist already. You can give configure
13480 # the --cache-file=FILE option to use a different cache file; that is
13481 # what configure does when it calls configure scripts in
13482 # subdirectories, so they share the cache.
13483 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13484 # config.status only pays attention to the cache file if you give it the
13485 # --recheck option to rerun configure.
13488 # The following way of writing the cache mishandles newlines in values,
13489 # but we know of no workaround that is simple, portable, and efficient.
13490 # So, don't put newlines in cache variables' values.
13491 # Ultrix sh set writes to stderr and can't be redirected directly,
13492 # and sets the high bit in the cache file unless we assign to the vars.
13494 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13496 # `set' does not quote correctly, so add quotes (double-quote substitution
13497 # turns \\\\ into \\, and sed turns \\ into \).
13499 -e "s/'/'\\\\''/g" \
13500 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13503 # `set' quotes correctly as required by POSIX, so do not add quotes.
13504 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13507 if cmp -s $cache_file confcache
; then
13510 if test -w $cache_file; then
13511 echo "updating cache $cache_file"
13512 cat confcache
> $cache_file
13514 echo "not updating unwritable cache $cache_file"
13519 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13521 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13522 # Let make expand exec_prefix.
13523 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13525 # Any assignment to VPATH causes Sun make to only execute
13526 # the first set of double-colon rules, so remove it if not needed.
13527 # If there is a colon in the path, we need to keep it.
13528 if test "x$srcdir" = x.
; then
13529 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13532 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13534 DEFS
=-DHAVE_CONFIG_H
13536 # Without the "./", some shells look in PATH for config.status.
13537 : ${CONFIG_STATUS=./config.status}
13539 echo creating
$CONFIG_STATUS
13540 rm -f $CONFIG_STATUS
13541 cat > $CONFIG_STATUS <<EOF
13543 # Generated automatically by configure.
13544 # Run this file to recreate the current configuration.
13545 # This directory was configured as follows,
13546 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13548 # $0 $ac_configure_args
13550 # Compiler output produced by configure, useful for debugging
13551 # configure, is in ./config.log if it exists.
13553 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13556 case "\$ac_option" in
13557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13558 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13559 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13560 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13561 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13563 -help | --help | --hel | --he | --h)
13564 echo "\$ac_cs_usage"; exit 0 ;;
13565 *) echo "\$ac_cs_usage"; exit 1 ;;
13569 ac_given_srcdir=$srcdir
13570 ac_given_INSTALL="$INSTALL"
13572 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13574 cat >> $CONFIG_STATUS <<EOF
13576 # Protect against being on the right side of a sed subst in config.status.
13577 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13578 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13582 s%@CFLAGS@%$CFLAGS%g
13583 s%@CPPFLAGS@%$CPPFLAGS%g
13584 s%@CXXFLAGS@%$CXXFLAGS%g
13585 s%@FFLAGS@%$FFLAGS%g
13587 s%@LDFLAGS@%$LDFLAGS%g
13589 s%@exec_prefix@%$exec_prefix%g
13590 s%@prefix@%$prefix%g
13591 s%@program_transform_name@%$program_transform_name%g
13592 s%@bindir@%$bindir%g
13593 s%@sbindir@%$sbindir%g
13594 s%@libexecdir@%$libexecdir%g
13595 s%@datadir@%$datadir%g
13596 s%@sysconfdir@%$sysconfdir%g
13597 s%@sharedstatedir@%$sharedstatedir%g
13598 s%@localstatedir@%$localstatedir%g
13599 s%@libdir@%$libdir%g
13600 s%@includedir@%$includedir%g
13601 s%@oldincludedir@%$oldincludedir%g
13602 s%@infodir@%$infodir%g
13603 s%@mandir@%$mandir%g
13604 s%@codepagedir@%$codepagedir%g
13605 s%@configdir@%$configdir%g
13606 s%@lockdir@%$lockdir%g
13607 s%@piddir@%$piddir%g
13608 s%@logfilebase@%$logfilebase%g
13609 s%@privatedir@%$privatedir%g
13610 s%@swatdir@%$swatdir%g
13611 s%@RUNPROG@%$RUNPROG%g
13612 s%@MPROGS@%$MPROGS%g
13613 s%@LDSHFLAGS@%$LDSHFLAGS%g
13614 s%@SONAMEFLAG@%$SONAMEFLAG%g
13616 s%@HOST_OS@%$HOST_OS%g
13617 s%@PAM_MOD@%$PAM_MOD%g
13618 s%@PDBEDIT@%$PDBEDIT%g
13620 s%@WRAP32@%$WRAP32%g
13621 s%@WRAPPROG@%$WRAPPROG%g
13622 s%@PICFLAG@%$PICFLAG%g
13623 s%@PICSUFFIX@%$PICSUFFIX%g
13624 s%@SHLIBEXT@%$SHLIBEXT%g
13625 s%@BLDSHARED@%$BLDSHARED%g
13626 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13627 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13629 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13630 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13631 s%@INSTALL_DATA@%$INSTALL_DATA%g
13633 s%@passwd_program@%$passwd_program%g
13634 s%@BROKEN_CC@%$BROKEN_CC%g
13636 s%@host_alias@%$host_alias%g
13637 s%@host_cpu@%$host_cpu%g
13638 s%@host_vendor@%$host_vendor%g
13639 s%@host_os@%$host_os%g
13640 s%@target@%$target%g
13641 s%@target_alias@%$target_alias%g
13642 s%@target_cpu@%$target_cpu%g
13643 s%@target_vendor@%$target_vendor%g
13644 s%@target_os@%$target_os%g
13646 s%@build_alias@%$build_alias%g
13647 s%@build_cpu@%$build_cpu%g
13648 s%@build_vendor@%$build_vendor%g
13649 s%@build_os@%$build_os%g
13651 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13652 s%@LIBOBJS@%$LIBOBJS%g
13653 s%@TERMLIBS@%$TERMLIBS%g
13654 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13656 s%@DYNEXP@%$DYNEXP%g
13657 s%@QUOTAOBJS@%$QUOTAOBJS%g
13658 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13659 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13660 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13661 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13662 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13663 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13664 s%@BUILD_POPT@%$BUILD_POPT%g
13665 s%@FLAGS1@%$FLAGS1%g
13666 s%@builddir@%$builddir%g
13671 cat >> $CONFIG_STATUS <<\EOF
13673 # Split the substitutions into bite-sized pieces for seds with
13674 # small command number limits, like on Digital OSF/1 and HP-UX.
13675 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13676 ac_file
=1 # Number of current file.
13677 ac_beg
=1 # First line for current file.
13678 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13681 while $ac_more_lines; do
13682 if test $ac_beg -gt 1; then
13683 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13685 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13687 if test ! -s conftest.s
$ac_file; then
13688 ac_more_lines
=false
13689 rm -f conftest.s
$ac_file
13691 if test -z "$ac_sed_cmds"; then
13692 ac_sed_cmds
="sed -f conftest.s$ac_file"
13694 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13696 ac_file
=`expr $ac_file + 1`
13698 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13701 if test -z "$ac_sed_cmds"; then
13706 cat >> $CONFIG_STATUS <<EOF
13708 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13710 cat >> $CONFIG_STATUS <<\EOF
13711 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13714 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13715 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13716 *) ac_file_in
="${ac_file}.in" ;;
13719 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13721 # Remove last slash and all that follows it. Not all systems have dirname.
13722 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13723 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13724 # The file is in a subdirectory.
13725 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13726 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13727 # A "../" for each directory in $ac_dir_suffix.
13728 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13730 ac_dir_suffix
= ac_dots
=
13733 case "$ac_given_srcdir" in
13735 if test -z "$ac_dots"; then top_srcdir
=.
13736 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13737 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13738 *) # Relative path.
13739 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13740 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13743 case "$ac_given_INSTALL" in
13744 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13745 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13748 echo creating
"$ac_file"
13750 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13752 *Makefile
*) ac_comsub
="1i\\
13753 # $configure_input" ;;
13757 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13759 s%@configure_input@%$configure_input%g
13760 s%@srcdir@%$srcdir%g
13761 s%@top_srcdir@%$top_srcdir%g
13762 s%@INSTALL@%$INSTALL%g
13763 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13767 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13768 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13770 # ac_d sets the value in "#define NAME VALUE" lines.
13771 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13772 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13775 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13776 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13777 ac_uB
='\([ ]\)%\1#\2define\3'
13780 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13781 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13782 ac_eB
='$%\1#\2define\3'
13786 if test "${CONFIG_HEADERS+set}" != set; then
13788 cat >> $CONFIG_STATUS <<EOF
13789 CONFIG_HEADERS="include/config.h"
13791 cat >> $CONFIG_STATUS <<\EOF
13793 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13796 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13797 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13798 *) ac_file_in
="${ac_file}.in" ;;
13801 echo creating
$ac_file
13803 rm -f conftest.frag conftest.
in conftest.out
13804 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13805 cat $ac_file_inputs > conftest.
in
13809 # Transform confdefs.h into a sed script conftest.vals that substitutes
13810 # the proper values into config.h.in to produce config.h. And first:
13811 # Protect against being on the right side of a sed subst in config.status.
13812 # Protect against being in an unquoted here document in config.status.
13813 rm -f conftest.vals
13814 cat > conftest.hdr
<<\EOF
13817 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13821 sed -n -f conftest.hdr confdefs.h > conftest.vals
13824 # This sed command replaces #undef with comments. This is necessary, for
13825 # example, in the case of _POSIX_SOURCE, which is predefined and required
13826 # on some systems where configure will not decide to define it.
13827 cat >> conftest.vals <<\EOF
13828 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13831 # Break up conftest.vals because some shells have a limit on
13832 # the size of here documents, and old seds have small limits too.
13834 rm -f conftest.tail
13837 ac_lines=`grep -c . conftest.vals
`
13838 # grep -c gives empty output for an empty file on some AIX systems.
13839 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13840 # Write a limited-size here document to conftest.frag.
13841 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13842 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13844 sed -f conftest.frag conftest.in > conftest.out
13846 mv conftest.out conftest.in
13847 ' >> $CONFIG_STATUS
13848 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13849 rm -f conftest.vals
13850 mv conftest.tail conftest.vals
13852 rm -f conftest.vals
13854 cat >> $CONFIG_STATUS <<\EOF
13855 rm -f conftest.frag conftest.h
13856 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13857 cat conftest.in >> conftest.h
13859 if cmp -s $ac_file conftest.h 2>/dev/null; then
13860 echo "$ac_file is unchanged"
13863 # Remove last slash and all that follows it. Not all systems have dirname.
13864 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
13865 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13866 # The file is in a subdirectory.
13867 test ! -d "$ac_dir" && mkdir "$ac_dir"
13870 mv conftest.h $ac_file
13875 cat >> $CONFIG_STATUS <<EOF
13878 cat >> $CONFIG_STATUS <<\EOF
13882 chmod +x $CONFIG_STATUS
13883 rm -fr confdefs* $ac_clean_files
13884 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1