3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-cups Turn on CUPS support (default=auto)"
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
38 --with-smbwrapper Include SMB wrapper support (default=no)"
40 --with-afs Include AFS support (default=no)"
42 --with-dce-dfs Include DCE/DFS support (default=no)"
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
48 --with-automount Include AUTOMOUNT support (default=no)"
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
52 --with-pam Include PAM password database support (default=no)"
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-msdfs Include MS Dfs support (default=no)"
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
82 --with-acl-support Include ACL support (default=no)"
84 --with-winbind Build winbind (default, if supported by OS)"
86 --with-included-popt use bundled popt library, not from system"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file
=.
/config.cache
101 program_transform_name
=s
,x
,x
,
109 bindir
='${exec_prefix}/bin'
110 sbindir
='${exec_prefix}/sbin'
111 libexecdir
='${exec_prefix}/libexec'
112 datadir
='${prefix}/share'
113 sysconfdir
='${prefix}/etc'
114 sharedstatedir
='${prefix}/com'
115 localstatedir
='${prefix}/var'
116 libdir
='${exec_prefix}/lib'
117 includedir
='${prefix}/include'
118 oldincludedir
='/usr/include'
119 infodir
='${prefix}/info'
120 mandir
='${prefix}/man'
122 # Initialize some other variables.
125 SHELL
=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
151 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
152 bindir
="$ac_optarg" ;;
154 -build |
--build |
--buil |
--bui |
--bu)
156 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
157 build
="$ac_optarg" ;;
159 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
160 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
161 ac_prev
=cache_file
;;
162 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
163 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
164 cache_file
="$ac_optarg" ;;
166 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
168 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
170 datadir
="$ac_optarg" ;;
172 -disable-* |
--disable-*)
173 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* |
--enable-*)
182 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
195 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
196 |
--exec |
--exe |
--ex)
197 ac_prev
=exec_prefix
;;
198 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
199 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
200 |
--exec=* |
--exe=* |
--ex=*)
201 exec_prefix
="$ac_optarg" ;;
203 -gas |
--gas |
--ga |
--g)
204 # Obsolete; use --with-gas.
207 -help |
--help |
--hel |
--he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host |
--host |
--hos |
--ho)
264 -host=* |
--host=* |
--hos=* |
--ho=*)
267 -includedir |
--includedir |
--includedi |
--included |
--include \
268 |
--includ |
--inclu |
--incl |
--inc)
269 ac_prev
=includedir
;;
270 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
271 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
272 includedir
="$ac_optarg" ;;
274 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
276 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
277 infodir
="$ac_optarg" ;;
279 -libdir |
--libdir |
--libdi |
--libd)
281 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
282 libdir
="$ac_optarg" ;;
284 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
285 |
--libexe |
--libex |
--libe)
286 ac_prev
=libexecdir
;;
287 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
288 |
--libexe=* |
--libex=* |
--libe=*)
289 libexecdir
="$ac_optarg" ;;
291 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
292 |
--localstate |
--localstat |
--localsta |
--localst \
293 |
--locals |
--local |
--loca |
--loc |
--lo)
294 ac_prev
=localstatedir
;;
295 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
296 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
297 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
298 localstatedir
="$ac_optarg" ;;
300 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
302 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
303 mandir
="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
313 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
314 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
317 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
318 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
319 |
--oldin |
--oldi |
--old |
--ol |
--o)
320 ac_prev
=oldincludedir
;;
321 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
322 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
323 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
324 oldincludedir
="$ac_optarg" ;;
326 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
328 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
329 prefix
="$ac_optarg" ;;
331 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
332 |
--program-pre |
--program-pr |
--program-p)
333 ac_prev
=program_prefix
;;
334 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
335 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
336 program_prefix
="$ac_optarg" ;;
338 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
339 |
--program-suf |
--program-su |
--program-s)
340 ac_prev
=program_suffix
;;
341 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
342 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
343 program_suffix
="$ac_optarg" ;;
345 -program-transform-name |
--program-transform-name \
346 |
--program-transform-nam |
--program-transform-na \
347 |
--program-transform-n |
--program-transform- \
348 |
--program-transform |
--program-transfor \
349 |
--program-transfo |
--program-transf \
350 |
--program-trans |
--program-tran \
351 |
--progr-tra |
--program-tr |
--program-t)
352 ac_prev
=program_transform_name
;;
353 -program-transform-name=* |
--program-transform-name=* \
354 |
--program-transform-nam=* |
--program-transform-na=* \
355 |
--program-transform-n=* |
--program-transform-=* \
356 |
--program-transform=* |
--program-transfor=* \
357 |
--program-transfo=* |
--program-transf=* \
358 |
--program-trans=* |
--program-tran=* \
359 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
360 program_transform_name
="$ac_optarg" ;;
362 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
363 |
-silent |
--silent |
--silen |
--sile |
--sil)
366 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
368 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
370 sbindir
="$ac_optarg" ;;
372 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
373 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
374 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
376 ac_prev
=sharedstatedir
;;
377 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
378 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
379 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
381 sharedstatedir
="$ac_optarg" ;;
383 -site |
--site |
--sit)
385 -site=* |
--site=* |
--sit=*)
388 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
390 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
391 srcdir
="$ac_optarg" ;;
393 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
394 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
395 ac_prev
=sysconfdir
;;
396 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
397 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
398 sysconfdir
="$ac_optarg" ;;
400 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
402 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
403 target
="$ac_optarg" ;;
405 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
408 -version |
--version |
--versio |
--versi |
--vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* |
--without-*)
426 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package
=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
439 |
--x-incl |
--x-inc |
--x-in |
--x-i)
440 ac_prev
=x_includes
;;
441 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
442 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
443 x_includes
="$ac_optarg" ;;
445 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
446 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
447 ac_prev
=x_libraries
;;
448 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
449 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
450 x_libraries
="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE
; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
501 |
--no-cr |
--no-c) ;;
502 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
503 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
504 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest
* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file
=include
/includes.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted
=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted
=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE
; then
555 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file
in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp
='$CPP $CPPFLAGS'
578 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling
=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
593 ac_n
= ac_c
='\c' ac_t
=
599 #################################################
600 # Directory handling stuff to support both the
601 # legacy SAMBA directories and FHS compliant
605 # Check whether --with-fhs or --without-fhs was given.
606 if test "${with_fhs+set}" = set; then
608 codepagedir
="\$(DATADIR)/samba/codepages"
609 configdir
="${sysconfdir}/samba"
610 lockdir
="\${VARDIR}/cache/samba"
611 piddir
="\$(VARDIR)/run/samba"
612 logfilebase
="\${VARDIR}/log/samba"
613 privatedir
="\${CONFIGDIR}/private"
614 swatdir
="\${DATADIR}/samba/swat"
616 codepagedir
="\$(LIBDIR)/codepages"
617 configdir
="\$(LIBDIR)"
618 logfilebase
="\$(VARDIR)"
619 lockdir
="\${VARDIR}/locks"
620 piddir
="\$(VARDIR)/locks"
621 privatedir
="\${prefix}/private"
622 swatdir
="\${prefix}/swat"
626 #################################################
627 # set private directory location
628 # Check whether --with-privatedir or --without-privatedir was given.
629 if test "${with_privatedir+set}" = set; then
630 withval
="$with_privatedir"
634 # Just in case anybody calls it without argument
636 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
639 privatedir
="$withval"
645 #################################################
646 # set lock directory location
647 # Check whether --with-lockdir or --without-lockdir was given.
648 if test "${with_lockdir+set}" = set; then
649 withval
="$with_lockdir"
653 # Just in case anybody calls it without argument
655 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
664 #################################################
665 # set pid directory location
666 # Check whether --with-piddir or --without-piddir was given.
667 if test "${with_piddir+set}" = set; then
668 withval
="$with_piddir"
672 # Just in case anybody calls it without argument
674 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
683 #################################################
684 # set SWAT directory location
685 # Check whether --with-swatdir or --without-swatdir was given.
686 if test "${with_swatdir+set}" = set; then
687 withval
="$with_swatdir"
691 # Just in case anybody does it
693 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
702 #################################################
703 # set configuration directory location
704 # Check whether --with-configdir or --without-configdir was given.
705 if test "${with_configdir+set}" = set; then
706 withval
="$with_configdir"
710 # Just in case anybody does it
712 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
721 #################################################
722 # set codepage directory location
723 # Check whether --with-codepagedir or --without-codepagedir was given.
724 if test "${with_codepagedir+set}" = set; then
725 withval
="$with_codepagedir"
729 # Just in case anybody does it
731 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
734 codepagedir
="$withval"
740 #################################################
741 # set log directory location
742 # Check whether --with-logfilebase or --without-logfilebase was given.
743 if test "${with_logfilebase+set}" = set; then
744 withval
="$with_logfilebase"
748 # Just in case anybody does it
750 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
753 logfilebase
="$withval"
788 # compile with optimization and without debugging by default
789 CFLAGS
="-O ${CFLAGS}"
791 # Check whether --enable-debug or --disable-debug was given.
792 if test "${enable_debug+set}" = set; then
793 enableval
="$enable_debug"
794 if eval "test x$enable_debug = xyes"; then
795 CFLAGS
="${CFLAGS} -g"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc
; ac_word
=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$CC"; then
810 ac_cv_prog_CC
="$CC" # Let the user override the test.
812 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
814 for ac_dir
in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir
=.
816 if test -f $ac_dir/$ac_word; then
825 if test -n "$CC"; then
826 echo "$ac_t""$CC" 1>&6
828 echo "$ac_t""no" 1>&6
831 if test -z "$CC"; then
832 # Extract the first word of "cc", so it can be a program name with args.
833 set dummy cc
; ac_word
=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$CC"; then
840 ac_cv_prog_CC
="$CC" # Let the user override the test.
842 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
845 for ac_dir
in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir
=.
847 if test -f $ac_dir/$ac_word; then
848 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
857 if test $ac_prog_rejected = yes; then
858 # We found a bogon in the path, so make sure we never use it.
859 set dummy
$ac_cv_prog_CC
861 if test $# -gt 0; then
862 # We chose a different compiler from the bogus one.
863 # However, it has the same basename, so the bogon will be chosen
864 # first if we set CC to just the basename; use the full file name.
866 set dummy
"$ac_dir/$ac_word" "$@"
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
877 echo "$ac_t""no" 1>&6
880 if test -z "$CC"; then
883 # Extract the first word of "cl", so it can be a program name with args.
884 set dummy cl
; ac_word
=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 if test -n "$CC"; then
891 ac_cv_prog_CC
="$CC" # Let the user override the test.
893 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
895 for ac_dir
in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir
=.
897 if test -f $ac_dir/$ac_word; then
906 if test -n "$CC"; then
907 echo "$ac_t""$CC" 1>&6
909 echo "$ac_t""no" 1>&6
914 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918 echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp
='$CPP $CPPFLAGS'
923 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling
=$ac_cv_prog_cc_cross
927 cat > conftest.
$ac_ext << EOF
929 #line 930 "configure"
930 #include "confdefs.h"
934 if { (eval echo configure
:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
935 ac_cv_prog_cc_works
=yes
936 # If we can't run a trivial program, we are probably using a cross compiler.
937 if (.
/conftest
; exit) 2>/dev
/null
; then
938 ac_cv_prog_cc_cross
=no
940 ac_cv_prog_cc_cross
=yes
943 echo "configure: failed program was:" >&5
944 cat conftest.
$ac_ext >&5
945 ac_cv_prog_cc_works
=no
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp
='$CPP $CPPFLAGS'
951 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling
=$ac_cv_prog_cc_cross
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no
; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling
=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.c
<<EOF
974 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
989 ac_test_CFLAGS
="${CFLAGS+set}"
990 ac_save_CFLAGS
="$CFLAGS"
992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 echo 'void f(){}' > conftest.c
998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008 if test "$ac_test_CFLAGS" = set; then
1009 CFLAGS
="$ac_save_CFLAGS"
1010 elif test $ac_cv_prog_cc_g = yes; then
1011 if test "$GCC" = yes; then
1017 if test "$GCC" = yes; then
1025 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1026 if test -f $ac_dir/install-sh
; then
1028 ac_install_sh
="$ac_aux_dir/install-sh -c"
1030 elif test -f $ac_dir/install.sh
; then
1032 ac_install_sh
="$ac_aux_dir/install.sh -c"
1036 if test -z "$ac_aux_dir"; then
1037 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1039 ac_config_guess
=$ac_aux_dir/config.guess
1040 ac_config_sub
=$ac_aux_dir/config.sub
1041 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1043 # Find a good install program. We prefer a C program (faster),
1044 # so one script is as good as another. But avoid the broken or
1045 # incompatible versions:
1046 # SysV /etc/install, /usr/sbin/install
1047 # SunOS /usr/etc/install
1048 # IRIX /sbin/install
1050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1053 # ./install, which can be erroneously created by make from ./install.sh.
1054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1055 echo "configure:1056: checking for a BSD compatible install" >&5
1056 if test -z "$INSTALL"; then
1057 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1061 for ac_dir
in $PATH; do
1062 # Account for people who put trailing slashes in PATH elements.
1064 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1066 # OSF1 and SCO ODT 3.0 have their own names for install.
1067 # Don't use installbsd from OSF since it installs stuff as root
1069 for ac_prog
in ginstall scoinst
install; do
1070 if test -f $ac_dir/$ac_prog; then
1071 if test $ac_prog = install &&
1072 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1073 # AIX install. It has an incompatible calling convention.
1076 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL
="$ac_cv_path_install"
1090 # As a last resort, use the slow shell script. We don't cache a
1091 # path for INSTALL within a source directory, because that will
1092 # break other packages using the cache if that directory is
1093 # removed, or if the path is relative.
1094 INSTALL
="$ac_install_sh"
1097 echo "$ac_t""$INSTALL" 1>&6
1099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1100 # It thinks the first close brace ends the variable substitution.
1101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1105 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1107 for ac_prog
in gawk mawk nawk
awk
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy
$ac_prog; ac_word
=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$AWK"; then
1117 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1121 for ac_dir
in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir
=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_AWK
="$ac_prog"
1131 AWK
="$ac_cv_prog_AWK"
1132 if test -n "$AWK"; then
1133 echo "$ac_t""$AWK" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 test -n "$AWK" && break
1142 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1143 echo "configure:1144: checking if the linker ($LD) is GNU ld" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1148 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1149 ac_cv_prog_gnu_ld
=yes
1151 ac_cv_prog_gnu_ld
=no
1155 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1157 # Extract the first word of "passwd", so it can be a program name with args.
1158 set dummy passwd
; ac_word
=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 case "$passwd_program" in
1166 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1169 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1172 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1174 for ac_dir
in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir
=.
1176 if test -f $ac_dir/$ac_word; then
1177 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1182 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1186 passwd_program
="$ac_cv_path_passwd_program"
1187 if test -n "$passwd_program"; then
1188 echo "$ac_t""$passwd_program" 1>&6
1190 echo "$ac_t""no" 1>&6
1195 if test "x$CC" != xcc
; then
1196 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether $CC and cc understand -c and -o together" >&5
1199 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether cc understands -c and -o together" >&5
1202 set dummy
$CC; ac_cc
="`echo $2 |
1203 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1204 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 echo 'foo(){}' > conftest.c
1208 # Make sure it works both with $CC and with simple cc.
1209 # We do the test twice because some compilers refuse to overwrite an
1210 # existing .o file with -o, though they will create one.
1211 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1212 if { (eval echo configure
:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1213 test -f conftest.o
&& { (eval echo configure
:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1215 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1216 if test "x$CC" != xcc
; then
1217 # Test first that cc exists at all.
1218 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1219 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1220 if { (eval echo configure
:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1221 test -f conftest.o
&& { (eval echo configure
:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1226 # cc exists but doesn't like -o.
1227 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1232 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1237 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1238 echo "$ac_t""yes" 1>&6
1240 echo "$ac_t""no" 1>&6
1241 cat >> confdefs.h
<<\EOF
1242 #define NO_MINUS_C_MINUS_O 1
1247 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1254 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1255 echo "configure:1256: checking that the C compiler understands volatile" >&5
1256 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1260 cat > conftest.
$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 #include <sys/types.h>
1268 if { (eval echo configure
:1269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1270 samba_cv_volatile
=yes
1272 echo "configure: failed program was:" >&5
1273 cat conftest.
$ac_ext >&5
1275 samba_cv_volatile
=no
1280 echo "$ac_t""$samba_cv_volatile" 1>&6
1281 if test x
"$samba_cv_volatile" = x
"yes"; then
1282 cat >> confdefs.h
<<\EOF
1283 #define HAVE_VOLATILE 1
1291 # Do some error checking and defaulting for the host and target type.
1293 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1296 # 1. You are not allowed to specify --host, --target, and nonopt at the
1298 # 2. Host defaults to nonopt.
1299 # 3. If nonopt is not specified, then host defaults to the current host,
1300 # as determined by config.guess.
1301 # 4. Target and build default to nonopt.
1302 # 5. If nonopt is not specified, then target and build default to host.
1304 # The aliases save the names the user supplied, while $host etc.
1305 # will get canonicalized.
1306 case $host---$target---$nonopt in
1307 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1308 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1312 # Make sure we can run config.sub.
1313 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1314 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1317 echo $ac_n "checking host system type""... $ac_c" 1>&6
1318 echo "configure:1319: checking host system type" >&5
1321 case "$host_alias" in
1325 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1326 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1328 *) host_alias
=$nonopt ;;
1332 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1333 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1334 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1335 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1336 echo "$ac_t""$host" 1>&6
1338 echo $ac_n "checking target system type""... $ac_c" 1>&6
1339 echo "configure:1340: checking target system type" >&5
1341 target_alias
=$target
1342 case "$target_alias" in
1345 NONE
) target_alias
=$host_alias ;;
1346 *) target_alias
=$nonopt ;;
1350 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1351 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354 echo "$ac_t""$target" 1>&6
1356 echo $ac_n "checking build system type""... $ac_c" 1>&6
1357 echo "configure:1358: checking build system type" >&5
1360 case "$build_alias" in
1363 NONE
) build_alias
=$host_alias ;;
1364 *) build_alias
=$nonopt ;;
1368 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1369 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1370 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1371 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1372 echo "$ac_t""$build" 1>&6
1374 test "$host_alias" != "$target_alias" &&
1375 test "$program_prefix$program_suffix$program_transform_name" = \
1377 program_prefix
=${target_alias}-
1381 *irix6
*) cat >> confdefs.h
<<\EOF
1382 #include <standards.h>
1390 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1391 echo "configure:1392: checking config.cache system type" >&5
1392 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1393 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1394 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1395 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1396 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1397 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1398 echo "$ac_t""different" 1>&6
1399 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1401 echo "$ac_t""same" 1>&6
1403 ac_cv_host_system_type
="$host"
1404 ac_cv_build_system_type
="$build"
1405 ac_cv_target_system_type
="$target"
1411 # Config CPPFLAG settings for strange OS's that must be set
1412 # before other tests.
1415 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1417 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether ${CC-cc} accepts -Ae" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 echo 'void f(){}' > conftest.c
1423 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1424 ac_cv_prog_cc_Ae
=yes
1432 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1433 # mmap on HPUX is completely broken...
1434 cat >> confdefs.h
<<\EOF
1435 #define MMAP_BLACKLIST 1
1438 if test $ac_cv_prog_cc_Ae = yes; then
1439 CPPFLAGS
="$CPPFLAGS -Ae"
1442 # Defines needed for HPUX support.
1443 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1444 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1448 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1449 cat >> confdefs.h
<<\EOF
1450 #define USE_BOTH_CRYPT_CALLS 1
1453 cat >> confdefs.h
<<\EOF
1454 #define _HPUX_SOURCE 1
1457 cat >> confdefs.h
<<\EOF
1458 #define _POSIX_SOURCE 1
1461 cat >> confdefs.h
<<\EOF
1462 #define _ALIGNMENT_REQUIRED 1
1465 cat >> confdefs.h
<<\EOF
1466 #define _MAX_ALIGNMENT 4
1471 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1472 cat >> confdefs.h
<<\EOF
1473 #define _HPUX_SOURCE 1
1476 cat >> confdefs.h
<<\EOF
1477 #define _POSIX_SOURCE 1
1480 cat >> confdefs.h
<<\EOF
1481 #define _LARGEFILE64_SOURCE 1
1484 cat >> confdefs.h
<<\EOF
1485 #define _ALIGNMENT_REQUIRED 1
1488 cat >> confdefs.h
<<\EOF
1489 #define _MAX_ALIGNMENT 4
1492 cat >> confdefs.h
<<\EOF
1493 #define USE_BOTH_CRYPT_CALLS 1
1503 # CRAY Unicos has broken const handling
1505 echo "$ac_t""disabling const" 1>&6
1506 CPPFLAGS
="$CPPFLAGS -Dconst="
1510 # AIX4.x doesn't even admit to having large
1511 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1514 echo "$ac_t""enabling large file support" 1>&6
1515 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1516 cat >> confdefs.h
<<\EOF
1517 #define _LARGE_FILES 1
1522 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1523 # to the existance of large files..
1524 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1525 # recommendations on large file support, however it makes the
1526 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1527 # recommendation makes the compile fail on gcc2.7. JRA.
1531 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1532 echo "$ac_t""no large file support" 1>&6
1535 echo "$ac_t""enabling large file support" 1>&6
1536 if test "$ac_cv_prog_gcc" = yes; then
1537 ${CC-cc} -v >conftest.c
2>&1
1538 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1540 case "$ac_cv_gcc_compiler_version_number" in
1541 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1542 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1543 cat >> confdefs.h
<<\EOF
1544 #define _LARGEFILE64_SOURCE 1
1549 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1550 cat >> confdefs.h
<<\EOF
1551 #define _LARGEFILE64_SOURCE 1
1554 cat >> confdefs.h
<<\EOF
1555 #define _FILE_OFFSET_BITS 64
1561 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1562 cat >> confdefs.h
<<\EOF
1563 #define _LARGEFILE64_SOURCE 1
1566 cat >> confdefs.h
<<\EOF
1567 #define _FILE_OFFSET_BITS 64
1575 # Tests needed for SINIX large file support.
1578 if test $host = mips-sni-sysv4
; then
1579 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1580 echo "configure:1581: checking for LFS support" >&5
1581 old_CPPFLAGS
="$CPPFLAGS"
1582 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1583 if test "$cross_compiling" = yes; then
1584 SINIX_LFS_SUPPORT
=cross
1586 cat > conftest.
$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1592 #if _LFS64_LARGEFILE == 1
1599 if { (eval echo configure
:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1601 SINIX_LFS_SUPPORT
=yes
1603 echo "configure: failed program was:" >&5
1604 cat conftest.
$ac_ext >&5
1606 SINIX_LFS_SUPPORT
=no
1611 CPPFLAGS
="$old_CPPFLAGS"
1612 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1613 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1614 cat >> confdefs.h
<<\EOF
1615 #define _LARGEFILE64_SOURCE 1
1618 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1619 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1620 LIBS
="`getconf LFS64_LIBS` $LIBS"
1622 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1626 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1629 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1630 echo "configure:1631: checking for LFS support" >&5
1631 old_CPPFLAGS
="$CPPFLAGS"
1632 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1633 if test "$cross_compiling" = yes; then
1634 LINUX_LFS_SUPPORT
=cross
1636 cat > conftest.
$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1641 #include <sys/utsname.h>
1643 #if _LFS64_LARGEFILE == 1
1648 /* Ensure this is glibc 2.2 or higher */
1649 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1650 int libc_major = __GLIBC__;
1651 int libc_minor = __GLIBC_MINOR__;
1659 /* Ensure this is kernel 2.4 or higher */
1662 release = uts.release;
1663 major = atoi(strsep(&release, "."));
1664 minor = atoi(strsep(&release, "."));
1666 if (major > 2 || (major == 2 && minor > 3))
1675 if { (eval echo configure
:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1677 LINUX_LFS_SUPPORT
=yes
1679 echo "configure: failed program was:" >&5
1680 cat conftest.
$ac_ext >&5
1682 LINUX_LFS_SUPPORT
=no
1687 CPPFLAGS
="$old_CPPFLAGS"
1688 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1689 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1690 cat >> confdefs.h
<<\EOF
1691 #define _LARGEFILE64_SOURCE 1
1694 cat >> confdefs.h
<<\EOF
1695 #define _FILE_OFFSET_BITS 64
1698 cat >> confdefs.h
<<\EOF
1699 #define _GNU_SOURCE 1
1703 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1707 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1708 echo "configure:1709: checking for LFS support" >&5
1709 old_CPPFLAGS
="$CPPFLAGS"
1710 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1711 if test "$cross_compiling" = yes; then
1712 GLIBC_LFS_SUPPORT
=cross
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1720 #if _LFS64_LARGEFILE == 1
1727 if { (eval echo configure
:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1729 GLIBC_LFS_SUPPORT
=yes
1731 echo "configure: failed program was:" >&5
1732 cat conftest.
$ac_ext >&5
1734 GLIBC_LFS_SUPPORT
=no
1739 CPPFLAGS
="$old_CPPFLAGS"
1740 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1741 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1742 cat >> confdefs.h
<<\EOF
1743 #define _LARGEFILE64_SOURCE 1
1746 cat >> confdefs.h
<<\EOF
1747 #define _GNU_SOURCE 1
1751 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1756 echo $ac_n "checking for inline""... $ac_c" 1>&6
1757 echo "configure:1758: checking for inline" >&5
1758 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1762 for ac_kw
in inline __inline__ __inline
; do
1763 cat > conftest.
$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1771 if { (eval echo configure
:1772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1773 ac_cv_c_inline
=$ac_kw; break
1775 echo "configure: failed program was:" >&5
1776 cat conftest.
$ac_ext >&5
1783 echo "$ac_t""$ac_cv_c_inline" 1>&6
1784 case "$ac_cv_c_inline" in
1786 no
) cat >> confdefs.h
<<\EOF
1790 *) cat >> confdefs.h
<<EOF
1791 #define inline $ac_cv_c_inline
1796 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1797 echo "configure:1798: checking how to run the C preprocessor" >&5
1798 # On Suns, sometimes $CPP names a directory.
1799 if test -n "$CPP" && test -d "$CPP"; then
1802 if test -z "$CPP"; then
1803 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 # This must be in double quotes, not single quotes, because CPP may get
1807 # substituted into the Makefile and "${CC-cc}" will confuse make.
1809 # On the NeXT, cc -E runs the code through the compiler's parser,
1810 # not just through cpp.
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1818 { (eval echo configure
:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1820 if test -z "$ac_err"; then
1824 echo "configure: failed program was:" >&5
1825 cat conftest.
$ac_ext >&5
1827 CPP
="${CC-cc} -E -traditional-cpp"
1828 cat > conftest.
$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure
:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1841 echo "configure: failed program was:" >&5
1842 cat conftest.
$ac_ext >&5
1844 CPP
="${CC-cc} -nologo -E"
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure
:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1868 ac_cv_prog_CPP
="$CPP"
1870 CPP
="$ac_cv_prog_CPP"
1872 ac_cv_prog_CPP
="$CPP"
1874 echo "$ac_t""$CPP" 1>&6
1876 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1877 echo "configure:1878: checking for ANSI C header files" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1889 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure
:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1892 if test -z "$ac_err"; then
1894 ac_cv_header_stdc
=yes
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1900 ac_cv_header_stdc
=no
1904 if test $ac_cv_header_stdc = yes; then
1905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1906 cat > conftest.
$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1912 egrep "memchr" >/dev
/null
2>&1; then
1916 ac_cv_header_stdc
=no
1922 if test $ac_cv_header_stdc = yes; then
1923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1924 cat > conftest.
$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1930 egrep "free" >/dev
/null
2>&1; then
1934 ac_cv_header_stdc
=no
1940 if test $ac_cv_header_stdc = yes; then
1941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1942 if test "$cross_compiling" = yes; then
1945 cat > conftest.
$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1949 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1950 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1952 int main () { int i; for (i = 0; i < 256; i++)
1953 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1957 if { (eval echo configure
:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1961 echo "configure: failed program was:" >&5
1962 cat conftest.
$ac_ext >&5
1964 ac_cv_header_stdc
=no
1972 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1973 if test $ac_cv_header_stdc = yes; then
1974 cat >> confdefs.h
<<\EOF
1975 #define STDC_HEADERS 1
1981 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1983 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1984 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_hdr that defines DIR" >&5
1986 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 cat > conftest.
$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992 #include <sys/types.h>
1998 if { (eval echo configure
:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2000 eval "ac_cv_header_dirent_$ac_safe=yes"
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2005 eval "ac_cv_header_dirent_$ac_safe=no"
2009 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2010 echo "$ac_t""yes" 1>&6
2011 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2012 cat >> confdefs.h
<<EOF
2013 #define $ac_tr_hdr 1
2015 ac_header_dirent
=$ac_hdr; break
2017 echo "$ac_t""no" 1>&6
2020 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2021 if test $ac_header_dirent = dirent.h
; then
2022 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2023 echo "configure:2024: checking for opendir in -ldir" >&5
2024 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 ac_save_LIBS
="$LIBS"
2030 cat > conftest.
$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2042 if { (eval echo configure
:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2044 eval "ac_cv_lib_$ac_lib_var=yes"
2046 echo "configure: failed program was:" >&5
2047 cat conftest.
$ac_ext >&5
2049 eval "ac_cv_lib_$ac_lib_var=no"
2052 LIBS
="$ac_save_LIBS"
2055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2059 echo "$ac_t""no" 1>&6
2063 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2064 echo "configure:2065: checking for opendir in -lx" >&5
2065 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 ac_save_LIBS
="$LIBS"
2071 cat > conftest.
$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 /* Override any gcc2 internal prototype to avoid an error. */
2075 /* We use char because int might match the return type of a gcc2
2076 builtin and then its argument prototype would still apply. */
2083 if { (eval echo configure
:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2085 eval "ac_cv_lib_$ac_lib_var=yes"
2087 echo "configure: failed program was:" >&5
2088 cat conftest.
$ac_ext >&5
2090 eval "ac_cv_lib_$ac_lib_var=no"
2093 LIBS
="$ac_save_LIBS"
2096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2100 echo "$ac_t""no" 1>&6
2105 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2106 echo "configure:2107: checking whether time.h and sys/time.h may both be included" >&5
2107 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 cat > conftest.
$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 #include <sys/types.h>
2114 #include <sys/time.h>
2120 if { (eval echo configure
:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2122 ac_cv_header_time
=yes
2124 echo "configure: failed program was:" >&5
2125 cat conftest.
$ac_ext >&5
2127 ac_cv_header_time
=no
2132 echo "$ac_t""$ac_cv_header_time" 1>&6
2133 if test $ac_cv_header_time = yes; then
2134 cat >> confdefs.h
<<\EOF
2135 #define TIME_WITH_SYS_TIME 1
2140 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2141 echo "configure:2142: checking for sys/wait.h that is POSIX.1 compatible" >&5
2142 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 #include <sys/types.h>
2149 #include <sys/wait.h>
2151 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2154 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2159 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2162 if { (eval echo configure
:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2164 ac_cv_header_sys_wait_h
=yes
2166 echo "configure: failed program was:" >&5
2167 cat conftest.
$ac_ext >&5
2169 ac_cv_header_sys_wait_h
=no
2174 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2175 if test $ac_cv_header_sys_wait_h = yes; then
2176 cat >> confdefs.h
<<\EOF
2177 #define HAVE_SYS_WAIT_H 1
2182 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2184 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_hdr" >&5
2187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 cat > conftest.
$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2195 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2196 { (eval echo configure
:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2197 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2198 if test -z "$ac_err"; then
2200 eval "ac_cv_header_$ac_safe=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 eval "ac_cv_header_$ac_safe=no"
2210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2212 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2213 cat >> confdefs.h
<<EOF
2214 #define $ac_tr_hdr 1
2218 echo "$ac_t""no" 1>&6
2222 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2224 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_hdr" >&5
2227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.
$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2235 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2236 { (eval echo configure
:2237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2237 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2238 if test -z "$ac_err"; then
2240 eval "ac_cv_header_$ac_safe=yes"
2243 echo "configure: failed program was:" >&5
2244 cat conftest.
$ac_ext >&5
2246 eval "ac_cv_header_$ac_safe=no"
2250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2253 cat >> confdefs.h
<<EOF
2254 #define $ac_tr_hdr 1
2258 echo "$ac_t""no" 1>&6
2262 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2264 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2266 echo "configure:2267: checking for $ac_hdr" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.
$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2275 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2276 { (eval echo configure
:2277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2277 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2278 if test -z "$ac_err"; then
2280 eval "ac_cv_header_$ac_safe=yes"
2283 echo "configure: failed program was:" >&5
2284 cat conftest.
$ac_ext >&5
2286 eval "ac_cv_header_$ac_safe=no"
2290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2291 echo "$ac_t""yes" 1>&6
2292 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2293 cat >> confdefs.h
<<EOF
2294 #define $ac_tr_hdr 1
2298 echo "$ac_t""no" 1>&6
2302 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2304 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2306 echo "configure:2307: checking for $ac_hdr" >&5
2307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 cat > conftest.
$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2315 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2316 { (eval echo configure
:2317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2317 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2318 if test -z "$ac_err"; then
2320 eval "ac_cv_header_$ac_safe=yes"
2323 echo "configure: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2326 eval "ac_cv_header_$ac_safe=no"
2330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2333 cat >> confdefs.h
<<EOF
2334 #define $ac_tr_hdr 1
2338 echo "$ac_t""no" 1>&6
2342 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2344 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_hdr" >&5
2347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 cat > conftest.
$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2355 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2356 { (eval echo configure
:2357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2357 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2358 if test -z "$ac_err"; then
2360 eval "ac_cv_header_$ac_safe=yes"
2363 echo "configure: failed program was:" >&5
2364 cat conftest.
$ac_ext >&5
2366 eval "ac_cv_header_$ac_safe=no"
2370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2373 cat >> confdefs.h
<<EOF
2374 #define $ac_tr_hdr 1
2378 echo "$ac_t""no" 1>&6
2382 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.h
2384 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_hdr" >&5
2387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 cat > conftest.
$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2395 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2396 { (eval echo configure
:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2397 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2398 if test -z "$ac_err"; then
2400 eval "ac_cv_header_$ac_safe=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.
$ac_ext >&5
2406 eval "ac_cv_header_$ac_safe=no"
2410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2413 cat >> confdefs.h
<<EOF
2414 #define $ac_tr_hdr 1
2418 echo "$ac_t""no" 1>&6
2422 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
2424 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_hdr" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2435 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2436 { (eval echo configure
:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2437 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2438 if test -z "$ac_err"; then
2440 eval "ac_cv_header_$ac_safe=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.
$ac_ext >&5
2446 eval "ac_cv_header_$ac_safe=no"
2450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2453 cat >> confdefs.h
<<EOF
2454 #define $ac_tr_hdr 1
2458 echo "$ac_t""no" 1>&6
2462 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2464 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_hdr" >&5
2467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.
$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2475 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure
:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2480 eval "ac_cv_header_$ac_safe=yes"
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2486 eval "ac_cv_header_$ac_safe=no"
2490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2492 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2493 cat >> confdefs.h
<<EOF
2494 #define $ac_tr_hdr 1
2498 echo "$ac_t""no" 1>&6
2502 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2504 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_hdr" >&5
2507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 cat > conftest.
$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2515 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure
:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2520 eval "ac_cv_header_$ac_safe=yes"
2523 echo "configure: failed program was:" >&5
2524 cat conftest.
$ac_ext >&5
2526 eval "ac_cv_header_$ac_safe=no"
2530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2533 cat >> confdefs.h
<<EOF
2534 #define $ac_tr_hdr 1
2538 echo "$ac_t""no" 1>&6
2544 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2545 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2549 cat > conftest.
$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2557 if { (eval echo configure
:2558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2559 ac_cv_header_shadow_h
=yes
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 ac_cv_header_shadow_h
=no
2567 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2568 cat >> confdefs.h
<<\EOF
2569 #define HAVE_SHADOW_H 1
2575 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2577 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_hdr" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure
:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2593 eval "ac_cv_header_$ac_safe=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.
$ac_ext >&5
2599 eval "ac_cv_header_$ac_safe=no"
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2606 cat >> confdefs.h
<<EOF
2607 #define $ac_tr_hdr 1
2611 echo "$ac_t""no" 1>&6
2615 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2617 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_hdr" >&5
2620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 cat > conftest.
$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2628 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2629 { (eval echo configure
:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2630 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2631 if test -z "$ac_err"; then
2633 eval "ac_cv_header_$ac_safe=yes"
2636 echo "configure: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2639 eval "ac_cv_header_$ac_safe=no"
2643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2646 cat >> confdefs.h
<<EOF
2647 #define $ac_tr_hdr 1
2651 echo "$ac_t""no" 1>&6
2655 for ac_hdr
in stropts.h poll.h
2657 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_hdr" >&5
2660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 cat > conftest.
$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2668 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2669 { (eval echo configure
:2670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2670 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2671 if test -z "$ac_err"; then
2673 eval "ac_cv_header_$ac_safe=yes"
2676 echo "configure: failed program was:" >&5
2677 cat conftest.
$ac_ext >&5
2679 eval "ac_cv_header_$ac_safe=no"
2683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2684 echo "$ac_t""yes" 1>&6
2685 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2686 cat >> confdefs.h
<<EOF
2687 #define $ac_tr_hdr 1
2691 echo "$ac_t""no" 1>&6
2695 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2697 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_hdr" >&5
2700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 cat > conftest.
$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure
:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2713 eval "ac_cv_header_$ac_safe=yes"
2716 echo "configure: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2719 eval "ac_cv_header_$ac_safe=no"
2723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2726 cat >> confdefs.h
<<EOF
2727 #define $ac_tr_hdr 1
2731 echo "$ac_t""no" 1>&6
2735 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2737 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_hdr" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure
:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2751 if test -z "$ac_err"; then
2753 eval "ac_cv_header_$ac_safe=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 eval "ac_cv_header_$ac_safe=no"
2763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2766 cat >> confdefs.h
<<EOF
2767 #define $ac_tr_hdr 1
2771 echo "$ac_t""no" 1>&6
2776 # For experimental utmp support (lastlog on some BSD-like systems)
2777 for ac_hdr
in utmp.h utmpx.h lastlog.h
2779 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_hdr" >&5
2782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.
$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2790 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure
:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2793 if test -z "$ac_err"; then
2795 eval "ac_cv_header_$ac_safe=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.
$ac_ext >&5
2801 eval "ac_cv_header_$ac_safe=no"
2805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2806 echo "$ac_t""yes" 1>&6
2807 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2808 cat >> confdefs.h
<<EOF
2809 #define $ac_tr_hdr 1
2813 echo "$ac_t""no" 1>&6
2818 # For quotas on Veritas VxFS filesystems
2819 for ac_hdr
in sys
/fs
/vx_quota.h
2821 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2823 echo "configure:2824: checking for $ac_hdr" >&5
2824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.
$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2832 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2833 { (eval echo configure
:2834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2834 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2835 if test -z "$ac_err"; then
2837 eval "ac_cv_header_$ac_safe=yes"
2840 echo "configure: failed program was:" >&5
2841 cat conftest.
$ac_ext >&5
2843 eval "ac_cv_header_$ac_safe=no"
2847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2848 echo "$ac_t""yes" 1>&6
2849 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2850 cat >> confdefs.h
<<EOF
2851 #define $ac_tr_hdr 1
2855 echo "$ac_t""no" 1>&6
2860 # For quotas on Linux XFS filesystems
2861 for ac_hdr
in linux
/xqm.h
2863 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_hdr" >&5
2866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 cat > conftest.
$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2874 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2875 { (eval echo configure
:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2876 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2877 if test -z "$ac_err"; then
2879 eval "ac_cv_header_$ac_safe=yes"
2882 echo "configure: failed program was:" >&5
2883 cat conftest.
$ac_ext >&5
2885 eval "ac_cv_header_$ac_safe=no"
2889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2892 cat >> confdefs.h
<<EOF
2893 #define $ac_tr_hdr 1
2897 echo "$ac_t""no" 1>&6
2902 echo $ac_n "checking size of int""... $ac_c" 1>&6
2903 echo "configure:2904: checking size of int" >&5
2904 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 if test "$cross_compiling" = yes; then
2908 ac_cv_sizeof_int
=cross
2910 cat > conftest.
$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2916 FILE *f=fopen("conftestval", "w");
2918 fprintf(f, "%d\n", sizeof(int));
2922 if { (eval echo configure
:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2924 ac_cv_sizeof_int
=`cat conftestval`
2926 echo "configure: failed program was:" >&5
2927 cat conftest.
$ac_ext >&5
2935 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2936 cat >> confdefs.h
<<EOF
2937 #define SIZEOF_INT $ac_cv_sizeof_int
2941 echo $ac_n "checking size of long""... $ac_c" 1>&6
2942 echo "configure:2943: checking size of long" >&5
2943 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 if test "$cross_compiling" = yes; then
2947 ac_cv_sizeof_long
=cross
2949 cat > conftest.
$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2955 FILE *f=fopen("conftestval", "w");
2957 fprintf(f, "%d\n", sizeof(long));
2961 if { (eval echo configure
:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2963 ac_cv_sizeof_long
=`cat conftestval`
2965 echo "configure: failed program was:" >&5
2966 cat conftest.
$ac_ext >&5
2974 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2975 cat >> confdefs.h
<<EOF
2976 #define SIZEOF_LONG $ac_cv_sizeof_long
2980 echo $ac_n "checking size of short""... $ac_c" 1>&6
2981 echo "configure:2982: checking size of short" >&5
2982 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test "$cross_compiling" = yes; then
2986 ac_cv_sizeof_short
=cross
2988 cat > conftest.
$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2994 FILE *f=fopen("conftestval", "w");
2996 fprintf(f, "%d\n", sizeof(short));
3000 if { (eval echo configure
:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3002 ac_cv_sizeof_short
=`cat conftestval`
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 ac_cv_sizeof_short
=0
3013 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3014 cat >> confdefs.h
<<EOF
3015 #define SIZEOF_SHORT $ac_cv_sizeof_short
3020 echo $ac_n "checking for working const""... $ac_c" 1>&6
3021 echo "configure:3022: checking for working const" >&5
3022 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.
$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3031 /* Ultrix mips cc rejects this. */
3032 typedef int charset[2]; const charset x;
3033 /* SunOS 4.1.1 cc rejects this. */
3034 char const *const *ccp;
3036 /* NEC SVR4.0.2 mips cc rejects this. */
3037 struct point {int x, y;};
3038 static struct point const zero = {0,0};
3039 /* AIX XL C 1.02.0.0 rejects this.
3040 It does not let you subtract one const X* pointer from another in an arm
3041 of an if-expression whose if-part is not a constant expression */
3042 const char *g = "string";
3043 ccp = &g + (g ? g-g : 0);
3044 /* HPUX 7.0 cc rejects these. */
3047 ccp = (char const *const *) p;
3048 { /* SCO 3.2v4 cc rejects this. */
3050 char const *s = 0 ? (char *) 0 : (char const *) 0;
3054 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3056 const int *foo = &x[0];
3059 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3060 typedef const int *iptr;
3064 { /* AIX XL C 1.02.0.0 rejects this saying
3065 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3066 struct s { int j; const int *ap[3]; };
3067 struct s *b; b->j = 5;
3069 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3075 if { (eval echo configure
:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3079 echo "configure: failed program was:" >&5
3080 cat conftest.
$ac_ext >&5
3087 echo "$ac_t""$ac_cv_c_const" 1>&6
3088 if test $ac_cv_c_const = no
; then
3089 cat >> confdefs.h
<<\EOF
3095 echo $ac_n "checking for inline""... $ac_c" 1>&6
3096 echo "configure:3097: checking for inline" >&5
3097 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3101 for ac_kw
in inline __inline__ __inline
; do
3102 cat > conftest.
$ac_ext <<EOF
3103 #line 3104 "configure"
3104 #include "confdefs.h"
3110 if { (eval echo configure
:3111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 ac_cv_c_inline
=$ac_kw; break
3114 echo "configure: failed program was:" >&5
3115 cat conftest.
$ac_ext >&5
3122 echo "$ac_t""$ac_cv_c_inline" 1>&6
3123 case "$ac_cv_c_inline" in
3125 no
) cat >> confdefs.h
<<\EOF
3129 *) cat >> confdefs.h
<<EOF
3130 #define inline $ac_cv_c_inline
3135 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3136 echo "configure:3137: checking whether byte ordering is bigendian" >&5
3137 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 ac_cv_c_bigendian
=unknown
3141 # See if sys/param.h defines the BYTE_ORDER macro.
3142 cat > conftest.
$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <sys/types.h>
3146 #include <sys/param.h>
3149 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3154 if { (eval echo configure
:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3156 # It does; now see whether it defined to BIG_ENDIAN or not.
3157 cat > conftest.
$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 #include <sys/types.h>
3161 #include <sys/param.h>
3164 #if BYTE_ORDER != BIG_ENDIAN
3169 if { (eval echo configure
:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171 ac_cv_c_bigendian
=yes
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 ac_cv_c_bigendian
=no
3180 echo "configure: failed program was:" >&5
3181 cat conftest.
$ac_ext >&5
3184 if test $ac_cv_c_bigendian = unknown
; then
3185 if test "$cross_compiling" = yes; then
3186 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3188 cat > conftest.
$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3192 /* Are we little or big endian? From Harbison&Steele. */
3196 char c[sizeof (long)];
3199 exit (u.c[sizeof (long) - 1] == 1);
3202 if { (eval echo configure
:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3204 ac_cv_c_bigendian
=no
3206 echo "configure: failed program was:" >&5
3207 cat conftest.
$ac_ext >&5
3209 ac_cv_c_bigendian
=yes
3217 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3218 if test $ac_cv_c_bigendian = yes; then
3219 cat >> confdefs.h
<<\EOF
3220 #define WORDS_BIGENDIAN 1
3225 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3226 echo "configure:3227: checking whether char is unsigned" >&5
3227 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 if test "$GCC" = yes; then
3231 # GCC predefines this symbol on systems where it applies.
3232 cat > conftest.
$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #ifdef __CHAR_UNSIGNED__
3240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3241 egrep "yes" >/dev
/null
2>&1; then
3243 ac_cv_c_char_unsigned
=yes
3246 ac_cv_c_char_unsigned
=no
3251 if test "$cross_compiling" = yes; then
3252 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3254 cat > conftest.
$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3258 #if !defined(__STDC__) || __STDC__ != 1
3262 volatile char c = 255; exit(c < 0);
3265 if { (eval echo configure
:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3267 ac_cv_c_char_unsigned
=yes
3269 echo "configure: failed program was:" >&5
3270 cat conftest.
$ac_ext >&5
3272 ac_cv_c_char_unsigned
=no
3280 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3281 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3282 cat >> confdefs.h
<<\EOF
3283 #define __CHAR_UNSIGNED__ 1
3289 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3290 echo "configure:3291: checking return type of signal handlers" >&5
3291 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.
$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 #include <sys/types.h>
3303 extern "C" void (*signal (int, void (*)(int)))(int);
3305 void (*signal ()) ();
3312 if { (eval echo configure
:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314 ac_cv_type_signal
=void
3316 echo "configure: failed program was:" >&5
3317 cat conftest.
$ac_ext >&5
3319 ac_cv_type_signal
=int
3324 echo "$ac_t""$ac_cv_type_signal" 1>&6
3325 cat >> confdefs.h
<<EOF
3326 #define RETSIGTYPE $ac_cv_type_signal
3330 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3331 echo "configure:3332: checking for uid_t in sys/types.h" >&5
3332 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 cat > conftest.
$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 #include <sys/types.h>
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "uid_t" >/dev
/null
2>&1; then
3343 ac_cv_type_uid_t
=yes
3352 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3353 if test $ac_cv_type_uid_t = no
; then
3354 cat >> confdefs.h
<<\EOF
3358 cat >> confdefs.h
<<\EOF
3364 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3365 echo "configure:3366: checking for mode_t" >&5
3366 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 cat > conftest.
$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <sys/types.h>
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3381 ac_cv_type_mode_t
=yes
3384 ac_cv_type_mode_t
=no
3389 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3390 if test $ac_cv_type_mode_t = no
; then
3391 cat >> confdefs.h
<<\EOF
3397 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3398 echo "configure:3399: checking for off_t" >&5
3399 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 cat > conftest.
$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3405 #include <sys/types.h>
3411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3412 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3414 ac_cv_type_off_t
=yes
3422 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3423 if test $ac_cv_type_off_t = no
; then
3424 cat >> confdefs.h
<<\EOF
3430 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3431 echo "configure:3432: checking for size_t" >&5
3432 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 cat > conftest.
$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include <sys/types.h>
3444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3447 ac_cv_type_size_t
=yes
3450 ac_cv_type_size_t
=no
3455 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3456 if test $ac_cv_type_size_t = no
; then
3457 cat >> confdefs.h
<<\EOF
3458 #define size_t unsigned
3463 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3464 echo "configure:3465: checking for pid_t" >&5
3465 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftest.
$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 #include <sys/types.h>
3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3480 ac_cv_type_pid_t
=yes
3488 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3489 if test $ac_cv_type_pid_t = no
; then
3490 cat >> confdefs.h
<<\EOF
3496 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3497 echo "configure:3498: checking for st_rdev in struct stat" >&5
3498 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.
$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <sys/types.h>
3505 #include <sys/stat.h>
3507 struct stat s; s.st_rdev;
3510 if { (eval echo configure
:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512 ac_cv_struct_st_rdev
=yes
3514 echo "configure: failed program was:" >&5
3515 cat conftest.
$ac_ext >&5
3517 ac_cv_struct_st_rdev
=no
3522 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3523 if test $ac_cv_struct_st_rdev = yes; then
3524 cat >> confdefs.h
<<\EOF
3525 #define HAVE_ST_RDEV 1
3530 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3531 echo "configure:3532: checking for d_off in dirent" >&5
3532 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3535 cat > conftest.
$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3540 #include <sys/types.h>
3543 struct dirent d; d.d_off;
3546 if { (eval echo configure
:3547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3548 ac_cv_dirent_d_off
=yes
3550 echo "configure: failed program was:" >&5
3551 cat conftest.
$ac_ext >&5
3553 ac_cv_dirent_d_off
=no
3558 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3559 if test $ac_cv_dirent_d_off = yes; then
3560 cat >> confdefs.h
<<\EOF
3561 #define HAVE_DIRENT_D_OFF 1
3566 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3567 echo "configure:3568: checking for ino_t" >&5
3568 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 cat > conftest.
$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <sys/types.h>
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3583 ac_cv_type_ino_t
=yes
3591 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3592 if test $ac_cv_type_ino_t = no
; then
3593 cat >> confdefs.h
<<\EOF
3594 #define ino_t unsigned
3599 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3600 echo "configure:3601: checking for loff_t" >&5
3601 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 cat > conftest.
$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 #include <sys/types.h>
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3616 ac_cv_type_loff_t
=yes
3619 ac_cv_type_loff_t
=no
3624 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3625 if test $ac_cv_type_loff_t = no
; then
3626 cat >> confdefs.h
<<\EOF
3627 #define loff_t off_t
3632 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3633 echo "configure:3634: checking for offset_t" >&5
3634 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 cat > conftest.
$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <sys/types.h>
3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3649 ac_cv_type_offset_t
=yes
3652 ac_cv_type_offset_t
=no
3657 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3658 if test $ac_cv_type_offset_t = no
; then
3659 cat >> confdefs.h
<<\EOF
3660 #define offset_t loff_t
3665 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3666 echo "configure:3667: checking for ssize_t" >&5
3667 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 cat > conftest.
$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <sys/types.h>
3679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3680 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3682 ac_cv_type_ssize_t
=yes
3685 ac_cv_type_ssize_t
=no
3690 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3691 if test $ac_cv_type_ssize_t = no
; then
3692 cat >> confdefs.h
<<\EOF
3698 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3699 echo "configure:3700: checking for wchar_t" >&5
3700 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 cat > conftest.
$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 #include <sys/types.h>
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3715 ac_cv_type_wchar_t
=yes
3718 ac_cv_type_wchar_t
=no
3723 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3724 if test $ac_cv_type_wchar_t = no
; then
3725 cat >> confdefs.h
<<\EOF
3726 #define wchar_t unsigned short
3732 ############################################
3733 # for cups support we need libcups, and a handful of header files
3735 # Check whether --enable-cups or --disable-cups was given.
3736 if test "${enable_cups+set}" = set; then
3737 enableval
="$enable_cups"
3742 if test x
$enable_cups != xno
; then
3743 # Extract the first word of "cups-config", so it can be a program name with args.
3744 set dummy cups-config
; ac_word
=$2
3745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3746 echo "configure:3747: checking for $ac_word" >&5
3747 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 case "$CUPS_CONFIG" in
3752 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3755 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3760 for ac_dir
in $ac_dummy; do
3761 test -z "$ac_dir" && ac_dir
=.
3762 if test -f $ac_dir/$ac_word; then
3763 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3771 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3772 if test -n "$CUPS_CONFIG"; then
3773 echo "$ac_t""$CUPS_CONFIG" 1>&6
3775 echo "$ac_t""no" 1>&6
3779 if test "x$CUPS_CONFIG" != x
; then
3780 cat >> confdefs.h
<<\EOF
3784 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3785 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3786 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3790 ############################################
3791 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3792 for ac_func
in dlopen
3794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3795 echo "configure:3796: checking for $ac_func" >&5
3796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3799 cat > conftest.
$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 /* System header to define __stub macros and hopefully few prototypes,
3803 which can conflict with char $ac_func(); below. */
3805 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3812 /* The GNU C library defines this for functions which it implements
3813 to always fail with ENOSYS. Some functions are actually named
3814 something starting with __ and the normal name is an alias. */
3815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3823 if { (eval echo configure
:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3825 eval "ac_cv_func_$ac_func=yes"
3827 echo "configure: failed program was:" >&5
3828 cat conftest.
$ac_ext >&5
3830 eval "ac_cv_func_$ac_func=no"
3835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3836 echo "$ac_t""yes" 1>&6
3837 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3838 cat >> confdefs.h
<<EOF
3839 #define $ac_tr_func 1
3843 echo "$ac_t""no" 1>&6
3847 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3848 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3849 echo "configure:3850: checking for dlopen in -ldl" >&5
3850 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3854 ac_save_LIBS
="$LIBS"
3856 cat > conftest.
$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3859 /* Override any gcc2 internal prototype to avoid an error. */
3860 /* We use char because int might match the return type of a gcc2
3861 builtin and then its argument prototype would still apply. */
3868 if { (eval echo configure
:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3870 eval "ac_cv_lib_$ac_lib_var=yes"
3872 echo "configure: failed program was:" >&5
3873 cat conftest.
$ac_ext >&5
3875 eval "ac_cv_lib_$ac_lib_var=no"
3878 LIBS
="$ac_save_LIBS"
3881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3882 echo "$ac_t""yes" 1>&6
3884 cat >> confdefs.h
<<\EOF
3885 #define HAVE_DLOPEN 1
3889 echo "$ac_t""no" 1>&6
3893 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3895 ############################################
3896 # check if the compiler can do immediate structures
3897 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3898 echo "configure:3899: checking for immediate structures" >&5
3899 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3910 typedef struct {unsigned x;} FOOBAR;
3911 #define X_FOOBAR(x) ((FOOBAR) { x })
3912 #define FOO_ONE X_FOOBAR(1)
3922 if { (eval echo configure
:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 samba_cv_immediate_structures
=yes
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3929 samba_cv_immediate_structures
=no
3934 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3935 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3936 cat >> confdefs.h
<<\EOF
3937 #define HAVE_IMMEDIATE_STRUCTURES 1
3942 ############################################
3943 # check for unix domain sockets
3944 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3945 echo "configure:3946: checking for unix domain sockets" >&5
3946 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.
$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3954 #include <sys/types.h>
3957 #include <sys/socket.h>
3961 struct sockaddr_un sunaddr;
3962 sunaddr.sun_family = AF_UNIX;
3966 if { (eval echo configure
:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 samba_cv_unixsocket
=yes
3970 echo "configure: failed program was:" >&5
3971 cat conftest.
$ac_ext >&5
3973 samba_cv_unixsocket
=no
3978 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3979 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3980 cat >> confdefs.h
<<\EOF
3981 #define HAVE_UNIXSOCKET 1
3986 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3987 echo "configure:3988: checking for socklen_t type" >&5
3988 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3992 cat > conftest.
$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3996 #include <sys/types.h>
4001 #include <sys/socket.h>
4006 if { (eval echo configure
:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4008 samba_cv_socklen_t
=yes
4010 echo "configure: failed program was:" >&5
4011 cat conftest.
$ac_ext >&5
4013 samba_cv_socklen_t
=no
4018 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4019 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4020 cat >> confdefs.h
<<\EOF
4021 #define HAVE_SOCKLEN_T_TYPE 1
4026 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4027 echo "configure:4028: checking for sig_atomic_t type" >&5
4028 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4032 cat > conftest.
$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4036 #include <sys/types.h>
4046 if { (eval echo configure
:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4048 samba_cv_sig_atomic_t
=yes
4050 echo "configure: failed program was:" >&5
4051 cat conftest.
$ac_ext >&5
4053 samba_cv_sig_atomic_t
=no
4058 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4059 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4060 cat >> confdefs.h
<<\EOF
4061 #define HAVE_SIG_ATOMIC_T_TYPE 1
4066 # stupid headers have the functions but no declaration. grrrr.
4068 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4069 echo "configure:4070: checking for errno declaration" >&5
4070 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4074 cat > conftest.
$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4082 if { (eval echo configure
:4083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4084 ac_cv_have_errno_decl
=yes
4086 echo "configure: failed program was:" >&5
4087 cat conftest.
$ac_ext >&5
4089 ac_cv_have_errno_decl
=no
4094 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4095 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4096 cat >> confdefs.h
<<\EOF
4097 #define HAVE_ERRNO_DECL 1
4103 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4104 echo "configure:4105: checking for setresuid declaration" >&5
4105 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4109 cat > conftest.
$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4114 int i = (int)setresuid
4117 if { (eval echo configure
:4118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4119 ac_cv_have_setresuid_decl
=yes
4121 echo "configure: failed program was:" >&5
4122 cat conftest.
$ac_ext >&5
4124 ac_cv_have_setresuid_decl
=no
4129 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4130 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4131 cat >> confdefs.h
<<\EOF
4132 #define HAVE_SETRESUID_DECL 1
4138 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4139 echo "configure:4140: checking for setresgid declaration" >&5
4140 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4144 cat > conftest.
$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4149 int i = (int)setresgid
4152 if { (eval echo configure
:4153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4154 ac_cv_have_setresgid_decl
=yes
4156 echo "configure: failed program was:" >&5
4157 cat conftest.
$ac_ext >&5
4159 ac_cv_have_setresgid_decl
=no
4164 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4165 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4166 cat >> confdefs.h
<<\EOF
4167 #define HAVE_SETRESGID_DECL 1
4173 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4174 echo "configure:4175: checking for asprintf declaration" >&5
4175 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4179 cat > conftest.
$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4184 int i = (int)asprintf
4187 if { (eval echo configure
:4188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4189 ac_cv_have_asprintf_decl
=yes
4191 echo "configure: failed program was:" >&5
4192 cat conftest.
$ac_ext >&5
4194 ac_cv_have_asprintf_decl
=no
4199 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4200 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4201 cat >> confdefs.h
<<\EOF
4202 #define HAVE_ASPRINTF_DECL 1
4208 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4209 echo "configure:4210: checking for vasprintf declaration" >&5
4210 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4214 cat > conftest.
$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4219 int i = (int)vasprintf
4222 if { (eval echo configure
:4223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4224 ac_cv_have_vasprintf_decl
=yes
4226 echo "configure: failed program was:" >&5
4227 cat conftest.
$ac_ext >&5
4229 ac_cv_have_vasprintf_decl
=no
4234 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4235 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4236 cat >> confdefs.h
<<\EOF
4237 #define HAVE_VASPRINTF_DECL 1
4243 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4244 echo "configure:4245: checking for vsnprintf declaration" >&5
4245 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4249 cat > conftest.
$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4254 int i = (int)vsnprintf
4257 if { (eval echo configure
:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4259 ac_cv_have_vsnprintf_decl
=yes
4261 echo "configure: failed program was:" >&5
4262 cat conftest.
$ac_ext >&5
4264 ac_cv_have_vsnprintf_decl
=no
4269 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4270 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4271 cat >> confdefs.h
<<\EOF
4272 #define HAVE_VSNPRINTF_DECL 1
4278 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4279 echo "configure:4280: checking for snprintf declaration" >&5
4280 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > conftest.
$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4289 int i = (int)snprintf
4292 if { (eval echo configure
:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4294 ac_cv_have_snprintf_decl
=yes
4296 echo "configure: failed program was:" >&5
4297 cat conftest.
$ac_ext >&5
4299 ac_cv_have_snprintf_decl
=no
4304 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4305 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4306 cat >> confdefs.h
<<\EOF
4307 #define HAVE_SNPRINTF_DECL 1
4313 # and glibc has setresuid under linux but the function does
4314 # nothing until kernel 2.1.44! very dumb.
4315 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4316 echo "configure:4317: checking for real setresuid" >&5
4317 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4321 if test "$cross_compiling" = yes; then
4322 samba_cv_have_setresuid
=cross
4324 cat > conftest.
$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4328 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4330 if { (eval echo configure
:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4332 samba_cv_have_setresuid
=yes
4334 echo "configure: failed program was:" >&5
4335 cat conftest.
$ac_ext >&5
4337 samba_cv_have_setresuid
=no
4344 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4345 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4346 cat >> confdefs.h
<<\EOF
4347 #define HAVE_SETRESUID 1
4352 # Do the same check for setresguid...
4354 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4355 echo "configure:4356: checking for real setresgid" >&5
4356 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4360 if test "$cross_compiling" = yes; then
4361 samba_cv_have_setresgid
=cross
4363 cat > conftest.
$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4368 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4370 if { (eval echo configure
:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4372 samba_cv_have_setresgid
=yes
4374 echo "configure: failed program was:" >&5
4375 cat conftest.
$ac_ext >&5
4377 samba_cv_have_setresgid
=no
4384 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4385 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4386 cat >> confdefs.h
<<\EOF
4387 #define HAVE_SETRESGID 1
4392 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4393 echo "configure:4394: checking for 8-bit clean memcmp" >&5
4394 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 if test "$cross_compiling" = yes; then
4398 ac_cv_func_memcmp_clean
=no
4400 cat > conftest.
$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4406 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4407 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4411 if { (eval echo configure
:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4413 ac_cv_func_memcmp_clean
=yes
4415 echo "configure: failed program was:" >&5
4416 cat conftest.
$ac_ext >&5
4418 ac_cv_func_memcmp_clean
=no
4425 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4426 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4429 ###############################################
4430 # Readline included by default unless explicitly asked not to
4431 test "${with_readline+set}" != "set" && with_readline
=yes
4433 # test for where we get readline() from
4434 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4435 echo "configure:4436: checking whether to use readline" >&5
4436 # Check whether --with-readline or --without-readline was given.
4437 if test "${with_readline+set}" = set; then
4438 withval
="$with_readline"
4439 case "$with_readline" in
4441 echo "$ac_t""yes" 1>&6
4443 for ac_hdr
in readline.h
history.h readline
/readline.h
4445 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_hdr" >&5
4448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 cat > conftest.
$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4456 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4457 { (eval echo configure
:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4458 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4459 if test -z "$ac_err"; then
4461 eval "ac_cv_header_$ac_safe=yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.
$ac_ext >&5
4467 eval "ac_cv_header_$ac_safe=no"
4471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4474 cat >> confdefs.h
<<EOF
4475 #define $ac_tr_hdr 1
4479 echo "$ac_t""no" 1>&6
4483 for ac_hdr
in readline
/history.h
4485 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.
$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure
:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4501 eval "ac_cv_header_$ac_safe=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.
$ac_ext >&5
4507 eval "ac_cv_header_$ac_safe=no"
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h
<<EOF
4515 #define $ac_tr_hdr 1
4519 echo "$ac_t""no" 1>&6
4524 for ac_hdr
in readline.h readline
/readline.h
4526 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_hdr" >&5
4529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 cat > conftest.
$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4537 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4538 { (eval echo configure
:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4539 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4540 if test -z "$ac_err"; then
4542 eval "ac_cv_header_$ac_safe=yes"
4545 echo "configure: failed program was:" >&5
4546 cat conftest.
$ac_ext >&5
4548 eval "ac_cv_header_$ac_safe=no"
4552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4553 echo "$ac_t""yes" 1>&6
4554 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4555 cat >> confdefs.h
<<EOF
4556 #define $ac_tr_hdr 1
4559 for termlib
in ncurses curses termcap terminfo termlib
; do
4560 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4561 echo "configure:4562: checking for tgetent in -l${termlib}" >&5
4562 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 ac_save_LIBS
="$LIBS"
4567 LIBS
="-l${termlib} $LIBS"
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 /* Override any gcc2 internal prototype to avoid an error. */
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4580 if { (eval echo configure
:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4582 eval "ac_cv_lib_$ac_lib_var=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.
$ac_ext >&5
4587 eval "ac_cv_lib_$ac_lib_var=no"
4590 LIBS
="$ac_save_LIBS"
4593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4595 TERMLIBS
="-l${termlib}"; break
4597 echo "$ac_t""no" 1>&6
4601 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4602 echo "configure:4603: checking for rl_callback_handler_install in -lreadline" >&5
4603 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 ac_save_LIBS
="$LIBS"
4608 LIBS
="-lreadline $TERMLIBS $LIBS"
4609 cat > conftest.
$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4615 char rl_callback_handler_install();
4618 rl_callback_handler_install()
4621 if { (eval echo configure
:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4623 eval "ac_cv_lib_$ac_lib_var=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.
$ac_ext >&5
4628 eval "ac_cv_lib_$ac_lib_var=no"
4631 LIBS
="$ac_save_LIBS"
4634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 TERMLIBS
="-lreadline $TERMLIBS"
4637 cat >> confdefs.h
<<\EOF
4638 #define HAVE_LIBREADLINE 1
4643 echo "$ac_t""no" 1>&6
4648 echo "$ac_t""no" 1>&6
4654 echo "$ac_t""no" 1>&6
4657 echo "$ac_t""yes" 1>&6
4659 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4660 # alternate readline path
4662 _cppflags
=${CPPFLAGS}
4664 # Add additional search path
4665 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4666 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4668 for ac_hdr
in readline.h
history.h readline
/readline.h
4670 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4672 echo "configure:4673: checking for $ac_hdr" >&5
4673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.
$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4681 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4682 { (eval echo configure
:4683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4683 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4684 if test -z "$ac_err"; then
4686 eval "ac_cv_header_$ac_safe=yes"
4689 echo "configure: failed program was:" >&5
4690 cat conftest.
$ac_ext >&5
4692 eval "ac_cv_header_$ac_safe=no"
4696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4699 cat >> confdefs.h
<<EOF
4700 #define $ac_tr_hdr 1
4704 echo "$ac_t""no" 1>&6
4708 for ac_hdr
in readline
/history.h
4710 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4712 echo "configure:4713: checking for $ac_hdr" >&5
4713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 cat > conftest.
$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4722 { (eval echo configure
:4723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4723 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4724 if test -z "$ac_err"; then
4726 eval "ac_cv_header_$ac_safe=yes"
4729 echo "configure: failed program was:" >&5
4730 cat conftest.
$ac_ext >&5
4732 eval "ac_cv_header_$ac_safe=no"
4736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4739 cat >> confdefs.h
<<EOF
4740 #define $ac_tr_hdr 1
4744 echo "$ac_t""no" 1>&6
4749 for ac_hdr
in readline.h readline
/readline.h
4751 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_hdr" >&5
4754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.
$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4762 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4763 { (eval echo configure
:4764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4764 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4765 if test -z "$ac_err"; then
4767 eval "ac_cv_header_$ac_safe=yes"
4770 echo "configure: failed program was:" >&5
4771 cat conftest.
$ac_ext >&5
4773 eval "ac_cv_header_$ac_safe=no"
4777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4779 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4780 cat >> confdefs.h
<<EOF
4781 #define $ac_tr_hdr 1
4784 for termlib
in ncurses curses termcap terminfo termlib
; do
4785 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4786 echo "configure:4787: checking for tgetent in -l${termlib}" >&5
4787 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4791 ac_save_LIBS
="$LIBS"
4792 LIBS
="-l${termlib} $LIBS"
4793 cat > conftest.
$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4805 if { (eval echo configure
:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4807 eval "ac_cv_lib_$ac_lib_var=yes"
4809 echo "configure: failed program was:" >&5
4810 cat conftest.
$ac_ext >&5
4812 eval "ac_cv_lib_$ac_lib_var=no"
4815 LIBS
="$ac_save_LIBS"
4818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6
4820 TERMLIBS
="-l${termlib}"; break
4822 echo "$ac_t""no" 1>&6
4826 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4827 echo "configure:4828: checking for rl_callback_handler_install in -lreadline" >&5
4828 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 ac_save_LIBS
="$LIBS"
4833 LIBS
="-lreadline $TERMLIBS $LIBS"
4834 cat > conftest.
$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 /* Override any gcc2 internal prototype to avoid an error. */
4838 /* We use char because int might match the return type of a gcc2
4839 builtin and then its argument prototype would still apply. */
4840 char rl_callback_handler_install();
4843 rl_callback_handler_install()
4846 if { (eval echo configure
:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4848 eval "ac_cv_lib_$ac_lib_var=yes"
4850 echo "configure: failed program was:" >&5
4851 cat conftest.
$ac_ext >&5
4853 eval "ac_cv_lib_$ac_lib_var=no"
4856 LIBS
="$ac_save_LIBS"
4859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4860 echo "$ac_t""yes" 1>&6
4861 TERMLDFLAGS
="-L$with_readline/lib"
4862 TERMCPPFLAGS
="-I$with_readline/include"
4863 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4864 TERMLIBS
="-lreadline $TERMLIBS"
4865 cat >> confdefs.h
<<\EOF
4866 #define HAVE_LIBREADLINE 1
4871 echo "$ac_t""no" 1>&6
4872 TERMLIBS
= CPPFLAGS
=$_cppflags
4876 echo "$ac_t""no" 1>&6
4885 echo "$ac_t""no" 1>&6
4892 # The following test taken from the cvs sources
4893 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4894 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4895 # libsocket.so which has a bad implementation of gethostbyname (it
4896 # only looks in /etc/hosts), so we only look for -lsocket if we need
4898 for ac_func
in connect
4900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4901 echo "configure:4902: checking for $ac_func" >&5
4902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 cat > conftest.
$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char $ac_func(); below. */
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4918 /* The GNU C library defines this for functions which it implements
4919 to always fail with ENOSYS. Some functions are actually named
4920 something starting with __ and the normal name is an alias. */
4921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4929 if { (eval echo configure
:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4931 eval "ac_cv_func_$ac_func=yes"
4933 echo "configure: failed program was:" >&5
4934 cat conftest.
$ac_ext >&5
4936 eval "ac_cv_func_$ac_func=no"
4941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4944 cat >> confdefs.h
<<EOF
4945 #define $ac_tr_func 1
4949 echo "$ac_t""no" 1>&6
4953 if test x
"$ac_cv_func_connect" = x
"no"; then
4956 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4957 echo "configure:4958: checking for printf in -lnsl_s" >&5
4958 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 ac_save_LIBS
="$LIBS"
4963 LIBS
="-lnsl_s $LIBS"
4964 cat > conftest.
$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4976 if { (eval echo configure
:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4978 eval "ac_cv_lib_$ac_lib_var=yes"
4980 echo "configure: failed program was:" >&5
4981 cat conftest.
$ac_ext >&5
4983 eval "ac_cv_lib_$ac_lib_var=no"
4986 LIBS
="$ac_save_LIBS"
4989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4992 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4993 cat >> confdefs.h
<<EOF
4994 #define $ac_tr_lib 1
4997 LIBS
="-lnsl_s $LIBS"
5000 echo "$ac_t""no" 1>&6
5006 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5007 echo "configure:5008: checking for printf in -lnsl" >&5
5008 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 ac_save_LIBS
="$LIBS"
5014 cat > conftest.
$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5017 /* Override any gcc2 internal prototype to avoid an error. */
5018 /* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
5026 if { (eval echo configure
:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5028 eval "ac_cv_lib_$ac_lib_var=yes"
5030 echo "configure: failed program was:" >&5
5031 cat conftest.
$ac_ext >&5
5033 eval "ac_cv_lib_$ac_lib_var=no"
5036 LIBS
="$ac_save_LIBS"
5039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5043 cat >> confdefs.h
<<EOF
5044 #define $ac_tr_lib 1
5050 echo "$ac_t""no" 1>&6
5056 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5057 echo "configure:5058: checking for connect in -lsocket" >&5
5058 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5062 ac_save_LIBS
="$LIBS"
5063 LIBS
="-lsocket $LIBS"
5064 cat > conftest.
$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5076 if { (eval echo configure
:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5078 eval "ac_cv_lib_$ac_lib_var=yes"
5080 echo "configure: failed program was:" >&5
5081 cat conftest.
$ac_ext >&5
5083 eval "ac_cv_lib_$ac_lib_var=no"
5086 LIBS
="$ac_save_LIBS"
5089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5091 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5092 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5093 cat >> confdefs.h
<<EOF
5094 #define $ac_tr_lib 1
5097 LIBS
="-lsocket $LIBS"
5100 echo "$ac_t""no" 1>&6
5106 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5107 echo "configure:5108: checking for connect in -linet" >&5
5108 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5112 ac_save_LIBS
="$LIBS"
5114 cat > conftest.
$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117 /* Override any gcc2 internal prototype to avoid an error. */
5118 /* We use char because int might match the return type of a gcc2
5119 builtin and then its argument prototype would still apply. */
5126 if { (eval echo configure
:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5128 eval "ac_cv_lib_$ac_lib_var=yes"
5130 echo "configure: failed program was:" >&5
5131 cat conftest.
$ac_ext >&5
5133 eval "ac_cv_lib_$ac_lib_var=no"
5136 LIBS
="$ac_save_LIBS"
5139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5140 echo "$ac_t""yes" 1>&6
5141 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5143 cat >> confdefs.h
<<EOF
5144 #define $ac_tr_lib 1
5150 echo "$ac_t""no" 1>&6
5154 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5155 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5156 # ac_cv_func_connect=yes
5157 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5158 cat >> confdefs.h
<<\EOF
5159 #define HAVE_CONNECT 1
5165 ###############################################
5166 # test for where we get get_yp_default_domain() from
5167 for ac_func
in yp_get_default_domain
5169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5170 echo "configure:5171: checking for $ac_func" >&5
5171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 cat > conftest.
$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 /* System header to define __stub macros and hopefully few prototypes,
5178 which can conflict with char $ac_func(); below. */
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5187 /* The GNU C library defines this for functions which it implements
5188 to always fail with ENOSYS. Some functions are actually named
5189 something starting with __ and the normal name is an alias. */
5190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198 if { (eval echo configure
:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5200 eval "ac_cv_func_$ac_func=yes"
5202 echo "configure: failed program was:" >&5
5203 cat conftest.
$ac_ext >&5
5205 eval "ac_cv_func_$ac_func=no"
5210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5213 cat >> confdefs.h
<<EOF
5214 #define $ac_tr_func 1
5218 echo "$ac_t""no" 1>&6
5222 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5223 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5224 echo "configure:5225: checking for yp_get_default_domain in -lnsl" >&5
5225 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 ac_save_LIBS
="$LIBS"
5231 cat > conftest.
$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5237 char yp_get_default_domain();
5240 yp_get_default_domain()
5243 if { (eval echo configure
:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5245 eval "ac_cv_lib_$ac_lib_var=yes"
5247 echo "configure: failed program was:" >&5
5248 cat conftest.
$ac_ext >&5
5250 eval "ac_cv_lib_$ac_lib_var=no"
5253 LIBS
="$ac_save_LIBS"
5256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5257 echo "$ac_t""yes" 1>&6
5259 cat >> confdefs.h
<<\EOF
5260 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5264 echo "$ac_t""no" 1>&6
5269 # Check if we have execl, if not we need to compile smbrun.
5270 for ac_func
in execl
5272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5273 echo "configure:5274: checking for $ac_func" >&5
5274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 cat > conftest.
$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280 /* System header to define __stub macros and hopefully few prototypes,
5281 which can conflict with char $ac_func(); below. */
5283 /* Override any gcc2 internal prototype to avoid an error. */
5284 /* We use char because int might match the return type of a gcc2
5285 builtin and then its argument prototype would still apply. */
5290 /* The GNU C library defines this for functions which it implements
5291 to always fail with ENOSYS. Some functions are actually named
5292 something starting with __ and the normal name is an alias. */
5293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5301 if { (eval echo configure
:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5303 eval "ac_cv_func_$ac_func=yes"
5305 echo "configure: failed program was:" >&5
5306 cat conftest.
$ac_ext >&5
5308 eval "ac_cv_func_$ac_func=no"
5313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5314 echo "$ac_t""yes" 1>&6
5315 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5316 cat >> confdefs.h
<<EOF
5317 #define $ac_tr_func 1
5321 echo "$ac_t""no" 1>&6
5325 if test x
"$ac_cv_func_execl" = x
"no"; then
5326 RUNPROG
="bin/smbrun"
5331 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5334 echo "configure:5335: checking for $ac_func" >&5
5335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5338 cat > conftest.
$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5341 /* System header to define __stub macros and hopefully few prototypes,
5342 which can conflict with char $ac_func(); below. */
5344 /* Override any gcc2 internal prototype to avoid an error. */
5345 /* We use char because int might match the return type of a gcc2
5346 builtin and then its argument prototype would still apply. */
5351 /* The GNU C library defines this for functions which it implements
5352 to always fail with ENOSYS. Some functions are actually named
5353 something starting with __ and the normal name is an alias. */
5354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5362 if { (eval echo configure
:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5364 eval "ac_cv_func_$ac_func=yes"
5366 echo "configure: failed program was:" >&5
5367 cat conftest.
$ac_ext >&5
5369 eval "ac_cv_func_$ac_func=no"
5374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5375 echo "$ac_t""yes" 1>&6
5376 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5377 cat >> confdefs.h
<<EOF
5378 #define $ac_tr_func 1
5382 echo "$ac_t""no" 1>&6
5386 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5389 echo "configure:5390: checking for $ac_func" >&5
5390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 cat > conftest.
$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5396 /* System header to define __stub macros and hopefully few prototypes,
5397 which can conflict with char $ac_func(); below. */
5399 /* Override any gcc2 internal prototype to avoid an error. */
5400 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */
5406 /* The GNU C library defines this for functions which it implements
5407 to always fail with ENOSYS. Some functions are actually named
5408 something starting with __ and the normal name is an alias. */
5409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5417 if { (eval echo configure
:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5419 eval "ac_cv_func_$ac_func=yes"
5421 echo "configure: failed program was:" >&5
5422 cat conftest.
$ac_ext >&5
5424 eval "ac_cv_func_$ac_func=no"
5429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5430 echo "$ac_t""yes" 1>&6
5431 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5432 cat >> confdefs.h
<<EOF
5433 #define $ac_tr_func 1
5437 echo "$ac_t""no" 1>&6
5441 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5444 echo "configure:5445: checking for $ac_func" >&5
5445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 cat > conftest.
$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5451 /* System header to define __stub macros and hopefully few prototypes,
5452 which can conflict with char $ac_func(); below. */
5454 /* Override any gcc2 internal prototype to avoid an error. */
5455 /* We use char because int might match the return type of a gcc2
5456 builtin and then its argument prototype would still apply. */
5461 /* The GNU C library defines this for functions which it implements
5462 to always fail with ENOSYS. Some functions are actually named
5463 something starting with __ and the normal name is an alias. */
5464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5472 if { (eval echo configure
:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5474 eval "ac_cv_func_$ac_func=yes"
5476 echo "configure: failed program was:" >&5
5477 cat conftest.
$ac_ext >&5
5479 eval "ac_cv_func_$ac_func=no"
5484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5486 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5487 cat >> confdefs.h
<<EOF
5488 #define $ac_tr_func 1
5492 echo "$ac_t""no" 1>&6
5496 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5499 echo "configure:5500: checking for $ac_func" >&5
5500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5503 cat > conftest.
$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 /* System header to define __stub macros and hopefully few prototypes,
5507 which can conflict with char $ac_func(); below. */
5509 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5516 /* The GNU C library defines this for functions which it implements
5517 to always fail with ENOSYS. Some functions are actually named
5518 something starting with __ and the normal name is an alias. */
5519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5527 if { (eval echo configure
:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5529 eval "ac_cv_func_$ac_func=yes"
5531 echo "configure: failed program was:" >&5
5532 cat conftest.
$ac_ext >&5
5534 eval "ac_cv_func_$ac_func=no"
5539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5540 echo "$ac_t""yes" 1>&6
5541 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5542 cat >> confdefs.h
<<EOF
5543 #define $ac_tr_func 1
5547 echo "$ac_t""no" 1>&6
5551 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5554 echo "configure:5555: checking for $ac_func" >&5
5555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5558 cat > conftest.
$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 /* System header to define __stub macros and hopefully few prototypes,
5562 which can conflict with char $ac_func(); below. */
5564 /* Override any gcc2 internal prototype to avoid an error. */
5565 /* We use char because int might match the return type of a gcc2
5566 builtin and then its argument prototype would still apply. */
5571 /* The GNU C library defines this for functions which it implements
5572 to always fail with ENOSYS. Some functions are actually named
5573 something starting with __ and the normal name is an alias. */
5574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5582 if { (eval echo configure
:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5584 eval "ac_cv_func_$ac_func=yes"
5586 echo "configure: failed program was:" >&5
5587 cat conftest.
$ac_ext >&5
5589 eval "ac_cv_func_$ac_func=no"
5594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5595 echo "$ac_t""yes" 1>&6
5596 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5597 cat >> confdefs.h
<<EOF
5598 #define $ac_tr_func 1
5602 echo "$ac_t""no" 1>&6
5606 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5609 echo "configure:5610: checking for $ac_func" >&5
5610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5613 cat > conftest.
$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5616 /* System header to define __stub macros and hopefully few prototypes,
5617 which can conflict with char $ac_func(); below. */
5619 /* Override any gcc2 internal prototype to avoid an error. */
5620 /* We use char because int might match the return type of a gcc2
5621 builtin and then its argument prototype would still apply. */
5626 /* The GNU C library defines this for functions which it implements
5627 to always fail with ENOSYS. Some functions are actually named
5628 something starting with __ and the normal name is an alias. */
5629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5637 if { (eval echo configure
:5638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5639 eval "ac_cv_func_$ac_func=yes"
5641 echo "configure: failed program was:" >&5
5642 cat conftest.
$ac_ext >&5
5644 eval "ac_cv_func_$ac_func=no"
5649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5650 echo "$ac_t""yes" 1>&6
5651 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5652 cat >> confdefs.h
<<EOF
5653 #define $ac_tr_func 1
5657 echo "$ac_t""no" 1>&6
5661 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5664 echo "configure:5665: checking for $ac_func" >&5
5665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5666 echo $ac_n "(cached) $ac_c" 1>&6
5668 cat > conftest.
$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5671 /* System header to define __stub macros and hopefully few prototypes,
5672 which can conflict with char $ac_func(); below. */
5674 /* Override any gcc2 internal prototype to avoid an error. */
5675 /* We use char because int might match the return type of a gcc2
5676 builtin and then its argument prototype would still apply. */
5681 /* The GNU C library defines this for functions which it implements
5682 to always fail with ENOSYS. Some functions are actually named
5683 something starting with __ and the normal name is an alias. */
5684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5692 if { (eval echo configure
:5693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5694 eval "ac_cv_func_$ac_func=yes"
5696 echo "configure: failed program was:" >&5
5697 cat conftest.
$ac_ext >&5
5699 eval "ac_cv_func_$ac_func=no"
5704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5705 echo "$ac_t""yes" 1>&6
5706 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5707 cat >> confdefs.h
<<EOF
5708 #define $ac_tr_func 1
5712 echo "$ac_t""no" 1>&6
5716 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5719 echo "configure:5720: checking for $ac_func" >&5
5720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5723 cat > conftest.
$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5726 /* System header to define __stub macros and hopefully few prototypes,
5727 which can conflict with char $ac_func(); below. */
5729 /* Override any gcc2 internal prototype to avoid an error. */
5730 /* We use char because int might match the return type of a gcc2
5731 builtin and then its argument prototype would still apply. */
5736 /* The GNU C library defines this for functions which it implements
5737 to always fail with ENOSYS. Some functions are actually named
5738 something starting with __ and the normal name is an alias. */
5739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5747 if { (eval echo configure
:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5749 eval "ac_cv_func_$ac_func=yes"
5751 echo "configure: failed program was:" >&5
5752 cat conftest.
$ac_ext >&5
5754 eval "ac_cv_func_$ac_func=no"
5759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5760 echo "$ac_t""yes" 1>&6
5761 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5762 cat >> confdefs.h
<<EOF
5763 #define $ac_tr_func 1
5767 echo "$ac_t""no" 1>&6
5771 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5774 echo "configure:5775: checking for $ac_func" >&5
5775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5778 cat > conftest.
$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5781 /* System header to define __stub macros and hopefully few prototypes,
5782 which can conflict with char $ac_func(); below. */
5784 /* Override any gcc2 internal prototype to avoid an error. */
5785 /* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5791 /* The GNU C library defines this for functions which it implements
5792 to always fail with ENOSYS. Some functions are actually named
5793 something starting with __ and the normal name is an alias. */
5794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5802 if { (eval echo configure
:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5804 eval "ac_cv_func_$ac_func=yes"
5806 echo "configure: failed program was:" >&5
5807 cat conftest.
$ac_ext >&5
5809 eval "ac_cv_func_$ac_func=no"
5814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5815 echo "$ac_t""yes" 1>&6
5816 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5817 cat >> confdefs.h
<<EOF
5818 #define $ac_tr_func 1
5822 echo "$ac_t""no" 1>&6
5826 for ac_func
in syslog vsyslog
5828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5829 echo "configure:5830: checking for $ac_func" >&5
5830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 cat > conftest.
$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 /* System header to define __stub macros and hopefully few prototypes,
5837 which can conflict with char $ac_func(); below. */
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5846 /* The GNU C library defines this for functions which it implements
5847 to always fail with ENOSYS. Some functions are actually named
5848 something starting with __ and the normal name is an alias. */
5849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5857 if { (eval echo configure
:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5859 eval "ac_cv_func_$ac_func=yes"
5861 echo "configure: failed program was:" >&5
5862 cat conftest.
$ac_ext >&5
5864 eval "ac_cv_func_$ac_func=no"
5869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5870 echo "$ac_t""yes" 1>&6
5871 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5872 cat >> confdefs.h
<<EOF
5873 #define $ac_tr_func 1
5877 echo "$ac_t""no" 1>&6
5882 # syscall() is needed for smbwrapper.
5883 for ac_func
in syscall
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.
$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5914 if { (eval echo configure
:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5916 eval "ac_cv_func_$ac_func=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.
$ac_ext >&5
5921 eval "ac_cv_func_$ac_func=no"
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h
<<EOF
5930 #define $ac_tr_func 1
5934 echo "$ac_t""no" 1>&6
5939 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5942 echo "configure:5943: checking for $ac_func" >&5
5943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 cat > conftest.
$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 /* System header to define __stub macros and hopefully few prototypes,
5950 which can conflict with char $ac_func(); below. */
5952 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5959 /* The GNU C library defines this for functions which it implements
5960 to always fail with ENOSYS. Some functions are actually named
5961 something starting with __ and the normal name is an alias. */
5962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 if { (eval echo configure
:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5972 eval "ac_cv_func_$ac_func=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.
$ac_ext >&5
5977 eval "ac_cv_func_$ac_func=no"
5982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5983 echo "$ac_t""yes" 1>&6
5984 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5985 cat >> confdefs.h
<<EOF
5986 #define $ac_tr_func 1
5990 echo "$ac_t""no" 1>&6
5994 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_func" >&5
5998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 cat > conftest.
$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func(); below. */
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6014 /* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6025 if { (eval echo configure
:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6027 eval "ac_cv_func_$ac_func=yes"
6029 echo "configure: failed program was:" >&5
6030 cat conftest.
$ac_ext >&5
6032 eval "ac_cv_func_$ac_func=no"
6037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6039 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6040 cat >> confdefs.h
<<EOF
6041 #define $ac_tr_func 1
6045 echo "$ac_t""no" 1>&6
6049 for ac_func
in __getcwd _getcwd
6051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6052 echo "configure:6053: checking for $ac_func" >&5
6053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6056 cat > conftest.
$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 /* System header to define __stub macros and hopefully few prototypes,
6060 which can conflict with char $ac_func(); below. */
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6069 /* The GNU C library defines this for functions which it implements
6070 to always fail with ENOSYS. Some functions are actually named
6071 something starting with __ and the normal name is an alias. */
6072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6080 if { (eval echo configure
:6081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6082 eval "ac_cv_func_$ac_func=yes"
6084 echo "configure: failed program was:" >&5
6085 cat conftest.
$ac_ext >&5
6087 eval "ac_cv_func_$ac_func=no"
6092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6093 echo "$ac_t""yes" 1>&6
6094 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6095 cat >> confdefs.h
<<EOF
6096 #define $ac_tr_func 1
6100 echo "$ac_t""no" 1>&6
6104 for ac_func
in __xstat __fxstat __lxstat
6106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6107 echo "configure:6108: checking for $ac_func" >&5
6108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6111 cat > conftest.
$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6114 /* System header to define __stub macros and hopefully few prototypes,
6115 which can conflict with char $ac_func(); below. */
6117 /* Override any gcc2 internal prototype to avoid an error. */
6118 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */
6124 /* The GNU C library defines this for functions which it implements
6125 to always fail with ENOSYS. Some functions are actually named
6126 something starting with __ and the normal name is an alias. */
6127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6135 if { (eval echo configure
:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6137 eval "ac_cv_func_$ac_func=yes"
6139 echo "configure: failed program was:" >&5
6140 cat conftest.
$ac_ext >&5
6142 eval "ac_cv_func_$ac_func=no"
6147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6148 echo "$ac_t""yes" 1>&6
6149 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6150 cat >> confdefs.h
<<EOF
6151 #define $ac_tr_func 1
6155 echo "$ac_t""no" 1>&6
6159 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6162 echo "configure:6163: checking for $ac_func" >&5
6163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6166 cat > conftest.
$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6169 /* System header to define __stub macros and hopefully few prototypes,
6170 which can conflict with char $ac_func(); below. */
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6179 /* The GNU C library defines this for functions which it implements
6180 to always fail with ENOSYS. Some functions are actually named
6181 something starting with __ and the normal name is an alias. */
6182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6190 if { (eval echo configure
:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6192 eval "ac_cv_func_$ac_func=yes"
6194 echo "configure: failed program was:" >&5
6195 cat conftest.
$ac_ext >&5
6197 eval "ac_cv_func_$ac_func=no"
6202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6204 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6205 cat >> confdefs.h
<<EOF
6206 #define $ac_tr_func 1
6210 echo "$ac_t""no" 1>&6
6214 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6217 echo "configure:6218: checking for $ac_func" >&5
6218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 cat > conftest.
$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func(); below. */
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6234 /* The GNU C library defines this for functions which it implements
6235 to always fail with ENOSYS. Some functions are actually named
6236 something starting with __ and the normal name is an alias. */
6237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6245 if { (eval echo configure
:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6247 eval "ac_cv_func_$ac_func=yes"
6249 echo "configure: failed program was:" >&5
6250 cat conftest.
$ac_ext >&5
6252 eval "ac_cv_func_$ac_func=no"
6257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6258 echo "$ac_t""yes" 1>&6
6259 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6260 cat >> confdefs.h
<<EOF
6261 #define $ac_tr_func 1
6265 echo "$ac_t""no" 1>&6
6269 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6272 echo "configure:6273: checking for $ac_func" >&5
6273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6276 cat > conftest.
$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 /* System header to define __stub macros and hopefully few prototypes,
6280 which can conflict with char $ac_func(); below. */
6282 /* Override any gcc2 internal prototype to avoid an error. */
6283 /* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6289 /* The GNU C library defines this for functions which it implements
6290 to always fail with ENOSYS. Some functions are actually named
6291 something starting with __ and the normal name is an alias. */
6292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6300 if { (eval echo configure
:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6302 eval "ac_cv_func_$ac_func=yes"
6304 echo "configure: failed program was:" >&5
6305 cat conftest.
$ac_ext >&5
6307 eval "ac_cv_func_$ac_func=no"
6312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6313 echo "$ac_t""yes" 1>&6
6314 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6315 cat >> confdefs.h
<<EOF
6316 #define $ac_tr_func 1
6320 echo "$ac_t""no" 1>&6
6324 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6327 echo "configure:6328: checking for $ac_func" >&5
6328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6329 echo $ac_n "(cached) $ac_c" 1>&6
6331 cat > conftest.
$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6334 /* System header to define __stub macros and hopefully few prototypes,
6335 which can conflict with char $ac_func(); below. */
6337 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6344 /* The GNU C library defines this for functions which it implements
6345 to always fail with ENOSYS. Some functions are actually named
6346 something starting with __ and the normal name is an alias. */
6347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6355 if { (eval echo configure
:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6357 eval "ac_cv_func_$ac_func=yes"
6359 echo "configure: failed program was:" >&5
6360 cat conftest.
$ac_ext >&5
6362 eval "ac_cv_func_$ac_func=no"
6367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6368 echo "$ac_t""yes" 1>&6
6369 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6370 cat >> confdefs.h
<<EOF
6371 #define $ac_tr_func 1
6375 echo "$ac_t""no" 1>&6
6379 for ac_func
in _write __write _fork __fork
6381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6382 echo "configure:6383: checking for $ac_func" >&5
6383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6386 cat > conftest.
$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6389 /* System header to define __stub macros and hopefully few prototypes,
6390 which can conflict with char $ac_func(); below. */
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6399 /* The GNU C library defines this for functions which it implements
6400 to always fail with ENOSYS. Some functions are actually named
6401 something starting with __ and the normal name is an alias. */
6402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6410 if { (eval echo configure
:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6412 eval "ac_cv_func_$ac_func=yes"
6414 echo "configure: failed program was:" >&5
6415 cat conftest.
$ac_ext >&5
6417 eval "ac_cv_func_$ac_func=no"
6422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6423 echo "$ac_t""yes" 1>&6
6424 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6425 cat >> confdefs.h
<<EOF
6426 #define $ac_tr_func 1
6430 echo "$ac_t""no" 1>&6
6434 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_func" >&5
6438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 cat > conftest.
$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char $ac_func(); below. */
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6465 if { (eval echo configure
:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6467 eval "ac_cv_func_$ac_func=yes"
6469 echo "configure: failed program was:" >&5
6470 cat conftest.
$ac_ext >&5
6472 eval "ac_cv_func_$ac_func=no"
6477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6479 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6480 cat >> confdefs.h
<<EOF
6481 #define $ac_tr_func 1
6485 echo "$ac_t""no" 1>&6
6489 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6492 echo "configure:6493: checking for $ac_func" >&5
6493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6496 cat > conftest.
$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* System header to define __stub macros and hopefully few prototypes,
6500 which can conflict with char $ac_func(); below. */
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 /* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6509 /* The GNU C library defines this for functions which it implements
6510 to always fail with ENOSYS. Some functions are actually named
6511 something starting with __ and the normal name is an alias. */
6512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6520 if { (eval echo configure
:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6522 eval "ac_cv_func_$ac_func=yes"
6524 echo "configure: failed program was:" >&5
6525 cat conftest.
$ac_ext >&5
6527 eval "ac_cv_func_$ac_func=no"
6532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6533 echo "$ac_t""yes" 1>&6
6534 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6535 cat >> confdefs.h
<<EOF
6536 #define $ac_tr_func 1
6540 echo "$ac_t""no" 1>&6
6544 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_func" >&5
6548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.
$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 /* System header to define __stub macros and hopefully few prototypes,
6555 which can conflict with char $ac_func(); below. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6564 /* The GNU C library defines this for functions which it implements
6565 to always fail with ENOSYS. Some functions are actually named
6566 something starting with __ and the normal name is an alias. */
6567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6575 if { (eval echo configure
:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6577 eval "ac_cv_func_$ac_func=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.
$ac_ext >&5
6582 eval "ac_cv_func_$ac_func=no"
6587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6588 echo "$ac_t""yes" 1>&6
6589 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6590 cat >> confdefs.h
<<EOF
6591 #define $ac_tr_func 1
6595 echo "$ac_t""no" 1>&6
6599 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_func" >&5
6603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.
$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 /* System header to define __stub macros and hopefully few prototypes,
6610 which can conflict with char $ac_func(); below. */
6612 /* Override any gcc2 internal prototype to avoid an error. */
6613 /* We use char because int might match the return type of a gcc2
6614 builtin and then its argument prototype would still apply. */
6619 /* The GNU C library defines this for functions which it implements
6620 to always fail with ENOSYS. Some functions are actually named
6621 something starting with __ and the normal name is an alias. */
6622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6630 if { (eval echo configure
:6631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6632 eval "ac_cv_func_$ac_func=yes"
6634 echo "configure: failed program was:" >&5
6635 cat conftest.
$ac_ext >&5
6637 eval "ac_cv_func_$ac_func=no"
6642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6643 echo "$ac_t""yes" 1>&6
6644 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6645 cat >> confdefs.h
<<EOF
6646 #define $ac_tr_func 1
6650 echo "$ac_t""no" 1>&6
6654 for ac_func
in open64 _open64 __open64 creat64
6656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6657 echo "configure:6658: checking for $ac_func" >&5
6658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6661 cat > conftest.
$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 /* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char $ac_func(); below. */
6667 /* Override any gcc2 internal prototype to avoid an error. */
6668 /* We use char because int might match the return type of a gcc2
6669 builtin and then its argument prototype would still apply. */
6674 /* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
6677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6685 if { (eval echo configure
:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6687 eval "ac_cv_func_$ac_func=yes"
6689 echo "configure: failed program was:" >&5
6690 cat conftest.
$ac_ext >&5
6692 eval "ac_cv_func_$ac_func=no"
6697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6698 echo "$ac_t""yes" 1>&6
6699 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6700 cat >> confdefs.h
<<EOF
6701 #define $ac_tr_func 1
6705 echo "$ac_t""no" 1>&6
6711 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6714 if test x
$ac_cv_func_stat64 = xno
; then
6715 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6716 echo "configure:6717: checking for stat64 in <sys/stat.h>" >&5
6717 cat > conftest.
$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6721 #if defined(HAVE_UNISTD_H)
6724 #include <sys/stat.h>
6727 struct stat64 st64; exit(stat64(".",&st64));
6730 if { (eval echo configure
:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6732 ac_cv_func_stat64
=yes
6734 echo "configure: failed program was:" >&5
6735 cat conftest.
$ac_ext >&5
6738 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6739 if test x
$ac_cv_func_stat64 = xyes
; then
6740 cat >> confdefs.h
<<\EOF
6741 #define HAVE_STAT64 1
6747 if test x
$ac_cv_func_lstat64 = xno
; then
6748 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6749 echo "configure:6750: checking for lstat64 in <sys/stat.h>" >&5
6750 cat > conftest.
$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6754 #if defined(HAVE_UNISTD_H)
6757 #include <sys/stat.h>
6760 struct stat64 st64; exit(lstat64(".",&st64));
6763 if { (eval echo configure
:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6765 ac_cv_func_lstat64
=yes
6767 echo "configure: failed program was:" >&5
6768 cat conftest.
$ac_ext >&5
6771 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6772 if test x
$ac_cv_func_lstat64 = xyes
; then
6773 cat >> confdefs.h
<<\EOF
6774 #define HAVE_LSTAT64 1
6780 if test x
$ac_cv_func_fstat64 = xno
; then
6781 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6782 echo "configure:6783: checking for fstat64 in <sys/stat.h>" >&5
6783 cat > conftest.
$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6787 #if defined(HAVE_UNISTD_H)
6790 #include <sys/stat.h>
6793 struct stat64 st64; exit(fstat64(0,&st64));
6796 if { (eval echo configure
:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6798 ac_cv_func_fstat64
=yes
6800 echo "configure: failed program was:" >&5
6801 cat conftest.
$ac_ext >&5
6804 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6805 if test x
$ac_cv_func_fstat64 = xyes
; then
6806 cat >> confdefs.h
<<\EOF
6807 #define HAVE_FSTAT64 1
6814 # If no strcasecmp, check for it in some known places
6815 # It is in -lresolv on ReliantUNIX and UnixWare
6816 # -lresolve *must* follow -lnsl for name resolution to work properly
6819 if test x
$ac_cv_func_strcasecmp = xno
; then
6820 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6821 echo "configure:6822: checking for strcasecmp in -lresolv" >&5
6822 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6826 ac_save_LIBS
="$LIBS"
6827 LIBS
="-lresolv $LIBS"
6828 cat > conftest.
$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6840 if { (eval echo configure
:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6842 eval "ac_cv_lib_$ac_lib_var=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.
$ac_ext >&5
6847 eval "ac_cv_lib_$ac_lib_var=no"
6850 LIBS
="$ac_save_LIBS"
6853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6854 echo "$ac_t""yes" 1>&6
6855 LIBS
="$LIBS -lresolv"
6856 cat >> confdefs.h
<<\EOF
6857 #define HAVE_STRCASECMP 1
6861 echo "$ac_t""no" 1>&6
6867 # Check for the functions putprpwnam, set_auth_parameters,
6868 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6869 # Needed for OSF1 and HPUX.
6873 *-lsecurity*) for ac_func
in putprpwnam
6875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6876 echo "configure:6877: checking for $ac_func" >&5
6877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6880 cat > conftest.
$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char $ac_func(); below. */
6886 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6893 /* The GNU C library defines this for functions which it implements
6894 to always fail with ENOSYS. Some functions are actually named
6895 something starting with __ and the normal name is an alias. */
6896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6904 if { (eval echo configure
:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6906 eval "ac_cv_func_$ac_func=yes"
6908 echo "configure: failed program was:" >&5
6909 cat conftest.
$ac_ext >&5
6911 eval "ac_cv_func_$ac_func=no"
6916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6917 echo "$ac_t""yes" 1>&6
6918 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6919 cat >> confdefs.h
<<EOF
6920 #define $ac_tr_func 1
6924 echo "$ac_t""no" 1>&6
6928 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6929 echo "configure:6930: checking for putprpwnam in -lsecurity" >&5
6930 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6932 echo $ac_n "(cached) $ac_c" 1>&6
6934 ac_save_LIBS
="$LIBS"
6935 LIBS
="-lsecurity $LIBS"
6936 cat > conftest.
$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6948 if { (eval echo configure
:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6950 eval "ac_cv_lib_$ac_lib_var=yes"
6952 echo "configure: failed program was:" >&5
6953 cat conftest.
$ac_ext >&5
6955 eval "ac_cv_lib_$ac_lib_var=no"
6958 LIBS
="$ac_save_LIBS"
6961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6965 cat >> confdefs.h
<<EOF
6966 #define $ac_tr_lib 1
6969 LIBS
="-lsecurity $LIBS"
6972 echo "$ac_t""no" 1>&6
6975 for ac_func
in putprpwnam
6977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6978 echo "configure:6979: checking for $ac_func" >&5
6979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6982 cat > conftest.
$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6985 /* System header to define __stub macros and hopefully few prototypes,
6986 which can conflict with char $ac_func(); below. */
6988 /* Override any gcc2 internal prototype to avoid an error. */
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6995 /* The GNU C library defines this for functions which it implements
6996 to always fail with ENOSYS. Some functions are actually named
6997 something starting with __ and the normal name is an alias. */
6998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7006 if { (eval echo configure
:7007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7008 eval "ac_cv_func_$ac_func=yes"
7010 echo "configure: failed program was:" >&5
7011 cat conftest.
$ac_ext >&5
7013 eval "ac_cv_func_$ac_func=no"
7018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7019 echo "$ac_t""yes" 1>&6
7020 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7021 cat >> confdefs.h
<<EOF
7022 #define $ac_tr_func 1
7026 echo "$ac_t""no" 1>&6
7034 *-lsec*) for ac_func
in putprpwnam
7036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7037 echo "configure:7038: checking for $ac_func" >&5
7038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6
7041 cat > conftest.
$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 /* System header to define __stub macros and hopefully few prototypes,
7045 which can conflict with char $ac_func(); below. */
7047 /* Override any gcc2 internal prototype to avoid an error. */
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7054 /* The GNU C library defines this for functions which it implements
7055 to always fail with ENOSYS. Some functions are actually named
7056 something starting with __ and the normal name is an alias. */
7057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7065 if { (eval echo configure
:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7067 eval "ac_cv_func_$ac_func=yes"
7069 echo "configure: failed program was:" >&5
7070 cat conftest.
$ac_ext >&5
7072 eval "ac_cv_func_$ac_func=no"
7077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7078 echo "$ac_t""yes" 1>&6
7079 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7080 cat >> confdefs.h
<<EOF
7081 #define $ac_tr_func 1
7085 echo "$ac_t""no" 1>&6
7089 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7090 echo "configure:7091: checking for putprpwnam in -lsec" >&5
7091 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7093 echo $ac_n "(cached) $ac_c" 1>&6
7095 ac_save_LIBS
="$LIBS"
7097 cat > conftest.
$ac_ext <<EOF
7098 #line 7099 "configure"
7099 #include "confdefs.h"
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7109 if { (eval echo configure
:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7111 eval "ac_cv_lib_$ac_lib_var=yes"
7113 echo "configure: failed program was:" >&5
7114 cat conftest.
$ac_ext >&5
7116 eval "ac_cv_lib_$ac_lib_var=no"
7119 LIBS
="$ac_save_LIBS"
7122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7123 echo "$ac_t""yes" 1>&6
7124 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7126 cat >> confdefs.h
<<EOF
7127 #define $ac_tr_lib 1
7133 echo "$ac_t""no" 1>&6
7136 for ac_func
in putprpwnam
7138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7139 echo "configure:7140: checking for $ac_func" >&5
7140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 cat > conftest.
$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 /* System header to define __stub macros and hopefully few prototypes,
7147 which can conflict with char $ac_func(); below. */
7149 /* Override any gcc2 internal prototype to avoid an error. */
7150 /* We use char because int might match the return type of a gcc2
7151 builtin and then its argument prototype would still apply. */
7156 /* The GNU C library defines this for functions which it implements
7157 to always fail with ENOSYS. Some functions are actually named
7158 something starting with __ and the normal name is an alias. */
7159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7167 if { (eval echo configure
:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7169 eval "ac_cv_func_$ac_func=yes"
7171 echo "configure: failed program was:" >&5
7172 cat conftest.
$ac_ext >&5
7174 eval "ac_cv_func_$ac_func=no"
7179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7180 echo "$ac_t""yes" 1>&6
7181 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7182 cat >> confdefs.h
<<EOF
7183 #define $ac_tr_func 1
7187 echo "$ac_t""no" 1>&6
7196 *-lsecurity*) for ac_func
in set_auth_parameters
7198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7199 echo "configure:7200: checking for $ac_func" >&5
7200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7203 cat > conftest.
$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* System header to define __stub macros and hopefully few prototypes,
7207 which can conflict with char $ac_func(); below. */
7209 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7216 /* The GNU C library defines this for functions which it implements
7217 to always fail with ENOSYS. Some functions are actually named
7218 something starting with __ and the normal name is an alias. */
7219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7227 if { (eval echo configure
:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7229 eval "ac_cv_func_$ac_func=yes"
7231 echo "configure: failed program was:" >&5
7232 cat conftest.
$ac_ext >&5
7234 eval "ac_cv_func_$ac_func=no"
7239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7240 echo "$ac_t""yes" 1>&6
7241 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7242 cat >> confdefs.h
<<EOF
7243 #define $ac_tr_func 1
7247 echo "$ac_t""no" 1>&6
7251 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7252 echo "configure:7253: checking for set_auth_parameters in -lsecurity" >&5
7253 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 ac_save_LIBS
="$LIBS"
7258 LIBS
="-lsecurity $LIBS"
7259 cat > conftest.
$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7262 /* Override any gcc2 internal prototype to avoid an error. */
7263 /* We use char because int might match the return type of a gcc2
7264 builtin and then its argument prototype would still apply. */
7265 char set_auth_parameters();
7268 set_auth_parameters()
7271 if { (eval echo configure
:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7273 eval "ac_cv_lib_$ac_lib_var=yes"
7275 echo "configure: failed program was:" >&5
7276 cat conftest.
$ac_ext >&5
7278 eval "ac_cv_lib_$ac_lib_var=no"
7281 LIBS
="$ac_save_LIBS"
7284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7288 cat >> confdefs.h
<<EOF
7289 #define $ac_tr_lib 1
7292 LIBS
="-lsecurity $LIBS"
7295 echo "$ac_t""no" 1>&6
7298 for ac_func
in set_auth_parameters
7300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7301 echo "configure:7302: checking for $ac_func" >&5
7302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7303 echo $ac_n "(cached) $ac_c" 1>&6
7305 cat > conftest.
$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 /* System header to define __stub macros and hopefully few prototypes,
7309 which can conflict with char $ac_func(); below. */
7311 /* Override any gcc2 internal prototype to avoid an error. */
7312 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */
7318 /* The GNU C library defines this for functions which it implements
7319 to always fail with ENOSYS. Some functions are actually named
7320 something starting with __ and the normal name is an alias. */
7321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7329 if { (eval echo configure
:7330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7331 eval "ac_cv_func_$ac_func=yes"
7333 echo "configure: failed program was:" >&5
7334 cat conftest.
$ac_ext >&5
7336 eval "ac_cv_func_$ac_func=no"
7341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7342 echo "$ac_t""yes" 1>&6
7343 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7344 cat >> confdefs.h
<<EOF
7345 #define $ac_tr_func 1
7349 echo "$ac_t""no" 1>&6
7357 *-lsec*) for ac_func
in set_auth_parameters
7359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7360 echo "configure:7361: checking for $ac_func" >&5
7361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7364 cat > conftest.
$ac_ext <<EOF
7365 #line 7366 "configure"
7366 #include "confdefs.h"
7367 /* System header to define __stub macros and hopefully few prototypes,
7368 which can conflict with char $ac_func(); below. */
7370 /* Override any gcc2 internal prototype to avoid an error. */
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7377 /* The GNU C library defines this for functions which it implements
7378 to always fail with ENOSYS. Some functions are actually named
7379 something starting with __ and the normal name is an alias. */
7380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7388 if { (eval echo configure
:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7390 eval "ac_cv_func_$ac_func=yes"
7392 echo "configure: failed program was:" >&5
7393 cat conftest.
$ac_ext >&5
7395 eval "ac_cv_func_$ac_func=no"
7400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7401 echo "$ac_t""yes" 1>&6
7402 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7403 cat >> confdefs.h
<<EOF
7404 #define $ac_tr_func 1
7408 echo "$ac_t""no" 1>&6
7412 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7413 echo "configure:7414: checking for set_auth_parameters in -lsec" >&5
7414 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7418 ac_save_LIBS
="$LIBS"
7420 cat > conftest.
$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7426 char set_auth_parameters();
7429 set_auth_parameters()
7432 if { (eval echo configure
:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7434 eval "ac_cv_lib_$ac_lib_var=yes"
7436 echo "configure: failed program was:" >&5
7437 cat conftest.
$ac_ext >&5
7439 eval "ac_cv_lib_$ac_lib_var=no"
7442 LIBS
="$ac_save_LIBS"
7445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7449 cat >> confdefs.h
<<EOF
7450 #define $ac_tr_lib 1
7456 echo "$ac_t""no" 1>&6
7459 for ac_func
in set_auth_parameters
7461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7462 echo "configure:7463: checking for $ac_func" >&5
7463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7466 cat > conftest.
$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 /* System header to define __stub macros and hopefully few prototypes,
7470 which can conflict with char $ac_func(); below. */
7472 /* Override any gcc2 internal prototype to avoid an error. */
7473 /* We use char because int might match the return type of a gcc2
7474 builtin and then its argument prototype would still apply. */
7479 /* The GNU C library defines this for functions which it implements
7480 to always fail with ENOSYS. Some functions are actually named
7481 something starting with __ and the normal name is an alias. */
7482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7490 if { (eval echo configure
:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7492 eval "ac_cv_func_$ac_func=yes"
7494 echo "configure: failed program was:" >&5
7495 cat conftest.
$ac_ext >&5
7497 eval "ac_cv_func_$ac_func=no"
7502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7503 echo "$ac_t""yes" 1>&6
7504 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7505 cat >> confdefs.h
<<EOF
7506 #define $ac_tr_func 1
7510 echo "$ac_t""no" 1>&6
7518 # UnixWare 7.x has its getspnam in -lgen
7520 *-lgen*) for ac_func
in getspnam
7522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7523 echo "configure:7524: checking for $ac_func" >&5
7524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7525 echo $ac_n "(cached) $ac_c" 1>&6
7527 cat > conftest.
$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* System header to define __stub macros and hopefully few prototypes,
7531 which can conflict with char $ac_func(); below. */
7533 /* Override any gcc2 internal prototype to avoid an error. */
7534 /* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7540 /* The GNU C library defines this for functions which it implements
7541 to always fail with ENOSYS. Some functions are actually named
7542 something starting with __ and the normal name is an alias. */
7543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7551 if { (eval echo configure
:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7553 eval "ac_cv_func_$ac_func=yes"
7555 echo "configure: failed program was:" >&5
7556 cat conftest.
$ac_ext >&5
7558 eval "ac_cv_func_$ac_func=no"
7563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7564 echo "$ac_t""yes" 1>&6
7565 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7566 cat >> confdefs.h
<<EOF
7567 #define $ac_tr_func 1
7571 echo "$ac_t""no" 1>&6
7575 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7576 echo "configure:7577: checking for getspnam in -lgen" >&5
7577 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7581 ac_save_LIBS
="$LIBS"
7583 cat > conftest.
$ac_ext <<EOF
7584 #line 7585 "configure"
7585 #include "confdefs.h"
7586 /* Override any gcc2 internal prototype to avoid an error. */
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7595 if { (eval echo configure
:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7597 eval "ac_cv_lib_$ac_lib_var=yes"
7599 echo "configure: failed program was:" >&5
7600 cat conftest.
$ac_ext >&5
7602 eval "ac_cv_lib_$ac_lib_var=no"
7605 LIBS
="$ac_save_LIBS"
7608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7611 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7612 cat >> confdefs.h
<<EOF
7613 #define $ac_tr_lib 1
7619 echo "$ac_t""no" 1>&6
7622 for ac_func
in getspnam
7624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7625 echo "configure:7626: checking for $ac_func" >&5
7626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7629 cat > conftest.
$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* System header to define __stub macros and hopefully few prototypes,
7633 which can conflict with char $ac_func(); below. */
7635 /* Override any gcc2 internal prototype to avoid an error. */
7636 /* We use char because int might match the return type of a gcc2
7637 builtin and then its argument prototype would still apply. */
7642 /* The GNU C library defines this for functions which it implements
7643 to always fail with ENOSYS. Some functions are actually named
7644 something starting with __ and the normal name is an alias. */
7645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7653 if { (eval echo configure
:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7655 eval "ac_cv_func_$ac_func=yes"
7657 echo "configure: failed program was:" >&5
7658 cat conftest.
$ac_ext >&5
7660 eval "ac_cv_func_$ac_func=no"
7665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7666 echo "$ac_t""yes" 1>&6
7667 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7668 cat >> confdefs.h
<<EOF
7669 #define $ac_tr_func 1
7673 echo "$ac_t""no" 1>&6
7682 *-lsecurity*) for ac_func
in getspnam
7684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7685 echo "configure:7686: checking for $ac_func" >&5
7686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7689 cat > conftest.
$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* System header to define __stub macros and hopefully few prototypes,
7693 which can conflict with char $ac_func(); below. */
7695 /* Override any gcc2 internal prototype to avoid an error. */
7696 /* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7713 if { (eval echo configure
:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7715 eval "ac_cv_func_$ac_func=yes"
7717 echo "configure: failed program was:" >&5
7718 cat conftest.
$ac_ext >&5
7720 eval "ac_cv_func_$ac_func=no"
7725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7726 echo "$ac_t""yes" 1>&6
7727 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7728 cat >> confdefs.h
<<EOF
7729 #define $ac_tr_func 1
7733 echo "$ac_t""no" 1>&6
7737 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7738 echo "configure:7739: checking for getspnam in -lsecurity" >&5
7739 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7743 ac_save_LIBS
="$LIBS"
7744 LIBS
="-lsecurity $LIBS"
7745 cat > conftest.
$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7757 if { (eval echo configure
:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7759 eval "ac_cv_lib_$ac_lib_var=yes"
7761 echo "configure: failed program was:" >&5
7762 cat conftest.
$ac_ext >&5
7764 eval "ac_cv_lib_$ac_lib_var=no"
7767 LIBS
="$ac_save_LIBS"
7770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7771 echo "$ac_t""yes" 1>&6
7772 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7774 cat >> confdefs.h
<<EOF
7775 #define $ac_tr_lib 1
7778 LIBS
="-lsecurity $LIBS"
7781 echo "$ac_t""no" 1>&6
7784 for ac_func
in getspnam
7786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7787 echo "configure:7788: checking for $ac_func" >&5
7788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7791 cat > conftest.
$ac_ext <<EOF
7792 #line 7793 "configure"
7793 #include "confdefs.h"
7794 /* System header to define __stub macros and hopefully few prototypes,
7795 which can conflict with char $ac_func(); below. */
7797 /* Override any gcc2 internal prototype to avoid an error. */
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7815 if { (eval echo configure
:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7817 eval "ac_cv_func_$ac_func=yes"
7819 echo "configure: failed program was:" >&5
7820 cat conftest.
$ac_ext >&5
7822 eval "ac_cv_func_$ac_func=no"
7827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7830 cat >> confdefs.h
<<EOF
7831 #define $ac_tr_func 1
7835 echo "$ac_t""no" 1>&6
7843 *-lsec*) for ac_func
in getspnam
7845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7846 echo "configure:7847: checking for $ac_func" >&5
7847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7848 echo $ac_n "(cached) $ac_c" 1>&6
7850 cat > conftest.
$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 /* System header to define __stub macros and hopefully few prototypes,
7854 which can conflict with char $ac_func(); below. */
7856 /* Override any gcc2 internal prototype to avoid an error. */
7857 /* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7863 /* The GNU C library defines this for functions which it implements
7864 to always fail with ENOSYS. Some functions are actually named
7865 something starting with __ and the normal name is an alias. */
7866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7874 if { (eval echo configure
:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7876 eval "ac_cv_func_$ac_func=yes"
7878 echo "configure: failed program was:" >&5
7879 cat conftest.
$ac_ext >&5
7881 eval "ac_cv_func_$ac_func=no"
7886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7887 echo "$ac_t""yes" 1>&6
7888 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7889 cat >> confdefs.h
<<EOF
7890 #define $ac_tr_func 1
7894 echo "$ac_t""no" 1>&6
7898 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7899 echo "configure:7900: checking for getspnam in -lsec" >&5
7900 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7904 ac_save_LIBS
="$LIBS"
7906 cat > conftest.
$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 /* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7918 if { (eval echo configure
:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7920 eval "ac_cv_lib_$ac_lib_var=yes"
7922 echo "configure: failed program was:" >&5
7923 cat conftest.
$ac_ext >&5
7925 eval "ac_cv_lib_$ac_lib_var=no"
7928 LIBS
="$ac_save_LIBS"
7931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7932 echo "$ac_t""yes" 1>&6
7933 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7934 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7935 cat >> confdefs.h
<<EOF
7936 #define $ac_tr_lib 1
7942 echo "$ac_t""no" 1>&6
7945 for ac_func
in getspnam
7947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7948 echo "configure:7949: checking for $ac_func" >&5
7949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7950 echo $ac_n "(cached) $ac_c" 1>&6
7952 cat > conftest.
$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* System header to define __stub macros and hopefully few prototypes,
7956 which can conflict with char $ac_func(); below. */
7958 /* Override any gcc2 internal prototype to avoid an error. */
7959 /* We use char because int might match the return type of a gcc2
7960 builtin and then its argument prototype would still apply. */
7965 /* The GNU C library defines this for functions which it implements
7966 to always fail with ENOSYS. Some functions are actually named
7967 something starting with __ and the normal name is an alias. */
7968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7976 if { (eval echo configure
:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7978 eval "ac_cv_func_$ac_func=yes"
7980 echo "configure: failed program was:" >&5
7981 cat conftest.
$ac_ext >&5
7983 eval "ac_cv_func_$ac_func=no"
7988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7989 echo "$ac_t""yes" 1>&6
7990 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7991 cat >> confdefs.h
<<EOF
7992 #define $ac_tr_func 1
7996 echo "$ac_t""no" 1>&6
8005 *-lsecurity*) for ac_func
in bigcrypt
8007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8008 echo "configure:8009: checking for $ac_func" >&5
8009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8012 cat > conftest.
$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* System header to define __stub macros and hopefully few prototypes,
8016 which can conflict with char $ac_func(); below. */
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8036 if { (eval echo configure
:8037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8038 eval "ac_cv_func_$ac_func=yes"
8040 echo "configure: failed program was:" >&5
8041 cat conftest.
$ac_ext >&5
8043 eval "ac_cv_func_$ac_func=no"
8048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8051 cat >> confdefs.h
<<EOF
8052 #define $ac_tr_func 1
8056 echo "$ac_t""no" 1>&6
8060 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8061 echo "configure:8062: checking for bigcrypt in -lsecurity" >&5
8062 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8066 ac_save_LIBS
="$LIBS"
8067 LIBS
="-lsecurity $LIBS"
8068 cat > conftest.
$ac_ext <<EOF
8069 #line 8070 "configure"
8070 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8080 if { (eval echo configure
:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8082 eval "ac_cv_lib_$ac_lib_var=yes"
8084 echo "configure: failed program was:" >&5
8085 cat conftest.
$ac_ext >&5
8087 eval "ac_cv_lib_$ac_lib_var=no"
8090 LIBS
="$ac_save_LIBS"
8093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8097 cat >> confdefs.h
<<EOF
8098 #define $ac_tr_lib 1
8101 LIBS
="-lsecurity $LIBS"
8104 echo "$ac_t""no" 1>&6
8107 for ac_func
in bigcrypt
8109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110 echo "configure:8111: checking for $ac_func" >&5
8111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8114 cat > conftest.
$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 /* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char $ac_func(); below. */
8120 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8127 /* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8138 if { (eval echo configure
:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8140 eval "ac_cv_func_$ac_func=yes"
8142 echo "configure: failed program was:" >&5
8143 cat conftest.
$ac_ext >&5
8145 eval "ac_cv_func_$ac_func=no"
8150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8153 cat >> confdefs.h
<<EOF
8154 #define $ac_tr_func 1
8158 echo "$ac_t""no" 1>&6
8166 *-lsec*) for ac_func
in bigcrypt
8168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8169 echo "configure:8170: checking for $ac_func" >&5
8170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8173 cat > conftest.
$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 /* System header to define __stub macros and hopefully few prototypes,
8177 which can conflict with char $ac_func(); below. */
8179 /* Override any gcc2 internal prototype to avoid an error. */
8180 /* We use char because int might match the return type of a gcc2
8181 builtin and then its argument prototype would still apply. */
8186 /* The GNU C library defines this for functions which it implements
8187 to always fail with ENOSYS. Some functions are actually named
8188 something starting with __ and the normal name is an alias. */
8189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8197 if { (eval echo configure
:8198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8199 eval "ac_cv_func_$ac_func=yes"
8201 echo "configure: failed program was:" >&5
8202 cat conftest.
$ac_ext >&5
8204 eval "ac_cv_func_$ac_func=no"
8209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8210 echo "$ac_t""yes" 1>&6
8211 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8212 cat >> confdefs.h
<<EOF
8213 #define $ac_tr_func 1
8217 echo "$ac_t""no" 1>&6
8221 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8222 echo "configure:8223: checking for bigcrypt in -lsec" >&5
8223 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8227 ac_save_LIBS
="$LIBS"
8229 cat > conftest.
$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8241 if { (eval echo configure
:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8243 eval "ac_cv_lib_$ac_lib_var=yes"
8245 echo "configure: failed program was:" >&5
8246 cat conftest.
$ac_ext >&5
8248 eval "ac_cv_lib_$ac_lib_var=no"
8251 LIBS
="$ac_save_LIBS"
8254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8255 echo "$ac_t""yes" 1>&6
8256 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8258 cat >> confdefs.h
<<EOF
8259 #define $ac_tr_lib 1
8265 echo "$ac_t""no" 1>&6
8268 for ac_func
in bigcrypt
8270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8271 echo "configure:8272: checking for $ac_func" >&5
8272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8275 cat > conftest.
$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 /* System header to define __stub macros and hopefully few prototypes,
8279 which can conflict with char $ac_func(); below. */
8281 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8288 /* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
8291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8299 if { (eval echo configure
:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8301 eval "ac_cv_func_$ac_func=yes"
8303 echo "configure: failed program was:" >&5
8304 cat conftest.
$ac_ext >&5
8306 eval "ac_cv_func_$ac_func=no"
8311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8312 echo "$ac_t""yes" 1>&6
8313 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8314 cat >> confdefs.h
<<EOF
8315 #define $ac_tr_func 1
8319 echo "$ac_t""no" 1>&6
8328 *-lsecurity*) for ac_func
in getprpwnam
8330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8331 echo "configure:8332: checking for $ac_func" >&5
8332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8335 cat > conftest.
$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* System header to define __stub macros and hopefully few prototypes,
8339 which can conflict with char $ac_func(); below. */
8341 /* Override any gcc2 internal prototype to avoid an error. */
8342 /* We use char because int might match the return type of a gcc2
8343 builtin and then its argument prototype would still apply. */
8348 /* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8359 if { (eval echo configure
:8360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8361 eval "ac_cv_func_$ac_func=yes"
8363 echo "configure: failed program was:" >&5
8364 cat conftest.
$ac_ext >&5
8366 eval "ac_cv_func_$ac_func=no"
8371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8373 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8374 cat >> confdefs.h
<<EOF
8375 #define $ac_tr_func 1
8379 echo "$ac_t""no" 1>&6
8383 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8384 echo "configure:8385: checking for getprpwnam in -lsecurity" >&5
8385 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8389 ac_save_LIBS
="$LIBS"
8390 LIBS
="-lsecurity $LIBS"
8391 cat > conftest.
$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394 /* Override any gcc2 internal prototype to avoid an error. */
8395 /* We use char because int might match the return type of a gcc2
8396 builtin and then its argument prototype would still apply. */
8403 if { (eval echo configure
:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8405 eval "ac_cv_lib_$ac_lib_var=yes"
8407 echo "configure: failed program was:" >&5
8408 cat conftest.
$ac_ext >&5
8410 eval "ac_cv_lib_$ac_lib_var=no"
8413 LIBS
="$ac_save_LIBS"
8416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8420 cat >> confdefs.h
<<EOF
8421 #define $ac_tr_lib 1
8424 LIBS
="-lsecurity $LIBS"
8427 echo "$ac_t""no" 1>&6
8430 for ac_func
in getprpwnam
8432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8433 echo "configure:8434: checking for $ac_func" >&5
8434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 cat > conftest.
$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char $ac_func(); below. */
8443 /* Override any gcc2 internal prototype to avoid an error. */
8444 /* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8450 /* The GNU C library defines this for functions which it implements
8451 to always fail with ENOSYS. Some functions are actually named
8452 something starting with __ and the normal name is an alias. */
8453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8461 if { (eval echo configure
:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8463 eval "ac_cv_func_$ac_func=yes"
8465 echo "configure: failed program was:" >&5
8466 cat conftest.
$ac_ext >&5
8468 eval "ac_cv_func_$ac_func=no"
8473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8476 cat >> confdefs.h
<<EOF
8477 #define $ac_tr_func 1
8481 echo "$ac_t""no" 1>&6
8489 *-lsec*) for ac_func
in getprpwnam
8491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8492 echo "configure:8493: checking for $ac_func" >&5
8493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8496 cat > conftest.
$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 /* System header to define __stub macros and hopefully few prototypes,
8500 which can conflict with char $ac_func(); below. */
8502 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8509 /* The GNU C library defines this for functions which it implements
8510 to always fail with ENOSYS. Some functions are actually named
8511 something starting with __ and the normal name is an alias. */
8512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8520 if { (eval echo configure
:8521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8522 eval "ac_cv_func_$ac_func=yes"
8524 echo "configure: failed program was:" >&5
8525 cat conftest.
$ac_ext >&5
8527 eval "ac_cv_func_$ac_func=no"
8532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8533 echo "$ac_t""yes" 1>&6
8534 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8535 cat >> confdefs.h
<<EOF
8536 #define $ac_tr_func 1
8540 echo "$ac_t""no" 1>&6
8544 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8545 echo "configure:8546: checking for getprpwnam in -lsec" >&5
8546 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8548 echo $ac_n "(cached) $ac_c" 1>&6
8550 ac_save_LIBS
="$LIBS"
8552 cat > conftest.
$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8555 /* Override any gcc2 internal prototype to avoid an error. */
8556 /* We use char because int might match the return type of a gcc2
8557 builtin and then its argument prototype would still apply. */
8564 if { (eval echo configure
:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8566 eval "ac_cv_lib_$ac_lib_var=yes"
8568 echo "configure: failed program was:" >&5
8569 cat conftest.
$ac_ext >&5
8571 eval "ac_cv_lib_$ac_lib_var=no"
8574 LIBS
="$ac_save_LIBS"
8577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8578 echo "$ac_t""yes" 1>&6
8579 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8580 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8581 cat >> confdefs.h
<<EOF
8582 #define $ac_tr_lib 1
8588 echo "$ac_t""no" 1>&6
8591 for ac_func
in getprpwnam
8593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8594 echo "configure:8595: checking for $ac_func" >&5
8595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8596 echo $ac_n "(cached) $ac_c" 1>&6
8598 cat > conftest.
$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8601 /* System header to define __stub macros and hopefully few prototypes,
8602 which can conflict with char $ac_func(); below. */
8604 /* Override any gcc2 internal prototype to avoid an error. */
8605 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8611 /* The GNU C library defines this for functions which it implements
8612 to always fail with ENOSYS. Some functions are actually named
8613 something starting with __ and the normal name is an alias. */
8614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8622 if { (eval echo configure
:8623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8624 eval "ac_cv_func_$ac_func=yes"
8626 echo "configure: failed program was:" >&5
8627 cat conftest.
$ac_ext >&5
8629 eval "ac_cv_func_$ac_func=no"
8634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8635 echo "$ac_t""yes" 1>&6
8636 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8637 cat >> confdefs.h
<<EOF
8638 #define $ac_tr_func 1
8642 echo "$ac_t""no" 1>&6
8650 # this bit needs to be modified for each OS that is suported by
8651 # smbwrapper. You need to specify how to created a shared library and
8652 # how to compile C code to produce PIC object files
8654 # these are the defaults, good for lots of systems
8662 # Assume non-shared by default and override below
8664 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8665 echo "configure:8666: checking ability to build shared libraries" >&5
8667 # and these are for particular systems
8669 *linux
*) cat >> confdefs.h
<<\EOF
8675 DYNEXP
="-Wl,--export-dynamic"
8677 SONAMEFLAG
="-Wl,-soname="
8678 cat >> confdefs.h
<<\EOF
8679 #define STAT_ST_BLOCKSIZE 512
8683 *solaris
*) cat >> confdefs.h
<<\EOF
8690 if test "${GCC}" = "yes"; then
8692 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8697 ## ${CFLAGS} added for building 64-bit shared
8698 ## libs using Sun's Compiler
8699 LDSHFLAGS
="-G \${CFLAGS}"
8703 cat >> confdefs.h
<<\EOF
8704 #define STAT_ST_BLOCKSIZE 512
8708 *sunos
*) cat >> confdefs.h
<<\EOF
8714 SONAMEFLAG
="-Wl,-h,"
8715 PICFLAG
="-KPIC" # Is this correct for SunOS
8717 *bsd
*) BLDSHARED
="true"
8719 DYNEXP
="-Wl,-Bdynamic"
8720 SONAMEFLAG
="-Wl,-soname,"
8722 cat >> confdefs.h
<<\EOF
8723 #define STAT_ST_BLOCKSIZE 512
8727 *irix
*) cat >> confdefs.h
<<\EOF
8732 *irix6
*) cat >> confdefs.h
<<\EOF
8738 ATTEMPT_WRAP32_BUILD
=yes
8740 LDSHFLAGS
="-set_version sgi1.0 -shared"
8741 SONAMEFLAG
="-soname "
8743 if test "${GCC}" = "yes"; then
8748 cat >> confdefs.h
<<\EOF
8749 #define STAT_ST_BLOCKSIZE 512
8753 *aix
*) cat >> confdefs.h
<<\EOF
8758 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8759 DYNEXP
="-Wl,-brtl,-bexpall"
8760 if test "${GCC}" = "yes"; then
8763 PICFLAG
="-O2 -qmaxmem=6000"
8764 ## for funky AIX compiler using strncpy()
8765 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8768 cat >> confdefs.h
<<\EOF
8769 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8773 *hpux
*) cat >> confdefs.h
<<\EOF
8778 # Use special PIC flags for the native HP-UX compiler.
8779 if test $ac_cv_prog_cc_Ae = yes; then
8782 LDSHFLAGS
="-B symbolic -b -z"
8787 cat >> confdefs.h
<<\EOF
8788 #define STAT_ST_BLOCKSIZE 8192
8792 *qnx
*) cat >> confdefs.h
<<\EOF
8796 *osf
*) cat >> confdefs.h
<<\EOF
8802 SONAMEFLAG
="-Wl,-soname,"
8805 *sco
*) cat >> confdefs.h
<<\EOF
8809 *unixware
*) cat >> confdefs.h
<<\EOF
8815 SONAMEFLAG
="-Wl,-soname,"
8818 *next2
*) cat >> confdefs.h
<<\EOF
8822 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8823 set dummy
groff; ac_word
=$2
8824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8825 echo "configure:8826: checking for $ac_word" >&5
8826 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8829 if test -n "$ROFF"; then
8830 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8832 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8834 for ac_dir
in $ac_dummy; do
8835 test -z "$ac_dir" && ac_dir
=.
8836 if test -f $ac_dir/$ac_word; then
8837 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8844 ROFF
="$ac_cv_prog_ROFF"
8845 if test -n "$ROFF"; then
8846 echo "$ac_t""$ROFF" 1>&6
8848 echo "$ac_t""no" 1>&6
8853 *-univel-*) if test "$GCC" != yes ; then
8854 cat >> confdefs.h
<<\EOF
8855 #define HAVE_MEMSET 1
8862 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8863 #define RELIANTUNIX 1
8869 if test "$GCC" != yes ; then
8870 cat >> confdefs.h
<<\EOF
8871 #define HAVE_MEMSET 1
8879 echo "$ac_t""$BLDSHARED" 1>&6
8880 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8881 echo "configure:8882: checking linker flags for shared libraries" >&5
8882 echo "$ac_t""$LDSHFLAGS" 1>&6
8883 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8884 echo "configure:8885: checking compiler flags for position-independent code" >&5
8885 echo "$ac_t""$PICFLAGS" 1>&6
8887 # try to work out how to produce pic code with this compiler
8888 if test x
$PICFLAG = x
; then
8889 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8890 echo "configure:8891: checking whether ${CC-cc} accepts -fpic" >&5
8891 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8892 echo $ac_n "(cached) $ac_c" 1>&6
8894 echo 'void f(){}' > conftest.c
8895 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8896 ac_cv_prog_cc_fpic
=yes
8898 ac_cv_prog_cc_fpic
=no
8904 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8905 if test $ac_cv_prog_cc_fpic = yes; then
8909 if test x
$PICFLAG = x
; then
8910 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8911 echo "configure:8912: checking whether ${CC-cc} accepts -KPIC" >&5
8912 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8915 echo 'void f(){}' > conftest.c
8916 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8917 ac_cv_prog_cc_KPIC
=yes
8919 ac_cv_prog_cc_KPIC
=no
8925 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8926 if test $ac_cv_prog_cc_KPIC = yes; then
8930 if test x
$PICFLAG = x
; then
8931 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8932 echo "configure:8933: checking whether ${CC-cc} accepts -Kpic" >&5
8933 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8936 echo 'void f(){}' > conftest.c
8937 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8938 ac_cv_prog_cc_Kpic
=yes
8940 ac_cv_prog_cc_Kpic
=no
8946 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8947 if test $ac_cv_prog_cc_Kpic = yes; then
8954 echo $ac_n "checking for long long""... $ac_c" 1>&6
8955 echo "configure:8956: checking for long long" >&5
8956 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8960 if test "$cross_compiling" = yes; then
8961 samba_cv_have_longlong
=cross
8963 cat > conftest.
$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8967 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8969 if { (eval echo configure
:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8971 samba_cv_have_longlong
=yes
8973 echo "configure: failed program was:" >&5
8974 cat conftest.
$ac_ext >&5
8976 samba_cv_have_longlong
=no
8983 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8984 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8985 cat >> confdefs.h
<<\EOF
8986 #define HAVE_LONGLONG 1
8992 # Check if the compiler supports the LL prefix on long long integers.
8995 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8996 echo "configure:8997: checking for LL suffix on long long integers" >&5
8997 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8998 echo $ac_n "(cached) $ac_c" 1>&6
9001 cat > conftest.
$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9006 long long i = 0x8000000000LL
9009 if { (eval echo configure
:9010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9011 samba_cv_compiler_supports_ll
=yes
9013 echo "configure: failed program was:" >&5
9014 cat conftest.
$ac_ext >&5
9016 samba_cv_compiler_supports_ll
=no
9021 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9022 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9023 cat >> confdefs.h
<<\EOF
9024 #define COMPILER_SUPPORTS_LL 1
9030 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9031 echo "configure:9032: checking for 64 bit off_t" >&5
9032 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9033 echo $ac_n "(cached) $ac_c" 1>&6
9036 if test "$cross_compiling" = yes; then
9037 samba_cv_SIZEOF_OFF_T
=cross
9039 cat > conftest.
$ac_ext <<EOF
9040 #line 9041 "configure"
9041 #include "confdefs.h"
9043 #include <sys/stat.h>
9044 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9046 if { (eval echo configure
:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9048 samba_cv_SIZEOF_OFF_T
=yes
9050 echo "configure: failed program was:" >&5
9051 cat conftest.
$ac_ext >&5
9053 samba_cv_SIZEOF_OFF_T
=no
9060 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9061 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9062 cat >> confdefs.h
<<\EOF
9063 #define SIZEOF_OFF_T 8
9068 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9069 echo "configure:9070: checking for off64_t" >&5
9070 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9074 if test "$cross_compiling" = yes; then
9075 samba_cv_HAVE_OFF64_T
=cross
9077 cat > conftest.
$ac_ext <<EOF
9078 #line 9079 "configure"
9079 #include "confdefs.h"
9081 #if defined(HAVE_UNISTD_H)
9085 #include <sys/stat.h>
9086 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9088 if { (eval echo configure
:9089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9090 samba_cv_HAVE_OFF64_T
=yes
9092 echo "configure: failed program was:" >&5
9093 cat conftest.
$ac_ext >&5
9095 samba_cv_HAVE_OFF64_T
=no
9102 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9103 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9104 cat >> confdefs.h
<<\EOF
9105 #define HAVE_OFF64_T 1
9110 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9111 echo "configure:9112: checking for 64 bit ino_t" >&5
9112 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9113 echo $ac_n "(cached) $ac_c" 1>&6
9116 if test "$cross_compiling" = yes; then
9117 samba_cv_SIZEOF_INO_T
=cross
9119 cat > conftest.
$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9123 #include <sys/stat.h>
9124 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9126 if { (eval echo configure
:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9128 samba_cv_SIZEOF_INO_T
=yes
9130 echo "configure: failed program was:" >&5
9131 cat conftest.
$ac_ext >&5
9133 samba_cv_SIZEOF_INO_T
=no
9140 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9141 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9142 cat >> confdefs.h
<<\EOF
9143 #define SIZEOF_INO_T 8
9148 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9149 echo "configure:9150: checking for ino64_t" >&5
9150 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9151 echo $ac_n "(cached) $ac_c" 1>&6
9154 if test "$cross_compiling" = yes; then
9155 samba_cv_HAVE_INO64_T
=cross
9157 cat > conftest.
$ac_ext <<EOF
9158 #line 9159 "configure"
9159 #include "confdefs.h"
9161 #if defined(HAVE_UNISTD_H)
9165 #include <sys/stat.h>
9166 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9168 if { (eval echo configure
:9169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9170 samba_cv_HAVE_INO64_T
=yes
9172 echo "configure: failed program was:" >&5
9173 cat conftest.
$ac_ext >&5
9175 samba_cv_HAVE_INO64_T
=no
9182 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9183 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9184 cat >> confdefs.h
<<\EOF
9185 #define HAVE_INO64_T 1
9190 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9191 echo "configure:9192: checking for dev64_t" >&5
9192 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9193 echo $ac_n "(cached) $ac_c" 1>&6
9196 if test "$cross_compiling" = yes; then
9197 samba_cv_HAVE_DEV64_T
=cross
9199 cat > conftest.
$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9203 #if defined(HAVE_UNISTD_H)
9207 #include <sys/stat.h>
9208 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9210 if { (eval echo configure
:9211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9212 samba_cv_HAVE_DEV64_T
=yes
9214 echo "configure: failed program was:" >&5
9215 cat conftest.
$ac_ext >&5
9217 samba_cv_HAVE_DEV64_T
=no
9224 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9225 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9226 cat >> confdefs.h
<<\EOF
9227 #define HAVE_DEV64_T 1
9232 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9233 echo "configure:9234: checking for struct dirent64" >&5
9234 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9238 cat > conftest.
$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9242 #if defined(HAVE_UNISTD_H)
9245 #include <sys/types.h>
9251 if { (eval echo configure
:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9253 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9255 echo "configure: failed program was:" >&5
9256 cat conftest.
$ac_ext >&5
9258 samba_cv_HAVE_STRUCT_DIRENT64
=no
9263 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9264 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9265 cat >> confdefs.h
<<\EOF
9266 #define HAVE_STRUCT_DIRENT64 1
9271 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9272 echo "configure:9273: checking for major macro" >&5
9273 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9277 if test "$cross_compiling" = yes; then
9278 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9280 cat > conftest.
$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9284 #if defined(HAVE_UNISTD_H)
9287 #include <sys/types.h>
9288 main() { dev_t dev; int i = major(dev); return 0; }
9290 if { (eval echo configure
:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9292 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9294 echo "configure: failed program was:" >&5
9295 cat conftest.
$ac_ext >&5
9297 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9304 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9305 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9306 cat >> confdefs.h
<<\EOF
9307 #define HAVE_DEVICE_MAJOR_FN 1
9312 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9313 echo "configure:9314: checking for minor macro" >&5
9314 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9318 if test "$cross_compiling" = yes; then
9319 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9321 cat > conftest.
$ac_ext <<EOF
9322 #line 9323 "configure"
9323 #include "confdefs.h"
9325 #if defined(HAVE_UNISTD_H)
9328 #include <sys/types.h>
9329 main() { dev_t dev; int i = minor(dev); return 0; }
9331 if { (eval echo configure
:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9333 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9335 echo "configure: failed program was:" >&5
9336 cat conftest.
$ac_ext >&5
9338 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9345 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9346 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9347 cat >> confdefs.h
<<\EOF
9348 #define HAVE_DEVICE_MINOR_FN 1
9353 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9354 echo "configure:9355: checking for makedev macro" >&5
9355 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9359 if test "$cross_compiling" = yes; then
9360 samba_cv_HAVE_MAKEDEV_FN
=cross
9362 cat > conftest.
$ac_ext <<EOF
9363 #line 9364 "configure"
9364 #include "confdefs.h"
9366 #if defined(HAVE_UNISTD_H)
9369 #include <sys/types.h>
9370 main() { dev_t dev = makedev(1,2); return 0; }
9372 if { (eval echo configure
:9373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9374 samba_cv_HAVE_MAKEDEV_FN
=yes
9376 echo "configure: failed program was:" >&5
9377 cat conftest.
$ac_ext >&5
9379 samba_cv_HAVE_MAKEDEV_FN
=no
9386 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9387 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9388 cat >> confdefs.h
<<\EOF
9389 #define MAKEDEV_FN 1
9394 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9395 echo "configure:9396: checking for unsigned char" >&5
9396 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9400 if test "$cross_compiling" = yes; then
9401 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9403 cat > conftest.
$ac_ext <<EOF
9404 #line 9405 "configure"
9405 #include "confdefs.h"
9407 main() { char c; c=250; exit((c > 0)?0:1); }
9409 if { (eval echo configure
:9410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9411 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9413 echo "configure: failed program was:" >&5
9414 cat conftest.
$ac_ext >&5
9416 samba_cv_HAVE_UNSIGNED_CHAR
=no
9423 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9424 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9425 cat >> confdefs.h
<<\EOF
9426 #define HAVE_UNSIGNED_CHAR 1
9431 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9432 echo "configure:9433: checking for sin_len in sock" >&5
9433 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9437 cat > conftest.
$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 #include <sys/types.h>
9441 #include <sys/socket.h>
9442 #include <netinet/in.h>
9444 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9447 if { (eval echo configure
:9448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9449 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9451 echo "configure: failed program was:" >&5
9452 cat conftest.
$ac_ext >&5
9454 samba_cv_HAVE_SOCK_SIN_LEN
=no
9459 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9460 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9461 cat >> confdefs.h
<<\EOF
9462 #define HAVE_SOCK_SIN_LEN 1
9467 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9468 echo "configure:9469: checking whether seekdir returns void" >&5
9469 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9470 echo $ac_n "(cached) $ac_c" 1>&6
9473 cat > conftest.
$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9476 #include <sys/types.h>
9478 void seekdir(DIR *d, long loc) { return; }
9483 if { (eval echo configure
:9484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9485 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9487 echo "configure: failed program was:" >&5
9488 cat conftest.
$ac_ext >&5
9490 samba_cv_SEEKDIR_RETURNS_VOID
=no
9495 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9496 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9497 cat >> confdefs.h
<<\EOF
9498 #define SEEKDIR_RETURNS_VOID 1
9503 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9504 echo "configure:9505: checking for __FILE__ macro" >&5
9505 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
9509 cat > conftest.
$ac_ext <<EOF
9510 #line 9511 "configure"
9511 #include "confdefs.h"
9514 printf("%s\n", __FILE__);
9517 if { (eval echo configure
:9518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9519 samba_cv_HAVE_FILE_MACRO
=yes
9521 echo "configure: failed program was:" >&5
9522 cat conftest.
$ac_ext >&5
9524 samba_cv_HAVE_FILE_MACRO
=no
9529 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9530 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9531 cat >> confdefs.h
<<\EOF
9532 #define HAVE_FILE_MACRO 1
9537 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9538 echo "configure:9539: checking for __FUNCTION__ macro" >&5
9539 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9543 cat > conftest.
$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9548 printf("%s\n", __FUNCTION__);
9551 if { (eval echo configure
:9552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9553 samba_cv_HAVE_FUNCTION_MACRO
=yes
9555 echo "configure: failed program was:" >&5
9556 cat conftest.
$ac_ext >&5
9558 samba_cv_HAVE_FUNCTION_MACRO
=no
9563 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9564 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9565 cat >> confdefs.h
<<\EOF
9566 #define HAVE_FUNCTION_MACRO 1
9571 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9572 echo "configure:9573: checking if gettimeofday takes tz argument" >&5
9573 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9577 if test "$cross_compiling" = yes; then
9578 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9580 cat > conftest.
$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9584 #include <sys/time.h>
9586 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9588 if { (eval echo configure
:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9590 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9592 echo "configure: failed program was:" >&5
9593 cat conftest.
$ac_ext >&5
9595 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9602 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9603 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9604 cat >> confdefs.h
<<\EOF
9605 #define HAVE_GETTIMEOFDAY_TZ 1
9610 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9611 echo "configure:9612: checking for __va_copy" >&5
9612 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9616 cat > conftest.
$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9625 if { (eval echo configure
:9626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9627 samba_cv_HAVE_VA_COPY
=yes
9629 echo "configure: failed program was:" >&5
9630 cat conftest.
$ac_ext >&5
9632 samba_cv_HAVE_VA_COPY
=no
9637 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9638 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9639 cat >> confdefs.h
<<\EOF
9640 #define HAVE_VA_COPY 1
9645 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9646 echo "configure:9647: checking for C99 vsnprintf" >&5
9647 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9648 echo $ac_n "(cached) $ac_c" 1>&6
9651 if test "$cross_compiling" = yes; then
9652 samba_cv_HAVE_C99_VSNPRINTF
=cross
9654 cat > conftest.
$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9658 #include <sys/types.h>
9660 void foo(const char *format, ...) {
9665 va_start(ap, format);
9666 len = vsnprintf(buf, 0, format, ap);
9668 if (len != 5) exit(1);
9670 va_start(ap, format);
9671 len = vsnprintf(0, 0, format, ap);
9673 if (len != 5) exit(1);
9675 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9679 main() { foo("hello"); }
9682 if { (eval echo configure
:9683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9684 samba_cv_HAVE_C99_VSNPRINTF
=yes
9686 echo "configure: failed program was:" >&5
9687 cat conftest.
$ac_ext >&5
9689 samba_cv_HAVE_C99_VSNPRINTF
=no
9696 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9697 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9698 cat >> confdefs.h
<<\EOF
9699 #define HAVE_C99_VSNPRINTF 1
9704 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9705 echo "configure:9706: checking for broken readdir" >&5
9706 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9707 echo $ac_n "(cached) $ac_c" 1>&6
9710 if test "$cross_compiling" = yes; then
9711 samba_cv_HAVE_BROKEN_READDIR
=cross
9713 cat > conftest.
$ac_ext <<EOF
9714 #line 9715 "configure"
9715 #include "confdefs.h"
9716 #include <sys/types.h>
9718 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9719 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9720 di->d_name[0] == 0) exit(0); exit(1);}
9722 if { (eval echo configure
:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9724 samba_cv_HAVE_BROKEN_READDIR
=yes
9726 echo "configure: failed program was:" >&5
9727 cat conftest.
$ac_ext >&5
9729 samba_cv_HAVE_BROKEN_READDIR
=no
9736 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9737 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9738 cat >> confdefs.h
<<\EOF
9739 #define HAVE_BROKEN_READDIR 1
9744 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9745 echo "configure:9746: checking for utimbuf" >&5
9746 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9750 cat > conftest.
$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 #include <sys/types.h>
9756 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9759 if { (eval echo configure
:9760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9761 samba_cv_HAVE_UTIMBUF
=yes
9763 echo "configure: failed program was:" >&5
9764 cat conftest.
$ac_ext >&5
9766 samba_cv_HAVE_UTIMBUF
=no
9771 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9772 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9773 cat >> confdefs.h
<<\EOF
9774 #define HAVE_UTIMBUF 1
9780 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9783 echo "configure:9784: checking for $ac_func" >&5
9784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9785 echo $ac_n "(cached) $ac_c" 1>&6
9787 cat > conftest.
$ac_ext <<EOF
9788 #line 9789 "configure"
9789 #include "confdefs.h"
9790 /* System header to define __stub macros and hopefully few prototypes,
9791 which can conflict with char $ac_func(); below. */
9793 /* Override any gcc2 internal prototype to avoid an error. */
9794 /* We use char because int might match the return type of a gcc2
9795 builtin and then its argument prototype would still apply. */
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9811 if { (eval echo configure
:9812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9813 eval "ac_cv_func_$ac_func=yes"
9815 echo "configure: failed program was:" >&5
9816 cat conftest.
$ac_ext >&5
9818 eval "ac_cv_func_$ac_func=no"
9823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9824 echo "$ac_t""yes" 1>&6
9825 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9826 cat >> confdefs.h
<<EOF
9827 #define $ac_tr_func 1
9831 echo "$ac_t""no" 1>&6
9836 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9837 echo "configure:9838: checking for ut_name in utmp" >&5
9838 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9842 cat > conftest.
$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 #include <sys/types.h>
9848 struct utmp ut; ut.ut_name[0] = 'a';
9851 if { (eval echo configure
:9852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9853 samba_cv_HAVE_UT_UT_NAME
=yes
9855 echo "configure: failed program was:" >&5
9856 cat conftest.
$ac_ext >&5
9858 samba_cv_HAVE_UT_UT_NAME
=no
9863 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9864 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9865 cat >> confdefs.h
<<\EOF
9866 #define HAVE_UT_UT_NAME 1
9871 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9872 echo "configure:9873: checking for ut_user in utmp" >&5
9873 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9877 cat > conftest.
$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 #include <sys/types.h>
9883 struct utmp ut; ut.ut_user[0] = 'a';
9886 if { (eval echo configure
:9887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9888 samba_cv_HAVE_UT_UT_USER
=yes
9890 echo "configure: failed program was:" >&5
9891 cat conftest.
$ac_ext >&5
9893 samba_cv_HAVE_UT_UT_USER
=no
9898 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9899 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9900 cat >> confdefs.h
<<\EOF
9901 #define HAVE_UT_UT_USER 1
9906 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9907 echo "configure:9908: checking for ut_id in utmp" >&5
9908 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9909 echo $ac_n "(cached) $ac_c" 1>&6
9912 cat > conftest.
$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 #include <sys/types.h>
9918 struct utmp ut; ut.ut_id[0] = 'a';
9921 if { (eval echo configure
:9922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9923 samba_cv_HAVE_UT_UT_ID
=yes
9925 echo "configure: failed program was:" >&5
9926 cat conftest.
$ac_ext >&5
9928 samba_cv_HAVE_UT_UT_ID
=no
9933 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9934 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9935 cat >> confdefs.h
<<\EOF
9936 #define HAVE_UT_UT_ID 1
9941 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9942 echo "configure:9943: checking for ut_host in utmp" >&5
9943 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9944 echo $ac_n "(cached) $ac_c" 1>&6
9947 cat > conftest.
$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9950 #include <sys/types.h>
9953 struct utmp ut; ut.ut_host[0] = 'a';
9956 if { (eval echo configure
:9957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9958 samba_cv_HAVE_UT_UT_HOST
=yes
9960 echo "configure: failed program was:" >&5
9961 cat conftest.
$ac_ext >&5
9963 samba_cv_HAVE_UT_UT_HOST
=no
9968 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9969 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9970 cat >> confdefs.h
<<\EOF
9971 #define HAVE_UT_UT_HOST 1
9976 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9977 echo "configure:9978: checking for ut_time in utmp" >&5
9978 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9979 echo $ac_n "(cached) $ac_c" 1>&6
9982 cat > conftest.
$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9985 #include <sys/types.h>
9988 struct utmp ut; time_t t; ut.ut_time = t;
9991 if { (eval echo configure
:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9993 samba_cv_HAVE_UT_UT_TIME
=yes
9995 echo "configure: failed program was:" >&5
9996 cat conftest.
$ac_ext >&5
9998 samba_cv_HAVE_UT_UT_TIME
=no
10003 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10004 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10005 cat >> confdefs.h
<<\EOF
10006 #define HAVE_UT_UT_TIME 1
10011 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10012 echo "configure:10013: checking for ut_tv in utmp" >&5
10013 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10017 cat > conftest.
$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 #include <sys/types.h>
10023 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10026 if { (eval echo configure
:10027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10028 samba_cv_HAVE_UT_UT_TV
=yes
10030 echo "configure: failed program was:" >&5
10031 cat conftest.
$ac_ext >&5
10033 samba_cv_HAVE_UT_UT_TV
=no
10038 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10039 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10040 cat >> confdefs.h
<<\EOF
10041 #define HAVE_UT_UT_TV 1
10046 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10047 echo "configure:10048: checking for ut_type in utmp" >&5
10048 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10049 echo $ac_n "(cached) $ac_c" 1>&6
10052 cat > conftest.
$ac_ext <<EOF
10053 #line 10054 "configure"
10054 #include "confdefs.h"
10055 #include <sys/types.h>
10058 struct utmp ut; ut.ut_type = 0;
10061 if { (eval echo configure
:10062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10063 samba_cv_HAVE_UT_UT_TYPE
=yes
10065 echo "configure: failed program was:" >&5
10066 cat conftest.
$ac_ext >&5
10068 samba_cv_HAVE_UT_UT_TYPE
=no
10073 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10074 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10075 cat >> confdefs.h
<<\EOF
10076 #define HAVE_UT_UT_TYPE 1
10081 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10082 echo "configure:10083: checking for ut_pid in utmp" >&5
10083 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10087 cat > conftest.
$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10093 struct utmp ut; ut.ut_pid = 0;
10096 if { (eval echo configure
:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10098 samba_cv_HAVE_UT_UT_PID
=yes
10100 echo "configure: failed program was:" >&5
10101 cat conftest.
$ac_ext >&5
10103 samba_cv_HAVE_UT_UT_PID
=no
10108 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10109 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10110 cat >> confdefs.h
<<\EOF
10111 #define HAVE_UT_UT_PID 1
10116 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10117 echo "configure:10118: checking for ut_exit in utmp" >&5
10118 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10122 cat > conftest.
$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 #include <sys/types.h>
10128 struct utmp ut; ut.ut_exit.e_exit = 0;
10131 if { (eval echo configure
:10132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10133 samba_cv_HAVE_UT_UT_EXIT
=yes
10135 echo "configure: failed program was:" >&5
10136 cat conftest.
$ac_ext >&5
10138 samba_cv_HAVE_UT_UT_EXIT
=no
10143 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10144 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10145 cat >> confdefs.h
<<\EOF
10146 #define HAVE_UT_UT_EXIT 1
10151 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10152 echo "configure:10153: checking for ut_addr in utmp" >&5
10153 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10154 echo $ac_n "(cached) $ac_c" 1>&6
10157 cat > conftest.
$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 #include <sys/types.h>
10163 struct utmp ut; ut.ut_addr = 0;
10166 if { (eval echo configure
:10167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10168 samba_cv_HAVE_UT_UT_ADDR
=yes
10170 echo "configure: failed program was:" >&5
10171 cat conftest.
$ac_ext >&5
10173 samba_cv_HAVE_UT_UT_ADDR
=no
10178 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10179 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10180 cat >> confdefs.h
<<\EOF
10181 #define HAVE_UT_UT_ADDR 1
10186 if test x
$ac_cv_func_pututline = xyes
; then
10187 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10188 echo "configure:10189: checking whether pututline returns pointer" >&5
10189 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10190 echo $ac_n "(cached) $ac_c" 1>&6
10193 cat > conftest.
$ac_ext <<EOF
10194 #line 10195 "configure"
10195 #include "confdefs.h"
10196 #include <sys/types.h>
10199 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10202 if { (eval echo configure
:10203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10204 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10206 echo "configure: failed program was:" >&5
10207 cat conftest.
$ac_ext >&5
10209 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10214 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10215 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10216 cat >> confdefs.h
<<\EOF
10217 #define PUTUTLINE_RETURNS_UTMP 1
10223 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10224 echo "configure:10225: checking for ut_syslen in utmpx" >&5
10225 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10229 cat > conftest.
$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10232 #include <sys/types.h>
10235 struct utmpx ux; ux.ut_syslen = 0;
10238 if { (eval echo configure
:10239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10240 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10242 echo "configure: failed program was:" >&5
10243 cat conftest.
$ac_ext >&5
10245 samba_cv_HAVE_UX_UT_SYSLEN
=no
10250 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10251 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10252 cat >> confdefs.h
<<\EOF
10253 #define HAVE_UX_UT_SYSLEN 1
10258 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10259 echo "configure:10260: checking for Linux kernel oplocks" >&5
10260 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10264 if test "$cross_compiling" = yes; then
10265 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10267 cat > conftest.
$ac_ext <<EOF
10268 #line 10269 "configure"
10269 #include "confdefs.h"
10271 #include <sys/types.h>
10274 #define F_GETLEASE 1025
10277 int fd = open("/dev/null", O_RDONLY);
10278 return fcntl(fd, F_GETLEASE, 0) == -1;
10282 if { (eval echo configure
:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10284 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10286 echo "configure: failed program was:" >&5
10287 cat conftest.
$ac_ext >&5
10289 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10296 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10297 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10298 cat >> confdefs.h
<<\EOF
10299 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10304 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10305 echo "configure:10306: checking for kernel change notify support" >&5
10306 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10307 echo $ac_n "(cached) $ac_c" 1>&6
10310 if test "$cross_compiling" = yes; then
10311 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10313 cat > conftest.
$ac_ext <<EOF
10314 #line 10315 "configure"
10315 #include "confdefs.h"
10317 #include <sys/types.h>
10319 #include <signal.h>
10321 #define F_NOTIFY 1026
10324 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10328 if { (eval echo configure
:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10330 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10332 echo "configure: failed program was:" >&5
10333 cat conftest.
$ac_ext >&5
10335 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10342 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10343 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10344 cat >> confdefs.h
<<\EOF
10345 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10350 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10351 echo "configure:10352: checking for kernel share modes" >&5
10352 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10356 if test "$cross_compiling" = yes; then
10357 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10359 cat > conftest.
$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10363 #include <sys/types.h>
10365 #include <signal.h>
10366 #include <sys/file.h>
10368 #define LOCK_MAND 32
10369 #define LOCK_READ 64
10372 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10376 if { (eval echo configure
:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10378 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10380 echo "configure: failed program was:" >&5
10381 cat conftest.
$ac_ext >&5
10383 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10390 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10391 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10392 cat >> confdefs.h
<<\EOF
10393 #define HAVE_KERNEL_SHARE_MODES 1
10401 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10402 echo "configure:10403: checking for IRIX kernel oplock type definitions" >&5
10403 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10407 cat > conftest.
$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 #include <sys/types.h>
10413 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10416 if { (eval echo configure
:10417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10418 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10420 echo "configure: failed program was:" >&5
10421 cat conftest.
$ac_ext >&5
10423 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10428 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10429 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10430 cat >> confdefs.h
<<\EOF
10431 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10436 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10437 echo "configure:10438: checking for irix specific capabilities" >&5
10438 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10442 if test "$cross_compiling" = yes; then
10443 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10445 cat > conftest.
$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10448 #include <sys/types.h>
10449 #include <sys/capability.h>
10452 if ((cap = cap_get_proc()) == NULL)
10454 cap->cap_effective |= CAP_NETWORK_MGT;
10455 cap->cap_inheritable |= CAP_NETWORK_MGT;
10461 if { (eval echo configure
:10462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10463 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10465 echo "configure: failed program was:" >&5
10466 cat conftest.
$ac_ext >&5
10468 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10475 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10476 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10477 cat >> confdefs.h
<<\EOF
10478 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10484 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10485 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10488 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10489 echo "configure:10490: checking for int16 typedef included by rpc/rpc.h" >&5
10490 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10491 echo $ac_n "(cached) $ac_c" 1>&6
10494 cat > conftest.
$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497 #include <sys/types.h>
10498 #if defined(HAVE_RPC_RPC_H)
10499 #include <rpc/rpc.h>
10505 if { (eval echo configure
:10506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10507 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10509 echo "configure: failed program was:" >&5
10510 cat conftest.
$ac_ext >&5
10512 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10517 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10518 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10519 cat >> confdefs.h
<<\EOF
10520 #define HAVE_INT16_FROM_RPC_RPC_H 1
10525 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10526 echo "configure:10527: checking for uint16 typedef included by rpc/rpc.h" >&5
10527 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10528 echo $ac_n "(cached) $ac_c" 1>&6
10531 cat > conftest.
$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10534 #include <sys/types.h>
10535 #if defined(HAVE_RPC_RPC_H)
10536 #include <rpc/rpc.h>
10542 if { (eval echo configure
:10543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10544 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10546 echo "configure: failed program was:" >&5
10547 cat conftest.
$ac_ext >&5
10549 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10554 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10555 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10556 cat >> confdefs.h
<<\EOF
10557 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10562 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10563 echo "configure:10564: checking for int32 typedef included by rpc/rpc.h" >&5
10564 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10568 cat > conftest.
$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 #include <sys/types.h>
10572 #if defined(HAVE_RPC_RPC_H)
10573 #include <rpc/rpc.h>
10579 if { (eval echo configure
:10580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10581 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10583 echo "configure: failed program was:" >&5
10584 cat conftest.
$ac_ext >&5
10586 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10591 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10592 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10593 cat >> confdefs.h
<<\EOF
10594 #define HAVE_INT32_FROM_RPC_RPC_H 1
10599 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10600 echo "configure:10601: checking for uint32 typedef included by rpc/rpc.h" >&5
10601 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10605 cat > conftest.
$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 #include <sys/types.h>
10609 #if defined(HAVE_RPC_RPC_H)
10610 #include <rpc/rpc.h>
10616 if { (eval echo configure
:10617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10618 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10620 echo "configure: failed program was:" >&5
10621 cat conftest.
$ac_ext >&5
10623 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10628 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10629 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10630 cat >> confdefs.h
<<\EOF
10631 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10637 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10638 echo "configure:10639: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10639 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10640 echo $ac_n "(cached) $ac_c" 1>&6
10643 cat > conftest.
$ac_ext <<EOF
10644 #line 10645 "configure"
10645 #include "confdefs.h"
10646 #include <sys/types.h>
10647 #ifdef HAVE_SYS_SECURITY_H
10648 #include <sys/security.h>
10650 #endif /* HAVE_SYS_SECURITY_H */
10651 #if defined(HAVE_RPC_RPC_H)
10652 #include <rpc/rpc.h>
10658 if { (eval echo configure
:10659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10660 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10662 echo "configure: failed program was:" >&5
10663 cat conftest.
$ac_ext >&5
10665 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10670 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10671 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10672 cat >> confdefs.h
<<\EOF
10673 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10678 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10679 echo "configure:10680: checking for test routines" >&5
10680 if test "$cross_compiling" = yes; then
10681 echo "configure: warning: cannot run when cross-compiling" 1>&2
10683 cat > conftest.
$ac_ext <<EOF
10684 #line 10685 "configure"
10685 #include "confdefs.h"
10686 #include "${srcdir-.}/tests/trivial.c"
10688 if { (eval echo configure
:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10690 echo "$ac_t""yes" 1>&6
10692 echo "configure: failed program was:" >&5
10693 cat conftest.
$ac_ext >&5
10695 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10701 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10702 echo "configure:10703: checking for ftruncate extend" >&5
10703 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10707 if test "$cross_compiling" = yes; then
10708 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10710 cat > conftest.
$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10713 #include "${srcdir-.}/tests/ftruncate.c"
10715 if { (eval echo configure
:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10717 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10719 echo "configure: failed program was:" >&5
10720 cat conftest.
$ac_ext >&5
10722 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10729 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10730 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10731 cat >> confdefs.h
<<\EOF
10732 #define HAVE_FTRUNCATE_EXTEND 1
10737 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10738 echo "configure:10739: checking for broken getgroups" >&5
10739 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10743 if test "$cross_compiling" = yes; then
10744 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10746 cat > conftest.
$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10749 #include "${srcdir-.}/tests/getgroups.c"
10751 if { (eval echo configure
:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10753 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10755 echo "configure: failed program was:" >&5
10756 cat conftest.
$ac_ext >&5
10758 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10765 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10766 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10767 cat >> confdefs.h
<<\EOF
10768 #define HAVE_BROKEN_GETGROUPS 1
10773 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10774 echo "configure:10775: checking whether getpass should be replaced" >&5
10775 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10779 SAVE_CPPFLAGS
="$CPPFLAGS"
10780 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10781 cat > conftest.
$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10785 #define REPLACE_GETPASS 1
10786 #define NO_CONFIG_H 1
10787 #define main dont_declare_main
10788 #include "${srcdir-.}/lib/getsmbpass.c"
10795 if { (eval echo configure
:10796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10797 samba_cv_REPLACE_GETPASS
=yes
10799 echo "configure: failed program was:" >&5
10800 cat conftest.
$ac_ext >&5
10802 samba_cv_REPLACE_GETPASS
=no
10805 CPPFLAGS
="$SAVE_CPPFLAGS"
10809 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10810 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10811 cat >> confdefs.h
<<\EOF
10812 #define REPLACE_GETPASS 1
10817 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10818 echo "configure:10819: checking for broken inet_ntoa" >&5
10819 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10823 if test "$cross_compiling" = yes; then
10824 samba_cv_REPLACE_INET_NTOA
=cross
10826 cat > conftest.
$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10831 #include <sys/types.h>
10832 #include <netinet/in.h>
10833 #ifdef HAVE_ARPA_INET_H
10834 #include <arpa/inet.h>
10836 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10837 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10838 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10841 if { (eval echo configure
:10842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10843 samba_cv_REPLACE_INET_NTOA
=yes
10845 echo "configure: failed program was:" >&5
10846 cat conftest.
$ac_ext >&5
10848 samba_cv_REPLACE_INET_NTOA
=no
10855 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10856 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10857 cat >> confdefs.h
<<\EOF
10858 #define REPLACE_INET_NTOA 1
10863 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10864 echo "configure:10865: checking for secure mkstemp" >&5
10865 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10866 echo $ac_n "(cached) $ac_c" 1>&6
10869 if test "$cross_compiling" = yes; then
10870 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10872 cat > conftest.
$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 #include <stdlib.h>
10876 #include <sys/types.h>
10877 #include <sys/stat.h>
10878 #include <unistd.h>
10881 char tpl[20]="/tmp/test.XXXXXX";
10882 int fd = mkstemp(tpl);
10883 if (fd == -1) exit(1);
10885 if (fstat(fd, &st) != 0) exit(1);
10886 if ((st.st_mode & 0777) != 0600) exit(1);
10890 if { (eval echo configure
:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10892 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10894 echo "configure: failed program was:" >&5
10895 cat conftest.
$ac_ext >&5
10897 samba_cv_HAVE_SECURE_MKSTEMP
=no
10904 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10905 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10906 cat >> confdefs.h
<<\EOF
10907 #define HAVE_SECURE_MKSTEMP 1
10912 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10913 echo "configure:10914: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10914 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10918 if test "$cross_compiling" = yes; then
10919 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10921 cat > conftest.
$ac_ext <<EOF
10922 #line 10923 "configure"
10923 #include "confdefs.h"
10924 #include <unistd.h>
10925 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10927 if { (eval echo configure
:10928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10929 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10931 echo "configure: failed program was:" >&5
10932 cat conftest.
$ac_ext >&5
10934 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10941 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10942 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10943 cat >> confdefs.h
<<\EOF
10944 #define SYSCONF_SC_NGROUPS_MAX 1
10949 echo $ac_n "checking for root""... $ac_c" 1>&6
10950 echo "configure:10951: checking for root" >&5
10951 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10952 echo $ac_n "(cached) $ac_c" 1>&6
10955 if test "$cross_compiling" = yes; then
10956 samba_cv_HAVE_ROOT
=cross
10958 cat > conftest.
$ac_ext <<EOF
10959 #line 10960 "configure"
10960 #include "confdefs.h"
10961 main() { exit(getuid() != 0); }
10963 if { (eval echo configure
:10964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10965 samba_cv_HAVE_ROOT
=yes
10967 echo "configure: failed program was:" >&5
10968 cat conftest.
$ac_ext >&5
10970 samba_cv_HAVE_ROOT
=no
10977 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10978 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10979 cat >> confdefs.h
<<\EOF
10980 #define HAVE_ROOT 1
10984 echo "configure: warning: running as non-root will disable some tests" 1>&2
10988 # look for a method of finding the list of network interfaces
10990 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10991 echo "configure:10992: checking for iface AIX" >&5
10992 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10993 echo $ac_n "(cached) $ac_c" 1>&6
10996 if test "$cross_compiling" = yes; then
10997 samba_cv_HAVE_IFACE_AIX
=cross
10999 cat > conftest.
$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11003 #define HAVE_IFACE_AIX 1
11004 #define AUTOCONF_TEST 1
11005 #include "confdefs.h"
11006 #include "${srcdir-.}/lib/interfaces.c"
11008 if { (eval echo configure
:11009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11010 samba_cv_HAVE_IFACE_AIX
=yes
11012 echo "configure: failed program was:" >&5
11013 cat conftest.
$ac_ext >&5
11015 samba_cv_HAVE_IFACE_AIX
=no
11022 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11023 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11024 iface
=yes;cat >> confdefs.h
<<\EOF
11025 #define HAVE_IFACE_AIX 1
11030 if test $iface = no
; then
11031 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11032 echo "configure:11033: checking for iface ifconf" >&5
11033 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11037 if test "$cross_compiling" = yes; then
11038 samba_cv_HAVE_IFACE_IFCONF
=cross
11040 cat > conftest.
$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11044 #define HAVE_IFACE_IFCONF 1
11045 #define AUTOCONF_TEST 1
11046 #include "confdefs.h"
11047 #include "${srcdir-.}/lib/interfaces.c"
11049 if { (eval echo configure
:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11051 samba_cv_HAVE_IFACE_IFCONF
=yes
11053 echo "configure: failed program was:" >&5
11054 cat conftest.
$ac_ext >&5
11056 samba_cv_HAVE_IFACE_IFCONF
=no
11063 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11064 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11065 iface
=yes;cat >> confdefs.h
<<\EOF
11066 #define HAVE_IFACE_IFCONF 1
11072 if test $iface = no
; then
11073 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11074 echo "configure:11075: checking for iface ifreq" >&5
11075 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11079 if test "$cross_compiling" = yes; then
11080 samba_cv_HAVE_IFACE_IFREQ
=cross
11082 cat > conftest.
$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11086 #define HAVE_IFACE_IFREQ 1
11087 #define AUTOCONF_TEST 1
11088 #include "confdefs.h"
11089 #include "${srcdir-.}/lib/interfaces.c"
11091 if { (eval echo configure
:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11093 samba_cv_HAVE_IFACE_IFREQ
=yes
11095 echo "configure: failed program was:" >&5
11096 cat conftest.
$ac_ext >&5
11098 samba_cv_HAVE_IFACE_IFREQ
=no
11105 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11106 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11107 iface
=yes;cat >> confdefs.h
<<\EOF
11108 #define HAVE_IFACE_IFREQ 1
11115 ################################################
11116 # look for a method of setting the effective uid
11118 if test $seteuid = no
; then
11119 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11120 echo "configure:11121: checking for setresuid" >&5
11121 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11122 echo $ac_n "(cached) $ac_c" 1>&6
11125 if test "$cross_compiling" = yes; then
11126 samba_cv_USE_SETRESUID
=cross
11128 cat > conftest.
$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11132 #define AUTOCONF_TEST 1
11133 #define USE_SETRESUID 1
11134 #include "confdefs.h"
11135 #include "${srcdir-.}/lib/util_sec.c"
11137 if { (eval echo configure
:11138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11139 samba_cv_USE_SETRESUID
=yes
11141 echo "configure: failed program was:" >&5
11142 cat conftest.
$ac_ext >&5
11144 samba_cv_USE_SETRESUID
=no
11151 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11152 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11153 seteuid
=yes;cat >> confdefs.h
<<\EOF
11154 #define USE_SETRESUID 1
11161 if test $seteuid = no
; then
11162 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11163 echo "configure:11164: checking for setreuid" >&5
11164 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11165 echo $ac_n "(cached) $ac_c" 1>&6
11168 if test "$cross_compiling" = yes; then
11169 samba_cv_USE_SETREUID
=cross
11171 cat > conftest.
$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11175 #define AUTOCONF_TEST 1
11176 #define USE_SETREUID 1
11177 #include "confdefs.h"
11178 #include "${srcdir-.}/lib/util_sec.c"
11180 if { (eval echo configure
:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11182 samba_cv_USE_SETREUID
=yes
11184 echo "configure: failed program was:" >&5
11185 cat conftest.
$ac_ext >&5
11187 samba_cv_USE_SETREUID
=no
11194 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11195 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11196 seteuid
=yes;cat >> confdefs.h
<<\EOF
11197 #define USE_SETREUID 1
11203 if test $seteuid = no
; then
11204 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11205 echo "configure:11206: checking for seteuid" >&5
11206 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11207 echo $ac_n "(cached) $ac_c" 1>&6
11210 if test "$cross_compiling" = yes; then
11211 samba_cv_USE_SETEUID
=cross
11213 cat > conftest.
$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11217 #define AUTOCONF_TEST 1
11218 #define USE_SETEUID 1
11219 #include "confdefs.h"
11220 #include "${srcdir-.}/lib/util_sec.c"
11222 if { (eval echo configure
:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11224 samba_cv_USE_SETEUID
=yes
11226 echo "configure: failed program was:" >&5
11227 cat conftest.
$ac_ext >&5
11229 samba_cv_USE_SETEUID
=no
11236 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11237 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11238 seteuid
=yes;cat >> confdefs.h
<<\EOF
11239 #define USE_SETEUID 1
11245 if test $seteuid = no
; then
11246 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11247 echo "configure:11248: checking for setuidx" >&5
11248 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
11252 if test "$cross_compiling" = yes; then
11253 samba_cv_USE_SETUIDX
=cross
11255 cat > conftest.
$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11259 #define AUTOCONF_TEST 1
11260 #define USE_SETUIDX 1
11261 #include "confdefs.h"
11262 #include "${srcdir-.}/lib/util_sec.c"
11264 if { (eval echo configure
:11265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11266 samba_cv_USE_SETUIDX
=yes
11268 echo "configure: failed program was:" >&5
11269 cat conftest.
$ac_ext >&5
11271 samba_cv_USE_SETUIDX
=no
11278 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11279 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11280 seteuid
=yes;cat >> confdefs.h
<<\EOF
11281 #define USE_SETUIDX 1
11288 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11289 echo "configure:11290: checking for working mmap" >&5
11290 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11294 if test "$cross_compiling" = yes; then
11295 samba_cv_HAVE_MMAP
=cross
11297 cat > conftest.
$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11300 #include "${srcdir-.}/tests/shared_mmap.c"
11302 if { (eval echo configure
:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11304 samba_cv_HAVE_MMAP
=yes
11306 echo "configure: failed program was:" >&5
11307 cat conftest.
$ac_ext >&5
11309 samba_cv_HAVE_MMAP
=no
11316 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11317 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11318 cat >> confdefs.h
<<\EOF
11319 #define HAVE_MMAP 1
11324 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11325 echo "configure:11326: checking for ftruncate needs root" >&5
11326 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11327 echo $ac_n "(cached) $ac_c" 1>&6
11330 if test "$cross_compiling" = yes; then
11331 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11333 cat > conftest.
$ac_ext <<EOF
11334 #line 11335 "configure"
11335 #include "confdefs.h"
11336 #include "${srcdir-.}/tests/ftruncroot.c"
11338 if { (eval echo configure
:11339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11340 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11342 echo "configure: failed program was:" >&5
11343 cat conftest.
$ac_ext >&5
11345 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11352 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11353 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11354 cat >> confdefs.h
<<\EOF
11355 #define FTRUNCATE_NEEDS_ROOT 1
11360 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11361 echo "configure:11362: checking for fcntl locking" >&5
11362 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11366 if test "$cross_compiling" = yes; then
11367 samba_cv_HAVE_FCNTL_LOCK
=cross
11369 cat > conftest.
$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11372 #include "${srcdir-.}/tests/fcntl_lock.c"
11374 if { (eval echo configure
:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11376 samba_cv_HAVE_FCNTL_LOCK
=yes
11378 echo "configure: failed program was:" >&5
11379 cat conftest.
$ac_ext >&5
11381 samba_cv_HAVE_FCNTL_LOCK
=no
11388 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11389 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11390 cat >> confdefs.h
<<\EOF
11391 #define HAVE_FCNTL_LOCK 1
11396 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11397 echo "configure:11398: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11398 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11399 echo $ac_n "(cached) $ac_c" 1>&6
11402 if test "$cross_compiling" = yes; then
11403 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11405 cat > conftest.
$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11408 #include "${srcdir-.}/tests/fcntl_lock64.c"
11410 if { (eval echo configure
:11411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11412 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11414 echo "configure: failed program was:" >&5
11415 cat conftest.
$ac_ext >&5
11417 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11424 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11425 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11426 cat >> confdefs.h
<<\EOF
11427 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11434 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11435 echo "configure:11436: checking for 64 bit fcntl locking" >&5
11436 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11437 echo $ac_n "(cached) $ac_c" 1>&6
11440 if test "$cross_compiling" = yes; then
11441 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11443 cat > conftest.
$ac_ext <<EOF
11444 #line 11445 "configure"
11445 #include "confdefs.h"
11447 #if defined(HAVE_UNISTD_H)
11448 #include <unistd.h>
11451 #include <stdlib.h>
11453 #ifdef HAVE_FCNTL_H
11457 #ifdef HAVE_SYS_FCNTL_H
11458 #include <sys/fcntl.h>
11460 main() { struct flock64 fl64;
11461 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11468 if { (eval echo configure
:11469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11470 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11472 echo "configure: failed program was:" >&5
11473 cat conftest.
$ac_ext >&5
11475 samba_cv_HAVE_STRUCT_FLOCK64
=no
11482 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11484 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11485 cat >> confdefs.h
<<\EOF
11486 #define HAVE_STRUCT_FLOCK64 1
11492 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11493 echo "configure:11494: checking for st_blocks in struct stat" >&5
11494 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11498 cat > conftest.
$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 #include <sys/types.h>
11502 #include <sys/stat.h>
11503 #include <unistd.h>
11505 struct stat st; st.st_blocks = 0;
11508 if { (eval echo configure
:11509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11510 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11512 echo "configure: failed program was:" >&5
11513 cat conftest.
$ac_ext >&5
11515 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11520 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11521 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11522 cat >> confdefs.h
<<\EOF
11523 #define HAVE_STAT_ST_BLOCKS 1
11530 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11531 echo "configure:11532: checking for broken RedHat 7.2 system header files" >&5
11532 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11533 echo $ac_n "(cached) $ac_c" 1>&6
11536 cat > conftest.
$ac_ext <<EOF
11537 #line 11538 "configure"
11538 #include "confdefs.h"
11540 #ifdef HAVE_SYS_VFS_H
11541 #include <sys/vfs.h>
11543 #ifdef HAVE_SYS_CAPABILITY_H
11544 #include <sys/capability.h>
11551 if { (eval echo configure
:11552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11553 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11555 echo "configure: failed program was:" >&5
11556 cat conftest.
$ac_ext >&5
11558 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11563 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11564 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11565 cat >> confdefs.h
<<\EOF
11566 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11573 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11574 echo "configure:11575: checking for broken nisplus include files" >&5
11575 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11576 echo $ac_n "(cached) $ac_c" 1>&6
11579 cat > conftest.
$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 #include <sys/acl.h>
11583 #if defined(HAVE_RPCSVC_NIS_H)
11584 #include <rpcsvc/nis.h>
11590 if { (eval echo configure
:11591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11592 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11594 echo "configure: failed program was:" >&5
11595 cat conftest.
$ac_ext >&5
11597 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11602 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11603 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11604 cat >> confdefs.h
<<\EOF
11605 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11611 #################################################
11612 # check for smbwrapper support
11613 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11614 echo "configure:11615: checking whether to use smbwrapper" >&5
11615 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11616 if test "${with_smbwrapper+set}" = set; then
11617 withval
="$with_smbwrapper"
11620 echo "$ac_t""yes" 1>&6
11621 cat >> confdefs.h
<<\EOF
11622 #define WITH_SMBWRAPPER 1
11625 WRAPPROG
="bin/smbsh"
11626 WRAP
="bin/smbwrapper.$SHLIBEXT"
11628 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11631 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11634 # Conditions under which smbwrapper should not be built.
11636 if test x
$PICFLAG = x
; then
11637 echo No support
for PIC code
- disabling smbwrapper and smbsh
11641 elif test x
$ac_cv_func_syscall = xno
; then
11642 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11649 echo "$ac_t""no" 1>&6
11653 echo "$ac_t""no" 1>&6
11658 #################################################
11659 # check for the AFS filesystem
11660 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11661 echo "configure:11662: checking whether to use AFS" >&5
11662 # Check whether --with-afs or --without-afs was given.
11663 if test "${with_afs+set}" = set; then
11664 withval
="$with_afs"
11667 echo "$ac_t""yes" 1>&6
11668 cat >> confdefs.h
<<\EOF
11674 echo "$ac_t""no" 1>&6
11678 echo "$ac_t""no" 1>&6
11684 #################################################
11685 # check for the DFS auth system
11686 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11687 echo "configure:11688: checking whether to use DCE/DFS auth" >&5
11688 # Check whether --with-dfs or --without-dfs was given.
11689 if test "${with_dfs+set}" = set; then
11690 withval
="$with_dfs"
11693 echo "$ac_t""yes" 1>&6
11694 cat >> confdefs.h
<<\EOF
11700 echo "$ac_t""no" 1>&6
11704 echo "$ac_t""no" 1>&6
11709 #################################################
11710 # check for Kerberos IV auth system
11711 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11712 echo "configure:11713: checking whether to use Kerberos IV" >&5
11713 # Check whether --with-krb4 or --without-krb4 was given.
11714 if test "${with_krb4+set}" = set; then
11715 withval
="$with_krb4"
11718 echo "$ac_t""yes" 1>&6
11719 cat >> confdefs.h
<<\EOF
11720 #define KRB4_AUTH 1
11723 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11724 echo "configure:11725: checking for dn_expand in -lresolv" >&5
11725 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11727 echo $ac_n "(cached) $ac_c" 1>&6
11729 ac_save_LIBS
="$LIBS"
11730 LIBS
="-lresolv $LIBS"
11731 cat > conftest.
$ac_ext <<EOF
11732 #line 11733 "configure"
11733 #include "confdefs.h"
11734 /* Override any gcc2 internal prototype to avoid an error. */
11735 /* We use char because int might match the return type of a gcc2
11736 builtin and then its argument prototype would still apply. */
11743 if { (eval echo configure
:11744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11745 eval "ac_cv_lib_$ac_lib_var=yes"
11747 echo "configure: failed program was:" >&5
11748 cat conftest.
$ac_ext >&5
11750 eval "ac_cv_lib_$ac_lib_var=no"
11753 LIBS
="$ac_save_LIBS"
11756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11757 echo "$ac_t""yes" 1>&6
11758 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11760 cat >> confdefs.h
<<EOF
11761 #define $ac_tr_lib 1
11764 LIBS
="-lresolv $LIBS"
11767 echo "$ac_t""no" 1>&6
11770 LIBS
="$LIBS -lkrb -ldes"
11771 CFLAGS
="$CFLAGS -I$withval/include"
11772 LDFLAGS
="$LDFLAGS -L$withval/lib"
11775 echo "$ac_t""no" 1>&6
11779 echo "$ac_t""no" 1>&6
11784 #################################################
11785 # check for Kerberos 5 auth system
11786 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11787 echo "configure:11788: checking whether to use Kerberos 5" >&5
11788 # Check whether --with-krb5 or --without-krb5 was given.
11789 if test "${with_krb5+set}" = set; then
11790 withval
="$with_krb5"
11793 echo "$ac_t""yes" 1>&6
11794 cat >> confdefs.h
<<\EOF
11795 #define KRB5_AUTH 1
11798 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11799 CFLAGS
="$CFLAGS -I$withval/include"
11800 LDFLAGS
="$LDFLAGS -L$withval/lib"
11803 echo "$ac_t""no" 1>&6
11807 echo "$ac_t""no" 1>&6
11812 #################################################
11813 # check for automount support
11814 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11815 echo "configure:11816: checking whether to use AUTOMOUNT" >&5
11816 # Check whether --with-automount or --without-automount was given.
11817 if test "${with_automount+set}" = set; then
11818 withval
="$with_automount"
11821 echo "$ac_t""yes" 1>&6
11822 cat >> confdefs.h
<<\EOF
11823 #define WITH_AUTOMOUNT 1
11828 echo "$ac_t""no" 1>&6
11832 echo "$ac_t""no" 1>&6
11837 #################################################
11838 # check for smbmount support
11839 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11840 echo "configure:11841: checking whether to use SMBMOUNT" >&5
11841 # Check whether --with-smbmount or --without-smbmount was given.
11842 if test "${with_smbmount+set}" = set; then
11843 withval
="$with_smbmount"
11848 echo "$ac_t""yes" 1>&6
11849 cat >> confdefs.h
<<\EOF
11850 #define WITH_SMBMOUNT 1
11853 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11856 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11861 echo "$ac_t""no" 1>&6
11866 echo "$ac_t""no" 1>&6
11873 #################################################
11874 # check for a PAM password database
11875 with_pam_for_crypt
=no
11876 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11877 echo "configure:11878: checking whether to use PAM password database" >&5
11878 # Check whether --with-pam or --without-pam was given.
11879 if test "${with_pam+set}" = set; then
11880 withval
="$with_pam"
11883 echo "$ac_t""yes" 1>&6
11884 cat >> confdefs.h
<<\EOF
11889 with_pam_for_crypt
=yes
11892 echo "$ac_t""no" 1>&6
11896 echo "$ac_t""no" 1>&6
11901 # we can't build a pam module if we don't have pam.
11902 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11903 echo "configure:11904: checking for pam_get_data in -lpam" >&5
11904 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11908 ac_save_LIBS
="$LIBS"
11910 cat > conftest.
$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11913 /* Override any gcc2 internal prototype to avoid an error. */
11914 /* We use char because int might match the return type of a gcc2
11915 builtin and then its argument prototype would still apply. */
11916 char pam_get_data();
11922 if { (eval echo configure
:11923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11924 eval "ac_cv_lib_$ac_lib_var=yes"
11926 echo "configure: failed program was:" >&5
11927 cat conftest.
$ac_ext >&5
11929 eval "ac_cv_lib_$ac_lib_var=no"
11932 LIBS
="$ac_save_LIBS"
11935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11936 echo "$ac_t""yes" 1>&6
11937 cat >> confdefs.h
<<\EOF
11938 #define HAVE_LIBPAM 1
11942 echo "$ac_t""no" 1>&6
11946 #################################################
11947 # check for pam_smbpass support
11948 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11949 echo "configure:11950: checking whether to use pam_smbpass" >&5
11950 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11951 if test "${with_pam_smbpass+set}" = set; then
11952 withval
="$with_pam_smbpass"
11955 echo "$ac_t""yes" 1>&6
11957 # Conditions under which pam_smbpass should not be built.
11959 if test x
$PICFLAG = x
; then
11960 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11962 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11963 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11966 cat >> confdefs.h
<<\EOF
11967 #define WITH_PAM_SMBPASS 1
11970 PAM_MOD
="bin/pam_smbpass.so"
11974 echo "$ac_t""no" 1>&6
11978 echo "$ac_t""no" 1>&6
11984 ###############################################
11985 # test for where we get crypt() from, but only
11987 if test $with_pam_for_crypt = no
; then
11988 for ac_func
in crypt
11990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11991 echo "configure:11992: checking for $ac_func" >&5
11992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11993 echo $ac_n "(cached) $ac_c" 1>&6
11995 cat > conftest.
$ac_ext <<EOF
11996 #line 11997 "configure"
11997 #include "confdefs.h"
11998 /* System header to define __stub macros and hopefully few prototypes,
11999 which can conflict with char $ac_func(); below. */
12000 #include <assert.h>
12001 /* Override any gcc2 internal prototype to avoid an error. */
12002 /* We use char because int might match the return type of a gcc2
12003 builtin and then its argument prototype would still apply. */
12008 /* The GNU C library defines this for functions which it implements
12009 to always fail with ENOSYS. Some functions are actually named
12010 something starting with __ and the normal name is an alias. */
12011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12019 if { (eval echo configure
:12020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12021 eval "ac_cv_func_$ac_func=yes"
12023 echo "configure: failed program was:" >&5
12024 cat conftest.
$ac_ext >&5
12026 eval "ac_cv_func_$ac_func=no"
12031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12032 echo "$ac_t""yes" 1>&6
12033 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12034 cat >> confdefs.h
<<EOF
12035 #define $ac_tr_func 1
12039 echo "$ac_t""no" 1>&6
12043 if test x
"$ac_cv_func_crypt" = x
"no"; then
12044 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12045 echo "configure:12046: checking for crypt in -lcrypt" >&5
12046 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
12050 ac_save_LIBS
="$LIBS"
12051 LIBS
="-lcrypt $LIBS"
12052 cat > conftest.
$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12055 /* Override any gcc2 internal prototype to avoid an error. */
12056 /* We use char because int might match the return type of a gcc2
12057 builtin and then its argument prototype would still apply. */
12064 if { (eval echo configure
:12065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12066 eval "ac_cv_lib_$ac_lib_var=yes"
12068 echo "configure: failed program was:" >&5
12069 cat conftest.
$ac_ext >&5
12071 eval "ac_cv_lib_$ac_lib_var=no"
12074 LIBS
="$ac_save_LIBS"
12077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12078 echo "$ac_t""yes" 1>&6
12079 LIBS
="$LIBS -lcrypt";
12080 cat >> confdefs.h
<<\EOF
12081 #define HAVE_CRYPT 1
12085 echo "$ac_t""no" 1>&6
12092 ## moved after the check for -lcrypt in order to
12093 ## ensure that the necessary libraries are included
12094 ## check checking for truncated salt. Wrapped by the
12095 ## $with_pam_for_crypt variable as above --jerry
12097 if test $with_pam_for_crypt = no
; then
12098 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12099 echo "configure:12100: checking for a crypt that needs truncated salt" >&5
12100 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12101 echo $ac_n "(cached) $ac_c" 1>&6
12104 if test "$cross_compiling" = yes; then
12105 samba_cv_HAVE_TRUNCATED_SALT
=cross
12107 cat > conftest.
$ac_ext <<EOF
12108 #line 12109 "configure"
12109 #include "confdefs.h"
12110 #include "${srcdir-.}/tests/crypttest.c"
12112 if { (eval echo configure
:12113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12114 samba_cv_HAVE_TRUNCATED_SALT
=no
12116 echo "configure: failed program was:" >&5
12117 cat conftest.
$ac_ext >&5
12119 samba_cv_HAVE_TRUNCATED_SALT
=yes
12126 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12127 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12128 cat >> confdefs.h
<<\EOF
12129 #define HAVE_TRUNCATED_SALT 1
12136 ########################################################################################
12138 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12140 ########################################################################################
12142 ## set the with_smbpasswd_sam as the default
12143 with_smbpasswd_sam
=yes
12147 #################################################
12148 # check for a TDB password database
12149 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12150 echo "configure:12151: checking whether to use TDB SAM database" >&5
12151 # Check whether --with-tdbsam or --without-tdbsam was given.
12152 if test "${with_tdbsam+set}" = set; then
12153 withval
="$with_tdbsam"
12156 echo "$ac_t""yes" 1>&6
12157 cat >> confdefs.h
<<\EOF
12158 #define WITH_TDB_SAM 1
12161 with_smbpasswd_sam
=no
12164 echo "$ac_t""no" 1>&6
12168 echo "$ac_t""no" 1>&6
12173 #################################################
12174 # check for a LDAP password database
12175 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12176 echo "configure:12177: checking whether to use LDAP SAM database" >&5
12177 # Check whether --with-ldapsam or --without-ldapsam was given.
12178 if test "${with_ldapsam+set}" = set; then
12179 withval
="$with_ldapsam"
12182 echo "$ac_t""yes" 1>&6
12183 cat >> confdefs.h
<<\EOF
12184 #define WITH_LDAP_SAM 1
12187 LIBS
="-lldap $LIBS"
12188 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12189 echo "configure:12190: checking for ber_bvfree in -llber" >&5
12190 ac_lib_var
=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12192 echo $ac_n "(cached) $ac_c" 1>&6
12194 ac_save_LIBS
="$LIBS"
12195 LIBS
="-llber $LIBS"
12196 cat > conftest.
$ac_ext <<EOF
12197 #line 12198 "configure"
12198 #include "confdefs.h"
12199 /* Override any gcc2 internal prototype to avoid an error. */
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12208 if { (eval echo configure
:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12210 eval "ac_cv_lib_$ac_lib_var=yes"
12212 echo "configure: failed program was:" >&5
12213 cat conftest.
$ac_ext >&5
12215 eval "ac_cv_lib_$ac_lib_var=no"
12218 LIBS
="$ac_save_LIBS"
12221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12222 echo "$ac_t""yes" 1>&6
12223 LIBS
="$LIBS -llber"
12225 echo "$ac_t""no" 1>&6
12228 LIBS
="-lresolv $LIBS"
12229 for ac_func
in ldap_start_tls_s
12231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12232 echo "configure:12233: checking for $ac_func" >&5
12233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12236 cat > conftest.
$ac_ext <<EOF
12237 #line 12238 "configure"
12238 #include "confdefs.h"
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func(); below. */
12241 #include <assert.h>
12242 /* Override any gcc2 internal prototype to avoid an error. */
12243 /* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12249 /* The GNU C library defines this for functions which it implements
12250 to always fail with ENOSYS. Some functions are actually named
12251 something starting with __ and the normal name is an alias. */
12252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12260 if { (eval echo configure
:12261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12262 eval "ac_cv_func_$ac_func=yes"
12264 echo "configure: failed program was:" >&5
12265 cat conftest.
$ac_ext >&5
12267 eval "ac_cv_func_$ac_func=no"
12272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12273 echo "$ac_t""yes" 1>&6
12274 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12275 cat >> confdefs.h
<<EOF
12276 #define $ac_tr_func 1
12280 echo "$ac_t""no" 1>&6
12284 with_smbpasswd_sam
=no
12287 echo "$ac_t""no" 1>&6
12291 echo "$ac_t""no" 1>&6
12296 #################################################
12297 # check for a NISPLUS password database
12298 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12299 echo "configure:12300: checking whether to use NISPLUS SAM database" >&5
12300 # Check whether --with-nisplussam or --without-nisplussam was given.
12301 if test "${with_nisplussam+set}" = set; then
12302 withval
="$with_nisplussam"
12305 echo "$ac_t""yes" 1>&6
12306 cat >> confdefs.h
<<\EOF
12307 #define WITH_NISPLUS_SAM 1
12310 with_smbpasswd_sam
=no
12313 echo "$ac_t""no" 1>&6
12317 echo "$ac_t""no" 1>&6
12322 ################################################
12323 # This test should come last because the
12324 # smbpasswd SAM is only used if another format
12325 # has not been defined
12326 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12327 echo "configure:12328: checking whether to use traditional smbpasswd file" >&5
12328 if test $with_smbpasswd_sam = yes; then
12329 echo "$ac_t""yes" 1>&6
12330 cat >> confdefs.h
<<\EOF
12331 #define WITH_SMBPASSWD_SAM 1
12336 echo "$ac_t""no" 1>&6
12337 PDBEDIT
=bin
/pdbedit
12340 ########################################################################################
12342 ## END OF TESTS FOR SAM BACKENDS.
12344 ########################################################################################
12346 #################################################
12347 # check for a NISPLUS_HOME support
12348 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12349 echo "configure:12350: checking whether to use NISPLUS_HOME" >&5
12350 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12351 if test "${with_nisplus_home+set}" = set; then
12352 withval
="$with_nisplus_home"
12355 echo "$ac_t""yes" 1>&6
12356 cat >> confdefs.h
<<\EOF
12357 #define WITH_NISPLUS_HOME 1
12362 echo "$ac_t""no" 1>&6
12366 echo "$ac_t""no" 1>&6
12371 #################################################
12372 # check for the secure socket layer
12373 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12374 echo "configure:12375: checking whether to use SSL" >&5
12375 # Check whether --with-ssl or --without-ssl was given.
12376 if test "${with_ssl+set}" = set; then
12377 withval
="$with_ssl"
12380 echo "$ac_t""yes" 1>&6
12381 cat >> confdefs.h
<<\EOF
12385 withval
="/usr/local/ssl" # default
12387 if test "${with_sslinc+set}" = set; then
12389 withval
="$with_sslinc"
12392 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12393 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12396 CFLAGS
="-I${withval} $CFLAGS"
12402 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12406 if test "${with_ssllib+set}" = set; then
12408 withval
="$with_ssllib"
12411 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12412 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12415 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12421 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12425 LIBS
="-lssl -lcrypto $LIBS"
12427 # if test ! -d ${withval}; then
12428 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12432 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12436 echo "$ac_t""no" 1>&6
12440 echo "$ac_t""no" 1>&6
12445 #################################################
12446 # check for syslog logging
12447 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12448 echo "configure:12449: checking whether to use syslog logging" >&5
12449 # Check whether --with-syslog or --without-syslog was given.
12450 if test "${with_syslog+set}" = set; then
12451 withval
="$with_syslog"
12454 echo "$ac_t""yes" 1>&6
12455 cat >> confdefs.h
<<\EOF
12456 #define WITH_SYSLOG 1
12461 echo "$ac_t""no" 1>&6
12465 echo "$ac_t""no" 1>&6
12470 #################################################
12471 # check for a shared memory profiling support
12472 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12473 echo "configure:12474: checking whether to use profiling" >&5
12474 # Check whether --with-profiling-data or --without-profiling-data was given.
12475 if test "${with_profiling_data+set}" = set; then
12476 withval
="$with_profiling_data"
12479 echo "$ac_t""yes" 1>&6
12480 cat >> confdefs.h
<<\EOF
12481 #define WITH_PROFILE 1
12486 echo "$ac_t""no" 1>&6
12490 echo "$ac_t""no" 1>&6
12496 #################################################
12497 # check for experimental disk-quotas support
12498 QUOTAOBJS
=smbd
/noquotas.o
12500 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12501 echo "configure:12502: checking whether to support disk-quotas" >&5
12502 # Check whether --with-quotas or --without-quotas was given.
12503 if test "${with_quotas+set}" = set; then
12504 withval
="$with_quotas"
12507 echo "$ac_t""yes" 1>&6
12508 QUOTAOBJS
=smbd
/quotas.o
12511 echo "$ac_t""no" 1>&6
12515 echo "$ac_t""no" 1>&6
12521 #################################################
12522 # check for experimental utmp accounting
12524 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12525 echo "configure:12526: checking whether to support utmp accounting" >&5
12526 # Check whether --with-utmp or --without-utmp was given.
12527 if test "${with_utmp+set}" = set; then
12528 withval
="$with_utmp"
12531 echo "$ac_t""yes" 1>&6
12532 cat >> confdefs.h
<<\EOF
12533 #define WITH_UTMP 1
12538 echo "$ac_t""no" 1>&6
12542 echo "$ac_t""no" 1>&6
12547 #################################################
12548 # check for MS Dfs support
12550 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12551 echo "configure:12552: checking whether to support Microsoft Dfs" >&5
12552 # Check whether --with-msdfs or --without-msdfs was given.
12553 if test "${with_msdfs+set}" = set; then
12554 withval
="$with_msdfs"
12557 echo "$ac_t""yes" 1>&6
12558 cat >> confdefs.h
<<\EOF
12559 #define WITH_MSDFS 1
12564 echo "$ac_t""no" 1>&6
12568 echo "$ac_t""no" 1>&6
12573 #################################################
12574 # should we build libsmbclient?
12576 LIBSMBCLIENT_SHARED
=
12578 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12579 echo "configure:12580: checking whether to build the libsmbclient shared library" >&5
12580 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12581 if test "${with_libsmbclient+set}" = set; then
12582 withval
="$with_libsmbclient"
12585 if test $BLDSHARED = true
; then
12586 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12587 LIBSMBCLIENT
=libsmbclient
12588 echo "$ac_t""yes" 1>&6
12590 echo "$ac_t""no shared library support" 1>&6
12594 echo "$ac_t""no" 1>&6
12598 echo "$ac_t""no" 1>&6
12603 #################################################
12604 # these tests are taken from the GNU fileutils package
12605 echo "checking how to get filesystem space usage" 1>&6
12606 echo "configure:12607: checking how to get filesystem space usage" >&5
12609 # Test for statvfs64.
12610 if test $space = no
; then
12612 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12613 echo "configure:12614: checking statvfs64 function (SVR4)" >&5
12614 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12615 echo $ac_n "(cached) $ac_c" 1>&6
12617 if test "$cross_compiling" = yes; then
12618 fu_cv_sys_stat_statvfs64
=cross
12620 cat > conftest.
$ac_ext <<EOF
12621 #line 12622 "configure"
12622 #include "confdefs.h"
12624 #if defined(HAVE_UNISTD_H)
12625 #include <unistd.h>
12627 #include <sys/types.h>
12628 #include <sys/statvfs.h>
12631 struct statvfs64 fsd;
12632 exit (statvfs64 (".", &fsd));
12635 if { (eval echo configure
:12636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12637 fu_cv_sys_stat_statvfs64
=yes
12639 echo "configure: failed program was:" >&5
12640 cat conftest.
$ac_ext >&5
12642 fu_cv_sys_stat_statvfs64
=no
12649 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12650 if test $fu_cv_sys_stat_statvfs64 = yes; then
12652 cat >> confdefs.h
<<\EOF
12653 #define STAT_STATVFS64 1
12659 # Perform only the link test since it seems there are no variants of the
12660 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12661 # because that got a false positive on SCO OSR5. Adding the declaration
12662 # of a `struct statvfs' causes this test to fail (as it should) on such
12663 # systems. That system is reported to work fine with STAT_STATFS4 which
12664 # is what it gets when this test fails.
12665 if test $space = no
; then
12667 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12668 echo "configure:12669: checking statvfs function (SVR4)" >&5
12669 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
12672 cat > conftest.
$ac_ext <<EOF
12673 #line 12674 "configure"
12674 #include "confdefs.h"
12675 #include <sys/types.h>
12676 #include <sys/statvfs.h>
12678 struct statvfs fsd; statvfs (0, &fsd);
12681 if { (eval echo configure
:12682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12683 fu_cv_sys_stat_statvfs
=yes
12685 echo "configure: failed program was:" >&5
12686 cat conftest.
$ac_ext >&5
12688 fu_cv_sys_stat_statvfs
=no
12693 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12694 if test $fu_cv_sys_stat_statvfs = yes; then
12696 cat >> confdefs.h
<<\EOF
12697 #define STAT_STATVFS 1
12703 if test $space = no
; then
12704 # DEC Alpha running OSF/1
12705 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12706 echo "configure:12707: checking for 3-argument statfs function (DEC OSF/1)" >&5
12707 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12710 if test "$cross_compiling" = yes; then
12711 fu_cv_sys_stat_statfs3_osf1
=no
12713 cat > conftest.
$ac_ext <<EOF
12714 #line 12715 "configure"
12715 #include "confdefs.h"
12717 #include <sys/param.h>
12718 #include <sys/types.h>
12719 #include <sys/mount.h>
12724 exit (statfs (".", &fsd, sizeof (struct statfs)));
12727 if { (eval echo configure
:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12729 fu_cv_sys_stat_statfs3_osf1
=yes
12731 echo "configure: failed program was:" >&5
12732 cat conftest.
$ac_ext >&5
12734 fu_cv_sys_stat_statfs3_osf1
=no
12741 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12742 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12744 cat >> confdefs.h
<<\EOF
12745 #define STAT_STATFS3_OSF1 1
12751 if test $space = no
; then
12753 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12754 echo "configure:12755: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12755 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12756 echo $ac_n "(cached) $ac_c" 1>&6
12758 if test "$cross_compiling" = yes; then
12759 fu_cv_sys_stat_statfs2_bsize
=no
12761 cat > conftest.
$ac_ext <<EOF
12762 #line 12763 "configure"
12763 #include "confdefs.h"
12765 #ifdef HAVE_SYS_PARAM_H
12766 #include <sys/param.h>
12768 #ifdef HAVE_SYS_MOUNT_H
12769 #include <sys/mount.h>
12771 #ifdef HAVE_SYS_VFS_H
12772 #include <sys/vfs.h>
12778 exit (statfs (".", &fsd));
12781 if { (eval echo configure
:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12783 fu_cv_sys_stat_statfs2_bsize
=yes
12785 echo "configure: failed program was:" >&5
12786 cat conftest.
$ac_ext >&5
12788 fu_cv_sys_stat_statfs2_bsize
=no
12795 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12796 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12798 cat >> confdefs.h
<<\EOF
12799 #define STAT_STATFS2_BSIZE 1
12805 if test $space = no
; then
12807 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12808 echo "configure:12809: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12809 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12810 echo $ac_n "(cached) $ac_c" 1>&6
12812 if test "$cross_compiling" = yes; then
12813 fu_cv_sys_stat_statfs4
=no
12815 cat > conftest.
$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <sys/types.h>
12819 #include <sys/statfs.h>
12823 exit (statfs (".", &fsd, sizeof fsd, 0));
12826 if { (eval echo configure
:12827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12828 fu_cv_sys_stat_statfs4
=yes
12830 echo "configure: failed program was:" >&5
12831 cat conftest.
$ac_ext >&5
12833 fu_cv_sys_stat_statfs4
=no
12840 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12841 if test $fu_cv_sys_stat_statfs4 = yes; then
12843 cat >> confdefs.h
<<\EOF
12844 #define STAT_STATFS4 1
12850 if test $space = no
; then
12851 # 4.4BSD and NetBSD
12852 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12853 echo "configure:12854: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12854 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12855 echo $ac_n "(cached) $ac_c" 1>&6
12857 if test "$cross_compiling" = yes; then
12858 fu_cv_sys_stat_statfs2_fsize
=no
12860 cat > conftest.
$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12863 #include <sys/types.h>
12864 #ifdef HAVE_SYS_PARAM_H
12865 #include <sys/param.h>
12867 #ifdef HAVE_SYS_MOUNT_H
12868 #include <sys/mount.h>
12874 exit (statfs (".", &fsd));
12877 if { (eval echo configure
:12878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12879 fu_cv_sys_stat_statfs2_fsize
=yes
12881 echo "configure: failed program was:" >&5
12882 cat conftest.
$ac_ext >&5
12884 fu_cv_sys_stat_statfs2_fsize
=no
12891 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12892 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12894 cat >> confdefs.h
<<\EOF
12895 #define STAT_STATFS2_FSIZE 1
12901 if test $space = no
; then
12903 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12904 echo "configure:12905: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12905 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12908 if test "$cross_compiling" = yes; then
12909 fu_cv_sys_stat_fs_data
=no
12911 cat > conftest.
$ac_ext <<EOF
12912 #line 12913 "configure"
12913 #include "confdefs.h"
12914 #include <sys/types.h>
12915 #ifdef HAVE_SYS_PARAM_H
12916 #include <sys/param.h>
12918 #ifdef HAVE_SYS_MOUNT_H
12919 #include <sys/mount.h>
12921 #ifdef HAVE_SYS_FS_TYPES_H
12922 #include <sys/fs_types.h>
12926 struct fs_data fsd;
12927 /* Ultrix's statfs returns 1 for success,
12928 0 for not mounted, -1 for failure. */
12929 exit (statfs (".", &fsd) != 1);
12932 if { (eval echo configure
:12933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12934 fu_cv_sys_stat_fs_data
=yes
12936 echo "configure: failed program was:" >&5
12937 cat conftest.
$ac_ext >&5
12939 fu_cv_sys_stat_fs_data
=no
12946 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12947 if test $fu_cv_sys_stat_fs_data = yes; then
12949 cat >> confdefs.h
<<\EOF
12950 #define STAT_STATFS2_FS_DATA 1
12957 # As a gating factor for large file support, in order to
12958 # use <4GB files we must have the following minimal support
12960 # long long, and a 64 bit off_t or off64_t.
12961 # If we don't have all of these then disable large
12964 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12965 echo "configure:12966: checking if large file support can be enabled" >&5
12966 cat > conftest.
$ac_ext <<EOF
12967 #line 12968 "configure"
12968 #include "confdefs.h"
12970 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12971 #include <sys/types.h>
12980 if { (eval echo configure
:12981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12982 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12984 echo "configure: failed program was:" >&5
12985 cat conftest.
$ac_ext >&5
12987 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12990 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12991 echo "$ac_t""yes" 1>&6
12992 cat >> confdefs.h
<<\EOF
12993 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12997 echo "$ac_t""no" 1>&6
13000 # Check whether --with-spinlocks or --without-spinlocks was given.
13001 if test "${with_spinlocks+set}" = set; then
13002 withval
="$with_spinlocks"
13006 if test "x$with_spinlocks" = "xyes"; then
13007 cat >> confdefs.h
<<\EOF
13008 #define USE_SPINLOCKS 1
13012 case "$host_cpu" in
13014 cat >> confdefs.h
<<\EOF
13015 #define SPARC_SPINLOCKS 1
13020 i386|i486|i586|i686
)
13021 cat >> confdefs.h
<<\EOF
13022 #define INTEL_SPINLOCKS 1
13028 cat >> confdefs.h
<<\EOF
13029 #define MIPS_SPINLOCKS 1
13035 cat >> confdefs.h
<<\EOF
13036 #define POWERPC_SPINLOCKS 1
13043 #################################################
13044 # check for ACL support
13046 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13047 echo "configure:13048: checking whether to support ACLs" >&5
13048 # Check whether --with-acl-support or --without-acl-support was given.
13049 if test "${with_acl_support+set}" = set; then
13050 withval
="$with_acl_support"
13056 echo "$ac_t""Using UnixWare ACLs" 1>&6
13057 cat >> confdefs.h
<<\EOF
13058 #define HAVE_UNIXWARE_ACLS 1
13063 echo "$ac_t""Using solaris ACLs" 1>&6
13064 cat >> confdefs.h
<<\EOF
13065 #define HAVE_SOLARIS_ACLS 1
13070 echo "$ac_t""Using HPUX ACLs" 1>&6
13071 cat >> confdefs.h
<<\EOF
13072 #define HAVE_HPUX_ACLS 1
13077 echo "$ac_t""Using IRIX ACLs" 1>&6
13078 cat >> confdefs.h
<<\EOF
13079 #define HAVE_IRIX_ACLS 1
13084 echo "$ac_t""Using AIX ACLs" 1>&6
13085 cat >> confdefs.h
<<\EOF
13086 #define HAVE_AIX_ACLS 1
13091 echo "$ac_t""Using Tru64 ACLs" 1>&6
13092 cat >> confdefs.h
<<\EOF
13093 #define HAVE_TRU64_ACLS 1
13096 LIBS
="$LIBS -lpacl"
13099 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13100 echo "configure:13101: checking for acl_get_file in -lacl" >&5
13101 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13103 echo $ac_n "(cached) $ac_c" 1>&6
13105 ac_save_LIBS
="$LIBS"
13107 cat > conftest.
$ac_ext <<EOF
13108 #line 13109 "configure"
13109 #include "confdefs.h"
13110 /* Override any gcc2 internal prototype to avoid an error. */
13111 /* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13113 char acl_get_file();
13119 if { (eval echo configure
:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13121 eval "ac_cv_lib_$ac_lib_var=yes"
13123 echo "configure: failed program was:" >&5
13124 cat conftest.
$ac_ext >&5
13126 eval "ac_cv_lib_$ac_lib_var=no"
13129 LIBS
="$ac_save_LIBS"
13132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13133 echo "$ac_t""yes" 1>&6
13134 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13136 cat >> confdefs.h
<<EOF
13137 #define $ac_tr_lib 1
13143 echo "$ac_t""no" 1>&6
13146 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13147 echo "configure:13148: checking for ACL support" >&5
13148 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13152 cat > conftest.
$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 #include <sys/types.h>
13156 #include <sys/acl.h>
13158 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13161 if { (eval echo configure
:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13163 samba_cv_HAVE_POSIX_ACLS
=yes
13165 echo "configure: failed program was:" >&5
13166 cat conftest.
$ac_ext >&5
13168 samba_cv_HAVE_POSIX_ACLS
=no
13173 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13174 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13175 echo "$ac_t""Using posix ACLs" 1>&6
13176 cat >> confdefs.h
<<\EOF
13177 #define HAVE_POSIX_ACLS 1
13180 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13181 echo "configure:13182: checking for acl_get_perm_np" >&5
13182 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13183 echo $ac_n "(cached) $ac_c" 1>&6
13186 cat > conftest.
$ac_ext <<EOF
13187 #line 13188 "configure"
13188 #include "confdefs.h"
13189 #include <sys/types.h>
13190 #include <sys/acl.h>
13192 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13195 if { (eval echo configure
:13196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13197 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13199 echo "configure: failed program was:" >&5
13200 cat conftest.
$ac_ext >&5
13202 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13207 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13208 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13209 cat >> confdefs.h
<<\EOF
13210 #define HAVE_ACL_GET_PERM_NP 1
13219 echo "$ac_t""no" 1>&6
13220 cat >> confdefs.h
<<\EOF
13221 #define HAVE_NO_ACLS 1
13227 cat >> confdefs.h
<<\EOF
13228 #define HAVE_NO_ACLS 1
13231 echo "$ac_t""no" 1>&6
13236 #################################################
13237 # check for the historical SAMBA installation
13239 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13240 # Put all binaries under the /usr/local/samba/bin directory.
13244 #################################################
13245 # Check whether winbind is supported on this platform. If so we need to
13246 # build and install client programs (WINBIND_TARGETS), sbin programs
13247 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13249 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13250 echo "configure:13251: checking whether to build winbind" >&5
13252 # Initially, the value of $host_os decides whether winbind is supported
13260 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13261 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13265 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13272 winbind_no_reason
=", unsupported on $host_os"
13276 # Check the setting of --with-winbindd
13278 # Check whether --with-winbind or --without-winbind was given.
13279 if test "${with_winbind+set}" = set; then
13280 withval
="$with_winbind"
13294 # We need unix domain sockets for winbind
13296 if test x
"$HAVE_WINBIND" = x
"yes"; then
13297 if test x
"$samba_cv_unixsocket" = x
"no"; then
13298 winbind_no_reason
=", no unix domain socket support on $host_os"
13303 # Display test results
13305 if test x
"$HAVE_WINBIND" = x
"yes"; then
13307 echo "$ac_t""yes" 1>&6
13309 WINBIND_TARGETS
="bin/wbinfo"
13310 WINBIND_STARGETS
="bin/winbindd"
13313 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
13316 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13321 case "$with_pam" in
13323 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13327 echo "$ac_t""no$winbind_no_reason" 1>&6
13330 WINBIND_STARGETS
=""
13331 WINBIND_LTARGETS
=""
13332 WINBIND_PAM_TARGETS
=""
13335 # Check for FreeBSD problem with getgroups
13336 # It returns EGID too many times in the list of groups
13337 # and causes a security problem
13338 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13339 echo "configure:13340: checking whether or not getgroups returns EGID too many times" >&5
13340 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13341 echo $ac_n "(cached) $ac_c" 1>&6
13343 if test "$cross_compiling" = yes; then
13344 samba_cv_have_getgroups_too_many_egids
=cross
13346 cat > conftest.
$ac_ext <<EOF
13347 #line 13348 "configure"
13348 #include "confdefs.h"
13350 #include <sys/types.h>
13353 int main(int argc, char *argv[])
13358 n = getgroups(n, &groups);
13359 /* Could actually pass back the number of EGIDs there ... */
13360 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13363 if { (eval echo configure
:13364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13365 samba_cv_have_getgroups_too_many_egids
=no
13367 echo "configure: failed program was:" >&5
13368 cat conftest.
$ac_ext >&5
13370 samba_cv_have_getgroups_too_many_egids
=yes
13377 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13378 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
13379 cat >> confdefs.h
<<\EOF
13380 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13385 # Substitution time!
13394 # Solaris has some extra fields in struct passwd that need to be
13395 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13396 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13399 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13400 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13401 # [#include <pwd.h>])
13403 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13404 echo "configure:13405: checking whether struct passwd has pw_comment" >&5
13405 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13406 echo $ac_n "(cached) $ac_c" 1>&6
13409 cat > conftest.
$ac_ext <<EOF
13410 #line 13411 "configure"
13411 #include "confdefs.h"
13414 struct passwd p; p.pw_comment;
13417 if { (eval echo configure
:13418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13419 samba_cv_passwd_pw_comment
=yes
13421 echo "configure: failed program was:" >&5
13422 cat conftest.
$ac_ext >&5
13424 samba_cv_passwd_pw_comment
=no
13429 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13430 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
13431 cat >> confdefs.h
<<\EOF
13432 #define HAVE_PASSWD_PW_COMMENT 1
13437 #AC_CHECK_MEMBER(struct passwd.pw_age,
13438 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13439 # [#include <pwd.h>])
13441 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13442 echo "configure:13443: checking whether struct passwd has pw_age" >&5
13443 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13444 echo $ac_n "(cached) $ac_c" 1>&6
13447 cat > conftest.
$ac_ext <<EOF
13448 #line 13449 "configure"
13449 #include "confdefs.h"
13452 struct passwd p; p.pw_age;
13455 if { (eval echo configure
:13456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13457 samba_cv_passwd_pw_age
=yes
13459 echo "configure: failed program was:" >&5
13460 cat conftest.
$ac_ext >&5
13462 samba_cv_passwd_pw_age
=no
13467 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13468 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
13469 cat >> confdefs.h
<<\EOF
13470 #define HAVE_PASSWD_PW_AGE 1
13475 #################################################
13476 # Check to see if we should use the included popt
13478 # Check whether --with-included-popt or --without-included-popt was given.
13479 if test "${with_included_popt+set}" = set; then
13480 withval
="$with_included_popt"
13492 if test x
"$INCLUDED_POPT" != x
"yes"; then
13493 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13494 echo "configure:13495: checking for poptGetContext in -lpopt" >&5
13495 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13497 echo $ac_n "(cached) $ac_c" 1>&6
13499 ac_save_LIBS
="$LIBS"
13500 LIBS
="-lpopt $LIBS"
13501 cat > conftest.
$ac_ext <<EOF
13502 #line 13503 "configure"
13503 #include "confdefs.h"
13504 /* Override any gcc2 internal prototype to avoid an error. */
13505 /* We use char because int might match the return type of a gcc2
13506 builtin and then its argument prototype would still apply. */
13507 char poptGetContext();
13513 if { (eval echo configure
:13514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13515 eval "ac_cv_lib_$ac_lib_var=yes"
13517 echo "configure: failed program was:" >&5
13518 cat conftest.
$ac_ext >&5
13520 eval "ac_cv_lib_$ac_lib_var=no"
13523 LIBS
="$ac_save_LIBS"
13526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13527 echo "$ac_t""yes" 1>&6
13530 echo "$ac_t""no" 1>&6
13536 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13537 echo "configure:13538: checking whether to use included popt" >&5
13538 if test x
"$INCLUDED_POPT" = x
"yes"; then
13539 echo "$ac_t""$srcdir/popt" 1>&6
13540 BUILD_POPT
='$(POPT_OBJS)'
13541 FLAGS1
="-I$srcdir/popt"
13543 echo "$ac_t""no" 1>&6
13544 LIBS
="$LIBS -lpopt"
13549 #################################################
13550 # final configure stuff
13551 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13552 echo "configure:13553: checking configure summary" >&5
13553 if test "$cross_compiling" = yes; then
13554 echo "configure: warning: cannot run when cross-compiling" 1>&2
13556 cat > conftest.
$ac_ext <<EOF
13557 #line 13558 "configure"
13558 #include "confdefs.h"
13559 #include "${srcdir-.}/tests/summary.c"
13561 if { (eval echo configure
:13562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13563 echo "$ac_t""yes" 1>&6
13565 echo "configure: failed program was:" >&5
13566 cat conftest.
$ac_ext >&5
13568 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13578 cat > confcache
<<\EOF
13579 # This file is a shell script that caches the results of configure
13580 # tests run on this system so they can be shared between configure
13581 # scripts and configure runs. It is not useful on other systems.
13582 # If it contains results you don't want to keep, you may remove or edit it.
13584 # By default, configure uses ./config.cache as the cache file,
13585 # creating it if it does not exist already. You can give configure
13586 # the --cache-file=FILE option to use a different cache file; that is
13587 # what configure does when it calls configure scripts in
13588 # subdirectories, so they share the cache.
13589 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13590 # config.status only pays attention to the cache file if you give it the
13591 # --recheck option to rerun configure.
13594 # The following way of writing the cache mishandles newlines in values,
13595 # but we know of no workaround that is simple, portable, and efficient.
13596 # So, don't put newlines in cache variables' values.
13597 # Ultrix sh set writes to stderr and can't be redirected directly,
13598 # and sets the high bit in the cache file unless we assign to the vars.
13600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13602 # `set' does not quote correctly, so add quotes (double-quote substitution
13603 # turns \\\\ into \\, and sed turns \\ into \).
13605 -e "s/'/'\\\\''/g" \
13606 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13609 # `set' quotes correctly as required by POSIX, so do not add quotes.
13610 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13613 if cmp -s $cache_file confcache
; then
13616 if test -w $cache_file; then
13617 echo "updating cache $cache_file"
13618 cat confcache
> $cache_file
13620 echo "not updating unwritable cache $cache_file"
13625 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13627 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13628 # Let make expand exec_prefix.
13629 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13631 # Any assignment to VPATH causes Sun make to only execute
13632 # the first set of double-colon rules, so remove it if not needed.
13633 # If there is a colon in the path, we need to keep it.
13634 if test "x$srcdir" = x.
; then
13635 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13638 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13640 DEFS
=-DHAVE_CONFIG_H
13642 # Without the "./", some shells look in PATH for config.status.
13643 : ${CONFIG_STATUS=./config.status}
13645 echo creating
$CONFIG_STATUS
13646 rm -f $CONFIG_STATUS
13647 cat > $CONFIG_STATUS <<EOF
13649 # Generated automatically by configure.
13650 # Run this file to recreate the current configuration.
13651 # This directory was configured as follows,
13652 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13654 # $0 $ac_configure_args
13656 # Compiler output produced by configure, useful for debugging
13657 # configure, is in ./config.log if it exists.
13659 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13662 case "\$ac_option" in
13663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13664 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13665 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13666 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13667 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13669 -help | --help | --hel | --he | --h)
13670 echo "\$ac_cs_usage"; exit 0 ;;
13671 *) echo "\$ac_cs_usage"; exit 1 ;;
13675 ac_given_srcdir=$srcdir
13676 ac_given_INSTALL="$INSTALL"
13678 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13680 cat >> $CONFIG_STATUS <<EOF
13682 # Protect against being on the right side of a sed subst in config.status.
13683 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13684 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13688 s%@CFLAGS@%$CFLAGS%g
13689 s%@CPPFLAGS@%$CPPFLAGS%g
13690 s%@CXXFLAGS@%$CXXFLAGS%g
13691 s%@FFLAGS@%$FFLAGS%g
13693 s%@LDFLAGS@%$LDFLAGS%g
13695 s%@exec_prefix@%$exec_prefix%g
13696 s%@prefix@%$prefix%g
13697 s%@program_transform_name@%$program_transform_name%g
13698 s%@bindir@%$bindir%g
13699 s%@sbindir@%$sbindir%g
13700 s%@libexecdir@%$libexecdir%g
13701 s%@datadir@%$datadir%g
13702 s%@sysconfdir@%$sysconfdir%g
13703 s%@sharedstatedir@%$sharedstatedir%g
13704 s%@localstatedir@%$localstatedir%g
13705 s%@libdir@%$libdir%g
13706 s%@includedir@%$includedir%g
13707 s%@oldincludedir@%$oldincludedir%g
13708 s%@infodir@%$infodir%g
13709 s%@mandir@%$mandir%g
13710 s%@codepagedir@%$codepagedir%g
13711 s%@configdir@%$configdir%g
13712 s%@lockdir@%$lockdir%g
13713 s%@piddir@%$piddir%g
13714 s%@logfilebase@%$logfilebase%g
13715 s%@privatedir@%$privatedir%g
13716 s%@swatdir@%$swatdir%g
13717 s%@RUNPROG@%$RUNPROG%g
13718 s%@MPROGS@%$MPROGS%g
13719 s%@LDSHFLAGS@%$LDSHFLAGS%g
13720 s%@SONAMEFLAG@%$SONAMEFLAG%g
13722 s%@HOST_OS@%$HOST_OS%g
13723 s%@PAM_MOD@%$PAM_MOD%g
13724 s%@PDBEDIT@%$PDBEDIT%g
13726 s%@WRAP32@%$WRAP32%g
13727 s%@WRAPPROG@%$WRAPPROG%g
13728 s%@PICFLAG@%$PICFLAG%g
13729 s%@PICSUFFIX@%$PICSUFFIX%g
13730 s%@SHLIBEXT@%$SHLIBEXT%g
13731 s%@BLDSHARED@%$BLDSHARED%g
13732 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13733 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13735 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13736 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13737 s%@INSTALL_DATA@%$INSTALL_DATA%g
13739 s%@passwd_program@%$passwd_program%g
13740 s%@BROKEN_CC@%$BROKEN_CC%g
13742 s%@host_alias@%$host_alias%g
13743 s%@host_cpu@%$host_cpu%g
13744 s%@host_vendor@%$host_vendor%g
13745 s%@host_os@%$host_os%g
13746 s%@target@%$target%g
13747 s%@target_alias@%$target_alias%g
13748 s%@target_cpu@%$target_cpu%g
13749 s%@target_vendor@%$target_vendor%g
13750 s%@target_os@%$target_os%g
13752 s%@build_alias@%$build_alias%g
13753 s%@build_cpu@%$build_cpu%g
13754 s%@build_vendor@%$build_vendor%g
13755 s%@build_os@%$build_os%g
13757 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13758 s%@LIBOBJS@%$LIBOBJS%g
13759 s%@TERMLIBS@%$TERMLIBS%g
13760 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13762 s%@DYNEXP@%$DYNEXP%g
13763 s%@QUOTAOBJS@%$QUOTAOBJS%g
13764 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13765 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13766 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13767 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13768 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13769 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13770 s%@BUILD_POPT@%$BUILD_POPT%g
13771 s%@FLAGS1@%$FLAGS1%g
13772 s%@builddir@%$builddir%g
13777 cat >> $CONFIG_STATUS <<\EOF
13779 # Split the substitutions into bite-sized pieces for seds with
13780 # small command number limits, like on Digital OSF/1 and HP-UX.
13781 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13782 ac_file
=1 # Number of current file.
13783 ac_beg
=1 # First line for current file.
13784 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13787 while $ac_more_lines; do
13788 if test $ac_beg -gt 1; then
13789 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13791 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13793 if test ! -s conftest.s
$ac_file; then
13794 ac_more_lines
=false
13795 rm -f conftest.s
$ac_file
13797 if test -z "$ac_sed_cmds"; then
13798 ac_sed_cmds
="sed -f conftest.s$ac_file"
13800 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13802 ac_file
=`expr $ac_file + 1`
13804 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13807 if test -z "$ac_sed_cmds"; then
13812 cat >> $CONFIG_STATUS <<EOF
13814 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13816 cat >> $CONFIG_STATUS <<\EOF
13817 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13820 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13821 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13822 *) ac_file_in
="${ac_file}.in" ;;
13825 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13827 # Remove last slash and all that follows it. Not all systems have dirname.
13828 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13829 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13830 # The file is in a subdirectory.
13831 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13832 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13833 # A "../" for each directory in $ac_dir_suffix.
13834 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13836 ac_dir_suffix
= ac_dots
=
13839 case "$ac_given_srcdir" in
13841 if test -z "$ac_dots"; then top_srcdir
=.
13842 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13843 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13844 *) # Relative path.
13845 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13846 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13849 case "$ac_given_INSTALL" in
13850 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13851 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13854 echo creating
"$ac_file"
13856 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13858 *Makefile
*) ac_comsub
="1i\\
13859 # $configure_input" ;;
13863 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13865 s%@configure_input@%$configure_input%g
13866 s%@srcdir@%$srcdir%g
13867 s%@top_srcdir@%$top_srcdir%g
13868 s%@INSTALL@%$INSTALL%g
13869 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13876 # ac_d sets the value in "#define NAME VALUE" lines.
13877 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13878 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13881 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13882 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13883 ac_uB
='\([ ]\)%\1#\2define\3'
13886 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13887 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13888 ac_eB
='$%\1#\2define\3'
13892 if test "${CONFIG_HEADERS+set}" != set; then
13894 cat >> $CONFIG_STATUS <<EOF
13895 CONFIG_HEADERS="include/config.h"
13897 cat >> $CONFIG_STATUS <<\EOF
13899 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13902 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13903 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13904 *) ac_file_in
="${ac_file}.in" ;;
13907 echo creating
$ac_file
13909 rm -f conftest.frag conftest.
in conftest.out
13910 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13911 cat $ac_file_inputs > conftest.
in
13915 # Transform confdefs.h into a sed script conftest.vals that substitutes
13916 # the proper values into config.h.in to produce config.h. And first:
13917 # Protect against being on the right side of a sed subst in config.status.
13918 # Protect against being in an unquoted here document in config.status.
13919 rm -f conftest.vals
13920 cat > conftest.hdr
<<\EOF
13923 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13927 sed -n -f conftest.hdr confdefs.h > conftest.vals
13930 # This sed command replaces #undef with comments. This is necessary, for
13931 # example, in the case of _POSIX_SOURCE, which is predefined and required
13932 # on some systems where configure will not decide to define it.
13933 cat >> conftest.vals <<\EOF
13934 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13937 # Break up conftest.vals because some shells have a limit on
13938 # the size of here documents, and old seds have small limits too.
13940 rm -f conftest.tail
13943 ac_lines=`grep -c . conftest.vals
`
13944 # grep -c gives empty output for an empty file on some AIX systems.
13945 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13946 # Write a limited-size here document to conftest.frag.
13947 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13948 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13950 sed -f conftest.frag conftest.in > conftest.out
13952 mv conftest.out conftest.in
13953 ' >> $CONFIG_STATUS
13954 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13955 rm -f conftest.vals
13956 mv conftest.tail conftest.vals
13958 rm -f conftest.vals
13960 cat >> $CONFIG_STATUS <<\EOF
13961 rm -f conftest.frag conftest.h
13962 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13963 cat conftest.in >> conftest.h
13965 if cmp -s $ac_file conftest.h 2>/dev/null; then
13966 echo "$ac_file is unchanged"
13969 # Remove last slash and all that follows it. Not all systems have dirname.
13970 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
13971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13972 # The file is in a subdirectory.
13973 test ! -d "$ac_dir" && mkdir "$ac_dir"
13976 mv conftest.h $ac_file
13981 cat >> $CONFIG_STATUS <<EOF
13984 cat >> $CONFIG_STATUS <<\EOF
13988 chmod +x $CONFIG_STATUS
13989 rm -fr confdefs* $ac_clean_files
13990 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1