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-sendfile-support Check for sendfile support (default=no)"
86 --with-winbind Build winbind (default, if supported by OS)"
88 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
90 --with-winbind-ldap-hack Enable winbindd_ldap_hack() functionality (default no)"
92 --with-included-popt use bundled popt library, not from system"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=include
/includes.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
605 #################################################
606 # Directory handling stuff to support both the
607 # legacy SAMBA directories and FHS compliant
611 # Check whether --with-fhs or --without-fhs was given.
612 if test "${with_fhs+set}" = set; then
614 codepagedir
="\$(DATADIR)/samba/codepages"
615 configdir
="${sysconfdir}/samba"
616 lockdir
="\${VARDIR}/cache/samba"
617 piddir
="\$(VARDIR)/run/samba"
618 logfilebase
="\${VARDIR}/log/samba"
619 privatedir
="\${CONFIGDIR}/private"
620 swatdir
="\${DATADIR}/samba/swat"
622 codepagedir
="\$(LIBDIR)/codepages"
623 configdir
="\$(LIBDIR)"
624 logfilebase
="\$(VARDIR)"
625 lockdir
="\${VARDIR}/locks"
626 piddir
="\$(VARDIR)/locks"
627 privatedir
="\${prefix}/private"
628 swatdir
="\${prefix}/swat"
632 #################################################
633 # set private directory location
634 # Check whether --with-privatedir or --without-privatedir was given.
635 if test "${with_privatedir+set}" = set; then
636 withval
="$with_privatedir"
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
645 privatedir
="$withval"
651 #################################################
652 # set lock directory location
653 # Check whether --with-lockdir or --without-lockdir was given.
654 if test "${with_lockdir+set}" = set; then
655 withval
="$with_lockdir"
659 # Just in case anybody calls it without argument
661 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
670 #################################################
671 # set pid directory location
672 # Check whether --with-piddir or --without-piddir was given.
673 if test "${with_piddir+set}" = set; then
674 withval
="$with_piddir"
678 # Just in case anybody calls it without argument
680 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
689 #################################################
690 # set SWAT directory location
691 # Check whether --with-swatdir or --without-swatdir was given.
692 if test "${with_swatdir+set}" = set; then
693 withval
="$with_swatdir"
697 # Just in case anybody does it
699 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
708 #################################################
709 # set configuration directory location
710 # Check whether --with-configdir or --without-configdir was given.
711 if test "${with_configdir+set}" = set; then
712 withval
="$with_configdir"
716 # Just in case anybody does it
718 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
727 #################################################
728 # set codepage directory location
729 # Check whether --with-codepagedir or --without-codepagedir was given.
730 if test "${with_codepagedir+set}" = set; then
731 withval
="$with_codepagedir"
735 # Just in case anybody does it
737 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
740 codepagedir
="$withval"
746 #################################################
747 # set log directory location
748 # Check whether --with-logfilebase or --without-logfilebase was given.
749 if test "${with_logfilebase+set}" = set; then
750 withval
="$with_logfilebase"
754 # Just in case anybody does it
756 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
759 logfilebase
="$withval"
794 # compile with optimization and without debugging by default
795 CFLAGS
="-O ${CFLAGS}"
797 # Check whether --enable-debug or --disable-debug was given.
798 if test "${enable_debug+set}" = set; then
799 enableval
="$enable_debug"
800 if eval "test x$enable_debug = xyes"; then
801 CFLAGS
="${CFLAGS} -g"
808 # Extract the first word of "gcc", so it can be a program name with args.
809 set dummy gcc
; ac_word
=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC
="$CC" # Let the user override the test.
818 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
820 for ac_dir
in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir
=.
822 if test -f $ac_dir/$ac_word; then
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
834 echo "$ac_t""no" 1>&6
837 if test -z "$CC"; then
838 # Extract the first word of "cc", so it can be a program name with args.
839 set dummy cc
; ac_word
=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 if test -n "$CC"; then
846 ac_cv_prog_CC
="$CC" # Let the user override the test.
848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
851 for ac_dir
in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir
=.
853 if test -f $ac_dir/$ac_word; then
854 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
863 if test $ac_prog_rejected = yes; then
864 # We found a bogon in the path, so make sure we never use it.
865 set dummy
$ac_cv_prog_CC
867 if test $# -gt 0; then
868 # We chose a different compiler from the bogus one.
869 # However, it has the same basename, so the bogon will be chosen
870 # first if we set CC to just the basename; use the full file name.
872 set dummy
"$ac_dir/$ac_word" "$@"
880 if test -n "$CC"; then
881 echo "$ac_t""$CC" 1>&6
883 echo "$ac_t""no" 1>&6
886 if test -z "$CC"; then
889 # Extract the first word of "cl", so it can be a program name with args.
890 set dummy cl
; ac_word
=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 if test -n "$CC"; then
897 ac_cv_prog_CC
="$CC" # Let the user override the test.
899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
901 for ac_dir
in $ac_dummy; do
902 test -z "$ac_dir" && ac_dir
=.
903 if test -f $ac_dir/$ac_word; then
912 if test -n "$CC"; then
913 echo "$ac_t""$CC" 1>&6
915 echo "$ac_t""no" 1>&6
920 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
924 echo "configure:925: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp
='$CPP $CPPFLAGS'
929 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling
=$ac_cv_prog_cc_cross
933 cat > conftest.
$ac_ext << EOF
935 #line 936 "configure"
936 #include "confdefs.h"
940 if { (eval echo configure
:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
941 ac_cv_prog_cc_works
=yes
942 # If we can't run a trivial program, we are probably using a cross compiler.
943 if (.
/conftest
; exit) 2>/dev
/null
; then
944 ac_cv_prog_cc_cross
=no
946 ac_cv_prog_cc_cross
=yes
949 echo "configure: failed program was:" >&5
950 cat conftest.
$ac_ext >&5
951 ac_cv_prog_cc_works
=no
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp
='$CPP $CPPFLAGS'
957 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling
=$ac_cv_prog_cc_cross
961 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
962 if test $ac_cv_prog_cc_works = no
; then
963 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
965 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
966 echo "configure:967: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
967 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
968 cross_compiling
=$ac_cv_prog_cc_cross
970 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
971 echo "configure:972: checking whether we are using GNU C" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 cat > conftest.c
<<EOF
980 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
987 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
989 if test $ac_cv_prog_gcc = yes; then
995 ac_test_CFLAGS
="${CFLAGS+set}"
996 ac_save_CFLAGS
="$CFLAGS"
998 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
999 echo "configure:1000: checking whether ${CC-cc} accepts -g" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 echo 'void f(){}' > conftest.c
1004 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1013 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1014 if test "$ac_test_CFLAGS" = set; then
1015 CFLAGS
="$ac_save_CFLAGS"
1016 elif test $ac_cv_prog_cc_g = yes; then
1017 if test "$GCC" = yes; then
1023 if test "$GCC" = yes; then
1031 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1032 if test -f $ac_dir/install-sh
; then
1034 ac_install_sh
="$ac_aux_dir/install-sh -c"
1036 elif test -f $ac_dir/install.sh
; then
1038 ac_install_sh
="$ac_aux_dir/install.sh -c"
1042 if test -z "$ac_aux_dir"; then
1043 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1045 ac_config_guess
=$ac_aux_dir/config.guess
1046 ac_config_sub
=$ac_aux_dir/config.sub
1047 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1049 # Find a good install program. We prefer a C program (faster),
1050 # so one script is as good as another. But avoid the broken or
1051 # incompatible versions:
1052 # SysV /etc/install, /usr/sbin/install
1053 # SunOS /usr/etc/install
1054 # IRIX /sbin/install
1056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1059 # ./install, which can be erroneously created by make from ./install.sh.
1060 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1061 echo "configure:1062: checking for a BSD compatible install" >&5
1062 if test -z "$INSTALL"; then
1063 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1067 for ac_dir
in $PATH; do
1068 # Account for people who put trailing slashes in PATH elements.
1070 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1072 # OSF1 and SCO ODT 3.0 have their own names for install.
1073 # Don't use installbsd from OSF since it installs stuff as root
1075 for ac_prog
in ginstall scoinst
install; do
1076 if test -f $ac_dir/$ac_prog; then
1077 if test $ac_prog = install &&
1078 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1079 # AIX install. It has an incompatible calling convention.
1082 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1093 if test "${ac_cv_path_install+set}" = set; then
1094 INSTALL
="$ac_cv_path_install"
1096 # As a last resort, use the slow shell script. We don't cache a
1097 # path for INSTALL within a source directory, because that will
1098 # break other packages using the cache if that directory is
1099 # removed, or if the path is relative.
1100 INSTALL
="$ac_install_sh"
1103 echo "$ac_t""$INSTALL" 1>&6
1105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1106 # It thinks the first close brace ends the variable substitution.
1107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1111 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1113 for ac_prog
in gawk mawk nawk
awk
1115 # Extract the first word of "$ac_prog", so it can be a program name with args.
1116 set dummy
$ac_prog; ac_word
=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$AWK"; then
1123 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1125 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1127 for ac_dir
in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir
=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_AWK
="$ac_prog"
1137 AWK
="$ac_cv_prog_AWK"
1138 if test -n "$AWK"; then
1139 echo "$ac_t""$AWK" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 test -n "$AWK" && break
1148 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1149 echo "configure:1150: checking if the linker ($LD) is GNU ld" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1154 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1155 ac_cv_prog_gnu_ld
=yes
1157 ac_cv_prog_gnu_ld
=no
1161 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1163 # Extract the first word of "passwd", so it can be a program name with args.
1164 set dummy passwd
; ac_word
=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 case "$passwd_program" in
1172 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1175 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1180 for ac_dir
in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir
=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1188 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1192 passwd_program
="$ac_cv_path_passwd_program"
1193 if test -n "$passwd_program"; then
1194 echo "$ac_t""$passwd_program" 1>&6
1196 echo "$ac_t""no" 1>&6
1201 if test "x$CC" != xcc
; then
1202 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether $CC and cc understand -c and -o together" >&5
1205 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether cc understands -c and -o together" >&5
1208 set dummy
$CC; ac_cc
="`echo $2 |
1209 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1210 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 echo 'foo(){}' > conftest.c
1214 # Make sure it works both with $CC and with simple cc.
1215 # We do the test twice because some compilers refuse to overwrite an
1216 # existing .o file with -o, though they will create one.
1217 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1218 if { (eval echo configure
:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1219 test -f conftest.o
&& { (eval echo configure
:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1221 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1222 if test "x$CC" != xcc
; then
1223 # Test first that cc exists at all.
1224 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1225 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1226 if { (eval echo configure
:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1227 test -f conftest.o
&& { (eval echo configure
:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1232 # cc exists but doesn't like -o.
1233 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1238 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1243 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1244 echo "$ac_t""yes" 1>&6
1246 echo "$ac_t""no" 1>&6
1247 cat >> confdefs.h
<<\EOF
1248 #define NO_MINUS_C_MINUS_O 1
1253 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1260 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1261 echo "configure:1262: checking that the C compiler understands volatile" >&5
1262 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1266 cat > conftest.
$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 #include <sys/types.h>
1274 if { (eval echo configure
:1275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1276 samba_cv_volatile
=yes
1278 echo "configure: failed program was:" >&5
1279 cat conftest.
$ac_ext >&5
1281 samba_cv_volatile
=no
1286 echo "$ac_t""$samba_cv_volatile" 1>&6
1287 if test x
"$samba_cv_volatile" = x
"yes"; then
1288 cat >> confdefs.h
<<\EOF
1289 #define HAVE_VOLATILE 1
1297 # Do some error checking and defaulting for the host and target type.
1299 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1302 # 1. You are not allowed to specify --host, --target, and nonopt at the
1304 # 2. Host defaults to nonopt.
1305 # 3. If nonopt is not specified, then host defaults to the current host,
1306 # as determined by config.guess.
1307 # 4. Target and build default to nonopt.
1308 # 5. If nonopt is not specified, then target and build default to host.
1310 # The aliases save the names the user supplied, while $host etc.
1311 # will get canonicalized.
1312 case $host---$target---$nonopt in
1313 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1314 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1318 # Make sure we can run config.sub.
1319 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1320 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1323 echo $ac_n "checking host system type""... $ac_c" 1>&6
1324 echo "configure:1325: checking host system type" >&5
1327 case "$host_alias" in
1331 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1332 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1334 *) host_alias
=$nonopt ;;
1338 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1339 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1342 echo "$ac_t""$host" 1>&6
1344 echo $ac_n "checking target system type""... $ac_c" 1>&6
1345 echo "configure:1346: checking target system type" >&5
1347 target_alias
=$target
1348 case "$target_alias" in
1351 NONE
) target_alias
=$host_alias ;;
1352 *) target_alias
=$nonopt ;;
1356 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1357 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360 echo "$ac_t""$target" 1>&6
1362 echo $ac_n "checking build system type""... $ac_c" 1>&6
1363 echo "configure:1364: checking build system type" >&5
1366 case "$build_alias" in
1369 NONE
) build_alias
=$host_alias ;;
1370 *) build_alias
=$nonopt ;;
1374 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1375 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378 echo "$ac_t""$build" 1>&6
1380 test "$host_alias" != "$target_alias" &&
1381 test "$program_prefix$program_suffix$program_transform_name" = \
1383 program_prefix
=${target_alias}-
1387 *irix6
*) cat >> confdefs.h
<<\EOF
1388 #include <standards.h>
1396 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1397 echo "configure:1398: checking config.cache system type" >&5
1398 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1399 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1400 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1401 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1402 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1403 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1404 echo "$ac_t""different" 1>&6
1405 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1407 echo "$ac_t""same" 1>&6
1409 ac_cv_host_system_type
="$host"
1410 ac_cv_build_system_type
="$build"
1411 ac_cv_target_system_type
="$target"
1417 # Config CPPFLAG settings for strange OS's that must be set
1418 # before other tests.
1421 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1423 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1424 echo "configure:1425: checking whether ${CC-cc} accepts -Ae" >&5
1425 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 echo 'void f(){}' > conftest.c
1429 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1430 ac_cv_prog_cc_Ae
=yes
1438 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1439 # mmap on HPUX is completely broken...
1440 cat >> confdefs.h
<<\EOF
1441 #define MMAP_BLACKLIST 1
1444 if test $ac_cv_prog_cc_Ae = yes; then
1445 CPPFLAGS
="$CPPFLAGS -Ae"
1448 # Defines needed for HPUX support.
1449 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1450 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1454 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1455 cat >> confdefs.h
<<\EOF
1456 #define USE_BOTH_CRYPT_CALLS 1
1459 cat >> confdefs.h
<<\EOF
1460 #define _HPUX_SOURCE 1
1463 cat >> confdefs.h
<<\EOF
1464 #define _POSIX_SOURCE 1
1467 cat >> confdefs.h
<<\EOF
1468 #define _ALIGNMENT_REQUIRED 1
1471 cat >> confdefs.h
<<\EOF
1472 #define _MAX_ALIGNMENT 4
1477 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1478 cat >> confdefs.h
<<\EOF
1479 #define _HPUX_SOURCE 1
1482 cat >> confdefs.h
<<\EOF
1483 #define _POSIX_SOURCE 1
1486 cat >> confdefs.h
<<\EOF
1487 #define _LARGEFILE64_SOURCE 1
1490 cat >> confdefs.h
<<\EOF
1491 #define _ALIGNMENT_REQUIRED 1
1494 cat >> confdefs.h
<<\EOF
1495 #define _MAX_ALIGNMENT 4
1498 cat >> confdefs.h
<<\EOF
1499 #define USE_BOTH_CRYPT_CALLS 1
1509 # CRAY Unicos has broken const handling
1511 echo "$ac_t""disabling const" 1>&6
1512 CPPFLAGS
="$CPPFLAGS -Dconst="
1516 # AIX4.x doesn't even admit to having large
1517 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1520 echo "$ac_t""enabling large file support" 1>&6
1521 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1522 cat >> confdefs.h
<<\EOF
1523 #define _LARGE_FILES 1
1528 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1529 # to the existance of large files..
1530 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1531 # recommendations on large file support, however it makes the
1532 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1533 # recommendation makes the compile fail on gcc2.7. JRA.
1537 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1538 echo "$ac_t""no large file support" 1>&6
1541 echo "$ac_t""enabling large file support" 1>&6
1542 if test "$ac_cv_prog_gcc" = yes; then
1543 ${CC-cc} -v >conftest.c
2>&1
1544 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1546 case "$ac_cv_gcc_compiler_version_number" in
1547 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1548 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1549 cat >> confdefs.h
<<\EOF
1550 #define _LARGEFILE64_SOURCE 1
1555 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1556 cat >> confdefs.h
<<\EOF
1557 #define _LARGEFILE64_SOURCE 1
1560 cat >> confdefs.h
<<\EOF
1561 #define _FILE_OFFSET_BITS 64
1567 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1568 cat >> confdefs.h
<<\EOF
1569 #define _LARGEFILE64_SOURCE 1
1572 cat >> confdefs.h
<<\EOF
1573 #define _FILE_OFFSET_BITS 64
1581 # Tests needed for SINIX large file support.
1584 if test $host = mips-sni-sysv4
; then
1585 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1586 echo "configure:1587: checking for LFS support" >&5
1587 old_CPPFLAGS
="$CPPFLAGS"
1588 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1589 if test "$cross_compiling" = yes; then
1590 SINIX_LFS_SUPPORT
=cross
1592 cat > conftest.
$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1598 #if _LFS64_LARGEFILE == 1
1605 if { (eval echo configure
:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1607 SINIX_LFS_SUPPORT
=yes
1609 echo "configure: failed program was:" >&5
1610 cat conftest.
$ac_ext >&5
1612 SINIX_LFS_SUPPORT
=no
1617 CPPFLAGS
="$old_CPPFLAGS"
1618 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1619 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1620 cat >> confdefs.h
<<\EOF
1621 #define _LARGEFILE64_SOURCE 1
1624 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1625 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1626 LIBS
="`getconf LFS64_LIBS` $LIBS"
1628 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1632 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1635 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1636 echo "configure:1637: checking for LFS support" >&5
1637 old_CPPFLAGS
="$CPPFLAGS"
1638 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1639 if test "$cross_compiling" = yes; then
1640 LINUX_LFS_SUPPORT
=cross
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1647 #include <sys/utsname.h>
1649 #if _LFS64_LARGEFILE == 1
1654 /* Ensure this is glibc 2.2 or higher */
1655 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1656 int libc_major = __GLIBC__;
1657 int libc_minor = __GLIBC_MINOR__;
1665 /* Ensure this is kernel 2.4 or higher */
1668 release = uts.release;
1669 major = atoi(strsep(&release, "."));
1670 minor = atoi(strsep(&release, "."));
1672 if (major > 2 || (major == 2 && minor > 3))
1681 if { (eval echo configure
:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1683 LINUX_LFS_SUPPORT
=yes
1685 echo "configure: failed program was:" >&5
1686 cat conftest.
$ac_ext >&5
1688 LINUX_LFS_SUPPORT
=no
1693 CPPFLAGS
="$old_CPPFLAGS"
1694 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1695 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1696 cat >> confdefs.h
<<\EOF
1697 #define _LARGEFILE64_SOURCE 1
1700 cat >> confdefs.h
<<\EOF
1701 #define _FILE_OFFSET_BITS 64
1704 cat >> confdefs.h
<<\EOF
1705 #define _GNU_SOURCE 1
1709 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1713 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1714 echo "configure:1715: checking for LFS support" >&5
1715 old_CPPFLAGS
="$CPPFLAGS"
1716 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1717 if test "$cross_compiling" = yes; then
1718 GLIBC_LFS_SUPPORT
=cross
1720 cat > conftest.
$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1726 #if _LFS64_LARGEFILE == 1
1733 if { (eval echo configure
:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1735 GLIBC_LFS_SUPPORT
=yes
1737 echo "configure: failed program was:" >&5
1738 cat conftest.
$ac_ext >&5
1740 GLIBC_LFS_SUPPORT
=no
1745 CPPFLAGS
="$old_CPPFLAGS"
1746 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1747 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1748 cat >> confdefs.h
<<\EOF
1749 #define _LARGEFILE64_SOURCE 1
1752 cat >> confdefs.h
<<\EOF
1753 #define _GNU_SOURCE 1
1757 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1762 echo $ac_n "checking for inline""... $ac_c" 1>&6
1763 echo "configure:1764: checking for inline" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1768 for ac_kw
in inline __inline__ __inline
; do
1769 cat > conftest.
$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1777 if { (eval echo configure
:1778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1779 ac_cv_c_inline
=$ac_kw; break
1781 echo "configure: failed program was:" >&5
1782 cat conftest.
$ac_ext >&5
1789 echo "$ac_t""$ac_cv_c_inline" 1>&6
1790 case "$ac_cv_c_inline" in
1792 no
) cat >> confdefs.h
<<\EOF
1796 *) cat >> confdefs.h
<<EOF
1797 #define inline $ac_cv_c_inline
1802 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1803 echo "configure:1804: checking how to run the C preprocessor" >&5
1804 # On Suns, sometimes $CPP names a directory.
1805 if test -n "$CPP" && test -d "$CPP"; then
1808 if test -z "$CPP"; then
1809 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 # This must be in double quotes, not single quotes, because CPP may get
1813 # substituted into the Makefile and "${CC-cc}" will confuse make.
1815 # On the NeXT, cc -E runs the code through the compiler's parser,
1816 # not just through cpp.
1817 cat > conftest.
$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1823 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1824 { (eval echo configure
:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1825 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1826 if test -z "$ac_err"; then
1830 echo "configure: failed program was:" >&5
1831 cat conftest.
$ac_ext >&5
1833 CPP
="${CC-cc} -E -traditional-cpp"
1834 cat > conftest.
$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1840 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1841 { (eval echo configure
:1842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1842 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1843 if test -z "$ac_err"; then
1847 echo "configure: failed program was:" >&5
1848 cat conftest.
$ac_ext >&5
1850 CPP
="${CC-cc} -nologo -E"
1851 cat > conftest.
$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1857 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1858 { (eval echo configure
:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1859 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1860 if test -z "$ac_err"; then
1864 echo "configure: failed program was:" >&5
1865 cat conftest.
$ac_ext >&5
1874 ac_cv_prog_CPP
="$CPP"
1876 CPP
="$ac_cv_prog_CPP"
1878 ac_cv_prog_CPP
="$CPP"
1880 echo "$ac_t""$CPP" 1>&6
1882 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1883 echo "configure:1884: checking for ANSI C header files" >&5
1884 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.
$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1895 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1896 { (eval echo configure
:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1897 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1898 if test -z "$ac_err"; then
1900 ac_cv_header_stdc
=yes
1903 echo "configure: failed program was:" >&5
1904 cat conftest.
$ac_ext >&5
1906 ac_cv_header_stdc
=no
1910 if test $ac_cv_header_stdc = yes; then
1911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1912 cat > conftest.
$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1918 egrep "memchr" >/dev
/null
2>&1; then
1922 ac_cv_header_stdc
=no
1928 if test $ac_cv_header_stdc = yes; then
1929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1930 cat > conftest.
$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1936 egrep "free" >/dev
/null
2>&1; then
1940 ac_cv_header_stdc
=no
1946 if test $ac_cv_header_stdc = yes; then
1947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1948 if test "$cross_compiling" = yes; then
1951 cat > conftest.
$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1955 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1956 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1958 int main () { int i; for (i = 0; i < 256; i++)
1959 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1963 if { (eval echo configure
:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1967 echo "configure: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1970 ac_cv_header_stdc
=no
1978 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1979 if test $ac_cv_header_stdc = yes; then
1980 cat >> confdefs.h
<<\EOF
1981 #define STDC_HEADERS 1
1987 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1989 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_hdr that defines DIR" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.
$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 #include <sys/types.h>
2004 if { (eval echo configure
:2005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2006 eval "ac_cv_header_dirent_$ac_safe=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.
$ac_ext >&5
2011 eval "ac_cv_header_dirent_$ac_safe=no"
2015 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2018 cat >> confdefs.h
<<EOF
2019 #define $ac_tr_hdr 1
2021 ac_header_dirent
=$ac_hdr; break
2023 echo "$ac_t""no" 1>&6
2026 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2027 if test $ac_header_dirent = dirent.h
; then
2028 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2029 echo "configure:2030: checking for opendir in -ldir" >&5
2030 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 ac_save_LIBS
="$LIBS"
2036 cat > conftest.
$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 /* Override any gcc2 internal prototype to avoid an error. */
2040 /* We use char because int might match the return type of a gcc2
2041 builtin and then its argument prototype would still apply. */
2048 if { (eval echo configure
:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2050 eval "ac_cv_lib_$ac_lib_var=yes"
2052 echo "configure: failed program was:" >&5
2053 cat conftest.
$ac_ext >&5
2055 eval "ac_cv_lib_$ac_lib_var=no"
2058 LIBS
="$ac_save_LIBS"
2061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2065 echo "$ac_t""no" 1>&6
2069 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2070 echo "configure:2071: checking for opendir in -lx" >&5
2071 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 ac_save_LIBS
="$LIBS"
2077 cat > conftest.
$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 /* Override any gcc2 internal prototype to avoid an error. */
2081 /* We use char because int might match the return type of a gcc2
2082 builtin and then its argument prototype would still apply. */
2089 if { (eval echo configure
:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2091 eval "ac_cv_lib_$ac_lib_var=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.
$ac_ext >&5
2096 eval "ac_cv_lib_$ac_lib_var=no"
2099 LIBS
="$ac_save_LIBS"
2102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2106 echo "$ac_t""no" 1>&6
2111 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2112 echo "configure:2113: checking whether time.h and sys/time.h may both be included" >&5
2113 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 cat > conftest.
$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 #include <sys/types.h>
2120 #include <sys/time.h>
2126 if { (eval echo configure
:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2128 ac_cv_header_time
=yes
2130 echo "configure: failed program was:" >&5
2131 cat conftest.
$ac_ext >&5
2133 ac_cv_header_time
=no
2138 echo "$ac_t""$ac_cv_header_time" 1>&6
2139 if test $ac_cv_header_time = yes; then
2140 cat >> confdefs.h
<<\EOF
2141 #define TIME_WITH_SYS_TIME 1
2146 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2147 echo "configure:2148: checking for sys/wait.h that is POSIX.1 compatible" >&5
2148 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 cat > conftest.
$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154 #include <sys/types.h>
2155 #include <sys/wait.h>
2157 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2160 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2165 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2168 if { (eval echo configure
:2169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2170 ac_cv_header_sys_wait_h
=yes
2172 echo "configure: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2175 ac_cv_header_sys_wait_h
=no
2180 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2181 if test $ac_cv_header_sys_wait_h = yes; then
2182 cat >> confdefs.h
<<\EOF
2183 #define HAVE_SYS_WAIT_H 1
2188 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2190 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_hdr" >&5
2193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 cat > conftest.
$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2202 { (eval echo configure
:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2203 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2204 if test -z "$ac_err"; then
2206 eval "ac_cv_header_$ac_safe=yes"
2209 echo "configure: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2212 eval "ac_cv_header_$ac_safe=no"
2216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2219 cat >> confdefs.h
<<EOF
2220 #define $ac_tr_hdr 1
2224 echo "$ac_t""no" 1>&6
2228 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2230 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_hdr" >&5
2233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 cat > conftest.
$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2242 { (eval echo configure
:2243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2243 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2244 if test -z "$ac_err"; then
2246 eval "ac_cv_header_$ac_safe=yes"
2249 echo "configure: failed program was:" >&5
2250 cat conftest.
$ac_ext >&5
2252 eval "ac_cv_header_$ac_safe=no"
2256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2259 cat >> confdefs.h
<<EOF
2260 #define $ac_tr_hdr 1
2264 echo "$ac_t""no" 1>&6
2268 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2270 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_hdr" >&5
2273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.
$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2281 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure
:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2284 if test -z "$ac_err"; then
2286 eval "ac_cv_header_$ac_safe=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2292 eval "ac_cv_header_$ac_safe=no"
2296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2298 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2299 cat >> confdefs.h
<<EOF
2300 #define $ac_tr_hdr 1
2304 echo "$ac_t""no" 1>&6
2308 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2310 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2312 echo "configure:2313: checking for $ac_hdr" >&5
2313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.
$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2321 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2322 { (eval echo configure
:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2323 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2324 if test -z "$ac_err"; then
2326 eval "ac_cv_header_$ac_safe=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.
$ac_ext >&5
2332 eval "ac_cv_header_$ac_safe=no"
2336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2339 cat >> confdefs.h
<<EOF
2340 #define $ac_tr_hdr 1
2344 echo "$ac_t""no" 1>&6
2348 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2350 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_hdr" >&5
2353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 cat > conftest.
$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2361 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2362 { (eval echo configure
:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2363 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364 if test -z "$ac_err"; then
2366 eval "ac_cv_header_$ac_safe=yes"
2369 echo "configure: failed program was:" >&5
2370 cat conftest.
$ac_ext >&5
2372 eval "ac_cv_header_$ac_safe=no"
2376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2379 cat >> confdefs.h
<<EOF
2380 #define $ac_tr_hdr 1
2384 echo "$ac_t""no" 1>&6
2388 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.h
2390 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2391 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2392 echo "configure:2393: checking for $ac_hdr" >&5
2393 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 cat > conftest.
$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2401 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2402 { (eval echo configure
:2403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2403 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2404 if test -z "$ac_err"; then
2406 eval "ac_cv_header_$ac_safe=yes"
2409 echo "configure: failed program was:" >&5
2410 cat conftest.
$ac_ext >&5
2412 eval "ac_cv_header_$ac_safe=no"
2416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2417 echo "$ac_t""yes" 1>&6
2418 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2419 cat >> confdefs.h
<<EOF
2420 #define $ac_tr_hdr 1
2424 echo "$ac_t""no" 1>&6
2428 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
2430 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2432 echo "configure:2433: checking for $ac_hdr" >&5
2433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.
$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2441 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2442 { (eval echo configure
:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2443 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2444 if test -z "$ac_err"; then
2446 eval "ac_cv_header_$ac_safe=yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.
$ac_ext >&5
2452 eval "ac_cv_header_$ac_safe=no"
2456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2457 echo "$ac_t""yes" 1>&6
2458 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2459 cat >> confdefs.h
<<EOF
2460 #define $ac_tr_hdr 1
2464 echo "$ac_t""no" 1>&6
2468 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2470 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2472 echo "configure:2473: checking for $ac_hdr" >&5
2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.
$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2481 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure
:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2486 eval "ac_cv_header_$ac_safe=yes"
2489 echo "configure: failed program was:" >&5
2490 cat conftest.
$ac_ext >&5
2492 eval "ac_cv_header_$ac_safe=no"
2496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2499 cat >> confdefs.h
<<EOF
2500 #define $ac_tr_hdr 1
2504 echo "$ac_t""no" 1>&6
2508 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2510 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_hdr" >&5
2513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.
$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2521 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2522 { (eval echo configure
:2523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2523 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2524 if test -z "$ac_err"; then
2526 eval "ac_cv_header_$ac_safe=yes"
2529 echo "configure: failed program was:" >&5
2530 cat conftest.
$ac_ext >&5
2532 eval "ac_cv_header_$ac_safe=no"
2536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2537 echo "$ac_t""yes" 1>&6
2538 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2539 cat >> confdefs.h
<<EOF
2540 #define $ac_tr_hdr 1
2544 echo "$ac_t""no" 1>&6
2550 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2551 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2555 cat > conftest.
$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2563 if { (eval echo configure
:2564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2565 ac_cv_header_shadow_h
=yes
2567 echo "configure: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2570 ac_cv_header_shadow_h
=no
2573 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2574 cat >> confdefs.h
<<\EOF
2575 #define HAVE_SHADOW_H 1
2581 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2583 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_hdr" >&5
2586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2594 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2595 { (eval echo configure
:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2596 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2597 if test -z "$ac_err"; then
2599 eval "ac_cv_header_$ac_safe=yes"
2602 echo "configure: failed program was:" >&5
2603 cat conftest.
$ac_ext >&5
2605 eval "ac_cv_header_$ac_safe=no"
2609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2610 echo "$ac_t""yes" 1>&6
2611 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2612 cat >> confdefs.h
<<EOF
2613 #define $ac_tr_hdr 1
2617 echo "$ac_t""no" 1>&6
2621 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2623 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_hdr" >&5
2626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.
$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2635 { (eval echo configure
:2636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2637 if test -z "$ac_err"; then
2639 eval "ac_cv_header_$ac_safe=yes"
2642 echo "configure: failed program was:" >&5
2643 cat conftest.
$ac_ext >&5
2645 eval "ac_cv_header_$ac_safe=no"
2649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2652 cat >> confdefs.h
<<EOF
2653 #define $ac_tr_hdr 1
2657 echo "$ac_t""no" 1>&6
2661 for ac_hdr
in stropts.h poll.h
2663 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2665 echo "configure:2666: checking for $ac_hdr" >&5
2666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.
$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2674 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2675 { (eval echo configure
:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2677 if test -z "$ac_err"; then
2679 eval "ac_cv_header_$ac_safe=yes"
2682 echo "configure: failed program was:" >&5
2683 cat conftest.
$ac_ext >&5
2685 eval "ac_cv_header_$ac_safe=no"
2689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2692 cat >> confdefs.h
<<EOF
2693 #define $ac_tr_hdr 1
2697 echo "$ac_t""no" 1>&6
2701 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2703 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2705 echo "configure:2706: checking for $ac_hdr" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 cat > conftest.
$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure
:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 eval "ac_cv_header_$ac_safe=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 eval "ac_cv_header_$ac_safe=no"
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2732 cat >> confdefs.h
<<EOF
2733 #define $ac_tr_hdr 1
2737 echo "$ac_t""no" 1>&6
2741 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2743 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_hdr" >&5
2746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 cat > conftest.
$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2754 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2755 { (eval echo configure
:2756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2756 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2757 if test -z "$ac_err"; then
2759 eval "ac_cv_header_$ac_safe=yes"
2762 echo "configure: failed program was:" >&5
2763 cat conftest.
$ac_ext >&5
2765 eval "ac_cv_header_$ac_safe=no"
2769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2770 echo "$ac_t""yes" 1>&6
2771 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2772 cat >> confdefs.h
<<EOF
2773 #define $ac_tr_hdr 1
2777 echo "$ac_t""no" 1>&6
2782 # For experimental utmp support (lastlog on some BSD-like systems)
2783 for ac_hdr
in utmp.h utmpx.h lastlog.h
2785 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_hdr" >&5
2788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 cat > conftest.
$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2796 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2797 { (eval echo configure
:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2798 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2799 if test -z "$ac_err"; then
2801 eval "ac_cv_header_$ac_safe=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.
$ac_ext >&5
2807 eval "ac_cv_header_$ac_safe=no"
2811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2814 cat >> confdefs.h
<<EOF
2815 #define $ac_tr_hdr 1
2819 echo "$ac_t""no" 1>&6
2824 # For quotas on Veritas VxFS filesystems
2825 for ac_hdr
in sys
/fs
/vx_quota.h
2827 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2829 echo "configure:2830: checking for $ac_hdr" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure
:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2856 cat >> confdefs.h
<<EOF
2857 #define $ac_tr_hdr 1
2861 echo "$ac_t""no" 1>&6
2866 # For quotas on Linux XFS filesystems
2867 for ac_hdr
in linux
/xqm.h
2869 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2871 echo "configure:2872: checking for $ac_hdr" >&5
2872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 cat > conftest.
$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2880 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2881 { (eval echo configure
:2882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2882 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2883 if test -z "$ac_err"; then
2885 eval "ac_cv_header_$ac_safe=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.
$ac_ext >&5
2891 eval "ac_cv_header_$ac_safe=no"
2895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2898 cat >> confdefs.h
<<EOF
2899 #define $ac_tr_hdr 1
2903 echo "$ac_t""no" 1>&6
2908 echo $ac_n "checking size of int""... $ac_c" 1>&6
2909 echo "configure:2910: checking size of int" >&5
2910 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 if test "$cross_compiling" = yes; then
2914 ac_cv_sizeof_int
=cross
2916 cat > conftest.
$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2922 FILE *f=fopen("conftestval", "w");
2924 fprintf(f, "%d\n", sizeof(int));
2928 if { (eval echo configure
:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2930 ac_cv_sizeof_int
=`cat conftestval`
2932 echo "configure: failed program was:" >&5
2933 cat conftest.
$ac_ext >&5
2941 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2942 cat >> confdefs.h
<<EOF
2943 #define SIZEOF_INT $ac_cv_sizeof_int
2947 echo $ac_n "checking size of long""... $ac_c" 1>&6
2948 echo "configure:2949: checking size of long" >&5
2949 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 if test "$cross_compiling" = yes; then
2953 ac_cv_sizeof_long
=cross
2955 cat > conftest.
$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2961 FILE *f=fopen("conftestval", "w");
2963 fprintf(f, "%d\n", sizeof(long));
2967 if { (eval echo configure
:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2969 ac_cv_sizeof_long
=`cat conftestval`
2971 echo "configure: failed program was:" >&5
2972 cat conftest.
$ac_ext >&5
2980 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2981 cat >> confdefs.h
<<EOF
2982 #define SIZEOF_LONG $ac_cv_sizeof_long
2986 echo $ac_n "checking size of short""... $ac_c" 1>&6
2987 echo "configure:2988: checking size of short" >&5
2988 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test "$cross_compiling" = yes; then
2992 ac_cv_sizeof_short
=cross
2994 cat > conftest.
$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
3000 FILE *f=fopen("conftestval", "w");
3002 fprintf(f, "%d\n", sizeof(short));
3006 if { (eval echo configure
:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3008 ac_cv_sizeof_short
=`cat conftestval`
3010 echo "configure: failed program was:" >&5
3011 cat conftest.
$ac_ext >&5
3013 ac_cv_sizeof_short
=0
3019 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3020 cat >> confdefs.h
<<EOF
3021 #define SIZEOF_SHORT $ac_cv_sizeof_short
3026 echo $ac_n "checking for working const""... $ac_c" 1>&6
3027 echo "configure:3028: checking for working const" >&5
3028 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3037 /* Ultrix mips cc rejects this. */
3038 typedef int charset[2]; const charset x;
3039 /* SunOS 4.1.1 cc rejects this. */
3040 char const *const *ccp;
3042 /* NEC SVR4.0.2 mips cc rejects this. */
3043 struct point {int x, y;};
3044 static struct point const zero = {0,0};
3045 /* AIX XL C 1.02.0.0 rejects this.
3046 It does not let you subtract one const X* pointer from another in an arm
3047 of an if-expression whose if-part is not a constant expression */
3048 const char *g = "string";
3049 ccp = &g + (g ? g-g : 0);
3050 /* HPUX 7.0 cc rejects these. */
3053 ccp = (char const *const *) p;
3054 { /* SCO 3.2v4 cc rejects this. */
3056 char const *s = 0 ? (char *) 0 : (char const *) 0;
3060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3062 const int *foo = &x[0];
3065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3066 typedef const int *iptr;
3070 { /* AIX XL C 1.02.0.0 rejects this saying
3071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3072 struct s { int j; const int *ap[3]; };
3073 struct s *b; b->j = 5;
3075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3081 if { (eval echo configure
:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3085 echo "configure: failed program was:" >&5
3086 cat conftest.
$ac_ext >&5
3093 echo "$ac_t""$ac_cv_c_const" 1>&6
3094 if test $ac_cv_c_const = no
; then
3095 cat >> confdefs.h
<<\EOF
3101 echo $ac_n "checking for inline""... $ac_c" 1>&6
3102 echo "configure:3103: checking for inline" >&5
3103 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3107 for ac_kw
in inline __inline__ __inline
; do
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3116 if { (eval echo configure
:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3118 ac_cv_c_inline
=$ac_kw; break
3120 echo "configure: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3128 echo "$ac_t""$ac_cv_c_inline" 1>&6
3129 case "$ac_cv_c_inline" in
3131 no
) cat >> confdefs.h
<<\EOF
3135 *) cat >> confdefs.h
<<EOF
3136 #define inline $ac_cv_c_inline
3141 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3142 echo "configure:3143: checking whether byte ordering is bigendian" >&5
3143 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3146 ac_cv_c_bigendian
=unknown
3147 # See if sys/param.h defines the BYTE_ORDER macro.
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <sys/types.h>
3152 #include <sys/param.h>
3155 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3160 if { (eval echo configure
:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162 # It does; now see whether it defined to BIG_ENDIAN or not.
3163 cat > conftest.
$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 #include <sys/types.h>
3167 #include <sys/param.h>
3170 #if BYTE_ORDER != BIG_ENDIAN
3175 if { (eval echo configure
:3176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3177 ac_cv_c_bigendian
=yes
3179 echo "configure: failed program was:" >&5
3180 cat conftest.
$ac_ext >&5
3182 ac_cv_c_bigendian
=no
3186 echo "configure: failed program was:" >&5
3187 cat conftest.
$ac_ext >&5
3190 if test $ac_cv_c_bigendian = unknown
; then
3191 if test "$cross_compiling" = yes; then
3192 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3198 /* Are we little or big endian? From Harbison&Steele. */
3202 char c[sizeof (long)];
3205 exit (u.c[sizeof (long) - 1] == 1);
3208 if { (eval echo configure
:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3210 ac_cv_c_bigendian
=no
3212 echo "configure: failed program was:" >&5
3213 cat conftest.
$ac_ext >&5
3215 ac_cv_c_bigendian
=yes
3223 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3224 if test $ac_cv_c_bigendian = yes; then
3225 cat >> confdefs.h
<<\EOF
3226 #define WORDS_BIGENDIAN 1
3231 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3232 echo "configure:3233: checking whether char is unsigned" >&5
3233 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 if test "$GCC" = yes; then
3237 # GCC predefines this symbol on systems where it applies.
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #ifdef __CHAR_UNSIGNED__
3246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3247 egrep "yes" >/dev
/null
2>&1; then
3249 ac_cv_c_char_unsigned
=yes
3252 ac_cv_c_char_unsigned
=no
3257 if test "$cross_compiling" = yes; then
3258 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3260 cat > conftest.
$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3264 #if !defined(__STDC__) || __STDC__ != 1
3268 volatile char c = 255; exit(c < 0);
3271 if { (eval echo configure
:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3273 ac_cv_c_char_unsigned
=yes
3275 echo "configure: failed program was:" >&5
3276 cat conftest.
$ac_ext >&5
3278 ac_cv_c_char_unsigned
=no
3286 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3287 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3288 cat >> confdefs.h
<<\EOF
3289 #define __CHAR_UNSIGNED__ 1
3295 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3296 echo "configure:3297: checking return type of signal handlers" >&5
3297 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3309 extern "C" void (*signal (int, void (*)(int)))(int);
3311 void (*signal ()) ();
3318 if { (eval echo configure
:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3320 ac_cv_type_signal
=void
3322 echo "configure: failed program was:" >&5
3323 cat conftest.
$ac_ext >&5
3325 ac_cv_type_signal
=int
3330 echo "$ac_t""$ac_cv_type_signal" 1>&6
3331 cat >> confdefs.h
<<EOF
3332 #define RETSIGTYPE $ac_cv_type_signal
3336 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3337 echo "configure:3338: checking for uid_t in sys/types.h" >&5
3338 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.
$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <sys/types.h>
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 egrep "uid_t" >/dev
/null
2>&1; then
3349 ac_cv_type_uid_t
=yes
3358 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3359 if test $ac_cv_type_uid_t = no
; then
3360 cat >> confdefs.h
<<\EOF
3364 cat >> confdefs.h
<<\EOF
3370 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3371 echo "configure:3372: checking for mode_t" >&5
3372 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 cat > conftest.
$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <sys/types.h>
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3387 ac_cv_type_mode_t
=yes
3390 ac_cv_type_mode_t
=no
3395 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3396 if test $ac_cv_type_mode_t = no
; then
3397 cat >> confdefs.h
<<\EOF
3403 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3404 echo "configure:3405: checking for off_t" >&5
3405 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 cat > conftest.
$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 #include <sys/types.h>
3417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3420 ac_cv_type_off_t
=yes
3428 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3429 if test $ac_cv_type_off_t = no
; then
3430 cat >> confdefs.h
<<\EOF
3436 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3437 echo "configure:3438: checking for size_t" >&5
3438 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 cat > conftest.
$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <sys/types.h>
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3453 ac_cv_type_size_t
=yes
3456 ac_cv_type_size_t
=no
3461 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3462 if test $ac_cv_type_size_t = no
; then
3463 cat >> confdefs.h
<<\EOF
3464 #define size_t unsigned
3469 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3470 echo "configure:3471: checking for pid_t" >&5
3471 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 cat > conftest.
$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 #include <sys/types.h>
3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3486 ac_cv_type_pid_t
=yes
3494 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3495 if test $ac_cv_type_pid_t = no
; then
3496 cat >> confdefs.h
<<\EOF
3502 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3503 echo "configure:3504: checking for st_rdev in struct stat" >&5
3504 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.
$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3511 #include <sys/stat.h>
3513 struct stat s; s.st_rdev;
3516 if { (eval echo configure
:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 ac_cv_struct_st_rdev
=yes
3520 echo "configure: failed program was:" >&5
3521 cat conftest.
$ac_ext >&5
3523 ac_cv_struct_st_rdev
=no
3528 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3529 if test $ac_cv_struct_st_rdev = yes; then
3530 cat >> confdefs.h
<<\EOF
3531 #define HAVE_ST_RDEV 1
3536 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3537 echo "configure:3538: checking for d_off in dirent" >&5
3538 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.
$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3546 #include <sys/types.h>
3549 struct dirent d; d.d_off;
3552 if { (eval echo configure
:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554 ac_cv_dirent_d_off
=yes
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3559 ac_cv_dirent_d_off
=no
3564 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3565 if test $ac_cv_dirent_d_off = yes; then
3566 cat >> confdefs.h
<<\EOF
3567 #define HAVE_DIRENT_D_OFF 1
3572 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3573 echo "configure:3574: checking for ino_t" >&5
3574 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 cat > conftest.
$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <sys/types.h>
3586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3587 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3589 ac_cv_type_ino_t
=yes
3597 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3598 if test $ac_cv_type_ino_t = no
; then
3599 cat >> confdefs.h
<<\EOF
3600 #define ino_t unsigned
3605 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3606 echo "configure:3607: checking for loff_t" >&5
3607 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.
$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include <sys/types.h>
3619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3622 ac_cv_type_loff_t
=yes
3625 ac_cv_type_loff_t
=no
3630 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3631 if test $ac_cv_type_loff_t = no
; then
3632 cat >> confdefs.h
<<\EOF
3633 #define loff_t off_t
3638 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3639 echo "configure:3640: checking for offset_t" >&5
3640 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 cat > conftest.
$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3655 ac_cv_type_offset_t
=yes
3658 ac_cv_type_offset_t
=no
3663 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3664 if test $ac_cv_type_offset_t = no
; then
3665 cat >> confdefs.h
<<\EOF
3666 #define offset_t loff_t
3671 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3672 echo "configure:3673: checking for ssize_t" >&5
3673 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.
$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 #include <sys/types.h>
3685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3688 ac_cv_type_ssize_t
=yes
3691 ac_cv_type_ssize_t
=no
3696 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3697 if test $ac_cv_type_ssize_t = no
; then
3698 cat >> confdefs.h
<<\EOF
3704 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3705 echo "configure:3706: checking for wchar_t" >&5
3706 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.
$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <sys/types.h>
3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3721 ac_cv_type_wchar_t
=yes
3724 ac_cv_type_wchar_t
=no
3729 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3730 if test $ac_cv_type_wchar_t = no
; then
3731 cat >> confdefs.h
<<\EOF
3732 #define wchar_t unsigned short
3738 ############################################
3739 # for cups support we need libcups, and a handful of header files
3741 # Check whether --enable-cups or --disable-cups was given.
3742 if test "${enable_cups+set}" = set; then
3743 enableval
="$enable_cups"
3748 if test x
$enable_cups != xno
; then
3749 # Extract the first word of "cups-config", so it can be a program name with args.
3750 set dummy cups-config
; ac_word
=$2
3751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_word" >&5
3753 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 case "$CUPS_CONFIG" in
3758 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3761 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3766 for ac_dir
in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir
=.
3768 if test -f $ac_dir/$ac_word; then
3769 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3777 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3778 if test -n "$CUPS_CONFIG"; then
3779 echo "$ac_t""$CUPS_CONFIG" 1>&6
3781 echo "$ac_t""no" 1>&6
3785 if test "x$CUPS_CONFIG" != x
; then
3786 cat >> confdefs.h
<<\EOF
3790 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3791 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3792 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3796 ############################################
3797 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3798 for ac_func
in dlopen
3800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3801 echo "configure:3802: checking for $ac_func" >&5
3802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3805 cat > conftest.
$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 /* System header to define __stub macros and hopefully few prototypes,
3809 which can conflict with char $ac_func(); below. */
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3818 /* The GNU C library defines this for functions which it implements
3819 to always fail with ENOSYS. Some functions are actually named
3820 something starting with __ and the normal name is an alias. */
3821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 if { (eval echo configure
:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3831 eval "ac_cv_func_$ac_func=yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.
$ac_ext >&5
3836 eval "ac_cv_func_$ac_func=no"
3841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3844 cat >> confdefs.h
<<EOF
3845 #define $ac_tr_func 1
3849 echo "$ac_t""no" 1>&6
3853 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3854 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3855 echo "configure:3856: checking for dlopen in -ldl" >&5
3856 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 ac_save_LIBS
="$LIBS"
3862 cat > conftest.
$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3874 if { (eval echo configure
:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3876 eval "ac_cv_lib_$ac_lib_var=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.
$ac_ext >&5
3881 eval "ac_cv_lib_$ac_lib_var=no"
3884 LIBS
="$ac_save_LIBS"
3887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3890 cat >> confdefs.h
<<\EOF
3891 #define HAVE_DLOPEN 1
3895 echo "$ac_t""no" 1>&6
3899 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3901 ############################################
3902 # check if the compiler can do immediate structures
3903 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3904 echo "configure:3905: checking for immediate structures" >&5
3905 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.
$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3916 typedef struct {unsigned x;} FOOBAR;
3917 #define X_FOOBAR(x) ((FOOBAR) { x })
3918 #define FOO_ONE X_FOOBAR(1)
3928 if { (eval echo configure
:3929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3930 samba_cv_immediate_structures
=yes
3932 echo "configure: failed program was:" >&5
3933 cat conftest.
$ac_ext >&5
3935 samba_cv_immediate_structures
=no
3940 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3941 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3942 cat >> confdefs.h
<<\EOF
3943 #define HAVE_IMMEDIATE_STRUCTURES 1
3948 ############################################
3949 # check for unix domain sockets
3950 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3951 echo "configure:3952: checking for unix domain sockets" >&5
3952 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3960 #include <sys/types.h>
3963 #include <sys/socket.h>
3967 struct sockaddr_un sunaddr;
3968 sunaddr.sun_family = AF_UNIX;
3972 if { (eval echo configure
:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3974 samba_cv_unixsocket
=yes
3976 echo "configure: failed program was:" >&5
3977 cat conftest.
$ac_ext >&5
3979 samba_cv_unixsocket
=no
3984 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3985 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3986 cat >> confdefs.h
<<\EOF
3987 #define HAVE_UNIXSOCKET 1
3992 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3993 echo "configure:3994: checking for socklen_t type" >&5
3994 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3998 cat > conftest.
$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4002 #include <sys/types.h>
4007 #include <sys/socket.h>
4012 if { (eval echo configure
:4013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4014 samba_cv_socklen_t
=yes
4016 echo "configure: failed program was:" >&5
4017 cat conftest.
$ac_ext >&5
4019 samba_cv_socklen_t
=no
4024 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4025 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4026 cat >> confdefs.h
<<\EOF
4027 #define HAVE_SOCKLEN_T_TYPE 1
4032 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4033 echo "configure:4034: checking for sig_atomic_t type" >&5
4034 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4038 cat > conftest.
$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4042 #include <sys/types.h>
4052 if { (eval echo configure
:4053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4054 samba_cv_sig_atomic_t
=yes
4056 echo "configure: failed program was:" >&5
4057 cat conftest.
$ac_ext >&5
4059 samba_cv_sig_atomic_t
=no
4064 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4065 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4066 cat >> confdefs.h
<<\EOF
4067 #define HAVE_SIG_ATOMIC_T_TYPE 1
4072 # stupid headers have the functions but no declaration. grrrr.
4074 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4075 echo "configure:4076: checking for errno declaration" >&5
4076 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4080 cat > conftest.
$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4088 if { (eval echo configure
:4089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4090 ac_cv_have_errno_decl
=yes
4092 echo "configure: failed program was:" >&5
4093 cat conftest.
$ac_ext >&5
4095 ac_cv_have_errno_decl
=no
4100 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4101 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4102 cat >> confdefs.h
<<\EOF
4103 #define HAVE_ERRNO_DECL 1
4109 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4110 echo "configure:4111: checking for setresuid declaration" >&5
4111 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4115 cat > conftest.
$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4120 int i = (int)setresuid
4123 if { (eval echo configure
:4124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4125 ac_cv_have_setresuid_decl
=yes
4127 echo "configure: failed program was:" >&5
4128 cat conftest.
$ac_ext >&5
4130 ac_cv_have_setresuid_decl
=no
4135 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4136 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4137 cat >> confdefs.h
<<\EOF
4138 #define HAVE_SETRESUID_DECL 1
4144 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4145 echo "configure:4146: checking for setresgid declaration" >&5
4146 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.
$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4155 int i = (int)setresgid
4158 if { (eval echo configure
:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4160 ac_cv_have_setresgid_decl
=yes
4162 echo "configure: failed program was:" >&5
4163 cat conftest.
$ac_ext >&5
4165 ac_cv_have_setresgid_decl
=no
4170 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4171 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4172 cat >> confdefs.h
<<\EOF
4173 #define HAVE_SETRESGID_DECL 1
4179 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4180 echo "configure:4181: checking for asprintf declaration" >&5
4181 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4185 cat > conftest.
$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4190 int i = (int)asprintf
4193 if { (eval echo configure
:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4195 ac_cv_have_asprintf_decl
=yes
4197 echo "configure: failed program was:" >&5
4198 cat conftest.
$ac_ext >&5
4200 ac_cv_have_asprintf_decl
=no
4205 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4206 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4207 cat >> confdefs.h
<<\EOF
4208 #define HAVE_ASPRINTF_DECL 1
4214 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4215 echo "configure:4216: checking for vasprintf declaration" >&5
4216 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4220 cat > conftest.
$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4225 int i = (int)vasprintf
4228 if { (eval echo configure
:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4230 ac_cv_have_vasprintf_decl
=yes
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4235 ac_cv_have_vasprintf_decl
=no
4240 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4241 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4242 cat >> confdefs.h
<<\EOF
4243 #define HAVE_VASPRINTF_DECL 1
4249 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4250 echo "configure:4251: checking for vsnprintf declaration" >&5
4251 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4255 cat > conftest.
$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4260 int i = (int)vsnprintf
4263 if { (eval echo configure
:4264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4265 ac_cv_have_vsnprintf_decl
=yes
4267 echo "configure: failed program was:" >&5
4268 cat conftest.
$ac_ext >&5
4270 ac_cv_have_vsnprintf_decl
=no
4275 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4276 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4277 cat >> confdefs.h
<<\EOF
4278 #define HAVE_VSNPRINTF_DECL 1
4284 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4285 echo "configure:4286: checking for snprintf declaration" >&5
4286 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4290 cat > conftest.
$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4295 int i = (int)snprintf
4298 if { (eval echo configure
:4299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4300 ac_cv_have_snprintf_decl
=yes
4302 echo "configure: failed program was:" >&5
4303 cat conftest.
$ac_ext >&5
4305 ac_cv_have_snprintf_decl
=no
4310 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4311 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4312 cat >> confdefs.h
<<\EOF
4313 #define HAVE_SNPRINTF_DECL 1
4319 # and glibc has setresuid under linux but the function does
4320 # nothing until kernel 2.1.44! very dumb.
4321 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4322 echo "configure:4323: checking for real setresuid" >&5
4323 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4327 if test "$cross_compiling" = yes; then
4328 samba_cv_have_setresuid
=cross
4330 cat > conftest.
$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4334 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4336 if { (eval echo configure
:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4338 samba_cv_have_setresuid
=yes
4340 echo "configure: failed program was:" >&5
4341 cat conftest.
$ac_ext >&5
4343 samba_cv_have_setresuid
=no
4350 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4351 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4352 cat >> confdefs.h
<<\EOF
4353 #define HAVE_SETRESUID 1
4358 # Do the same check for setresguid...
4360 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4361 echo "configure:4362: checking for real setresgid" >&5
4362 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4366 if test "$cross_compiling" = yes; then
4367 samba_cv_have_setresgid
=cross
4369 cat > conftest.
$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4374 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4376 if { (eval echo configure
:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4378 samba_cv_have_setresgid
=yes
4380 echo "configure: failed program was:" >&5
4381 cat conftest.
$ac_ext >&5
4383 samba_cv_have_setresgid
=no
4390 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4391 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4392 cat >> confdefs.h
<<\EOF
4393 #define HAVE_SETRESGID 1
4398 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4399 echo "configure:4400: checking for 8-bit clean memcmp" >&5
4400 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 if test "$cross_compiling" = yes; then
4404 ac_cv_func_memcmp_clean
=no
4406 cat > conftest.
$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4412 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4413 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4417 if { (eval echo configure
:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4419 ac_cv_func_memcmp_clean
=yes
4421 echo "configure: failed program was:" >&5
4422 cat conftest.
$ac_ext >&5
4424 ac_cv_func_memcmp_clean
=no
4431 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4432 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4435 ###############################################
4436 # Readline included by default unless explicitly asked not to
4437 test "${with_readline+set}" != "set" && with_readline
=yes
4439 # test for where we get readline() from
4440 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4441 echo "configure:4442: checking whether to use readline" >&5
4442 # Check whether --with-readline or --without-readline was given.
4443 if test "${with_readline+set}" = set; then
4444 withval
="$with_readline"
4445 case "$with_readline" in
4447 echo "$ac_t""yes" 1>&6
4449 for ac_hdr
in readline.h
history.h readline
/readline.h
4451 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4453 echo "configure:4454: checking for $ac_hdr" >&5
4454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 cat > conftest.
$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4462 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4463 { (eval echo configure
:4464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4464 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4465 if test -z "$ac_err"; then
4467 eval "ac_cv_header_$ac_safe=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.
$ac_ext >&5
4473 eval "ac_cv_header_$ac_safe=no"
4477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4479 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4480 cat >> confdefs.h
<<EOF
4481 #define $ac_tr_hdr 1
4485 echo "$ac_t""no" 1>&6
4489 for ac_hdr
in readline
/history.h
4491 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4493 echo "configure:4494: checking for $ac_hdr" >&5
4494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4497 cat > conftest.
$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4502 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4503 { (eval echo configure
:4504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4504 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4505 if test -z "$ac_err"; then
4507 eval "ac_cv_header_$ac_safe=yes"
4510 echo "configure: failed program was:" >&5
4511 cat conftest.
$ac_ext >&5
4513 eval "ac_cv_header_$ac_safe=no"
4517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4520 cat >> confdefs.h
<<EOF
4521 #define $ac_tr_hdr 1
4525 echo "$ac_t""no" 1>&6
4530 for ac_hdr
in readline.h readline
/readline.h
4532 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4534 echo "configure:4535: checking for $ac_hdr" >&5
4535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 cat > conftest.
$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4543 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544 { (eval echo configure
:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546 if test -z "$ac_err"; then
4548 eval "ac_cv_header_$ac_safe=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.
$ac_ext >&5
4554 eval "ac_cv_header_$ac_safe=no"
4558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4561 cat >> confdefs.h
<<EOF
4562 #define $ac_tr_hdr 1
4565 for termlib
in ncurses curses termcap terminfo termlib
; do
4566 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4567 echo "configure:4568: checking for tgetent in -l${termlib}" >&5
4568 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 ac_save_LIBS
="$LIBS"
4573 LIBS
="-l${termlib} $LIBS"
4574 cat > conftest.
$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 /* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
4586 if { (eval echo configure
:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4588 eval "ac_cv_lib_$ac_lib_var=yes"
4590 echo "configure: failed program was:" >&5
4591 cat conftest.
$ac_ext >&5
4593 eval "ac_cv_lib_$ac_lib_var=no"
4596 LIBS
="$ac_save_LIBS"
4599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6
4601 TERMLIBS
="-l${termlib}"; break
4603 echo "$ac_t""no" 1>&6
4607 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4608 echo "configure:4609: checking for rl_callback_handler_install in -lreadline" >&5
4609 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 ac_save_LIBS
="$LIBS"
4614 LIBS
="-lreadline $TERMLIBS $LIBS"
4615 cat > conftest.
$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* Override any gcc2 internal prototype to avoid an error. */
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4621 char rl_callback_handler_install();
4624 rl_callback_handler_install()
4627 if { (eval echo configure
:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4629 eval "ac_cv_lib_$ac_lib_var=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.
$ac_ext >&5
4634 eval "ac_cv_lib_$ac_lib_var=no"
4637 LIBS
="$ac_save_LIBS"
4640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 TERMLIBS
="-lreadline $TERMLIBS"
4643 cat >> confdefs.h
<<\EOF
4644 #define HAVE_LIBREADLINE 1
4649 echo "$ac_t""no" 1>&6
4654 echo "$ac_t""no" 1>&6
4660 echo "$ac_t""no" 1>&6
4663 echo "$ac_t""yes" 1>&6
4665 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4666 # alternate readline path
4668 _cppflags
=${CPPFLAGS}
4670 # Add additional search path
4671 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4672 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4674 for ac_hdr
in readline.h
history.h readline
/readline.h
4676 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_hdr" >&5
4679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.
$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4688 { (eval echo configure
:4689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4689 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4690 if test -z "$ac_err"; then
4692 eval "ac_cv_header_$ac_safe=yes"
4695 echo "configure: failed program was:" >&5
4696 cat conftest.
$ac_ext >&5
4698 eval "ac_cv_header_$ac_safe=no"
4702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4705 cat >> confdefs.h
<<EOF
4706 #define $ac_tr_hdr 1
4710 echo "$ac_t""no" 1>&6
4714 for ac_hdr
in readline
/history.h
4716 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4718 echo "configure:4719: checking for $ac_hdr" >&5
4719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 cat > conftest.
$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4728 { (eval echo configure
:4729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4730 if test -z "$ac_err"; then
4732 eval "ac_cv_header_$ac_safe=yes"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.
$ac_ext >&5
4738 eval "ac_cv_header_$ac_safe=no"
4742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4744 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4745 cat >> confdefs.h
<<EOF
4746 #define $ac_tr_hdr 1
4750 echo "$ac_t""no" 1>&6
4755 for ac_hdr
in readline.h readline
/readline.h
4757 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4758 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4759 echo "configure:4760: checking for $ac_hdr" >&5
4760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 cat > conftest.
$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4768 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4769 { (eval echo configure
:4770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4770 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4771 if test -z "$ac_err"; then
4773 eval "ac_cv_header_$ac_safe=yes"
4776 echo "configure: failed program was:" >&5
4777 cat conftest.
$ac_ext >&5
4779 eval "ac_cv_header_$ac_safe=no"
4783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6
4785 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4786 cat >> confdefs.h
<<EOF
4787 #define $ac_tr_hdr 1
4790 for termlib
in ncurses curses termcap terminfo termlib
; do
4791 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4792 echo "configure:4793: checking for tgetent in -l${termlib}" >&5
4793 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 ac_save_LIBS
="$LIBS"
4798 LIBS
="-l${termlib} $LIBS"
4799 cat > conftest.
$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 /* Override any gcc2 internal prototype to avoid an error. */
4803 /* We use char because int might match the return type of a gcc2
4804 builtin and then its argument prototype would still apply. */
4811 if { (eval echo configure
:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4813 eval "ac_cv_lib_$ac_lib_var=yes"
4815 echo "configure: failed program was:" >&5
4816 cat conftest.
$ac_ext >&5
4818 eval "ac_cv_lib_$ac_lib_var=no"
4821 LIBS
="$ac_save_LIBS"
4824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4825 echo "$ac_t""yes" 1>&6
4826 TERMLIBS
="-l${termlib}"; break
4828 echo "$ac_t""no" 1>&6
4832 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4833 echo "configure:4834: checking for rl_callback_handler_install in -lreadline" >&5
4834 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 ac_save_LIBS
="$LIBS"
4839 LIBS
="-lreadline $TERMLIBS $LIBS"
4840 cat > conftest.
$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 /* Override any gcc2 internal prototype to avoid an error. */
4844 /* We use char because int might match the return type of a gcc2
4845 builtin and then its argument prototype would still apply. */
4846 char rl_callback_handler_install();
4849 rl_callback_handler_install()
4852 if { (eval echo configure
:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4854 eval "ac_cv_lib_$ac_lib_var=yes"
4856 echo "configure: failed program was:" >&5
4857 cat conftest.
$ac_ext >&5
4859 eval "ac_cv_lib_$ac_lib_var=no"
4862 LIBS
="$ac_save_LIBS"
4865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4866 echo "$ac_t""yes" 1>&6
4867 TERMLDFLAGS
="-L$with_readline/lib"
4868 TERMCPPFLAGS
="-I$with_readline/include"
4869 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4870 TERMLIBS
="-lreadline $TERMLIBS"
4871 cat >> confdefs.h
<<\EOF
4872 #define HAVE_LIBREADLINE 1
4877 echo "$ac_t""no" 1>&6
4878 TERMLIBS
= CPPFLAGS
=$_cppflags
4882 echo "$ac_t""no" 1>&6
4891 echo "$ac_t""no" 1>&6
4898 # The following test taken from the cvs sources
4899 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4900 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4901 # libsocket.so which has a bad implementation of gethostbyname (it
4902 # only looks in /etc/hosts), so we only look for -lsocket if we need
4904 for ac_func
in connect
4906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_func" >&5
4908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 cat > conftest.
$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* System header to define __stub macros and hopefully few prototypes,
4915 which can conflict with char $ac_func(); below. */
4917 /* Override any gcc2 internal prototype to avoid an error. */
4918 /* We use char because int might match the return type of a gcc2
4919 builtin and then its argument prototype would still apply. */
4924 /* The GNU C library defines this for functions which it implements
4925 to always fail with ENOSYS. Some functions are actually named
4926 something starting with __ and the normal name is an alias. */
4927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4935 if { (eval echo configure
:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4937 eval "ac_cv_func_$ac_func=yes"
4939 echo "configure: failed program was:" >&5
4940 cat conftest.
$ac_ext >&5
4942 eval "ac_cv_func_$ac_func=no"
4947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4948 echo "$ac_t""yes" 1>&6
4949 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4950 cat >> confdefs.h
<<EOF
4951 #define $ac_tr_func 1
4955 echo "$ac_t""no" 1>&6
4959 if test x
"$ac_cv_func_connect" = x
"no"; then
4962 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4963 echo "configure:4964: checking for printf in -lnsl_s" >&5
4964 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4968 ac_save_LIBS
="$LIBS"
4969 LIBS
="-lnsl_s $LIBS"
4970 cat > conftest.
$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4982 if { (eval echo configure
:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4984 eval "ac_cv_lib_$ac_lib_var=yes"
4986 echo "configure: failed program was:" >&5
4987 cat conftest.
$ac_ext >&5
4989 eval "ac_cv_lib_$ac_lib_var=no"
4992 LIBS
="$ac_save_LIBS"
4995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4996 echo "$ac_t""yes" 1>&6
4997 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4999 cat >> confdefs.h
<<EOF
5000 #define $ac_tr_lib 1
5003 LIBS
="-lnsl_s $LIBS"
5006 echo "$ac_t""no" 1>&6
5012 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5013 echo "configure:5014: checking for printf in -lnsl" >&5
5014 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 ac_save_LIBS
="$LIBS"
5020 cat > conftest.
$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5032 if { (eval echo configure
:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5034 eval "ac_cv_lib_$ac_lib_var=yes"
5036 echo "configure: failed program was:" >&5
5037 cat conftest.
$ac_ext >&5
5039 eval "ac_cv_lib_$ac_lib_var=no"
5042 LIBS
="$ac_save_LIBS"
5045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5046 echo "$ac_t""yes" 1>&6
5047 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5049 cat >> confdefs.h
<<EOF
5050 #define $ac_tr_lib 1
5056 echo "$ac_t""no" 1>&6
5062 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5063 echo "configure:5064: checking for connect in -lsocket" >&5
5064 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5068 ac_save_LIBS
="$LIBS"
5069 LIBS
="-lsocket $LIBS"
5070 cat > conftest.
$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5082 if { (eval echo configure
:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5084 eval "ac_cv_lib_$ac_lib_var=yes"
5086 echo "configure: failed program was:" >&5
5087 cat conftest.
$ac_ext >&5
5089 eval "ac_cv_lib_$ac_lib_var=no"
5092 LIBS
="$ac_save_LIBS"
5095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5097 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5099 cat >> confdefs.h
<<EOF
5100 #define $ac_tr_lib 1
5103 LIBS
="-lsocket $LIBS"
5106 echo "$ac_t""no" 1>&6
5112 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5113 echo "configure:5114: checking for connect in -linet" >&5
5114 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 ac_save_LIBS
="$LIBS"
5120 cat > conftest.
$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5123 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5132 if { (eval echo configure
:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5134 eval "ac_cv_lib_$ac_lib_var=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.
$ac_ext >&5
5139 eval "ac_cv_lib_$ac_lib_var=no"
5142 LIBS
="$ac_save_LIBS"
5145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5149 cat >> confdefs.h
<<EOF
5150 #define $ac_tr_lib 1
5156 echo "$ac_t""no" 1>&6
5160 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5161 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5162 # ac_cv_func_connect=yes
5163 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5164 cat >> confdefs.h
<<\EOF
5165 #define HAVE_CONNECT 1
5171 ###############################################
5172 # test for where we get get_yp_default_domain() from
5173 for ac_func
in yp_get_default_domain
5175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5176 echo "configure:5177: checking for $ac_func" >&5
5177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5180 cat > conftest.
$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5183 /* System header to define __stub macros and hopefully few prototypes,
5184 which can conflict with char $ac_func(); below. */
5186 /* Override any gcc2 internal prototype to avoid an error. */
5187 /* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5193 /* The GNU C library defines this for functions which it implements
5194 to always fail with ENOSYS. Some functions are actually named
5195 something starting with __ and the normal name is an alias. */
5196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5204 if { (eval echo configure
:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5206 eval "ac_cv_func_$ac_func=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.
$ac_ext >&5
5211 eval "ac_cv_func_$ac_func=no"
5216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5217 echo "$ac_t""yes" 1>&6
5218 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5219 cat >> confdefs.h
<<EOF
5220 #define $ac_tr_func 1
5224 echo "$ac_t""no" 1>&6
5228 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5229 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5230 echo "configure:5231: checking for yp_get_default_domain in -lnsl" >&5
5231 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5235 ac_save_LIBS
="$LIBS"
5237 cat > conftest.
$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5243 char yp_get_default_domain();
5246 yp_get_default_domain()
5249 if { (eval echo configure
:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5251 eval "ac_cv_lib_$ac_lib_var=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.
$ac_ext >&5
5256 eval "ac_cv_lib_$ac_lib_var=no"
5259 LIBS
="$ac_save_LIBS"
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5263 echo "$ac_t""yes" 1>&6
5265 cat >> confdefs.h
<<\EOF
5266 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5270 echo "$ac_t""no" 1>&6
5275 # Check if we have execl, if not we need to compile smbrun.
5276 for ac_func
in execl
5278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5279 echo "configure:5280: checking for $ac_func" >&5
5280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5283 cat > conftest.
$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5286 /* System header to define __stub macros and hopefully few prototypes,
5287 which can conflict with char $ac_func(); below. */
5289 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5296 /* The GNU C library defines this for functions which it implements
5297 to always fail with ENOSYS. Some functions are actually named
5298 something starting with __ and the normal name is an alias. */
5299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5307 if { (eval echo configure
:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5309 eval "ac_cv_func_$ac_func=yes"
5311 echo "configure: failed program was:" >&5
5312 cat conftest.
$ac_ext >&5
5314 eval "ac_cv_func_$ac_func=no"
5319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5320 echo "$ac_t""yes" 1>&6
5321 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5322 cat >> confdefs.h
<<EOF
5323 #define $ac_tr_func 1
5327 echo "$ac_t""no" 1>&6
5331 if test x
"$ac_cv_func_execl" = x
"no"; then
5332 RUNPROG
="bin/smbrun"
5337 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_func" >&5
5341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 cat > conftest.
$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func(); below. */
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5357 /* The GNU C library defines this for functions which it implements
5358 to always fail with ENOSYS. Some functions are actually named
5359 something starting with __ and the normal name is an alias. */
5360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5368 if { (eval echo configure
:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5370 eval "ac_cv_func_$ac_func=yes"
5372 echo "configure: failed program was:" >&5
5373 cat conftest.
$ac_ext >&5
5375 eval "ac_cv_func_$ac_func=no"
5380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5382 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5383 cat >> confdefs.h
<<EOF
5384 #define $ac_tr_func 1
5388 echo "$ac_t""no" 1>&6
5392 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5395 echo "configure:5396: checking for $ac_func" >&5
5396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5399 cat > conftest.
$ac_ext <<EOF
5400 #line 5401 "configure"
5401 #include "confdefs.h"
5402 /* System header to define __stub macros and hopefully few prototypes,
5403 which can conflict with char $ac_func(); below. */
5405 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5412 /* The GNU C library defines this for functions which it implements
5413 to always fail with ENOSYS. Some functions are actually named
5414 something starting with __ and the normal name is an alias. */
5415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5423 if { (eval echo configure
:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5425 eval "ac_cv_func_$ac_func=yes"
5427 echo "configure: failed program was:" >&5
5428 cat conftest.
$ac_ext >&5
5430 eval "ac_cv_func_$ac_func=no"
5435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5436 echo "$ac_t""yes" 1>&6
5437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5438 cat >> confdefs.h
<<EOF
5439 #define $ac_tr_func 1
5443 echo "$ac_t""no" 1>&6
5447 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5450 echo "configure:5451: checking for $ac_func" >&5
5451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5454 cat > conftest.
$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 /* System header to define __stub macros and hopefully few prototypes,
5458 which can conflict with char $ac_func(); below. */
5460 /* Override any gcc2 internal prototype to avoid an error. */
5461 /* We use char because int might match the return type of a gcc2
5462 builtin and then its argument prototype would still apply. */
5467 /* The GNU C library defines this for functions which it implements
5468 to always fail with ENOSYS. Some functions are actually named
5469 something starting with __ and the normal name is an alias. */
5470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5478 if { (eval echo configure
:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5480 eval "ac_cv_func_$ac_func=yes"
5482 echo "configure: failed program was:" >&5
5483 cat conftest.
$ac_ext >&5
5485 eval "ac_cv_func_$ac_func=no"
5490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5491 echo "$ac_t""yes" 1>&6
5492 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5493 cat >> confdefs.h
<<EOF
5494 #define $ac_tr_func 1
5498 echo "$ac_t""no" 1>&6
5502 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5505 echo "configure:5506: checking for $ac_func" >&5
5506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5509 cat > conftest.
$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 /* System header to define __stub macros and hopefully few prototypes,
5513 which can conflict with char $ac_func(); below. */
5515 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5522 /* The GNU C library defines this for functions which it implements
5523 to always fail with ENOSYS. Some functions are actually named
5524 something starting with __ and the normal name is an alias. */
5525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5533 if { (eval echo configure
:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5535 eval "ac_cv_func_$ac_func=yes"
5537 echo "configure: failed program was:" >&5
5538 cat conftest.
$ac_ext >&5
5540 eval "ac_cv_func_$ac_func=no"
5545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5546 echo "$ac_t""yes" 1>&6
5547 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5548 cat >> confdefs.h
<<EOF
5549 #define $ac_tr_func 1
5553 echo "$ac_t""no" 1>&6
5557 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5560 echo "configure:5561: checking for $ac_func" >&5
5561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 cat > conftest.
$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 /* System header to define __stub macros and hopefully few prototypes,
5568 which can conflict with char $ac_func(); below. */
5570 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5577 /* The GNU C library defines this for functions which it implements
5578 to always fail with ENOSYS. Some functions are actually named
5579 something starting with __ and the normal name is an alias. */
5580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5588 if { (eval echo configure
:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5590 eval "ac_cv_func_$ac_func=yes"
5592 echo "configure: failed program was:" >&5
5593 cat conftest.
$ac_ext >&5
5595 eval "ac_cv_func_$ac_func=no"
5600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5603 cat >> confdefs.h
<<EOF
5604 #define $ac_tr_func 1
5608 echo "$ac_t""no" 1>&6
5612 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5615 echo "configure:5616: checking for $ac_func" >&5
5616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5619 cat > conftest.
$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622 /* System header to define __stub macros and hopefully few prototypes,
5623 which can conflict with char $ac_func(); below. */
5625 /* Override any gcc2 internal prototype to avoid an error. */
5626 /* We use char because int might match the return type of a gcc2
5627 builtin and then its argument prototype would still apply. */
5632 /* The GNU C library defines this for functions which it implements
5633 to always fail with ENOSYS. Some functions are actually named
5634 something starting with __ and the normal name is an alias. */
5635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5643 if { (eval echo configure
:5644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5645 eval "ac_cv_func_$ac_func=yes"
5647 echo "configure: failed program was:" >&5
5648 cat conftest.
$ac_ext >&5
5650 eval "ac_cv_func_$ac_func=no"
5655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5656 echo "$ac_t""yes" 1>&6
5657 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5658 cat >> confdefs.h
<<EOF
5659 #define $ac_tr_func 1
5663 echo "$ac_t""no" 1>&6
5667 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5670 echo "configure:5671: checking for $ac_func" >&5
5671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5674 cat > conftest.
$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5677 /* System header to define __stub macros and hopefully few prototypes,
5678 which can conflict with char $ac_func(); below. */
5680 /* Override any gcc2 internal prototype to avoid an error. */
5681 /* We use char because int might match the return type of a gcc2
5682 builtin and then its argument prototype would still apply. */
5687 /* The GNU C library defines this for functions which it implements
5688 to always fail with ENOSYS. Some functions are actually named
5689 something starting with __ and the normal name is an alias. */
5690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5698 if { (eval echo configure
:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5700 eval "ac_cv_func_$ac_func=yes"
5702 echo "configure: failed program was:" >&5
5703 cat conftest.
$ac_ext >&5
5705 eval "ac_cv_func_$ac_func=no"
5710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5711 echo "$ac_t""yes" 1>&6
5712 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5713 cat >> confdefs.h
<<EOF
5714 #define $ac_tr_func 1
5718 echo "$ac_t""no" 1>&6
5722 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5725 echo "configure:5726: checking for $ac_func" >&5
5726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6
5729 cat > conftest.
$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5732 /* System header to define __stub macros and hopefully few prototypes,
5733 which can conflict with char $ac_func(); below. */
5735 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */
5742 /* The GNU C library defines this for functions which it implements
5743 to always fail with ENOSYS. Some functions are actually named
5744 something starting with __ and the normal name is an alias. */
5745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5753 if { (eval echo configure
:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5755 eval "ac_cv_func_$ac_func=yes"
5757 echo "configure: failed program was:" >&5
5758 cat conftest.
$ac_ext >&5
5760 eval "ac_cv_func_$ac_func=no"
5765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5766 echo "$ac_t""yes" 1>&6
5767 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5768 cat >> confdefs.h
<<EOF
5769 #define $ac_tr_func 1
5773 echo "$ac_t""no" 1>&6
5777 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_func" >&5
5781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5784 cat > conftest.
$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 /* System header to define __stub macros and hopefully few prototypes,
5788 which can conflict with char $ac_func(); below. */
5790 /* Override any gcc2 internal prototype to avoid an error. */
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5797 /* The GNU C library defines this for functions which it implements
5798 to always fail with ENOSYS. Some functions are actually named
5799 something starting with __ and the normal name is an alias. */
5800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5808 if { (eval echo configure
:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5810 eval "ac_cv_func_$ac_func=yes"
5812 echo "configure: failed program was:" >&5
5813 cat conftest.
$ac_ext >&5
5815 eval "ac_cv_func_$ac_func=no"
5820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5821 echo "$ac_t""yes" 1>&6
5822 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5823 cat >> confdefs.h
<<EOF
5824 #define $ac_tr_func 1
5828 echo "$ac_t""no" 1>&6
5832 for ac_func
in syslog vsyslog
5834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5835 echo "configure:5836: checking for $ac_func" >&5
5836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 cat > conftest.
$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func(); below. */
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5863 if { (eval echo configure
:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5865 eval "ac_cv_func_$ac_func=yes"
5867 echo "configure: failed program was:" >&5
5868 cat conftest.
$ac_ext >&5
5870 eval "ac_cv_func_$ac_func=no"
5875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5877 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h
<<EOF
5879 #define $ac_tr_func 1
5883 echo "$ac_t""no" 1>&6
5888 # syscall() is needed for smbwrapper.
5889 for ac_func
in syscall
5891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5892 echo "configure:5893: checking for $ac_func" >&5
5893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.
$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* System header to define __stub macros and hopefully few prototypes,
5900 which can conflict with char $ac_func(); below. */
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5909 /* The GNU C library defines this for functions which it implements
5910 to always fail with ENOSYS. Some functions are actually named
5911 something starting with __ and the normal name is an alias. */
5912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5920 if { (eval echo configure
:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5922 eval "ac_cv_func_$ac_func=yes"
5924 echo "configure: failed program was:" >&5
5925 cat conftest.
$ac_ext >&5
5927 eval "ac_cv_func_$ac_func=no"
5932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5934 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5935 cat >> confdefs.h
<<EOF
5936 #define $ac_tr_func 1
5940 echo "$ac_t""no" 1>&6
5945 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5948 echo "configure:5949: checking for $ac_func" >&5
5949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.
$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 /* System header to define __stub macros and hopefully few prototypes,
5956 which can conflict with char $ac_func(); below. */
5958 /* Override any gcc2 internal prototype to avoid an error. */
5959 /* We use char because int might match the return type of a gcc2
5960 builtin and then its argument prototype would still apply. */
5965 /* The GNU C library defines this for functions which it implements
5966 to always fail with ENOSYS. Some functions are actually named
5967 something starting with __ and the normal name is an alias. */
5968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5976 if { (eval echo configure
:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5978 eval "ac_cv_func_$ac_func=yes"
5980 echo "configure: failed program was:" >&5
5981 cat conftest.
$ac_ext >&5
5983 eval "ac_cv_func_$ac_func=no"
5988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5989 echo "$ac_t""yes" 1>&6
5990 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5991 cat >> confdefs.h
<<EOF
5992 #define $ac_tr_func 1
5996 echo "$ac_t""no" 1>&6
6000 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6003 echo "configure:6004: checking for $ac_func" >&5
6004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6007 cat > conftest.
$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 /* System header to define __stub macros and hopefully few prototypes,
6011 which can conflict with char $ac_func(); below. */
6013 /* Override any gcc2 internal prototype to avoid an error. */
6014 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6020 /* The GNU C library defines this for functions which it implements
6021 to always fail with ENOSYS. Some functions are actually named
6022 something starting with __ and the normal name is an alias. */
6023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6031 if { (eval echo configure
:6032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6033 eval "ac_cv_func_$ac_func=yes"
6035 echo "configure: failed program was:" >&5
6036 cat conftest.
$ac_ext >&5
6038 eval "ac_cv_func_$ac_func=no"
6043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6044 echo "$ac_t""yes" 1>&6
6045 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6046 cat >> confdefs.h
<<EOF
6047 #define $ac_tr_func 1
6051 echo "$ac_t""no" 1>&6
6055 for ac_func
in __getcwd _getcwd
6057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6058 echo "configure:6059: checking for $ac_func" >&5
6059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6062 cat > conftest.
$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 /* System header to define __stub macros and hopefully few prototypes,
6066 which can conflict with char $ac_func(); below. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6075 /* The GNU C library defines this for functions which it implements
6076 to always fail with ENOSYS. Some functions are actually named
6077 something starting with __ and the normal name is an alias. */
6078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6086 if { (eval echo configure
:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6088 eval "ac_cv_func_$ac_func=yes"
6090 echo "configure: failed program was:" >&5
6091 cat conftest.
$ac_ext >&5
6093 eval "ac_cv_func_$ac_func=no"
6098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6099 echo "$ac_t""yes" 1>&6
6100 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6101 cat >> confdefs.h
<<EOF
6102 #define $ac_tr_func 1
6106 echo "$ac_t""no" 1>&6
6110 for ac_func
in __xstat __fxstat __lxstat
6112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6113 echo "configure:6114: checking for $ac_func" >&5
6114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6117 cat > conftest.
$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6120 /* System header to define __stub macros and hopefully few prototypes,
6121 which can conflict with char $ac_func(); below. */
6123 /* Override any gcc2 internal prototype to avoid an error. */
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6130 /* The GNU C library defines this for functions which it implements
6131 to always fail with ENOSYS. Some functions are actually named
6132 something starting with __ and the normal name is an alias. */
6133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6141 if { (eval echo configure
:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6143 eval "ac_cv_func_$ac_func=yes"
6145 echo "configure: failed program was:" >&5
6146 cat conftest.
$ac_ext >&5
6148 eval "ac_cv_func_$ac_func=no"
6153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6154 echo "$ac_t""yes" 1>&6
6155 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6156 cat >> confdefs.h
<<EOF
6157 #define $ac_tr_func 1
6161 echo "$ac_t""no" 1>&6
6165 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6168 echo "configure:6169: checking for $ac_func" >&5
6169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6172 cat > conftest.
$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 /* System header to define __stub macros and hopefully few prototypes,
6176 which can conflict with char $ac_func(); below. */
6178 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6185 /* The GNU C library defines this for functions which it implements
6186 to always fail with ENOSYS. Some functions are actually named
6187 something starting with __ and the normal name is an alias. */
6188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6196 if { (eval echo configure
:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6198 eval "ac_cv_func_$ac_func=yes"
6200 echo "configure: failed program was:" >&5
6201 cat conftest.
$ac_ext >&5
6203 eval "ac_cv_func_$ac_func=no"
6208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6209 echo "$ac_t""yes" 1>&6
6210 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6211 cat >> confdefs.h
<<EOF
6212 #define $ac_tr_func 1
6216 echo "$ac_t""no" 1>&6
6220 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_func" >&5
6224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6227 cat > conftest.
$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 /* System header to define __stub macros and hopefully few prototypes,
6231 which can conflict with char $ac_func(); below. */
6233 /* Override any gcc2 internal prototype to avoid an error. */
6234 /* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6240 /* The GNU C library defines this for functions which it implements
6241 to always fail with ENOSYS. Some functions are actually named
6242 something starting with __ and the normal name is an alias. */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6251 if { (eval echo configure
:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6253 eval "ac_cv_func_$ac_func=yes"
6255 echo "configure: failed program was:" >&5
6256 cat conftest.
$ac_ext >&5
6258 eval "ac_cv_func_$ac_func=no"
6263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6264 echo "$ac_t""yes" 1>&6
6265 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6266 cat >> confdefs.h
<<EOF
6267 #define $ac_tr_func 1
6271 echo "$ac_t""no" 1>&6
6275 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6278 echo "configure:6279: checking for $ac_func" >&5
6279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6282 cat > conftest.
$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6285 /* System header to define __stub macros and hopefully few prototypes,
6286 which can conflict with char $ac_func(); below. */
6288 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6295 /* The GNU C library defines this for functions which it implements
6296 to always fail with ENOSYS. Some functions are actually named
6297 something starting with __ and the normal name is an alias. */
6298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6306 if { (eval echo configure
:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6308 eval "ac_cv_func_$ac_func=yes"
6310 echo "configure: failed program was:" >&5
6311 cat conftest.
$ac_ext >&5
6313 eval "ac_cv_func_$ac_func=no"
6318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6319 echo "$ac_t""yes" 1>&6
6320 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6321 cat >> confdefs.h
<<EOF
6322 #define $ac_tr_func 1
6326 echo "$ac_t""no" 1>&6
6330 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6333 echo "configure:6334: checking for $ac_func" >&5
6334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6337 cat > conftest.
$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6340 /* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char $ac_func(); below. */
6343 /* Override any gcc2 internal prototype to avoid an error. */
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6350 /* The GNU C library defines this for functions which it implements
6351 to always fail with ENOSYS. Some functions are actually named
6352 something starting with __ and the normal name is an alias. */
6353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6361 if { (eval echo configure
:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6363 eval "ac_cv_func_$ac_func=yes"
6365 echo "configure: failed program was:" >&5
6366 cat conftest.
$ac_ext >&5
6368 eval "ac_cv_func_$ac_func=no"
6373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6374 echo "$ac_t""yes" 1>&6
6375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6376 cat >> confdefs.h
<<EOF
6377 #define $ac_tr_func 1
6381 echo "$ac_t""no" 1>&6
6385 for ac_func
in _write __write _fork __fork
6387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6388 echo "configure:6389: checking for $ac_func" >&5
6389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6392 cat > conftest.
$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 /* System header to define __stub macros and hopefully few prototypes,
6396 which can conflict with char $ac_func(); below. */
6398 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6405 /* The GNU C library defines this for functions which it implements
6406 to always fail with ENOSYS. Some functions are actually named
6407 something starting with __ and the normal name is an alias. */
6408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6416 if { (eval echo configure
:6417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6418 eval "ac_cv_func_$ac_func=yes"
6420 echo "configure: failed program was:" >&5
6421 cat conftest.
$ac_ext >&5
6423 eval "ac_cv_func_$ac_func=no"
6428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6431 cat >> confdefs.h
<<EOF
6432 #define $ac_tr_func 1
6436 echo "$ac_t""no" 1>&6
6440 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6443 echo "configure:6444: checking for $ac_func" >&5
6444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6447 cat > conftest.
$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 /* System header to define __stub macros and hopefully few prototypes,
6451 which can conflict with char $ac_func(); below. */
6453 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6460 /* The GNU C library defines this for functions which it implements
6461 to always fail with ENOSYS. Some functions are actually named
6462 something starting with __ and the normal name is an alias. */
6463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6471 if { (eval echo configure
:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6473 eval "ac_cv_func_$ac_func=yes"
6475 echo "configure: failed program was:" >&5
6476 cat conftest.
$ac_ext >&5
6478 eval "ac_cv_func_$ac_func=no"
6483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6
6485 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6486 cat >> confdefs.h
<<EOF
6487 #define $ac_tr_func 1
6491 echo "$ac_t""no" 1>&6
6495 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6498 echo "configure:6499: checking for $ac_func" >&5
6499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6502 cat > conftest.
$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* System header to define __stub macros and hopefully few prototypes,
6506 which can conflict with char $ac_func(); below. */
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6515 /* The GNU C library defines this for functions which it implements
6516 to always fail with ENOSYS. Some functions are actually named
6517 something starting with __ and the normal name is an alias. */
6518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6526 if { (eval echo configure
:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6528 eval "ac_cv_func_$ac_func=yes"
6530 echo "configure: failed program was:" >&5
6531 cat conftest.
$ac_ext >&5
6533 eval "ac_cv_func_$ac_func=no"
6538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6541 cat >> confdefs.h
<<EOF
6542 #define $ac_tr_func 1
6546 echo "$ac_t""no" 1>&6
6550 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6553 echo "configure:6554: checking for $ac_func" >&5
6554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 cat > conftest.
$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6560 /* System header to define __stub macros and hopefully few prototypes,
6561 which can conflict with char $ac_func(); below. */
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6570 /* The GNU C library defines this for functions which it implements
6571 to always fail with ENOSYS. Some functions are actually named
6572 something starting with __ and the normal name is an alias. */
6573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6581 if { (eval echo configure
:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6583 eval "ac_cv_func_$ac_func=yes"
6585 echo "configure: failed program was:" >&5
6586 cat conftest.
$ac_ext >&5
6588 eval "ac_cv_func_$ac_func=no"
6593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6595 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6596 cat >> confdefs.h
<<EOF
6597 #define $ac_tr_func 1
6601 echo "$ac_t""no" 1>&6
6605 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6608 echo "configure:6609: checking for $ac_func" >&5
6609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 cat > conftest.
$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 /* System header to define __stub macros and hopefully few prototypes,
6616 which can conflict with char $ac_func(); below. */
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6625 /* The GNU C library defines this for functions which it implements
6626 to always fail with ENOSYS. Some functions are actually named
6627 something starting with __ and the normal name is an alias. */
6628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6636 if { (eval echo configure
:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6638 eval "ac_cv_func_$ac_func=yes"
6640 echo "configure: failed program was:" >&5
6641 cat conftest.
$ac_ext >&5
6643 eval "ac_cv_func_$ac_func=no"
6648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6650 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6651 cat >> confdefs.h
<<EOF
6652 #define $ac_tr_func 1
6656 echo "$ac_t""no" 1>&6
6660 for ac_func
in open64 _open64 __open64 creat64
6662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_func" >&5
6664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 cat > conftest.
$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* System header to define __stub macros and hopefully few prototypes,
6671 which can conflict with char $ac_func(); below. */
6673 /* Override any gcc2 internal prototype to avoid an error. */
6674 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */
6680 /* The GNU C library defines this for functions which it implements
6681 to always fail with ENOSYS. Some functions are actually named
6682 something starting with __ and the normal name is an alias. */
6683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6691 if { (eval echo configure
:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6693 eval "ac_cv_func_$ac_func=yes"
6695 echo "configure: failed program was:" >&5
6696 cat conftest.
$ac_ext >&5
6698 eval "ac_cv_func_$ac_func=no"
6703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6704 echo "$ac_t""yes" 1>&6
6705 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6706 cat >> confdefs.h
<<EOF
6707 #define $ac_tr_func 1
6711 echo "$ac_t""no" 1>&6
6717 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6720 if test x
$ac_cv_func_stat64 = xno
; then
6721 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6722 echo "configure:6723: checking for stat64 in <sys/stat.h>" >&5
6723 cat > conftest.
$ac_ext <<EOF
6724 #line 6725 "configure"
6725 #include "confdefs.h"
6727 #if defined(HAVE_UNISTD_H)
6730 #include <sys/stat.h>
6733 struct stat64 st64; exit(stat64(".",&st64));
6736 if { (eval echo configure
:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6738 ac_cv_func_stat64
=yes
6740 echo "configure: failed program was:" >&5
6741 cat conftest.
$ac_ext >&5
6744 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6745 if test x
$ac_cv_func_stat64 = xyes
; then
6746 cat >> confdefs.h
<<\EOF
6747 #define HAVE_STAT64 1
6753 if test x
$ac_cv_func_lstat64 = xno
; then
6754 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6755 echo "configure:6756: checking for lstat64 in <sys/stat.h>" >&5
6756 cat > conftest.
$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6760 #if defined(HAVE_UNISTD_H)
6763 #include <sys/stat.h>
6766 struct stat64 st64; exit(lstat64(".",&st64));
6769 if { (eval echo configure
:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6771 ac_cv_func_lstat64
=yes
6773 echo "configure: failed program was:" >&5
6774 cat conftest.
$ac_ext >&5
6777 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6778 if test x
$ac_cv_func_lstat64 = xyes
; then
6779 cat >> confdefs.h
<<\EOF
6780 #define HAVE_LSTAT64 1
6786 if test x
$ac_cv_func_fstat64 = xno
; then
6787 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6788 echo "configure:6789: checking for fstat64 in <sys/stat.h>" >&5
6789 cat > conftest.
$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6793 #if defined(HAVE_UNISTD_H)
6796 #include <sys/stat.h>
6799 struct stat64 st64; exit(fstat64(0,&st64));
6802 if { (eval echo configure
:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6804 ac_cv_func_fstat64
=yes
6806 echo "configure: failed program was:" >&5
6807 cat conftest.
$ac_ext >&5
6810 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6811 if test x
$ac_cv_func_fstat64 = xyes
; then
6812 cat >> confdefs.h
<<\EOF
6813 #define HAVE_FSTAT64 1
6820 # If no strcasecmp, check for it in some known places
6821 # It is in -lresolv on ReliantUNIX and UnixWare
6822 # -lresolve *must* follow -lnsl for name resolution to work properly
6825 if test x
$ac_cv_func_strcasecmp = xno
; then
6826 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6827 echo "configure:6828: checking for strcasecmp in -lresolv" >&5
6828 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6832 ac_save_LIBS
="$LIBS"
6833 LIBS
="-lresolv $LIBS"
6834 cat > conftest.
$ac_ext <<EOF
6835 #line 6836 "configure"
6836 #include "confdefs.h"
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6846 if { (eval echo configure
:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6848 eval "ac_cv_lib_$ac_lib_var=yes"
6850 echo "configure: failed program was:" >&5
6851 cat conftest.
$ac_ext >&5
6853 eval "ac_cv_lib_$ac_lib_var=no"
6856 LIBS
="$ac_save_LIBS"
6859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6861 LIBS
="$LIBS -lresolv"
6862 cat >> confdefs.h
<<\EOF
6863 #define HAVE_STRCASECMP 1
6867 echo "$ac_t""no" 1>&6
6873 # Check for the functions putprpwnam, set_auth_parameters,
6874 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6875 # Needed for OSF1 and HPUX.
6879 *-lsecurity*) for ac_func
in putprpwnam
6881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6882 echo "configure:6883: checking for $ac_func" >&5
6883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6884 echo $ac_n "(cached) $ac_c" 1>&6
6886 cat > conftest.
$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* System header to define __stub macros and hopefully few prototypes,
6890 which can conflict with char $ac_func(); below. */
6892 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6899 /* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
6902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6910 if { (eval echo configure
:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6912 eval "ac_cv_func_$ac_func=yes"
6914 echo "configure: failed program was:" >&5
6915 cat conftest.
$ac_ext >&5
6917 eval "ac_cv_func_$ac_func=no"
6922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6925 cat >> confdefs.h
<<EOF
6926 #define $ac_tr_func 1
6930 echo "$ac_t""no" 1>&6
6934 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6935 echo "configure:6936: checking for putprpwnam in -lsecurity" >&5
6936 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6940 ac_save_LIBS
="$LIBS"
6941 LIBS
="-lsecurity $LIBS"
6942 cat > conftest.
$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6954 if { (eval echo configure
:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6956 eval "ac_cv_lib_$ac_lib_var=yes"
6958 echo "configure: failed program was:" >&5
6959 cat conftest.
$ac_ext >&5
6961 eval "ac_cv_lib_$ac_lib_var=no"
6964 LIBS
="$ac_save_LIBS"
6967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6970 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6971 cat >> confdefs.h
<<EOF
6972 #define $ac_tr_lib 1
6975 LIBS
="-lsecurity $LIBS"
6978 echo "$ac_t""no" 1>&6
6981 for ac_func
in putprpwnam
6983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6984 echo "configure:6985: checking for $ac_func" >&5
6985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6986 echo $ac_n "(cached) $ac_c" 1>&6
6988 cat > conftest.
$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 /* System header to define __stub macros and hopefully few prototypes,
6992 which can conflict with char $ac_func(); below. */
6994 /* Override any gcc2 internal prototype to avoid an error. */
6995 /* We use char because int might match the return type of a gcc2
6996 builtin and then its argument prototype would still apply. */
7001 /* The GNU C library defines this for functions which it implements
7002 to always fail with ENOSYS. Some functions are actually named
7003 something starting with __ and the normal name is an alias. */
7004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7012 if { (eval echo configure
:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7014 eval "ac_cv_func_$ac_func=yes"
7016 echo "configure: failed program was:" >&5
7017 cat conftest.
$ac_ext >&5
7019 eval "ac_cv_func_$ac_func=no"
7024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7025 echo "$ac_t""yes" 1>&6
7026 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7027 cat >> confdefs.h
<<EOF
7028 #define $ac_tr_func 1
7032 echo "$ac_t""no" 1>&6
7040 *-lsec*) for ac_func
in putprpwnam
7042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7043 echo "configure:7044: checking for $ac_func" >&5
7044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7045 echo $ac_n "(cached) $ac_c" 1>&6
7047 cat > conftest.
$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char $ac_func(); below. */
7053 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7060 /* The GNU C library defines this for functions which it implements
7061 to always fail with ENOSYS. Some functions are actually named
7062 something starting with __ and the normal name is an alias. */
7063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7071 if { (eval echo configure
:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7073 eval "ac_cv_func_$ac_func=yes"
7075 echo "configure: failed program was:" >&5
7076 cat conftest.
$ac_ext >&5
7078 eval "ac_cv_func_$ac_func=no"
7083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7084 echo "$ac_t""yes" 1>&6
7085 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7086 cat >> confdefs.h
<<EOF
7087 #define $ac_tr_func 1
7091 echo "$ac_t""no" 1>&6
7095 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7096 echo "configure:7097: checking for putprpwnam in -lsec" >&5
7097 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6
7101 ac_save_LIBS
="$LIBS"
7103 cat > conftest.
$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7106 /* Override any gcc2 internal prototype to avoid an error. */
7107 /* We use char because int might match the return type of a gcc2
7108 builtin and then its argument prototype would still apply. */
7115 if { (eval echo configure
:7116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7117 eval "ac_cv_lib_$ac_lib_var=yes"
7119 echo "configure: failed program was:" >&5
7120 cat conftest.
$ac_ext >&5
7122 eval "ac_cv_lib_$ac_lib_var=no"
7125 LIBS
="$ac_save_LIBS"
7128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7129 echo "$ac_t""yes" 1>&6
7130 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7131 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7132 cat >> confdefs.h
<<EOF
7133 #define $ac_tr_lib 1
7139 echo "$ac_t""no" 1>&6
7142 for ac_func
in putprpwnam
7144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7145 echo "configure:7146: checking for $ac_func" >&5
7146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7147 echo $ac_n "(cached) $ac_c" 1>&6
7149 cat > conftest.
$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 /* System header to define __stub macros and hopefully few prototypes,
7153 which can conflict with char $ac_func(); below. */
7155 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7162 /* The GNU C library defines this for functions which it implements
7163 to always fail with ENOSYS. Some functions are actually named
7164 something starting with __ and the normal name is an alias. */
7165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7173 if { (eval echo configure
:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7175 eval "ac_cv_func_$ac_func=yes"
7177 echo "configure: failed program was:" >&5
7178 cat conftest.
$ac_ext >&5
7180 eval "ac_cv_func_$ac_func=no"
7185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7186 echo "$ac_t""yes" 1>&6
7187 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7188 cat >> confdefs.h
<<EOF
7189 #define $ac_tr_func 1
7193 echo "$ac_t""no" 1>&6
7202 *-lsecurity*) for ac_func
in set_auth_parameters
7204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7205 echo "configure:7206: checking for $ac_func" >&5
7206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 cat > conftest.
$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 /* System header to define __stub macros and hopefully few prototypes,
7213 which can conflict with char $ac_func(); below. */
7215 /* Override any gcc2 internal prototype to avoid an error. */
7216 /* We use char because int might match the return type of a gcc2
7217 builtin and then its argument prototype would still apply. */
7222 /* The GNU C library defines this for functions which it implements
7223 to always fail with ENOSYS. Some functions are actually named
7224 something starting with __ and the normal name is an alias. */
7225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7233 if { (eval echo configure
:7234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7235 eval "ac_cv_func_$ac_func=yes"
7237 echo "configure: failed program was:" >&5
7238 cat conftest.
$ac_ext >&5
7240 eval "ac_cv_func_$ac_func=no"
7245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7246 echo "$ac_t""yes" 1>&6
7247 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7248 cat >> confdefs.h
<<EOF
7249 #define $ac_tr_func 1
7253 echo "$ac_t""no" 1>&6
7257 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7258 echo "configure:7259: checking for set_auth_parameters in -lsecurity" >&5
7259 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7263 ac_save_LIBS
="$LIBS"
7264 LIBS
="-lsecurity $LIBS"
7265 cat > conftest.
$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7268 /* Override any gcc2 internal prototype to avoid an error. */
7269 /* We use char because int might match the return type of a gcc2
7270 builtin and then its argument prototype would still apply. */
7271 char set_auth_parameters();
7274 set_auth_parameters()
7277 if { (eval echo configure
:7278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7279 eval "ac_cv_lib_$ac_lib_var=yes"
7281 echo "configure: failed program was:" >&5
7282 cat conftest.
$ac_ext >&5
7284 eval "ac_cv_lib_$ac_lib_var=no"
7287 LIBS
="$ac_save_LIBS"
7290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7291 echo "$ac_t""yes" 1>&6
7292 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7294 cat >> confdefs.h
<<EOF
7295 #define $ac_tr_lib 1
7298 LIBS
="-lsecurity $LIBS"
7301 echo "$ac_t""no" 1>&6
7304 for ac_func
in set_auth_parameters
7306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7307 echo "configure:7308: checking for $ac_func" >&5
7308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.
$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 /* System header to define __stub macros and hopefully few prototypes,
7315 which can conflict with char $ac_func(); below. */
7317 /* Override any gcc2 internal prototype to avoid an error. */
7318 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7324 /* The GNU C library defines this for functions which it implements
7325 to always fail with ENOSYS. Some functions are actually named
7326 something starting with __ and the normal name is an alias. */
7327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7335 if { (eval echo configure
:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7337 eval "ac_cv_func_$ac_func=yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.
$ac_ext >&5
7342 eval "ac_cv_func_$ac_func=no"
7347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7348 echo "$ac_t""yes" 1>&6
7349 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7350 cat >> confdefs.h
<<EOF
7351 #define $ac_tr_func 1
7355 echo "$ac_t""no" 1>&6
7363 *-lsec*) for ac_func
in set_auth_parameters
7365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7366 echo "configure:7367: checking for $ac_func" >&5
7367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7370 cat > conftest.
$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7373 /* System header to define __stub macros and hopefully few prototypes,
7374 which can conflict with char $ac_func(); below. */
7376 /* Override any gcc2 internal prototype to avoid an error. */
7377 /* We use char because int might match the return type of a gcc2
7378 builtin and then its argument prototype would still apply. */
7383 /* The GNU C library defines this for functions which it implements
7384 to always fail with ENOSYS. Some functions are actually named
7385 something starting with __ and the normal name is an alias. */
7386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7394 if { (eval echo configure
:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7396 eval "ac_cv_func_$ac_func=yes"
7398 echo "configure: failed program was:" >&5
7399 cat conftest.
$ac_ext >&5
7401 eval "ac_cv_func_$ac_func=no"
7406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7407 echo "$ac_t""yes" 1>&6
7408 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7409 cat >> confdefs.h
<<EOF
7410 #define $ac_tr_func 1
7414 echo "$ac_t""no" 1>&6
7418 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7419 echo "configure:7420: checking for set_auth_parameters in -lsec" >&5
7420 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7422 echo $ac_n "(cached) $ac_c" 1>&6
7424 ac_save_LIBS
="$LIBS"
7426 cat > conftest.
$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7429 /* Override any gcc2 internal prototype to avoid an error. */
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7432 char set_auth_parameters();
7435 set_auth_parameters()
7438 if { (eval echo configure
:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7440 eval "ac_cv_lib_$ac_lib_var=yes"
7442 echo "configure: failed program was:" >&5
7443 cat conftest.
$ac_ext >&5
7445 eval "ac_cv_lib_$ac_lib_var=no"
7448 LIBS
="$ac_save_LIBS"
7451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7455 cat >> confdefs.h
<<EOF
7456 #define $ac_tr_lib 1
7462 echo "$ac_t""no" 1>&6
7465 for ac_func
in set_auth_parameters
7467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_func" >&5
7469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7472 cat > conftest.
$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 /* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func(); below. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7496 if { (eval echo configure
:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7498 eval "ac_cv_func_$ac_func=yes"
7500 echo "configure: failed program was:" >&5
7501 cat conftest.
$ac_ext >&5
7503 eval "ac_cv_func_$ac_func=no"
7508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7511 cat >> confdefs.h
<<EOF
7512 #define $ac_tr_func 1
7516 echo "$ac_t""no" 1>&6
7524 # UnixWare 7.x has its getspnam in -lgen
7526 *-lgen*) for ac_func
in getspnam
7528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7529 echo "configure:7530: checking for $ac_func" >&5
7530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7533 cat > conftest.
$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536 /* System header to define __stub macros and hopefully few prototypes,
7537 which can conflict with char $ac_func(); below. */
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7546 /* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7557 if { (eval echo configure
:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7559 eval "ac_cv_func_$ac_func=yes"
7561 echo "configure: failed program was:" >&5
7562 cat conftest.
$ac_ext >&5
7564 eval "ac_cv_func_$ac_func=no"
7569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7570 echo "$ac_t""yes" 1>&6
7571 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7572 cat >> confdefs.h
<<EOF
7573 #define $ac_tr_func 1
7577 echo "$ac_t""no" 1>&6
7581 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7582 echo "configure:7583: checking for getspnam in -lgen" >&5
7583 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7585 echo $ac_n "(cached) $ac_c" 1>&6
7587 ac_save_LIBS
="$LIBS"
7589 cat > conftest.
$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 /* Override any gcc2 internal prototype to avoid an error. */
7593 /* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7601 if { (eval echo configure
:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7603 eval "ac_cv_lib_$ac_lib_var=yes"
7605 echo "configure: failed program was:" >&5
7606 cat conftest.
$ac_ext >&5
7608 eval "ac_cv_lib_$ac_lib_var=no"
7611 LIBS
="$ac_save_LIBS"
7614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7615 echo "$ac_t""yes" 1>&6
7616 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7618 cat >> confdefs.h
<<EOF
7619 #define $ac_tr_lib 1
7625 echo "$ac_t""no" 1>&6
7628 for ac_func
in getspnam
7630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7631 echo "configure:7632: checking for $ac_func" >&5
7632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7635 cat > conftest.
$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* System header to define __stub macros and hopefully few prototypes,
7639 which can conflict with char $ac_func(); below. */
7641 /* Override any gcc2 internal prototype to avoid an error. */
7642 /* We use char because int might match the return type of a gcc2
7643 builtin and then its argument prototype would still apply. */
7648 /* The GNU C library defines this for functions which it implements
7649 to always fail with ENOSYS. Some functions are actually named
7650 something starting with __ and the normal name is an alias. */
7651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7659 if { (eval echo configure
:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7661 eval "ac_cv_func_$ac_func=yes"
7663 echo "configure: failed program was:" >&5
7664 cat conftest.
$ac_ext >&5
7666 eval "ac_cv_func_$ac_func=no"
7671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7672 echo "$ac_t""yes" 1>&6
7673 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7674 cat >> confdefs.h
<<EOF
7675 #define $ac_tr_func 1
7679 echo "$ac_t""no" 1>&6
7688 *-lsecurity*) for ac_func
in getspnam
7690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7691 echo "configure:7692: checking for $ac_func" >&5
7692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7695 cat > conftest.
$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* System header to define __stub macros and hopefully few prototypes,
7699 which can conflict with char $ac_func(); below. */
7701 /* Override any gcc2 internal prototype to avoid an error. */
7702 /* We use char because int might match the return type of a gcc2
7703 builtin and then its argument prototype would still apply. */
7708 /* The GNU C library defines this for functions which it implements
7709 to always fail with ENOSYS. Some functions are actually named
7710 something starting with __ and the normal name is an alias. */
7711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7719 if { (eval echo configure
:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7721 eval "ac_cv_func_$ac_func=yes"
7723 echo "configure: failed program was:" >&5
7724 cat conftest.
$ac_ext >&5
7726 eval "ac_cv_func_$ac_func=no"
7731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7732 echo "$ac_t""yes" 1>&6
7733 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7734 cat >> confdefs.h
<<EOF
7735 #define $ac_tr_func 1
7739 echo "$ac_t""no" 1>&6
7743 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7744 echo "configure:7745: checking for getspnam in -lsecurity" >&5
7745 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7749 ac_save_LIBS
="$LIBS"
7750 LIBS
="-lsecurity $LIBS"
7751 cat > conftest.
$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 /* Override any gcc2 internal prototype to avoid an error. */
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7763 if { (eval echo configure
:7764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7765 eval "ac_cv_lib_$ac_lib_var=yes"
7767 echo "configure: failed program was:" >&5
7768 cat conftest.
$ac_ext >&5
7770 eval "ac_cv_lib_$ac_lib_var=no"
7773 LIBS
="$ac_save_LIBS"
7776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7777 echo "$ac_t""yes" 1>&6
7778 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7780 cat >> confdefs.h
<<EOF
7781 #define $ac_tr_lib 1
7784 LIBS
="-lsecurity $LIBS"
7787 echo "$ac_t""no" 1>&6
7790 for ac_func
in getspnam
7792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7793 echo "configure:7794: checking for $ac_func" >&5
7794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7797 cat > conftest.
$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* System header to define __stub macros and hopefully few prototypes,
7801 which can conflict with char $ac_func(); below. */
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7810 /* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7821 if { (eval echo configure
:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7823 eval "ac_cv_func_$ac_func=yes"
7825 echo "configure: failed program was:" >&5
7826 cat conftest.
$ac_ext >&5
7828 eval "ac_cv_func_$ac_func=no"
7833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7834 echo "$ac_t""yes" 1>&6
7835 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7836 cat >> confdefs.h
<<EOF
7837 #define $ac_tr_func 1
7841 echo "$ac_t""no" 1>&6
7849 *-lsec*) for ac_func
in getspnam
7851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7852 echo "configure:7853: checking for $ac_func" >&5
7853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7856 cat > conftest.
$ac_ext <<EOF
7857 #line 7858 "configure"
7858 #include "confdefs.h"
7859 /* System header to define __stub macros and hopefully few prototypes,
7860 which can conflict with char $ac_func(); below. */
7862 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7869 /* The GNU C library defines this for functions which it implements
7870 to always fail with ENOSYS. Some functions are actually named
7871 something starting with __ and the normal name is an alias. */
7872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7880 if { (eval echo configure
:7881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7882 eval "ac_cv_func_$ac_func=yes"
7884 echo "configure: failed program was:" >&5
7885 cat conftest.
$ac_ext >&5
7887 eval "ac_cv_func_$ac_func=no"
7892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7893 echo "$ac_t""yes" 1>&6
7894 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7895 cat >> confdefs.h
<<EOF
7896 #define $ac_tr_func 1
7900 echo "$ac_t""no" 1>&6
7904 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7905 echo "configure:7906: checking for getspnam in -lsec" >&5
7906 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7908 echo $ac_n "(cached) $ac_c" 1>&6
7910 ac_save_LIBS
="$LIBS"
7912 cat > conftest.
$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* Override any gcc2 internal prototype to avoid an error. */
7916 /* We use char because int might match the return type of a gcc2
7917 builtin and then its argument prototype would still apply. */
7924 if { (eval echo configure
:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7926 eval "ac_cv_lib_$ac_lib_var=yes"
7928 echo "configure: failed program was:" >&5
7929 cat conftest.
$ac_ext >&5
7931 eval "ac_cv_lib_$ac_lib_var=no"
7934 LIBS
="$ac_save_LIBS"
7937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7938 echo "$ac_t""yes" 1>&6
7939 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7940 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7941 cat >> confdefs.h
<<EOF
7942 #define $ac_tr_lib 1
7948 echo "$ac_t""no" 1>&6
7951 for ac_func
in getspnam
7953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7954 echo "configure:7955: checking for $ac_func" >&5
7955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7956 echo $ac_n "(cached) $ac_c" 1>&6
7958 cat > conftest.
$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* System header to define __stub macros and hopefully few prototypes,
7962 which can conflict with char $ac_func(); below. */
7964 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7971 /* The GNU C library defines this for functions which it implements
7972 to always fail with ENOSYS. Some functions are actually named
7973 something starting with __ and the normal name is an alias. */
7974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7982 if { (eval echo configure
:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7984 eval "ac_cv_func_$ac_func=yes"
7986 echo "configure: failed program was:" >&5
7987 cat conftest.
$ac_ext >&5
7989 eval "ac_cv_func_$ac_func=no"
7994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7996 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7997 cat >> confdefs.h
<<EOF
7998 #define $ac_tr_func 1
8002 echo "$ac_t""no" 1>&6
8011 *-lsecurity*) for ac_func
in bigcrypt
8013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8014 echo "configure:8015: checking for $ac_func" >&5
8015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8018 cat > conftest.
$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* System header to define __stub macros and hopefully few prototypes,
8022 which can conflict with char $ac_func(); below. */
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8031 /* The GNU C library defines this for functions which it implements
8032 to always fail with ENOSYS. Some functions are actually named
8033 something starting with __ and the normal name is an alias. */
8034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8042 if { (eval echo configure
:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8044 eval "ac_cv_func_$ac_func=yes"
8046 echo "configure: failed program was:" >&5
8047 cat conftest.
$ac_ext >&5
8049 eval "ac_cv_func_$ac_func=no"
8054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8055 echo "$ac_t""yes" 1>&6
8056 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8057 cat >> confdefs.h
<<EOF
8058 #define $ac_tr_func 1
8062 echo "$ac_t""no" 1>&6
8066 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8067 echo "configure:8068: checking for bigcrypt in -lsecurity" >&5
8068 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8072 ac_save_LIBS
="$LIBS"
8073 LIBS
="-lsecurity $LIBS"
8074 cat > conftest.
$ac_ext <<EOF
8075 #line 8076 "configure"
8076 #include "confdefs.h"
8077 /* Override any gcc2 internal prototype to avoid an error. */
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8086 if { (eval echo configure
:8087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8088 eval "ac_cv_lib_$ac_lib_var=yes"
8090 echo "configure: failed program was:" >&5
8091 cat conftest.
$ac_ext >&5
8093 eval "ac_cv_lib_$ac_lib_var=no"
8096 LIBS
="$ac_save_LIBS"
8099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8103 cat >> confdefs.h
<<EOF
8104 #define $ac_tr_lib 1
8107 LIBS
="-lsecurity $LIBS"
8110 echo "$ac_t""no" 1>&6
8113 for ac_func
in bigcrypt
8115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8116 echo "configure:8117: checking for $ac_func" >&5
8117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8118 echo $ac_n "(cached) $ac_c" 1>&6
8120 cat > conftest.
$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char $ac_func(); below. */
8126 /* Override any gcc2 internal prototype to avoid an error. */
8127 /* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8133 /* The GNU C library defines this for functions which it implements
8134 to always fail with ENOSYS. Some functions are actually named
8135 something starting with __ and the normal name is an alias. */
8136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8144 if { (eval echo configure
:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8146 eval "ac_cv_func_$ac_func=yes"
8148 echo "configure: failed program was:" >&5
8149 cat conftest.
$ac_ext >&5
8151 eval "ac_cv_func_$ac_func=no"
8156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8157 echo "$ac_t""yes" 1>&6
8158 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8159 cat >> confdefs.h
<<EOF
8160 #define $ac_tr_func 1
8164 echo "$ac_t""no" 1>&6
8172 *-lsec*) for ac_func
in bigcrypt
8174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8175 echo "configure:8176: checking for $ac_func" >&5
8176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8179 cat > conftest.
$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 /* System header to define __stub macros and hopefully few prototypes,
8183 which can conflict with char $ac_func(); below. */
8185 /* Override any gcc2 internal prototype to avoid an error. */
8186 /* We use char because int might match the return type of a gcc2
8187 builtin and then its argument prototype would still apply. */
8192 /* The GNU C library defines this for functions which it implements
8193 to always fail with ENOSYS. Some functions are actually named
8194 something starting with __ and the normal name is an alias. */
8195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8203 if { (eval echo configure
:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8205 eval "ac_cv_func_$ac_func=yes"
8207 echo "configure: failed program was:" >&5
8208 cat conftest.
$ac_ext >&5
8210 eval "ac_cv_func_$ac_func=no"
8215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8216 echo "$ac_t""yes" 1>&6
8217 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8218 cat >> confdefs.h
<<EOF
8219 #define $ac_tr_func 1
8223 echo "$ac_t""no" 1>&6
8227 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8228 echo "configure:8229: checking for bigcrypt in -lsec" >&5
8229 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8233 ac_save_LIBS
="$LIBS"
8235 cat > conftest.
$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8238 /* Override any gcc2 internal prototype to avoid an error. */
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8247 if { (eval echo configure
:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8249 eval "ac_cv_lib_$ac_lib_var=yes"
8251 echo "configure: failed program was:" >&5
8252 cat conftest.
$ac_ext >&5
8254 eval "ac_cv_lib_$ac_lib_var=no"
8257 LIBS
="$ac_save_LIBS"
8260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8261 echo "$ac_t""yes" 1>&6
8262 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8264 cat >> confdefs.h
<<EOF
8265 #define $ac_tr_lib 1
8271 echo "$ac_t""no" 1>&6
8274 for ac_func
in bigcrypt
8276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8277 echo "configure:8278: checking for $ac_func" >&5
8278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8281 cat > conftest.
$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 /* System header to define __stub macros and hopefully few prototypes,
8285 which can conflict with char $ac_func(); below. */
8287 /* Override any gcc2 internal prototype to avoid an error. */
8288 /* We use char because int might match the return type of a gcc2
8289 builtin and then its argument prototype would still apply. */
8294 /* The GNU C library defines this for functions which it implements
8295 to always fail with ENOSYS. Some functions are actually named
8296 something starting with __ and the normal name is an alias. */
8297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8305 if { (eval echo configure
:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8307 eval "ac_cv_func_$ac_func=yes"
8309 echo "configure: failed program was:" >&5
8310 cat conftest.
$ac_ext >&5
8312 eval "ac_cv_func_$ac_func=no"
8317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8318 echo "$ac_t""yes" 1>&6
8319 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8320 cat >> confdefs.h
<<EOF
8321 #define $ac_tr_func 1
8325 echo "$ac_t""no" 1>&6
8334 *-lsecurity*) for ac_func
in getprpwnam
8336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8337 echo "configure:8338: checking for $ac_func" >&5
8338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8339 echo $ac_n "(cached) $ac_c" 1>&6
8341 cat > conftest.
$ac_ext <<EOF
8342 #line 8343 "configure"
8343 #include "confdefs.h"
8344 /* System header to define __stub macros and hopefully few prototypes,
8345 which can conflict with char $ac_func(); below. */
8347 /* Override any gcc2 internal prototype to avoid an error. */
8348 /* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8354 /* The GNU C library defines this for functions which it implements
8355 to always fail with ENOSYS. Some functions are actually named
8356 something starting with __ and the normal name is an alias. */
8357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8365 if { (eval echo configure
:8366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8367 eval "ac_cv_func_$ac_func=yes"
8369 echo "configure: failed program was:" >&5
8370 cat conftest.
$ac_ext >&5
8372 eval "ac_cv_func_$ac_func=no"
8377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8378 echo "$ac_t""yes" 1>&6
8379 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8380 cat >> confdefs.h
<<EOF
8381 #define $ac_tr_func 1
8385 echo "$ac_t""no" 1>&6
8389 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8390 echo "configure:8391: checking for getprpwnam in -lsecurity" >&5
8391 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8395 ac_save_LIBS
="$LIBS"
8396 LIBS
="-lsecurity $LIBS"
8397 cat > conftest.
$ac_ext <<EOF
8398 #line 8399 "configure"
8399 #include "confdefs.h"
8400 /* Override any gcc2 internal prototype to avoid an error. */
8401 /* We use char because int might match the return type of a gcc2
8402 builtin and then its argument prototype would still apply. */
8409 if { (eval echo configure
:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8411 eval "ac_cv_lib_$ac_lib_var=yes"
8413 echo "configure: failed program was:" >&5
8414 cat conftest.
$ac_ext >&5
8416 eval "ac_cv_lib_$ac_lib_var=no"
8419 LIBS
="$ac_save_LIBS"
8422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8423 echo "$ac_t""yes" 1>&6
8424 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8426 cat >> confdefs.h
<<EOF
8427 #define $ac_tr_lib 1
8430 LIBS
="-lsecurity $LIBS"
8433 echo "$ac_t""no" 1>&6
8436 for ac_func
in getprpwnam
8438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8439 echo "configure:8440: checking for $ac_func" >&5
8440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8443 cat > conftest.
$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 /* System header to define __stub macros and hopefully few prototypes,
8447 which can conflict with char $ac_func(); below. */
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 /* We use char because int might match the return type of a gcc2
8451 builtin and then its argument prototype would still apply. */
8456 /* The GNU C library defines this for functions which it implements
8457 to always fail with ENOSYS. Some functions are actually named
8458 something starting with __ and the normal name is an alias. */
8459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8467 if { (eval echo configure
:8468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8469 eval "ac_cv_func_$ac_func=yes"
8471 echo "configure: failed program was:" >&5
8472 cat conftest.
$ac_ext >&5
8474 eval "ac_cv_func_$ac_func=no"
8479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8480 echo "$ac_t""yes" 1>&6
8481 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8482 cat >> confdefs.h
<<EOF
8483 #define $ac_tr_func 1
8487 echo "$ac_t""no" 1>&6
8495 *-lsec*) for ac_func
in getprpwnam
8497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8498 echo "configure:8499: checking for $ac_func" >&5
8499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8500 echo $ac_n "(cached) $ac_c" 1>&6
8502 cat > conftest.
$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8505 /* System header to define __stub macros and hopefully few prototypes,
8506 which can conflict with char $ac_func(); below. */
8508 /* Override any gcc2 internal prototype to avoid an error. */
8509 /* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8515 /* The GNU C library defines this for functions which it implements
8516 to always fail with ENOSYS. Some functions are actually named
8517 something starting with __ and the normal name is an alias. */
8518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8526 if { (eval echo configure
:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8528 eval "ac_cv_func_$ac_func=yes"
8530 echo "configure: failed program was:" >&5
8531 cat conftest.
$ac_ext >&5
8533 eval "ac_cv_func_$ac_func=no"
8538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8539 echo "$ac_t""yes" 1>&6
8540 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8541 cat >> confdefs.h
<<EOF
8542 #define $ac_tr_func 1
8546 echo "$ac_t""no" 1>&6
8550 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8551 echo "configure:8552: checking for getprpwnam in -lsec" >&5
8552 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8554 echo $ac_n "(cached) $ac_c" 1>&6
8556 ac_save_LIBS
="$LIBS"
8558 cat > conftest.
$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 /* Override any gcc2 internal prototype to avoid an error. */
8562 /* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8570 if { (eval echo configure
:8571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8572 eval "ac_cv_lib_$ac_lib_var=yes"
8574 echo "configure: failed program was:" >&5
8575 cat conftest.
$ac_ext >&5
8577 eval "ac_cv_lib_$ac_lib_var=no"
8580 LIBS
="$ac_save_LIBS"
8583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8584 echo "$ac_t""yes" 1>&6
8585 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8586 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8587 cat >> confdefs.h
<<EOF
8588 #define $ac_tr_lib 1
8594 echo "$ac_t""no" 1>&6
8597 for ac_func
in getprpwnam
8599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8600 echo "configure:8601: checking for $ac_func" >&5
8601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8604 cat > conftest.
$ac_ext <<EOF
8605 #line 8606 "configure"
8606 #include "confdefs.h"
8607 /* System header to define __stub macros and hopefully few prototypes,
8608 which can conflict with char $ac_func(); below. */
8610 /* Override any gcc2 internal prototype to avoid an error. */
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8617 /* The GNU C library defines this for functions which it implements
8618 to always fail with ENOSYS. Some functions are actually named
8619 something starting with __ and the normal name is an alias. */
8620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8628 if { (eval echo configure
:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8630 eval "ac_cv_func_$ac_func=yes"
8632 echo "configure: failed program was:" >&5
8633 cat conftest.
$ac_ext >&5
8635 eval "ac_cv_func_$ac_func=no"
8640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8641 echo "$ac_t""yes" 1>&6
8642 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8643 cat >> confdefs.h
<<EOF
8644 #define $ac_tr_func 1
8648 echo "$ac_t""no" 1>&6
8656 # this bit needs to be modified for each OS that is suported by
8657 # smbwrapper. You need to specify how to created a shared library and
8658 # how to compile C code to produce PIC object files
8660 # these are the defaults, good for lots of systems
8668 # Assume non-shared by default and override below
8670 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8671 echo "configure:8672: checking ability to build shared libraries" >&5
8673 # and these are for particular systems
8675 *linux
*) cat >> confdefs.h
<<\EOF
8681 DYNEXP
="-Wl,--export-dynamic"
8683 SONAMEFLAG
="-Wl,-soname="
8684 cat >> confdefs.h
<<\EOF
8685 #define STAT_ST_BLOCKSIZE 512
8689 *solaris
*) cat >> confdefs.h
<<\EOF
8696 if test "${GCC}" = "yes"; then
8698 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8703 ## ${CFLAGS} added for building 64-bit shared
8704 ## libs using Sun's Compiler
8705 LDSHFLAGS
="-G \${CFLAGS}"
8709 cat >> confdefs.h
<<\EOF
8710 #define STAT_ST_BLOCKSIZE 512
8714 *sunos
*) cat >> confdefs.h
<<\EOF
8720 SONAMEFLAG
="-Wl,-h,"
8721 PICFLAG
="-KPIC" # Is this correct for SunOS
8722 cat >> confdefs.h
<<\EOF
8723 #define STAT_ST_BLOCKSIZE 512
8727 *freebsd
*) BLDSHARED
="true"
8729 DYNEXP
="-Wl,--export-dynamic"
8730 SONAMEFLAG
="-Wl,-soname,"
8731 PICFLAG
="-fPIC -DPIC"
8732 cat >> confdefs.h
<<\EOF
8733 #define STAT_ST_BLOCKSIZE 512
8737 *openbsd
*) BLDSHARED
="true"
8739 DYNEXP
="-Wl,-Bdynamic"
8740 SONAMEFLAG
="-Wl,-soname,"
8742 cat >> confdefs.h
<<\EOF
8743 #define STAT_ST_BLOCKSIZE 512
8747 *irix
*) cat >> confdefs.h
<<\EOF
8752 *irix6
*) cat >> confdefs.h
<<\EOF
8758 ATTEMPT_WRAP32_BUILD
=yes
8760 LDSHFLAGS
="-set_version sgi1.0 -shared"
8761 SONAMEFLAG
="-soname "
8763 if test "${GCC}" = "yes"; then
8768 cat >> confdefs.h
<<\EOF
8769 #define STAT_ST_BLOCKSIZE 512
8773 *aix
*) cat >> confdefs.h
<<\EOF
8778 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8779 DYNEXP
="-Wl,-brtl,-bexpall"
8781 if test "${GCC}" != "yes"; then
8782 ## for funky AIX compiler using strncpy()
8783 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8786 cat >> confdefs.h
<<\EOF
8787 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8791 *hpux
*) cat >> confdefs.h
<<\EOF
8796 # Use special PIC flags for the native HP-UX compiler.
8797 if test $ac_cv_prog_cc_Ae = yes; then
8800 LDSHFLAGS
="-B symbolic -b -z"
8805 cat >> confdefs.h
<<\EOF
8806 #define STAT_ST_BLOCKSIZE 8192
8810 *qnx
*) cat >> confdefs.h
<<\EOF
8814 cat >> confdefs.h
<<\EOF
8815 #define STAT_ST_BLOCKSIZE 512
8819 *osf
*) cat >> confdefs.h
<<\EOF
8825 SONAMEFLAG
="-Wl,-soname,"
8827 cat >> confdefs.h
<<\EOF
8828 #define STAT_ST_BLOCKSIZE 512
8832 *sco
*) cat >> confdefs.h
<<\EOF
8836 cat >> confdefs.h
<<\EOF
8837 #define STAT_ST_BLOCKSIZE 512
8841 *unixware
*) cat >> confdefs.h
<<\EOF
8847 SONAMEFLAG
="-Wl,-soname,"
8849 cat >> confdefs.h
<<\EOF
8850 #define STAT_ST_BLOCKSIZE 512
8854 *next2
*) cat >> confdefs.h
<<\EOF
8858 cat >> confdefs.h
<<\EOF
8859 #define STAT_ST_BLOCKSIZE 512
8863 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8864 set dummy
groff; ac_word
=$2
8865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8866 echo "configure:8867: checking for $ac_word" >&5
8867 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8868 echo $ac_n "(cached) $ac_c" 1>&6
8870 if test -n "$ROFF"; then
8871 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8875 for ac_dir
in $ac_dummy; do
8876 test -z "$ac_dir" && ac_dir
=.
8877 if test -f $ac_dir/$ac_word; then
8878 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8885 ROFF
="$ac_cv_prog_ROFF"
8886 if test -n "$ROFF"; then
8887 echo "$ac_t""$ROFF" 1>&6
8889 echo "$ac_t""no" 1>&6
8892 cat >> confdefs.h
<<\EOF
8893 #define STAT_ST_BLOCKSIZE 512
8899 *-univel-*) if test "$GCC" != yes ; then
8900 cat >> confdefs.h
<<\EOF
8901 #define HAVE_MEMSET 1
8908 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8909 #define RELIANTUNIX 1
8913 cat >> confdefs.h
<<\EOF
8914 #define STAT_ST_BLOCKSIZE 512
8919 if test "$GCC" != yes ; then
8920 cat >> confdefs.h
<<\EOF
8921 #define HAVE_MEMSET 1
8926 cat >> confdefs.h
<<\EOF
8927 #define STAT_ST_BLOCKSIZE 512
8932 cat >> confdefs.h
<<\EOF
8933 #define STAT_ST_BLOCKSIZE 512
8939 echo "$ac_t""$BLDSHARED" 1>&6
8940 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8941 echo "configure:8942: checking linker flags for shared libraries" >&5
8942 echo "$ac_t""$LDSHFLAGS" 1>&6
8943 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8944 echo "configure:8945: checking compiler flags for position-independent code" >&5
8945 echo "$ac_t""$PICFLAGS" 1>&6
8947 # try to work out how to produce pic code with this compiler
8948 if test x
$PICFLAG = x
; then
8949 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8950 echo "configure:8951: checking whether ${CC-cc} accepts -fpic" >&5
8951 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8954 echo 'void f(){}' > conftest.c
8955 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8956 ac_cv_prog_cc_fpic
=yes
8958 ac_cv_prog_cc_fpic
=no
8964 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8965 if test $ac_cv_prog_cc_fpic = yes; then
8969 if test x
$PICFLAG = x
; then
8970 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8971 echo "configure:8972: checking whether ${CC-cc} accepts -KPIC" >&5
8972 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8975 echo 'void f(){}' > conftest.c
8976 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8977 ac_cv_prog_cc_KPIC
=yes
8979 ac_cv_prog_cc_KPIC
=no
8985 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8986 if test $ac_cv_prog_cc_KPIC = yes; then
8990 if test x
$PICFLAG = x
; then
8991 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8992 echo "configure:8993: checking whether ${CC-cc} accepts -Kpic" >&5
8993 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8994 echo $ac_n "(cached) $ac_c" 1>&6
8996 echo 'void f(){}' > conftest.c
8997 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8998 ac_cv_prog_cc_Kpic
=yes
9000 ac_cv_prog_cc_Kpic
=no
9006 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
9007 if test $ac_cv_prog_cc_Kpic = yes; then
9014 echo $ac_n "checking for long long""... $ac_c" 1>&6
9015 echo "configure:9016: checking for long long" >&5
9016 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9020 if test "$cross_compiling" = yes; then
9021 samba_cv_have_longlong
=cross
9023 cat > conftest.
$ac_ext <<EOF
9024 #line 9025 "configure"
9025 #include "confdefs.h"
9027 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9029 if { (eval echo configure
:9030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9031 samba_cv_have_longlong
=yes
9033 echo "configure: failed program was:" >&5
9034 cat conftest.
$ac_ext >&5
9036 samba_cv_have_longlong
=no
9043 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9044 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9045 cat >> confdefs.h
<<\EOF
9046 #define HAVE_LONGLONG 1
9052 # Check if the compiler supports the LL prefix on long long integers.
9055 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9056 echo "configure:9057: checking for LL suffix on long long integers" >&5
9057 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9061 cat > conftest.
$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9066 long long i = 0x8000000000LL
9069 if { (eval echo configure
:9070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 samba_cv_compiler_supports_ll
=yes
9073 echo "configure: failed program was:" >&5
9074 cat conftest.
$ac_ext >&5
9076 samba_cv_compiler_supports_ll
=no
9081 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9082 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9083 cat >> confdefs.h
<<\EOF
9084 #define COMPILER_SUPPORTS_LL 1
9090 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9091 echo "configure:9092: checking for 64 bit off_t" >&5
9092 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9096 if test "$cross_compiling" = yes; then
9097 samba_cv_SIZEOF_OFF_T
=cross
9099 cat > conftest.
$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9103 #include <sys/stat.h>
9104 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9106 if { (eval echo configure
:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9108 samba_cv_SIZEOF_OFF_T
=yes
9110 echo "configure: failed program was:" >&5
9111 cat conftest.
$ac_ext >&5
9113 samba_cv_SIZEOF_OFF_T
=no
9120 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9121 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9122 cat >> confdefs.h
<<\EOF
9123 #define SIZEOF_OFF_T 8
9128 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9129 echo "configure:9130: checking for off64_t" >&5
9130 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9134 if test "$cross_compiling" = yes; then
9135 samba_cv_HAVE_OFF64_T
=cross
9137 cat > conftest.
$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9141 #if defined(HAVE_UNISTD_H)
9145 #include <sys/stat.h>
9146 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9148 if { (eval echo configure
:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9150 samba_cv_HAVE_OFF64_T
=yes
9152 echo "configure: failed program was:" >&5
9153 cat conftest.
$ac_ext >&5
9155 samba_cv_HAVE_OFF64_T
=no
9162 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9163 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9164 cat >> confdefs.h
<<\EOF
9165 #define HAVE_OFF64_T 1
9170 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9171 echo "configure:9172: checking for 64 bit ino_t" >&5
9172 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9173 echo $ac_n "(cached) $ac_c" 1>&6
9176 if test "$cross_compiling" = yes; then
9177 samba_cv_SIZEOF_INO_T
=cross
9179 cat > conftest.
$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9183 #include <sys/stat.h>
9184 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9186 if { (eval echo configure
:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9188 samba_cv_SIZEOF_INO_T
=yes
9190 echo "configure: failed program was:" >&5
9191 cat conftest.
$ac_ext >&5
9193 samba_cv_SIZEOF_INO_T
=no
9200 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9201 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9202 cat >> confdefs.h
<<\EOF
9203 #define SIZEOF_INO_T 8
9208 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9209 echo "configure:9210: checking for ino64_t" >&5
9210 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9211 echo $ac_n "(cached) $ac_c" 1>&6
9214 if test "$cross_compiling" = yes; then
9215 samba_cv_HAVE_INO64_T
=cross
9217 cat > conftest.
$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9221 #if defined(HAVE_UNISTD_H)
9225 #include <sys/stat.h>
9226 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9228 if { (eval echo configure
:9229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9230 samba_cv_HAVE_INO64_T
=yes
9232 echo "configure: failed program was:" >&5
9233 cat conftest.
$ac_ext >&5
9235 samba_cv_HAVE_INO64_T
=no
9242 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9243 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9244 cat >> confdefs.h
<<\EOF
9245 #define HAVE_INO64_T 1
9250 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9251 echo "configure:9252: checking for dev64_t" >&5
9252 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9253 echo $ac_n "(cached) $ac_c" 1>&6
9256 if test "$cross_compiling" = yes; then
9257 samba_cv_HAVE_DEV64_T
=cross
9259 cat > conftest.
$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9263 #if defined(HAVE_UNISTD_H)
9267 #include <sys/stat.h>
9268 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9270 if { (eval echo configure
:9271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9272 samba_cv_HAVE_DEV64_T
=yes
9274 echo "configure: failed program was:" >&5
9275 cat conftest.
$ac_ext >&5
9277 samba_cv_HAVE_DEV64_T
=no
9284 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9285 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9286 cat >> confdefs.h
<<\EOF
9287 #define HAVE_DEV64_T 1
9292 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9293 echo "configure:9294: checking for struct dirent64" >&5
9294 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9295 echo $ac_n "(cached) $ac_c" 1>&6
9298 cat > conftest.
$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9302 #if defined(HAVE_UNISTD_H)
9305 #include <sys/types.h>
9311 if { (eval echo configure
:9312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9313 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9315 echo "configure: failed program was:" >&5
9316 cat conftest.
$ac_ext >&5
9318 samba_cv_HAVE_STRUCT_DIRENT64
=no
9323 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9324 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9325 cat >> confdefs.h
<<\EOF
9326 #define HAVE_STRUCT_DIRENT64 1
9331 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9332 echo "configure:9333: checking for major macro" >&5
9333 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9337 if test "$cross_compiling" = yes; then
9338 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9340 cat > conftest.
$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9344 #if defined(HAVE_UNISTD_H)
9347 #include <sys/types.h>
9348 main() { dev_t dev; int i = major(dev); return 0; }
9350 if { (eval echo configure
:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9352 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9354 echo "configure: failed program was:" >&5
9355 cat conftest.
$ac_ext >&5
9357 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9364 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9365 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9366 cat >> confdefs.h
<<\EOF
9367 #define HAVE_DEVICE_MAJOR_FN 1
9372 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9373 echo "configure:9374: checking for minor macro" >&5
9374 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9378 if test "$cross_compiling" = yes; then
9379 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9381 cat > conftest.
$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9385 #if defined(HAVE_UNISTD_H)
9388 #include <sys/types.h>
9389 main() { dev_t dev; int i = minor(dev); return 0; }
9391 if { (eval echo configure
:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9393 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9395 echo "configure: failed program was:" >&5
9396 cat conftest.
$ac_ext >&5
9398 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9405 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9406 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9407 cat >> confdefs.h
<<\EOF
9408 #define HAVE_DEVICE_MINOR_FN 1
9413 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9414 echo "configure:9415: checking for makedev macro" >&5
9415 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9419 if test "$cross_compiling" = yes; then
9420 samba_cv_HAVE_MAKEDEV_FN
=cross
9422 cat > conftest.
$ac_ext <<EOF
9423 #line 9424 "configure"
9424 #include "confdefs.h"
9426 #if defined(HAVE_UNISTD_H)
9429 #include <sys/types.h>
9430 main() { dev_t dev = makedev(1,2); return 0; }
9432 if { (eval echo configure
:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9434 samba_cv_HAVE_MAKEDEV_FN
=yes
9436 echo "configure: failed program was:" >&5
9437 cat conftest.
$ac_ext >&5
9439 samba_cv_HAVE_MAKEDEV_FN
=no
9446 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9447 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9448 cat >> confdefs.h
<<\EOF
9449 #define MAKEDEV_FN 1
9454 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9455 echo "configure:9456: checking for unsigned char" >&5
9456 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9457 echo $ac_n "(cached) $ac_c" 1>&6
9460 if test "$cross_compiling" = yes; then
9461 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9463 cat > conftest.
$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9467 main() { char c; c=250; exit((c > 0)?0:1); }
9469 if { (eval echo configure
:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9471 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9473 echo "configure: failed program was:" >&5
9474 cat conftest.
$ac_ext >&5
9476 samba_cv_HAVE_UNSIGNED_CHAR
=no
9483 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9484 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9485 cat >> confdefs.h
<<\EOF
9486 #define HAVE_UNSIGNED_CHAR 1
9491 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9492 echo "configure:9493: checking for sin_len in sock" >&5
9493 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9494 echo $ac_n "(cached) $ac_c" 1>&6
9497 cat > conftest.
$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #include <sys/types.h>
9501 #include <sys/socket.h>
9502 #include <netinet/in.h>
9504 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9507 if { (eval echo configure
:9508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9509 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9511 echo "configure: failed program was:" >&5
9512 cat conftest.
$ac_ext >&5
9514 samba_cv_HAVE_SOCK_SIN_LEN
=no
9519 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9520 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9521 cat >> confdefs.h
<<\EOF
9522 #define HAVE_SOCK_SIN_LEN 1
9527 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9528 echo "configure:9529: checking whether seekdir returns void" >&5
9529 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9530 echo $ac_n "(cached) $ac_c" 1>&6
9533 cat > conftest.
$ac_ext <<EOF
9534 #line 9535 "configure"
9535 #include "confdefs.h"
9536 #include <sys/types.h>
9538 void seekdir(DIR *d, long loc) { return; }
9543 if { (eval echo configure
:9544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9545 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9547 echo "configure: failed program was:" >&5
9548 cat conftest.
$ac_ext >&5
9550 samba_cv_SEEKDIR_RETURNS_VOID
=no
9555 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9556 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9557 cat >> confdefs.h
<<\EOF
9558 #define SEEKDIR_RETURNS_VOID 1
9563 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9564 echo "configure:9565: checking for __FILE__ macro" >&5
9565 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9569 cat > conftest.
$ac_ext <<EOF
9570 #line 9571 "configure"
9571 #include "confdefs.h"
9574 printf("%s\n", __FILE__);
9577 if { (eval echo configure
:9578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9579 samba_cv_HAVE_FILE_MACRO
=yes
9581 echo "configure: failed program was:" >&5
9582 cat conftest.
$ac_ext >&5
9584 samba_cv_HAVE_FILE_MACRO
=no
9589 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9590 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9591 cat >> confdefs.h
<<\EOF
9592 #define HAVE_FILE_MACRO 1
9597 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9598 echo "configure:9599: checking for __FUNCTION__ macro" >&5
9599 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9603 cat > conftest.
$ac_ext <<EOF
9604 #line 9605 "configure"
9605 #include "confdefs.h"
9608 printf("%s\n", __FUNCTION__);
9611 if { (eval echo configure
:9612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9613 samba_cv_HAVE_FUNCTION_MACRO
=yes
9615 echo "configure: failed program was:" >&5
9616 cat conftest.
$ac_ext >&5
9618 samba_cv_HAVE_FUNCTION_MACRO
=no
9623 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9624 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9625 cat >> confdefs.h
<<\EOF
9626 #define HAVE_FUNCTION_MACRO 1
9631 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9632 echo "configure:9633: checking if gettimeofday takes tz argument" >&5
9633 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9637 if test "$cross_compiling" = yes; then
9638 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9640 cat > conftest.
$ac_ext <<EOF
9641 #line 9642 "configure"
9642 #include "confdefs.h"
9644 #include <sys/time.h>
9646 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9648 if { (eval echo configure
:9649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9650 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9652 echo "configure: failed program was:" >&5
9653 cat conftest.
$ac_ext >&5
9655 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9662 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9663 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9664 cat >> confdefs.h
<<\EOF
9665 #define HAVE_GETTIMEOFDAY_TZ 1
9670 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9671 echo "configure:9672: checking for __va_copy" >&5
9672 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9673 echo $ac_n "(cached) $ac_c" 1>&6
9676 cat > conftest.
$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9685 if { (eval echo configure
:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9687 samba_cv_HAVE_VA_COPY
=yes
9689 echo "configure: failed program was:" >&5
9690 cat conftest.
$ac_ext >&5
9692 samba_cv_HAVE_VA_COPY
=no
9697 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9698 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9699 cat >> confdefs.h
<<\EOF
9700 #define HAVE_VA_COPY 1
9705 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9706 echo "configure:9707: checking for C99 vsnprintf" >&5
9707 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9708 echo $ac_n "(cached) $ac_c" 1>&6
9711 if test "$cross_compiling" = yes; then
9712 samba_cv_HAVE_C99_VSNPRINTF
=cross
9714 cat > conftest.
$ac_ext <<EOF
9715 #line 9716 "configure"
9716 #include "confdefs.h"
9718 #include <sys/types.h>
9720 void foo(const char *format, ...) {
9725 va_start(ap, format);
9726 len = vsnprintf(buf, 0, format, ap);
9728 if (len != 5) exit(1);
9730 va_start(ap, format);
9731 len = vsnprintf(0, 0, format, ap);
9733 if (len != 5) exit(1);
9735 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9739 main() { foo("hello"); }
9742 if { (eval echo configure
:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9744 samba_cv_HAVE_C99_VSNPRINTF
=yes
9746 echo "configure: failed program was:" >&5
9747 cat conftest.
$ac_ext >&5
9749 samba_cv_HAVE_C99_VSNPRINTF
=no
9756 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9757 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9758 cat >> confdefs.h
<<\EOF
9759 #define HAVE_C99_VSNPRINTF 1
9764 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9765 echo "configure:9766: checking for broken readdir" >&5
9766 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9767 echo $ac_n "(cached) $ac_c" 1>&6
9770 if test "$cross_compiling" = yes; then
9771 samba_cv_HAVE_BROKEN_READDIR
=cross
9773 cat > conftest.
$ac_ext <<EOF
9774 #line 9775 "configure"
9775 #include "confdefs.h"
9776 #include <sys/types.h>
9778 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9779 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9780 di->d_name[0] == 0) exit(0); exit(1);}
9782 if { (eval echo configure
:9783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9784 samba_cv_HAVE_BROKEN_READDIR
=yes
9786 echo "configure: failed program was:" >&5
9787 cat conftest.
$ac_ext >&5
9789 samba_cv_HAVE_BROKEN_READDIR
=no
9796 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9797 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9798 cat >> confdefs.h
<<\EOF
9799 #define HAVE_BROKEN_READDIR 1
9804 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9805 echo "configure:9806: checking for utimbuf" >&5
9806 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9810 cat > conftest.
$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813 #include <sys/types.h>
9816 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9819 if { (eval echo configure
:9820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9821 samba_cv_HAVE_UTIMBUF
=yes
9823 echo "configure: failed program was:" >&5
9824 cat conftest.
$ac_ext >&5
9826 samba_cv_HAVE_UTIMBUF
=no
9831 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9832 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9833 cat >> confdefs.h
<<\EOF
9834 #define HAVE_UTIMBUF 1
9840 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9843 echo "configure:9844: checking for $ac_func" >&5
9844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9845 echo $ac_n "(cached) $ac_c" 1>&6
9847 cat > conftest.
$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 /* System header to define __stub macros and hopefully few prototypes,
9851 which can conflict with char $ac_func(); below. */
9853 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9860 /* The GNU C library defines this for functions which it implements
9861 to always fail with ENOSYS. Some functions are actually named
9862 something starting with __ and the normal name is an alias. */
9863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9871 if { (eval echo configure
:9872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9873 eval "ac_cv_func_$ac_func=yes"
9875 echo "configure: failed program was:" >&5
9876 cat conftest.
$ac_ext >&5
9878 eval "ac_cv_func_$ac_func=no"
9883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9884 echo "$ac_t""yes" 1>&6
9885 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9886 cat >> confdefs.h
<<EOF
9887 #define $ac_tr_func 1
9891 echo "$ac_t""no" 1>&6
9896 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9897 echo "configure:9898: checking for ut_name in utmp" >&5
9898 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9899 echo $ac_n "(cached) $ac_c" 1>&6
9902 cat > conftest.
$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 #include <sys/types.h>
9908 struct utmp ut; ut.ut_name[0] = 'a';
9911 if { (eval echo configure
:9912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9913 samba_cv_HAVE_UT_UT_NAME
=yes
9915 echo "configure: failed program was:" >&5
9916 cat conftest.
$ac_ext >&5
9918 samba_cv_HAVE_UT_UT_NAME
=no
9923 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9924 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9925 cat >> confdefs.h
<<\EOF
9926 #define HAVE_UT_UT_NAME 1
9931 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9932 echo "configure:9933: checking for ut_user in utmp" >&5
9933 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9937 cat > conftest.
$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <sys/types.h>
9943 struct utmp ut; ut.ut_user[0] = 'a';
9946 if { (eval echo configure
:9947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9948 samba_cv_HAVE_UT_UT_USER
=yes
9950 echo "configure: failed program was:" >&5
9951 cat conftest.
$ac_ext >&5
9953 samba_cv_HAVE_UT_UT_USER
=no
9958 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9959 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9960 cat >> confdefs.h
<<\EOF
9961 #define HAVE_UT_UT_USER 1
9966 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9967 echo "configure:9968: checking for ut_id in utmp" >&5
9968 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9972 cat > conftest.
$ac_ext <<EOF
9973 #line 9974 "configure"
9974 #include "confdefs.h"
9975 #include <sys/types.h>
9978 struct utmp ut; ut.ut_id[0] = 'a';
9981 if { (eval echo configure
:9982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9983 samba_cv_HAVE_UT_UT_ID
=yes
9985 echo "configure: failed program was:" >&5
9986 cat conftest.
$ac_ext >&5
9988 samba_cv_HAVE_UT_UT_ID
=no
9993 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9994 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9995 cat >> confdefs.h
<<\EOF
9996 #define HAVE_UT_UT_ID 1
10001 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10002 echo "configure:10003: checking for ut_host in utmp" >&5
10003 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10007 cat > conftest.
$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 #include <sys/types.h>
10013 struct utmp ut; ut.ut_host[0] = 'a';
10016 if { (eval echo configure
:10017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10018 samba_cv_HAVE_UT_UT_HOST
=yes
10020 echo "configure: failed program was:" >&5
10021 cat conftest.
$ac_ext >&5
10023 samba_cv_HAVE_UT_UT_HOST
=no
10028 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10029 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10030 cat >> confdefs.h
<<\EOF
10031 #define HAVE_UT_UT_HOST 1
10036 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10037 echo "configure:10038: checking for ut_time in utmp" >&5
10038 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10042 cat > conftest.
$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10045 #include <sys/types.h>
10048 struct utmp ut; time_t t; ut.ut_time = t;
10051 if { (eval echo configure
:10052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10053 samba_cv_HAVE_UT_UT_TIME
=yes
10055 echo "configure: failed program was:" >&5
10056 cat conftest.
$ac_ext >&5
10058 samba_cv_HAVE_UT_UT_TIME
=no
10063 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10064 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10065 cat >> confdefs.h
<<\EOF
10066 #define HAVE_UT_UT_TIME 1
10071 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10072 echo "configure:10073: checking for ut_tv in utmp" >&5
10073 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10077 cat > conftest.
$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <sys/types.h>
10083 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10086 if { (eval echo configure
:10087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10088 samba_cv_HAVE_UT_UT_TV
=yes
10090 echo "configure: failed program was:" >&5
10091 cat conftest.
$ac_ext >&5
10093 samba_cv_HAVE_UT_UT_TV
=no
10098 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10099 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10100 cat >> confdefs.h
<<\EOF
10101 #define HAVE_UT_UT_TV 1
10106 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10107 echo "configure:10108: checking for ut_type in utmp" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10112 cat > conftest.
$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <sys/types.h>
10118 struct utmp ut; ut.ut_type = 0;
10121 if { (eval echo configure
:10122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10123 samba_cv_HAVE_UT_UT_TYPE
=yes
10125 echo "configure: failed program was:" >&5
10126 cat conftest.
$ac_ext >&5
10128 samba_cv_HAVE_UT_UT_TYPE
=no
10133 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10134 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10135 cat >> confdefs.h
<<\EOF
10136 #define HAVE_UT_UT_TYPE 1
10141 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10142 echo "configure:10143: checking for ut_pid in utmp" >&5
10143 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10147 cat > conftest.
$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10150 #include <sys/types.h>
10153 struct utmp ut; ut.ut_pid = 0;
10156 if { (eval echo configure
:10157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10158 samba_cv_HAVE_UT_UT_PID
=yes
10160 echo "configure: failed program was:" >&5
10161 cat conftest.
$ac_ext >&5
10163 samba_cv_HAVE_UT_UT_PID
=no
10168 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10169 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10170 cat >> confdefs.h
<<\EOF
10171 #define HAVE_UT_UT_PID 1
10176 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10177 echo "configure:10178: checking for ut_exit in utmp" >&5
10178 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10179 echo $ac_n "(cached) $ac_c" 1>&6
10182 cat > conftest.
$ac_ext <<EOF
10183 #line 10184 "configure"
10184 #include "confdefs.h"
10185 #include <sys/types.h>
10188 struct utmp ut; ut.ut_exit.e_exit = 0;
10191 if { (eval echo configure
:10192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10193 samba_cv_HAVE_UT_UT_EXIT
=yes
10195 echo "configure: failed program was:" >&5
10196 cat conftest.
$ac_ext >&5
10198 samba_cv_HAVE_UT_UT_EXIT
=no
10203 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10204 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10205 cat >> confdefs.h
<<\EOF
10206 #define HAVE_UT_UT_EXIT 1
10211 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10212 echo "configure:10213: checking for ut_addr in utmp" >&5
10213 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10217 cat > conftest.
$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 #include <sys/types.h>
10223 struct utmp ut; ut.ut_addr = 0;
10226 if { (eval echo configure
:10227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10228 samba_cv_HAVE_UT_UT_ADDR
=yes
10230 echo "configure: failed program was:" >&5
10231 cat conftest.
$ac_ext >&5
10233 samba_cv_HAVE_UT_UT_ADDR
=no
10238 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10239 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10240 cat >> confdefs.h
<<\EOF
10241 #define HAVE_UT_UT_ADDR 1
10246 if test x
$ac_cv_func_pututline = xyes
; then
10247 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10248 echo "configure:10249: checking whether pututline returns pointer" >&5
10249 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10253 cat > conftest.
$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10256 #include <sys/types.h>
10259 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10262 if { (eval echo configure
:10263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10264 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10266 echo "configure: failed program was:" >&5
10267 cat conftest.
$ac_ext >&5
10269 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10274 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10275 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10276 cat >> confdefs.h
<<\EOF
10277 #define PUTUTLINE_RETURNS_UTMP 1
10283 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10284 echo "configure:10285: checking for ut_syslen in utmpx" >&5
10285 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10289 cat > conftest.
$ac_ext <<EOF
10290 #line 10291 "configure"
10291 #include "confdefs.h"
10292 #include <sys/types.h>
10295 struct utmpx ux; ux.ut_syslen = 0;
10298 if { (eval echo configure
:10299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10300 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10302 echo "configure: failed program was:" >&5
10303 cat conftest.
$ac_ext >&5
10305 samba_cv_HAVE_UX_UT_SYSLEN
=no
10310 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10311 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10312 cat >> confdefs.h
<<\EOF
10313 #define HAVE_UX_UT_SYSLEN 1
10318 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10319 echo "configure:10320: checking for Linux kernel oplocks" >&5
10320 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10324 if test "$cross_compiling" = yes; then
10325 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10327 cat > conftest.
$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10331 #include <sys/types.h>
10334 #define F_GETLEASE 1025
10337 int fd = open("/dev/null", O_RDONLY);
10338 return fcntl(fd, F_GETLEASE, 0) == -1;
10342 if { (eval echo configure
:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10344 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10346 echo "configure: failed program was:" >&5
10347 cat conftest.
$ac_ext >&5
10349 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10356 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10357 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10358 cat >> confdefs.h
<<\EOF
10359 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10364 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10365 echo "configure:10366: checking for kernel change notify support" >&5
10366 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10367 echo $ac_n "(cached) $ac_c" 1>&6
10370 if test "$cross_compiling" = yes; then
10371 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10373 cat > conftest.
$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10377 #include <sys/types.h>
10379 #include <signal.h>
10381 #define F_NOTIFY 1026
10384 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10388 if { (eval echo configure
:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10390 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10392 echo "configure: failed program was:" >&5
10393 cat conftest.
$ac_ext >&5
10395 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10402 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10403 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10404 cat >> confdefs.h
<<\EOF
10405 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10410 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10411 echo "configure:10412: checking for kernel share modes" >&5
10412 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10413 echo $ac_n "(cached) $ac_c" 1>&6
10416 if test "$cross_compiling" = yes; then
10417 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10419 cat > conftest.
$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10423 #include <sys/types.h>
10425 #include <signal.h>
10426 #include <sys/file.h>
10428 #define LOCK_MAND 32
10429 #define LOCK_READ 64
10432 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10436 if { (eval echo configure
:10437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10438 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10440 echo "configure: failed program was:" >&5
10441 cat conftest.
$ac_ext >&5
10443 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10450 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10451 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10452 cat >> confdefs.h
<<\EOF
10453 #define HAVE_KERNEL_SHARE_MODES 1
10461 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10462 echo "configure:10463: checking for IRIX kernel oplock type definitions" >&5
10463 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10464 echo $ac_n "(cached) $ac_c" 1>&6
10467 cat > conftest.
$ac_ext <<EOF
10468 #line 10469 "configure"
10469 #include "confdefs.h"
10470 #include <sys/types.h>
10473 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10476 if { (eval echo configure
:10477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10478 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10480 echo "configure: failed program was:" >&5
10481 cat conftest.
$ac_ext >&5
10483 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10488 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10489 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10490 cat >> confdefs.h
<<\EOF
10491 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10496 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10497 echo "configure:10498: checking for irix specific capabilities" >&5
10498 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10502 if test "$cross_compiling" = yes; then
10503 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10505 cat > conftest.
$ac_ext <<EOF
10506 #line 10507 "configure"
10507 #include "confdefs.h"
10508 #include <sys/types.h>
10509 #include <sys/capability.h>
10512 if ((cap = cap_get_proc()) == NULL)
10514 cap->cap_effective |= CAP_NETWORK_MGT;
10515 cap->cap_inheritable |= CAP_NETWORK_MGT;
10521 if { (eval echo configure
:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10523 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10525 echo "configure: failed program was:" >&5
10526 cat conftest.
$ac_ext >&5
10528 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10535 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10536 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10537 cat >> confdefs.h
<<\EOF
10538 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10544 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10545 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10548 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10549 echo "configure:10550: checking for int16 typedef included by rpc/rpc.h" >&5
10550 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10554 cat > conftest.
$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10557 #include <sys/types.h>
10558 #if defined(HAVE_RPC_RPC_H)
10559 #include <rpc/rpc.h>
10565 if { (eval echo configure
:10566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10567 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10569 echo "configure: failed program was:" >&5
10570 cat conftest.
$ac_ext >&5
10572 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10577 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10578 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10579 cat >> confdefs.h
<<\EOF
10580 #define HAVE_INT16_FROM_RPC_RPC_H 1
10585 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10586 echo "configure:10587: checking for uint16 typedef included by rpc/rpc.h" >&5
10587 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10588 echo $ac_n "(cached) $ac_c" 1>&6
10591 cat > conftest.
$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10594 #include <sys/types.h>
10595 #if defined(HAVE_RPC_RPC_H)
10596 #include <rpc/rpc.h>
10602 if { (eval echo configure
:10603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10604 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10606 echo "configure: failed program was:" >&5
10607 cat conftest.
$ac_ext >&5
10609 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10614 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10615 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10616 cat >> confdefs.h
<<\EOF
10617 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10622 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10623 echo "configure:10624: checking for int32 typedef included by rpc/rpc.h" >&5
10624 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10625 echo $ac_n "(cached) $ac_c" 1>&6
10628 cat > conftest.
$ac_ext <<EOF
10629 #line 10630 "configure"
10630 #include "confdefs.h"
10631 #include <sys/types.h>
10632 #if defined(HAVE_RPC_RPC_H)
10633 #include <rpc/rpc.h>
10639 if { (eval echo configure
:10640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10641 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10643 echo "configure: failed program was:" >&5
10644 cat conftest.
$ac_ext >&5
10646 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10651 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10652 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10653 cat >> confdefs.h
<<\EOF
10654 #define HAVE_INT32_FROM_RPC_RPC_H 1
10659 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10660 echo "configure:10661: checking for uint32 typedef included by rpc/rpc.h" >&5
10661 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10665 cat > conftest.
$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10668 #include <sys/types.h>
10669 #if defined(HAVE_RPC_RPC_H)
10670 #include <rpc/rpc.h>
10676 if { (eval echo configure
:10677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10678 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10680 echo "configure: failed program was:" >&5
10681 cat conftest.
$ac_ext >&5
10683 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10688 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10689 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10690 cat >> confdefs.h
<<\EOF
10691 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10697 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10698 echo "configure:10699: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10699 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10703 cat > conftest.
$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10706 #include <sys/types.h>
10707 #ifdef HAVE_SYS_SECURITY_H
10708 #include <sys/security.h>
10710 #endif /* HAVE_SYS_SECURITY_H */
10711 #if defined(HAVE_RPC_RPC_H)
10712 #include <rpc/rpc.h>
10718 if { (eval echo configure
:10719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10720 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10722 echo "configure: failed program was:" >&5
10723 cat conftest.
$ac_ext >&5
10725 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10730 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10731 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10732 cat >> confdefs.h
<<\EOF
10733 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10738 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10739 echo "configure:10740: checking for test routines" >&5
10740 if test "$cross_compiling" = yes; then
10741 echo "configure: warning: cannot run when cross-compiling" 1>&2
10743 cat > conftest.
$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10746 #include "${srcdir-.}/tests/trivial.c"
10748 if { (eval echo configure
:10749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10750 echo "$ac_t""yes" 1>&6
10752 echo "configure: failed program was:" >&5
10753 cat conftest.
$ac_ext >&5
10755 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10761 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10762 echo "configure:10763: checking for ftruncate extend" >&5
10763 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10764 echo $ac_n "(cached) $ac_c" 1>&6
10767 if test "$cross_compiling" = yes; then
10768 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10770 cat > conftest.
$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773 #include "${srcdir-.}/tests/ftruncate.c"
10775 if { (eval echo configure
:10776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10777 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10779 echo "configure: failed program was:" >&5
10780 cat conftest.
$ac_ext >&5
10782 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10789 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10790 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10791 cat >> confdefs.h
<<\EOF
10792 #define HAVE_FTRUNCATE_EXTEND 1
10797 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10798 echo "configure:10799: checking for broken getgroups" >&5
10799 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10800 echo $ac_n "(cached) $ac_c" 1>&6
10803 if test "$cross_compiling" = yes; then
10804 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10806 cat > conftest.
$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 #include "${srcdir-.}/tests/getgroups.c"
10811 if { (eval echo configure
:10812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10813 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10815 echo "configure: failed program was:" >&5
10816 cat conftest.
$ac_ext >&5
10818 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10825 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10826 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10827 cat >> confdefs.h
<<\EOF
10828 #define HAVE_BROKEN_GETGROUPS 1
10833 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10834 echo "configure:10835: checking whether getpass should be replaced" >&5
10835 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10836 echo $ac_n "(cached) $ac_c" 1>&6
10839 SAVE_CPPFLAGS
="$CPPFLAGS"
10840 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10841 cat > conftest.
$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10845 #define REPLACE_GETPASS 1
10846 #define NO_CONFIG_H 1
10847 #define main dont_declare_main
10848 #include "${srcdir-.}/lib/getsmbpass.c"
10855 if { (eval echo configure
:10856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10857 samba_cv_REPLACE_GETPASS
=yes
10859 echo "configure: failed program was:" >&5
10860 cat conftest.
$ac_ext >&5
10862 samba_cv_REPLACE_GETPASS
=no
10865 CPPFLAGS
="$SAVE_CPPFLAGS"
10869 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10870 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10871 cat >> confdefs.h
<<\EOF
10872 #define REPLACE_GETPASS 1
10877 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10878 echo "configure:10879: checking for broken inet_ntoa" >&5
10879 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10880 echo $ac_n "(cached) $ac_c" 1>&6
10883 if test "$cross_compiling" = yes; then
10884 samba_cv_REPLACE_INET_NTOA
=cross
10886 cat > conftest.
$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10891 #include <sys/types.h>
10892 #include <netinet/in.h>
10893 #ifdef HAVE_ARPA_INET_H
10894 #include <arpa/inet.h>
10896 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10897 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10898 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10901 if { (eval echo configure
:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10903 samba_cv_REPLACE_INET_NTOA
=yes
10905 echo "configure: failed program was:" >&5
10906 cat conftest.
$ac_ext >&5
10908 samba_cv_REPLACE_INET_NTOA
=no
10915 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10916 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10917 cat >> confdefs.h
<<\EOF
10918 #define REPLACE_INET_NTOA 1
10923 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10924 echo "configure:10925: checking for secure mkstemp" >&5
10925 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10929 if test "$cross_compiling" = yes; then
10930 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10932 cat > conftest.
$ac_ext <<EOF
10933 #line 10934 "configure"
10934 #include "confdefs.h"
10935 #include <stdlib.h>
10936 #include <sys/types.h>
10937 #include <sys/stat.h>
10938 #include <unistd.h>
10941 char tpl[20]="/tmp/test.XXXXXX";
10942 int fd = mkstemp(tpl);
10943 if (fd == -1) exit(1);
10945 if (fstat(fd, &st) != 0) exit(1);
10946 if ((st.st_mode & 0777) != 0600) exit(1);
10950 if { (eval echo configure
:10951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10952 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10954 echo "configure: failed program was:" >&5
10955 cat conftest.
$ac_ext >&5
10957 samba_cv_HAVE_SECURE_MKSTEMP
=no
10964 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10965 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10966 cat >> confdefs.h
<<\EOF
10967 #define HAVE_SECURE_MKSTEMP 1
10972 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10973 echo "configure:10974: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10974 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10975 echo $ac_n "(cached) $ac_c" 1>&6
10978 if test "$cross_compiling" = yes; then
10979 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10981 cat > conftest.
$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10984 #include <unistd.h>
10985 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10987 if { (eval echo configure
:10988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10989 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10991 echo "configure: failed program was:" >&5
10992 cat conftest.
$ac_ext >&5
10994 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11001 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11002 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11003 cat >> confdefs.h
<<\EOF
11004 #define SYSCONF_SC_NGROUPS_MAX 1
11009 echo $ac_n "checking for root""... $ac_c" 1>&6
11010 echo "configure:11011: checking for root" >&5
11011 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11012 echo $ac_n "(cached) $ac_c" 1>&6
11015 if test "$cross_compiling" = yes; then
11016 samba_cv_HAVE_ROOT
=cross
11018 cat > conftest.
$ac_ext <<EOF
11019 #line 11020 "configure"
11020 #include "confdefs.h"
11021 main() { exit(getuid() != 0); }
11023 if { (eval echo configure
:11024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11025 samba_cv_HAVE_ROOT
=yes
11027 echo "configure: failed program was:" >&5
11028 cat conftest.
$ac_ext >&5
11030 samba_cv_HAVE_ROOT
=no
11037 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11038 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11039 cat >> confdefs.h
<<\EOF
11040 #define HAVE_ROOT 1
11044 echo "configure: warning: running as non-root will disable some tests" 1>&2
11048 # look for a method of finding the list of network interfaces
11050 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11051 echo "configure:11052: checking for iface AIX" >&5
11052 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11056 if test "$cross_compiling" = yes; then
11057 samba_cv_HAVE_IFACE_AIX
=cross
11059 cat > conftest.
$ac_ext <<EOF
11060 #line 11061 "configure"
11061 #include "confdefs.h"
11063 #define HAVE_IFACE_AIX 1
11064 #define AUTOCONF_TEST 1
11065 #include "confdefs.h"
11066 #include "${srcdir-.}/lib/interfaces.c"
11068 if { (eval echo configure
:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11070 samba_cv_HAVE_IFACE_AIX
=yes
11072 echo "configure: failed program was:" >&5
11073 cat conftest.
$ac_ext >&5
11075 samba_cv_HAVE_IFACE_AIX
=no
11082 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11083 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11084 iface
=yes;cat >> confdefs.h
<<\EOF
11085 #define HAVE_IFACE_AIX 1
11090 if test $iface = no
; then
11091 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11092 echo "configure:11093: checking for iface ifconf" >&5
11093 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11094 echo $ac_n "(cached) $ac_c" 1>&6
11097 if test "$cross_compiling" = yes; then
11098 samba_cv_HAVE_IFACE_IFCONF
=cross
11100 cat > conftest.
$ac_ext <<EOF
11101 #line 11102 "configure"
11102 #include "confdefs.h"
11104 #define HAVE_IFACE_IFCONF 1
11105 #define AUTOCONF_TEST 1
11106 #include "confdefs.h"
11107 #include "${srcdir-.}/lib/interfaces.c"
11109 if { (eval echo configure
:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11111 samba_cv_HAVE_IFACE_IFCONF
=yes
11113 echo "configure: failed program was:" >&5
11114 cat conftest.
$ac_ext >&5
11116 samba_cv_HAVE_IFACE_IFCONF
=no
11123 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11124 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11125 iface
=yes;cat >> confdefs.h
<<\EOF
11126 #define HAVE_IFACE_IFCONF 1
11132 if test $iface = no
; then
11133 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11134 echo "configure:11135: checking for iface ifreq" >&5
11135 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11139 if test "$cross_compiling" = yes; then
11140 samba_cv_HAVE_IFACE_IFREQ
=cross
11142 cat > conftest.
$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11146 #define HAVE_IFACE_IFREQ 1
11147 #define AUTOCONF_TEST 1
11148 #include "confdefs.h"
11149 #include "${srcdir-.}/lib/interfaces.c"
11151 if { (eval echo configure
:11152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11153 samba_cv_HAVE_IFACE_IFREQ
=yes
11155 echo "configure: failed program was:" >&5
11156 cat conftest.
$ac_ext >&5
11158 samba_cv_HAVE_IFACE_IFREQ
=no
11165 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11166 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11167 iface
=yes;cat >> confdefs.h
<<\EOF
11168 #define HAVE_IFACE_IFREQ 1
11175 ################################################
11176 # look for a method of setting the effective uid
11178 if test $seteuid = no
; then
11179 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11180 echo "configure:11181: checking for setresuid" >&5
11181 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11185 if test "$cross_compiling" = yes; then
11186 samba_cv_USE_SETRESUID
=cross
11188 cat > conftest.
$ac_ext <<EOF
11189 #line 11190 "configure"
11190 #include "confdefs.h"
11192 #define AUTOCONF_TEST 1
11193 #define USE_SETRESUID 1
11194 #include "confdefs.h"
11195 #include "${srcdir-.}/lib/util_sec.c"
11197 if { (eval echo configure
:11198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11199 samba_cv_USE_SETRESUID
=yes
11201 echo "configure: failed program was:" >&5
11202 cat conftest.
$ac_ext >&5
11204 samba_cv_USE_SETRESUID
=no
11211 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11212 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11213 seteuid
=yes;cat >> confdefs.h
<<\EOF
11214 #define USE_SETRESUID 1
11221 if test $seteuid = no
; then
11222 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11223 echo "configure:11224: checking for setreuid" >&5
11224 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11228 if test "$cross_compiling" = yes; then
11229 samba_cv_USE_SETREUID
=cross
11231 cat > conftest.
$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11235 #define AUTOCONF_TEST 1
11236 #define USE_SETREUID 1
11237 #include "confdefs.h"
11238 #include "${srcdir-.}/lib/util_sec.c"
11240 if { (eval echo configure
:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11242 samba_cv_USE_SETREUID
=yes
11244 echo "configure: failed program was:" >&5
11245 cat conftest.
$ac_ext >&5
11247 samba_cv_USE_SETREUID
=no
11254 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11255 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11256 seteuid
=yes;cat >> confdefs.h
<<\EOF
11257 #define USE_SETREUID 1
11263 if test $seteuid = no
; then
11264 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11265 echo "configure:11266: checking for seteuid" >&5
11266 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11270 if test "$cross_compiling" = yes; then
11271 samba_cv_USE_SETEUID
=cross
11273 cat > conftest.
$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11277 #define AUTOCONF_TEST 1
11278 #define USE_SETEUID 1
11279 #include "confdefs.h"
11280 #include "${srcdir-.}/lib/util_sec.c"
11282 if { (eval echo configure
:11283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11284 samba_cv_USE_SETEUID
=yes
11286 echo "configure: failed program was:" >&5
11287 cat conftest.
$ac_ext >&5
11289 samba_cv_USE_SETEUID
=no
11296 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11297 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11298 seteuid
=yes;cat >> confdefs.h
<<\EOF
11299 #define USE_SETEUID 1
11305 if test $seteuid = no
; then
11306 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11307 echo "configure:11308: checking for setuidx" >&5
11308 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11309 echo $ac_n "(cached) $ac_c" 1>&6
11312 if test "$cross_compiling" = yes; then
11313 samba_cv_USE_SETUIDX
=cross
11315 cat > conftest.
$ac_ext <<EOF
11316 #line 11317 "configure"
11317 #include "confdefs.h"
11319 #define AUTOCONF_TEST 1
11320 #define USE_SETUIDX 1
11321 #include "confdefs.h"
11322 #include "${srcdir-.}/lib/util_sec.c"
11324 if { (eval echo configure
:11325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11326 samba_cv_USE_SETUIDX
=yes
11328 echo "configure: failed program was:" >&5
11329 cat conftest.
$ac_ext >&5
11331 samba_cv_USE_SETUIDX
=no
11338 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11339 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11340 seteuid
=yes;cat >> confdefs.h
<<\EOF
11341 #define USE_SETUIDX 1
11348 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11349 echo "configure:11350: checking for working mmap" >&5
11350 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11354 if test "$cross_compiling" = yes; then
11355 samba_cv_HAVE_MMAP
=cross
11357 cat > conftest.
$ac_ext <<EOF
11358 #line 11359 "configure"
11359 #include "confdefs.h"
11360 #include "${srcdir-.}/tests/shared_mmap.c"
11362 if { (eval echo configure
:11363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11364 samba_cv_HAVE_MMAP
=yes
11366 echo "configure: failed program was:" >&5
11367 cat conftest.
$ac_ext >&5
11369 samba_cv_HAVE_MMAP
=no
11376 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11377 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11378 cat >> confdefs.h
<<\EOF
11379 #define HAVE_MMAP 1
11384 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11385 echo "configure:11386: checking for ftruncate needs root" >&5
11386 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11387 echo $ac_n "(cached) $ac_c" 1>&6
11390 if test "$cross_compiling" = yes; then
11391 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11393 cat > conftest.
$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11396 #include "${srcdir-.}/tests/ftruncroot.c"
11398 if { (eval echo configure
:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11400 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11402 echo "configure: failed program was:" >&5
11403 cat conftest.
$ac_ext >&5
11405 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11412 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11413 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11414 cat >> confdefs.h
<<\EOF
11415 #define FTRUNCATE_NEEDS_ROOT 1
11420 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11421 echo "configure:11422: checking for fcntl locking" >&5
11422 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11426 if test "$cross_compiling" = yes; then
11427 samba_cv_HAVE_FCNTL_LOCK
=cross
11429 cat > conftest.
$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432 #include "${srcdir-.}/tests/fcntl_lock.c"
11434 if { (eval echo configure
:11435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11436 samba_cv_HAVE_FCNTL_LOCK
=yes
11438 echo "configure: failed program was:" >&5
11439 cat conftest.
$ac_ext >&5
11441 samba_cv_HAVE_FCNTL_LOCK
=no
11448 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11449 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11450 cat >> confdefs.h
<<\EOF
11451 #define HAVE_FCNTL_LOCK 1
11456 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11457 echo "configure:11458: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11458 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11459 echo $ac_n "(cached) $ac_c" 1>&6
11462 if test "$cross_compiling" = yes; then
11463 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11465 cat > conftest.
$ac_ext <<EOF
11466 #line 11467 "configure"
11467 #include "confdefs.h"
11468 #include "${srcdir-.}/tests/fcntl_lock64.c"
11470 if { (eval echo configure
:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11472 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11474 echo "configure: failed program was:" >&5
11475 cat conftest.
$ac_ext >&5
11477 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11484 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11485 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11486 cat >> confdefs.h
<<\EOF
11487 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11494 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11495 echo "configure:11496: checking for 64 bit fcntl locking" >&5
11496 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11500 if test "$cross_compiling" = yes; then
11501 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11503 cat > conftest.
$ac_ext <<EOF
11504 #line 11505 "configure"
11505 #include "confdefs.h"
11507 #if defined(HAVE_UNISTD_H)
11508 #include <unistd.h>
11511 #include <stdlib.h>
11513 #ifdef HAVE_FCNTL_H
11517 #ifdef HAVE_SYS_FCNTL_H
11518 #include <sys/fcntl.h>
11520 main() { struct flock64 fl64;
11521 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11528 if { (eval echo configure
:11529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11530 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11532 echo "configure: failed program was:" >&5
11533 cat conftest.
$ac_ext >&5
11535 samba_cv_HAVE_STRUCT_FLOCK64
=no
11542 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11544 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11545 cat >> confdefs.h
<<\EOF
11546 #define HAVE_STRUCT_FLOCK64 1
11552 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11553 echo "configure:11554: checking for st_blocks in struct stat" >&5
11554 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11555 echo $ac_n "(cached) $ac_c" 1>&6
11558 cat > conftest.
$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11561 #include <sys/types.h>
11562 #include <sys/stat.h>
11563 #include <unistd.h>
11565 struct stat st; st.st_blocks = 0;
11568 if { (eval echo configure
:11569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11570 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11572 echo "configure: failed program was:" >&5
11573 cat conftest.
$ac_ext >&5
11575 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11580 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11581 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11582 cat >> confdefs.h
<<\EOF
11583 #define HAVE_STAT_ST_BLOCKS 1
11588 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11589 echo "configure:11590: checking for st_blksize in struct stat" >&5
11590 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11594 cat > conftest.
$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11597 #include <sys/types.h>
11598 #include <sys/stat.h>
11599 #include <unistd.h>
11601 struct stat st; st.st_blksize = 0;
11604 if { (eval echo configure
:11605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11606 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
11608 echo "configure: failed program was:" >&5
11609 cat conftest.
$ac_ext >&5
11611 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
11616 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11617 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
11618 cat >> confdefs.h
<<\EOF
11619 #define HAVE_STAT_ST_BLKSIZE 1
11626 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11627 echo "configure:11628: checking for broken RedHat 7.2 system header files" >&5
11628 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11629 echo $ac_n "(cached) $ac_c" 1>&6
11632 cat > conftest.
$ac_ext <<EOF
11633 #line 11634 "configure"
11634 #include "confdefs.h"
11636 #ifdef HAVE_SYS_VFS_H
11637 #include <sys/vfs.h>
11639 #ifdef HAVE_SYS_CAPABILITY_H
11640 #include <sys/capability.h>
11647 if { (eval echo configure
:11648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11649 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11651 echo "configure: failed program was:" >&5
11652 cat conftest.
$ac_ext >&5
11654 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11659 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11660 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11661 cat >> confdefs.h
<<\EOF
11662 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11669 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11670 echo "configure:11671: checking for broken nisplus include files" >&5
11671 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11672 echo $ac_n "(cached) $ac_c" 1>&6
11675 cat > conftest.
$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11678 #include <sys/acl.h>
11679 #if defined(HAVE_RPCSVC_NIS_H)
11680 #include <rpcsvc/nis.h>
11686 if { (eval echo configure
:11687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11688 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11690 echo "configure: failed program was:" >&5
11691 cat conftest.
$ac_ext >&5
11693 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11698 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11699 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11700 cat >> confdefs.h
<<\EOF
11701 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11707 #################################################
11708 # check for smbwrapper support
11709 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11710 echo "configure:11711: checking whether to use smbwrapper" >&5
11711 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11712 if test "${with_smbwrapper+set}" = set; then
11713 withval
="$with_smbwrapper"
11716 echo "$ac_t""yes" 1>&6
11717 cat >> confdefs.h
<<\EOF
11718 #define WITH_SMBWRAPPER 1
11721 WRAPPROG
="bin/smbsh"
11722 WRAP
="bin/smbwrapper.$SHLIBEXT"
11724 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11727 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11730 # Conditions under which smbwrapper should not be built.
11732 if test x
$PICFLAG = x
; then
11733 echo No support
for PIC code
- disabling smbwrapper and smbsh
11737 elif test x
$ac_cv_func_syscall = xno
; then
11738 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11745 echo "$ac_t""no" 1>&6
11749 echo "$ac_t""no" 1>&6
11754 #################################################
11755 # check for the AFS filesystem
11756 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11757 echo "configure:11758: checking whether to use AFS" >&5
11758 # Check whether --with-afs or --without-afs was given.
11759 if test "${with_afs+set}" = set; then
11760 withval
="$with_afs"
11763 echo "$ac_t""yes" 1>&6
11764 cat >> confdefs.h
<<\EOF
11770 echo "$ac_t""no" 1>&6
11774 echo "$ac_t""no" 1>&6
11780 #################################################
11781 # check for the DFS auth system
11782 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11783 echo "configure:11784: checking whether to use DCE/DFS auth" >&5
11784 # Check whether --with-dfs or --without-dfs was given.
11785 if test "${with_dfs+set}" = set; then
11786 withval
="$with_dfs"
11789 echo "$ac_t""yes" 1>&6
11790 cat >> confdefs.h
<<\EOF
11796 echo "$ac_t""no" 1>&6
11800 echo "$ac_t""no" 1>&6
11805 #################################################
11806 # check for Kerberos IV auth system
11807 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11808 echo "configure:11809: checking whether to use Kerberos IV" >&5
11809 # Check whether --with-krb4 or --without-krb4 was given.
11810 if test "${with_krb4+set}" = set; then
11811 withval
="$with_krb4"
11814 echo "$ac_t""yes" 1>&6
11815 cat >> confdefs.h
<<\EOF
11816 #define KRB4_AUTH 1
11819 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11820 echo "configure:11821: checking for dn_expand in -lresolv" >&5
11821 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11823 echo $ac_n "(cached) $ac_c" 1>&6
11825 ac_save_LIBS
="$LIBS"
11826 LIBS
="-lresolv $LIBS"
11827 cat > conftest.
$ac_ext <<EOF
11828 #line 11829 "configure"
11829 #include "confdefs.h"
11830 /* Override any gcc2 internal prototype to avoid an error. */
11831 /* We use char because int might match the return type of a gcc2
11832 builtin and then its argument prototype would still apply. */
11839 if { (eval echo configure
:11840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11841 eval "ac_cv_lib_$ac_lib_var=yes"
11843 echo "configure: failed program was:" >&5
11844 cat conftest.
$ac_ext >&5
11846 eval "ac_cv_lib_$ac_lib_var=no"
11849 LIBS
="$ac_save_LIBS"
11852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11853 echo "$ac_t""yes" 1>&6
11854 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11855 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11856 cat >> confdefs.h
<<EOF
11857 #define $ac_tr_lib 1
11860 LIBS
="-lresolv $LIBS"
11863 echo "$ac_t""no" 1>&6
11866 LIBS
="$LIBS -lkrb -ldes"
11867 CFLAGS
="$CFLAGS -I$withval/include"
11868 LDFLAGS
="$LDFLAGS -L$withval/lib"
11871 echo "$ac_t""no" 1>&6
11875 echo "$ac_t""no" 1>&6
11880 #################################################
11881 # check for Kerberos 5 auth system
11882 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11883 echo "configure:11884: checking whether to use Kerberos 5" >&5
11884 # Check whether --with-krb5 or --without-krb5 was given.
11885 if test "${with_krb5+set}" = set; then
11886 withval
="$with_krb5"
11889 echo "$ac_t""yes" 1>&6
11890 cat >> confdefs.h
<<\EOF
11891 #define KRB5_AUTH 1
11894 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11895 CFLAGS
="$CFLAGS -I$withval/include"
11896 LDFLAGS
="$LDFLAGS -L$withval/lib"
11899 echo "$ac_t""no" 1>&6
11903 echo "$ac_t""no" 1>&6
11908 #################################################
11909 # check for automount support
11910 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11911 echo "configure:11912: checking whether to use AUTOMOUNT" >&5
11912 # Check whether --with-automount or --without-automount was given.
11913 if test "${with_automount+set}" = set; then
11914 withval
="$with_automount"
11917 echo "$ac_t""yes" 1>&6
11918 cat >> confdefs.h
<<\EOF
11919 #define WITH_AUTOMOUNT 1
11924 echo "$ac_t""no" 1>&6
11928 echo "$ac_t""no" 1>&6
11933 #################################################
11934 # check for smbmount support
11935 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11936 echo "configure:11937: checking whether to use SMBMOUNT" >&5
11937 # Check whether --with-smbmount or --without-smbmount was given.
11938 if test "${with_smbmount+set}" = set; then
11939 withval
="$with_smbmount"
11944 echo "$ac_t""yes" 1>&6
11945 cat >> confdefs.h
<<\EOF
11946 #define WITH_SMBMOUNT 1
11949 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11952 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11957 echo "$ac_t""no" 1>&6
11962 echo "$ac_t""no" 1>&6
11969 #################################################
11970 # check for a PAM password database
11971 with_pam_for_crypt
=no
11972 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11973 echo "configure:11974: checking whether to use PAM password database" >&5
11974 # Check whether --with-pam or --without-pam was given.
11975 if test "${with_pam+set}" = set; then
11976 withval
="$with_pam"
11979 echo "$ac_t""yes" 1>&6
11980 cat >> confdefs.h
<<\EOF
11985 with_pam_for_crypt
=yes
11988 echo "$ac_t""no" 1>&6
11992 echo "$ac_t""no" 1>&6
11997 # we can't build a pam module if we don't have pam.
11998 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11999 echo "configure:12000: checking for pam_get_data in -lpam" >&5
12000 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12002 echo $ac_n "(cached) $ac_c" 1>&6
12004 ac_save_LIBS
="$LIBS"
12006 cat > conftest.
$ac_ext <<EOF
12007 #line 12008 "configure"
12008 #include "confdefs.h"
12009 /* Override any gcc2 internal prototype to avoid an error. */
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char pam_get_data();
12018 if { (eval echo configure
:12019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12020 eval "ac_cv_lib_$ac_lib_var=yes"
12022 echo "configure: failed program was:" >&5
12023 cat conftest.
$ac_ext >&5
12025 eval "ac_cv_lib_$ac_lib_var=no"
12028 LIBS
="$ac_save_LIBS"
12031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12032 echo "$ac_t""yes" 1>&6
12033 cat >> confdefs.h
<<\EOF
12034 #define HAVE_LIBPAM 1
12038 echo "$ac_t""no" 1>&6
12042 #################################################
12043 # check for pam_smbpass support
12044 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12045 echo "configure:12046: checking whether to use pam_smbpass" >&5
12046 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12047 if test "${with_pam_smbpass+set}" = set; then
12048 withval
="$with_pam_smbpass"
12051 echo "$ac_t""yes" 1>&6
12053 # Conditions under which pam_smbpass should not be built.
12055 if test x
$PICFLAG = x
; then
12056 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12058 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
12059 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12062 cat >> confdefs.h
<<\EOF
12063 #define WITH_PAM_SMBPASS 1
12066 PAM_MOD
="bin/pam_smbpass.so"
12070 echo "$ac_t""no" 1>&6
12074 echo "$ac_t""no" 1>&6
12080 ###############################################
12081 # test for where we get crypt() from, but only
12083 if test $with_pam_for_crypt = no
; then
12084 for ac_func
in crypt
12086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12087 echo "configure:12088: checking for $ac_func" >&5
12088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
12091 cat > conftest.
$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12094 /* System header to define __stub macros and hopefully few prototypes,
12095 which can conflict with char $ac_func(); below. */
12096 #include <assert.h>
12097 /* Override any gcc2 internal prototype to avoid an error. */
12098 /* We use char because int might match the return type of a gcc2
12099 builtin and then its argument prototype would still apply. */
12104 /* The GNU C library defines this for functions which it implements
12105 to always fail with ENOSYS. Some functions are actually named
12106 something starting with __ and the normal name is an alias. */
12107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12115 if { (eval echo configure
:12116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12117 eval "ac_cv_func_$ac_func=yes"
12119 echo "configure: failed program was:" >&5
12120 cat conftest.
$ac_ext >&5
12122 eval "ac_cv_func_$ac_func=no"
12127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12128 echo "$ac_t""yes" 1>&6
12129 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12130 cat >> confdefs.h
<<EOF
12131 #define $ac_tr_func 1
12135 echo "$ac_t""no" 1>&6
12139 if test x
"$ac_cv_func_crypt" = x
"no"; then
12140 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12141 echo "configure:12142: checking for crypt in -lcrypt" >&5
12142 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12144 echo $ac_n "(cached) $ac_c" 1>&6
12146 ac_save_LIBS
="$LIBS"
12147 LIBS
="-lcrypt $LIBS"
12148 cat > conftest.
$ac_ext <<EOF
12149 #line 12150 "configure"
12150 #include "confdefs.h"
12151 /* Override any gcc2 internal prototype to avoid an error. */
12152 /* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12160 if { (eval echo configure
:12161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12162 eval "ac_cv_lib_$ac_lib_var=yes"
12164 echo "configure: failed program was:" >&5
12165 cat conftest.
$ac_ext >&5
12167 eval "ac_cv_lib_$ac_lib_var=no"
12170 LIBS
="$ac_save_LIBS"
12173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12174 echo "$ac_t""yes" 1>&6
12175 LIBS
="$LIBS -lcrypt";
12176 cat >> confdefs.h
<<\EOF
12177 #define HAVE_CRYPT 1
12181 echo "$ac_t""no" 1>&6
12188 ## moved after the check for -lcrypt in order to
12189 ## ensure that the necessary libraries are included
12190 ## check checking for truncated salt. Wrapped by the
12191 ## $with_pam_for_crypt variable as above --jerry
12193 if test $with_pam_for_crypt = no
; then
12194 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12195 echo "configure:12196: checking for a crypt that needs truncated salt" >&5
12196 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12200 if test "$cross_compiling" = yes; then
12201 samba_cv_HAVE_TRUNCATED_SALT
=cross
12203 cat > conftest.
$ac_ext <<EOF
12204 #line 12205 "configure"
12205 #include "confdefs.h"
12206 #include "${srcdir-.}/tests/crypttest.c"
12208 if { (eval echo configure
:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12210 samba_cv_HAVE_TRUNCATED_SALT
=no
12212 echo "configure: failed program was:" >&5
12213 cat conftest.
$ac_ext >&5
12215 samba_cv_HAVE_TRUNCATED_SALT
=yes
12222 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12223 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12224 cat >> confdefs.h
<<\EOF
12225 #define HAVE_TRUNCATED_SALT 1
12232 ########################################################################################
12234 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12236 ########################################################################################
12238 ## set the with_smbpasswd_sam as the default
12239 with_smbpasswd_sam
=yes
12243 #################################################
12244 # check for a TDB password database
12245 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12246 echo "configure:12247: checking whether to use TDB SAM database" >&5
12247 # Check whether --with-tdbsam or --without-tdbsam was given.
12248 if test "${with_tdbsam+set}" = set; then
12249 withval
="$with_tdbsam"
12252 echo "$ac_t""yes" 1>&6
12253 cat >> confdefs.h
<<\EOF
12254 #define WITH_TDB_SAM 1
12257 with_smbpasswd_sam
=no
12260 echo "$ac_t""no" 1>&6
12264 echo "$ac_t""no" 1>&6
12269 #################################################
12270 # check for a LDAP password database
12271 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12272 echo "configure:12273: checking whether to use LDAP SAM database" >&5
12273 # Check whether --with-ldapsam or --without-ldapsam was given.
12274 if test "${with_ldapsam+set}" = set; then
12275 withval
="$with_ldapsam"
12278 echo "$ac_t""yes" 1>&6
12279 cat >> confdefs.h
<<\EOF
12280 #define WITH_LDAP_SAM 1
12284 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12285 echo "configure:12286: checking for ber_bvfree in -llber" >&5
12286 ac_lib_var
=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12290 ac_save_LIBS
="$LIBS"
12291 LIBS
="-llber $LIBS"
12292 cat > conftest.
$ac_ext <<EOF
12293 #line 12294 "configure"
12294 #include "confdefs.h"
12295 /* Override any gcc2 internal prototype to avoid an error. */
12296 /* We use char because int might match the return type of a gcc2
12297 builtin and then its argument prototype would still apply. */
12304 if { (eval echo configure
:12305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12306 eval "ac_cv_lib_$ac_lib_var=yes"
12308 echo "configure: failed program was:" >&5
12309 cat conftest.
$ac_ext >&5
12311 eval "ac_cv_lib_$ac_lib_var=no"
12314 LIBS
="$ac_save_LIBS"
12317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12318 echo "$ac_t""yes" 1>&6
12319 LDAPLIBS
="$LDAPLIBS -llber"
12321 echo "$ac_t""no" 1>&6
12324 ## remove -lresolv as this should be included by the -lsasl dependency
12325 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12326 ## issues on platforms that don't have it
12327 LDAPLIBS
="$LDAPLIBS"
12328 old_LDFLAGS
="$LDFLAGS"
12329 LDFLAGS
="$LDFLAGS $LDAPLIBS"
12330 for ac_func
in ldap_start_tls_s
12332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12333 echo "configure:12334: checking for $ac_func" >&5
12334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12335 echo $ac_n "(cached) $ac_c" 1>&6
12337 cat > conftest.
$ac_ext <<EOF
12338 #line 12339 "configure"
12339 #include "confdefs.h"
12340 /* System header to define __stub macros and hopefully few prototypes,
12341 which can conflict with char $ac_func(); below. */
12342 #include <assert.h>
12343 /* Override any gcc2 internal prototype to avoid an error. */
12344 /* We use char because int might match the return type of a gcc2
12345 builtin and then its argument prototype would still apply. */
12350 /* The GNU C library defines this for functions which it implements
12351 to always fail with ENOSYS. Some functions are actually named
12352 something starting with __ and the normal name is an alias. */
12353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12361 if { (eval echo configure
:12362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12363 eval "ac_cv_func_$ac_func=yes"
12365 echo "configure: failed program was:" >&5
12366 cat conftest.
$ac_ext >&5
12368 eval "ac_cv_func_$ac_func=no"
12373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12374 echo "$ac_t""yes" 1>&6
12375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12376 cat >> confdefs.h
<<EOF
12377 #define $ac_tr_func 1
12381 echo "$ac_t""no" 1>&6
12385 LDFLAGS
="$old_LDFLAGS"
12386 with_smbpasswd_sam
=no
12390 echo "$ac_t""no" 1>&6
12394 echo "$ac_t""no" 1>&6
12399 #################################################
12400 # check for a NISPLUS password database
12401 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12402 echo "configure:12403: checking whether to use NISPLUS SAM database" >&5
12403 # Check whether --with-nisplussam or --without-nisplussam was given.
12404 if test "${with_nisplussam+set}" = set; then
12405 withval
="$with_nisplussam"
12408 echo "$ac_t""yes" 1>&6
12409 cat >> confdefs.h
<<\EOF
12410 #define WITH_NISPLUS_SAM 1
12413 with_smbpasswd_sam
=no
12416 echo "$ac_t""no" 1>&6
12420 echo "$ac_t""no" 1>&6
12425 ################################################
12426 # This test should come last because the
12427 # smbpasswd SAM is only used if another format
12428 # has not been defined
12429 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12430 echo "configure:12431: checking whether to use traditional smbpasswd file" >&5
12431 if test $with_smbpasswd_sam = yes; then
12432 echo "$ac_t""yes" 1>&6
12433 cat >> confdefs.h
<<\EOF
12434 #define WITH_SMBPASSWD_SAM 1
12439 echo "$ac_t""no" 1>&6
12440 PDBEDIT
=bin
/pdbedit
12443 ########################################################################################
12445 ## END OF TESTS FOR SAM BACKENDS.
12447 ########################################################################################
12449 #################################################
12450 # check for a NISPLUS_HOME support
12451 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12452 echo "configure:12453: checking whether to use NISPLUS_HOME" >&5
12453 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12454 if test "${with_nisplus_home+set}" = set; then
12455 withval
="$with_nisplus_home"
12458 echo "$ac_t""yes" 1>&6
12459 cat >> confdefs.h
<<\EOF
12460 #define WITH_NISPLUS_HOME 1
12465 echo "$ac_t""no" 1>&6
12469 echo "$ac_t""no" 1>&6
12474 #################################################
12475 # check for the secure socket layer
12476 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12477 echo "configure:12478: checking whether to use SSL" >&5
12478 # Check whether --with-ssl or --without-ssl was given.
12479 if test "${with_ssl+set}" = set; then
12480 withval
="$with_ssl"
12483 echo "$ac_t""yes" 1>&6
12484 cat >> confdefs.h
<<\EOF
12488 withval
="/usr/local/ssl" # default
12490 if test "${with_sslinc+set}" = set; then
12492 withval
="$with_sslinc"
12495 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12496 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12499 CFLAGS
="-I${withval} $CFLAGS"
12505 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12509 if test "${with_ssllib+set}" = set; then
12511 withval
="$with_ssllib"
12514 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12515 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12518 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12524 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12528 LIBS
="-lssl -lcrypto $LIBS"
12530 # if test ! -d ${withval}; then
12531 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12535 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12539 echo "$ac_t""no" 1>&6
12543 echo "$ac_t""no" 1>&6
12548 #################################################
12549 # check for syslog logging
12550 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12551 echo "configure:12552: checking whether to use syslog logging" >&5
12552 # Check whether --with-syslog or --without-syslog was given.
12553 if test "${with_syslog+set}" = set; then
12554 withval
="$with_syslog"
12557 echo "$ac_t""yes" 1>&6
12558 cat >> confdefs.h
<<\EOF
12559 #define WITH_SYSLOG 1
12564 echo "$ac_t""no" 1>&6
12568 echo "$ac_t""no" 1>&6
12573 #################################################
12574 # check for a shared memory profiling support
12575 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12576 echo "configure:12577: checking whether to use profiling" >&5
12577 # Check whether --with-profiling-data or --without-profiling-data was given.
12578 if test "${with_profiling_data+set}" = set; then
12579 withval
="$with_profiling_data"
12582 echo "$ac_t""yes" 1>&6
12583 cat >> confdefs.h
<<\EOF
12584 #define WITH_PROFILE 1
12589 echo "$ac_t""no" 1>&6
12593 echo "$ac_t""no" 1>&6
12599 #################################################
12600 # check for experimental disk-quotas support
12601 QUOTAOBJS
=smbd
/noquotas.o
12603 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12604 echo "configure:12605: checking whether to support disk-quotas" >&5
12605 # Check whether --with-quotas or --without-quotas was given.
12606 if test "${with_quotas+set}" = set; then
12607 withval
="$with_quotas"
12610 echo "$ac_t""yes" 1>&6
12611 QUOTAOBJS
=smbd
/quotas.o
12614 echo "$ac_t""no" 1>&6
12618 echo "$ac_t""no" 1>&6
12624 #################################################
12625 # check for experimental utmp accounting
12627 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12628 echo "configure:12629: checking whether to support utmp accounting" >&5
12629 # Check whether --with-utmp or --without-utmp was given.
12630 if test "${with_utmp+set}" = set; then
12631 withval
="$with_utmp"
12634 echo "$ac_t""yes" 1>&6
12635 cat >> confdefs.h
<<\EOF
12636 #define WITH_UTMP 1
12641 echo "$ac_t""no" 1>&6
12645 echo "$ac_t""no" 1>&6
12650 #################################################
12651 # check for MS Dfs support
12653 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12654 echo "configure:12655: checking whether to support Microsoft Dfs" >&5
12655 # Check whether --with-msdfs or --without-msdfs was given.
12656 if test "${with_msdfs+set}" = set; then
12657 withval
="$with_msdfs"
12660 echo "$ac_t""yes" 1>&6
12661 cat >> confdefs.h
<<\EOF
12662 #define WITH_MSDFS 1
12667 echo "$ac_t""no" 1>&6
12671 echo "$ac_t""no" 1>&6
12676 #################################################
12677 # should we build libsmbclient?
12679 LIBSMBCLIENT_SHARED
=
12681 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12682 echo "configure:12683: checking whether to build the libsmbclient shared library" >&5
12683 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12684 if test "${with_libsmbclient+set}" = set; then
12685 withval
="$with_libsmbclient"
12688 if test $BLDSHARED = true
; then
12689 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12690 LIBSMBCLIENT
=libsmbclient
12691 echo "$ac_t""yes" 1>&6
12693 echo "$ac_t""no shared library support" 1>&6
12697 echo "$ac_t""no" 1>&6
12701 echo "$ac_t""no" 1>&6
12706 #################################################
12707 # these tests are taken from the GNU fileutils package
12708 echo "checking how to get filesystem space usage" 1>&6
12709 echo "configure:12710: checking how to get filesystem space usage" >&5
12712 # Test for statvfs64.
12713 if test $space = no
; then
12715 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12716 echo "configure:12717: checking statvfs64 function (SVR4)" >&5
12717 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12718 echo $ac_n "(cached) $ac_c" 1>&6
12720 if test "$cross_compiling" = yes; then
12721 fu_cv_sys_stat_statvfs64
=cross
12723 cat > conftest.
$ac_ext <<EOF
12724 #line 12725 "configure"
12725 #include "confdefs.h"
12727 #if defined(HAVE_UNISTD_H)
12728 #include <unistd.h>
12730 #include <sys/types.h>
12731 #include <sys/statvfs.h>
12734 struct statvfs64 fsd;
12735 exit (statvfs64 (".", &fsd));
12738 if { (eval echo configure
:12739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12740 fu_cv_sys_stat_statvfs64
=yes
12742 echo "configure: failed program was:" >&5
12743 cat conftest.
$ac_ext >&5
12745 fu_cv_sys_stat_statvfs64
=no
12752 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12753 if test $fu_cv_sys_stat_statvfs64 = yes; then
12755 cat >> confdefs.h
<<\EOF
12756 #define STAT_STATVFS64 1
12762 # Perform only the link test since it seems there are no variants of the
12763 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12764 # because that got a false positive on SCO OSR5. Adding the declaration
12765 # of a `struct statvfs' causes this test to fail (as it should) on such
12766 # systems. That system is reported to work fine with STAT_STATFS4 which
12767 # is what it gets when this test fails.
12768 if test $space = no
; then
12770 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12771 echo "configure:12772: checking statvfs function (SVR4)" >&5
12772 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12773 echo $ac_n "(cached) $ac_c" 1>&6
12775 cat > conftest.
$ac_ext <<EOF
12776 #line 12777 "configure"
12777 #include "confdefs.h"
12778 #include <sys/types.h>
12779 #include <sys/statvfs.h>
12781 struct statvfs fsd; statvfs (0, &fsd);
12784 if { (eval echo configure
:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12786 fu_cv_sys_stat_statvfs
=yes
12788 echo "configure: failed program was:" >&5
12789 cat conftest.
$ac_ext >&5
12791 fu_cv_sys_stat_statvfs
=no
12796 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12797 if test $fu_cv_sys_stat_statvfs = yes; then
12799 cat >> confdefs.h
<<\EOF
12800 #define STAT_STATVFS 1
12806 if test $space = no
; then
12807 # DEC Alpha running OSF/1
12808 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12809 echo "configure:12810: checking for 3-argument statfs function (DEC OSF/1)" >&5
12810 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12813 if test "$cross_compiling" = yes; then
12814 fu_cv_sys_stat_statfs3_osf1
=no
12816 cat > conftest.
$ac_ext <<EOF
12817 #line 12818 "configure"
12818 #include "confdefs.h"
12820 #include <sys/param.h>
12821 #include <sys/types.h>
12822 #include <sys/mount.h>
12827 exit (statfs (".", &fsd, sizeof (struct statfs)));
12830 if { (eval echo configure
:12831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12832 fu_cv_sys_stat_statfs3_osf1
=yes
12834 echo "configure: failed program was:" >&5
12835 cat conftest.
$ac_ext >&5
12837 fu_cv_sys_stat_statfs3_osf1
=no
12844 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12845 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12847 cat >> confdefs.h
<<\EOF
12848 #define STAT_STATFS3_OSF1 1
12854 if test $space = no
; then
12856 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12857 echo "configure:12858: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12858 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12859 echo $ac_n "(cached) $ac_c" 1>&6
12861 if test "$cross_compiling" = yes; then
12862 fu_cv_sys_stat_statfs2_bsize
=no
12864 cat > conftest.
$ac_ext <<EOF
12865 #line 12866 "configure"
12866 #include "confdefs.h"
12868 #ifdef HAVE_SYS_PARAM_H
12869 #include <sys/param.h>
12871 #ifdef HAVE_SYS_MOUNT_H
12872 #include <sys/mount.h>
12874 #ifdef HAVE_SYS_VFS_H
12875 #include <sys/vfs.h>
12881 exit (statfs (".", &fsd));
12884 if { (eval echo configure
:12885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12886 fu_cv_sys_stat_statfs2_bsize
=yes
12888 echo "configure: failed program was:" >&5
12889 cat conftest.
$ac_ext >&5
12891 fu_cv_sys_stat_statfs2_bsize
=no
12898 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12899 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12901 cat >> confdefs.h
<<\EOF
12902 #define STAT_STATFS2_BSIZE 1
12908 if test $space = no
; then
12910 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12911 echo "configure:12912: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12912 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12913 echo $ac_n "(cached) $ac_c" 1>&6
12915 if test "$cross_compiling" = yes; then
12916 fu_cv_sys_stat_statfs4
=no
12918 cat > conftest.
$ac_ext <<EOF
12919 #line 12920 "configure"
12920 #include "confdefs.h"
12921 #include <sys/types.h>
12922 #include <sys/statfs.h>
12926 exit (statfs (".", &fsd, sizeof fsd, 0));
12929 if { (eval echo configure
:12930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12931 fu_cv_sys_stat_statfs4
=yes
12933 echo "configure: failed program was:" >&5
12934 cat conftest.
$ac_ext >&5
12936 fu_cv_sys_stat_statfs4
=no
12943 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12944 if test $fu_cv_sys_stat_statfs4 = yes; then
12946 cat >> confdefs.h
<<\EOF
12947 #define STAT_STATFS4 1
12953 if test $space = no
; then
12954 # 4.4BSD and NetBSD
12955 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12956 echo "configure:12957: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12957 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12958 echo $ac_n "(cached) $ac_c" 1>&6
12960 if test "$cross_compiling" = yes; then
12961 fu_cv_sys_stat_statfs2_fsize
=no
12963 cat > conftest.
$ac_ext <<EOF
12964 #line 12965 "configure"
12965 #include "confdefs.h"
12966 #include <sys/types.h>
12967 #ifdef HAVE_SYS_PARAM_H
12968 #include <sys/param.h>
12970 #ifdef HAVE_SYS_MOUNT_H
12971 #include <sys/mount.h>
12977 exit (statfs (".", &fsd));
12980 if { (eval echo configure
:12981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12982 fu_cv_sys_stat_statfs2_fsize
=yes
12984 echo "configure: failed program was:" >&5
12985 cat conftest.
$ac_ext >&5
12987 fu_cv_sys_stat_statfs2_fsize
=no
12994 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12995 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12997 cat >> confdefs.h
<<\EOF
12998 #define STAT_STATFS2_FSIZE 1
13004 if test $space = no
; then
13006 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13007 echo "configure:13008: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13008 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13009 echo $ac_n "(cached) $ac_c" 1>&6
13011 if test "$cross_compiling" = yes; then
13012 fu_cv_sys_stat_fs_data
=no
13014 cat > conftest.
$ac_ext <<EOF
13015 #line 13016 "configure"
13016 #include "confdefs.h"
13017 #include <sys/types.h>
13018 #ifdef HAVE_SYS_PARAM_H
13019 #include <sys/param.h>
13021 #ifdef HAVE_SYS_MOUNT_H
13022 #include <sys/mount.h>
13024 #ifdef HAVE_SYS_FS_TYPES_H
13025 #include <sys/fs_types.h>
13029 struct fs_data fsd;
13030 /* Ultrix's statfs returns 1 for success,
13031 0 for not mounted, -1 for failure. */
13032 exit (statfs (".", &fsd) != 1);
13035 if { (eval echo configure
:13036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13037 fu_cv_sys_stat_fs_data
=yes
13039 echo "configure: failed program was:" >&5
13040 cat conftest.
$ac_ext >&5
13042 fu_cv_sys_stat_fs_data
=no
13049 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13050 if test $fu_cv_sys_stat_fs_data = yes; then
13052 cat >> confdefs.h
<<\EOF
13053 #define STAT_STATFS2_FS_DATA 1
13060 # As a gating factor for large file support, in order to
13061 # use <4GB files we must have the following minimal support
13063 # long long, and a 64 bit off_t or off64_t.
13064 # If we don't have all of these then disable large
13067 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13068 echo "configure:13069: checking if large file support can be enabled" >&5
13069 cat > conftest.
$ac_ext <<EOF
13070 #line 13071 "configure"
13071 #include "confdefs.h"
13073 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13074 #include <sys/types.h>
13083 if { (eval echo configure
:13084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13085 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13087 echo "configure: failed program was:" >&5
13088 cat conftest.
$ac_ext >&5
13090 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13093 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13094 echo "$ac_t""yes" 1>&6
13095 cat >> confdefs.h
<<\EOF
13096 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13100 echo "$ac_t""no" 1>&6
13103 # Check whether --with-spinlocks or --without-spinlocks was given.
13104 if test "${with_spinlocks+set}" = set; then
13105 withval
="$with_spinlocks"
13109 if test "x$with_spinlocks" = "xyes"; then
13110 cat >> confdefs.h
<<\EOF
13111 #define USE_SPINLOCKS 1
13115 case "$host_cpu" in
13117 cat >> confdefs.h
<<\EOF
13118 #define SPARC_SPINLOCKS 1
13123 i386|i486|i586|i686
)
13124 cat >> confdefs.h
<<\EOF
13125 #define INTEL_SPINLOCKS 1
13131 cat >> confdefs.h
<<\EOF
13132 #define MIPS_SPINLOCKS 1
13138 cat >> confdefs.h
<<\EOF
13139 #define POWERPC_SPINLOCKS 1
13146 #################################################
13147 # check for ACL support
13149 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13150 echo "configure:13151: checking whether to support ACLs" >&5
13151 # Check whether --with-acl-support or --without-acl-support was given.
13152 if test "${with_acl_support+set}" = set; then
13153 withval
="$with_acl_support"
13159 echo "$ac_t""Using UnixWare ACLs" 1>&6
13160 cat >> confdefs.h
<<\EOF
13161 #define HAVE_UNIXWARE_ACLS 1
13166 echo "$ac_t""Using solaris ACLs" 1>&6
13167 cat >> confdefs.h
<<\EOF
13168 #define HAVE_SOLARIS_ACLS 1
13173 echo "$ac_t""Using HPUX ACLs" 1>&6
13174 cat >> confdefs.h
<<\EOF
13175 #define HAVE_HPUX_ACLS 1
13180 echo "$ac_t""Using IRIX ACLs" 1>&6
13181 cat >> confdefs.h
<<\EOF
13182 #define HAVE_IRIX_ACLS 1
13187 echo "$ac_t""Using AIX ACLs" 1>&6
13188 cat >> confdefs.h
<<\EOF
13189 #define HAVE_AIX_ACLS 1
13194 echo "$ac_t""Using Tru64 ACLs" 1>&6
13195 cat >> confdefs.h
<<\EOF
13196 #define HAVE_TRU64_ACLS 1
13199 LIBS
="$LIBS -lpacl"
13202 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13203 echo "configure:13204: checking for acl_get_file in -lacl" >&5
13204 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13206 echo $ac_n "(cached) $ac_c" 1>&6
13208 ac_save_LIBS
="$LIBS"
13210 cat > conftest.
$ac_ext <<EOF
13211 #line 13212 "configure"
13212 #include "confdefs.h"
13213 /* Override any gcc2 internal prototype to avoid an error. */
13214 /* We use char because int might match the return type of a gcc2
13215 builtin and then its argument prototype would still apply. */
13216 char acl_get_file();
13222 if { (eval echo configure
:13223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13224 eval "ac_cv_lib_$ac_lib_var=yes"
13226 echo "configure: failed program was:" >&5
13227 cat conftest.
$ac_ext >&5
13229 eval "ac_cv_lib_$ac_lib_var=no"
13232 LIBS
="$ac_save_LIBS"
13235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13236 echo "$ac_t""yes" 1>&6
13237 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13238 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13239 cat >> confdefs.h
<<EOF
13240 #define $ac_tr_lib 1
13246 echo "$ac_t""no" 1>&6
13249 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13250 echo "configure:13251: checking for ACL support" >&5
13251 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13252 echo $ac_n "(cached) $ac_c" 1>&6
13255 cat > conftest.
$ac_ext <<EOF
13256 #line 13257 "configure"
13257 #include "confdefs.h"
13258 #include <sys/types.h>
13259 #include <sys/acl.h>
13261 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13264 if { (eval echo configure
:13265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13266 samba_cv_HAVE_POSIX_ACLS
=yes
13268 echo "configure: failed program was:" >&5
13269 cat conftest.
$ac_ext >&5
13271 samba_cv_HAVE_POSIX_ACLS
=no
13276 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13277 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13278 echo "$ac_t""Using posix ACLs" 1>&6
13279 cat >> confdefs.h
<<\EOF
13280 #define HAVE_POSIX_ACLS 1
13283 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13284 echo "configure:13285: checking for acl_get_perm_np" >&5
13285 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13286 echo $ac_n "(cached) $ac_c" 1>&6
13289 cat > conftest.
$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13292 #include <sys/types.h>
13293 #include <sys/acl.h>
13295 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13298 if { (eval echo configure
:13299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13300 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13302 echo "configure: failed program was:" >&5
13303 cat conftest.
$ac_ext >&5
13305 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13310 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13311 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13312 cat >> confdefs.h
<<\EOF
13313 #define HAVE_ACL_GET_PERM_NP 1
13322 echo "$ac_t""no" 1>&6
13323 cat >> confdefs.h
<<\EOF
13324 #define HAVE_NO_ACLS 1
13330 cat >> confdefs.h
<<\EOF
13331 #define HAVE_NO_ACLS 1
13334 echo "$ac_t""no" 1>&6
13339 #################################################
13340 # check for the historical SAMBA installation
13342 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13343 # Put all binaries under the /usr/local/samba/bin directory.
13347 #################################################
13348 # check for sendfile support
13350 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13351 echo "configure:13352: checking whether to check for support sendfile" >&5
13352 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13353 if test "${with_sendfile_support+set}" = set; then
13354 withval
="$with_sendfile_support"
13358 echo "$ac_t""yes" 1>&6;
13362 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13363 echo "configure:13364: checking for linux sendfile64 support" >&5
13364 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13365 echo $ac_n "(cached) $ac_c" 1>&6
13368 cat > conftest.
$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13371 #include <sys/sendfile.h>
13377 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13381 if { (eval echo configure
:13382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13383 samba_cv_HAVE_SENDFILE64
=yes
13385 echo "configure: failed program was:" >&5
13386 cat conftest.
$ac_ext >&5
13388 samba_cv_HAVE_SENDFILE64
=no
13393 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13395 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13396 echo "configure:13397: checking for linux sendfile support" >&5
13397 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
13401 cat > conftest.
$ac_ext <<EOF
13402 #line 13403 "configure"
13403 #include "confdefs.h"
13404 #include <sys/sendfile.h>
13410 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13414 if { (eval echo configure
:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13416 samba_cv_HAVE_SENDFILE
=yes
13418 echo "configure: failed program was:" >&5
13419 cat conftest.
$ac_ext >&5
13421 samba_cv_HAVE_SENDFILE
=no
13426 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13428 # Try and cope with broken Linux sendfile....
13429 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13430 echo "configure:13431: checking for broken linux sendfile support" >&5
13431 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13432 echo $ac_n "(cached) $ac_c" 1>&6
13435 cat > conftest.
$ac_ext <<EOF
13436 #line 13437 "configure"
13437 #include "confdefs.h"
13439 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13440 #undef _FILE_OFFSET_BITS
13442 #include <sys/sendfile.h>
13448 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13452 if { (eval echo configure
:13453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13454 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
13456 echo "configure: failed program was:" >&5
13457 cat conftest.
$ac_ext >&5
13459 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
13464 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13466 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
13467 cat >> confdefs.h
<<\EOF
13468 #define HAVE_SENDFILE64 1
13471 cat >> confdefs.h
<<\EOF
13472 #define LINUX_SENDFILE_API 1
13475 cat >> confdefs.h
<<\EOF
13476 #define WITH_SENDFILE 1
13479 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13480 cat >> confdefs.h
<<\EOF
13481 #define HAVE_SENDFILE 1
13484 cat >> confdefs.h
<<\EOF
13485 #define LINUX_SENDFILE_API 1
13488 cat >> confdefs.h
<<\EOF
13489 #define WITH_SENDFILE 1
13492 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
13493 cat >> confdefs.h
<<\EOF
13494 #define LINUX_BROKEN_SENDFILE_API 1
13497 cat >> confdefs.h
<<\EOF
13498 #define WITH_SENDFILE 1
13502 echo "$ac_t""no" 1>&6;
13507 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13508 echo "configure:13509: checking for freebsd sendfile support" >&5
13509 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13513 cat > conftest.
$ac_ext <<EOF
13514 #line 13515 "configure"
13515 #include "confdefs.h"
13517 #include <sys/types.h>
13518 #include <sys/socket.h>
13519 #include <sys/uio.h>
13522 #define NULL (void *)0
13523 int fromfd, tofd, ret, total;
13524 off_t offset, nwritten;
13526 struct iovec *headers;
13528 struct iovec *trailers;
13531 struct iovec hdtrl;
13532 hdr.headers = &hdtrl;
13534 hdr.trailers = NULL;
13536 hdtrl.iov_base = NULL;
13538 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13542 if { (eval echo configure
:13543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13544 samba_cv_HAVE_SENDFILE
=yes
13546 echo "configure: failed program was:" >&5
13547 cat conftest.
$ac_ext >&5
13549 samba_cv_HAVE_SENDFILE
=no
13554 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13556 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13557 cat >> confdefs.h
<<\EOF
13558 #define HAVE_SENDFILE 1
13561 cat >> confdefs.h
<<\EOF
13562 #define FREEBSD_SENDFILE_API 1
13565 cat >> confdefs.h
<<\EOF
13566 #define WITH_SENDFILE 1
13570 echo "$ac_t""no" 1>&6;
13575 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
13576 echo "configure:13577: checking for hpux sendfile64 support" >&5
13577 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13578 echo $ac_n "(cached) $ac_c" 1>&6
13581 cat > conftest.
$ac_ext <<EOF
13582 #line 13583 "configure"
13583 #include "confdefs.h"
13585 #include <sys/socket.h>
13586 #include <sys/uio.h>
13591 struct iovec hdtrl[2];
13595 hdtrl[0].iov_base = 0;
13596 hdtrl[0].iov_len = 0;
13598 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
13602 if { (eval echo configure
:13603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13604 samba_cv_HAVE_SENDFILE64
=yes
13606 echo "configure: failed program was:" >&5
13607 cat conftest.
$ac_ext >&5
13609 samba_cv_HAVE_SENDFILE64
=no
13614 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13615 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
13616 cat >> confdefs.h
<<\EOF
13617 #define HAVE_SENDFILE64 1
13620 cat >> confdefs.h
<<\EOF
13621 #define HPUX_SENDFILE_API 1
13624 cat >> confdefs.h
<<\EOF
13625 #define WITH_SENDFILE 1
13629 echo "$ac_t""no" 1>&6;
13632 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
13633 echo "configure:13634: checking for hpux sendfile support" >&5
13634 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13635 echo $ac_n "(cached) $ac_c" 1>&6
13638 cat > conftest.
$ac_ext <<EOF
13639 #line 13640 "configure"
13640 #include "confdefs.h"
13642 #include <sys/socket.h>
13643 #include <sys/uio.h>
13648 struct iovec hdtrl[2];
13652 hdtrl[0].iov_base = 0;
13653 hdtrl[0].iov_len = 0;
13655 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
13659 if { (eval echo configure
:13660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13661 samba_cv_HAVE_SENDFILE
=yes
13663 echo "configure: failed program was:" >&5
13664 cat conftest.
$ac_ext >&5
13666 samba_cv_HAVE_SENDFILE
=no
13671 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13672 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13673 cat >> confdefs.h
<<\EOF
13674 #define HAVE_SENDFILE 1
13677 cat >> confdefs.h
<<\EOF
13678 #define HPUX_SENDFILE_API 1
13681 cat >> confdefs.h
<<\EOF
13682 #define WITH_SENDFILE 1
13686 echo "$ac_t""no" 1>&6;
13691 LIBS
="$LIBS -lsendfile"
13692 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
13693 echo "configure:13694: checking for solaris sendfilev64 support" >&5
13694 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
13695 echo $ac_n "(cached) $ac_c" 1>&6
13698 cat > conftest.
$ac_ext <<EOF
13699 #line 13700 "configure"
13700 #include "confdefs.h"
13702 #include <sys/sendfile.h>
13707 struct sendfilevec vec[2];
13713 vec[0].sfv_fd = SFV_FD_SELF;
13714 vec[0].sfv_flag = 0;
13715 vec[0].sfv_off = 0;
13716 vec[0].sfv_len = 0;
13719 vec[1].sfv_flag = 0;
13720 vec[1].sfv_off = 0;
13721 vec[1].sfv_len = 0;
13722 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
13726 if { (eval echo configure
:13727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13728 samba_cv_HAVE_SENDFILEV64
=yes
13730 echo "configure: failed program was:" >&5
13731 cat conftest.
$ac_ext >&5
13733 samba_cv_HAVE_SENDFILEV64
=no
13738 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
13740 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
13741 cat >> confdefs.h
<<\EOF
13742 #define HAVE_SENDFILEV64 1
13745 cat >> confdefs.h
<<\EOF
13746 #define SOLARIS_SENDFILE_API 1
13749 cat >> confdefs.h
<<\EOF
13750 #define WITH_SENDFILE 1
13754 echo "$ac_t""no" 1>&6;
13757 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
13758 echo "configure:13759: checking for solaris sendfilev support" >&5
13759 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
13760 echo $ac_n "(cached) $ac_c" 1>&6
13763 cat > conftest.
$ac_ext <<EOF
13764 #line 13765 "configure"
13765 #include "confdefs.h"
13767 #include <sys/sendfile.h>
13772 struct sendfilevec vec[2];
13778 vec[0].sfv_fd = SFV_FD_SELF;
13779 vec[0].sfv_flag = 0;
13780 vec[0].sfv_off = 0;
13781 vec[0].sfv_len = 0;
13784 vec[1].sfv_flag = 0;
13785 vec[1].sfv_off = 0;
13786 vec[1].sfv_len = 0;
13787 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
13791 if { (eval echo configure
:13792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13793 samba_cv_HAVE_SENDFILEV
=yes
13795 echo "configure: failed program was:" >&5
13796 cat conftest.
$ac_ext >&5
13798 samba_cv_HAVE_SENDFILEV
=no
13803 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
13805 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
13806 cat >> confdefs.h
<<\EOF
13807 #define HAVE_SENDFILEV 1
13810 cat >> confdefs.h
<<\EOF
13811 #define SOLARIS_SENDFILE_API 1
13814 cat >> confdefs.h
<<\EOF
13815 #define WITH_SENDFILE 1
13819 echo "$ac_t""no" 1>&6;
13828 echo "$ac_t""no" 1>&6
13832 echo "$ac_t""no" 1>&6
13837 #################################################
13838 # Check whether winbind is supported on this platform. If so we need to
13839 # build and install client programs (WINBIND_TARGETS), sbin programs
13840 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13842 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13843 echo "configure:13844: checking whether to build winbind" >&5
13845 # Initially, the value of $host_os decides whether winbind is supported
13853 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13854 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13858 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13865 winbind_no_reason
=", unsupported on $host_os"
13869 # Check the setting of --with-winbindd
13871 # Check whether --with-winbind or --without-winbind was given.
13872 if test "${with_winbind+set}" = set; then
13873 withval
="$with_winbind"
13887 # We need unix domain sockets for winbind
13889 if test x
"$HAVE_WINBIND" = x
"yes"; then
13890 if test x
"$samba_cv_unixsocket" = x
"no"; then
13891 winbind_no_reason
=", no unix domain socket support on $host_os"
13896 # Display test results
13898 if test x
"$HAVE_WINBIND" = x
"yes"; then
13900 echo "$ac_t""yes" 1>&6
13902 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13903 echo "configure:13904: checking whether to enable winbind auth challenge/response code" >&5
13904 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13905 if test "${with_winbind_auth_challenge+set}" = set; then
13906 withval
="$with_winbind_auth_challenge"
13910 cat >> confdefs.h
<<\EOF
13911 #define WITH_WINBIND_AUTH_CRAP 1
13914 echo "$ac_t""yes" 1>&6
13917 echo "$ac_t""no" 1>&6
13921 echo "$ac_t""no" 1>&6
13926 # Check for FreeBSD problem with getgroups
13928 WINBIND_TARGETS
="bin/wbinfo"
13929 WINBIND_STARGETS
="bin/winbindd"
13932 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
13935 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13940 case "$with_pam" in
13942 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13946 # Check for Horrible winbindd ldap hack.
13948 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
13949 echo "configure:13950: checking whether to enable winbind ldap hack" >&5
13950 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
13951 if test "${with_winbind_ldap_hack+set}" = set; then
13952 withval
="$with_winbind_ldap_hack"
13956 cat >> confdefs.h
<<\EOF
13957 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
13960 LIBS
="$LIBS -lldap";
13961 echo "$ac_t""yes" 1>&6
13964 echo "$ac_t""no" 1>&6
13968 echo "$ac_t""no" 1>&6
13974 echo "$ac_t""no$winbind_no_reason" 1>&6
13977 WINBIND_STARGETS
=""
13978 WINBIND_LTARGETS
=""
13979 WINBIND_PAM_TARGETS
=""
13983 # Check for FreeBSD problem with getgroups
13984 # It returns EGID too many times in the list of groups
13985 # and causes a security problem
13986 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13987 echo "configure:13988: checking whether or not getgroups returns EGID too many times" >&5
13988 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13989 echo $ac_n "(cached) $ac_c" 1>&6
13991 if test "$cross_compiling" = yes; then
13992 samba_cv_have_getgroups_too_many_egids
=cross
13994 cat > conftest.
$ac_ext <<EOF
13995 #line 13996 "configure"
13996 #include "confdefs.h"
13998 #include <sys/types.h>
14001 int main(int argc, char *argv[])
14006 n = getgroups(n, &groups);
14007 /* Could actually pass back the number of EGIDs there ... */
14008 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
14011 if { (eval echo configure
:14012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14013 samba_cv_have_getgroups_too_many_egids
=no
14015 echo "configure: failed program was:" >&5
14016 cat conftest.
$ac_ext >&5
14018 samba_cv_have_getgroups_too_many_egids
=yes
14025 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
14026 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
14027 cat >> confdefs.h
<<\EOF
14028 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
14033 # Substitution time!
14042 # Solaris has some extra fields in struct passwd that need to be
14043 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14044 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14047 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14048 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14049 # [#include <pwd.h>])
14051 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14052 echo "configure:14053: checking whether struct passwd has pw_comment" >&5
14053 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14054 echo $ac_n "(cached) $ac_c" 1>&6
14057 cat > conftest.
$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14062 struct passwd p; p.pw_comment;
14065 if { (eval echo configure
:14066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14067 samba_cv_passwd_pw_comment
=yes
14069 echo "configure: failed program was:" >&5
14070 cat conftest.
$ac_ext >&5
14072 samba_cv_passwd_pw_comment
=no
14077 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14078 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
14079 cat >> confdefs.h
<<\EOF
14080 #define HAVE_PASSWD_PW_COMMENT 1
14085 #AC_CHECK_MEMBER(struct passwd.pw_age,
14086 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14087 # [#include <pwd.h>])
14089 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14090 echo "configure:14091: checking whether struct passwd has pw_age" >&5
14091 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14092 echo $ac_n "(cached) $ac_c" 1>&6
14095 cat > conftest.
$ac_ext <<EOF
14096 #line 14097 "configure"
14097 #include "confdefs.h"
14100 struct passwd p; p.pw_age;
14103 if { (eval echo configure
:14104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14105 samba_cv_passwd_pw_age
=yes
14107 echo "configure: failed program was:" >&5
14108 cat conftest.
$ac_ext >&5
14110 samba_cv_passwd_pw_age
=no
14115 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14116 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
14117 cat >> confdefs.h
<<\EOF
14118 #define HAVE_PASSWD_PW_AGE 1
14123 #################################################
14124 # Check to see if we should use the included popt
14126 # Check whether --with-included-popt or --without-included-popt was given.
14127 if test "${with_included_popt+set}" = set; then
14128 withval
="$with_included_popt"
14140 if test x
"$INCLUDED_POPT" != x
"yes"; then
14141 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14142 echo "configure:14143: checking for poptGetContext in -lpopt" >&5
14143 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14145 echo $ac_n "(cached) $ac_c" 1>&6
14147 ac_save_LIBS
="$LIBS"
14148 LIBS
="-lpopt $LIBS"
14149 cat > conftest.
$ac_ext <<EOF
14150 #line 14151 "configure"
14151 #include "confdefs.h"
14152 /* Override any gcc2 internal prototype to avoid an error. */
14153 /* We use char because int might match the return type of a gcc2
14154 builtin and then its argument prototype would still apply. */
14155 char poptGetContext();
14161 if { (eval echo configure
:14162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14163 eval "ac_cv_lib_$ac_lib_var=yes"
14165 echo "configure: failed program was:" >&5
14166 cat conftest.
$ac_ext >&5
14168 eval "ac_cv_lib_$ac_lib_var=no"
14171 LIBS
="$ac_save_LIBS"
14174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14178 echo "$ac_t""no" 1>&6
14184 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14185 echo "configure:14186: checking whether to use included popt" >&5
14186 if test x
"$INCLUDED_POPT" = x
"yes"; then
14187 echo "$ac_t""$srcdir/popt" 1>&6
14188 BUILD_POPT
='$(POPT_OBJS)'
14189 FLAGS1
="-I$srcdir/popt"
14191 echo "$ac_t""no" 1>&6
14192 LIBS
="$LIBS -lpopt"
14197 #################################################
14198 # final configure stuff
14199 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14200 echo "configure:14201: checking configure summary" >&5
14201 if test "$cross_compiling" = yes; then
14202 echo "configure: warning: cannot run when cross-compiling" 1>&2
14204 cat > conftest.
$ac_ext <<EOF
14205 #line 14206 "configure"
14206 #include "confdefs.h"
14207 #include "${srcdir-.}/tests/summary.c"
14209 if { (eval echo configure
:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14211 echo "$ac_t""yes" 1>&6
14213 echo "configure: failed program was:" >&5
14214 cat conftest.
$ac_ext >&5
14216 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14226 cat > confcache
<<\EOF
14227 # This file is a shell script that caches the results of configure
14228 # tests run on this system so they can be shared between configure
14229 # scripts and configure runs. It is not useful on other systems.
14230 # If it contains results you don't want to keep, you may remove or edit it.
14232 # By default, configure uses ./config.cache as the cache file,
14233 # creating it if it does not exist already. You can give configure
14234 # the --cache-file=FILE option to use a different cache file; that is
14235 # what configure does when it calls configure scripts in
14236 # subdirectories, so they share the cache.
14237 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14238 # config.status only pays attention to the cache file if you give it the
14239 # --recheck option to rerun configure.
14242 # The following way of writing the cache mishandles newlines in values,
14243 # but we know of no workaround that is simple, portable, and efficient.
14244 # So, don't put newlines in cache variables' values.
14245 # Ultrix sh set writes to stderr and can't be redirected directly,
14246 # and sets the high bit in the cache file unless we assign to the vars.
14248 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14250 # `set' does not quote correctly, so add quotes (double-quote substitution
14251 # turns \\\\ into \\, and sed turns \\ into \).
14253 -e "s/'/'\\\\''/g" \
14254 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14257 # `set' quotes correctly as required by POSIX, so do not add quotes.
14258 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14261 if cmp -s $cache_file confcache
; then
14264 if test -w $cache_file; then
14265 echo "updating cache $cache_file"
14266 cat confcache
> $cache_file
14268 echo "not updating unwritable cache $cache_file"
14273 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14275 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14276 # Let make expand exec_prefix.
14277 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14279 # Any assignment to VPATH causes Sun make to only execute
14280 # the first set of double-colon rules, so remove it if not needed.
14281 # If there is a colon in the path, we need to keep it.
14282 if test "x$srcdir" = x.
; then
14283 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
14286 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14288 DEFS
=-DHAVE_CONFIG_H
14290 # Without the "./", some shells look in PATH for config.status.
14291 : ${CONFIG_STATUS=./config.status}
14293 echo creating
$CONFIG_STATUS
14294 rm -f $CONFIG_STATUS
14295 cat > $CONFIG_STATUS <<EOF
14297 # Generated automatically by configure.
14298 # Run this file to recreate the current configuration.
14299 # This directory was configured as follows,
14300 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14302 # $0 $ac_configure_args
14304 # Compiler output produced by configure, useful for debugging
14305 # configure, is in ./config.log if it exists.
14307 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14310 case "\$ac_option" in
14311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14312 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14313 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14314 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14315 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14317 -help | --help | --hel | --he | --h)
14318 echo "\$ac_cs_usage"; exit 0 ;;
14319 *) echo "\$ac_cs_usage"; exit 1 ;;
14323 ac_given_srcdir=$srcdir
14324 ac_given_INSTALL="$INSTALL"
14326 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14328 cat >> $CONFIG_STATUS <<EOF
14330 # Protect against being on the right side of a sed subst in config.status.
14331 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14332 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14336 s%@CFLAGS@%$CFLAGS%g
14337 s%@CPPFLAGS@%$CPPFLAGS%g
14338 s%@CXXFLAGS@%$CXXFLAGS%g
14339 s%@FFLAGS@%$FFLAGS%g
14341 s%@LDFLAGS@%$LDFLAGS%g
14343 s%@exec_prefix@%$exec_prefix%g
14344 s%@prefix@%$prefix%g
14345 s%@program_transform_name@%$program_transform_name%g
14346 s%@bindir@%$bindir%g
14347 s%@sbindir@%$sbindir%g
14348 s%@libexecdir@%$libexecdir%g
14349 s%@datadir@%$datadir%g
14350 s%@sysconfdir@%$sysconfdir%g
14351 s%@sharedstatedir@%$sharedstatedir%g
14352 s%@localstatedir@%$localstatedir%g
14353 s%@libdir@%$libdir%g
14354 s%@includedir@%$includedir%g
14355 s%@oldincludedir@%$oldincludedir%g
14356 s%@infodir@%$infodir%g
14357 s%@mandir@%$mandir%g
14358 s%@codepagedir@%$codepagedir%g
14359 s%@configdir@%$configdir%g
14360 s%@lockdir@%$lockdir%g
14361 s%@piddir@%$piddir%g
14362 s%@logfilebase@%$logfilebase%g
14363 s%@privatedir@%$privatedir%g
14364 s%@swatdir@%$swatdir%g
14365 s%@RUNPROG@%$RUNPROG%g
14366 s%@MPROGS@%$MPROGS%g
14367 s%@LDSHFLAGS@%$LDSHFLAGS%g
14368 s%@SONAMEFLAG@%$SONAMEFLAG%g
14370 s%@HOST_OS@%$HOST_OS%g
14371 s%@PAM_MOD@%$PAM_MOD%g
14372 s%@PDBEDIT@%$PDBEDIT%g
14374 s%@WRAP32@%$WRAP32%g
14375 s%@WRAPPROG@%$WRAPPROG%g
14376 s%@PICFLAG@%$PICFLAG%g
14377 s%@PICSUFFIX@%$PICSUFFIX%g
14378 s%@SHLIBEXT@%$SHLIBEXT%g
14379 s%@BLDSHARED@%$BLDSHARED%g
14380 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14381 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14383 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14384 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14385 s%@INSTALL_DATA@%$INSTALL_DATA%g
14387 s%@passwd_program@%$passwd_program%g
14388 s%@BROKEN_CC@%$BROKEN_CC%g
14390 s%@host_alias@%$host_alias%g
14391 s%@host_cpu@%$host_cpu%g
14392 s%@host_vendor@%$host_vendor%g
14393 s%@host_os@%$host_os%g
14394 s%@target@%$target%g
14395 s%@target_alias@%$target_alias%g
14396 s%@target_cpu@%$target_cpu%g
14397 s%@target_vendor@%$target_vendor%g
14398 s%@target_os@%$target_os%g
14400 s%@build_alias@%$build_alias%g
14401 s%@build_cpu@%$build_cpu%g
14402 s%@build_vendor@%$build_vendor%g
14403 s%@build_os@%$build_os%g
14405 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14406 s%@LIBOBJS@%$LIBOBJS%g
14407 s%@TERMLIBS@%$TERMLIBS%g
14408 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14410 s%@DYNEXP@%$DYNEXP%g
14411 s%@LDAPLIBS@%$LDAPLIBS%g
14412 s%@QUOTAOBJS@%$QUOTAOBJS%g
14413 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14414 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14415 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14416 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14417 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14418 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14419 s%@BUILD_POPT@%$BUILD_POPT%g
14420 s%@FLAGS1@%$FLAGS1%g
14421 s%@builddir@%$builddir%g
14426 cat >> $CONFIG_STATUS <<\EOF
14428 # Split the substitutions into bite-sized pieces for seds with
14429 # small command number limits, like on Digital OSF/1 and HP-UX.
14430 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
14431 ac_file
=1 # Number of current file.
14432 ac_beg
=1 # First line for current file.
14433 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
14436 while $ac_more_lines; do
14437 if test $ac_beg -gt 1; then
14438 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
14440 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
14442 if test ! -s conftest.s
$ac_file; then
14443 ac_more_lines
=false
14444 rm -f conftest.s
$ac_file
14446 if test -z "$ac_sed_cmds"; then
14447 ac_sed_cmds
="sed -f conftest.s$ac_file"
14449 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
14451 ac_file
=`expr $ac_file + 1`
14453 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
14456 if test -z "$ac_sed_cmds"; then
14461 cat >> $CONFIG_STATUS <<EOF
14463 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14465 cat >> $CONFIG_STATUS <<\EOF
14466 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
14467 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14469 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14470 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14471 *) ac_file_in
="${ac_file}.in" ;;
14474 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14476 # Remove last slash and all that follows it. Not all systems have dirname.
14477 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14478 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14479 # The file is in a subdirectory.
14480 test ! -d "$ac_dir" && mkdir
"$ac_dir"
14481 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
14482 # A "../" for each directory in $ac_dir_suffix.
14483 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14485 ac_dir_suffix
= ac_dots
=
14488 case "$ac_given_srcdir" in
14490 if test -z "$ac_dots"; then top_srcdir
=.
14491 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14492 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
14493 *) # Relative path.
14494 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14495 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14498 case "$ac_given_INSTALL" in
14499 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
14500 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
14503 echo creating
"$ac_file"
14505 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14507 *Makefile
*) ac_comsub
="1i\\
14508 # $configure_input" ;;
14512 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14514 s%@configure_input@%$configure_input%g
14515 s%@srcdir@%$srcdir%g
14516 s%@top_srcdir@%$top_srcdir%g
14517 s%@INSTALL@%$INSTALL%g
14518 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
14522 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14523 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14525 # ac_d sets the value in "#define NAME VALUE" lines.
14526 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14527 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
14530 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14531 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14532 ac_uB
='\([ ]\)%\1#\2define\3'
14535 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14536 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14537 ac_eB
='$%\1#\2define\3'
14541 if test "${CONFIG_HEADERS+set}" != set; then
14543 cat >> $CONFIG_STATUS <<EOF
14544 CONFIG_HEADERS="include/config.h"
14546 cat >> $CONFIG_STATUS <<\EOF
14548 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
14549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14551 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14552 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14553 *) ac_file_in
="${ac_file}.in" ;;
14556 echo creating
$ac_file
14558 rm -f conftest.frag conftest.
in conftest.out
14559 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14560 cat $ac_file_inputs > conftest.
in
14564 # Transform confdefs.h into a sed script conftest.vals that substitutes
14565 # the proper values into config.h.in to produce config.h. And first:
14566 # Protect against being on the right side of a sed subst in config.status.
14567 # Protect against being in an unquoted here document in config.status.
14568 rm -f conftest.vals
14569 cat > conftest.hdr
<<\EOF
14572 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14576 sed -n -f conftest.hdr confdefs.h > conftest.vals
14579 # This sed command replaces #undef with comments. This is necessary, for
14580 # example, in the case of _POSIX_SOURCE, which is predefined and required
14581 # on some systems where configure will not decide to define it.
14582 cat >> conftest.vals <<\EOF
14583 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14586 # Break up conftest.vals because some shells have a limit on
14587 # the size of here documents, and old seds have small limits too.
14589 rm -f conftest.tail
14592 ac_lines=`grep -c . conftest.vals
`
14593 # grep -c gives empty output for an empty file on some AIX systems.
14594 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14595 # Write a limited-size here document to conftest.frag.
14596 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14597 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14599 sed -f conftest.frag conftest.in > conftest.out
14601 mv conftest.out conftest.in
14602 ' >> $CONFIG_STATUS
14603 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14604 rm -f conftest.vals
14605 mv conftest.tail conftest.vals
14607 rm -f conftest.vals
14609 cat >> $CONFIG_STATUS <<\EOF
14610 rm -f conftest.frag conftest.h
14611 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14612 cat conftest.in >> conftest.h
14614 if cmp -s $ac_file conftest.h 2>/dev/null; then
14615 echo "$ac_file is unchanged"
14618 # Remove last slash and all that follows it. Not all systems have dirname.
14619 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14620 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14621 # The file is in a subdirectory.
14622 test ! -d "$ac_dir" && mkdir "$ac_dir"
14625 mv conftest.h $ac_file
14630 cat >> $CONFIG_STATUS <<EOF
14633 cat >> $CONFIG_STATUS <<\EOF
14637 chmod +x $CONFIG_STATUS
14638 rm -fr confdefs* $ac_clean_files
14639 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1