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-auth-crap Include Challenge/Response auth test in wbinfo (default=no)"
88 --with-included-popt use bundled popt library, not from system"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
94 cache_file
=.
/config.cache
103 program_transform_name
=s
,x
,x
,
111 bindir
='${exec_prefix}/bin'
112 sbindir
='${exec_prefix}/sbin'
113 libexecdir
='${exec_prefix}/libexec'
114 datadir
='${prefix}/share'
115 sysconfdir
='${prefix}/etc'
116 sharedstatedir
='${prefix}/com'
117 localstatedir
='${prefix}/var'
118 libdir
='${exec_prefix}/lib'
119 includedir
='${prefix}/include'
120 oldincludedir
='/usr/include'
121 infodir
='${prefix}/info'
122 mandir
='${prefix}/man'
124 # Initialize some other variables.
127 SHELL
=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
143 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
147 # Accept the important Cygnus configure options, so we can diagnose typos.
151 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
153 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
154 bindir
="$ac_optarg" ;;
156 -build |
--build |
--buil |
--bui |
--bu)
158 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
159 build
="$ac_optarg" ;;
161 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
162 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
163 ac_prev
=cache_file
;;
164 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
165 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
166 cache_file
="$ac_optarg" ;;
168 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
170 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
172 datadir
="$ac_optarg" ;;
174 -disable-* |
--disable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* |
--enable-*)
184 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
197 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
198 |
--exec |
--exe |
--ex)
199 ac_prev
=exec_prefix
;;
200 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
201 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
202 |
--exec=* |
--exe=* |
--ex=*)
203 exec_prefix
="$ac_optarg" ;;
205 -gas |
--gas |
--ga |
--g)
206 # Obsolete; use --with-gas.
209 -help |
--help |
--hel |
--he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
264 -host |
--host |
--hos |
--ho)
266 -host=* |
--host=* |
--hos=* |
--ho=*)
269 -includedir |
--includedir |
--includedi |
--included |
--include \
270 |
--includ |
--inclu |
--incl |
--inc)
271 ac_prev
=includedir
;;
272 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
273 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
274 includedir
="$ac_optarg" ;;
276 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
278 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
279 infodir
="$ac_optarg" ;;
281 -libdir |
--libdir |
--libdi |
--libd)
283 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
284 libdir
="$ac_optarg" ;;
286 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
287 |
--libexe |
--libex |
--libe)
288 ac_prev
=libexecdir
;;
289 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
290 |
--libexe=* |
--libex=* |
--libe=*)
291 libexecdir
="$ac_optarg" ;;
293 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
294 |
--localstate |
--localstat |
--localsta |
--localst \
295 |
--locals |
--local |
--loca |
--loc |
--lo)
296 ac_prev
=localstatedir
;;
297 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
298 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
299 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
300 localstatedir
="$ac_optarg" ;;
302 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
304 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
305 mandir
="$ac_optarg" ;;
308 # Obsolete; use --without-fp.
311 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
315 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
316 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
319 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
320 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
321 |
--oldin |
--oldi |
--old |
--ol |
--o)
322 ac_prev
=oldincludedir
;;
323 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
324 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
325 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
326 oldincludedir
="$ac_optarg" ;;
328 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
330 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
331 prefix
="$ac_optarg" ;;
333 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
334 |
--program-pre |
--program-pr |
--program-p)
335 ac_prev
=program_prefix
;;
336 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
337 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
338 program_prefix
="$ac_optarg" ;;
340 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
341 |
--program-suf |
--program-su |
--program-s)
342 ac_prev
=program_suffix
;;
343 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
344 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
345 program_suffix
="$ac_optarg" ;;
347 -program-transform-name |
--program-transform-name \
348 |
--program-transform-nam |
--program-transform-na \
349 |
--program-transform-n |
--program-transform- \
350 |
--program-transform |
--program-transfor \
351 |
--program-transfo |
--program-transf \
352 |
--program-trans |
--program-tran \
353 |
--progr-tra |
--program-tr |
--program-t)
354 ac_prev
=program_transform_name
;;
355 -program-transform-name=* |
--program-transform-name=* \
356 |
--program-transform-nam=* |
--program-transform-na=* \
357 |
--program-transform-n=* |
--program-transform-=* \
358 |
--program-transform=* |
--program-transfor=* \
359 |
--program-transfo=* |
--program-transf=* \
360 |
--program-trans=* |
--program-tran=* \
361 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
362 program_transform_name
="$ac_optarg" ;;
364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
365 |
-silent |
--silent |
--silen |
--sile |
--sil)
368 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
370 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
372 sbindir
="$ac_optarg" ;;
374 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
375 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
376 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
378 ac_prev
=sharedstatedir
;;
379 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
380 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
381 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
383 sharedstatedir
="$ac_optarg" ;;
385 -site |
--site |
--sit)
387 -site=* |
--site=* |
--sit=*)
390 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
392 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
393 srcdir
="$ac_optarg" ;;
395 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
396 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
397 ac_prev
=sysconfdir
;;
398 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
399 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
400 sysconfdir
="$ac_optarg" ;;
402 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
404 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
405 target
="$ac_optarg" ;;
407 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
410 -version |
--version |
--versio |
--versi |
--vers)
411 echo "configure generated by autoconf version 2.13"
415 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package
=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* |
--without-*)
428 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package
=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
441 |
--x-incl |
--x-inc |
--x-in |
--x-i)
442 ac_prev
=x_includes
;;
443 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
444 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
445 x_includes
="$ac_optarg" ;;
447 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
448 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
449 ac_prev
=x_libraries
;;
450 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
451 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
452 x_libraries
="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE
; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
502 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
503 |
--no-cr |
--no-c) ;;
504 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
505 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
506 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest
* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file
=include
/includes.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted
=yes
534 # Try the directory containing this script, then its parent.
536 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
539 if test ! -r $srcdir/$ac_unique_file; then
543 ac_srcdir_defaulted
=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE
; then
557 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
559 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file
in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
573 echo "creating cache $cache_file"
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp
='$CPP $CPPFLAGS'
580 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling
=$ac_cv_prog_cc_cross
586 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
595 ac_n
= ac_c
='\c' ac_t
=
601 #################################################
602 # Directory handling stuff to support both the
603 # legacy SAMBA directories and FHS compliant
607 # Check whether --with-fhs or --without-fhs was given.
608 if test "${with_fhs+set}" = set; then
610 codepagedir
="\$(DATADIR)/samba/codepages"
611 configdir
="${sysconfdir}/samba"
612 lockdir
="\${VARDIR}/cache/samba"
613 piddir
="\$(VARDIR)/run/samba"
614 logfilebase
="\${VARDIR}/log/samba"
615 privatedir
="\${CONFIGDIR}/private"
616 swatdir
="\${DATADIR}/samba/swat"
618 codepagedir
="\$(LIBDIR)/codepages"
619 configdir
="\$(LIBDIR)"
620 logfilebase
="\$(VARDIR)"
621 lockdir
="\${VARDIR}/locks"
622 piddir
="\$(VARDIR)/locks"
623 privatedir
="\${prefix}/private"
624 swatdir
="\${prefix}/swat"
628 #################################################
629 # set private directory location
630 # Check whether --with-privatedir or --without-privatedir was given.
631 if test "${with_privatedir+set}" = set; then
632 withval
="$with_privatedir"
636 # Just in case anybody calls it without argument
638 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
641 privatedir
="$withval"
647 #################################################
648 # set lock directory location
649 # Check whether --with-lockdir or --without-lockdir was given.
650 if test "${with_lockdir+set}" = set; then
651 withval
="$with_lockdir"
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
666 #################################################
667 # set pid directory location
668 # Check whether --with-piddir or --without-piddir was given.
669 if test "${with_piddir+set}" = set; then
670 withval
="$with_piddir"
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
685 #################################################
686 # set SWAT directory location
687 # Check whether --with-swatdir or --without-swatdir was given.
688 if test "${with_swatdir+set}" = set; then
689 withval
="$with_swatdir"
693 # Just in case anybody does it
695 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
704 #################################################
705 # set configuration directory location
706 # Check whether --with-configdir or --without-configdir was given.
707 if test "${with_configdir+set}" = set; then
708 withval
="$with_configdir"
712 # Just in case anybody does it
714 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
723 #################################################
724 # set codepage directory location
725 # Check whether --with-codepagedir or --without-codepagedir was given.
726 if test "${with_codepagedir+set}" = set; then
727 withval
="$with_codepagedir"
731 # Just in case anybody does it
733 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
736 codepagedir
="$withval"
742 #################################################
743 # set log directory location
744 # Check whether --with-logfilebase or --without-logfilebase was given.
745 if test "${with_logfilebase+set}" = set; then
746 withval
="$with_logfilebase"
750 # Just in case anybody does it
752 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
755 logfilebase
="$withval"
790 # compile with optimization and without debugging by default
791 CFLAGS
="-O ${CFLAGS}"
793 # Check whether --enable-debug or --disable-debug was given.
794 if test "${enable_debug+set}" = set; then
795 enableval
="$enable_debug"
796 if eval "test x$enable_debug = xyes"; then
797 CFLAGS
="${CFLAGS} -g"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc
; ac_word
=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$CC"; then
812 ac_cv_prog_CC
="$CC" # Let the user override the test.
814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
816 for ac_dir
in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir
=.
818 if test -f $ac_dir/$ac_word; then
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc
; ac_word
=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$CC"; then
842 ac_cv_prog_CC
="$CC" # Let the user override the test.
844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
847 for ac_dir
in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir
=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy
$ac_cv_prog_CC
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
868 set dummy
"$ac_dir/$ac_word" "$@"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl
; ac_word
=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC
="$CC" # Let the user override the test.
895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
897 for ac_dir
in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir
=.
899 if test -f $ac_dir/$ac_word; then
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp
='$CPP $CPPFLAGS'
925 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling
=$ac_cv_prog_cc_cross
929 cat > conftest.
$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 if { (eval echo configure
:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
937 ac_cv_prog_cc_works
=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (.
/conftest
; exit) 2>/dev
/null
; then
940 ac_cv_prog_cc_cross
=no
942 ac_cv_prog_cc_cross
=yes
945 echo "configure: failed program was:" >&5
946 cat conftest.
$ac_ext >&5
947 ac_cv_prog_cc_works
=no
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp
='$CPP $CPPFLAGS'
953 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling
=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no
; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling
=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 cat > conftest.c
<<EOF
976 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
991 ac_test_CFLAGS
="${CFLAGS+set}"
992 ac_save_CFLAGS
="$CFLAGS"
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS
="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1019 if test "$GCC" = yes; then
1027 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1028 if test -f $ac_dir/install-sh
; then
1030 ac_install_sh
="$ac_aux_dir/install-sh -c"
1032 elif test -f $ac_dir/install.sh
; then
1034 ac_install_sh
="$ac_aux_dir/install.sh -c"
1038 if test -z "$ac_aux_dir"; then
1039 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1041 ac_config_guess
=$ac_aux_dir/config.guess
1042 ac_config_sub
=$ac_aux_dir/config.sub
1043 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1045 # Find a good install program. We prefer a C program (faster),
1046 # so one script is as good as another. But avoid the broken or
1047 # incompatible versions:
1048 # SysV /etc/install, /usr/sbin/install
1049 # SunOS /usr/etc/install
1050 # IRIX /sbin/install
1052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1055 # ./install, which can be erroneously created by make from ./install.sh.
1056 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1057 echo "configure:1058: checking for a BSD compatible install" >&5
1058 if test -z "$INSTALL"; then
1059 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1063 for ac_dir
in $PATH; do
1064 # Account for people who put trailing slashes in PATH elements.
1066 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1068 # OSF1 and SCO ODT 3.0 have their own names for install.
1069 # Don't use installbsd from OSF since it installs stuff as root
1071 for ac_prog
in ginstall scoinst
install; do
1072 if test -f $ac_dir/$ac_prog; then
1073 if test $ac_prog = install &&
1074 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1075 # AIX install. It has an incompatible calling convention.
1078 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1089 if test "${ac_cv_path_install+set}" = set; then
1090 INSTALL
="$ac_cv_path_install"
1092 # As a last resort, use the slow shell script. We don't cache a
1093 # path for INSTALL within a source directory, because that will
1094 # break other packages using the cache if that directory is
1095 # removed, or if the path is relative.
1096 INSTALL
="$ac_install_sh"
1099 echo "$ac_t""$INSTALL" 1>&6
1101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1102 # It thinks the first close brace ends the variable substitution.
1103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1107 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1109 for ac_prog
in gawk mawk nawk
awk
1111 # Extract the first word of "$ac_prog", so it can be a program name with args.
1112 set dummy
$ac_prog; ac_word
=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$AWK"; then
1119 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1121 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1123 for ac_dir
in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir
=.
1125 if test -f $ac_dir/$ac_word; then
1126 ac_cv_prog_AWK
="$ac_prog"
1133 AWK
="$ac_cv_prog_AWK"
1134 if test -n "$AWK"; then
1135 echo "$ac_t""$AWK" 1>&6
1137 echo "$ac_t""no" 1>&6
1140 test -n "$AWK" && break
1143 # Extract the first word of "passwd", so it can be a program name with args.
1144 set dummy passwd
; ac_word
=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 case "$passwd_program" in
1152 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1155 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1158 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1160 for ac_dir
in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir
=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1168 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1172 passwd_program
="$ac_cv_path_passwd_program"
1173 if test -n "$passwd_program"; then
1174 echo "$ac_t""$passwd_program" 1>&6
1176 echo "$ac_t""no" 1>&6
1181 if test "x$CC" != xcc
; then
1182 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1183 echo "configure:1184: checking whether $CC and cc understand -c and -o together" >&5
1185 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether cc understands -c and -o together" >&5
1188 set dummy
$CC; ac_cc
="`echo $2 |
1189 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1190 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 echo 'foo(){}' > conftest.c
1194 # Make sure it works both with $CC and with simple cc.
1195 # We do the test twice because some compilers refuse to overwrite an
1196 # existing .o file with -o, though they will create one.
1197 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1198 if { (eval echo configure
:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1199 test -f conftest.o
&& { (eval echo configure
:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1201 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1202 if test "x$CC" != xcc
; then
1203 # Test first that cc exists at all.
1204 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1205 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1206 if { (eval echo configure
:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1207 test -f conftest.o
&& { (eval echo configure
:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1212 # cc exists but doesn't like -o.
1213 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1218 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1223 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1224 echo "$ac_t""yes" 1>&6
1226 echo "$ac_t""no" 1>&6
1227 cat >> confdefs.h
<<\EOF
1228 #define NO_MINUS_C_MINUS_O 1
1233 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1240 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1241 echo "configure:1242: checking that the C compiler understands volatile" >&5
1242 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1246 cat > conftest.
$ac_ext <<EOF
1247 #line 1248 "configure"
1248 #include "confdefs.h"
1249 #include <sys/types.h>
1254 if { (eval echo configure
:1255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1256 samba_cv_volatile
=yes
1258 echo "configure: failed program was:" >&5
1259 cat conftest.
$ac_ext >&5
1261 samba_cv_volatile
=no
1266 echo "$ac_t""$samba_cv_volatile" 1>&6
1267 if test x
"$samba_cv_volatile" = x
"yes"; then
1268 cat >> confdefs.h
<<\EOF
1269 #define HAVE_VOLATILE 1
1277 # Do some error checking and defaulting for the host and target type.
1279 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1282 # 1. You are not allowed to specify --host, --target, and nonopt at the
1284 # 2. Host defaults to nonopt.
1285 # 3. If nonopt is not specified, then host defaults to the current host,
1286 # as determined by config.guess.
1287 # 4. Target and build default to nonopt.
1288 # 5. If nonopt is not specified, then target and build default to host.
1290 # The aliases save the names the user supplied, while $host etc.
1291 # will get canonicalized.
1292 case $host---$target---$nonopt in
1293 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1294 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1298 # Make sure we can run config.sub.
1299 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1300 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1303 echo $ac_n "checking host system type""... $ac_c" 1>&6
1304 echo "configure:1305: checking host system type" >&5
1307 case "$host_alias" in
1311 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1312 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1314 *) host_alias
=$nonopt ;;
1318 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1319 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1320 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1321 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1322 echo "$ac_t""$host" 1>&6
1324 echo $ac_n "checking target system type""... $ac_c" 1>&6
1325 echo "configure:1326: checking target system type" >&5
1327 target_alias
=$target
1328 case "$target_alias" in
1331 NONE
) target_alias
=$host_alias ;;
1332 *) target_alias
=$nonopt ;;
1336 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1337 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340 echo "$ac_t""$target" 1>&6
1342 echo $ac_n "checking build system type""... $ac_c" 1>&6
1343 echo "configure:1344: checking build system type" >&5
1346 case "$build_alias" in
1349 NONE
) build_alias
=$host_alias ;;
1350 *) build_alias
=$nonopt ;;
1354 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1355 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1358 echo "$ac_t""$build" 1>&6
1360 test "$host_alias" != "$target_alias" &&
1361 test "$program_prefix$program_suffix$program_transform_name" = \
1363 program_prefix
=${target_alias}-
1367 *irix6
*) cat >> confdefs.h
<<\EOF
1368 #include <standards.h>
1376 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1377 echo "configure:1378: checking config.cache system type" >&5
1378 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1379 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1380 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1381 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1382 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1383 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1384 echo "$ac_t""different" 1>&6
1385 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1387 echo "$ac_t""same" 1>&6
1389 ac_cv_host_system_type
="$host"
1390 ac_cv_build_system_type
="$build"
1391 ac_cv_target_system_type
="$target"
1397 # Config CPPFLAG settings for strange OS's that must be set
1398 # before other tests.
1401 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1403 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1404 echo "configure:1405: checking whether ${CC-cc} accepts -Ae" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 echo 'void f(){}' > conftest.c
1409 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1410 ac_cv_prog_cc_Ae
=yes
1418 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1419 # mmap on HPUX is completely broken...
1420 cat >> confdefs.h
<<\EOF
1421 #define MMAP_BLACKLIST 1
1424 if test $ac_cv_prog_cc_Ae = yes; then
1425 CPPFLAGS
="$CPPFLAGS -Ae"
1428 # Defines needed for HPUX support.
1429 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1430 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1434 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1435 cat >> confdefs.h
<<\EOF
1436 #define USE_BOTH_CRYPT_CALLS 1
1439 cat >> confdefs.h
<<\EOF
1440 #define _HPUX_SOURCE 1
1443 cat >> confdefs.h
<<\EOF
1444 #define _POSIX_SOURCE 1
1447 cat >> confdefs.h
<<\EOF
1448 #define _ALIGNMENT_REQUIRED 1
1451 cat >> confdefs.h
<<\EOF
1452 #define _MAX_ALIGNMENT 4
1457 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1458 cat >> confdefs.h
<<\EOF
1459 #define _HPUX_SOURCE 1
1462 cat >> confdefs.h
<<\EOF
1463 #define _POSIX_SOURCE 1
1466 cat >> confdefs.h
<<\EOF
1467 #define _LARGEFILE64_SOURCE 1
1470 cat >> confdefs.h
<<\EOF
1471 #define _ALIGNMENT_REQUIRED 1
1474 cat >> confdefs.h
<<\EOF
1475 #define _MAX_ALIGNMENT 4
1478 cat >> confdefs.h
<<\EOF
1479 #define USE_BOTH_CRYPT_CALLS 1
1489 # CRAY Unicos has broken const handling
1491 echo "$ac_t""disabling const" 1>&6
1492 CPPFLAGS
="$CPPFLAGS -Dconst="
1496 # AIX4.x doesn't even admit to having large
1497 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1500 echo "$ac_t""enabling large file support" 1>&6
1501 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1502 cat >> confdefs.h
<<\EOF
1503 #define _LARGE_FILES 1
1508 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1509 # to the existance of large files..
1510 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1511 # recommendations on large file support, however it makes the
1512 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1513 # recommendation makes the compile fail on gcc2.7. JRA.
1517 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1518 echo "$ac_t""no large file support" 1>&6
1521 echo "$ac_t""enabling large file support" 1>&6
1522 if test "$ac_cv_prog_gcc" = yes; then
1523 ${CC-cc} -v >conftest.c
2>&1
1524 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1526 case "$ac_cv_gcc_compiler_version_number" in
1527 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1528 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1529 cat >> confdefs.h
<<\EOF
1530 #define _LARGEFILE64_SOURCE 1
1535 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1536 cat >> confdefs.h
<<\EOF
1537 #define _LARGEFILE64_SOURCE 1
1540 cat >> confdefs.h
<<\EOF
1541 #define _FILE_OFFSET_BITS 64
1547 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1548 cat >> confdefs.h
<<\EOF
1549 #define _LARGEFILE64_SOURCE 1
1552 cat >> confdefs.h
<<\EOF
1553 #define _FILE_OFFSET_BITS 64
1561 # Tests needed for SINIX large file support.
1564 if test $host = mips-sni-sysv4
; then
1565 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1566 echo "configure:1567: checking for LFS support" >&5
1567 old_CPPFLAGS
="$CPPFLAGS"
1568 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1569 if test "$cross_compiling" = yes; then
1570 SINIX_LFS_SUPPORT
=cross
1572 cat > conftest.
$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1578 #if _LFS64_LARGEFILE == 1
1585 if { (eval echo configure
:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1587 SINIX_LFS_SUPPORT
=yes
1589 echo "configure: failed program was:" >&5
1590 cat conftest.
$ac_ext >&5
1592 SINIX_LFS_SUPPORT
=no
1597 CPPFLAGS
="$old_CPPFLAGS"
1598 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1599 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1600 cat >> confdefs.h
<<\EOF
1601 #define _LARGEFILE64_SOURCE 1
1604 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1605 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1606 LIBS
="`getconf LFS64_LIBS` $LIBS"
1608 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1612 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1615 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1616 echo "configure:1617: checking for LFS support" >&5
1617 old_CPPFLAGS
="$CPPFLAGS"
1618 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1619 if test "$cross_compiling" = yes; then
1620 LINUX_LFS_SUPPORT
=cross
1622 cat > conftest.
$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1627 #include <sys/utsname.h>
1629 #if _LFS64_LARGEFILE == 1
1634 /* Ensure this is glibc 2.2 or higher */
1635 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1636 int libc_major = __GLIBC__;
1637 int libc_minor = __GLIBC_MINOR__;
1645 /* Ensure this is kernel 2.4 or higher */
1648 release = uts.release;
1649 major = atoi(strsep(&release, "."));
1650 minor = atoi(strsep(&release, "."));
1652 if (major > 2 || (major == 2 && minor > 3))
1661 if { (eval echo configure
:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1663 LINUX_LFS_SUPPORT
=yes
1665 echo "configure: failed program was:" >&5
1666 cat conftest.
$ac_ext >&5
1668 LINUX_LFS_SUPPORT
=no
1673 CPPFLAGS
="$old_CPPFLAGS"
1674 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1675 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1676 cat >> confdefs.h
<<\EOF
1677 #define _LARGEFILE64_SOURCE 1
1680 cat >> confdefs.h
<<\EOF
1681 #define _FILE_OFFSET_BITS 64
1684 cat >> confdefs.h
<<\EOF
1685 #define _GNU_SOURCE 1
1689 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1693 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1694 echo "configure:1695: checking for LFS support" >&5
1695 old_CPPFLAGS
="$CPPFLAGS"
1696 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1697 if test "$cross_compiling" = yes; then
1698 GLIBC_LFS_SUPPORT
=cross
1700 cat > conftest.
$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1706 #if _LFS64_LARGEFILE == 1
1713 if { (eval echo configure
:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1715 GLIBC_LFS_SUPPORT
=yes
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1720 GLIBC_LFS_SUPPORT
=no
1725 CPPFLAGS
="$old_CPPFLAGS"
1726 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1727 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1728 cat >> confdefs.h
<<\EOF
1729 #define _LARGEFILE64_SOURCE 1
1732 cat >> confdefs.h
<<\EOF
1733 #define _GNU_SOURCE 1
1737 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1742 echo $ac_n "checking for inline""... $ac_c" 1>&6
1743 echo "configure:1744: checking for inline" >&5
1744 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1748 for ac_kw
in inline __inline__ __inline
; do
1749 cat > conftest.
$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1757 if { (eval echo configure
:1758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1759 ac_cv_c_inline
=$ac_kw; break
1761 echo "configure: failed program was:" >&5
1762 cat conftest.
$ac_ext >&5
1769 echo "$ac_t""$ac_cv_c_inline" 1>&6
1770 case "$ac_cv_c_inline" in
1772 no
) cat >> confdefs.h
<<\EOF
1776 *) cat >> confdefs.h
<<EOF
1777 #define inline $ac_cv_c_inline
1782 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1783 echo "configure:1784: checking how to run the C preprocessor" >&5
1784 # On Suns, sometimes $CPP names a directory.
1785 if test -n "$CPP" && test -d "$CPP"; then
1788 if test -z "$CPP"; then
1789 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 # This must be in double quotes, not single quotes, because CPP may get
1793 # substituted into the Makefile and "${CC-cc}" will confuse make.
1795 # On the NeXT, cc -E runs the code through the compiler's parser,
1796 # not just through cpp.
1797 cat > conftest.
$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1803 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1804 { (eval echo configure
:1805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1805 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1806 if test -z "$ac_err"; then
1810 echo "configure: failed program was:" >&5
1811 cat conftest.
$ac_ext >&5
1813 CPP
="${CC-cc} -E -traditional-cpp"
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure
:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1827 echo "configure: failed program was:" >&5
1828 cat conftest.
$ac_ext >&5
1830 CPP
="${CC-cc} -nologo -E"
1831 cat > conftest.
$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1837 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure
:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1844 echo "configure: failed program was:" >&5
1845 cat conftest.
$ac_ext >&5
1854 ac_cv_prog_CPP
="$CPP"
1856 CPP
="$ac_cv_prog_CPP"
1858 ac_cv_prog_CPP
="$CPP"
1860 echo "$ac_t""$CPP" 1>&6
1862 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1863 echo "configure:1864: checking for ANSI C header files" >&5
1864 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 cat > conftest.
$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1875 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1876 { (eval echo configure
:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1877 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1878 if test -z "$ac_err"; then
1880 ac_cv_header_stdc
=yes
1883 echo "configure: failed program was:" >&5
1884 cat conftest.
$ac_ext >&5
1886 ac_cv_header_stdc
=no
1890 if test $ac_cv_header_stdc = yes; then
1891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1892 cat > conftest.
$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1898 egrep "memchr" >/dev
/null
2>&1; then
1902 ac_cv_header_stdc
=no
1908 if test $ac_cv_header_stdc = yes; then
1909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1916 egrep "free" >/dev
/null
2>&1; then
1920 ac_cv_header_stdc
=no
1926 if test $ac_cv_header_stdc = yes; then
1927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1928 if test "$cross_compiling" = yes; then
1931 cat > conftest.
$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1935 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1936 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1938 int main () { int i; for (i = 0; i < 256; i++)
1939 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1943 if { (eval echo configure
:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1947 echo "configure: failed program was:" >&5
1948 cat conftest.
$ac_ext >&5
1950 ac_cv_header_stdc
=no
1958 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1959 if test $ac_cv_header_stdc = yes; then
1960 cat >> confdefs.h
<<\EOF
1961 #define STDC_HEADERS 1
1967 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1969 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1970 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1971 echo "configure:1972: checking for $ac_hdr that defines DIR" >&5
1972 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 cat > conftest.
$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1978 #include <sys/types.h>
1984 if { (eval echo configure
:1985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1986 eval "ac_cv_header_dirent_$ac_safe=yes"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1991 eval "ac_cv_header_dirent_$ac_safe=no"
1995 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1998 cat >> confdefs.h
<<EOF
1999 #define $ac_tr_hdr 1
2001 ac_header_dirent
=$ac_hdr; break
2003 echo "$ac_t""no" 1>&6
2006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2007 if test $ac_header_dirent = dirent.h
; then
2008 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2009 echo "configure:2010: checking for opendir in -ldir" >&5
2010 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 ac_save_LIBS
="$LIBS"
2016 cat > conftest.
$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2019 /* Override any gcc2 internal prototype to avoid an error. */
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2028 if { (eval echo configure
:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2030 eval "ac_cv_lib_$ac_lib_var=yes"
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 eval "ac_cv_lib_$ac_lib_var=no"
2038 LIBS
="$ac_save_LIBS"
2041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2045 echo "$ac_t""no" 1>&6
2049 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2050 echo "configure:2051: checking for opendir in -lx" >&5
2051 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 ac_save_LIBS
="$LIBS"
2057 cat > conftest.
$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2060 /* Override any gcc2 internal prototype to avoid an error. */
2061 /* We use char because int might match the return type of a gcc2
2062 builtin and then its argument prototype would still apply. */
2069 if { (eval echo configure
:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2071 eval "ac_cv_lib_$ac_lib_var=yes"
2073 echo "configure: failed program was:" >&5
2074 cat conftest.
$ac_ext >&5
2076 eval "ac_cv_lib_$ac_lib_var=no"
2079 LIBS
="$ac_save_LIBS"
2082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2086 echo "$ac_t""no" 1>&6
2091 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2092 echo "configure:2093: checking whether time.h and sys/time.h may both be included" >&5
2093 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.
$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 #include <sys/types.h>
2100 #include <sys/time.h>
2106 if { (eval echo configure
:2107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2108 ac_cv_header_time
=yes
2110 echo "configure: failed program was:" >&5
2111 cat conftest.
$ac_ext >&5
2113 ac_cv_header_time
=no
2118 echo "$ac_t""$ac_cv_header_time" 1>&6
2119 if test $ac_cv_header_time = yes; then
2120 cat >> confdefs.h
<<\EOF
2121 #define TIME_WITH_SYS_TIME 1
2126 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2127 echo "configure:2128: checking for sys/wait.h that is POSIX.1 compatible" >&5
2128 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 cat > conftest.
$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2134 #include <sys/types.h>
2135 #include <sys/wait.h>
2137 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2140 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2145 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2148 if { (eval echo configure
:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2150 ac_cv_header_sys_wait_h
=yes
2152 echo "configure: failed program was:" >&5
2153 cat conftest.
$ac_ext >&5
2155 ac_cv_header_sys_wait_h
=no
2160 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2161 if test $ac_cv_header_sys_wait_h = yes; then
2162 cat >> confdefs.h
<<\EOF
2163 #define HAVE_SYS_WAIT_H 1
2168 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2170 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_hdr" >&5
2173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 cat > conftest.
$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2181 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure
:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2184 if test -z "$ac_err"; then
2186 eval "ac_cv_header_$ac_safe=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.
$ac_ext >&5
2192 eval "ac_cv_header_$ac_safe=no"
2196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2198 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2199 cat >> confdefs.h
<<EOF
2200 #define $ac_tr_hdr 1
2204 echo "$ac_t""no" 1>&6
2208 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2210 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_hdr" >&5
2213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat > conftest.
$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2221 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2222 { (eval echo configure
:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2223 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2224 if test -z "$ac_err"; then
2226 eval "ac_cv_header_$ac_safe=yes"
2229 echo "configure: failed program was:" >&5
2230 cat conftest.
$ac_ext >&5
2232 eval "ac_cv_header_$ac_safe=no"
2236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2237 echo "$ac_t""yes" 1>&6
2238 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2239 cat >> confdefs.h
<<EOF
2240 #define $ac_tr_hdr 1
2244 echo "$ac_t""no" 1>&6
2248 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2250 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_hdr" >&5
2253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.
$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2261 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262 { (eval echo configure
:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2264 if test -z "$ac_err"; then
2266 eval "ac_cv_header_$ac_safe=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.
$ac_ext >&5
2272 eval "ac_cv_header_$ac_safe=no"
2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2278 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2279 cat >> confdefs.h
<<EOF
2280 #define $ac_tr_hdr 1
2284 echo "$ac_t""no" 1>&6
2288 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2290 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2292 echo "configure:2293: checking for $ac_hdr" >&5
2293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 cat > conftest.
$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2301 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2302 { (eval echo configure
:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2303 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2304 if test -z "$ac_err"; then
2306 eval "ac_cv_header_$ac_safe=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2312 eval "ac_cv_header_$ac_safe=no"
2316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2317 echo "$ac_t""yes" 1>&6
2318 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2319 cat >> confdefs.h
<<EOF
2320 #define $ac_tr_hdr 1
2324 echo "$ac_t""no" 1>&6
2328 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2330 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_hdr" >&5
2333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2341 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2342 { (eval echo configure
:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2343 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2344 if test -z "$ac_err"; then
2346 eval "ac_cv_header_$ac_safe=yes"
2349 echo "configure: failed program was:" >&5
2350 cat conftest.
$ac_ext >&5
2352 eval "ac_cv_header_$ac_safe=no"
2356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2357 echo "$ac_t""yes" 1>&6
2358 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2359 cat >> confdefs.h
<<EOF
2360 #define $ac_tr_hdr 1
2364 echo "$ac_t""no" 1>&6
2368 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.h
2370 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2372 echo "configure:2373: checking for $ac_hdr" >&5
2373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2382 { (eval echo configure
:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2383 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2384 if test -z "$ac_err"; then
2386 eval "ac_cv_header_$ac_safe=yes"
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2392 eval "ac_cv_header_$ac_safe=no"
2396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2399 cat >> confdefs.h
<<EOF
2400 #define $ac_tr_hdr 1
2404 echo "$ac_t""no" 1>&6
2408 for ac_hdr
in syslog.h sys
/syslog.h sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2410 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_hdr" >&5
2413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2421 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2422 { (eval echo configure
:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2423 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2424 if test -z "$ac_err"; then
2426 eval "ac_cv_header_$ac_safe=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.
$ac_ext >&5
2432 eval "ac_cv_header_$ac_safe=no"
2436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2437 echo "$ac_t""yes" 1>&6
2438 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2439 cat >> confdefs.h
<<EOF
2440 #define $ac_tr_hdr 1
2444 echo "$ac_t""no" 1>&6
2448 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2450 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2452 echo "configure:2453: checking for $ac_hdr" >&5
2453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 cat > conftest.
$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2461 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462 { (eval echo configure
:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2464 if test -z "$ac_err"; then
2466 eval "ac_cv_header_$ac_safe=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.
$ac_ext >&5
2472 eval "ac_cv_header_$ac_safe=no"
2476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2478 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2479 cat >> confdefs.h
<<EOF
2480 #define $ac_tr_hdr 1
2484 echo "$ac_t""no" 1>&6
2488 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2490 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_hdr" >&5
2493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.
$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2501 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure
:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2506 eval "ac_cv_header_$ac_safe=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 eval "ac_cv_header_$ac_safe=no"
2516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2517 echo "$ac_t""yes" 1>&6
2518 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2519 cat >> confdefs.h
<<EOF
2520 #define $ac_tr_hdr 1
2524 echo "$ac_t""no" 1>&6
2530 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2531 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2535 cat > conftest.
$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2543 if { (eval echo configure
:2544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2545 ac_cv_header_shadow_h
=yes
2547 echo "configure: failed program was:" >&5
2548 cat conftest.
$ac_ext >&5
2550 ac_cv_header_shadow_h
=no
2553 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2554 cat >> confdefs.h
<<\EOF
2555 #define HAVE_SHADOW_H 1
2561 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2563 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2565 echo "configure:2566: checking for $ac_hdr" >&5
2566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 cat > conftest.
$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2574 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2575 { (eval echo configure
:2576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2576 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2577 if test -z "$ac_err"; then
2579 eval "ac_cv_header_$ac_safe=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2585 eval "ac_cv_header_$ac_safe=no"
2589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2591 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2592 cat >> confdefs.h
<<EOF
2593 #define $ac_tr_hdr 1
2597 echo "$ac_t""no" 1>&6
2601 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2603 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_hdr" >&5
2606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.
$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2614 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2615 { (eval echo configure
:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2616 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2617 if test -z "$ac_err"; then
2619 eval "ac_cv_header_$ac_safe=yes"
2622 echo "configure: failed program was:" >&5
2623 cat conftest.
$ac_ext >&5
2625 eval "ac_cv_header_$ac_safe=no"
2629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2631 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2632 cat >> confdefs.h
<<EOF
2633 #define $ac_tr_hdr 1
2637 echo "$ac_t""no" 1>&6
2641 for ac_hdr
in stropts.h poll.h
2643 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_hdr" >&5
2646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 cat > conftest.
$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2654 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655 { (eval echo configure
:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2657 if test -z "$ac_err"; then
2659 eval "ac_cv_header_$ac_safe=yes"
2662 echo "configure: failed program was:" >&5
2663 cat conftest.
$ac_ext >&5
2665 eval "ac_cv_header_$ac_safe=no"
2669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2670 echo "$ac_t""yes" 1>&6
2671 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2672 cat >> confdefs.h
<<EOF
2673 #define $ac_tr_hdr 1
2677 echo "$ac_t""no" 1>&6
2681 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2683 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_hdr" >&5
2686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 cat > conftest.
$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2694 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2695 { (eval echo configure
:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2696 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2697 if test -z "$ac_err"; then
2699 eval "ac_cv_header_$ac_safe=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.
$ac_ext >&5
2705 eval "ac_cv_header_$ac_safe=no"
2709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2712 cat >> confdefs.h
<<EOF
2713 #define $ac_tr_hdr 1
2717 echo "$ac_t""no" 1>&6
2721 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2723 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_hdr" >&5
2726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.
$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2734 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2735 { (eval echo configure
:2736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2736 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2737 if test -z "$ac_err"; then
2739 eval "ac_cv_header_$ac_safe=yes"
2742 echo "configure: failed program was:" >&5
2743 cat conftest.
$ac_ext >&5
2745 eval "ac_cv_header_$ac_safe=no"
2749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2751 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2752 cat >> confdefs.h
<<EOF
2753 #define $ac_tr_hdr 1
2757 echo "$ac_t""no" 1>&6
2762 # For experimental utmp support (lastlog on some BSD-like systems)
2763 for ac_hdr
in utmp.h utmpx.h lastlog.h
2765 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_hdr" >&5
2768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2771 cat > conftest.
$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2776 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure
:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2781 eval "ac_cv_header_$ac_safe=yes"
2784 echo "configure: failed program was:" >&5
2785 cat conftest.
$ac_ext >&5
2787 eval "ac_cv_header_$ac_safe=no"
2791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2794 cat >> confdefs.h
<<EOF
2795 #define $ac_tr_hdr 1
2799 echo "$ac_t""no" 1>&6
2804 # For quotas on Veritas VxFS filesystems
2805 for ac_hdr
in sys
/fs
/vx_quota.h
2807 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_hdr" >&5
2810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.
$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2819 { (eval echo configure
:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2820 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2821 if test -z "$ac_err"; then
2823 eval "ac_cv_header_$ac_safe=yes"
2826 echo "configure: failed program was:" >&5
2827 cat conftest.
$ac_ext >&5
2829 eval "ac_cv_header_$ac_safe=no"
2833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2836 cat >> confdefs.h
<<EOF
2837 #define $ac_tr_hdr 1
2841 echo "$ac_t""no" 1>&6
2846 # For quotas on Linux XFS filesystems
2847 for ac_hdr
in linux
/xqm.h
2849 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2851 echo "configure:2852: checking for $ac_hdr" >&5
2852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 cat > conftest.
$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2860 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2861 { (eval echo configure
:2862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2862 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2863 if test -z "$ac_err"; then
2865 eval "ac_cv_header_$ac_safe=yes"
2868 echo "configure: failed program was:" >&5
2869 cat conftest.
$ac_ext >&5
2871 eval "ac_cv_header_$ac_safe=no"
2875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2876 echo "$ac_t""yes" 1>&6
2877 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2878 cat >> confdefs.h
<<EOF
2879 #define $ac_tr_hdr 1
2883 echo "$ac_t""no" 1>&6
2888 echo $ac_n "checking size of int""... $ac_c" 1>&6
2889 echo "configure:2890: checking size of int" >&5
2890 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 if test "$cross_compiling" = yes; then
2894 ac_cv_sizeof_int
=cross
2896 cat > conftest.
$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2902 FILE *f=fopen("conftestval", "w");
2904 fprintf(f, "%d\n", sizeof(int));
2908 if { (eval echo configure
:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2910 ac_cv_sizeof_int
=`cat conftestval`
2912 echo "configure: failed program was:" >&5
2913 cat conftest.
$ac_ext >&5
2921 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2922 cat >> confdefs.h
<<EOF
2923 #define SIZEOF_INT $ac_cv_sizeof_int
2927 echo $ac_n "checking size of long""... $ac_c" 1>&6
2928 echo "configure:2929: checking size of long" >&5
2929 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 if test "$cross_compiling" = yes; then
2933 ac_cv_sizeof_long
=cross
2935 cat > conftest.
$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2941 FILE *f=fopen("conftestval", "w");
2943 fprintf(f, "%d\n", sizeof(long));
2947 if { (eval echo configure
:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2949 ac_cv_sizeof_long
=`cat conftestval`
2951 echo "configure: failed program was:" >&5
2952 cat conftest.
$ac_ext >&5
2960 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2961 cat >> confdefs.h
<<EOF
2962 #define SIZEOF_LONG $ac_cv_sizeof_long
2966 echo $ac_n "checking size of short""... $ac_c" 1>&6
2967 echo "configure:2968: checking size of short" >&5
2968 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 if test "$cross_compiling" = yes; then
2972 ac_cv_sizeof_short
=cross
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2980 FILE *f=fopen("conftestval", "w");
2982 fprintf(f, "%d\n", sizeof(short));
2986 if { (eval echo configure
:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2988 ac_cv_sizeof_short
=`cat conftestval`
2990 echo "configure: failed program was:" >&5
2991 cat conftest.
$ac_ext >&5
2993 ac_cv_sizeof_short
=0
2999 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3000 cat >> confdefs.h
<<EOF
3001 #define SIZEOF_SHORT $ac_cv_sizeof_short
3006 echo $ac_n "checking for working const""... $ac_c" 1>&6
3007 echo "configure:3008: checking for working const" >&5
3008 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 cat > conftest.
$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3017 /* Ultrix mips cc rejects this. */
3018 typedef int charset[2]; const charset x;
3019 /* SunOS 4.1.1 cc rejects this. */
3020 char const *const *ccp;
3022 /* NEC SVR4.0.2 mips cc rejects this. */
3023 struct point {int x, y;};
3024 static struct point const zero = {0,0};
3025 /* AIX XL C 1.02.0.0 rejects this.
3026 It does not let you subtract one const X* pointer from another in an arm
3027 of an if-expression whose if-part is not a constant expression */
3028 const char *g = "string";
3029 ccp = &g + (g ? g-g : 0);
3030 /* HPUX 7.0 cc rejects these. */
3033 ccp = (char const *const *) p;
3034 { /* SCO 3.2v4 cc rejects this. */
3036 char const *s = 0 ? (char *) 0 : (char const *) 0;
3040 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3042 const int *foo = &x[0];
3045 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3046 typedef const int *iptr;
3050 { /* AIX XL C 1.02.0.0 rejects this saying
3051 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3052 struct s { int j; const int *ap[3]; };
3053 struct s *b; b->j = 5;
3055 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3061 if { (eval echo configure
:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3065 echo "configure: failed program was:" >&5
3066 cat conftest.
$ac_ext >&5
3073 echo "$ac_t""$ac_cv_c_const" 1>&6
3074 if test $ac_cv_c_const = no
; then
3075 cat >> confdefs.h
<<\EOF
3081 echo $ac_n "checking for inline""... $ac_c" 1>&6
3082 echo "configure:3083: checking for inline" >&5
3083 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3087 for ac_kw
in inline __inline__ __inline
; do
3088 cat > conftest.
$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3096 if { (eval echo configure
:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3098 ac_cv_c_inline
=$ac_kw; break
3100 echo "configure: failed program was:" >&5
3101 cat conftest.
$ac_ext >&5
3108 echo "$ac_t""$ac_cv_c_inline" 1>&6
3109 case "$ac_cv_c_inline" in
3111 no
) cat >> confdefs.h
<<\EOF
3115 *) cat >> confdefs.h
<<EOF
3116 #define inline $ac_cv_c_inline
3121 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3122 echo "configure:3123: checking whether byte ordering is bigendian" >&5
3123 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 ac_cv_c_bigendian
=unknown
3127 # See if sys/param.h defines the BYTE_ORDER macro.
3128 cat > conftest.
$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <sys/types.h>
3132 #include <sys/param.h>
3135 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3140 if { (eval echo configure
:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3142 # It does; now see whether it defined to BIG_ENDIAN or not.
3143 cat > conftest.
$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 #include <sys/types.h>
3147 #include <sys/param.h>
3150 #if BYTE_ORDER != BIG_ENDIAN
3155 if { (eval echo configure
:3156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3157 ac_cv_c_bigendian
=yes
3159 echo "configure: failed program was:" >&5
3160 cat conftest.
$ac_ext >&5
3162 ac_cv_c_bigendian
=no
3166 echo "configure: failed program was:" >&5
3167 cat conftest.
$ac_ext >&5
3170 if test $ac_cv_c_bigendian = unknown
; then
3171 if test "$cross_compiling" = yes; then
3172 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3174 cat > conftest.
$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3178 /* Are we little or big endian? From Harbison&Steele. */
3182 char c[sizeof (long)];
3185 exit (u.c[sizeof (long) - 1] == 1);
3188 if { (eval echo configure
:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3190 ac_cv_c_bigendian
=no
3192 echo "configure: failed program was:" >&5
3193 cat conftest.
$ac_ext >&5
3195 ac_cv_c_bigendian
=yes
3203 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3204 if test $ac_cv_c_bigendian = yes; then
3205 cat >> confdefs.h
<<\EOF
3206 #define WORDS_BIGENDIAN 1
3211 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3212 echo "configure:3213: checking whether char is unsigned" >&5
3213 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 if test "$GCC" = yes; then
3217 # GCC predefines this symbol on systems where it applies.
3218 cat > conftest.
$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 #ifdef __CHAR_UNSIGNED__
3226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3227 egrep "yes" >/dev
/null
2>&1; then
3229 ac_cv_c_char_unsigned
=yes
3232 ac_cv_c_char_unsigned
=no
3237 if test "$cross_compiling" = yes; then
3238 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3244 #if !defined(__STDC__) || __STDC__ != 1
3248 volatile char c = 255; exit(c < 0);
3251 if { (eval echo configure
:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3253 ac_cv_c_char_unsigned
=yes
3255 echo "configure: failed program was:" >&5
3256 cat conftest.
$ac_ext >&5
3258 ac_cv_c_char_unsigned
=no
3266 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3267 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3268 cat >> confdefs.h
<<\EOF
3269 #define __CHAR_UNSIGNED__ 1
3275 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3276 echo "configure:3277: checking return type of signal handlers" >&5
3277 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 cat > conftest.
$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <sys/types.h>
3289 extern "C" void (*signal (int, void (*)(int)))(int);
3291 void (*signal ()) ();
3298 if { (eval echo configure
:3299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300 ac_cv_type_signal
=void
3302 echo "configure: failed program was:" >&5
3303 cat conftest.
$ac_ext >&5
3305 ac_cv_type_signal
=int
3310 echo "$ac_t""$ac_cv_type_signal" 1>&6
3311 cat >> confdefs.h
<<EOF
3312 #define RETSIGTYPE $ac_cv_type_signal
3316 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3317 echo "configure:3318: checking for uid_t in sys/types.h" >&5
3318 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 cat > conftest.
$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <sys/types.h>
3326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3327 egrep "uid_t" >/dev
/null
2>&1; then
3329 ac_cv_type_uid_t
=yes
3338 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3339 if test $ac_cv_type_uid_t = no
; then
3340 cat >> confdefs.h
<<\EOF
3344 cat >> confdefs.h
<<\EOF
3350 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3351 echo "configure:3352: checking for mode_t" >&5
3352 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.
$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <sys/types.h>
3364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3365 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3367 ac_cv_type_mode_t
=yes
3370 ac_cv_type_mode_t
=no
3375 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3376 if test $ac_cv_type_mode_t = no
; then
3377 cat >> confdefs.h
<<\EOF
3383 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3384 echo "configure:3385: checking for off_t" >&5
3385 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.
$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <sys/types.h>
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3400 ac_cv_type_off_t
=yes
3408 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3409 if test $ac_cv_type_off_t = no
; then
3410 cat >> confdefs.h
<<\EOF
3416 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3417 echo "configure:3418: checking for size_t" >&5
3418 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.
$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <sys/types.h>
3430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3431 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3433 ac_cv_type_size_t
=yes
3436 ac_cv_type_size_t
=no
3441 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3442 if test $ac_cv_type_size_t = no
; then
3443 cat >> confdefs.h
<<\EOF
3444 #define size_t unsigned
3449 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3450 echo "configure:3451: checking for pid_t" >&5
3451 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 cat > conftest.
$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <sys/types.h>
3463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3466 ac_cv_type_pid_t
=yes
3474 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3475 if test $ac_cv_type_pid_t = no
; then
3476 cat >> confdefs.h
<<\EOF
3482 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3483 echo "configure:3484: checking for st_rdev in struct stat" >&5
3484 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.
$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 #include <sys/types.h>
3491 #include <sys/stat.h>
3493 struct stat s; s.st_rdev;
3496 if { (eval echo configure
:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498 ac_cv_struct_st_rdev
=yes
3500 echo "configure: failed program was:" >&5
3501 cat conftest.
$ac_ext >&5
3503 ac_cv_struct_st_rdev
=no
3508 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3509 if test $ac_cv_struct_st_rdev = yes; then
3510 cat >> confdefs.h
<<\EOF
3511 #define HAVE_ST_RDEV 1
3516 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3517 echo "configure:3518: checking for d_off in dirent" >&5
3518 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 cat > conftest.
$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3526 #include <sys/types.h>
3529 struct dirent d; d.d_off;
3532 if { (eval echo configure
:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 ac_cv_dirent_d_off
=yes
3536 echo "configure: failed program was:" >&5
3537 cat conftest.
$ac_ext >&5
3539 ac_cv_dirent_d_off
=no
3544 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3545 if test $ac_cv_dirent_d_off = yes; then
3546 cat >> confdefs.h
<<\EOF
3547 #define HAVE_DIRENT_D_OFF 1
3552 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3553 echo "configure:3554: checking for ino_t" >&5
3554 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 cat > conftest.
$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <sys/types.h>
3566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3569 ac_cv_type_ino_t
=yes
3577 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3578 if test $ac_cv_type_ino_t = no
; then
3579 cat >> confdefs.h
<<\EOF
3580 #define ino_t unsigned
3585 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3586 echo "configure:3587: checking for loff_t" >&5
3587 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 cat > conftest.
$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 #include <sys/types.h>
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3602 ac_cv_type_loff_t
=yes
3605 ac_cv_type_loff_t
=no
3610 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3611 if test $ac_cv_type_loff_t = no
; then
3612 cat >> confdefs.h
<<\EOF
3613 #define loff_t off_t
3618 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3619 echo "configure:3620: checking for offset_t" >&5
3620 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 #include <sys/types.h>
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3635 ac_cv_type_offset_t
=yes
3638 ac_cv_type_offset_t
=no
3643 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3644 if test $ac_cv_type_offset_t = no
; then
3645 cat >> confdefs.h
<<\EOF
3646 #define offset_t loff_t
3651 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3652 echo "configure:3653: checking for ssize_t" >&5
3653 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.
$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <sys/types.h>
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3668 ac_cv_type_ssize_t
=yes
3671 ac_cv_type_ssize_t
=no
3676 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3677 if test $ac_cv_type_ssize_t = no
; then
3678 cat >> confdefs.h
<<\EOF
3684 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3685 echo "configure:3686: checking for wchar_t" >&5
3686 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.
$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <sys/types.h>
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3701 ac_cv_type_wchar_t
=yes
3704 ac_cv_type_wchar_t
=no
3709 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3710 if test $ac_cv_type_wchar_t = no
; then
3711 cat >> confdefs.h
<<\EOF
3712 #define wchar_t unsigned short
3718 ############################################
3719 # for cups support we need libcups, and a handful of header files
3721 # Check whether --enable-cups or --disable-cups was given.
3722 if test "${enable_cups+set}" = set; then
3723 enableval
="$enable_cups"
3728 if test x
$enable_cups != xno
; then
3729 # Extract the first word of "cups-config", so it can be a program name with args.
3730 set dummy cups-config
; ac_word
=$2
3731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3732 echo "configure:3733: checking for $ac_word" >&5
3733 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3736 case "$CUPS_CONFIG" in
3738 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3741 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3744 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3746 for ac_dir
in $ac_dummy; do
3747 test -z "$ac_dir" && ac_dir
=.
3748 if test -f $ac_dir/$ac_word; then
3749 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3757 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3758 if test -n "$CUPS_CONFIG"; then
3759 echo "$ac_t""$CUPS_CONFIG" 1>&6
3761 echo "$ac_t""no" 1>&6
3765 if test "x$CUPS_CONFIG" != x
; then
3766 cat >> confdefs.h
<<\EOF
3770 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3771 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3772 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3776 ############################################
3777 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3778 for ac_func
in dlopen
3780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3781 echo "configure:3782: checking for $ac_func" >&5
3782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.
$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* System header to define __stub macros and hopefully few prototypes,
3789 which can conflict with char $ac_func(); below. */
3791 /* Override any gcc2 internal prototype to avoid an error. */
3792 /* We use char because int might match the return type of a gcc2
3793 builtin and then its argument prototype would still apply. */
3798 /* The GNU C library defines this for functions which it implements
3799 to always fail with ENOSYS. Some functions are actually named
3800 something starting with __ and the normal name is an alias. */
3801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3809 if { (eval echo configure
:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3811 eval "ac_cv_func_$ac_func=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.
$ac_ext >&5
3816 eval "ac_cv_func_$ac_func=no"
3821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3824 cat >> confdefs.h
<<EOF
3825 #define $ac_tr_func 1
3829 echo "$ac_t""no" 1>&6
3833 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3834 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3835 echo "configure:3836: checking for dlopen in -ldl" >&5
3836 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 ac_save_LIBS
="$LIBS"
3842 cat > conftest.
$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3854 if { (eval echo configure
:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3856 eval "ac_cv_lib_$ac_lib_var=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.
$ac_ext >&5
3861 eval "ac_cv_lib_$ac_lib_var=no"
3864 LIBS
="$ac_save_LIBS"
3867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3870 cat >> confdefs.h
<<\EOF
3871 #define HAVE_DLOPEN 1
3875 echo "$ac_t""no" 1>&6
3879 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3881 ############################################
3882 # check if the compiler can do immediate structures
3883 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3884 echo "configure:3885: checking for immediate structures" >&5
3885 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.
$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3896 typedef struct {unsigned x;} FOOBAR;
3897 #define X_FOOBAR(x) ((FOOBAR) { x })
3898 #define FOO_ONE X_FOOBAR(1)
3908 if { (eval echo configure
:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3910 samba_cv_immediate_structures
=yes
3912 echo "configure: failed program was:" >&5
3913 cat conftest.
$ac_ext >&5
3915 samba_cv_immediate_structures
=no
3920 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3921 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3922 cat >> confdefs.h
<<\EOF
3923 #define HAVE_IMMEDIATE_STRUCTURES 1
3928 ############################################
3929 # check for unix domain sockets
3930 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3931 echo "configure:3932: checking for unix domain sockets" >&5
3932 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3936 cat > conftest.
$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3940 #include <sys/types.h>
3943 #include <sys/socket.h>
3947 struct sockaddr_un sunaddr;
3948 sunaddr.sun_family = AF_UNIX;
3952 if { (eval echo configure
:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 samba_cv_unixsocket
=yes
3956 echo "configure: failed program was:" >&5
3957 cat conftest.
$ac_ext >&5
3959 samba_cv_unixsocket
=no
3964 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3965 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3966 cat >> confdefs.h
<<\EOF
3967 #define HAVE_UNIXSOCKET 1
3972 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3973 echo "configure:3974: checking for socklen_t type" >&5
3974 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.
$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3982 #include <sys/types.h>
3987 #include <sys/socket.h>
3992 if { (eval echo configure
:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3994 samba_cv_socklen_t
=yes
3996 echo "configure: failed program was:" >&5
3997 cat conftest.
$ac_ext >&5
3999 samba_cv_socklen_t
=no
4004 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4005 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4006 cat >> confdefs.h
<<\EOF
4007 #define HAVE_SOCKLEN_T_TYPE 1
4012 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4013 echo "configure:4014: checking for sig_atomic_t type" >&5
4014 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4018 cat > conftest.
$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4022 #include <sys/types.h>
4032 if { (eval echo configure
:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4034 samba_cv_sig_atomic_t
=yes
4036 echo "configure: failed program was:" >&5
4037 cat conftest.
$ac_ext >&5
4039 samba_cv_sig_atomic_t
=no
4044 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4045 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4046 cat >> confdefs.h
<<\EOF
4047 #define HAVE_SIG_ATOMIC_T_TYPE 1
4052 # stupid headers have the functions but no declaration. grrrr.
4054 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4055 echo "configure:4056: checking for errno declaration" >&5
4056 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4068 if { (eval echo configure
:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4070 ac_cv_have_errno_decl
=yes
4072 echo "configure: failed program was:" >&5
4073 cat conftest.
$ac_ext >&5
4075 ac_cv_have_errno_decl
=no
4080 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4081 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4082 cat >> confdefs.h
<<\EOF
4083 #define HAVE_ERRNO_DECL 1
4089 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4090 echo "configure:4091: checking for setresuid declaration" >&5
4091 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4095 cat > conftest.
$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4100 int i = (int)setresuid
4103 if { (eval echo configure
:4104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4105 ac_cv_have_setresuid_decl
=yes
4107 echo "configure: failed program was:" >&5
4108 cat conftest.
$ac_ext >&5
4110 ac_cv_have_setresuid_decl
=no
4115 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4116 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4117 cat >> confdefs.h
<<\EOF
4118 #define HAVE_SETRESUID_DECL 1
4124 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4125 echo "configure:4126: checking for setresgid declaration" >&5
4126 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4130 cat > conftest.
$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4135 int i = (int)setresgid
4138 if { (eval echo configure
:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 ac_cv_have_setresgid_decl
=yes
4142 echo "configure: failed program was:" >&5
4143 cat conftest.
$ac_ext >&5
4145 ac_cv_have_setresgid_decl
=no
4150 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4151 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4152 cat >> confdefs.h
<<\EOF
4153 #define HAVE_SETRESGID_DECL 1
4159 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4160 echo "configure:4161: checking for asprintf declaration" >&5
4161 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4170 int i = (int)asprintf
4173 if { (eval echo configure
:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4175 ac_cv_have_asprintf_decl
=yes
4177 echo "configure: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4180 ac_cv_have_asprintf_decl
=no
4185 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4186 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4187 cat >> confdefs.h
<<\EOF
4188 #define HAVE_ASPRINTF_DECL 1
4194 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4195 echo "configure:4196: checking for vasprintf declaration" >&5
4196 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4205 int i = (int)vasprintf
4208 if { (eval echo configure
:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4210 ac_cv_have_vasprintf_decl
=yes
4212 echo "configure: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 ac_cv_have_vasprintf_decl
=no
4220 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4221 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4222 cat >> confdefs.h
<<\EOF
4223 #define HAVE_VASPRINTF_DECL 1
4229 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4230 echo "configure:4231: checking for vsnprintf declaration" >&5
4231 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4235 cat > conftest.
$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4240 int i = (int)vsnprintf
4243 if { (eval echo configure
:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4245 ac_cv_have_vsnprintf_decl
=yes
4247 echo "configure: failed program was:" >&5
4248 cat conftest.
$ac_ext >&5
4250 ac_cv_have_vsnprintf_decl
=no
4255 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4256 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4257 cat >> confdefs.h
<<\EOF
4258 #define HAVE_VSNPRINTF_DECL 1
4264 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4265 echo "configure:4266: checking for snprintf declaration" >&5
4266 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.
$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4275 int i = (int)snprintf
4278 if { (eval echo configure
:4279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4280 ac_cv_have_snprintf_decl
=yes
4282 echo "configure: failed program was:" >&5
4283 cat conftest.
$ac_ext >&5
4285 ac_cv_have_snprintf_decl
=no
4290 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4291 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4292 cat >> confdefs.h
<<\EOF
4293 #define HAVE_SNPRINTF_DECL 1
4299 # and glibc has setresuid under linux but the function does
4300 # nothing until kernel 2.1.44! very dumb.
4301 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4302 echo "configure:4303: checking for real setresuid" >&5
4303 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4307 if test "$cross_compiling" = yes; then
4308 samba_cv_have_setresuid
=cross
4310 cat > conftest.
$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4314 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4316 if { (eval echo configure
:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4318 samba_cv_have_setresuid
=yes
4320 echo "configure: failed program was:" >&5
4321 cat conftest.
$ac_ext >&5
4323 samba_cv_have_setresuid
=no
4330 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4331 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4332 cat >> confdefs.h
<<\EOF
4333 #define HAVE_SETRESUID 1
4338 # Do the same check for setresguid...
4340 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4341 echo "configure:4342: checking for real setresgid" >&5
4342 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4346 if test "$cross_compiling" = yes; then
4347 samba_cv_have_setresgid
=cross
4349 cat > conftest.
$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4354 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4356 if { (eval echo configure
:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4358 samba_cv_have_setresgid
=yes
4360 echo "configure: failed program was:" >&5
4361 cat conftest.
$ac_ext >&5
4363 samba_cv_have_setresgid
=no
4370 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4371 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4372 cat >> confdefs.h
<<\EOF
4373 #define HAVE_SETRESGID 1
4378 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4379 echo "configure:4380: checking for 8-bit clean memcmp" >&5
4380 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 if test "$cross_compiling" = yes; then
4384 ac_cv_func_memcmp_clean
=no
4386 cat > conftest.
$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4392 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4393 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4397 if { (eval echo configure
:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4399 ac_cv_func_memcmp_clean
=yes
4401 echo "configure: failed program was:" >&5
4402 cat conftest.
$ac_ext >&5
4404 ac_cv_func_memcmp_clean
=no
4411 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4412 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4415 ###############################################
4416 # Readline included by default unless explicitly asked not to
4417 test "${with_readline+set}" != "set" && with_readline
=yes
4419 # test for where we get readline() from
4420 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4421 echo "configure:4422: checking whether to use readline" >&5
4422 # Check whether --with-readline or --without-readline was given.
4423 if test "${with_readline+set}" = set; then
4424 withval
="$with_readline"
4425 case "$with_readline" in
4427 echo "$ac_t""yes" 1>&6
4429 for ac_hdr
in readline.h
history.h readline
/readline.h
4431 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4433 echo "configure:4434: checking for $ac_hdr" >&5
4434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 cat > conftest.
$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4442 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4443 { (eval echo configure
:4444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4444 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4445 if test -z "$ac_err"; then
4447 eval "ac_cv_header_$ac_safe=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.
$ac_ext >&5
4453 eval "ac_cv_header_$ac_safe=no"
4457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4458 echo "$ac_t""yes" 1>&6
4459 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4460 cat >> confdefs.h
<<EOF
4461 #define $ac_tr_hdr 1
4465 echo "$ac_t""no" 1>&6
4469 for ac_hdr
in readline
/history.h
4471 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4473 echo "configure:4474: checking for $ac_hdr" >&5
4474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4477 cat > conftest.
$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4482 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4483 { (eval echo configure
:4484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4484 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4485 if test -z "$ac_err"; then
4487 eval "ac_cv_header_$ac_safe=yes"
4490 echo "configure: failed program was:" >&5
4491 cat conftest.
$ac_ext >&5
4493 eval "ac_cv_header_$ac_safe=no"
4497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4499 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4500 cat >> confdefs.h
<<EOF
4501 #define $ac_tr_hdr 1
4505 echo "$ac_t""no" 1>&6
4510 for ac_hdr
in readline.h readline
/readline.h
4512 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4514 echo "configure:4515: checking for $ac_hdr" >&5
4515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 cat > conftest.
$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4523 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4524 { (eval echo configure
:4525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4525 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4526 if test -z "$ac_err"; then
4528 eval "ac_cv_header_$ac_safe=yes"
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4534 eval "ac_cv_header_$ac_safe=no"
4538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4539 echo "$ac_t""yes" 1>&6
4540 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4541 cat >> confdefs.h
<<EOF
4542 #define $ac_tr_hdr 1
4545 for termlib
in ncurses curses termcap terminfo termlib
; do
4546 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4547 echo "configure:4548: checking for tgetent in -l${termlib}" >&5
4548 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 ac_save_LIBS
="$LIBS"
4553 LIBS
="-l${termlib} $LIBS"
4554 cat > conftest.
$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* Override any gcc2 internal prototype to avoid an error. */
4558 /* We use char because int might match the return type of a gcc2
4559 builtin and then its argument prototype would still apply. */
4566 if { (eval echo configure
:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4568 eval "ac_cv_lib_$ac_lib_var=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.
$ac_ext >&5
4573 eval "ac_cv_lib_$ac_lib_var=no"
4576 LIBS
="$ac_save_LIBS"
4579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4581 TERMLIBS
="-l${termlib}"; break
4583 echo "$ac_t""no" 1>&6
4587 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4588 echo "configure:4589: checking for rl_callback_handler_install in -lreadline" >&5
4589 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4593 ac_save_LIBS
="$LIBS"
4594 LIBS
="-lreadline $TERMLIBS $LIBS"
4595 cat > conftest.
$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* Override any gcc2 internal prototype to avoid an error. */
4599 /* We use char because int might match the return type of a gcc2
4600 builtin and then its argument prototype would still apply. */
4601 char rl_callback_handler_install();
4604 rl_callback_handler_install()
4607 if { (eval echo configure
:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4609 eval "ac_cv_lib_$ac_lib_var=yes"
4611 echo "configure: failed program was:" >&5
4612 cat conftest.
$ac_ext >&5
4614 eval "ac_cv_lib_$ac_lib_var=no"
4617 LIBS
="$ac_save_LIBS"
4620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4621 echo "$ac_t""yes" 1>&6
4622 TERMLIBS
="-lreadline $TERMLIBS"
4623 cat >> confdefs.h
<<\EOF
4624 #define HAVE_LIBREADLINE 1
4629 echo "$ac_t""no" 1>&6
4634 echo "$ac_t""no" 1>&6
4640 echo "$ac_t""no" 1>&6
4643 echo "$ac_t""yes" 1>&6
4645 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4646 # alternate readline path
4648 _cppflags
=${CPPFLAGS}
4650 # Add additional search path
4651 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4652 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4654 for ac_hdr
in readline.h
history.h readline
/readline.h
4656 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4658 echo "configure:4659: checking for $ac_hdr" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.
$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4668 { (eval echo configure
:4669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4670 if test -z "$ac_err"; then
4672 eval "ac_cv_header_$ac_safe=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.
$ac_ext >&5
4678 eval "ac_cv_header_$ac_safe=no"
4682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4685 cat >> confdefs.h
<<EOF
4686 #define $ac_tr_hdr 1
4690 echo "$ac_t""no" 1>&6
4694 for ac_hdr
in readline
/history.h
4696 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_hdr" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.
$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4707 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4708 { (eval echo configure
:4709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4709 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4710 if test -z "$ac_err"; then
4712 eval "ac_cv_header_$ac_safe=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4718 eval "ac_cv_header_$ac_safe=no"
4722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4724 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4725 cat >> confdefs.h
<<EOF
4726 #define $ac_tr_hdr 1
4730 echo "$ac_t""no" 1>&6
4735 for ac_hdr
in readline.h readline
/readline.h
4737 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4739 echo "configure:4740: checking for $ac_hdr" >&5
4740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.
$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4749 { (eval echo configure
:4750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4750 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4751 if test -z "$ac_err"; then
4753 eval "ac_cv_header_$ac_safe=yes"
4756 echo "configure: failed program was:" >&5
4757 cat conftest.
$ac_ext >&5
4759 eval "ac_cv_header_$ac_safe=no"
4763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4764 echo "$ac_t""yes" 1>&6
4765 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4766 cat >> confdefs.h
<<EOF
4767 #define $ac_tr_hdr 1
4770 for termlib
in ncurses curses termcap terminfo termlib
; do
4771 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4772 echo "configure:4773: checking for tgetent in -l${termlib}" >&5
4773 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 ac_save_LIBS
="$LIBS"
4778 LIBS
="-l${termlib} $LIBS"
4779 cat > conftest.
$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */
4791 if { (eval echo configure
:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4793 eval "ac_cv_lib_$ac_lib_var=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.
$ac_ext >&5
4798 eval "ac_cv_lib_$ac_lib_var=no"
4801 LIBS
="$ac_save_LIBS"
4804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 TERMLIBS
="-l${termlib}"; break
4808 echo "$ac_t""no" 1>&6
4812 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4813 echo "configure:4814: checking for rl_callback_handler_install in -lreadline" >&5
4814 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4816 echo $ac_n "(cached) $ac_c" 1>&6
4818 ac_save_LIBS
="$LIBS"
4819 LIBS
="-lreadline $TERMLIBS $LIBS"
4820 cat > conftest.
$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 /* Override any gcc2 internal prototype to avoid an error. */
4824 /* We use char because int might match the return type of a gcc2
4825 builtin and then its argument prototype would still apply. */
4826 char rl_callback_handler_install();
4829 rl_callback_handler_install()
4832 if { (eval echo configure
:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4834 eval "ac_cv_lib_$ac_lib_var=yes"
4836 echo "configure: failed program was:" >&5
4837 cat conftest.
$ac_ext >&5
4839 eval "ac_cv_lib_$ac_lib_var=no"
4842 LIBS
="$ac_save_LIBS"
4845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4846 echo "$ac_t""yes" 1>&6
4847 TERMLDFLAGS
="-L$with_readline/lib"
4848 TERMCPPFLAGS
="-I$with_readline/include"
4849 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4850 TERMLIBS
="-lreadline $TERMLIBS"
4851 cat >> confdefs.h
<<\EOF
4852 #define HAVE_LIBREADLINE 1
4857 echo "$ac_t""no" 1>&6
4858 TERMLIBS
= CPPFLAGS
=$_cppflags
4862 echo "$ac_t""no" 1>&6
4871 echo "$ac_t""no" 1>&6
4878 # The following test taken from the cvs sources
4879 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4880 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4881 # libsocket.so which has a bad implementation of gethostbyname (it
4882 # only looks in /etc/hosts), so we only look for -lsocket if we need
4884 for ac_func
in connect
4886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4887 echo "configure:4888: checking for $ac_func" >&5
4888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 cat > conftest.
$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4894 /* System header to define __stub macros and hopefully few prototypes,
4895 which can conflict with char $ac_func(); below. */
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4904 /* The GNU C library defines this for functions which it implements
4905 to always fail with ENOSYS. Some functions are actually named
4906 something starting with __ and the normal name is an alias. */
4907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4915 if { (eval echo configure
:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4917 eval "ac_cv_func_$ac_func=yes"
4919 echo "configure: failed program was:" >&5
4920 cat conftest.
$ac_ext >&5
4922 eval "ac_cv_func_$ac_func=no"
4927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4929 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4930 cat >> confdefs.h
<<EOF
4931 #define $ac_tr_func 1
4935 echo "$ac_t""no" 1>&6
4939 if test x
"$ac_cv_func_connect" = x
"no"; then
4942 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4943 echo "configure:4944: checking for printf in -lnsl_s" >&5
4944 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 ac_save_LIBS
="$LIBS"
4949 LIBS
="-lnsl_s $LIBS"
4950 cat > conftest.
$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4962 if { (eval echo configure
:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4964 eval "ac_cv_lib_$ac_lib_var=yes"
4966 echo "configure: failed program was:" >&5
4967 cat conftest.
$ac_ext >&5
4969 eval "ac_cv_lib_$ac_lib_var=no"
4972 LIBS
="$ac_save_LIBS"
4975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4979 cat >> confdefs.h
<<EOF
4980 #define $ac_tr_lib 1
4983 LIBS
="-lnsl_s $LIBS"
4986 echo "$ac_t""no" 1>&6
4992 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4993 echo "configure:4994: checking for printf in -lnsl" >&5
4994 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 ac_save_LIBS
="$LIBS"
5000 cat > conftest.
$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 /* Override any gcc2 internal prototype to avoid an error. */
5004 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5012 if { (eval echo configure
:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5014 eval "ac_cv_lib_$ac_lib_var=yes"
5016 echo "configure: failed program was:" >&5
5017 cat conftest.
$ac_ext >&5
5019 eval "ac_cv_lib_$ac_lib_var=no"
5022 LIBS
="$ac_save_LIBS"
5025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5027 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5029 cat >> confdefs.h
<<EOF
5030 #define $ac_tr_lib 1
5036 echo "$ac_t""no" 1>&6
5042 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5043 echo "configure:5044: checking for connect in -lsocket" >&5
5044 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5048 ac_save_LIBS
="$LIBS"
5049 LIBS
="-lsocket $LIBS"
5050 cat > conftest.
$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 /* Override any gcc2 internal prototype to avoid an error. */
5054 /* We use char because int might match the return type of a gcc2
5055 builtin and then its argument prototype would still apply. */
5062 if { (eval echo configure
:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5064 eval "ac_cv_lib_$ac_lib_var=yes"
5066 echo "configure: failed program was:" >&5
5067 cat conftest.
$ac_ext >&5
5069 eval "ac_cv_lib_$ac_lib_var=no"
5072 LIBS
="$ac_save_LIBS"
5075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5077 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5078 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5079 cat >> confdefs.h
<<EOF
5080 #define $ac_tr_lib 1
5083 LIBS
="-lsocket $LIBS"
5086 echo "$ac_t""no" 1>&6
5092 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5093 echo "configure:5094: checking for connect in -linet" >&5
5094 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 ac_save_LIBS
="$LIBS"
5100 cat > conftest.
$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5112 if { (eval echo configure
:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5114 eval "ac_cv_lib_$ac_lib_var=yes"
5116 echo "configure: failed program was:" >&5
5117 cat conftest.
$ac_ext >&5
5119 eval "ac_cv_lib_$ac_lib_var=no"
5122 LIBS
="$ac_save_LIBS"
5125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5126 echo "$ac_t""yes" 1>&6
5127 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5128 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5129 cat >> confdefs.h
<<EOF
5130 #define $ac_tr_lib 1
5136 echo "$ac_t""no" 1>&6
5140 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5141 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5142 # ac_cv_func_connect=yes
5143 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5144 cat >> confdefs.h
<<\EOF
5145 #define HAVE_CONNECT 1
5151 ###############################################
5152 # test for where we get get_yp_default_domain() from
5153 for ac_func
in yp_get_default_domain
5155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5156 echo "configure:5157: checking for $ac_func" >&5
5157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 cat > conftest.
$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* System header to define __stub macros and hopefully few prototypes,
5164 which can conflict with char $ac_func(); below. */
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5173 /* The GNU C library defines this for functions which it implements
5174 to always fail with ENOSYS. Some functions are actually named
5175 something starting with __ and the normal name is an alias. */
5176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5184 if { (eval echo configure
:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5186 eval "ac_cv_func_$ac_func=yes"
5188 echo "configure: failed program was:" >&5
5189 cat conftest.
$ac_ext >&5
5191 eval "ac_cv_func_$ac_func=no"
5196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5197 echo "$ac_t""yes" 1>&6
5198 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5199 cat >> confdefs.h
<<EOF
5200 #define $ac_tr_func 1
5204 echo "$ac_t""no" 1>&6
5208 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5209 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5210 echo "configure:5211: checking for yp_get_default_domain in -lnsl" >&5
5211 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5215 ac_save_LIBS
="$LIBS"
5217 cat > conftest.
$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5220 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5223 char yp_get_default_domain();
5226 yp_get_default_domain()
5229 if { (eval echo configure
:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5231 eval "ac_cv_lib_$ac_lib_var=yes"
5233 echo "configure: failed program was:" >&5
5234 cat conftest.
$ac_ext >&5
5236 eval "ac_cv_lib_$ac_lib_var=no"
5239 LIBS
="$ac_save_LIBS"
5242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5245 cat >> confdefs.h
<<\EOF
5246 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5250 echo "$ac_t""no" 1>&6
5255 # Check if we have execl, if not we need to compile smbrun.
5256 for ac_func
in execl
5258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5259 echo "configure:5260: checking for $ac_func" >&5
5260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 cat > conftest.
$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* System header to define __stub macros and hopefully few prototypes,
5267 which can conflict with char $ac_func(); below. */
5269 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5287 if { (eval echo configure
:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5289 eval "ac_cv_func_$ac_func=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.
$ac_ext >&5
5294 eval "ac_cv_func_$ac_func=no"
5299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5300 echo "$ac_t""yes" 1>&6
5301 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5302 cat >> confdefs.h
<<EOF
5303 #define $ac_tr_func 1
5307 echo "$ac_t""no" 1>&6
5311 if test x
"$ac_cv_func_execl" = x
"no"; then
5312 RUNPROG
="bin/smbrun"
5317 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5320 echo "configure:5321: checking for $ac_func" >&5
5321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 cat > conftest.
$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 /* System header to define __stub macros and hopefully few prototypes,
5328 which can conflict with char $ac_func(); below. */
5330 /* Override any gcc2 internal prototype to avoid an error. */
5331 /* We use char because int might match the return type of a gcc2
5332 builtin and then its argument prototype would still apply. */
5337 /* The GNU C library defines this for functions which it implements
5338 to always fail with ENOSYS. Some functions are actually named
5339 something starting with __ and the normal name is an alias. */
5340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5348 if { (eval echo configure
:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5350 eval "ac_cv_func_$ac_func=yes"
5352 echo "configure: failed program was:" >&5
5353 cat conftest.
$ac_ext >&5
5355 eval "ac_cv_func_$ac_func=no"
5360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5363 cat >> confdefs.h
<<EOF
5364 #define $ac_tr_func 1
5368 echo "$ac_t""no" 1>&6
5372 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5375 echo "configure:5376: checking for $ac_func" >&5
5376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.
$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 /* System header to define __stub macros and hopefully few prototypes,
5383 which can conflict with char $ac_func(); below. */
5385 /* Override any gcc2 internal prototype to avoid an error. */
5386 /* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5392 /* The GNU C library defines this for functions which it implements
5393 to always fail with ENOSYS. Some functions are actually named
5394 something starting with __ and the normal name is an alias. */
5395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5403 if { (eval echo configure
:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5405 eval "ac_cv_func_$ac_func=yes"
5407 echo "configure: failed program was:" >&5
5408 cat conftest.
$ac_ext >&5
5410 eval "ac_cv_func_$ac_func=no"
5415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5416 echo "$ac_t""yes" 1>&6
5417 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5418 cat >> confdefs.h
<<EOF
5419 #define $ac_tr_func 1
5423 echo "$ac_t""no" 1>&6
5427 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5430 echo "configure:5431: checking for $ac_func" >&5
5431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 cat > conftest.
$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 /* System header to define __stub macros and hopefully few prototypes,
5438 which can conflict with char $ac_func(); below. */
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5447 /* The GNU C library defines this for functions which it implements
5448 to always fail with ENOSYS. Some functions are actually named
5449 something starting with __ and the normal name is an alias. */
5450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5458 if { (eval echo configure
:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5460 eval "ac_cv_func_$ac_func=yes"
5462 echo "configure: failed program was:" >&5
5463 cat conftest.
$ac_ext >&5
5465 eval "ac_cv_func_$ac_func=no"
5470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5471 echo "$ac_t""yes" 1>&6
5472 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5473 cat >> confdefs.h
<<EOF
5474 #define $ac_tr_func 1
5478 echo "$ac_t""no" 1>&6
5482 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5485 echo "configure:5486: checking for $ac_func" >&5
5486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5489 cat > conftest.
$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 /* System header to define __stub macros and hopefully few prototypes,
5493 which can conflict with char $ac_func(); below. */
5495 /* Override any gcc2 internal prototype to avoid an error. */
5496 /* We use char because int might match the return type of a gcc2
5497 builtin and then its argument prototype would still apply. */
5502 /* The GNU C library defines this for functions which it implements
5503 to always fail with ENOSYS. Some functions are actually named
5504 something starting with __ and the normal name is an alias. */
5505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5513 if { (eval echo configure
:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5515 eval "ac_cv_func_$ac_func=yes"
5517 echo "configure: failed program was:" >&5
5518 cat conftest.
$ac_ext >&5
5520 eval "ac_cv_func_$ac_func=no"
5525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5527 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5528 cat >> confdefs.h
<<EOF
5529 #define $ac_tr_func 1
5533 echo "$ac_t""no" 1>&6
5537 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5540 echo "configure:5541: checking for $ac_func" >&5
5541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5542 echo $ac_n "(cached) $ac_c" 1>&6
5544 cat > conftest.
$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5547 /* System header to define __stub macros and hopefully few prototypes,
5548 which can conflict with char $ac_func(); below. */
5550 /* Override any gcc2 internal prototype to avoid an error. */
5551 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */
5557 /* The GNU C library defines this for functions which it implements
5558 to always fail with ENOSYS. Some functions are actually named
5559 something starting with __ and the normal name is an alias. */
5560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5568 if { (eval echo configure
:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5570 eval "ac_cv_func_$ac_func=yes"
5572 echo "configure: failed program was:" >&5
5573 cat conftest.
$ac_ext >&5
5575 eval "ac_cv_func_$ac_func=no"
5580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5582 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5583 cat >> confdefs.h
<<EOF
5584 #define $ac_tr_func 1
5588 echo "$ac_t""no" 1>&6
5592 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5595 echo "configure:5596: checking for $ac_func" >&5
5596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 cat > conftest.
$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 /* System header to define __stub macros and hopefully few prototypes,
5603 which can conflict with char $ac_func(); below. */
5605 /* Override any gcc2 internal prototype to avoid an error. */
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5612 /* The GNU C library defines this for functions which it implements
5613 to always fail with ENOSYS. Some functions are actually named
5614 something starting with __ and the normal name is an alias. */
5615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5623 if { (eval echo configure
:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5625 eval "ac_cv_func_$ac_func=yes"
5627 echo "configure: failed program was:" >&5
5628 cat conftest.
$ac_ext >&5
5630 eval "ac_cv_func_$ac_func=no"
5635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5638 cat >> confdefs.h
<<EOF
5639 #define $ac_tr_func 1
5643 echo "$ac_t""no" 1>&6
5647 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5650 echo "configure:5651: checking for $ac_func" >&5
5651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 cat > conftest.
$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* System header to define __stub macros and hopefully few prototypes,
5658 which can conflict with char $ac_func(); below. */
5660 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5667 /* The GNU C library defines this for functions which it implements
5668 to always fail with ENOSYS. Some functions are actually named
5669 something starting with __ and the normal name is an alias. */
5670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5678 if { (eval echo configure
:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5680 eval "ac_cv_func_$ac_func=yes"
5682 echo "configure: failed program was:" >&5
5683 cat conftest.
$ac_ext >&5
5685 eval "ac_cv_func_$ac_func=no"
5690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5691 echo "$ac_t""yes" 1>&6
5692 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5693 cat >> confdefs.h
<<EOF
5694 #define $ac_tr_func 1
5698 echo "$ac_t""no" 1>&6
5702 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5705 echo "configure:5706: checking for $ac_func" >&5
5706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 cat > conftest.
$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5712 /* System header to define __stub macros and hopefully few prototypes,
5713 which can conflict with char $ac_func(); below. */
5715 /* Override any gcc2 internal prototype to avoid an error. */
5716 /* We use char because int might match the return type of a gcc2
5717 builtin and then its argument prototype would still apply. */
5722 /* The GNU C library defines this for functions which it implements
5723 to always fail with ENOSYS. Some functions are actually named
5724 something starting with __ and the normal name is an alias. */
5725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5733 if { (eval echo configure
:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5735 eval "ac_cv_func_$ac_func=yes"
5737 echo "configure: failed program was:" >&5
5738 cat conftest.
$ac_ext >&5
5740 eval "ac_cv_func_$ac_func=no"
5745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5747 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5748 cat >> confdefs.h
<<EOF
5749 #define $ac_tr_func 1
5753 echo "$ac_t""no" 1>&6
5757 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5760 echo "configure:5761: checking for $ac_func" >&5
5761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5764 cat > conftest.
$ac_ext <<EOF
5765 #line 5766 "configure"
5766 #include "confdefs.h"
5767 /* System header to define __stub macros and hopefully few prototypes,
5768 which can conflict with char $ac_func(); below. */
5770 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5777 /* The GNU C library defines this for functions which it implements
5778 to always fail with ENOSYS. Some functions are actually named
5779 something starting with __ and the normal name is an alias. */
5780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5788 if { (eval echo configure
:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5790 eval "ac_cv_func_$ac_func=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.
$ac_ext >&5
5795 eval "ac_cv_func_$ac_func=no"
5800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5803 cat >> confdefs.h
<<EOF
5804 #define $ac_tr_func 1
5808 echo "$ac_t""no" 1>&6
5812 for ac_func
in syslog vsyslog
5814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5815 echo "configure:5816: checking for $ac_func" >&5
5816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5817 echo $ac_n "(cached) $ac_c" 1>&6
5819 cat > conftest.
$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func(); below. */
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 /* We use char because int might match the return type of a gcc2
5827 builtin and then its argument prototype would still apply. */
5832 /* The GNU C library defines this for functions which it implements
5833 to always fail with ENOSYS. Some functions are actually named
5834 something starting with __ and the normal name is an alias. */
5835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5843 if { (eval echo configure
:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5845 eval "ac_cv_func_$ac_func=yes"
5847 echo "configure: failed program was:" >&5
5848 cat conftest.
$ac_ext >&5
5850 eval "ac_cv_func_$ac_func=no"
5855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5856 echo "$ac_t""yes" 1>&6
5857 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5858 cat >> confdefs.h
<<EOF
5859 #define $ac_tr_func 1
5863 echo "$ac_t""no" 1>&6
5868 # syscall() is needed for smbwrapper.
5869 for ac_func
in syscall
5871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5872 echo "configure:5873: checking for $ac_func" >&5
5873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5876 cat > conftest.
$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5879 /* System header to define __stub macros and hopefully few prototypes,
5880 which can conflict with char $ac_func(); below. */
5882 /* Override any gcc2 internal prototype to avoid an error. */
5883 /* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */
5889 /* The GNU C library defines this for functions which it implements
5890 to always fail with ENOSYS. Some functions are actually named
5891 something starting with __ and the normal name is an alias. */
5892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5900 if { (eval echo configure
:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5902 eval "ac_cv_func_$ac_func=yes"
5904 echo "configure: failed program was:" >&5
5905 cat conftest.
$ac_ext >&5
5907 eval "ac_cv_func_$ac_func=no"
5912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5913 echo "$ac_t""yes" 1>&6
5914 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5915 cat >> confdefs.h
<<EOF
5916 #define $ac_tr_func 1
5920 echo "$ac_t""no" 1>&6
5925 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5928 echo "configure:5929: checking for $ac_func" >&5
5929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5932 cat > conftest.
$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 /* System header to define __stub macros and hopefully few prototypes,
5936 which can conflict with char $ac_func(); below. */
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 /* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5945 /* The GNU C library defines this for functions which it implements
5946 to always fail with ENOSYS. Some functions are actually named
5947 something starting with __ and the normal name is an alias. */
5948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5956 if { (eval echo configure
:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5958 eval "ac_cv_func_$ac_func=yes"
5960 echo "configure: failed program was:" >&5
5961 cat conftest.
$ac_ext >&5
5963 eval "ac_cv_func_$ac_func=no"
5968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5969 echo "$ac_t""yes" 1>&6
5970 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5971 cat >> confdefs.h
<<EOF
5972 #define $ac_tr_func 1
5976 echo "$ac_t""no" 1>&6
5980 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5983 echo "configure:5984: checking for $ac_func" >&5
5984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5987 cat > conftest.
$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 /* System header to define __stub macros and hopefully few prototypes,
5991 which can conflict with char $ac_func(); below. */
5993 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
6000 /* The GNU C library defines this for functions which it implements
6001 to always fail with ENOSYS. Some functions are actually named
6002 something starting with __ and the normal name is an alias. */
6003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6011 if { (eval echo configure
:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6013 eval "ac_cv_func_$ac_func=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.
$ac_ext >&5
6018 eval "ac_cv_func_$ac_func=no"
6023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6024 echo "$ac_t""yes" 1>&6
6025 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6026 cat >> confdefs.h
<<EOF
6027 #define $ac_tr_func 1
6031 echo "$ac_t""no" 1>&6
6035 for ac_func
in __getcwd _getcwd
6037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6038 echo "configure:6039: checking for $ac_func" >&5
6039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 cat > conftest.
$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 /* System header to define __stub macros and hopefully few prototypes,
6046 which can conflict with char $ac_func(); below. */
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6055 /* The GNU C library defines this for functions which it implements
6056 to always fail with ENOSYS. Some functions are actually named
6057 something starting with __ and the normal name is an alias. */
6058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6066 if { (eval echo configure
:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6068 eval "ac_cv_func_$ac_func=yes"
6070 echo "configure: failed program was:" >&5
6071 cat conftest.
$ac_ext >&5
6073 eval "ac_cv_func_$ac_func=no"
6078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6081 cat >> confdefs.h
<<EOF
6082 #define $ac_tr_func 1
6086 echo "$ac_t""no" 1>&6
6090 for ac_func
in __xstat __fxstat __lxstat
6092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6093 echo "configure:6094: checking for $ac_func" >&5
6094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6097 cat > conftest.
$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char $ac_func(); below. */
6103 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6110 /* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6121 if { (eval echo configure
:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6123 eval "ac_cv_func_$ac_func=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.
$ac_ext >&5
6128 eval "ac_cv_func_$ac_func=no"
6133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6136 cat >> confdefs.h
<<EOF
6137 #define $ac_tr_func 1
6141 echo "$ac_t""no" 1>&6
6145 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6148 echo "configure:6149: checking for $ac_func" >&5
6149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6152 cat > conftest.
$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 /* System header to define __stub macros and hopefully few prototypes,
6156 which can conflict with char $ac_func(); below. */
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6165 /* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
6168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6176 if { (eval echo configure
:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6178 eval "ac_cv_func_$ac_func=yes"
6180 echo "configure: failed program was:" >&5
6181 cat conftest.
$ac_ext >&5
6183 eval "ac_cv_func_$ac_func=no"
6188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6191 cat >> confdefs.h
<<EOF
6192 #define $ac_tr_func 1
6196 echo "$ac_t""no" 1>&6
6200 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6203 echo "configure:6204: checking for $ac_func" >&5
6204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6207 cat > conftest.
$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func(); below. */
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6220 /* The GNU C library defines this for functions which it implements
6221 to always fail with ENOSYS. Some functions are actually named
6222 something starting with __ and the normal name is an alias. */
6223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6231 if { (eval echo configure
:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6233 eval "ac_cv_func_$ac_func=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.
$ac_ext >&5
6238 eval "ac_cv_func_$ac_func=no"
6243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6246 cat >> confdefs.h
<<EOF
6247 #define $ac_tr_func 1
6251 echo "$ac_t""no" 1>&6
6255 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6262 cat > conftest.
$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6286 if { (eval echo configure
:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6288 eval "ac_cv_func_$ac_func=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.
$ac_ext >&5
6293 eval "ac_cv_func_$ac_func=no"
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h
<<EOF
6302 #define $ac_tr_func 1
6306 echo "$ac_t""no" 1>&6
6310 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6313 echo "configure:6314: checking for $ac_func" >&5
6314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6317 cat > conftest.
$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 /* System header to define __stub macros and hopefully few prototypes,
6321 which can conflict with char $ac_func(); below. */
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */
6330 /* The GNU C library defines this for functions which it implements
6331 to always fail with ENOSYS. Some functions are actually named
6332 something starting with __ and the normal name is an alias. */
6333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6341 if { (eval echo configure
:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6343 eval "ac_cv_func_$ac_func=yes"
6345 echo "configure: failed program was:" >&5
6346 cat conftest.
$ac_ext >&5
6348 eval "ac_cv_func_$ac_func=no"
6353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6354 echo "$ac_t""yes" 1>&6
6355 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6356 cat >> confdefs.h
<<EOF
6357 #define $ac_tr_func 1
6361 echo "$ac_t""no" 1>&6
6365 for ac_func
in _write __write _fork __fork
6367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6368 echo "configure:6369: checking for $ac_func" >&5
6369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6372 cat > conftest.
$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 /* System header to define __stub macros and hopefully few prototypes,
6376 which can conflict with char $ac_func(); below. */
6378 /* Override any gcc2 internal prototype to avoid an error. */
6379 /* We use char because int might match the return type of a gcc2
6380 builtin and then its argument prototype would still apply. */
6385 /* The GNU C library defines this for functions which it implements
6386 to always fail with ENOSYS. Some functions are actually named
6387 something starting with __ and the normal name is an alias. */
6388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6396 if { (eval echo configure
:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6398 eval "ac_cv_func_$ac_func=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.
$ac_ext >&5
6403 eval "ac_cv_func_$ac_func=no"
6408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6409 echo "$ac_t""yes" 1>&6
6410 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6411 cat >> confdefs.h
<<EOF
6412 #define $ac_tr_func 1
6416 echo "$ac_t""no" 1>&6
6420 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6423 echo "configure:6424: checking for $ac_func" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 cat > conftest.
$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* System header to define __stub macros and hopefully few prototypes,
6431 which can conflict with char $ac_func(); below. */
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6451 if { (eval echo configure
:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6453 eval "ac_cv_func_$ac_func=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.
$ac_ext >&5
6458 eval "ac_cv_func_$ac_func=no"
6463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6466 cat >> confdefs.h
<<EOF
6467 #define $ac_tr_func 1
6471 echo "$ac_t""no" 1>&6
6475 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6478 echo "configure:6479: checking for $ac_func" >&5
6479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 cat > conftest.
$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* System header to define __stub macros and hopefully few prototypes,
6486 which can conflict with char $ac_func(); below. */
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6495 /* The GNU C library defines this for functions which it implements
6496 to always fail with ENOSYS. Some functions are actually named
6497 something starting with __ and the normal name is an alias. */
6498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6506 if { (eval echo configure
:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6508 eval "ac_cv_func_$ac_func=yes"
6510 echo "configure: failed program was:" >&5
6511 cat conftest.
$ac_ext >&5
6513 eval "ac_cv_func_$ac_func=no"
6518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6521 cat >> confdefs.h
<<EOF
6522 #define $ac_tr_func 1
6526 echo "$ac_t""no" 1>&6
6530 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6533 echo "configure:6534: checking for $ac_func" >&5
6534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6535 echo $ac_n "(cached) $ac_c" 1>&6
6537 cat > conftest.
$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 /* System header to define __stub macros and hopefully few prototypes,
6541 which can conflict with char $ac_func(); below. */
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6550 /* The GNU C library defines this for functions which it implements
6551 to always fail with ENOSYS. Some functions are actually named
6552 something starting with __ and the normal name is an alias. */
6553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6561 if { (eval echo configure
:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6563 eval "ac_cv_func_$ac_func=yes"
6565 echo "configure: failed program was:" >&5
6566 cat conftest.
$ac_ext >&5
6568 eval "ac_cv_func_$ac_func=no"
6573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6574 echo "$ac_t""yes" 1>&6
6575 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6576 cat >> confdefs.h
<<EOF
6577 #define $ac_tr_func 1
6581 echo "$ac_t""no" 1>&6
6585 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6588 echo "configure:6589: checking for $ac_func" >&5
6589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.
$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char $ac_func(); below. */
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6616 if { (eval echo configure
:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6618 eval "ac_cv_func_$ac_func=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.
$ac_ext >&5
6623 eval "ac_cv_func_$ac_func=no"
6628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6631 cat >> confdefs.h
<<EOF
6632 #define $ac_tr_func 1
6636 echo "$ac_t""no" 1>&6
6640 for ac_func
in open64 _open64 __open64 creat64
6642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6643 echo "configure:6644: checking for $ac_func" >&5
6644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 cat > conftest.
$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 /* System header to define __stub macros and hopefully few prototypes,
6651 which can conflict with char $ac_func(); below. */
6653 /* Override any gcc2 internal prototype to avoid an error. */
6654 /* We use char because int might match the return type of a gcc2
6655 builtin and then its argument prototype would still apply. */
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6671 if { (eval echo configure
:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6673 eval "ac_cv_func_$ac_func=yes"
6675 echo "configure: failed program was:" >&5
6676 cat conftest.
$ac_ext >&5
6678 eval "ac_cv_func_$ac_func=no"
6683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6684 echo "$ac_t""yes" 1>&6
6685 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6686 cat >> confdefs.h
<<EOF
6687 #define $ac_tr_func 1
6691 echo "$ac_t""no" 1>&6
6697 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6700 if test x
$ac_cv_func_stat64 = xno
; then
6701 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6702 echo "configure:6703: checking for stat64 in <sys/stat.h>" >&5
6703 cat > conftest.
$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6707 #if defined(HAVE_UNISTD_H)
6710 #include <sys/stat.h>
6713 struct stat64 st64; exit(stat64(".",&st64));
6716 if { (eval echo configure
:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6718 ac_cv_func_stat64
=yes
6720 echo "configure: failed program was:" >&5
6721 cat conftest.
$ac_ext >&5
6724 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6725 if test x
$ac_cv_func_stat64 = xyes
; then
6726 cat >> confdefs.h
<<\EOF
6727 #define HAVE_STAT64 1
6733 if test x
$ac_cv_func_lstat64 = xno
; then
6734 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6735 echo "configure:6736: checking for lstat64 in <sys/stat.h>" >&5
6736 cat > conftest.
$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6740 #if defined(HAVE_UNISTD_H)
6743 #include <sys/stat.h>
6746 struct stat64 st64; exit(lstat64(".",&st64));
6749 if { (eval echo configure
:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6751 ac_cv_func_lstat64
=yes
6753 echo "configure: failed program was:" >&5
6754 cat conftest.
$ac_ext >&5
6757 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6758 if test x
$ac_cv_func_lstat64 = xyes
; then
6759 cat >> confdefs.h
<<\EOF
6760 #define HAVE_LSTAT64 1
6766 if test x
$ac_cv_func_fstat64 = xno
; then
6767 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6768 echo "configure:6769: checking for fstat64 in <sys/stat.h>" >&5
6769 cat > conftest.
$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6773 #if defined(HAVE_UNISTD_H)
6776 #include <sys/stat.h>
6779 struct stat64 st64; exit(fstat64(0,&st64));
6782 if { (eval echo configure
:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6784 ac_cv_func_fstat64
=yes
6786 echo "configure: failed program was:" >&5
6787 cat conftest.
$ac_ext >&5
6790 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6791 if test x
$ac_cv_func_fstat64 = xyes
; then
6792 cat >> confdefs.h
<<\EOF
6793 #define HAVE_FSTAT64 1
6800 # If no strcasecmp, check for it in some known places
6801 # It is in -lresolv on ReliantUNIX and UnixWare
6802 # -lresolve *must* follow -lnsl for name resolution to work properly
6805 if test x
$ac_cv_func_strcasecmp = xno
; then
6806 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6807 echo "configure:6808: checking for strcasecmp in -lresolv" >&5
6808 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6812 ac_save_LIBS
="$LIBS"
6813 LIBS
="-lresolv $LIBS"
6814 cat > conftest.
$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6817 /* Override any gcc2 internal prototype to avoid an error. */
6818 /* We use char because int might match the return type of a gcc2
6819 builtin and then its argument prototype would still apply. */
6826 if { (eval echo configure
:6827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6828 eval "ac_cv_lib_$ac_lib_var=yes"
6830 echo "configure: failed program was:" >&5
6831 cat conftest.
$ac_ext >&5
6833 eval "ac_cv_lib_$ac_lib_var=no"
6836 LIBS
="$ac_save_LIBS"
6839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 LIBS
="$LIBS -lresolv"
6842 cat >> confdefs.h
<<\EOF
6843 #define HAVE_STRCASECMP 1
6847 echo "$ac_t""no" 1>&6
6853 # Check for the functions putprpwnam, set_auth_parameters,
6854 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6855 # Needed for OSF1 and HPUX.
6859 *-lsecurity*) for ac_func
in putprpwnam
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_func" >&5
6863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 cat > conftest.
$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* System header to define __stub macros and hopefully few prototypes,
6870 which can conflict with char $ac_func(); below. */
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6879 /* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6890 if { (eval echo configure
:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6892 eval "ac_cv_func_$ac_func=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.
$ac_ext >&5
6897 eval "ac_cv_func_$ac_func=no"
6902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6905 cat >> confdefs.h
<<EOF
6906 #define $ac_tr_func 1
6910 echo "$ac_t""no" 1>&6
6914 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6915 echo "configure:6916: checking for putprpwnam in -lsecurity" >&5
6916 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6920 ac_save_LIBS
="$LIBS"
6921 LIBS
="-lsecurity $LIBS"
6922 cat > conftest.
$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6934 if { (eval echo configure
:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6936 eval "ac_cv_lib_$ac_lib_var=yes"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.
$ac_ext >&5
6941 eval "ac_cv_lib_$ac_lib_var=no"
6944 LIBS
="$ac_save_LIBS"
6947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6951 cat >> confdefs.h
<<EOF
6952 #define $ac_tr_lib 1
6955 LIBS
="-lsecurity $LIBS"
6958 echo "$ac_t""no" 1>&6
6961 for ac_func
in putprpwnam
6963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6964 echo "configure:6965: checking for $ac_func" >&5
6965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 cat > conftest.
$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6971 /* System header to define __stub macros and hopefully few prototypes,
6972 which can conflict with char $ac_func(); below. */
6974 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
6981 /* The GNU C library defines this for functions which it implements
6982 to always fail with ENOSYS. Some functions are actually named
6983 something starting with __ and the normal name is an alias. */
6984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6992 if { (eval echo configure
:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6994 eval "ac_cv_func_$ac_func=yes"
6996 echo "configure: failed program was:" >&5
6997 cat conftest.
$ac_ext >&5
6999 eval "ac_cv_func_$ac_func=no"
7004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7005 echo "$ac_t""yes" 1>&6
7006 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7007 cat >> confdefs.h
<<EOF
7008 #define $ac_tr_func 1
7012 echo "$ac_t""no" 1>&6
7020 *-lsec*) for ac_func
in putprpwnam
7022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7023 echo "configure:7024: checking for $ac_func" >&5
7024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7027 cat > conftest.
$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* System header to define __stub macros and hopefully few prototypes,
7031 which can conflict with char $ac_func(); below. */
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7040 /* The GNU C library defines this for functions which it implements
7041 to always fail with ENOSYS. Some functions are actually named
7042 something starting with __ and the normal name is an alias. */
7043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7051 if { (eval echo configure
:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7053 eval "ac_cv_func_$ac_func=yes"
7055 echo "configure: failed program was:" >&5
7056 cat conftest.
$ac_ext >&5
7058 eval "ac_cv_func_$ac_func=no"
7063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7064 echo "$ac_t""yes" 1>&6
7065 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7066 cat >> confdefs.h
<<EOF
7067 #define $ac_tr_func 1
7071 echo "$ac_t""no" 1>&6
7075 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7076 echo "configure:7077: checking for putprpwnam in -lsec" >&5
7077 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7081 ac_save_LIBS
="$LIBS"
7083 cat > conftest.
$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7095 if { (eval echo configure
:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7097 eval "ac_cv_lib_$ac_lib_var=yes"
7099 echo "configure: failed program was:" >&5
7100 cat conftest.
$ac_ext >&5
7102 eval "ac_cv_lib_$ac_lib_var=no"
7105 LIBS
="$ac_save_LIBS"
7108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7109 echo "$ac_t""yes" 1>&6
7110 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7112 cat >> confdefs.h
<<EOF
7113 #define $ac_tr_lib 1
7119 echo "$ac_t""no" 1>&6
7122 for ac_func
in putprpwnam
7124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7125 echo "configure:7126: checking for $ac_func" >&5
7126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7129 cat > conftest.
$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7132 /* System header to define __stub macros and hopefully few prototypes,
7133 which can conflict with char $ac_func(); below. */
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7142 /* The GNU C library defines this for functions which it implements
7143 to always fail with ENOSYS. Some functions are actually named
7144 something starting with __ and the normal name is an alias. */
7145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7153 if { (eval echo configure
:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7155 eval "ac_cv_func_$ac_func=yes"
7157 echo "configure: failed program was:" >&5
7158 cat conftest.
$ac_ext >&5
7160 eval "ac_cv_func_$ac_func=no"
7165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7168 cat >> confdefs.h
<<EOF
7169 #define $ac_tr_func 1
7173 echo "$ac_t""no" 1>&6
7182 *-lsecurity*) for ac_func
in set_auth_parameters
7184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7185 echo "configure:7186: checking for $ac_func" >&5
7186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7189 cat > conftest.
$ac_ext <<EOF
7190 #line 7191 "configure"
7191 #include "confdefs.h"
7192 /* System header to define __stub macros and hopefully few prototypes,
7193 which can conflict with char $ac_func(); below. */
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 /* We use char because int might match the return type of a gcc2
7197 builtin and then its argument prototype would still apply. */
7202 /* The GNU C library defines this for functions which it implements
7203 to always fail with ENOSYS. Some functions are actually named
7204 something starting with __ and the normal name is an alias. */
7205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7213 if { (eval echo configure
:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7215 eval "ac_cv_func_$ac_func=yes"
7217 echo "configure: failed program was:" >&5
7218 cat conftest.
$ac_ext >&5
7220 eval "ac_cv_func_$ac_func=no"
7225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7226 echo "$ac_t""yes" 1>&6
7227 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7228 cat >> confdefs.h
<<EOF
7229 #define $ac_tr_func 1
7233 echo "$ac_t""no" 1>&6
7237 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7238 echo "configure:7239: checking for set_auth_parameters in -lsecurity" >&5
7239 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7241 echo $ac_n "(cached) $ac_c" 1>&6
7243 ac_save_LIBS
="$LIBS"
7244 LIBS
="-lsecurity $LIBS"
7245 cat > conftest.
$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7251 char set_auth_parameters();
7254 set_auth_parameters()
7257 if { (eval echo configure
:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7259 eval "ac_cv_lib_$ac_lib_var=yes"
7261 echo "configure: failed program was:" >&5
7262 cat conftest.
$ac_ext >&5
7264 eval "ac_cv_lib_$ac_lib_var=no"
7267 LIBS
="$ac_save_LIBS"
7270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7271 echo "$ac_t""yes" 1>&6
7272 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7274 cat >> confdefs.h
<<EOF
7275 #define $ac_tr_lib 1
7278 LIBS
="-lsecurity $LIBS"
7281 echo "$ac_t""no" 1>&6
7284 for ac_func
in set_auth_parameters
7286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_func" >&5
7288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 cat > conftest.
$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7294 /* System header to define __stub macros and hopefully few prototypes,
7295 which can conflict with char $ac_func(); below. */
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 /* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7304 /* The GNU C library defines this for functions which it implements
7305 to always fail with ENOSYS. Some functions are actually named
7306 something starting with __ and the normal name is an alias. */
7307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7315 if { (eval echo configure
:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7317 eval "ac_cv_func_$ac_func=yes"
7319 echo "configure: failed program was:" >&5
7320 cat conftest.
$ac_ext >&5
7322 eval "ac_cv_func_$ac_func=no"
7327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7329 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7330 cat >> confdefs.h
<<EOF
7331 #define $ac_tr_func 1
7335 echo "$ac_t""no" 1>&6
7343 *-lsec*) for ac_func
in set_auth_parameters
7345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7346 echo "configure:7347: checking for $ac_func" >&5
7347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7350 cat > conftest.
$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* System header to define __stub macros and hopefully few prototypes,
7354 which can conflict with char $ac_func(); below. */
7356 /* Override any gcc2 internal prototype to avoid an error. */
7357 /* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7374 if { (eval echo configure
:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7376 eval "ac_cv_func_$ac_func=yes"
7378 echo "configure: failed program was:" >&5
7379 cat conftest.
$ac_ext >&5
7381 eval "ac_cv_func_$ac_func=no"
7386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7387 echo "$ac_t""yes" 1>&6
7388 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7389 cat >> confdefs.h
<<EOF
7390 #define $ac_tr_func 1
7394 echo "$ac_t""no" 1>&6
7398 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7399 echo "configure:7400: checking for set_auth_parameters in -lsec" >&5
7400 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7404 ac_save_LIBS
="$LIBS"
7406 cat > conftest.
$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7412 char set_auth_parameters();
7415 set_auth_parameters()
7418 if { (eval echo configure
:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7420 eval "ac_cv_lib_$ac_lib_var=yes"
7422 echo "configure: failed program was:" >&5
7423 cat conftest.
$ac_ext >&5
7425 eval "ac_cv_lib_$ac_lib_var=no"
7428 LIBS
="$ac_save_LIBS"
7431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7433 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7435 cat >> confdefs.h
<<EOF
7436 #define $ac_tr_lib 1
7442 echo "$ac_t""no" 1>&6
7445 for ac_func
in set_auth_parameters
7447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_func" >&5
7449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 cat > conftest.
$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 /* System header to define __stub macros and hopefully few prototypes,
7456 which can conflict with char $ac_func(); below. */
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7465 /* The GNU C library defines this for functions which it implements
7466 to always fail with ENOSYS. Some functions are actually named
7467 something starting with __ and the normal name is an alias. */
7468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7476 if { (eval echo configure
:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7478 eval "ac_cv_func_$ac_func=yes"
7480 echo "configure: failed program was:" >&5
7481 cat conftest.
$ac_ext >&5
7483 eval "ac_cv_func_$ac_func=no"
7488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7491 cat >> confdefs.h
<<EOF
7492 #define $ac_tr_func 1
7496 echo "$ac_t""no" 1>&6
7504 # UnixWare 7.x has its getspnam in -lgen
7506 *-lgen*) for ac_func
in getspnam
7508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_func" >&5
7510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7513 cat > conftest.
$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 /* System header to define __stub macros and hopefully few prototypes,
7517 which can conflict with char $ac_func(); below. */
7519 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7537 if { (eval echo configure
:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7539 eval "ac_cv_func_$ac_func=yes"
7541 echo "configure: failed program was:" >&5
7542 cat conftest.
$ac_ext >&5
7544 eval "ac_cv_func_$ac_func=no"
7549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7552 cat >> confdefs.h
<<EOF
7553 #define $ac_tr_func 1
7557 echo "$ac_t""no" 1>&6
7561 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7562 echo "configure:7563: checking for getspnam in -lgen" >&5
7563 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7567 ac_save_LIBS
="$LIBS"
7569 cat > conftest.
$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7581 if { (eval echo configure
:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7583 eval "ac_cv_lib_$ac_lib_var=yes"
7585 echo "configure: failed program was:" >&5
7586 cat conftest.
$ac_ext >&5
7588 eval "ac_cv_lib_$ac_lib_var=no"
7591 LIBS
="$ac_save_LIBS"
7594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7598 cat >> confdefs.h
<<EOF
7599 #define $ac_tr_lib 1
7605 echo "$ac_t""no" 1>&6
7608 for ac_func
in getspnam
7610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7611 echo "configure:7612: checking for $ac_func" >&5
7612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7615 cat > conftest.
$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7618 /* System header to define __stub macros and hopefully few prototypes,
7619 which can conflict with char $ac_func(); below. */
7621 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7628 /* The GNU C library defines this for functions which it implements
7629 to always fail with ENOSYS. Some functions are actually named
7630 something starting with __ and the normal name is an alias. */
7631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7639 if { (eval echo configure
:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7641 eval "ac_cv_func_$ac_func=yes"
7643 echo "configure: failed program was:" >&5
7644 cat conftest.
$ac_ext >&5
7646 eval "ac_cv_func_$ac_func=no"
7651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7652 echo "$ac_t""yes" 1>&6
7653 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7654 cat >> confdefs.h
<<EOF
7655 #define $ac_tr_func 1
7659 echo "$ac_t""no" 1>&6
7668 *-lsecurity*) for ac_func
in getspnam
7670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7671 echo "configure:7672: checking for $ac_func" >&5
7672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 cat > conftest.
$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func(); below. */
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7699 if { (eval echo configure
:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7701 eval "ac_cv_func_$ac_func=yes"
7703 echo "configure: failed program was:" >&5
7704 cat conftest.
$ac_ext >&5
7706 eval "ac_cv_func_$ac_func=no"
7711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7714 cat >> confdefs.h
<<EOF
7715 #define $ac_tr_func 1
7719 echo "$ac_t""no" 1>&6
7723 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7724 echo "configure:7725: checking for getspnam in -lsecurity" >&5
7725 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7729 ac_save_LIBS
="$LIBS"
7730 LIBS
="-lsecurity $LIBS"
7731 cat > conftest.
$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7743 if { (eval echo configure
:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7745 eval "ac_cv_lib_$ac_lib_var=yes"
7747 echo "configure: failed program was:" >&5
7748 cat conftest.
$ac_ext >&5
7750 eval "ac_cv_lib_$ac_lib_var=no"
7753 LIBS
="$ac_save_LIBS"
7756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7757 echo "$ac_t""yes" 1>&6
7758 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7760 cat >> confdefs.h
<<EOF
7761 #define $ac_tr_lib 1
7764 LIBS
="-lsecurity $LIBS"
7767 echo "$ac_t""no" 1>&6
7770 for ac_func
in getspnam
7772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_func" >&5
7774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7777 cat > conftest.
$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* System header to define __stub macros and hopefully few prototypes,
7781 which can conflict with char $ac_func(); below. */
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7790 /* The GNU C library defines this for functions which it implements
7791 to always fail with ENOSYS. Some functions are actually named
7792 something starting with __ and the normal name is an alias. */
7793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7801 if { (eval echo configure
:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7803 eval "ac_cv_func_$ac_func=yes"
7805 echo "configure: failed program was:" >&5
7806 cat conftest.
$ac_ext >&5
7808 eval "ac_cv_func_$ac_func=no"
7813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7814 echo "$ac_t""yes" 1>&6
7815 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7816 cat >> confdefs.h
<<EOF
7817 #define $ac_tr_func 1
7821 echo "$ac_t""no" 1>&6
7829 *-lsec*) for ac_func
in getspnam
7831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7832 echo "configure:7833: checking for $ac_func" >&5
7833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7836 cat > conftest.
$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char $ac_func(); below. */
7842 /* Override any gcc2 internal prototype to avoid an error. */
7843 /* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7849 /* The GNU C library defines this for functions which it implements
7850 to always fail with ENOSYS. Some functions are actually named
7851 something starting with __ and the normal name is an alias. */
7852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7860 if { (eval echo configure
:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7862 eval "ac_cv_func_$ac_func=yes"
7864 echo "configure: failed program was:" >&5
7865 cat conftest.
$ac_ext >&5
7867 eval "ac_cv_func_$ac_func=no"
7872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7875 cat >> confdefs.h
<<EOF
7876 #define $ac_tr_func 1
7880 echo "$ac_t""no" 1>&6
7884 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7885 echo "configure:7886: checking for getspnam in -lsec" >&5
7886 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7890 ac_save_LIBS
="$LIBS"
7892 cat > conftest.
$ac_ext <<EOF
7893 #line 7894 "configure"
7894 #include "confdefs.h"
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7904 if { (eval echo configure
:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7906 eval "ac_cv_lib_$ac_lib_var=yes"
7908 echo "configure: failed program was:" >&5
7909 cat conftest.
$ac_ext >&5
7911 eval "ac_cv_lib_$ac_lib_var=no"
7914 LIBS
="$ac_save_LIBS"
7917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7918 echo "$ac_t""yes" 1>&6
7919 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7920 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7921 cat >> confdefs.h
<<EOF
7922 #define $ac_tr_lib 1
7928 echo "$ac_t""no" 1>&6
7931 for ac_func
in getspnam
7933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7934 echo "configure:7935: checking for $ac_func" >&5
7935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7938 cat > conftest.
$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 /* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char $ac_func(); below. */
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7951 /* The GNU C library defines this for functions which it implements
7952 to always fail with ENOSYS. Some functions are actually named
7953 something starting with __ and the normal name is an alias. */
7954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7962 if { (eval echo configure
:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7964 eval "ac_cv_func_$ac_func=yes"
7966 echo "configure: failed program was:" >&5
7967 cat conftest.
$ac_ext >&5
7969 eval "ac_cv_func_$ac_func=no"
7974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7976 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7977 cat >> confdefs.h
<<EOF
7978 #define $ac_tr_func 1
7982 echo "$ac_t""no" 1>&6
7991 *-lsecurity*) for ac_func
in bigcrypt
7993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7994 echo "configure:7995: checking for $ac_func" >&5
7995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7998 cat > conftest.
$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 /* System header to define __stub macros and hopefully few prototypes,
8002 which can conflict with char $ac_func(); below. */
8004 /* Override any gcc2 internal prototype to avoid an error. */
8005 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8022 if { (eval echo configure
:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8024 eval "ac_cv_func_$ac_func=yes"
8026 echo "configure: failed program was:" >&5
8027 cat conftest.
$ac_ext >&5
8029 eval "ac_cv_func_$ac_func=no"
8034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8035 echo "$ac_t""yes" 1>&6
8036 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8037 cat >> confdefs.h
<<EOF
8038 #define $ac_tr_func 1
8042 echo "$ac_t""no" 1>&6
8046 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8047 echo "configure:8048: checking for bigcrypt in -lsecurity" >&5
8048 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 ac_save_LIBS
="$LIBS"
8053 LIBS
="-lsecurity $LIBS"
8054 cat > conftest.
$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8066 if { (eval echo configure
:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8068 eval "ac_cv_lib_$ac_lib_var=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.
$ac_ext >&5
8073 eval "ac_cv_lib_$ac_lib_var=no"
8076 LIBS
="$ac_save_LIBS"
8079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8082 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8083 cat >> confdefs.h
<<EOF
8084 #define $ac_tr_lib 1
8087 LIBS
="-lsecurity $LIBS"
8090 echo "$ac_t""no" 1>&6
8093 for ac_func
in bigcrypt
8095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8096 echo "configure:8097: checking for $ac_func" >&5
8097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8100 cat > conftest.
$ac_ext <<EOF
8101 #line 8102 "configure"
8102 #include "confdefs.h"
8103 /* System header to define __stub macros and hopefully few prototypes,
8104 which can conflict with char $ac_func(); below. */
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8113 /* The GNU C library defines this for functions which it implements
8114 to always fail with ENOSYS. Some functions are actually named
8115 something starting with __ and the normal name is an alias. */
8116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8124 if { (eval echo configure
:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8126 eval "ac_cv_func_$ac_func=yes"
8128 echo "configure: failed program was:" >&5
8129 cat conftest.
$ac_ext >&5
8131 eval "ac_cv_func_$ac_func=no"
8136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8137 echo "$ac_t""yes" 1>&6
8138 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8139 cat >> confdefs.h
<<EOF
8140 #define $ac_tr_func 1
8144 echo "$ac_t""no" 1>&6
8152 *-lsec*) for ac_func
in bigcrypt
8154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8155 echo "configure:8156: checking for $ac_func" >&5
8156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8159 cat > conftest.
$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char $ac_func(); below. */
8165 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8183 if { (eval echo configure
:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8185 eval "ac_cv_func_$ac_func=yes"
8187 echo "configure: failed program was:" >&5
8188 cat conftest.
$ac_ext >&5
8190 eval "ac_cv_func_$ac_func=no"
8195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8196 echo "$ac_t""yes" 1>&6
8197 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8198 cat >> confdefs.h
<<EOF
8199 #define $ac_tr_func 1
8203 echo "$ac_t""no" 1>&6
8207 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8208 echo "configure:8209: checking for bigcrypt in -lsec" >&5
8209 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8213 ac_save_LIBS
="$LIBS"
8215 cat > conftest.
$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8227 if { (eval echo configure
:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8229 eval "ac_cv_lib_$ac_lib_var=yes"
8231 echo "configure: failed program was:" >&5
8232 cat conftest.
$ac_ext >&5
8234 eval "ac_cv_lib_$ac_lib_var=no"
8237 LIBS
="$ac_save_LIBS"
8240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8241 echo "$ac_t""yes" 1>&6
8242 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8243 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8244 cat >> confdefs.h
<<EOF
8245 #define $ac_tr_lib 1
8251 echo "$ac_t""no" 1>&6
8254 for ac_func
in bigcrypt
8256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_func" >&5
8258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 cat > conftest.
$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char $ac_func(); below. */
8267 /* Override any gcc2 internal prototype to avoid an error. */
8268 /* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8274 /* The GNU C library defines this for functions which it implements
8275 to always fail with ENOSYS. Some functions are actually named
8276 something starting with __ and the normal name is an alias. */
8277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8285 if { (eval echo configure
:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8287 eval "ac_cv_func_$ac_func=yes"
8289 echo "configure: failed program was:" >&5
8290 cat conftest.
$ac_ext >&5
8292 eval "ac_cv_func_$ac_func=no"
8297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8298 echo "$ac_t""yes" 1>&6
8299 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8300 cat >> confdefs.h
<<EOF
8301 #define $ac_tr_func 1
8305 echo "$ac_t""no" 1>&6
8314 *-lsecurity*) for ac_func
in getprpwnam
8316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8317 echo "configure:8318: checking for $ac_func" >&5
8318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 cat > conftest.
$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* System header to define __stub macros and hopefully few prototypes,
8325 which can conflict with char $ac_func(); below. */
8327 /* Override any gcc2 internal prototype to avoid an error. */
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8334 /* The GNU C library defines this for functions which it implements
8335 to always fail with ENOSYS. Some functions are actually named
8336 something starting with __ and the normal name is an alias. */
8337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8345 if { (eval echo configure
:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8347 eval "ac_cv_func_$ac_func=yes"
8349 echo "configure: failed program was:" >&5
8350 cat conftest.
$ac_ext >&5
8352 eval "ac_cv_func_$ac_func=no"
8357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8360 cat >> confdefs.h
<<EOF
8361 #define $ac_tr_func 1
8365 echo "$ac_t""no" 1>&6
8369 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8370 echo "configure:8371: checking for getprpwnam in -lsecurity" >&5
8371 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8375 ac_save_LIBS
="$LIBS"
8376 LIBS
="-lsecurity $LIBS"
8377 cat > conftest.
$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 /* Override any gcc2 internal prototype to avoid an error. */
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8389 if { (eval echo configure
:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8391 eval "ac_cv_lib_$ac_lib_var=yes"
8393 echo "configure: failed program was:" >&5
8394 cat conftest.
$ac_ext >&5
8396 eval "ac_cv_lib_$ac_lib_var=no"
8399 LIBS
="$ac_save_LIBS"
8402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8403 echo "$ac_t""yes" 1>&6
8404 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8406 cat >> confdefs.h
<<EOF
8407 #define $ac_tr_lib 1
8410 LIBS
="-lsecurity $LIBS"
8413 echo "$ac_t""no" 1>&6
8416 for ac_func
in getprpwnam
8418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8419 echo "configure:8420: checking for $ac_func" >&5
8420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8423 cat > conftest.
$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 /* System header to define __stub macros and hopefully few prototypes,
8427 which can conflict with char $ac_func(); below. */
8429 /* Override any gcc2 internal prototype to avoid an error. */
8430 /* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8436 /* The GNU C library defines this for functions which it implements
8437 to always fail with ENOSYS. Some functions are actually named
8438 something starting with __ and the normal name is an alias. */
8439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8447 if { (eval echo configure
:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8449 eval "ac_cv_func_$ac_func=yes"
8451 echo "configure: failed program was:" >&5
8452 cat conftest.
$ac_ext >&5
8454 eval "ac_cv_func_$ac_func=no"
8459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8460 echo "$ac_t""yes" 1>&6
8461 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8462 cat >> confdefs.h
<<EOF
8463 #define $ac_tr_func 1
8467 echo "$ac_t""no" 1>&6
8475 *-lsec*) for ac_func
in getprpwnam
8477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8478 echo "configure:8479: checking for $ac_func" >&5
8479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8480 echo $ac_n "(cached) $ac_c" 1>&6
8482 cat > conftest.
$ac_ext <<EOF
8483 #line 8484 "configure"
8484 #include "confdefs.h"
8485 /* System header to define __stub macros and hopefully few prototypes,
8486 which can conflict with char $ac_func(); below. */
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 /* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8506 if { (eval echo configure
:8507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8508 eval "ac_cv_func_$ac_func=yes"
8510 echo "configure: failed program was:" >&5
8511 cat conftest.
$ac_ext >&5
8513 eval "ac_cv_func_$ac_func=no"
8518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8521 cat >> confdefs.h
<<EOF
8522 #define $ac_tr_func 1
8526 echo "$ac_t""no" 1>&6
8530 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8531 echo "configure:8532: checking for getprpwnam in -lsec" >&5
8532 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8534 echo $ac_n "(cached) $ac_c" 1>&6
8536 ac_save_LIBS
="$LIBS"
8538 cat > conftest.
$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8550 if { (eval echo configure
:8551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8552 eval "ac_cv_lib_$ac_lib_var=yes"
8554 echo "configure: failed program was:" >&5
8555 cat conftest.
$ac_ext >&5
8557 eval "ac_cv_lib_$ac_lib_var=no"
8560 LIBS
="$ac_save_LIBS"
8563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8564 echo "$ac_t""yes" 1>&6
8565 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8567 cat >> confdefs.h
<<EOF
8568 #define $ac_tr_lib 1
8574 echo "$ac_t""no" 1>&6
8577 for ac_func
in getprpwnam
8579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8580 echo "configure:8581: checking for $ac_func" >&5
8581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8584 cat > conftest.
$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 /* System header to define __stub macros and hopefully few prototypes,
8588 which can conflict with char $ac_func(); below. */
8590 /* Override any gcc2 internal prototype to avoid an error. */
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8597 /* The GNU C library defines this for functions which it implements
8598 to always fail with ENOSYS. Some functions are actually named
8599 something starting with __ and the normal name is an alias. */
8600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8608 if { (eval echo configure
:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8610 eval "ac_cv_func_$ac_func=yes"
8612 echo "configure: failed program was:" >&5
8613 cat conftest.
$ac_ext >&5
8615 eval "ac_cv_func_$ac_func=no"
8620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8621 echo "$ac_t""yes" 1>&6
8622 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8623 cat >> confdefs.h
<<EOF
8624 #define $ac_tr_func 1
8628 echo "$ac_t""no" 1>&6
8636 # this bit needs to be modified for each OS that is suported by
8637 # smbwrapper. You need to specify how to created a shared library and
8638 # how to compile C code to produce PIC object files
8640 # these are the defaults, good for lots of systems
8648 # Assume non-shared by default and override below
8650 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8651 echo "configure:8652: checking ability to build shared libraries" >&5
8653 # and these are for particular systems
8655 *linux
*) cat >> confdefs.h
<<\EOF
8661 DYNEXP
="-Wl,--export-dynamic"
8663 SONAMEFLAG
="-Wl,-soname="
8664 cat >> confdefs.h
<<\EOF
8665 #define STAT_ST_BLOCKSIZE 512
8669 *solaris
*) cat >> confdefs.h
<<\EOF
8676 if test "${GCC}" = "yes"; then
8681 ## ${CFLAGS} added for building 64-bit shared
8682 ## libs using Sun's Compiler
8683 LDSHFLAGS
="-G \${CFLAGS}"
8687 cat >> confdefs.h
<<\EOF
8688 #define STAT_ST_BLOCKSIZE 512
8692 *sunos
*) cat >> confdefs.h
<<\EOF
8698 SONAMEFLAG
="-Wl,-h,"
8699 PICFLAG
="-KPIC" # Is this correct for SunOS
8701 *bsd
*) BLDSHARED
="true"
8703 DYNEXP
="-Wl,-Bdynamic"
8704 SONAMEFLAG
="-Wl,-soname,"
8706 cat >> confdefs.h
<<\EOF
8707 #define STAT_ST_BLOCKSIZE 512
8711 *irix
*) cat >> confdefs.h
<<\EOF
8716 *irix6
*) cat >> confdefs.h
<<\EOF
8722 ATTEMPT_WRAP32_BUILD
=yes
8724 LDSHFLAGS
="-set_version sgi1.0 -shared"
8725 SONAMEFLAG
="-soname "
8727 if test "${GCC}" = "yes"; then
8732 cat >> confdefs.h
<<\EOF
8733 #define STAT_ST_BLOCKSIZE 512
8737 *aix
*) cat >> confdefs.h
<<\EOF
8742 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8743 DYNEXP
="-Wl,-brtl,-bexpall"
8744 if test "${GCC}" = "yes"; then
8747 PICFLAG
="-O2 -qmaxmem=6000"
8748 ## for funky AIX compiler using strncpy()
8749 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8752 cat >> confdefs.h
<<\EOF
8753 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8757 *hpux
*) cat >> confdefs.h
<<\EOF
8762 # Use special PIC flags for the native HP-UX compiler.
8763 if test $ac_cv_prog_cc_Ae = yes; then
8766 LDSHFLAGS
="-B symbolic -b -z"
8771 cat >> confdefs.h
<<\EOF
8772 #define STAT_ST_BLOCKSIZE 8192
8776 *qnx
*) cat >> confdefs.h
<<\EOF
8780 *osf
*) cat >> confdefs.h
<<\EOF
8786 SONAMEFLAG
="-Wl,-soname,"
8789 *sco
*) cat >> confdefs.h
<<\EOF
8793 *unixware
*) cat >> confdefs.h
<<\EOF
8799 SONAMEFLAG
="-Wl,-soname,"
8802 *next2
*) cat >> confdefs.h
<<\EOF
8806 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8807 set dummy
groff; ac_word
=$2
8808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8809 echo "configure:8810: checking for $ac_word" >&5
8810 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8813 if test -n "$ROFF"; then
8814 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8816 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8818 for ac_dir
in $ac_dummy; do
8819 test -z "$ac_dir" && ac_dir
=.
8820 if test -f $ac_dir/$ac_word; then
8821 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8828 ROFF
="$ac_cv_prog_ROFF"
8829 if test -n "$ROFF"; then
8830 echo "$ac_t""$ROFF" 1>&6
8832 echo "$ac_t""no" 1>&6
8837 *-univel-*) if test "$GCC" != yes ; then
8838 cat >> confdefs.h
<<\EOF
8839 #define HAVE_MEMSET 1
8846 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8847 #define RELIANTUNIX 1
8853 if test "$GCC" != yes ; then
8854 cat >> confdefs.h
<<\EOF
8855 #define HAVE_MEMSET 1
8863 echo "$ac_t""$BLDSHARED" 1>&6
8864 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8865 echo "configure:8866: checking linker flags for shared libraries" >&5
8866 echo "$ac_t""$LDSHFLAGS" 1>&6
8867 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8868 echo "configure:8869: checking compiler flags for position-independent code" >&5
8869 echo "$ac_t""$PICFLAGS" 1>&6
8871 # try to work out how to produce pic code with this compiler
8872 if test x
$PICFLAG = x
; then
8873 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8874 echo "configure:8875: checking whether ${CC-cc} accepts -fpic" >&5
8875 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8876 echo $ac_n "(cached) $ac_c" 1>&6
8878 echo 'void f(){}' > conftest.c
8879 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8880 ac_cv_prog_cc_fpic
=yes
8882 ac_cv_prog_cc_fpic
=no
8888 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8889 if test $ac_cv_prog_cc_fpic = yes; then
8893 if test x
$PICFLAG = x
; then
8894 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8895 echo "configure:8896: checking whether ${CC-cc} accepts -KPIC" >&5
8896 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8899 echo 'void f(){}' > conftest.c
8900 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8901 ac_cv_prog_cc_KPIC
=yes
8903 ac_cv_prog_cc_KPIC
=no
8909 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8910 if test $ac_cv_prog_cc_KPIC = yes; then
8914 if test x
$PICFLAG = x
; then
8915 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8916 echo "configure:8917: checking whether ${CC-cc} accepts -Kpic" >&5
8917 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8920 echo 'void f(){}' > conftest.c
8921 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8922 ac_cv_prog_cc_Kpic
=yes
8924 ac_cv_prog_cc_Kpic
=no
8930 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8931 if test $ac_cv_prog_cc_Kpic = yes; then
8938 echo $ac_n "checking for long long""... $ac_c" 1>&6
8939 echo "configure:8940: checking for long long" >&5
8940 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8944 if test "$cross_compiling" = yes; then
8945 samba_cv_have_longlong
=cross
8947 cat > conftest.
$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8951 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8953 if { (eval echo configure
:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8955 samba_cv_have_longlong
=yes
8957 echo "configure: failed program was:" >&5
8958 cat conftest.
$ac_ext >&5
8960 samba_cv_have_longlong
=no
8967 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8968 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8969 cat >> confdefs.h
<<\EOF
8970 #define HAVE_LONGLONG 1
8976 # Check if the compiler supports the LL prefix on long long integers.
8979 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8980 echo "configure:8981: checking for LL suffix on long long integers" >&5
8981 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8985 cat > conftest.
$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8990 long long i = 0x8000000000LL
8993 if { (eval echo configure
:8994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8995 samba_cv_compiler_supports_ll
=yes
8997 echo "configure: failed program was:" >&5
8998 cat conftest.
$ac_ext >&5
9000 samba_cv_compiler_supports_ll
=no
9005 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9006 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9007 cat >> confdefs.h
<<\EOF
9008 #define COMPILER_SUPPORTS_LL 1
9014 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9015 echo "configure:9016: checking for 64 bit off_t" >&5
9016 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9020 if test "$cross_compiling" = yes; then
9021 samba_cv_SIZEOF_OFF_T
=cross
9023 cat > conftest.
$ac_ext <<EOF
9024 #line 9025 "configure"
9025 #include "confdefs.h"
9027 #include <sys/stat.h>
9028 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9030 if { (eval echo configure
:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9032 samba_cv_SIZEOF_OFF_T
=yes
9034 echo "configure: failed program was:" >&5
9035 cat conftest.
$ac_ext >&5
9037 samba_cv_SIZEOF_OFF_T
=no
9044 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9045 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9046 cat >> confdefs.h
<<\EOF
9047 #define SIZEOF_OFF_T 8
9052 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9053 echo "configure:9054: checking for off64_t" >&5
9054 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9058 if test "$cross_compiling" = yes; then
9059 samba_cv_HAVE_OFF64_T
=cross
9061 cat > conftest.
$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9065 #if defined(HAVE_UNISTD_H)
9069 #include <sys/stat.h>
9070 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9072 if { (eval echo configure
:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9074 samba_cv_HAVE_OFF64_T
=yes
9076 echo "configure: failed program was:" >&5
9077 cat conftest.
$ac_ext >&5
9079 samba_cv_HAVE_OFF64_T
=no
9086 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9087 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9088 cat >> confdefs.h
<<\EOF
9089 #define HAVE_OFF64_T 1
9094 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9095 echo "configure:9096: checking for 64 bit ino_t" >&5
9096 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9100 if test "$cross_compiling" = yes; then
9101 samba_cv_SIZEOF_INO_T
=cross
9103 cat > conftest.
$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9107 #include <sys/stat.h>
9108 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9110 if { (eval echo configure
:9111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9112 samba_cv_SIZEOF_INO_T
=yes
9114 echo "configure: failed program was:" >&5
9115 cat conftest.
$ac_ext >&5
9117 samba_cv_SIZEOF_INO_T
=no
9124 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9125 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9126 cat >> confdefs.h
<<\EOF
9127 #define SIZEOF_INO_T 8
9132 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9133 echo "configure:9134: checking for ino64_t" >&5
9134 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9135 echo $ac_n "(cached) $ac_c" 1>&6
9138 if test "$cross_compiling" = yes; then
9139 samba_cv_HAVE_INO64_T
=cross
9141 cat > conftest.
$ac_ext <<EOF
9142 #line 9143 "configure"
9143 #include "confdefs.h"
9145 #if defined(HAVE_UNISTD_H)
9149 #include <sys/stat.h>
9150 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9152 if { (eval echo configure
:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9154 samba_cv_HAVE_INO64_T
=yes
9156 echo "configure: failed program was:" >&5
9157 cat conftest.
$ac_ext >&5
9159 samba_cv_HAVE_INO64_T
=no
9166 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9167 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9168 cat >> confdefs.h
<<\EOF
9169 #define HAVE_INO64_T 1
9174 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9175 echo "configure:9176: checking for dev64_t" >&5
9176 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9180 if test "$cross_compiling" = yes; then
9181 samba_cv_HAVE_DEV64_T
=cross
9183 cat > conftest.
$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9187 #if defined(HAVE_UNISTD_H)
9191 #include <sys/stat.h>
9192 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9194 if { (eval echo configure
:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9196 samba_cv_HAVE_DEV64_T
=yes
9198 echo "configure: failed program was:" >&5
9199 cat conftest.
$ac_ext >&5
9201 samba_cv_HAVE_DEV64_T
=no
9208 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9209 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9210 cat >> confdefs.h
<<\EOF
9211 #define HAVE_DEV64_T 1
9216 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9217 echo "configure:9218: checking for struct dirent64" >&5
9218 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9222 cat > conftest.
$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9226 #if defined(HAVE_UNISTD_H)
9229 #include <sys/types.h>
9235 if { (eval echo configure
:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9237 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9239 echo "configure: failed program was:" >&5
9240 cat conftest.
$ac_ext >&5
9242 samba_cv_HAVE_STRUCT_DIRENT64
=no
9247 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9248 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9249 cat >> confdefs.h
<<\EOF
9250 #define HAVE_STRUCT_DIRENT64 1
9255 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9256 echo "configure:9257: checking for major macro" >&5
9257 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9261 if test "$cross_compiling" = yes; then
9262 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9264 cat > conftest.
$ac_ext <<EOF
9265 #line 9266 "configure"
9266 #include "confdefs.h"
9268 #if defined(HAVE_UNISTD_H)
9271 #include <sys/types.h>
9272 main() { dev_t dev; int i = major(dev); return 0; }
9274 if { (eval echo configure
:9275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9276 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9278 echo "configure: failed program was:" >&5
9279 cat conftest.
$ac_ext >&5
9281 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9288 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9289 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9290 cat >> confdefs.h
<<\EOF
9291 #define HAVE_DEVICE_MAJOR_FN 1
9296 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9297 echo "configure:9298: checking for minor macro" >&5
9298 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9299 echo $ac_n "(cached) $ac_c" 1>&6
9302 if test "$cross_compiling" = yes; then
9303 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9305 cat > conftest.
$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9309 #if defined(HAVE_UNISTD_H)
9312 #include <sys/types.h>
9313 main() { dev_t dev; int i = minor(dev); return 0; }
9315 if { (eval echo configure
:9316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9317 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9319 echo "configure: failed program was:" >&5
9320 cat conftest.
$ac_ext >&5
9322 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9329 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9330 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9331 cat >> confdefs.h
<<\EOF
9332 #define HAVE_DEVICE_MINOR_FN 1
9337 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9338 echo "configure:9339: checking for makedev macro" >&5
9339 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9340 echo $ac_n "(cached) $ac_c" 1>&6
9343 if test "$cross_compiling" = yes; then
9344 samba_cv_HAVE_MAKEDEV_FN
=cross
9346 cat > conftest.
$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9350 #if defined(HAVE_UNISTD_H)
9353 #include <sys/types.h>
9354 main() { dev_t dev = makedev(1,2); return 0; }
9356 if { (eval echo configure
:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9358 samba_cv_HAVE_MAKEDEV_FN
=yes
9360 echo "configure: failed program was:" >&5
9361 cat conftest.
$ac_ext >&5
9363 samba_cv_HAVE_MAKEDEV_FN
=no
9370 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9371 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9372 cat >> confdefs.h
<<\EOF
9373 #define MAKEDEV_FN 1
9378 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9379 echo "configure:9380: checking for unsigned char" >&5
9380 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9381 echo $ac_n "(cached) $ac_c" 1>&6
9384 if test "$cross_compiling" = yes; then
9385 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9387 cat > conftest.
$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9391 main() { char c; c=250; exit((c > 0)?0:1); }
9393 if { (eval echo configure
:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9395 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9397 echo "configure: failed program was:" >&5
9398 cat conftest.
$ac_ext >&5
9400 samba_cv_HAVE_UNSIGNED_CHAR
=no
9407 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9408 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9409 cat >> confdefs.h
<<\EOF
9410 #define HAVE_UNSIGNED_CHAR 1
9415 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9416 echo "configure:9417: checking for sin_len in sock" >&5
9417 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9421 cat > conftest.
$ac_ext <<EOF
9422 #line 9423 "configure"
9423 #include "confdefs.h"
9424 #include <sys/types.h>
9425 #include <sys/socket.h>
9426 #include <netinet/in.h>
9428 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9431 if { (eval echo configure
:9432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9433 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9435 echo "configure: failed program was:" >&5
9436 cat conftest.
$ac_ext >&5
9438 samba_cv_HAVE_SOCK_SIN_LEN
=no
9443 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9444 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9445 cat >> confdefs.h
<<\EOF
9446 #define HAVE_SOCK_SIN_LEN 1
9451 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9452 echo "configure:9453: checking whether seekdir returns void" >&5
9453 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9457 cat > conftest.
$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460 #include <sys/types.h>
9462 void seekdir(DIR *d, long loc) { return; }
9467 if { (eval echo configure
:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9469 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.
$ac_ext >&5
9474 samba_cv_SEEKDIR_RETURNS_VOID
=no
9479 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9480 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9481 cat >> confdefs.h
<<\EOF
9482 #define SEEKDIR_RETURNS_VOID 1
9487 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9488 echo "configure:9489: checking for __FILE__ macro" >&5
9489 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9493 cat > conftest.
$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9498 printf("%s\n", __FILE__);
9501 if { (eval echo configure
:9502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9503 samba_cv_HAVE_FILE_MACRO
=yes
9505 echo "configure: failed program was:" >&5
9506 cat conftest.
$ac_ext >&5
9508 samba_cv_HAVE_FILE_MACRO
=no
9513 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9514 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9515 cat >> confdefs.h
<<\EOF
9516 #define HAVE_FILE_MACRO 1
9521 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9522 echo "configure:9523: checking for __FUNCTION__ macro" >&5
9523 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9527 cat > conftest.
$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9532 printf("%s\n", __FUNCTION__);
9535 if { (eval echo configure
:9536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9537 samba_cv_HAVE_FUNCTION_MACRO
=yes
9539 echo "configure: failed program was:" >&5
9540 cat conftest.
$ac_ext >&5
9542 samba_cv_HAVE_FUNCTION_MACRO
=no
9547 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9548 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9549 cat >> confdefs.h
<<\EOF
9550 #define HAVE_FUNCTION_MACRO 1
9555 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9556 echo "configure:9557: checking if gettimeofday takes tz argument" >&5
9557 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9558 echo $ac_n "(cached) $ac_c" 1>&6
9561 if test "$cross_compiling" = yes; then
9562 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9564 cat > conftest.
$ac_ext <<EOF
9565 #line 9566 "configure"
9566 #include "confdefs.h"
9568 #include <sys/time.h>
9570 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9572 if { (eval echo configure
:9573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9574 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9576 echo "configure: failed program was:" >&5
9577 cat conftest.
$ac_ext >&5
9579 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9586 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9587 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9588 cat >> confdefs.h
<<\EOF
9589 #define HAVE_GETTIMEOFDAY_TZ 1
9594 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9595 echo "configure:9596: checking for __va_copy" >&5
9596 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9600 cat > conftest.
$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9609 if { (eval echo configure
:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9611 samba_cv_HAVE_VA_COPY
=yes
9613 echo "configure: failed program was:" >&5
9614 cat conftest.
$ac_ext >&5
9616 samba_cv_HAVE_VA_COPY
=no
9621 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9622 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9623 cat >> confdefs.h
<<\EOF
9624 #define HAVE_VA_COPY 1
9629 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9630 echo "configure:9631: checking for C99 vsnprintf" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9635 if test "$cross_compiling" = yes; then
9636 samba_cv_HAVE_C99_VSNPRINTF
=cross
9638 cat > conftest.
$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9642 #include <sys/types.h>
9644 void foo(const char *format, ...) {
9649 va_start(ap, format);
9650 len = vsnprintf(buf, 0, format, ap);
9652 if (len != 5) exit(1);
9654 va_start(ap, format);
9655 len = vsnprintf(0, 0, format, ap);
9657 if (len != 5) exit(1);
9659 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9663 main() { foo("hello"); }
9666 if { (eval echo configure
:9667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9668 samba_cv_HAVE_C99_VSNPRINTF
=yes
9670 echo "configure: failed program was:" >&5
9671 cat conftest.
$ac_ext >&5
9673 samba_cv_HAVE_C99_VSNPRINTF
=no
9680 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9681 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9682 cat >> confdefs.h
<<\EOF
9683 #define HAVE_C99_VSNPRINTF 1
9688 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9689 echo "configure:9690: checking for broken readdir" >&5
9690 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9694 if test "$cross_compiling" = yes; then
9695 samba_cv_HAVE_BROKEN_READDIR
=cross
9697 cat > conftest.
$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 #include <sys/types.h>
9702 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9703 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9704 di->d_name[0] == 0) exit(0); exit(1);}
9706 if { (eval echo configure
:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9708 samba_cv_HAVE_BROKEN_READDIR
=yes
9710 echo "configure: failed program was:" >&5
9711 cat conftest.
$ac_ext >&5
9713 samba_cv_HAVE_BROKEN_READDIR
=no
9720 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9721 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9722 cat >> confdefs.h
<<\EOF
9723 #define HAVE_BROKEN_READDIR 1
9728 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9729 echo "configure:9730: checking for utimbuf" >&5
9730 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9734 cat > conftest.
$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 #include <sys/types.h>
9740 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9743 if { (eval echo configure
:9744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9745 samba_cv_HAVE_UTIMBUF
=yes
9747 echo "configure: failed program was:" >&5
9748 cat conftest.
$ac_ext >&5
9750 samba_cv_HAVE_UTIMBUF
=no
9755 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9756 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9757 cat >> confdefs.h
<<\EOF
9758 #define HAVE_UTIMBUF 1
9764 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9767 echo "configure:9768: checking for $ac_func" >&5
9768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9771 cat > conftest.
$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9774 /* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char $ac_func(); below. */
9777 /* Override any gcc2 internal prototype to avoid an error. */
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9784 /* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9795 if { (eval echo configure
:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9797 eval "ac_cv_func_$ac_func=yes"
9799 echo "configure: failed program was:" >&5
9800 cat conftest.
$ac_ext >&5
9802 eval "ac_cv_func_$ac_func=no"
9807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9810 cat >> confdefs.h
<<EOF
9811 #define $ac_tr_func 1
9815 echo "$ac_t""no" 1>&6
9820 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9821 echo "configure:9822: checking for ut_name in utmp" >&5
9822 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9826 cat > conftest.
$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9829 #include <sys/types.h>
9832 struct utmp ut; ut.ut_name[0] = 'a';
9835 if { (eval echo configure
:9836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9837 samba_cv_HAVE_UT_UT_NAME
=yes
9839 echo "configure: failed program was:" >&5
9840 cat conftest.
$ac_ext >&5
9842 samba_cv_HAVE_UT_UT_NAME
=no
9847 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9848 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9849 cat >> confdefs.h
<<\EOF
9850 #define HAVE_UT_UT_NAME 1
9855 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9856 echo "configure:9857: checking for ut_user in utmp" >&5
9857 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9858 echo $ac_n "(cached) $ac_c" 1>&6
9861 cat > conftest.
$ac_ext <<EOF
9862 #line 9863 "configure"
9863 #include "confdefs.h"
9864 #include <sys/types.h>
9867 struct utmp ut; ut.ut_user[0] = 'a';
9870 if { (eval echo configure
:9871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9872 samba_cv_HAVE_UT_UT_USER
=yes
9874 echo "configure: failed program was:" >&5
9875 cat conftest.
$ac_ext >&5
9877 samba_cv_HAVE_UT_UT_USER
=no
9882 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9883 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9884 cat >> confdefs.h
<<\EOF
9885 #define HAVE_UT_UT_USER 1
9890 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9891 echo "configure:9892: checking for ut_id in utmp" >&5
9892 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9896 cat > conftest.
$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 #include <sys/types.h>
9902 struct utmp ut; ut.ut_id[0] = 'a';
9905 if { (eval echo configure
:9906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9907 samba_cv_HAVE_UT_UT_ID
=yes
9909 echo "configure: failed program was:" >&5
9910 cat conftest.
$ac_ext >&5
9912 samba_cv_HAVE_UT_UT_ID
=no
9917 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9918 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9919 cat >> confdefs.h
<<\EOF
9920 #define HAVE_UT_UT_ID 1
9925 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9926 echo "configure:9927: checking for ut_host in utmp" >&5
9927 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9928 echo $ac_n "(cached) $ac_c" 1>&6
9931 cat > conftest.
$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 #include <sys/types.h>
9937 struct utmp ut; ut.ut_host[0] = 'a';
9940 if { (eval echo configure
:9941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9942 samba_cv_HAVE_UT_UT_HOST
=yes
9944 echo "configure: failed program was:" >&5
9945 cat conftest.
$ac_ext >&5
9947 samba_cv_HAVE_UT_UT_HOST
=no
9952 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9953 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9954 cat >> confdefs.h
<<\EOF
9955 #define HAVE_UT_UT_HOST 1
9960 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9961 echo "configure:9962: checking for ut_time in utmp" >&5
9962 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9963 echo $ac_n "(cached) $ac_c" 1>&6
9966 cat > conftest.
$ac_ext <<EOF
9967 #line 9968 "configure"
9968 #include "confdefs.h"
9969 #include <sys/types.h>
9972 struct utmp ut; time_t t; ut.ut_time = t;
9975 if { (eval echo configure
:9976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9977 samba_cv_HAVE_UT_UT_TIME
=yes
9979 echo "configure: failed program was:" >&5
9980 cat conftest.
$ac_ext >&5
9982 samba_cv_HAVE_UT_UT_TIME
=no
9987 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9988 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9989 cat >> confdefs.h
<<\EOF
9990 #define HAVE_UT_UT_TIME 1
9995 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9996 echo "configure:9997: checking for ut_tv in utmp" >&5
9997 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9998 echo $ac_n "(cached) $ac_c" 1>&6
10001 cat > conftest.
$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <sys/types.h>
10007 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10010 if { (eval echo configure
:10011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10012 samba_cv_HAVE_UT_UT_TV
=yes
10014 echo "configure: failed program was:" >&5
10015 cat conftest.
$ac_ext >&5
10017 samba_cv_HAVE_UT_UT_TV
=no
10022 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10023 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10024 cat >> confdefs.h
<<\EOF
10025 #define HAVE_UT_UT_TV 1
10030 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10031 echo "configure:10032: checking for ut_type in utmp" >&5
10032 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10033 echo $ac_n "(cached) $ac_c" 1>&6
10036 cat > conftest.
$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 #include <sys/types.h>
10042 struct utmp ut; ut.ut_type = 0;
10045 if { (eval echo configure
:10046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10047 samba_cv_HAVE_UT_UT_TYPE
=yes
10049 echo "configure: failed program was:" >&5
10050 cat conftest.
$ac_ext >&5
10052 samba_cv_HAVE_UT_UT_TYPE
=no
10057 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10058 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10059 cat >> confdefs.h
<<\EOF
10060 #define HAVE_UT_UT_TYPE 1
10065 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10066 echo "configure:10067: checking for ut_pid in utmp" >&5
10067 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10071 cat > conftest.
$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 #include <sys/types.h>
10077 struct utmp ut; ut.ut_pid = 0;
10080 if { (eval echo configure
:10081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10082 samba_cv_HAVE_UT_UT_PID
=yes
10084 echo "configure: failed program was:" >&5
10085 cat conftest.
$ac_ext >&5
10087 samba_cv_HAVE_UT_UT_PID
=no
10092 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10093 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10094 cat >> confdefs.h
<<\EOF
10095 #define HAVE_UT_UT_PID 1
10100 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10101 echo "configure:10102: checking for ut_exit in utmp" >&5
10102 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10103 echo $ac_n "(cached) $ac_c" 1>&6
10106 cat > conftest.
$ac_ext <<EOF
10107 #line 10108 "configure"
10108 #include "confdefs.h"
10109 #include <sys/types.h>
10112 struct utmp ut; ut.ut_exit.e_exit = 0;
10115 if { (eval echo configure
:10116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10117 samba_cv_HAVE_UT_UT_EXIT
=yes
10119 echo "configure: failed program was:" >&5
10120 cat conftest.
$ac_ext >&5
10122 samba_cv_HAVE_UT_UT_EXIT
=no
10127 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10128 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10129 cat >> confdefs.h
<<\EOF
10130 #define HAVE_UT_UT_EXIT 1
10135 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10136 echo "configure:10137: checking for ut_addr in utmp" >&5
10137 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10138 echo $ac_n "(cached) $ac_c" 1>&6
10141 cat > conftest.
$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10144 #include <sys/types.h>
10147 struct utmp ut; ut.ut_addr = 0;
10150 if { (eval echo configure
:10151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10152 samba_cv_HAVE_UT_UT_ADDR
=yes
10154 echo "configure: failed program was:" >&5
10155 cat conftest.
$ac_ext >&5
10157 samba_cv_HAVE_UT_UT_ADDR
=no
10162 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10163 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10164 cat >> confdefs.h
<<\EOF
10165 #define HAVE_UT_UT_ADDR 1
10170 if test x
$ac_cv_func_pututline = xyes
; then
10171 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10172 echo "configure:10173: checking whether pututline returns pointer" >&5
10173 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10177 cat > conftest.
$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 #include <sys/types.h>
10183 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10186 if { (eval echo configure
:10187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10188 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10190 echo "configure: failed program was:" >&5
10191 cat conftest.
$ac_ext >&5
10193 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10198 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10199 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10200 cat >> confdefs.h
<<\EOF
10201 #define PUTUTLINE_RETURNS_UTMP 1
10207 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10208 echo "configure:10209: checking for ut_syslen in utmpx" >&5
10209 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10213 cat > conftest.
$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10216 #include <sys/types.h>
10219 struct utmpx ux; ux.ut_syslen = 0;
10222 if { (eval echo configure
:10223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10224 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10226 echo "configure: failed program was:" >&5
10227 cat conftest.
$ac_ext >&5
10229 samba_cv_HAVE_UX_UT_SYSLEN
=no
10234 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10235 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10236 cat >> confdefs.h
<<\EOF
10237 #define HAVE_UX_UT_SYSLEN 1
10242 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10243 echo "configure:10244: checking for Linux kernel oplocks" >&5
10244 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10248 if test "$cross_compiling" = yes; then
10249 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10251 cat > conftest.
$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10255 #include <sys/types.h>
10258 #define F_GETLEASE 1025
10261 int fd = open("/dev/null", O_RDONLY);
10262 return fcntl(fd, F_GETLEASE, 0) == -1;
10266 if { (eval echo configure
:10267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10268 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10270 echo "configure: failed program was:" >&5
10271 cat conftest.
$ac_ext >&5
10273 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10280 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10281 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10282 cat >> confdefs.h
<<\EOF
10283 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10288 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10289 echo "configure:10290: checking for kernel change notify support" >&5
10290 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10291 echo $ac_n "(cached) $ac_c" 1>&6
10294 if test "$cross_compiling" = yes; then
10295 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10297 cat > conftest.
$ac_ext <<EOF
10298 #line 10299 "configure"
10299 #include "confdefs.h"
10301 #include <sys/types.h>
10303 #include <signal.h>
10305 #define F_NOTIFY 1026
10308 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10312 if { (eval echo configure
:10313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10314 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10316 echo "configure: failed program was:" >&5
10317 cat conftest.
$ac_ext >&5
10319 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10326 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10327 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10328 cat >> confdefs.h
<<\EOF
10329 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10334 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10335 echo "configure:10336: checking for kernel share modes" >&5
10336 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10340 if test "$cross_compiling" = yes; then
10341 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10343 cat > conftest.
$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10347 #include <sys/types.h>
10349 #include <signal.h>
10350 #include <sys/file.h>
10352 #define LOCK_MAND 32
10353 #define LOCK_READ 64
10356 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10360 if { (eval echo configure
:10361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10362 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10364 echo "configure: failed program was:" >&5
10365 cat conftest.
$ac_ext >&5
10367 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10374 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10375 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10376 cat >> confdefs.h
<<\EOF
10377 #define HAVE_KERNEL_SHARE_MODES 1
10385 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10386 echo "configure:10387: checking for IRIX kernel oplock type definitions" >&5
10387 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10388 echo $ac_n "(cached) $ac_c" 1>&6
10391 cat > conftest.
$ac_ext <<EOF
10392 #line 10393 "configure"
10393 #include "confdefs.h"
10394 #include <sys/types.h>
10397 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10400 if { (eval echo configure
:10401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10402 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10404 echo "configure: failed program was:" >&5
10405 cat conftest.
$ac_ext >&5
10407 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10412 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10413 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10414 cat >> confdefs.h
<<\EOF
10415 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10420 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10421 echo "configure:10422: checking for irix specific capabilities" >&5
10422 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10426 if test "$cross_compiling" = yes; then
10427 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10429 cat > conftest.
$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10432 #include <sys/types.h>
10433 #include <sys/capability.h>
10436 if ((cap = cap_get_proc()) == NULL)
10438 cap->cap_effective |= CAP_NETWORK_MGT;
10439 cap->cap_inheritable |= CAP_NETWORK_MGT;
10445 if { (eval echo configure
:10446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10447 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10449 echo "configure: failed program was:" >&5
10450 cat conftest.
$ac_ext >&5
10452 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10459 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10460 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10461 cat >> confdefs.h
<<\EOF
10462 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10468 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10469 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10472 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10473 echo "configure:10474: checking for int16 typedef included by rpc/rpc.h" >&5
10474 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10478 cat > conftest.
$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 #include <sys/types.h>
10482 #if defined(HAVE_RPC_RPC_H)
10483 #include <rpc/rpc.h>
10489 if { (eval echo configure
:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10491 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10493 echo "configure: failed program was:" >&5
10494 cat conftest.
$ac_ext >&5
10496 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10501 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10502 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10503 cat >> confdefs.h
<<\EOF
10504 #define HAVE_INT16_FROM_RPC_RPC_H 1
10509 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10510 echo "configure:10511: checking for uint16 typedef included by rpc/rpc.h" >&5
10511 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10512 echo $ac_n "(cached) $ac_c" 1>&6
10515 cat > conftest.
$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 #include <sys/types.h>
10519 #if defined(HAVE_RPC_RPC_H)
10520 #include <rpc/rpc.h>
10526 if { (eval echo configure
:10527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10528 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10530 echo "configure: failed program was:" >&5
10531 cat conftest.
$ac_ext >&5
10533 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10538 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10539 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10540 cat >> confdefs.h
<<\EOF
10541 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10546 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10547 echo "configure:10548: checking for int32 typedef included by rpc/rpc.h" >&5
10548 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10552 cat > conftest.
$ac_ext <<EOF
10553 #line 10554 "configure"
10554 #include "confdefs.h"
10555 #include <sys/types.h>
10556 #if defined(HAVE_RPC_RPC_H)
10557 #include <rpc/rpc.h>
10563 if { (eval echo configure
:10564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10565 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10567 echo "configure: failed program was:" >&5
10568 cat conftest.
$ac_ext >&5
10570 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10575 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10576 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10577 cat >> confdefs.h
<<\EOF
10578 #define HAVE_INT32_FROM_RPC_RPC_H 1
10583 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10584 echo "configure:10585: checking for uint32 typedef included by rpc/rpc.h" >&5
10585 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10589 cat > conftest.
$ac_ext <<EOF
10590 #line 10591 "configure"
10591 #include "confdefs.h"
10592 #include <sys/types.h>
10593 #if defined(HAVE_RPC_RPC_H)
10594 #include <rpc/rpc.h>
10600 if { (eval echo configure
:10601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10602 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10604 echo "configure: failed program was:" >&5
10605 cat conftest.
$ac_ext >&5
10607 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10612 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10613 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10614 cat >> confdefs.h
<<\EOF
10615 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10621 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10622 echo "configure:10623: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10623 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10627 cat > conftest.
$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include <sys/types.h>
10631 #ifdef HAVE_SYS_SECURITY_H
10632 #include <sys/security.h>
10634 #endif /* HAVE_SYS_SECURITY_H */
10635 #if defined(HAVE_RPC_RPC_H)
10636 #include <rpc/rpc.h>
10642 if { (eval echo configure
:10643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10644 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10646 echo "configure: failed program was:" >&5
10647 cat conftest.
$ac_ext >&5
10649 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10654 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10655 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10656 cat >> confdefs.h
<<\EOF
10657 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10662 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10663 echo "configure:10664: checking for test routines" >&5
10664 if test "$cross_compiling" = yes; then
10665 echo "configure: warning: cannot run when cross-compiling" 1>&2
10667 cat > conftest.
$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 #include "${srcdir-.}/tests/trivial.c"
10672 if { (eval echo configure
:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10674 echo "$ac_t""yes" 1>&6
10676 echo "configure: failed program was:" >&5
10677 cat conftest.
$ac_ext >&5
10679 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10685 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10686 echo "configure:10687: checking for ftruncate extend" >&5
10687 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10691 if test "$cross_compiling" = yes; then
10692 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10694 cat > conftest.
$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10697 #include "${srcdir-.}/tests/ftruncate.c"
10699 if { (eval echo configure
:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10701 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10703 echo "configure: failed program was:" >&5
10704 cat conftest.
$ac_ext >&5
10706 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10713 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10714 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10715 cat >> confdefs.h
<<\EOF
10716 #define HAVE_FTRUNCATE_EXTEND 1
10721 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10722 echo "configure:10723: checking for broken getgroups" >&5
10723 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10727 if test "$cross_compiling" = yes; then
10728 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10730 cat > conftest.
$ac_ext <<EOF
10731 #line 10732 "configure"
10732 #include "confdefs.h"
10733 #include "${srcdir-.}/tests/getgroups.c"
10735 if { (eval echo configure
:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10737 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10739 echo "configure: failed program was:" >&5
10740 cat conftest.
$ac_ext >&5
10742 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10749 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10750 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10751 cat >> confdefs.h
<<\EOF
10752 #define HAVE_BROKEN_GETGROUPS 1
10757 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10758 echo "configure:10759: checking whether getpass should be replaced" >&5
10759 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10763 SAVE_CPPFLAGS
="$CPPFLAGS"
10764 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10765 cat > conftest.
$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10769 #define REPLACE_GETPASS 1
10770 #define NO_CONFIG_H 1
10771 #define main dont_declare_main
10772 #include "${srcdir-.}/lib/getsmbpass.c"
10779 if { (eval echo configure
:10780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10781 samba_cv_REPLACE_GETPASS
=yes
10783 echo "configure: failed program was:" >&5
10784 cat conftest.
$ac_ext >&5
10786 samba_cv_REPLACE_GETPASS
=no
10789 CPPFLAGS
="$SAVE_CPPFLAGS"
10793 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10794 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10795 cat >> confdefs.h
<<\EOF
10796 #define REPLACE_GETPASS 1
10801 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10802 echo "configure:10803: checking for broken inet_ntoa" >&5
10803 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10807 if test "$cross_compiling" = yes; then
10808 samba_cv_REPLACE_INET_NTOA
=cross
10810 cat > conftest.
$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10815 #include <sys/types.h>
10816 #include <netinet/in.h>
10817 #ifdef HAVE_ARPA_INET_H
10818 #include <arpa/inet.h>
10820 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10821 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10822 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10825 if { (eval echo configure
:10826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10827 samba_cv_REPLACE_INET_NTOA
=yes
10829 echo "configure: failed program was:" >&5
10830 cat conftest.
$ac_ext >&5
10832 samba_cv_REPLACE_INET_NTOA
=no
10839 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10840 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10841 cat >> confdefs.h
<<\EOF
10842 #define REPLACE_INET_NTOA 1
10847 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10848 echo "configure:10849: checking for secure mkstemp" >&5
10849 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10853 if test "$cross_compiling" = yes; then
10854 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10856 cat > conftest.
$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10859 #include <stdlib.h>
10860 #include <sys/types.h>
10861 #include <sys/stat.h>
10862 #include <unistd.h>
10865 char tpl[20]="/tmp/test.XXXXXX";
10866 int fd = mkstemp(tpl);
10867 if (fd == -1) exit(1);
10869 if (fstat(fd, &st) != 0) exit(1);
10870 if ((st.st_mode & 0777) != 0600) exit(1);
10874 if { (eval echo configure
:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10876 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10878 echo "configure: failed program was:" >&5
10879 cat conftest.
$ac_ext >&5
10881 samba_cv_HAVE_SECURE_MKSTEMP
=no
10888 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10889 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10890 cat >> confdefs.h
<<\EOF
10891 #define HAVE_SECURE_MKSTEMP 1
10896 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10897 echo "configure:10898: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10898 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10899 echo $ac_n "(cached) $ac_c" 1>&6
10902 if test "$cross_compiling" = yes; then
10903 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10905 cat > conftest.
$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10908 #include <unistd.h>
10909 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10911 if { (eval echo configure
:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10913 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10915 echo "configure: failed program was:" >&5
10916 cat conftest.
$ac_ext >&5
10918 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10925 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10926 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10927 cat >> confdefs.h
<<\EOF
10928 #define SYSCONF_SC_NGROUPS_MAX 1
10933 echo $ac_n "checking for root""... $ac_c" 1>&6
10934 echo "configure:10935: checking for root" >&5
10935 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10939 if test "$cross_compiling" = yes; then
10940 samba_cv_HAVE_ROOT
=cross
10942 cat > conftest.
$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10945 main() { exit(getuid() != 0); }
10947 if { (eval echo configure
:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10949 samba_cv_HAVE_ROOT
=yes
10951 echo "configure: failed program was:" >&5
10952 cat conftest.
$ac_ext >&5
10954 samba_cv_HAVE_ROOT
=no
10961 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10962 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10963 cat >> confdefs.h
<<\EOF
10964 #define HAVE_ROOT 1
10968 echo "configure: warning: running as non-root will disable some tests" 1>&2
10972 # look for a method of finding the list of network interfaces
10974 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10975 echo "configure:10976: checking for iface AIX" >&5
10976 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10980 if test "$cross_compiling" = yes; then
10981 samba_cv_HAVE_IFACE_AIX
=cross
10983 cat > conftest.
$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10987 #define HAVE_IFACE_AIX 1
10988 #define AUTOCONF_TEST 1
10989 #include "confdefs.h"
10990 #include "${srcdir-.}/lib/interfaces.c"
10992 if { (eval echo configure
:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10994 samba_cv_HAVE_IFACE_AIX
=yes
10996 echo "configure: failed program was:" >&5
10997 cat conftest.
$ac_ext >&5
10999 samba_cv_HAVE_IFACE_AIX
=no
11006 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11007 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11008 iface
=yes;cat >> confdefs.h
<<\EOF
11009 #define HAVE_IFACE_AIX 1
11014 if test $iface = no
; then
11015 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11016 echo "configure:11017: checking for iface ifconf" >&5
11017 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11018 echo $ac_n "(cached) $ac_c" 1>&6
11021 if test "$cross_compiling" = yes; then
11022 samba_cv_HAVE_IFACE_IFCONF
=cross
11024 cat > conftest.
$ac_ext <<EOF
11025 #line 11026 "configure"
11026 #include "confdefs.h"
11028 #define HAVE_IFACE_IFCONF 1
11029 #define AUTOCONF_TEST 1
11030 #include "confdefs.h"
11031 #include "${srcdir-.}/lib/interfaces.c"
11033 if { (eval echo configure
:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11035 samba_cv_HAVE_IFACE_IFCONF
=yes
11037 echo "configure: failed program was:" >&5
11038 cat conftest.
$ac_ext >&5
11040 samba_cv_HAVE_IFACE_IFCONF
=no
11047 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11048 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11049 iface
=yes;cat >> confdefs.h
<<\EOF
11050 #define HAVE_IFACE_IFCONF 1
11056 if test $iface = no
; then
11057 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11058 echo "configure:11059: checking for iface ifreq" >&5
11059 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11063 if test "$cross_compiling" = yes; then
11064 samba_cv_HAVE_IFACE_IFREQ
=cross
11066 cat > conftest.
$ac_ext <<EOF
11067 #line 11068 "configure"
11068 #include "confdefs.h"
11070 #define HAVE_IFACE_IFREQ 1
11071 #define AUTOCONF_TEST 1
11072 #include "confdefs.h"
11073 #include "${srcdir-.}/lib/interfaces.c"
11075 if { (eval echo configure
:11076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11077 samba_cv_HAVE_IFACE_IFREQ
=yes
11079 echo "configure: failed program was:" >&5
11080 cat conftest.
$ac_ext >&5
11082 samba_cv_HAVE_IFACE_IFREQ
=no
11089 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11090 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11091 iface
=yes;cat >> confdefs.h
<<\EOF
11092 #define HAVE_IFACE_IFREQ 1
11099 ################################################
11100 # look for a method of setting the effective uid
11102 if test $seteuid = no
; then
11103 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11104 echo "configure:11105: checking for setresuid" >&5
11105 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11109 if test "$cross_compiling" = yes; then
11110 samba_cv_USE_SETRESUID
=cross
11112 cat > conftest.
$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11116 #define AUTOCONF_TEST 1
11117 #define USE_SETRESUID 1
11118 #include "confdefs.h"
11119 #include "${srcdir-.}/lib/util_sec.c"
11121 if { (eval echo configure
:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11123 samba_cv_USE_SETRESUID
=yes
11125 echo "configure: failed program was:" >&5
11126 cat conftest.
$ac_ext >&5
11128 samba_cv_USE_SETRESUID
=no
11135 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11136 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11137 seteuid
=yes;cat >> confdefs.h
<<\EOF
11138 #define USE_SETRESUID 1
11145 if test $seteuid = no
; then
11146 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11147 echo "configure:11148: checking for setreuid" >&5
11148 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11152 if test "$cross_compiling" = yes; then
11153 samba_cv_USE_SETREUID
=cross
11155 cat > conftest.
$ac_ext <<EOF
11156 #line 11157 "configure"
11157 #include "confdefs.h"
11159 #define AUTOCONF_TEST 1
11160 #define USE_SETREUID 1
11161 #include "confdefs.h"
11162 #include "${srcdir-.}/lib/util_sec.c"
11164 if { (eval echo configure
:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11166 samba_cv_USE_SETREUID
=yes
11168 echo "configure: failed program was:" >&5
11169 cat conftest.
$ac_ext >&5
11171 samba_cv_USE_SETREUID
=no
11178 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11179 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11180 seteuid
=yes;cat >> confdefs.h
<<\EOF
11181 #define USE_SETREUID 1
11187 if test $seteuid = no
; then
11188 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11189 echo "configure:11190: checking for seteuid" >&5
11190 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11191 echo $ac_n "(cached) $ac_c" 1>&6
11194 if test "$cross_compiling" = yes; then
11195 samba_cv_USE_SETEUID
=cross
11197 cat > conftest.
$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11201 #define AUTOCONF_TEST 1
11202 #define USE_SETEUID 1
11203 #include "confdefs.h"
11204 #include "${srcdir-.}/lib/util_sec.c"
11206 if { (eval echo configure
:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11208 samba_cv_USE_SETEUID
=yes
11210 echo "configure: failed program was:" >&5
11211 cat conftest.
$ac_ext >&5
11213 samba_cv_USE_SETEUID
=no
11220 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11221 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11222 seteuid
=yes;cat >> confdefs.h
<<\EOF
11223 #define USE_SETEUID 1
11229 if test $seteuid = no
; then
11230 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11231 echo "configure:11232: checking for setuidx" >&5
11232 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11233 echo $ac_n "(cached) $ac_c" 1>&6
11236 if test "$cross_compiling" = yes; then
11237 samba_cv_USE_SETUIDX
=cross
11239 cat > conftest.
$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11243 #define AUTOCONF_TEST 1
11244 #define USE_SETUIDX 1
11245 #include "confdefs.h"
11246 #include "${srcdir-.}/lib/util_sec.c"
11248 if { (eval echo configure
:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11250 samba_cv_USE_SETUIDX
=yes
11252 echo "configure: failed program was:" >&5
11253 cat conftest.
$ac_ext >&5
11255 samba_cv_USE_SETUIDX
=no
11262 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11263 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11264 seteuid
=yes;cat >> confdefs.h
<<\EOF
11265 #define USE_SETUIDX 1
11272 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11273 echo "configure:11274: checking for working mmap" >&5
11274 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11275 echo $ac_n "(cached) $ac_c" 1>&6
11278 if test "$cross_compiling" = yes; then
11279 samba_cv_HAVE_MMAP
=cross
11281 cat > conftest.
$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 #include "${srcdir-.}/tests/shared_mmap.c"
11286 if { (eval echo configure
:11287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11288 samba_cv_HAVE_MMAP
=yes
11290 echo "configure: failed program was:" >&5
11291 cat conftest.
$ac_ext >&5
11293 samba_cv_HAVE_MMAP
=no
11300 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11301 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11302 cat >> confdefs.h
<<\EOF
11303 #define HAVE_MMAP 1
11308 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11309 echo "configure:11310: checking for ftruncate needs root" >&5
11310 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11311 echo $ac_n "(cached) $ac_c" 1>&6
11314 if test "$cross_compiling" = yes; then
11315 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11317 cat > conftest.
$ac_ext <<EOF
11318 #line 11319 "configure"
11319 #include "confdefs.h"
11320 #include "${srcdir-.}/tests/ftruncroot.c"
11322 if { (eval echo configure
:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11324 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11326 echo "configure: failed program was:" >&5
11327 cat conftest.
$ac_ext >&5
11329 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11336 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11337 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11338 cat >> confdefs.h
<<\EOF
11339 #define FTRUNCATE_NEEDS_ROOT 1
11344 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11345 echo "configure:11346: checking for fcntl locking" >&5
11346 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11350 if test "$cross_compiling" = yes; then
11351 samba_cv_HAVE_FCNTL_LOCK
=cross
11353 cat > conftest.
$ac_ext <<EOF
11354 #line 11355 "configure"
11355 #include "confdefs.h"
11356 #include "${srcdir-.}/tests/fcntl_lock.c"
11358 if { (eval echo configure
:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11360 samba_cv_HAVE_FCNTL_LOCK
=yes
11362 echo "configure: failed program was:" >&5
11363 cat conftest.
$ac_ext >&5
11365 samba_cv_HAVE_FCNTL_LOCK
=no
11372 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11373 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11374 cat >> confdefs.h
<<\EOF
11375 #define HAVE_FCNTL_LOCK 1
11380 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11381 echo "configure:11382: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11382 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11386 if test "$cross_compiling" = yes; then
11387 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11389 cat > conftest.
$ac_ext <<EOF
11390 #line 11391 "configure"
11391 #include "confdefs.h"
11392 #include "${srcdir-.}/tests/fcntl_lock64.c"
11394 if { (eval echo configure
:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11396 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11398 echo "configure: failed program was:" >&5
11399 cat conftest.
$ac_ext >&5
11401 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11408 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11409 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11410 cat >> confdefs.h
<<\EOF
11411 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11418 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11419 echo "configure:11420: checking for 64 bit fcntl locking" >&5
11420 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11421 echo $ac_n "(cached) $ac_c" 1>&6
11424 if test "$cross_compiling" = yes; then
11425 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11427 cat > conftest.
$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11431 #if defined(HAVE_UNISTD_H)
11432 #include <unistd.h>
11435 #include <stdlib.h>
11437 #ifdef HAVE_FCNTL_H
11441 #ifdef HAVE_SYS_FCNTL_H
11442 #include <sys/fcntl.h>
11444 main() { struct flock64 fl64;
11445 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11452 if { (eval echo configure
:11453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11454 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11456 echo "configure: failed program was:" >&5
11457 cat conftest.
$ac_ext >&5
11459 samba_cv_HAVE_STRUCT_FLOCK64
=no
11466 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11468 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11469 cat >> confdefs.h
<<\EOF
11470 #define HAVE_STRUCT_FLOCK64 1
11476 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11477 echo "configure:11478: checking for st_blocks in struct stat" >&5
11478 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11479 echo $ac_n "(cached) $ac_c" 1>&6
11482 cat > conftest.
$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11485 #include <sys/types.h>
11486 #include <sys/stat.h>
11487 #include <unistd.h>
11489 struct stat st; st.st_blocks = 0;
11492 if { (eval echo configure
:11493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11494 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11496 echo "configure: failed program was:" >&5
11497 cat conftest.
$ac_ext >&5
11499 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11504 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11505 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11506 cat >> confdefs.h
<<\EOF
11507 #define HAVE_STAT_ST_BLOCKS 1
11514 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11515 echo "configure:11516: checking for broken RedHat 7.2 system header files" >&5
11516 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11517 echo $ac_n "(cached) $ac_c" 1>&6
11520 cat > conftest.
$ac_ext <<EOF
11521 #line 11522 "configure"
11522 #include "confdefs.h"
11524 #ifdef HAVE_SYS_VFS_H
11525 #include <sys/vfs.h>
11527 #ifdef HAVE_SYS_CAPABILITY_H
11528 #include <sys/capability.h>
11535 if { (eval echo configure
:11536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11537 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11539 echo "configure: failed program was:" >&5
11540 cat conftest.
$ac_ext >&5
11542 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11547 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11548 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11549 cat >> confdefs.h
<<\EOF
11550 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11557 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11558 echo "configure:11559: checking for broken nisplus include files" >&5
11559 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11563 cat > conftest.
$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11566 #include <sys/acl.h>
11567 #if defined(HAVE_RPCSVC_NIS_H)
11568 #include <rpcsvc/nis.h>
11574 if { (eval echo configure
:11575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11576 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11578 echo "configure: failed program was:" >&5
11579 cat conftest.
$ac_ext >&5
11581 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11586 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11587 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11588 cat >> confdefs.h
<<\EOF
11589 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11595 #################################################
11596 # check for smbwrapper support
11597 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11598 echo "configure:11599: checking whether to use smbwrapper" >&5
11599 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11600 if test "${with_smbwrapper+set}" = set; then
11601 withval
="$with_smbwrapper"
11604 echo "$ac_t""yes" 1>&6
11605 cat >> confdefs.h
<<\EOF
11606 #define WITH_SMBWRAPPER 1
11609 WRAPPROG
="bin/smbsh"
11610 WRAP
="bin/smbwrapper.$SHLIBEXT"
11612 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11615 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11618 # Conditions under which smbwrapper should not be built.
11620 if test x
$PICFLAG = x
; then
11621 echo No support
for PIC code
- disabling smbwrapper and smbsh
11625 elif test x
$ac_cv_func_syscall = xno
; then
11626 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11633 echo "$ac_t""no" 1>&6
11637 echo "$ac_t""no" 1>&6
11642 #################################################
11643 # check for the AFS filesystem
11644 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11645 echo "configure:11646: checking whether to use AFS" >&5
11646 # Check whether --with-afs or --without-afs was given.
11647 if test "${with_afs+set}" = set; then
11648 withval
="$with_afs"
11651 echo "$ac_t""yes" 1>&6
11652 cat >> confdefs.h
<<\EOF
11658 echo "$ac_t""no" 1>&6
11662 echo "$ac_t""no" 1>&6
11668 #################################################
11669 # check for the DFS auth system
11670 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11671 echo "configure:11672: checking whether to use DCE/DFS auth" >&5
11672 # Check whether --with-dfs or --without-dfs was given.
11673 if test "${with_dfs+set}" = set; then
11674 withval
="$with_dfs"
11677 echo "$ac_t""yes" 1>&6
11678 cat >> confdefs.h
<<\EOF
11684 echo "$ac_t""no" 1>&6
11688 echo "$ac_t""no" 1>&6
11693 #################################################
11694 # check for Kerberos IV auth system
11695 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11696 echo "configure:11697: checking whether to use Kerberos IV" >&5
11697 # Check whether --with-krb4 or --without-krb4 was given.
11698 if test "${with_krb4+set}" = set; then
11699 withval
="$with_krb4"
11702 echo "$ac_t""yes" 1>&6
11703 cat >> confdefs.h
<<\EOF
11704 #define KRB4_AUTH 1
11707 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11708 echo "configure:11709: checking for dn_expand in -lresolv" >&5
11709 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11713 ac_save_LIBS
="$LIBS"
11714 LIBS
="-lresolv $LIBS"
11715 cat > conftest.
$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 /* Override any gcc2 internal prototype to avoid an error. */
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11727 if { (eval echo configure
:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11729 eval "ac_cv_lib_$ac_lib_var=yes"
11731 echo "configure: failed program was:" >&5
11732 cat conftest.
$ac_ext >&5
11734 eval "ac_cv_lib_$ac_lib_var=no"
11737 LIBS
="$ac_save_LIBS"
11740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11741 echo "$ac_t""yes" 1>&6
11742 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11744 cat >> confdefs.h
<<EOF
11745 #define $ac_tr_lib 1
11748 LIBS
="-lresolv $LIBS"
11751 echo "$ac_t""no" 1>&6
11754 LIBS
="$LIBS -lkrb -ldes"
11755 CFLAGS
="$CFLAGS -I$withval/include"
11756 LDFLAGS
="$LDFLAGS -L$withval/lib"
11759 echo "$ac_t""no" 1>&6
11763 echo "$ac_t""no" 1>&6
11768 #################################################
11769 # check for Kerberos 5 auth system
11770 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11771 echo "configure:11772: checking whether to use Kerberos 5" >&5
11772 # Check whether --with-krb5 or --without-krb5 was given.
11773 if test "${with_krb5+set}" = set; then
11774 withval
="$with_krb5"
11777 echo "$ac_t""yes" 1>&6
11778 cat >> confdefs.h
<<\EOF
11779 #define KRB5_AUTH 1
11782 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11783 CFLAGS
="$CFLAGS -I$withval/include"
11784 LDFLAGS
="$LDFLAGS -L$withval/lib"
11787 echo "$ac_t""no" 1>&6
11791 echo "$ac_t""no" 1>&6
11796 #################################################
11797 # check for automount support
11798 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11799 echo "configure:11800: checking whether to use AUTOMOUNT" >&5
11800 # Check whether --with-automount or --without-automount was given.
11801 if test "${with_automount+set}" = set; then
11802 withval
="$with_automount"
11805 echo "$ac_t""yes" 1>&6
11806 cat >> confdefs.h
<<\EOF
11807 #define WITH_AUTOMOUNT 1
11812 echo "$ac_t""no" 1>&6
11816 echo "$ac_t""no" 1>&6
11821 #################################################
11822 # check for smbmount support
11823 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11824 echo "configure:11825: checking whether to use SMBMOUNT" >&5
11825 # Check whether --with-smbmount or --without-smbmount was given.
11826 if test "${with_smbmount+set}" = set; then
11827 withval
="$with_smbmount"
11832 echo "$ac_t""yes" 1>&6
11833 cat >> confdefs.h
<<\EOF
11834 #define WITH_SMBMOUNT 1
11837 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11840 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11845 echo "$ac_t""no" 1>&6
11850 echo "$ac_t""no" 1>&6
11857 #################################################
11858 # check for a PAM password database
11859 with_pam_for_crypt
=no
11860 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11861 echo "configure:11862: checking whether to use PAM password database" >&5
11862 # Check whether --with-pam or --without-pam was given.
11863 if test "${with_pam+set}" = set; then
11864 withval
="$with_pam"
11867 echo "$ac_t""yes" 1>&6
11868 cat >> confdefs.h
<<\EOF
11873 with_pam_for_crypt
=yes
11876 echo "$ac_t""no" 1>&6
11880 echo "$ac_t""no" 1>&6
11885 # we can't build a pam module if we don't have pam.
11886 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11887 echo "configure:11888: checking for pam_get_data in -lpam" >&5
11888 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11890 echo $ac_n "(cached) $ac_c" 1>&6
11892 ac_save_LIBS
="$LIBS"
11894 cat > conftest.
$ac_ext <<EOF
11895 #line 11896 "configure"
11896 #include "confdefs.h"
11897 /* Override any gcc2 internal prototype to avoid an error. */
11898 /* We use char because int might match the return type of a gcc2
11899 builtin and then its argument prototype would still apply. */
11900 char pam_get_data();
11906 if { (eval echo configure
:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11908 eval "ac_cv_lib_$ac_lib_var=yes"
11910 echo "configure: failed program was:" >&5
11911 cat conftest.
$ac_ext >&5
11913 eval "ac_cv_lib_$ac_lib_var=no"
11916 LIBS
="$ac_save_LIBS"
11919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11920 echo "$ac_t""yes" 1>&6
11921 cat >> confdefs.h
<<\EOF
11922 #define HAVE_LIBPAM 1
11926 echo "$ac_t""no" 1>&6
11930 #################################################
11931 # check for pam_smbpass support
11932 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11933 echo "configure:11934: checking whether to use pam_smbpass" >&5
11934 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11935 if test "${with_pam_smbpass+set}" = set; then
11936 withval
="$with_pam_smbpass"
11939 echo "$ac_t""yes" 1>&6
11941 # Conditions under which pam_smbpass should not be built.
11943 if test x
$PICFLAG = x
; then
11944 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11946 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11947 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11950 cat >> confdefs.h
<<\EOF
11951 #define WITH_PAM_SMBPASS 1
11954 PAM_MOD
="bin/pam_smbpass.so"
11958 echo "$ac_t""no" 1>&6
11962 echo "$ac_t""no" 1>&6
11968 ###############################################
11969 # test for where we get crypt() from, but only
11971 if test $with_pam_for_crypt = no
; then
11972 for ac_func
in crypt
11974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11975 echo "configure:11976: checking for $ac_func" >&5
11976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
11979 cat > conftest.
$ac_ext <<EOF
11980 #line 11981 "configure"
11981 #include "confdefs.h"
11982 /* System header to define __stub macros and hopefully few prototypes,
11983 which can conflict with char $ac_func(); below. */
11984 #include <assert.h>
11985 /* Override any gcc2 internal prototype to avoid an error. */
11986 /* We use char because int might match the return type of a gcc2
11987 builtin and then its argument prototype would still apply. */
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12003 if { (eval echo configure
:12004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12005 eval "ac_cv_func_$ac_func=yes"
12007 echo "configure: failed program was:" >&5
12008 cat conftest.
$ac_ext >&5
12010 eval "ac_cv_func_$ac_func=no"
12015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12016 echo "$ac_t""yes" 1>&6
12017 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12018 cat >> confdefs.h
<<EOF
12019 #define $ac_tr_func 1
12023 echo "$ac_t""no" 1>&6
12027 if test x
"$ac_cv_func_crypt" = x
"no"; then
12028 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12029 echo "configure:12030: checking for crypt in -lcrypt" >&5
12030 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12032 echo $ac_n "(cached) $ac_c" 1>&6
12034 ac_save_LIBS
="$LIBS"
12035 LIBS
="-lcrypt $LIBS"
12036 cat > conftest.
$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 /* Override any gcc2 internal prototype to avoid an error. */
12040 /* We use char because int might match the return type of a gcc2
12041 builtin and then its argument prototype would still apply. */
12048 if { (eval echo configure
:12049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12050 eval "ac_cv_lib_$ac_lib_var=yes"
12052 echo "configure: failed program was:" >&5
12053 cat conftest.
$ac_ext >&5
12055 eval "ac_cv_lib_$ac_lib_var=no"
12058 LIBS
="$ac_save_LIBS"
12061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12062 echo "$ac_t""yes" 1>&6
12063 LIBS
="$LIBS -lcrypt";
12064 cat >> confdefs.h
<<\EOF
12065 #define HAVE_CRYPT 1
12069 echo "$ac_t""no" 1>&6
12076 ## moved after the check for -lcrypt in order to
12077 ## ensure that the necessary libraries are included
12078 ## check checking for truncated salt. Wrapped by the
12079 ## $with_pam_for_crypt variable as above --jerry
12081 if test $with_pam_for_crypt = no
; then
12082 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12083 echo "configure:12084: checking for a crypt that needs truncated salt" >&5
12084 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12088 if test "$cross_compiling" = yes; then
12089 samba_cv_HAVE_TRUNCATED_SALT
=cross
12091 cat > conftest.
$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12094 #include "${srcdir-.}/tests/crypttest.c"
12096 if { (eval echo configure
:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12098 samba_cv_HAVE_TRUNCATED_SALT
=no
12100 echo "configure: failed program was:" >&5
12101 cat conftest.
$ac_ext >&5
12103 samba_cv_HAVE_TRUNCATED_SALT
=yes
12110 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12111 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12112 cat >> confdefs.h
<<\EOF
12113 #define HAVE_TRUNCATED_SALT 1
12119 ########################################################################################
12121 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12123 ########################################################################################
12125 ## set the with_smbpasswd_sam as the default
12126 with_smbpasswd_sam
=yes
12130 #################################################
12131 # check for a TDB password database
12132 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12133 echo "configure:12134: checking whether to use TDB SAM database" >&5
12134 # Check whether --with-tdbsam or --without-tdbsam was given.
12135 if test "${with_tdbsam+set}" = set; then
12136 withval
="$with_tdbsam"
12139 echo "$ac_t""yes" 1>&6
12140 cat >> confdefs.h
<<\EOF
12141 #define WITH_TDB_SAM 1
12144 with_smbpasswd_sam
=no
12147 echo "$ac_t""no" 1>&6
12151 echo "$ac_t""no" 1>&6
12156 #################################################
12157 # check for a LDAP password database
12158 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12159 echo "configure:12160: checking whether to use LDAP SAM database" >&5
12160 # Check whether --with-ldapsam or --without-ldapsam was given.
12161 if test "${with_ldapsam+set}" = set; then
12162 withval
="$with_ldapsam"
12165 echo "$ac_t""yes" 1>&6
12166 cat >> confdefs.h
<<\EOF
12167 #define WITH_LDAP_SAM 1
12170 LIBS
="-lldap $LIBS"
12171 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12172 echo "configure:12173: checking for ber_bvfree in -llber" >&5
12173 ac_lib_var
=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12175 echo $ac_n "(cached) $ac_c" 1>&6
12177 ac_save_LIBS
="$LIBS"
12178 LIBS
="-llber $LIBS"
12179 cat > conftest.
$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 /* Override any gcc2 internal prototype to avoid an error. */
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12191 if { (eval echo configure
:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12193 eval "ac_cv_lib_$ac_lib_var=yes"
12195 echo "configure: failed program was:" >&5
12196 cat conftest.
$ac_ext >&5
12198 eval "ac_cv_lib_$ac_lib_var=no"
12201 LIBS
="$ac_save_LIBS"
12204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12205 echo "$ac_t""yes" 1>&6
12206 LIBS
="$LIBS -llber"
12208 echo "$ac_t""no" 1>&6
12211 LIBS
="-lresolv $LIBS"
12212 for ac_func
in ldap_start_tls_s
12214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12215 echo "configure:12216: checking for $ac_func" >&5
12216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12217 echo $ac_n "(cached) $ac_c" 1>&6
12219 cat > conftest.
$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12222 /* System header to define __stub macros and hopefully few prototypes,
12223 which can conflict with char $ac_func(); below. */
12224 #include <assert.h>
12225 /* Override any gcc2 internal prototype to avoid an error. */
12226 /* We use char because int might match the return type of a gcc2
12227 builtin and then its argument prototype would still apply. */
12232 /* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12243 if { (eval echo configure
:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12245 eval "ac_cv_func_$ac_func=yes"
12247 echo "configure: failed program was:" >&5
12248 cat conftest.
$ac_ext >&5
12250 eval "ac_cv_func_$ac_func=no"
12255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12256 echo "$ac_t""yes" 1>&6
12257 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12258 cat >> confdefs.h
<<EOF
12259 #define $ac_tr_func 1
12263 echo "$ac_t""no" 1>&6
12267 with_smbpasswd_sam
=no
12270 echo "$ac_t""no" 1>&6
12274 echo "$ac_t""no" 1>&6
12279 #################################################
12280 # check for a NISPLUS password database
12281 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12282 echo "configure:12283: checking whether to use NISPLUS SAM database" >&5
12283 # Check whether --with-nisplussam or --without-nisplussam was given.
12284 if test "${with_nisplussam+set}" = set; then
12285 withval
="$with_nisplussam"
12288 echo "$ac_t""yes" 1>&6
12289 cat >> confdefs.h
<<\EOF
12290 #define WITH_NISPLUS_SAM 1
12293 with_smbpasswd_sam
=no
12296 echo "$ac_t""no" 1>&6
12300 echo "$ac_t""no" 1>&6
12305 ################################################
12306 # This test should come last because the
12307 # smbpasswd SAM is only used if another format
12308 # has not been defined
12309 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12310 echo "configure:12311: checking whether to use traditional smbpasswd file" >&5
12311 if test $with_smbpasswd_sam = yes; then
12312 echo "$ac_t""yes" 1>&6
12313 cat >> confdefs.h
<<\EOF
12314 #define WITH_SMBPASSWD_SAM 1
12319 echo "$ac_t""no" 1>&6
12320 PDBEDIT
=bin
/pdbedit
12323 ########################################################################################
12325 ## END OF TESTS FOR SAM BACKENDS.
12327 ########################################################################################
12329 #################################################
12330 # check for a NISPLUS_HOME support
12331 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12332 echo "configure:12333: checking whether to use NISPLUS_HOME" >&5
12333 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12334 if test "${with_nisplus_home+set}" = set; then
12335 withval
="$with_nisplus_home"
12338 echo "$ac_t""yes" 1>&6
12339 cat >> confdefs.h
<<\EOF
12340 #define WITH_NISPLUS_HOME 1
12345 echo "$ac_t""no" 1>&6
12349 echo "$ac_t""no" 1>&6
12354 #################################################
12355 # check for the secure socket layer
12356 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12357 echo "configure:12358: checking whether to use SSL" >&5
12358 # Check whether --with-ssl or --without-ssl was given.
12359 if test "${with_ssl+set}" = set; then
12360 withval
="$with_ssl"
12363 echo "$ac_t""yes" 1>&6
12364 cat >> confdefs.h
<<\EOF
12368 withval
="/usr/local/ssl" # default
12370 if test "${with_sslinc+set}" = set; then
12372 withval
="$with_sslinc"
12375 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12376 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12379 CFLAGS
="-I${withval} $CFLAGS"
12385 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12389 if test "${with_ssllib+set}" = set; then
12391 withval
="$with_ssllib"
12394 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12395 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12398 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12404 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12408 LIBS
="-lssl -lcrypto $LIBS"
12410 # if test ! -d ${withval}; then
12411 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12415 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12419 echo "$ac_t""no" 1>&6
12423 echo "$ac_t""no" 1>&6
12428 #################################################
12429 # check for syslog logging
12430 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12431 echo "configure:12432: checking whether to use syslog logging" >&5
12432 # Check whether --with-syslog or --without-syslog was given.
12433 if test "${with_syslog+set}" = set; then
12434 withval
="$with_syslog"
12437 echo "$ac_t""yes" 1>&6
12438 cat >> confdefs.h
<<\EOF
12439 #define WITH_SYSLOG 1
12444 echo "$ac_t""no" 1>&6
12448 echo "$ac_t""no" 1>&6
12453 #################################################
12454 # check for a shared memory profiling support
12455 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12456 echo "configure:12457: checking whether to use profiling" >&5
12457 # Check whether --with-profiling-data or --without-profiling-data was given.
12458 if test "${with_profiling_data+set}" = set; then
12459 withval
="$with_profiling_data"
12462 echo "$ac_t""yes" 1>&6
12463 cat >> confdefs.h
<<\EOF
12464 #define WITH_PROFILE 1
12469 echo "$ac_t""no" 1>&6
12473 echo "$ac_t""no" 1>&6
12479 #################################################
12480 # check for experimental disk-quotas support
12481 QUOTAOBJS
=smbd
/noquotas.o
12483 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12484 echo "configure:12485: checking whether to support disk-quotas" >&5
12485 # Check whether --with-quotas or --without-quotas was given.
12486 if test "${with_quotas+set}" = set; then
12487 withval
="$with_quotas"
12490 echo "$ac_t""yes" 1>&6
12491 QUOTAOBJS
=smbd
/quotas.o
12494 # Check for kernel 2.4.x quota braindamage...
12495 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12496 echo "configure:12497: checking for linux 2.4.x quota braindamage.." >&5
12497 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12498 echo $ac_n "(cached) $ac_c" 1>&6
12501 cat > conftest.
$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12505 #include <sys/types.h>
12506 #include <asm/types.h>
12507 #include <linux/quota.h>
12508 #include <mntent.h>
12509 #include <linux/unistd.h>
12511 struct mem_dqblk D;
12514 if { (eval echo configure
:12515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12516 samba_cv_linux_2_4_quota_braindamage
=yes
12518 echo "configure: failed program was:" >&5
12519 cat conftest.
$ac_ext >&5
12521 samba_cv_linux_2_4_quota_braindamage
=no
12526 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12527 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
12528 cat >> confdefs.h
<<\EOF
12529 #define LINUX_QUOTAS_2 1
12533 cat >> confdefs.h
<<\EOF
12534 #define LINUX_QUOTAS_1 1
12544 echo "$ac_t""no" 1>&6
12548 echo "$ac_t""no" 1>&6
12554 #################################################
12555 # check for experimental utmp accounting
12557 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12558 echo "configure:12559: checking whether to support utmp accounting" >&5
12559 # Check whether --with-utmp or --without-utmp was given.
12560 if test "${with_utmp+set}" = set; then
12561 withval
="$with_utmp"
12564 echo "$ac_t""yes" 1>&6
12565 cat >> confdefs.h
<<\EOF
12566 #define WITH_UTMP 1
12571 echo "$ac_t""no" 1>&6
12575 echo "$ac_t""no" 1>&6
12580 #################################################
12581 # check for MS Dfs support
12583 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12584 echo "configure:12585: checking whether to support Microsoft Dfs" >&5
12585 # Check whether --with-msdfs or --without-msdfs was given.
12586 if test "${with_msdfs+set}" = set; then
12587 withval
="$with_msdfs"
12590 echo "$ac_t""yes" 1>&6
12591 cat >> confdefs.h
<<\EOF
12592 #define WITH_MSDFS 1
12597 echo "$ac_t""no" 1>&6
12601 echo "$ac_t""no" 1>&6
12606 #################################################
12607 # should we build libsmbclient?
12609 LIBSMBCLIENT_SHARED
=
12611 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12612 echo "configure:12613: checking whether to build the libsmbclient shared library" >&5
12613 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12614 if test "${with_libsmbclient+set}" = set; then
12615 withval
="$with_libsmbclient"
12618 if test $BLDSHARED = true
; then
12619 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12620 LIBSMBCLIENT
=libsmbclient
12621 echo "$ac_t""yes" 1>&6
12623 echo "$ac_t""no shared library support" 1>&6
12627 echo "$ac_t""no" 1>&6
12631 echo "$ac_t""no" 1>&6
12636 #################################################
12637 # these tests are taken from the GNU fileutils package
12638 echo "checking how to get filesystem space usage" 1>&6
12639 echo "configure:12640: checking how to get filesystem space usage" >&5
12642 # Test for statvfs64.
12643 if test $space = no
; then
12645 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12646 echo "configure:12647: checking statvfs64 function (SVR4)" >&5
12647 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12650 if test "$cross_compiling" = yes; then
12651 fu_cv_sys_stat_statvfs64
=cross
12653 cat > conftest.
$ac_ext <<EOF
12654 #line 12655 "configure"
12655 #include "confdefs.h"
12657 #if defined(HAVE_UNISTD_H)
12658 #include <unistd.h>
12660 #include <sys/types.h>
12661 #include <sys/statvfs.h>
12664 struct statvfs64 fsd;
12665 exit (statvfs64 (".", &fsd));
12668 if { (eval echo configure
:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12670 fu_cv_sys_stat_statvfs64
=yes
12672 echo "configure: failed program was:" >&5
12673 cat conftest.
$ac_ext >&5
12675 fu_cv_sys_stat_statvfs64
=no
12682 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12683 if test $fu_cv_sys_stat_statvfs64 = yes; then
12685 cat >> confdefs.h
<<\EOF
12686 #define STAT_STATVFS64 1
12692 # Perform only the link test since it seems there are no variants of the
12693 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12694 # because that got a false positive on SCO OSR5. Adding the declaration
12695 # of a `struct statvfs' causes this test to fail (as it should) on such
12696 # systems. That system is reported to work fine with STAT_STATFS4 which
12697 # is what it gets when this test fails.
12698 if test $space = no
; then
12700 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12701 echo "configure:12702: checking statvfs function (SVR4)" >&5
12702 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12705 cat > conftest.
$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 #include <sys/types.h>
12709 #include <sys/statvfs.h>
12711 struct statvfs fsd; statvfs (0, &fsd);
12714 if { (eval echo configure
:12715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12716 fu_cv_sys_stat_statvfs
=yes
12718 echo "configure: failed program was:" >&5
12719 cat conftest.
$ac_ext >&5
12721 fu_cv_sys_stat_statvfs
=no
12726 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12727 if test $fu_cv_sys_stat_statvfs = yes; then
12729 cat >> confdefs.h
<<\EOF
12730 #define STAT_STATVFS 1
12736 if test $space = no
; then
12737 # DEC Alpha running OSF/1
12738 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12739 echo "configure:12740: checking for 3-argument statfs function (DEC OSF/1)" >&5
12740 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12741 echo $ac_n "(cached) $ac_c" 1>&6
12743 if test "$cross_compiling" = yes; then
12744 fu_cv_sys_stat_statfs3_osf1
=no
12746 cat > conftest.
$ac_ext <<EOF
12747 #line 12748 "configure"
12748 #include "confdefs.h"
12750 #include <sys/param.h>
12751 #include <sys/types.h>
12752 #include <sys/mount.h>
12757 exit (statfs (".", &fsd, sizeof (struct statfs)));
12760 if { (eval echo configure
:12761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12762 fu_cv_sys_stat_statfs3_osf1
=yes
12764 echo "configure: failed program was:" >&5
12765 cat conftest.
$ac_ext >&5
12767 fu_cv_sys_stat_statfs3_osf1
=no
12774 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12775 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12777 cat >> confdefs.h
<<\EOF
12778 #define STAT_STATFS3_OSF1 1
12784 if test $space = no
; then
12786 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12787 echo "configure:12788: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12788 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12789 echo $ac_n "(cached) $ac_c" 1>&6
12791 if test "$cross_compiling" = yes; then
12792 fu_cv_sys_stat_statfs2_bsize
=no
12794 cat > conftest.
$ac_ext <<EOF
12795 #line 12796 "configure"
12796 #include "confdefs.h"
12798 #ifdef HAVE_SYS_PARAM_H
12799 #include <sys/param.h>
12801 #ifdef HAVE_SYS_MOUNT_H
12802 #include <sys/mount.h>
12804 #ifdef HAVE_SYS_VFS_H
12805 #include <sys/vfs.h>
12811 exit (statfs (".", &fsd));
12814 if { (eval echo configure
:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12816 fu_cv_sys_stat_statfs2_bsize
=yes
12818 echo "configure: failed program was:" >&5
12819 cat conftest.
$ac_ext >&5
12821 fu_cv_sys_stat_statfs2_bsize
=no
12828 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12829 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12831 cat >> confdefs.h
<<\EOF
12832 #define STAT_STATFS2_BSIZE 1
12838 if test $space = no
; then
12840 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12841 echo "configure:12842: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12842 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12843 echo $ac_n "(cached) $ac_c" 1>&6
12845 if test "$cross_compiling" = yes; then
12846 fu_cv_sys_stat_statfs4
=no
12848 cat > conftest.
$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 #include <sys/types.h>
12852 #include <sys/statfs.h>
12856 exit (statfs (".", &fsd, sizeof fsd, 0));
12859 if { (eval echo configure
:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12861 fu_cv_sys_stat_statfs4
=yes
12863 echo "configure: failed program was:" >&5
12864 cat conftest.
$ac_ext >&5
12866 fu_cv_sys_stat_statfs4
=no
12873 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12874 if test $fu_cv_sys_stat_statfs4 = yes; then
12876 cat >> confdefs.h
<<\EOF
12877 #define STAT_STATFS4 1
12883 if test $space = no
; then
12884 # 4.4BSD and NetBSD
12885 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12886 echo "configure:12887: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12887 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12888 echo $ac_n "(cached) $ac_c" 1>&6
12890 if test "$cross_compiling" = yes; then
12891 fu_cv_sys_stat_statfs2_fsize
=no
12893 cat > conftest.
$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12896 #include <sys/types.h>
12897 #ifdef HAVE_SYS_PARAM_H
12898 #include <sys/param.h>
12900 #ifdef HAVE_SYS_MOUNT_H
12901 #include <sys/mount.h>
12907 exit (statfs (".", &fsd));
12910 if { (eval echo configure
:12911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12912 fu_cv_sys_stat_statfs2_fsize
=yes
12914 echo "configure: failed program was:" >&5
12915 cat conftest.
$ac_ext >&5
12917 fu_cv_sys_stat_statfs2_fsize
=no
12924 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12925 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12927 cat >> confdefs.h
<<\EOF
12928 #define STAT_STATFS2_FSIZE 1
12934 if test $space = no
; then
12936 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12937 echo "configure:12938: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12938 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12939 echo $ac_n "(cached) $ac_c" 1>&6
12941 if test "$cross_compiling" = yes; then
12942 fu_cv_sys_stat_fs_data
=no
12944 cat > conftest.
$ac_ext <<EOF
12945 #line 12946 "configure"
12946 #include "confdefs.h"
12947 #include <sys/types.h>
12948 #ifdef HAVE_SYS_PARAM_H
12949 #include <sys/param.h>
12951 #ifdef HAVE_SYS_MOUNT_H
12952 #include <sys/mount.h>
12954 #ifdef HAVE_SYS_FS_TYPES_H
12955 #include <sys/fs_types.h>
12959 struct fs_data fsd;
12960 /* Ultrix's statfs returns 1 for success,
12961 0 for not mounted, -1 for failure. */
12962 exit (statfs (".", &fsd) != 1);
12965 if { (eval echo configure
:12966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12967 fu_cv_sys_stat_fs_data
=yes
12969 echo "configure: failed program was:" >&5
12970 cat conftest.
$ac_ext >&5
12972 fu_cv_sys_stat_fs_data
=no
12979 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12980 if test $fu_cv_sys_stat_fs_data = yes; then
12982 cat >> confdefs.h
<<\EOF
12983 #define STAT_STATFS2_FS_DATA 1
12990 # As a gating factor for large file support, in order to
12991 # use <4GB files we must have the following minimal support
12993 # long long, and a 64 bit off_t or off64_t.
12994 # If we don't have all of these then disable large
12997 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12998 echo "configure:12999: checking if large file support can be enabled" >&5
12999 cat > conftest.
$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13003 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13004 #include <sys/types.h>
13013 if { (eval echo configure
:13014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13015 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13017 echo "configure: failed program was:" >&5
13018 cat conftest.
$ac_ext >&5
13020 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13023 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13024 echo "$ac_t""yes" 1>&6
13025 cat >> confdefs.h
<<\EOF
13026 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13030 echo "$ac_t""no" 1>&6
13033 # Check whether --with-spinlocks or --without-spinlocks was given.
13034 if test "${with_spinlocks+set}" = set; then
13035 withval
="$with_spinlocks"
13039 if test "x$with_spinlocks" = "xyes"; then
13040 cat >> confdefs.h
<<\EOF
13041 #define USE_SPINLOCKS 1
13045 case "$host_cpu" in
13047 cat >> confdefs.h
<<\EOF
13048 #define SPARC_SPINLOCKS 1
13053 i386|i486|i586|i686
)
13054 cat >> confdefs.h
<<\EOF
13055 #define INTEL_SPINLOCKS 1
13061 cat >> confdefs.h
<<\EOF
13062 #define MIPS_SPINLOCKS 1
13068 cat >> confdefs.h
<<\EOF
13069 #define POWERPC_SPINLOCKS 1
13076 #################################################
13077 # check for ACL support
13079 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13080 echo "configure:13081: checking whether to support ACLs" >&5
13081 # Check whether --with-acl-support or --without-acl-support was given.
13082 if test "${with_acl_support+set}" = set; then
13083 withval
="$with_acl_support"
13089 echo "$ac_t""Using UnixWare ACLs" 1>&6
13090 cat >> confdefs.h
<<\EOF
13091 #define HAVE_UNIXWARE_ACLS 1
13096 echo "$ac_t""Using solaris ACLs" 1>&6
13097 cat >> confdefs.h
<<\EOF
13098 #define HAVE_SOLARIS_ACLS 1
13103 echo "$ac_t""Using HPUX ACLs" 1>&6
13104 cat >> confdefs.h
<<\EOF
13105 #define HAVE_HPUX_ACLS 1
13110 echo "$ac_t""Using IRIX ACLs" 1>&6
13111 cat >> confdefs.h
<<\EOF
13112 #define HAVE_IRIX_ACLS 1
13117 echo "$ac_t""Using AIX ACLs" 1>&6
13118 cat >> confdefs.h
<<\EOF
13119 #define HAVE_AIX_ACLS 1
13124 echo "$ac_t""Using Tru64 ACLs" 1>&6
13125 cat >> confdefs.h
<<\EOF
13126 #define HAVE_TRU64_ACLS 1
13129 LIBS
="$LIBS -lpacl"
13132 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13133 echo "configure:13134: checking for acl_get_file in -lacl" >&5
13134 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13138 ac_save_LIBS
="$LIBS"
13140 cat > conftest.
$ac_ext <<EOF
13141 #line 13142 "configure"
13142 #include "confdefs.h"
13143 /* Override any gcc2 internal prototype to avoid an error. */
13144 /* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13146 char acl_get_file();
13152 if { (eval echo configure
:13153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13154 eval "ac_cv_lib_$ac_lib_var=yes"
13156 echo "configure: failed program was:" >&5
13157 cat conftest.
$ac_ext >&5
13159 eval "ac_cv_lib_$ac_lib_var=no"
13162 LIBS
="$ac_save_LIBS"
13165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13166 echo "$ac_t""yes" 1>&6
13167 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13169 cat >> confdefs.h
<<EOF
13170 #define $ac_tr_lib 1
13176 echo "$ac_t""no" 1>&6
13179 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13180 echo "configure:13181: checking for ACL support" >&5
13181 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13182 echo $ac_n "(cached) $ac_c" 1>&6
13185 cat > conftest.
$ac_ext <<EOF
13186 #line 13187 "configure"
13187 #include "confdefs.h"
13188 #include <sys/types.h>
13189 #include <sys/acl.h>
13191 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13194 if { (eval echo configure
:13195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13196 samba_cv_HAVE_POSIX_ACLS
=yes
13198 echo "configure: failed program was:" >&5
13199 cat conftest.
$ac_ext >&5
13201 samba_cv_HAVE_POSIX_ACLS
=no
13206 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13207 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13208 echo "$ac_t""Using posix ACLs" 1>&6
13209 cat >> confdefs.h
<<\EOF
13210 #define HAVE_POSIX_ACLS 1
13213 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13214 echo "configure:13215: checking for acl_get_perm_np" >&5
13215 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13216 echo $ac_n "(cached) $ac_c" 1>&6
13219 cat > conftest.
$ac_ext <<EOF
13220 #line 13221 "configure"
13221 #include "confdefs.h"
13222 #include <sys/types.h>
13223 #include <sys/acl.h>
13225 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13228 if { (eval echo configure
:13229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13230 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13232 echo "configure: failed program was:" >&5
13233 cat conftest.
$ac_ext >&5
13235 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13240 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13241 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13242 cat >> confdefs.h
<<\EOF
13243 #define HAVE_ACL_GET_PERM_NP 1
13252 echo "$ac_t""no" 1>&6
13253 cat >> confdefs.h
<<\EOF
13254 #define HAVE_NO_ACLS 1
13260 cat >> confdefs.h
<<\EOF
13261 #define HAVE_NO_ACLS 1
13264 echo "$ac_t""no" 1>&6
13269 #################################################
13270 # check for the historical SAMBA installation
13272 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13273 # Put all binaries under the /usr/local/samba/bin directory.
13277 #################################################
13278 # Check whether winbind is supported on this platform. If so we need to
13279 # build and install client programs (WINBIND_TARGETS), sbin programs
13280 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13282 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13283 echo "configure:13284: checking whether to build winbind" >&5
13285 # Initially, the value of $host_os decides whether winbind is supported
13293 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13294 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13298 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13305 winbind_no_reason
=", unsupported on $host_os"
13309 # Check the setting of --with-winbindd
13311 # Check whether --with-winbind or --without-winbind was given.
13312 if test "${with_winbind+set}" = set; then
13313 withval
="$with_winbind"
13327 # We need unix domain sockets for winbind
13329 if test x
"$HAVE_WINBIND" = x
"yes"; then
13330 if test x
"$samba_cv_unixsocket" = x
"no"; then
13331 winbind_no_reason
=", no unix domain socket support on $host_os"
13336 # Display test results
13338 if test x
"$HAVE_WINBIND" = x
"yes"; then
13340 echo "$ac_t""yes" 1>&6
13342 WINBIND_TARGETS
="bin/wbinfo"
13343 WINBIND_STARGETS
="bin/winbindd"
13346 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
13349 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13354 case "$with_pam" in
13356 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13360 echo "$ac_t""no$winbind_no_reason" 1>&6
13363 WINBIND_STARGETS
=""
13364 WINBIND_LTARGETS
=""
13365 WINBIND_PAM_TARGETS
=""
13368 #################################################
13369 # check for a for inclusion of winbindd_pam_auth_crap
13370 echo $ac_n "checking whether to include challenge/response check in wbinfo""... $ac_c" 1>&6
13371 echo "configure:13372: checking whether to include challenge/response check in wbinfo" >&5
13372 # Check whether --with-auth-crap or --without-auth-crap was given.
13373 if test "${with_auth_crap+set}" = set; then
13374 withval
="$with_auth_crap"
13377 echo "$ac_t""yes" 1>&6
13378 cat >> confdefs.h
<<\EOF
13379 #define WITH_WINBIND_AUTH_CHALLENGE 1
13384 echo "$ac_t""no" 1>&6
13388 echo "$ac_t""no" 1>&6
13393 # Check for FreeBSD problem with getgroups
13394 # It returns EGID too many times in the list of groups
13395 # and causes a security problem
13396 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13397 echo "configure:13398: checking whether or not getgroups returns EGID too many times" >&5
13398 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13399 echo $ac_n "(cached) $ac_c" 1>&6
13401 if test "$cross_compiling" = yes; then
13402 samba_cv_have_getgroups_too_many_egids
=cross
13404 cat > conftest.
$ac_ext <<EOF
13405 #line 13406 "configure"
13406 #include "confdefs.h"
13408 #include <sys/types.h>
13411 int main(int argc, char *argv[])
13416 n = getgroups(n, &groups);
13417 /* Could actually pass back the number of EGIDs there ... */
13418 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13421 if { (eval echo configure
:13422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13423 samba_cv_have_getgroups_too_many_egids
=no
13425 echo "configure: failed program was:" >&5
13426 cat conftest.
$ac_ext >&5
13428 samba_cv_have_getgroups_too_many_egids
=yes
13435 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13436 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
13437 cat >> confdefs.h
<<\EOF
13438 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13443 # Substitution time!
13452 # Solaris has some extra fields in struct passwd that need to be
13453 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13454 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13457 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13458 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13459 # [#include <pwd.h>])
13461 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13462 echo "configure:13463: checking whether struct passwd has pw_comment" >&5
13463 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13464 echo $ac_n "(cached) $ac_c" 1>&6
13467 cat > conftest.
$ac_ext <<EOF
13468 #line 13469 "configure"
13469 #include "confdefs.h"
13472 struct passwd p; p.pw_comment;
13475 if { (eval echo configure
:13476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13477 samba_cv_passwd_pw_comment
=yes
13479 echo "configure: failed program was:" >&5
13480 cat conftest.
$ac_ext >&5
13482 samba_cv_passwd_pw_comment
=no
13487 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13488 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
13489 cat >> confdefs.h
<<\EOF
13490 #define HAVE_PASSWD_PW_COMMENT 1
13495 #AC_CHECK_MEMBER(struct passwd.pw_age,
13496 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13497 # [#include <pwd.h>])
13499 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13500 echo "configure:13501: checking whether struct passwd has pw_age" >&5
13501 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13502 echo $ac_n "(cached) $ac_c" 1>&6
13505 cat > conftest.
$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13510 struct passwd p; p.pw_age;
13513 if { (eval echo configure
:13514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13515 samba_cv_passwd_pw_age
=yes
13517 echo "configure: failed program was:" >&5
13518 cat conftest.
$ac_ext >&5
13520 samba_cv_passwd_pw_age
=no
13525 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13526 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
13527 cat >> confdefs.h
<<\EOF
13528 #define HAVE_PASSWD_PW_AGE 1
13533 #################################################
13534 # Check to see if we should use the included popt
13536 # Check whether --with-included-popt or --without-included-popt was given.
13537 if test "${with_included_popt+set}" = set; then
13538 withval
="$with_included_popt"
13550 if test x
"$INCLUDED_POPT" != x
"yes"; then
13551 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13552 echo "configure:13553: checking for poptGetContext in -lpopt" >&5
13553 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13555 echo $ac_n "(cached) $ac_c" 1>&6
13557 ac_save_LIBS
="$LIBS"
13558 LIBS
="-lpopt $LIBS"
13559 cat > conftest.
$ac_ext <<EOF
13560 #line 13561 "configure"
13561 #include "confdefs.h"
13562 /* Override any gcc2 internal prototype to avoid an error. */
13563 /* We use char because int might match the return type of a gcc2
13564 builtin and then its argument prototype would still apply. */
13565 char poptGetContext();
13571 if { (eval echo configure
:13572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13573 eval "ac_cv_lib_$ac_lib_var=yes"
13575 echo "configure: failed program was:" >&5
13576 cat conftest.
$ac_ext >&5
13578 eval "ac_cv_lib_$ac_lib_var=no"
13581 LIBS
="$ac_save_LIBS"
13584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13585 echo "$ac_t""yes" 1>&6
13588 echo "$ac_t""no" 1>&6
13594 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13595 echo "configure:13596: checking whether to use included popt" >&5
13596 if test x
"$INCLUDED_POPT" = x
"yes"; then
13597 echo "$ac_t""$srcdir/popt" 1>&6
13598 BUILD_POPT
='$(POPT_OBJS)'
13599 FLAGS1
="-I$srcdir/popt"
13601 echo "$ac_t""no" 1>&6
13602 LIBS
="$LIBS -lpopt"
13607 #################################################
13608 # final configure stuff
13609 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13610 echo "configure:13611: checking configure summary" >&5
13611 if test "$cross_compiling" = yes; then
13612 echo "configure: warning: cannot run when cross-compiling" 1>&2
13614 cat > conftest.
$ac_ext <<EOF
13615 #line 13616 "configure"
13616 #include "confdefs.h"
13617 #include "${srcdir-.}/tests/summary.c"
13619 if { (eval echo configure
:13620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13621 echo "$ac_t""yes" 1>&6
13623 echo "configure: failed program was:" >&5
13624 cat conftest.
$ac_ext >&5
13626 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13636 cat > confcache
<<\EOF
13637 # This file is a shell script that caches the results of configure
13638 # tests run on this system so they can be shared between configure
13639 # scripts and configure runs. It is not useful on other systems.
13640 # If it contains results you don't want to keep, you may remove or edit it.
13642 # By default, configure uses ./config.cache as the cache file,
13643 # creating it if it does not exist already. You can give configure
13644 # the --cache-file=FILE option to use a different cache file; that is
13645 # what configure does when it calls configure scripts in
13646 # subdirectories, so they share the cache.
13647 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13648 # config.status only pays attention to the cache file if you give it the
13649 # --recheck option to rerun configure.
13652 # The following way of writing the cache mishandles newlines in values,
13653 # but we know of no workaround that is simple, portable, and efficient.
13654 # So, don't put newlines in cache variables' values.
13655 # Ultrix sh set writes to stderr and can't be redirected directly,
13656 # and sets the high bit in the cache file unless we assign to the vars.
13658 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13660 # `set' does not quote correctly, so add quotes (double-quote substitution
13661 # turns \\\\ into \\, and sed turns \\ into \).
13663 -e "s/'/'\\\\''/g" \
13664 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13667 # `set' quotes correctly as required by POSIX, so do not add quotes.
13668 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13671 if cmp -s $cache_file confcache
; then
13674 if test -w $cache_file; then
13675 echo "updating cache $cache_file"
13676 cat confcache
> $cache_file
13678 echo "not updating unwritable cache $cache_file"
13683 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13685 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13686 # Let make expand exec_prefix.
13687 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13689 # Any assignment to VPATH causes Sun make to only execute
13690 # the first set of double-colon rules, so remove it if not needed.
13691 # If there is a colon in the path, we need to keep it.
13692 if test "x$srcdir" = x.
; then
13693 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13696 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13698 DEFS
=-DHAVE_CONFIG_H
13700 # Without the "./", some shells look in PATH for config.status.
13701 : ${CONFIG_STATUS=./config.status}
13703 echo creating
$CONFIG_STATUS
13704 rm -f $CONFIG_STATUS
13705 cat > $CONFIG_STATUS <<EOF
13707 # Generated automatically by configure.
13708 # Run this file to recreate the current configuration.
13709 # This directory was configured as follows,
13710 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13712 # $0 $ac_configure_args
13714 # Compiler output produced by configure, useful for debugging
13715 # configure, is in ./config.log if it exists.
13717 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13720 case "\$ac_option" in
13721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13722 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13723 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13724 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13725 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13727 -help | --help | --hel | --he | --h)
13728 echo "\$ac_cs_usage"; exit 0 ;;
13729 *) echo "\$ac_cs_usage"; exit 1 ;;
13733 ac_given_srcdir=$srcdir
13734 ac_given_INSTALL="$INSTALL"
13736 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13738 cat >> $CONFIG_STATUS <<EOF
13740 # Protect against being on the right side of a sed subst in config.status.
13741 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13742 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13746 s%@CFLAGS@%$CFLAGS%g
13747 s%@CPPFLAGS@%$CPPFLAGS%g
13748 s%@CXXFLAGS@%$CXXFLAGS%g
13749 s%@FFLAGS@%$FFLAGS%g
13751 s%@LDFLAGS@%$LDFLAGS%g
13753 s%@exec_prefix@%$exec_prefix%g
13754 s%@prefix@%$prefix%g
13755 s%@program_transform_name@%$program_transform_name%g
13756 s%@bindir@%$bindir%g
13757 s%@sbindir@%$sbindir%g
13758 s%@libexecdir@%$libexecdir%g
13759 s%@datadir@%$datadir%g
13760 s%@sysconfdir@%$sysconfdir%g
13761 s%@sharedstatedir@%$sharedstatedir%g
13762 s%@localstatedir@%$localstatedir%g
13763 s%@libdir@%$libdir%g
13764 s%@includedir@%$includedir%g
13765 s%@oldincludedir@%$oldincludedir%g
13766 s%@infodir@%$infodir%g
13767 s%@mandir@%$mandir%g
13768 s%@codepagedir@%$codepagedir%g
13769 s%@configdir@%$configdir%g
13770 s%@lockdir@%$lockdir%g
13771 s%@piddir@%$piddir%g
13772 s%@logfilebase@%$logfilebase%g
13773 s%@privatedir@%$privatedir%g
13774 s%@swatdir@%$swatdir%g
13775 s%@RUNPROG@%$RUNPROG%g
13776 s%@MPROGS@%$MPROGS%g
13777 s%@LDSHFLAGS@%$LDSHFLAGS%g
13778 s%@SONAMEFLAG@%$SONAMEFLAG%g
13780 s%@HOST_OS@%$HOST_OS%g
13781 s%@PAM_MOD@%$PAM_MOD%g
13782 s%@PDBEDIT@%$PDBEDIT%g
13784 s%@WRAP32@%$WRAP32%g
13785 s%@WRAPPROG@%$WRAPPROG%g
13786 s%@PICFLAG@%$PICFLAG%g
13787 s%@PICSUFFIX@%$PICSUFFIX%g
13788 s%@SHLIBEXT@%$SHLIBEXT%g
13789 s%@BLDSHARED@%$BLDSHARED%g
13790 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13791 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13793 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13794 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13795 s%@INSTALL_DATA@%$INSTALL_DATA%g
13797 s%@passwd_program@%$passwd_program%g
13798 s%@BROKEN_CC@%$BROKEN_CC%g
13800 s%@host_alias@%$host_alias%g
13801 s%@host_cpu@%$host_cpu%g
13802 s%@host_vendor@%$host_vendor%g
13803 s%@host_os@%$host_os%g
13804 s%@target@%$target%g
13805 s%@target_alias@%$target_alias%g
13806 s%@target_cpu@%$target_cpu%g
13807 s%@target_vendor@%$target_vendor%g
13808 s%@target_os@%$target_os%g
13810 s%@build_alias@%$build_alias%g
13811 s%@build_cpu@%$build_cpu%g
13812 s%@build_vendor@%$build_vendor%g
13813 s%@build_os@%$build_os%g
13815 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13816 s%@LIBOBJS@%$LIBOBJS%g
13817 s%@TERMLIBS@%$TERMLIBS%g
13818 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13820 s%@DYNEXP@%$DYNEXP%g
13821 s%@QUOTAOBJS@%$QUOTAOBJS%g
13822 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13823 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13824 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13825 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13826 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13827 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13828 s%@BUILD_POPT@%$BUILD_POPT%g
13829 s%@FLAGS1@%$FLAGS1%g
13830 s%@builddir@%$builddir%g
13835 cat >> $CONFIG_STATUS <<\EOF
13837 # Split the substitutions into bite-sized pieces for seds with
13838 # small command number limits, like on Digital OSF/1 and HP-UX.
13839 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13840 ac_file
=1 # Number of current file.
13841 ac_beg
=1 # First line for current file.
13842 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13845 while $ac_more_lines; do
13846 if test $ac_beg -gt 1; then
13847 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13849 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13851 if test ! -s conftest.s
$ac_file; then
13852 ac_more_lines
=false
13853 rm -f conftest.s
$ac_file
13855 if test -z "$ac_sed_cmds"; then
13856 ac_sed_cmds
="sed -f conftest.s$ac_file"
13858 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13860 ac_file
=`expr $ac_file + 1`
13862 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13865 if test -z "$ac_sed_cmds"; then
13870 cat >> $CONFIG_STATUS <<EOF
13872 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13874 cat >> $CONFIG_STATUS <<\EOF
13875 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13878 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13879 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13880 *) ac_file_in
="${ac_file}.in" ;;
13883 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13885 # Remove last slash and all that follows it. Not all systems have dirname.
13886 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13887 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13888 # The file is in a subdirectory.
13889 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13890 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13891 # A "../" for each directory in $ac_dir_suffix.
13892 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13894 ac_dir_suffix
= ac_dots
=
13897 case "$ac_given_srcdir" in
13899 if test -z "$ac_dots"; then top_srcdir
=.
13900 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13901 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13902 *) # Relative path.
13903 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13904 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13907 case "$ac_given_INSTALL" in
13908 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13909 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13912 echo creating
"$ac_file"
13914 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13916 *Makefile
*) ac_comsub
="1i\\
13917 # $configure_input" ;;
13921 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13923 s%@configure_input@%$configure_input%g
13924 s%@srcdir@%$srcdir%g
13925 s%@top_srcdir@%$top_srcdir%g
13926 s%@INSTALL@%$INSTALL%g
13927 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13931 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13932 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13934 # ac_d sets the value in "#define NAME VALUE" lines.
13935 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13936 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13939 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13940 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13941 ac_uB
='\([ ]\)%\1#\2define\3'
13944 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13945 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13946 ac_eB
='$%\1#\2define\3'
13950 if test "${CONFIG_HEADERS+set}" != set; then
13952 cat >> $CONFIG_STATUS <<EOF
13953 CONFIG_HEADERS="include/config.h"
13955 cat >> $CONFIG_STATUS <<\EOF
13957 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13960 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13961 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13962 *) ac_file_in
="${ac_file}.in" ;;
13965 echo creating
$ac_file
13967 rm -f conftest.frag conftest.
in conftest.out
13968 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13969 cat $ac_file_inputs > conftest.
in
13973 # Transform confdefs.h into a sed script conftest.vals that substitutes
13974 # the proper values into config.h.in to produce config.h. And first:
13975 # Protect against being on the right side of a sed subst in config.status.
13976 # Protect against being in an unquoted here document in config.status.
13977 rm -f conftest.vals
13978 cat > conftest.hdr
<<\EOF
13981 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13985 sed -n -f conftest.hdr confdefs.h > conftest.vals
13988 # This sed command replaces #undef with comments. This is necessary, for
13989 # example, in the case of _POSIX_SOURCE, which is predefined and required
13990 # on some systems where configure will not decide to define it.
13991 cat >> conftest.vals <<\EOF
13992 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13995 # Break up conftest.vals because some shells have a limit on
13996 # the size of here documents, and old seds have small limits too.
13998 rm -f conftest.tail
14001 ac_lines=`grep -c . conftest.vals
`
14002 # grep -c gives empty output for an empty file on some AIX systems.
14003 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14004 # Write a limited-size here document to conftest.frag.
14005 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14006 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14008 sed -f conftest.frag conftest.in > conftest.out
14010 mv conftest.out conftest.in
14011 ' >> $CONFIG_STATUS
14012 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14013 rm -f conftest.vals
14014 mv conftest.tail conftest.vals
14016 rm -f conftest.vals
14018 cat >> $CONFIG_STATUS <<\EOF
14019 rm -f conftest.frag conftest.h
14020 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14021 cat conftest.in >> conftest.h
14023 if cmp -s $ac_file conftest.h 2>/dev/null; then
14024 echo "$ac_file is unchanged"
14027 # Remove last slash and all that follows it. Not all systems have dirname.
14028 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14029 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14030 # The file is in a subdirectory.
14031 test ! -d "$ac_dir" && mkdir "$ac_dir"
14034 mv conftest.h $ac_file
14039 cat >> $CONFIG_STATUS <<EOF
14042 cat >> $CONFIG_STATUS <<\EOF
14046 chmod +x $CONFIG_STATUS
14047 rm -fr confdefs* $ac_clean_files
14048 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1