3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-cups Turn on CUPS support (default=auto)"
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
38 --with-smbwrapper Include SMB wrapper support (default=no)"
40 --with-afs Include AFS support (default=no)"
42 --with-dce-dfs Include DCE/DFS support (default=no)"
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
48 --with-automount Include AUTOMOUNT support (default=no)"
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
52 --with-pam Include PAM password database support (default=no)"
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-msdfs Include MS Dfs support (default=no)"
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
82 --with-acl-support Include ACL support (default=no)"
84 --with-sendfile-support Check for sendfile support (default=no)"
86 --with-winbind Build winbind (default, if supported by OS)"
88 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
90 --with-winbind-ldap-hack Enable winbindd_ldap_hack() functionality (default no)"
92 --with-included-popt use bundled popt library, not from system"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=include
/includes.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
605 #################################################
606 # Directory handling stuff to support both the
607 # legacy SAMBA directories and FHS compliant
611 # Check whether --with-fhs or --without-fhs was given.
612 if test "${with_fhs+set}" = set; then
614 codepagedir
="\$(DATADIR)/samba/codepages"
615 configdir
="${sysconfdir}/samba"
616 lockdir
="\${VARDIR}/cache/samba"
617 piddir
="\$(VARDIR)/run/samba"
618 logfilebase
="\${VARDIR}/log/samba"
619 privatedir
="\${CONFIGDIR}/private"
620 swatdir
="\${DATADIR}/samba/swat"
622 codepagedir
="\$(LIBDIR)/codepages"
623 configdir
="\$(LIBDIR)"
624 logfilebase
="\$(VARDIR)"
625 lockdir
="\${VARDIR}/locks"
626 piddir
="\$(VARDIR)/locks"
627 privatedir
="\${prefix}/private"
628 swatdir
="\${prefix}/swat"
632 #################################################
633 # set private directory location
634 # Check whether --with-privatedir or --without-privatedir was given.
635 if test "${with_privatedir+set}" = set; then
636 withval
="$with_privatedir"
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
645 privatedir
="$withval"
651 #################################################
652 # set lock directory location
653 # Check whether --with-lockdir or --without-lockdir was given.
654 if test "${with_lockdir+set}" = set; then
655 withval
="$with_lockdir"
659 # Just in case anybody calls it without argument
661 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
670 #################################################
671 # set pid directory location
672 # Check whether --with-piddir or --without-piddir was given.
673 if test "${with_piddir+set}" = set; then
674 withval
="$with_piddir"
678 # Just in case anybody calls it without argument
680 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
689 #################################################
690 # set SWAT directory location
691 # Check whether --with-swatdir or --without-swatdir was given.
692 if test "${with_swatdir+set}" = set; then
693 withval
="$with_swatdir"
697 # Just in case anybody does it
699 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
708 #################################################
709 # set configuration directory location
710 # Check whether --with-configdir or --without-configdir was given.
711 if test "${with_configdir+set}" = set; then
712 withval
="$with_configdir"
716 # Just in case anybody does it
718 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
727 #################################################
728 # set codepage directory location
729 # Check whether --with-codepagedir or --without-codepagedir was given.
730 if test "${with_codepagedir+set}" = set; then
731 withval
="$with_codepagedir"
735 # Just in case anybody does it
737 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
740 codepagedir
="$withval"
746 #################################################
747 # set log directory location
748 # Check whether --with-logfilebase or --without-logfilebase was given.
749 if test "${with_logfilebase+set}" = set; then
750 withval
="$with_logfilebase"
754 # Just in case anybody does it
756 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
759 logfilebase
="$withval"
796 # compile with optimization and without debugging by default
797 CFLAGS
="-O ${CFLAGS}"
799 # Check whether --enable-debug or --disable-debug was given.
800 if test "${enable_debug+set}" = set; then
801 enableval
="$enable_debug"
802 if eval "test x$enable_debug = xyes"; then
803 CFLAGS
="${CFLAGS} -g"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc
; ac_word
=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC
="$CC" # Let the user override the test.
820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
822 for ac_dir
in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir
=.
824 if test -f $ac_dir/$ac_word; then
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc
; ac_word
=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 if test -n "$CC"; then
848 ac_cv_prog_CC
="$CC" # Let the user override the test.
850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
853 for ac_dir
in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir
=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy
$ac_cv_prog_CC
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
874 set dummy
"$ac_dir/$ac_word" "$@"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl
; ac_word
=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CC"; then
899 ac_cv_prog_CC
="$CC" # Let the user override the test.
901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
903 for ac_dir
in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir
=.
905 if test -f $ac_dir/$ac_word; then
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp
='$CPP $CPPFLAGS'
931 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling
=$ac_cv_prog_cc_cross
935 cat > conftest.
$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 if { (eval echo configure
:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
943 ac_cv_prog_cc_works
=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (.
/conftest
; exit) 2>/dev
/null
; then
946 ac_cv_prog_cc_cross
=no
948 ac_cv_prog_cc_cross
=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.
$ac_ext >&5
953 ac_cv_prog_cc_works
=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp
='$CPP $CPPFLAGS'
959 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling
=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no
; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling
=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.c
<<EOF
982 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
997 ac_test_CFLAGS
="${CFLAGS+set}"
998 ac_save_CFLAGS
="$CFLAGS"
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS
="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1025 if test "$GCC" = yes; then
1033 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1034 if test -f $ac_dir/install-sh
; then
1036 ac_install_sh
="$ac_aux_dir/install-sh -c"
1038 elif test -f $ac_dir/install.sh
; then
1040 ac_install_sh
="$ac_aux_dir/install.sh -c"
1044 if test -z "$ac_aux_dir"; then
1045 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1047 ac_config_guess
=$ac_aux_dir/config.guess
1048 ac_config_sub
=$ac_aux_dir/config.sub
1049 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1051 # Find a good install program. We prefer a C program (faster),
1052 # so one script is as good as another. But avoid the broken or
1053 # incompatible versions:
1054 # SysV /etc/install, /usr/sbin/install
1055 # SunOS /usr/etc/install
1056 # IRIX /sbin/install
1058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1061 # ./install, which can be erroneously created by make from ./install.sh.
1062 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1063 echo "configure:1064: checking for a BSD compatible install" >&5
1064 if test -z "$INSTALL"; then
1065 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1069 for ac_dir
in $PATH; do
1070 # Account for people who put trailing slashes in PATH elements.
1072 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1074 # OSF1 and SCO ODT 3.0 have their own names for install.
1075 # Don't use installbsd from OSF since it installs stuff as root
1077 for ac_prog
in ginstall scoinst
install; do
1078 if test -f $ac_dir/$ac_prog; then
1079 if test $ac_prog = install &&
1080 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1081 # AIX install. It has an incompatible calling convention.
1084 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1095 if test "${ac_cv_path_install+set}" = set; then
1096 INSTALL
="$ac_cv_path_install"
1098 # As a last resort, use the slow shell script. We don't cache a
1099 # path for INSTALL within a source directory, because that will
1100 # break other packages using the cache if that directory is
1101 # removed, or if the path is relative.
1102 INSTALL
="$ac_install_sh"
1105 echo "$ac_t""$INSTALL" 1>&6
1107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1108 # It thinks the first close brace ends the variable substitution.
1109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1113 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1115 for ac_prog
in gawk mawk nawk
awk
1117 # Extract the first word of "$ac_prog", so it can be a program name with args.
1118 set dummy
$ac_prog; ac_word
=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$AWK"; then
1125 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1129 for ac_dir
in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir
=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_AWK
="$ac_prog"
1139 AWK
="$ac_cv_prog_AWK"
1140 if test -n "$AWK"; then
1141 echo "$ac_t""$AWK" 1>&6
1143 echo "$ac_t""no" 1>&6
1146 test -n "$AWK" && break
1150 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1151 echo "configure:1152: checking if the linker ($LD) is GNU ld" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1156 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1157 ac_cv_prog_gnu_ld
=yes
1159 ac_cv_prog_gnu_ld
=no
1163 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1165 # Extract the first word of "passwd", so it can be a program name with args.
1166 set dummy passwd
; ac_word
=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 case "$passwd_program" in
1174 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1177 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1182 for ac_dir
in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir
=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1190 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1194 passwd_program
="$ac_cv_path_passwd_program"
1195 if test -n "$passwd_program"; then
1196 echo "$ac_t""$passwd_program" 1>&6
1198 echo "$ac_t""no" 1>&6
1203 if test "x$CC" != xcc
; then
1204 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether $CC and cc understand -c and -o together" >&5
1207 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether cc understands -c and -o together" >&5
1210 set dummy
$CC; ac_cc
="`echo $2 |
1211 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1212 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 echo 'foo(){}' > conftest.c
1216 # Make sure it works both with $CC and with simple cc.
1217 # We do the test twice because some compilers refuse to overwrite an
1218 # existing .o file with -o, though they will create one.
1219 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1220 if { (eval echo configure
:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1221 test -f conftest.o
&& { (eval echo configure
:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1223 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1224 if test "x$CC" != xcc
; then
1225 # Test first that cc exists at all.
1226 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1227 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1228 if { (eval echo configure
:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1229 test -f conftest.o
&& { (eval echo configure
:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1234 # cc exists but doesn't like -o.
1235 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1240 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1245 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1248 echo "$ac_t""no" 1>&6
1249 cat >> confdefs.h
<<\EOF
1250 #define NO_MINUS_C_MINUS_O 1
1255 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1262 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1263 echo "configure:1264: checking that the C compiler understands volatile" >&5
1264 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1268 cat > conftest.
$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 #include <sys/types.h>
1276 if { (eval echo configure
:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1278 samba_cv_volatile
=yes
1280 echo "configure: failed program was:" >&5
1281 cat conftest.
$ac_ext >&5
1283 samba_cv_volatile
=no
1288 echo "$ac_t""$samba_cv_volatile" 1>&6
1289 if test x
"$samba_cv_volatile" = x
"yes"; then
1290 cat >> confdefs.h
<<\EOF
1291 #define HAVE_VOLATILE 1
1299 # Do some error checking and defaulting for the host and target type.
1301 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1304 # 1. You are not allowed to specify --host, --target, and nonopt at the
1306 # 2. Host defaults to nonopt.
1307 # 3. If nonopt is not specified, then host defaults to the current host,
1308 # as determined by config.guess.
1309 # 4. Target and build default to nonopt.
1310 # 5. If nonopt is not specified, then target and build default to host.
1312 # The aliases save the names the user supplied, while $host etc.
1313 # will get canonicalized.
1314 case $host---$target---$nonopt in
1315 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1316 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1320 # Make sure we can run config.sub.
1321 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1322 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1325 echo $ac_n "checking host system type""... $ac_c" 1>&6
1326 echo "configure:1327: checking host system type" >&5
1329 case "$host_alias" in
1333 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1334 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1336 *) host_alias
=$nonopt ;;
1340 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1341 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$ac_t""$host" 1>&6
1346 echo $ac_n "checking target system type""... $ac_c" 1>&6
1347 echo "configure:1348: checking target system type" >&5
1349 target_alias
=$target
1350 case "$target_alias" in
1353 NONE
) target_alias
=$host_alias ;;
1354 *) target_alias
=$nonopt ;;
1358 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1359 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$ac_t""$target" 1>&6
1364 echo $ac_n "checking build system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking build system type" >&5
1368 case "$build_alias" in
1371 NONE
) build_alias
=$host_alias ;;
1372 *) build_alias
=$nonopt ;;
1376 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1377 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$ac_t""$build" 1>&6
1382 test "$host_alias" != "$target_alias" &&
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1385 program_prefix
=${target_alias}-
1389 *irix6
*) cat >> confdefs.h
<<\EOF
1390 #include <standards.h>
1398 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1399 echo "configure:1400: checking config.cache system type" >&5
1400 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1401 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1402 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1403 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1404 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1405 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1406 echo "$ac_t""different" 1>&6
1407 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1409 echo "$ac_t""same" 1>&6
1411 ac_cv_host_system_type
="$host"
1412 ac_cv_build_system_type
="$build"
1413 ac_cv_target_system_type
="$target"
1419 # Config CPPFLAG settings for strange OS's that must be set
1420 # before other tests.
1423 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1425 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1426 echo "configure:1427: checking whether ${CC-cc} accepts -Ae" >&5
1427 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 echo 'void f(){}' > conftest.c
1431 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1432 ac_cv_prog_cc_Ae
=yes
1440 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1441 # mmap on HPUX is completely broken...
1442 cat >> confdefs.h
<<\EOF
1443 #define MMAP_BLACKLIST 1
1446 if test $ac_cv_prog_cc_Ae = yes; then
1447 CPPFLAGS
="$CPPFLAGS -Ae"
1450 # Defines needed for HPUX support.
1451 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1452 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1456 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1457 cat >> confdefs.h
<<\EOF
1458 #define USE_BOTH_CRYPT_CALLS 1
1461 cat >> confdefs.h
<<\EOF
1462 #define _HPUX_SOURCE 1
1465 cat >> confdefs.h
<<\EOF
1466 #define _POSIX_SOURCE 1
1469 cat >> confdefs.h
<<\EOF
1470 #define _ALIGNMENT_REQUIRED 1
1473 cat >> confdefs.h
<<\EOF
1474 #define _MAX_ALIGNMENT 4
1479 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1480 cat >> confdefs.h
<<\EOF
1481 #define _HPUX_SOURCE 1
1484 cat >> confdefs.h
<<\EOF
1485 #define _POSIX_SOURCE 1
1488 cat >> confdefs.h
<<\EOF
1489 #define _LARGEFILE64_SOURCE 1
1492 cat >> confdefs.h
<<\EOF
1493 #define _ALIGNMENT_REQUIRED 1
1496 cat >> confdefs.h
<<\EOF
1497 #define _MAX_ALIGNMENT 4
1500 cat >> confdefs.h
<<\EOF
1501 #define USE_BOTH_CRYPT_CALLS 1
1511 # CRAY Unicos has broken const handling
1513 echo "$ac_t""disabling const" 1>&6
1514 CPPFLAGS
="$CPPFLAGS -Dconst="
1518 # AIX4.x doesn't even admit to having large
1519 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1522 echo "$ac_t""enabling large file support" 1>&6
1523 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1524 cat >> confdefs.h
<<\EOF
1525 #define _LARGE_FILES 1
1530 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1531 # to the existance of large files..
1532 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1533 # recommendations on large file support, however it makes the
1534 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1535 # recommendation makes the compile fail on gcc2.7. JRA.
1539 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1540 echo "$ac_t""no large file support" 1>&6
1543 echo "$ac_t""enabling large file support" 1>&6
1544 if test "$ac_cv_prog_gcc" = yes; then
1545 ${CC-cc} -v >conftest.c
2>&1
1546 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1548 case "$ac_cv_gcc_compiler_version_number" in
1549 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1550 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1551 cat >> confdefs.h
<<\EOF
1552 #define _LARGEFILE64_SOURCE 1
1557 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1558 cat >> confdefs.h
<<\EOF
1559 #define _LARGEFILE64_SOURCE 1
1562 cat >> confdefs.h
<<\EOF
1563 #define _FILE_OFFSET_BITS 64
1569 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1570 cat >> confdefs.h
<<\EOF
1571 #define _LARGEFILE64_SOURCE 1
1574 cat >> confdefs.h
<<\EOF
1575 #define _FILE_OFFSET_BITS 64
1583 # VOS may need to have POSIX support and System V compatibility enabled.
1587 *-D_POSIX_C_SOURCE*)
1590 CPPFLAGS
="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
1591 cat >> confdefs.h
<<\EOF
1592 #define _POSIX_C_SOURCE 199506L
1598 *-D_SYSV*|
*-D_SVID_SOURCE*)
1601 CPPFLAGS
="$CPPFLAGS -D_SYSV"
1602 cat >> confdefs.h
<<\EOF
1609 # Tests needed for SINIX large file support.
1612 if test $host = mips-sni-sysv4
; then
1613 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1614 echo "configure:1615: checking for LFS support" >&5
1615 old_CPPFLAGS
="$CPPFLAGS"
1616 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1617 if test "$cross_compiling" = yes; then
1618 SINIX_LFS_SUPPORT
=cross
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1626 #if _LFS64_LARGEFILE == 1
1633 if { (eval echo configure
:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1635 SINIX_LFS_SUPPORT
=yes
1637 echo "configure: failed program was:" >&5
1638 cat conftest.
$ac_ext >&5
1640 SINIX_LFS_SUPPORT
=no
1645 CPPFLAGS
="$old_CPPFLAGS"
1646 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1647 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1648 cat >> confdefs.h
<<\EOF
1649 #define _LARGEFILE64_SOURCE 1
1652 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1653 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1654 LIBS
="`getconf LFS64_LIBS` $LIBS"
1656 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1660 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1663 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1664 echo "configure:1665: checking for LFS support" >&5
1665 old_CPPFLAGS
="$CPPFLAGS"
1666 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1667 if test "$cross_compiling" = yes; then
1668 LINUX_LFS_SUPPORT
=cross
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1675 #include <sys/utsname.h>
1677 #if _LFS64_LARGEFILE == 1
1682 /* Ensure this is glibc 2.2 or higher */
1683 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1684 int libc_major = __GLIBC__;
1685 int libc_minor = __GLIBC_MINOR__;
1693 /* Ensure this is kernel 2.4 or higher */
1696 release = uts.release;
1697 major = atoi(strsep(&release, "."));
1698 minor = atoi(strsep(&release, "."));
1700 if (major > 2 || (major == 2 && minor > 3))
1709 if { (eval echo configure
:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1711 LINUX_LFS_SUPPORT
=yes
1713 echo "configure: failed program was:" >&5
1714 cat conftest.
$ac_ext >&5
1716 LINUX_LFS_SUPPORT
=no
1721 CPPFLAGS
="$old_CPPFLAGS"
1722 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1723 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1724 cat >> confdefs.h
<<\EOF
1725 #define _LARGEFILE64_SOURCE 1
1728 cat >> confdefs.h
<<\EOF
1729 #define _FILE_OFFSET_BITS 64
1732 cat >> confdefs.h
<<\EOF
1733 #define _GNU_SOURCE 1
1737 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1741 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1742 echo "configure:1743: checking for LFS support" >&5
1743 old_CPPFLAGS
="$CPPFLAGS"
1744 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1745 if test "$cross_compiling" = yes; then
1746 GLIBC_LFS_SUPPORT
=cross
1748 cat > conftest.
$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1754 #if _LFS64_LARGEFILE == 1
1761 if { (eval echo configure
:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1763 GLIBC_LFS_SUPPORT
=yes
1765 echo "configure: failed program was:" >&5
1766 cat conftest.
$ac_ext >&5
1768 GLIBC_LFS_SUPPORT
=no
1773 CPPFLAGS
="$old_CPPFLAGS"
1774 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1775 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1776 cat >> confdefs.h
<<\EOF
1777 #define _LARGEFILE64_SOURCE 1
1780 cat >> confdefs.h
<<\EOF
1781 #define _GNU_SOURCE 1
1785 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1790 echo $ac_n "checking for inline""... $ac_c" 1>&6
1791 echo "configure:1792: checking for inline" >&5
1792 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1796 for ac_kw
in inline __inline__ __inline
; do
1797 cat > conftest.
$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1805 if { (eval echo configure
:1806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1807 ac_cv_c_inline
=$ac_kw; break
1809 echo "configure: failed program was:" >&5
1810 cat conftest.
$ac_ext >&5
1817 echo "$ac_t""$ac_cv_c_inline" 1>&6
1818 case "$ac_cv_c_inline" in
1820 no
) cat >> confdefs.h
<<\EOF
1824 *) cat >> confdefs.h
<<EOF
1825 #define inline $ac_cv_c_inline
1830 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1831 echo "configure:1832: checking how to run the C preprocessor" >&5
1832 # On Suns, sometimes $CPP names a directory.
1833 if test -n "$CPP" && test -d "$CPP"; then
1836 if test -z "$CPP"; then
1837 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 # This must be in double quotes, not single quotes, because CPP may get
1841 # substituted into the Makefile and "${CC-cc}" will confuse make.
1843 # On the NeXT, cc -E runs the code through the compiler's parser,
1844 # not just through cpp.
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure
:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1861 CPP
="${CC-cc} -E -traditional-cpp"
1862 cat > conftest.
$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure
:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1878 CPP
="${CC-cc} -nologo -E"
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1885 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure
:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1892 echo "configure: failed program was:" >&5
1893 cat conftest.
$ac_ext >&5
1902 ac_cv_prog_CPP
="$CPP"
1904 CPP
="$ac_cv_prog_CPP"
1906 ac_cv_prog_CPP
="$CPP"
1908 echo "$ac_t""$CPP" 1>&6
1910 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1911 echo "configure:1912: checking for ANSI C header files" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 cat > conftest.
$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924 { (eval echo configure
:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1926 if test -z "$ac_err"; then
1928 ac_cv_header_stdc
=yes
1931 echo "configure: failed program was:" >&5
1932 cat conftest.
$ac_ext >&5
1934 ac_cv_header_stdc
=no
1938 if test $ac_cv_header_stdc = yes; then
1939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1940 cat > conftest.
$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1946 egrep "memchr" >/dev
/null
2>&1; then
1950 ac_cv_header_stdc
=no
1956 if test $ac_cv_header_stdc = yes; then
1957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1964 egrep "free" >/dev
/null
2>&1; then
1968 ac_cv_header_stdc
=no
1974 if test $ac_cv_header_stdc = yes; then
1975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1976 if test "$cross_compiling" = yes; then
1979 cat > conftest.
$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1983 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1984 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1986 int main () { int i; for (i = 0; i < 256; i++)
1987 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1991 if { (eval echo configure
:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1995 echo "configure: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1998 ac_cv_header_stdc
=no
2006 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2007 if test $ac_cv_header_stdc = yes; then
2008 cat >> confdefs.h
<<\EOF
2009 #define STDC_HEADERS 1
2015 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2017 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2018 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_hdr that defines DIR" >&5
2020 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 #include <sys/types.h>
2032 if { (eval echo configure
:2033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2034 eval "ac_cv_header_dirent_$ac_safe=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 eval "ac_cv_header_dirent_$ac_safe=no"
2043 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2046 cat >> confdefs.h
<<EOF
2047 #define $ac_tr_hdr 1
2049 ac_header_dirent
=$ac_hdr; break
2051 echo "$ac_t""no" 1>&6
2054 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2055 if test $ac_header_dirent = dirent.h
; then
2056 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2057 echo "configure:2058: checking for opendir in -ldir" >&5
2058 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 ac_save_LIBS
="$LIBS"
2064 cat > conftest.
$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2067 /* Override any gcc2 internal prototype to avoid an error. */
2068 /* We use char because int might match the return type of a gcc2
2069 builtin and then its argument prototype would still apply. */
2076 if { (eval echo configure
:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2078 eval "ac_cv_lib_$ac_lib_var=yes"
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2083 eval "ac_cv_lib_$ac_lib_var=no"
2086 LIBS
="$ac_save_LIBS"
2089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2090 echo "$ac_t""yes" 1>&6
2093 echo "$ac_t""no" 1>&6
2097 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2098 echo "configure:2099: checking for opendir in -lx" >&5
2099 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 ac_save_LIBS
="$LIBS"
2105 cat > conftest.
$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 /* Override any gcc2 internal prototype to avoid an error. */
2109 /* We use char because int might match the return type of a gcc2
2110 builtin and then its argument prototype would still apply. */
2117 if { (eval echo configure
:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2119 eval "ac_cv_lib_$ac_lib_var=yes"
2121 echo "configure: failed program was:" >&5
2122 cat conftest.
$ac_ext >&5
2124 eval "ac_cv_lib_$ac_lib_var=no"
2127 LIBS
="$ac_save_LIBS"
2130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2131 echo "$ac_t""yes" 1>&6
2134 echo "$ac_t""no" 1>&6
2139 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether time.h and sys/time.h may both be included" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2148 #include <sys/time.h>
2154 if { (eval echo configure
:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2156 ac_cv_header_time
=yes
2158 echo "configure: failed program was:" >&5
2159 cat conftest.
$ac_ext >&5
2161 ac_cv_header_time
=no
2166 echo "$ac_t""$ac_cv_header_time" 1>&6
2167 if test $ac_cv_header_time = yes; then
2168 cat >> confdefs.h
<<\EOF
2169 #define TIME_WITH_SYS_TIME 1
2174 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2175 echo "configure:2176: checking for sys/wait.h that is POSIX.1 compatible" >&5
2176 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <sys/types.h>
2183 #include <sys/wait.h>
2185 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2188 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2193 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2196 if { (eval echo configure
:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 ac_cv_header_sys_wait_h
=yes
2200 echo "configure: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2203 ac_cv_header_sys_wait_h
=no
2208 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2209 if test $ac_cv_header_sys_wait_h = yes; then
2210 cat >> confdefs.h
<<\EOF
2211 #define HAVE_SYS_WAIT_H 1
2216 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2218 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_hdr" >&5
2221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2229 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2230 { (eval echo configure
:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2231 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2232 if test -z "$ac_err"; then
2234 eval "ac_cv_header_$ac_safe=yes"
2237 echo "configure: failed program was:" >&5
2238 cat conftest.
$ac_ext >&5
2240 eval "ac_cv_header_$ac_safe=no"
2244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2247 cat >> confdefs.h
<<EOF
2248 #define $ac_tr_hdr 1
2252 echo "$ac_t""no" 1>&6
2256 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2258 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_hdr" >&5
2261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 cat > conftest.
$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2269 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2270 { (eval echo configure
:2271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2271 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2272 if test -z "$ac_err"; then
2274 eval "ac_cv_header_$ac_safe=yes"
2277 echo "configure: failed program was:" >&5
2278 cat conftest.
$ac_ext >&5
2280 eval "ac_cv_header_$ac_safe=no"
2284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2285 echo "$ac_t""yes" 1>&6
2286 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2287 cat >> confdefs.h
<<EOF
2288 #define $ac_tr_hdr 1
2292 echo "$ac_t""no" 1>&6
2296 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2298 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_hdr" >&5
2301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 cat > conftest.
$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2309 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure
:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then
2314 eval "ac_cv_header_$ac_safe=yes"
2317 echo "configure: failed program was:" >&5
2318 cat conftest.
$ac_ext >&5
2320 eval "ac_cv_header_$ac_safe=no"
2324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2327 cat >> confdefs.h
<<EOF
2328 #define $ac_tr_hdr 1
2332 echo "$ac_t""no" 1>&6
2336 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2338 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2340 echo "configure:2341: checking for $ac_hdr" >&5
2341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.
$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2349 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2350 { (eval echo configure
:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2351 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2352 if test -z "$ac_err"; then
2354 eval "ac_cv_header_$ac_safe=yes"
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 eval "ac_cv_header_$ac_safe=no"
2364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2367 cat >> confdefs.h
<<EOF
2368 #define $ac_tr_hdr 1
2372 echo "$ac_t""no" 1>&6
2376 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2378 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_hdr" >&5
2381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 cat > conftest.
$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2389 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2390 { (eval echo configure
:2391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2391 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2392 if test -z "$ac_err"; then
2394 eval "ac_cv_header_$ac_safe=yes"
2397 echo "configure: failed program was:" >&5
2398 cat conftest.
$ac_ext >&5
2400 eval "ac_cv_header_$ac_safe=no"
2404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2406 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2407 cat >> confdefs.h
<<EOF
2408 #define $ac_tr_hdr 1
2412 echo "$ac_t""no" 1>&6
2416 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.h
2418 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_hdr" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2429 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure
:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2434 eval "ac_cv_header_$ac_safe=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.
$ac_ext >&5
2440 eval "ac_cv_header_$ac_safe=no"
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2447 cat >> confdefs.h
<<EOF
2448 #define $ac_tr_hdr 1
2452 echo "$ac_t""no" 1>&6
2456 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
2458 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_hdr" >&5
2461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 cat > conftest.
$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2469 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2470 { (eval echo configure
:2471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2471 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2472 if test -z "$ac_err"; then
2474 eval "ac_cv_header_$ac_safe=yes"
2477 echo "configure: failed program was:" >&5
2478 cat conftest.
$ac_ext >&5
2480 eval "ac_cv_header_$ac_safe=no"
2484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2485 echo "$ac_t""yes" 1>&6
2486 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2487 cat >> confdefs.h
<<EOF
2488 #define $ac_tr_hdr 1
2492 echo "$ac_t""no" 1>&6
2496 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2498 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2500 echo "configure:2501: checking for $ac_hdr" >&5
2501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 cat > conftest.
$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2509 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2510 { (eval echo configure
:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2512 if test -z "$ac_err"; then
2514 eval "ac_cv_header_$ac_safe=yes"
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2520 eval "ac_cv_header_$ac_safe=no"
2524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2527 cat >> confdefs.h
<<EOF
2528 #define $ac_tr_hdr 1
2532 echo "$ac_t""no" 1>&6
2536 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2538 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_hdr" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.
$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2549 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure
:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2554 eval "ac_cv_header_$ac_safe=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.
$ac_ext >&5
2560 eval "ac_cv_header_$ac_safe=no"
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2566 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2567 cat >> confdefs.h
<<EOF
2568 #define $ac_tr_hdr 1
2572 echo "$ac_t""no" 1>&6
2578 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2579 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2591 if { (eval echo configure
:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2593 ac_cv_header_shadow_h
=yes
2595 echo "configure: failed program was:" >&5
2596 cat conftest.
$ac_ext >&5
2598 ac_cv_header_shadow_h
=no
2601 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2602 cat >> confdefs.h
<<\EOF
2603 #define HAVE_SHADOW_H 1
2609 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2611 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2613 echo "configure:2614: checking for $ac_hdr" >&5
2614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 cat > conftest.
$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2622 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2623 { (eval echo configure
:2624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2624 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2625 if test -z "$ac_err"; then
2627 eval "ac_cv_header_$ac_safe=yes"
2630 echo "configure: failed program was:" >&5
2631 cat conftest.
$ac_ext >&5
2633 eval "ac_cv_header_$ac_safe=no"
2637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2640 cat >> confdefs.h
<<EOF
2641 #define $ac_tr_hdr 1
2645 echo "$ac_t""no" 1>&6
2649 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2651 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2653 echo "configure:2654: checking for $ac_hdr" >&5
2654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 cat > conftest.
$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2662 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure
:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2665 if test -z "$ac_err"; then
2667 eval "ac_cv_header_$ac_safe=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.
$ac_ext >&5
2673 eval "ac_cv_header_$ac_safe=no"
2677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2680 cat >> confdefs.h
<<EOF
2681 #define $ac_tr_hdr 1
2685 echo "$ac_t""no" 1>&6
2689 for ac_hdr
in stropts.h poll.h
2691 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_hdr" >&5
2694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 cat > conftest.
$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2702 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure
:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705 if test -z "$ac_err"; then
2707 eval "ac_cv_header_$ac_safe=yes"
2710 echo "configure: failed program was:" >&5
2711 cat conftest.
$ac_ext >&5
2713 eval "ac_cv_header_$ac_safe=no"
2717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2718 echo "$ac_t""yes" 1>&6
2719 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2720 cat >> confdefs.h
<<EOF
2721 #define $ac_tr_hdr 1
2725 echo "$ac_t""no" 1>&6
2729 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2731 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_hdr" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.
$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2742 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure
:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 eval "ac_cv_header_$ac_safe=yes"
2750 echo "configure: failed program was:" >&5
2751 cat conftest.
$ac_ext >&5
2753 eval "ac_cv_header_$ac_safe=no"
2757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2759 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2760 cat >> confdefs.h
<<EOF
2761 #define $ac_tr_hdr 1
2765 echo "$ac_t""no" 1>&6
2769 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2771 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_hdr" >&5
2774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 cat > conftest.
$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2782 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783 { (eval echo configure
:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2785 if test -z "$ac_err"; then
2787 eval "ac_cv_header_$ac_safe=yes"
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2793 eval "ac_cv_header_$ac_safe=no"
2797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2800 cat >> confdefs.h
<<EOF
2801 #define $ac_tr_hdr 1
2805 echo "$ac_t""no" 1>&6
2810 # For experimental utmp support (lastlog on some BSD-like systems)
2811 for ac_hdr
in utmp.h utmpx.h lastlog.h
2813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_hdr" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 cat > conftest.
$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure
:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2829 eval "ac_cv_header_$ac_safe=yes"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2835 eval "ac_cv_header_$ac_safe=no"
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2842 cat >> confdefs.h
<<EOF
2843 #define $ac_tr_hdr 1
2847 echo "$ac_t""no" 1>&6
2852 # For quotas on Veritas VxFS filesystems
2853 for ac_hdr
in sys
/fs
/vx_quota.h
2855 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_hdr" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2866 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure
:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2871 eval "ac_cv_header_$ac_safe=yes"
2874 echo "configure: failed program was:" >&5
2875 cat conftest.
$ac_ext >&5
2877 eval "ac_cv_header_$ac_safe=no"
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2884 cat >> confdefs.h
<<EOF
2885 #define $ac_tr_hdr 1
2889 echo "$ac_t""no" 1>&6
2894 # For quotas on Linux XFS filesystems
2895 for ac_hdr
in linux
/xqm.h
2897 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_hdr" >&5
2900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.
$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2909 { (eval echo configure
:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2911 if test -z "$ac_err"; then
2913 eval "ac_cv_header_$ac_safe=yes"
2916 echo "configure: failed program was:" >&5
2917 cat conftest.
$ac_ext >&5
2919 eval "ac_cv_header_$ac_safe=no"
2923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2926 cat >> confdefs.h
<<EOF
2927 #define $ac_tr_hdr 1
2931 echo "$ac_t""no" 1>&6
2936 echo $ac_n "checking size of int""... $ac_c" 1>&6
2937 echo "configure:2938: checking size of int" >&5
2938 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 if test "$cross_compiling" = yes; then
2942 ac_cv_sizeof_int
=cross
2944 cat > conftest.
$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2950 FILE *f=fopen("conftestval", "w");
2952 fprintf(f, "%d\n", sizeof(int));
2956 if { (eval echo configure
:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2958 ac_cv_sizeof_int
=`cat conftestval`
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2969 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2970 cat >> confdefs.h
<<EOF
2971 #define SIZEOF_INT $ac_cv_sizeof_int
2975 echo $ac_n "checking size of long""... $ac_c" 1>&6
2976 echo "configure:2977: checking size of long" >&5
2977 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 if test "$cross_compiling" = yes; then
2981 ac_cv_sizeof_long
=cross
2983 cat > conftest.
$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2989 FILE *f=fopen("conftestval", "w");
2991 fprintf(f, "%d\n", sizeof(long));
2995 if { (eval echo configure
:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2997 ac_cv_sizeof_long
=`cat conftestval`
2999 echo "configure: failed program was:" >&5
3000 cat conftest.
$ac_ext >&5
3008 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3009 cat >> confdefs.h
<<EOF
3010 #define SIZEOF_LONG $ac_cv_sizeof_long
3014 echo $ac_n "checking size of short""... $ac_c" 1>&6
3015 echo "configure:3016: checking size of short" >&5
3016 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test "$cross_compiling" = yes; then
3020 ac_cv_sizeof_short
=cross
3022 cat > conftest.
$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3028 FILE *f=fopen("conftestval", "w");
3030 fprintf(f, "%d\n", sizeof(short));
3034 if { (eval echo configure
:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3036 ac_cv_sizeof_short
=`cat conftestval`
3038 echo "configure: failed program was:" >&5
3039 cat conftest.
$ac_ext >&5
3041 ac_cv_sizeof_short
=0
3047 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3048 cat >> confdefs.h
<<EOF
3049 #define SIZEOF_SHORT $ac_cv_sizeof_short
3054 echo $ac_n "checking for working const""... $ac_c" 1>&6
3055 echo "configure:3056: checking for working const" >&5
3056 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 cat > conftest.
$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3065 /* Ultrix mips cc rejects this. */
3066 typedef int charset[2]; const charset x;
3067 /* SunOS 4.1.1 cc rejects this. */
3068 char const *const *ccp;
3070 /* NEC SVR4.0.2 mips cc rejects this. */
3071 struct point {int x, y;};
3072 static struct point const zero = {0,0};
3073 /* AIX XL C 1.02.0.0 rejects this.
3074 It does not let you subtract one const X* pointer from another in an arm
3075 of an if-expression whose if-part is not a constant expression */
3076 const char *g = "string";
3077 ccp = &g + (g ? g-g : 0);
3078 /* HPUX 7.0 cc rejects these. */
3081 ccp = (char const *const *) p;
3082 { /* SCO 3.2v4 cc rejects this. */
3084 char const *s = 0 ? (char *) 0 : (char const *) 0;
3088 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3090 const int *foo = &x[0];
3093 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3094 typedef const int *iptr;
3098 { /* AIX XL C 1.02.0.0 rejects this saying
3099 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3100 struct s { int j; const int *ap[3]; };
3101 struct s *b; b->j = 5;
3103 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3109 if { (eval echo configure
:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113 echo "configure: failed program was:" >&5
3114 cat conftest.
$ac_ext >&5
3121 echo "$ac_t""$ac_cv_c_const" 1>&6
3122 if test $ac_cv_c_const = no
; then
3123 cat >> confdefs.h
<<\EOF
3129 echo $ac_n "checking for inline""... $ac_c" 1>&6
3130 echo "configure:3131: checking for inline" >&5
3131 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3135 for ac_kw
in inline __inline__ __inline
; do
3136 cat > conftest.
$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure
:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3146 ac_cv_c_inline
=$ac_kw; break
3148 echo "configure: failed program was:" >&5
3149 cat conftest.
$ac_ext >&5
3156 echo "$ac_t""$ac_cv_c_inline" 1>&6
3157 case "$ac_cv_c_inline" in
3159 no
) cat >> confdefs.h
<<\EOF
3163 *) cat >> confdefs.h
<<EOF
3164 #define inline $ac_cv_c_inline
3169 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3170 echo "configure:3171: checking whether byte ordering is bigendian" >&5
3171 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 ac_cv_c_bigendian
=unknown
3175 # See if sys/param.h defines the BYTE_ORDER macro.
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <sys/types.h>
3180 #include <sys/param.h>
3183 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3188 if { (eval echo configure
:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190 # It does; now see whether it defined to BIG_ENDIAN or not.
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #include <sys/types.h>
3195 #include <sys/param.h>
3198 #if BYTE_ORDER != BIG_ENDIAN
3203 if { (eval echo configure
:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205 ac_cv_c_bigendian
=yes
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 ac_cv_c_bigendian
=no
3214 echo "configure: failed program was:" >&5
3215 cat conftest.
$ac_ext >&5
3218 if test $ac_cv_c_bigendian = unknown
; then
3219 if test "$cross_compiling" = yes; then
3220 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3226 /* Are we little or big endian? From Harbison&Steele. */
3230 char c[sizeof (long)];
3233 exit (u.c[sizeof (long) - 1] == 1);
3236 if { (eval echo configure
:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3238 ac_cv_c_bigendian
=no
3240 echo "configure: failed program was:" >&5
3241 cat conftest.
$ac_ext >&5
3243 ac_cv_c_bigendian
=yes
3251 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3252 if test $ac_cv_c_bigendian = yes; then
3253 cat >> confdefs.h
<<\EOF
3254 #define WORDS_BIGENDIAN 1
3259 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3260 echo "configure:3261: checking whether char is unsigned" >&5
3261 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 if test "$GCC" = yes; then
3265 # GCC predefines this symbol on systems where it applies.
3266 cat > conftest.
$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #ifdef __CHAR_UNSIGNED__
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275 egrep "yes" >/dev
/null
2>&1; then
3277 ac_cv_c_char_unsigned
=yes
3280 ac_cv_c_char_unsigned
=no
3285 if test "$cross_compiling" = yes; then
3286 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3288 cat > conftest.
$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3292 #if !defined(__STDC__) || __STDC__ != 1
3296 volatile char c = 255; exit(c < 0);
3299 if { (eval echo configure
:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3301 ac_cv_c_char_unsigned
=yes
3303 echo "configure: failed program was:" >&5
3304 cat conftest.
$ac_ext >&5
3306 ac_cv_c_char_unsigned
=no
3314 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3315 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3316 cat >> confdefs.h
<<\EOF
3317 #define __CHAR_UNSIGNED__ 1
3323 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3324 echo "configure:3325: checking return type of signal handlers" >&5
3325 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 cat > conftest.
$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 #include <sys/types.h>
3337 extern "C" void (*signal (int, void (*)(int)))(int);
3339 void (*signal ()) ();
3346 if { (eval echo configure
:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348 ac_cv_type_signal
=void
3350 echo "configure: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3353 ac_cv_type_signal
=int
3358 echo "$ac_t""$ac_cv_type_signal" 1>&6
3359 cat >> confdefs.h
<<EOF
3360 #define RETSIGTYPE $ac_cv_type_signal
3364 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3365 echo "configure:3366: checking for uid_t in sys/types.h" >&5
3366 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 cat > conftest.
$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <sys/types.h>
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 egrep "uid_t" >/dev
/null
2>&1; then
3377 ac_cv_type_uid_t
=yes
3386 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3387 if test $ac_cv_type_uid_t = no
; then
3388 cat >> confdefs.h
<<\EOF
3392 cat >> confdefs.h
<<\EOF
3398 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3399 echo "configure:3400: checking for mode_t" >&5
3400 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 cat > conftest.
$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <sys/types.h>
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3415 ac_cv_type_mode_t
=yes
3418 ac_cv_type_mode_t
=no
3423 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3424 if test $ac_cv_type_mode_t = no
; then
3425 cat >> confdefs.h
<<\EOF
3431 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3432 echo "configure:3433: checking for off_t" >&5
3433 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.
$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 #include <sys/types.h>
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3448 ac_cv_type_off_t
=yes
3456 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3457 if test $ac_cv_type_off_t = no
; then
3458 cat >> confdefs.h
<<\EOF
3464 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3465 echo "configure:3466: checking for size_t" >&5
3466 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 cat > conftest.
$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 #include <sys/types.h>
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3481 ac_cv_type_size_t
=yes
3484 ac_cv_type_size_t
=no
3489 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3490 if test $ac_cv_type_size_t = no
; then
3491 cat >> confdefs.h
<<\EOF
3492 #define size_t unsigned
3497 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3498 echo "configure:3499: checking for pid_t" >&5
3499 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 cat > conftest.
$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <sys/types.h>
3511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3512 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3514 ac_cv_type_pid_t
=yes
3522 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3523 if test $ac_cv_type_pid_t = no
; then
3524 cat >> confdefs.h
<<\EOF
3530 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3531 echo "configure:3532: checking for st_rdev in struct stat" >&5
3532 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3535 cat > conftest.
$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 #include <sys/types.h>
3539 #include <sys/stat.h>
3541 struct stat s; s.st_rdev;
3544 if { (eval echo configure
:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 ac_cv_struct_st_rdev
=yes
3548 echo "configure: failed program was:" >&5
3549 cat conftest.
$ac_ext >&5
3551 ac_cv_struct_st_rdev
=no
3556 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3557 if test $ac_cv_struct_st_rdev = yes; then
3558 cat >> confdefs.h
<<\EOF
3559 #define HAVE_ST_RDEV 1
3564 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3565 echo "configure:3566: checking for d_off in dirent" >&5
3566 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 cat > conftest.
$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3574 #include <sys/types.h>
3577 struct dirent d; d.d_off;
3580 if { (eval echo configure
:3581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3582 ac_cv_dirent_d_off
=yes
3584 echo "configure: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3587 ac_cv_dirent_d_off
=no
3592 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3593 if test $ac_cv_dirent_d_off = yes; then
3594 cat >> confdefs.h
<<\EOF
3595 #define HAVE_DIRENT_D_OFF 1
3600 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3601 echo "configure:3602: checking for ino_t" >&5
3602 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 cat > conftest.
$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <sys/types.h>
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3617 ac_cv_type_ino_t
=yes
3625 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3626 if test $ac_cv_type_ino_t = no
; then
3627 cat >> confdefs.h
<<\EOF
3628 #define ino_t unsigned
3633 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3634 echo "configure:3635: checking for loff_t" >&5
3635 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 cat > conftest.
$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3650 ac_cv_type_loff_t
=yes
3653 ac_cv_type_loff_t
=no
3658 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3659 if test $ac_cv_type_loff_t = no
; then
3660 cat >> confdefs.h
<<\EOF
3661 #define loff_t off_t
3666 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3667 echo "configure:3668: checking for offset_t" >&5
3668 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.
$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3683 ac_cv_type_offset_t
=yes
3686 ac_cv_type_offset_t
=no
3691 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3692 if test $ac_cv_type_offset_t = no
; then
3693 cat >> confdefs.h
<<\EOF
3694 #define offset_t loff_t
3699 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3700 echo "configure:3701: checking for ssize_t" >&5
3701 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 cat > conftest.
$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3716 ac_cv_type_ssize_t
=yes
3719 ac_cv_type_ssize_t
=no
3724 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3725 if test $ac_cv_type_ssize_t = no
; then
3726 cat >> confdefs.h
<<\EOF
3732 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3733 echo "configure:3734: checking for wchar_t" >&5
3734 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.
$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 #include <sys/types.h>
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3749 ac_cv_type_wchar_t
=yes
3752 ac_cv_type_wchar_t
=no
3757 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3758 if test $ac_cv_type_wchar_t = no
; then
3759 cat >> confdefs.h
<<\EOF
3760 #define wchar_t unsigned short
3766 ############################################
3767 # for cups support we need libcups, and a handful of header files
3769 # Check whether --enable-cups or --disable-cups was given.
3770 if test "${enable_cups+set}" = set; then
3771 enableval
="$enable_cups"
3776 if test x
$enable_cups != xno
; then
3777 # Extract the first word of "cups-config", so it can be a program name with args.
3778 set dummy cups-config
; ac_word
=$2
3779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3780 echo "configure:3781: checking for $ac_word" >&5
3781 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 case "$CUPS_CONFIG" in
3786 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3789 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3792 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3794 for ac_dir
in $ac_dummy; do
3795 test -z "$ac_dir" && ac_dir
=.
3796 if test -f $ac_dir/$ac_word; then
3797 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3805 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3806 if test -n "$CUPS_CONFIG"; then
3807 echo "$ac_t""$CUPS_CONFIG" 1>&6
3809 echo "$ac_t""no" 1>&6
3813 if test "x$CUPS_CONFIG" != x
; then
3814 cat >> confdefs.h
<<\EOF
3818 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3819 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3820 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3824 ############################################
3825 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3826 for ac_func
in dlopen
3828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_func" >&5
3830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.
$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char $ac_func(); below. */
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3846 /* The GNU C library defines this for functions which it implements
3847 to always fail with ENOSYS. Some functions are actually named
3848 something starting with __ and the normal name is an alias. */
3849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3857 if { (eval echo configure
:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3859 eval "ac_cv_func_$ac_func=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.
$ac_ext >&5
3864 eval "ac_cv_func_$ac_func=no"
3869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3872 cat >> confdefs.h
<<EOF
3873 #define $ac_tr_func 1
3877 echo "$ac_t""no" 1>&6
3881 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3882 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3883 echo "configure:3884: checking for dlopen in -ldl" >&5
3884 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 ac_save_LIBS
="$LIBS"
3890 cat > conftest.
$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 /* Override any gcc2 internal prototype to avoid an error. */
3894 /* We use char because int might match the return type of a gcc2
3895 builtin and then its argument prototype would still apply. */
3902 if { (eval echo configure
:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3904 eval "ac_cv_lib_$ac_lib_var=yes"
3906 echo "configure: failed program was:" >&5
3907 cat conftest.
$ac_ext >&5
3909 eval "ac_cv_lib_$ac_lib_var=no"
3912 LIBS
="$ac_save_LIBS"
3915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3916 echo "$ac_t""yes" 1>&6
3918 cat >> confdefs.h
<<\EOF
3919 #define HAVE_DLOPEN 1
3923 echo "$ac_t""no" 1>&6
3927 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3929 ############################################
3930 # check if the compiler can do immediate structures
3931 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3932 echo "configure:3933: checking for immediate structures" >&5
3933 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3937 cat > conftest.
$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3944 typedef struct {unsigned x;} FOOBAR;
3945 #define X_FOOBAR(x) ((FOOBAR) { x })
3946 #define FOO_ONE X_FOOBAR(1)
3956 if { (eval echo configure
:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958 samba_cv_immediate_structures
=yes
3960 echo "configure: failed program was:" >&5
3961 cat conftest.
$ac_ext >&5
3963 samba_cv_immediate_structures
=no
3968 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3969 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3970 cat >> confdefs.h
<<\EOF
3971 #define HAVE_IMMEDIATE_STRUCTURES 1
3976 ############################################
3977 # check for unix domain sockets
3978 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3979 echo "configure:3980: checking for unix domain sockets" >&5
3980 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3984 cat > conftest.
$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3988 #include <sys/types.h>
3991 #include <sys/socket.h>
3995 struct sockaddr_un sunaddr;
3996 sunaddr.sun_family = AF_UNIX;
4000 if { (eval echo configure
:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4002 samba_cv_unixsocket
=yes
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4007 samba_cv_unixsocket
=no
4012 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4013 if test x
"$samba_cv_unixsocket" = x
"yes"; then
4014 cat >> confdefs.h
<<\EOF
4015 #define HAVE_UNIXSOCKET 1
4020 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4021 echo "configure:4022: checking for socklen_t type" >&5
4022 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4026 cat > conftest.
$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4030 #include <sys/types.h>
4035 #include <sys/socket.h>
4040 if { (eval echo configure
:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4042 samba_cv_socklen_t
=yes
4044 echo "configure: failed program was:" >&5
4045 cat conftest.
$ac_ext >&5
4047 samba_cv_socklen_t
=no
4052 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4053 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4054 cat >> confdefs.h
<<\EOF
4055 #define HAVE_SOCKLEN_T_TYPE 1
4060 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4061 echo "configure:4062: checking for sig_atomic_t type" >&5
4062 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4066 cat > conftest.
$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4070 #include <sys/types.h>
4080 if { (eval echo configure
:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4082 samba_cv_sig_atomic_t
=yes
4084 echo "configure: failed program was:" >&5
4085 cat conftest.
$ac_ext >&5
4087 samba_cv_sig_atomic_t
=no
4092 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4093 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4094 cat >> confdefs.h
<<\EOF
4095 #define HAVE_SIG_ATOMIC_T_TYPE 1
4100 # stupid headers have the functions but no declaration. grrrr.
4102 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4103 echo "configure:4104: checking for errno declaration" >&5
4104 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4108 cat > conftest.
$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4116 if { (eval echo configure
:4117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4118 ac_cv_have_errno_decl
=yes
4120 echo "configure: failed program was:" >&5
4121 cat conftest.
$ac_ext >&5
4123 ac_cv_have_errno_decl
=no
4128 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4129 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4130 cat >> confdefs.h
<<\EOF
4131 #define HAVE_ERRNO_DECL 1
4137 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4138 echo "configure:4139: checking for setresuid declaration" >&5
4139 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4143 cat > conftest.
$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4148 int i = (int)setresuid
4151 if { (eval echo configure
:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4153 ac_cv_have_setresuid_decl
=yes
4155 echo "configure: failed program was:" >&5
4156 cat conftest.
$ac_ext >&5
4158 ac_cv_have_setresuid_decl
=no
4163 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4164 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4165 cat >> confdefs.h
<<\EOF
4166 #define HAVE_SETRESUID_DECL 1
4172 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4173 echo "configure:4174: checking for setresgid declaration" >&5
4174 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4178 cat > conftest.
$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4183 int i = (int)setresgid
4186 if { (eval echo configure
:4187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4188 ac_cv_have_setresgid_decl
=yes
4190 echo "configure: failed program was:" >&5
4191 cat conftest.
$ac_ext >&5
4193 ac_cv_have_setresgid_decl
=no
4198 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4199 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4200 cat >> confdefs.h
<<\EOF
4201 #define HAVE_SETRESGID_DECL 1
4207 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4208 echo "configure:4209: checking for asprintf declaration" >&5
4209 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.
$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4218 int i = (int)asprintf
4221 if { (eval echo configure
:4222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4223 ac_cv_have_asprintf_decl
=yes
4225 echo "configure: failed program was:" >&5
4226 cat conftest.
$ac_ext >&5
4228 ac_cv_have_asprintf_decl
=no
4233 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4234 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4235 cat >> confdefs.h
<<\EOF
4236 #define HAVE_ASPRINTF_DECL 1
4242 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4243 echo "configure:4244: checking for vasprintf declaration" >&5
4244 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4253 int i = (int)vasprintf
4256 if { (eval echo configure
:4257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4258 ac_cv_have_vasprintf_decl
=yes
4260 echo "configure: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4263 ac_cv_have_vasprintf_decl
=no
4268 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4269 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4270 cat >> confdefs.h
<<\EOF
4271 #define HAVE_VASPRINTF_DECL 1
4277 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4278 echo "configure:4279: checking for vsnprintf declaration" >&5
4279 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4283 cat > conftest.
$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4288 int i = (int)vsnprintf
4291 if { (eval echo configure
:4292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4293 ac_cv_have_vsnprintf_decl
=yes
4295 echo "configure: failed program was:" >&5
4296 cat conftest.
$ac_ext >&5
4298 ac_cv_have_vsnprintf_decl
=no
4303 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4304 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4305 cat >> confdefs.h
<<\EOF
4306 #define HAVE_VSNPRINTF_DECL 1
4312 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4313 echo "configure:4314: checking for snprintf declaration" >&5
4314 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4318 cat > conftest.
$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4323 int i = (int)snprintf
4326 if { (eval echo configure
:4327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4328 ac_cv_have_snprintf_decl
=yes
4330 echo "configure: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4333 ac_cv_have_snprintf_decl
=no
4338 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4339 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4340 cat >> confdefs.h
<<\EOF
4341 #define HAVE_SNPRINTF_DECL 1
4347 # and glibc has setresuid under linux but the function does
4348 # nothing until kernel 2.1.44! very dumb.
4349 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4350 echo "configure:4351: checking for real setresuid" >&5
4351 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4355 if test "$cross_compiling" = yes; then
4356 samba_cv_have_setresuid
=cross
4358 cat > conftest.
$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4362 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4364 if { (eval echo configure
:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4366 samba_cv_have_setresuid
=yes
4368 echo "configure: failed program was:" >&5
4369 cat conftest.
$ac_ext >&5
4371 samba_cv_have_setresuid
=no
4378 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4379 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4380 cat >> confdefs.h
<<\EOF
4381 #define HAVE_SETRESUID 1
4386 # Do the same check for setresguid...
4388 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4389 echo "configure:4390: checking for real setresgid" >&5
4390 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4394 if test "$cross_compiling" = yes; then
4395 samba_cv_have_setresgid
=cross
4397 cat > conftest.
$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4402 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4404 if { (eval echo configure
:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4406 samba_cv_have_setresgid
=yes
4408 echo "configure: failed program was:" >&5
4409 cat conftest.
$ac_ext >&5
4411 samba_cv_have_setresgid
=no
4418 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4419 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4420 cat >> confdefs.h
<<\EOF
4421 #define HAVE_SETRESGID 1
4426 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4427 echo "configure:4428: checking for 8-bit clean memcmp" >&5
4428 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 if test "$cross_compiling" = yes; then
4432 ac_cv_func_memcmp_clean
=no
4434 cat > conftest.
$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4440 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4441 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4445 if { (eval echo configure
:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4447 ac_cv_func_memcmp_clean
=yes
4449 echo "configure: failed program was:" >&5
4450 cat conftest.
$ac_ext >&5
4452 ac_cv_func_memcmp_clean
=no
4459 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4460 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4463 ###############################################
4464 # Readline included by default unless explicitly asked not to
4465 test "${with_readline+set}" != "set" && with_readline
=yes
4467 # test for where we get readline() from
4468 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4469 echo "configure:4470: checking whether to use readline" >&5
4470 # Check whether --with-readline or --without-readline was given.
4471 if test "${with_readline+set}" = set; then
4472 withval
="$with_readline"
4473 case "$with_readline" in
4475 echo "$ac_t""yes" 1>&6
4477 for ac_hdr
in readline.h
history.h readline
/readline.h
4479 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_hdr" >&5
4482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.
$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4490 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4491 { (eval echo configure
:4492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4492 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4493 if test -z "$ac_err"; then
4495 eval "ac_cv_header_$ac_safe=yes"
4498 echo "configure: failed program was:" >&5
4499 cat conftest.
$ac_ext >&5
4501 eval "ac_cv_header_$ac_safe=no"
4505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4508 cat >> confdefs.h
<<EOF
4509 #define $ac_tr_hdr 1
4513 echo "$ac_t""no" 1>&6
4517 for ac_hdr
in readline
/history.h
4519 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_hdr" >&5
4522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4525 cat > conftest.
$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4530 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4531 { (eval echo configure
:4532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4532 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4533 if test -z "$ac_err"; then
4535 eval "ac_cv_header_$ac_safe=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4541 eval "ac_cv_header_$ac_safe=no"
4545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4546 echo "$ac_t""yes" 1>&6
4547 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4548 cat >> confdefs.h
<<EOF
4549 #define $ac_tr_hdr 1
4553 echo "$ac_t""no" 1>&6
4558 for ac_hdr
in readline.h readline
/readline.h
4560 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4562 echo "configure:4563: checking for $ac_hdr" >&5
4563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 cat > conftest.
$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4571 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4572 { (eval echo configure
:4573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4573 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4574 if test -z "$ac_err"; then
4576 eval "ac_cv_header_$ac_safe=yes"
4579 echo "configure: failed program was:" >&5
4580 cat conftest.
$ac_ext >&5
4582 eval "ac_cv_header_$ac_safe=no"
4586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4587 echo "$ac_t""yes" 1>&6
4588 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4589 cat >> confdefs.h
<<EOF
4590 #define $ac_tr_hdr 1
4593 for termlib
in ncurses curses termcap terminfo termlib
; do
4594 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4595 echo "configure:4596: checking for tgetent in -l${termlib}" >&5
4596 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 ac_save_LIBS
="$LIBS"
4601 LIBS
="-l${termlib} $LIBS"
4602 cat > conftest.
$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* Override any gcc2 internal prototype to avoid an error. */
4606 /* We use char because int might match the return type of a gcc2
4607 builtin and then its argument prototype would still apply. */
4614 if { (eval echo configure
:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4616 eval "ac_cv_lib_$ac_lib_var=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.
$ac_ext >&5
4621 eval "ac_cv_lib_$ac_lib_var=no"
4624 LIBS
="$ac_save_LIBS"
4627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4629 TERMLIBS
="-l${termlib}"; break
4631 echo "$ac_t""no" 1>&6
4635 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4636 echo "configure:4637: checking for rl_callback_handler_install in -lreadline" >&5
4637 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 ac_save_LIBS
="$LIBS"
4642 LIBS
="-lreadline $TERMLIBS $LIBS"
4643 cat > conftest.
$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4649 char rl_callback_handler_install();
4652 rl_callback_handler_install()
4655 if { (eval echo configure
:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4657 eval "ac_cv_lib_$ac_lib_var=yes"
4659 echo "configure: failed program was:" >&5
4660 cat conftest.
$ac_ext >&5
4662 eval "ac_cv_lib_$ac_lib_var=no"
4665 LIBS
="$ac_save_LIBS"
4668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4670 TERMLIBS
="-lreadline $TERMLIBS"
4671 cat >> confdefs.h
<<\EOF
4672 #define HAVE_LIBREADLINE 1
4677 echo "$ac_t""no" 1>&6
4682 echo "$ac_t""no" 1>&6
4688 echo "$ac_t""no" 1>&6
4691 echo "$ac_t""yes" 1>&6
4693 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4694 # alternate readline path
4696 _cppflags
=${CPPFLAGS}
4698 # Add additional search path
4699 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4700 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4702 for ac_hdr
in readline.h
history.h readline
/readline.h
4704 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4706 echo "configure:4707: checking for $ac_hdr" >&5
4707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 cat > conftest.
$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4715 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4716 { (eval echo configure
:4717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4717 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4718 if test -z "$ac_err"; then
4720 eval "ac_cv_header_$ac_safe=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4726 eval "ac_cv_header_$ac_safe=no"
4730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4731 echo "$ac_t""yes" 1>&6
4732 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4733 cat >> confdefs.h
<<EOF
4734 #define $ac_tr_hdr 1
4738 echo "$ac_t""no" 1>&6
4742 for ac_hdr
in readline
/history.h
4744 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4746 echo "configure:4747: checking for $ac_hdr" >&5
4747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4755 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4756 { (eval echo configure
:4757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4757 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4758 if test -z "$ac_err"; then
4760 eval "ac_cv_header_$ac_safe=yes"
4763 echo "configure: failed program was:" >&5
4764 cat conftest.
$ac_ext >&5
4766 eval "ac_cv_header_$ac_safe=no"
4770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4772 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4773 cat >> confdefs.h
<<EOF
4774 #define $ac_tr_hdr 1
4778 echo "$ac_t""no" 1>&6
4783 for ac_hdr
in readline.h readline
/readline.h
4785 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_hdr" >&5
4788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4791 cat > conftest.
$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4796 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4797 { (eval echo configure
:4798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4798 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4799 if test -z "$ac_err"; then
4801 eval "ac_cv_header_$ac_safe=yes"
4804 echo "configure: failed program was:" >&5
4805 cat conftest.
$ac_ext >&5
4807 eval "ac_cv_header_$ac_safe=no"
4811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4812 echo "$ac_t""yes" 1>&6
4813 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4814 cat >> confdefs.h
<<EOF
4815 #define $ac_tr_hdr 1
4818 for termlib
in ncurses curses termcap terminfo termlib
; do
4819 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4820 echo "configure:4821: checking for tgetent in -l${termlib}" >&5
4821 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 ac_save_LIBS
="$LIBS"
4826 LIBS
="-l${termlib} $LIBS"
4827 cat > conftest.
$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 /* Override any gcc2 internal prototype to avoid an error. */
4831 /* We use char because int might match the return type of a gcc2
4832 builtin and then its argument prototype would still apply. */
4839 if { (eval echo configure
:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4841 eval "ac_cv_lib_$ac_lib_var=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.
$ac_ext >&5
4846 eval "ac_cv_lib_$ac_lib_var=no"
4849 LIBS
="$ac_save_LIBS"
4852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 TERMLIBS
="-l${termlib}"; break
4856 echo "$ac_t""no" 1>&6
4860 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4861 echo "configure:4862: checking for rl_callback_handler_install in -lreadline" >&5
4862 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4866 ac_save_LIBS
="$LIBS"
4867 LIBS
="-lreadline $TERMLIBS $LIBS"
4868 cat > conftest.
$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 /* Override any gcc2 internal prototype to avoid an error. */
4872 /* We use char because int might match the return type of a gcc2
4873 builtin and then its argument prototype would still apply. */
4874 char rl_callback_handler_install();
4877 rl_callback_handler_install()
4880 if { (eval echo configure
:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4882 eval "ac_cv_lib_$ac_lib_var=yes"
4884 echo "configure: failed program was:" >&5
4885 cat conftest.
$ac_ext >&5
4887 eval "ac_cv_lib_$ac_lib_var=no"
4890 LIBS
="$ac_save_LIBS"
4893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6
4895 TERMLDFLAGS
="-L$with_readline/lib"
4896 TERMCPPFLAGS
="-I$with_readline/include"
4897 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4898 TERMLIBS
="-lreadline $TERMLIBS"
4899 cat >> confdefs.h
<<\EOF
4900 #define HAVE_LIBREADLINE 1
4905 echo "$ac_t""no" 1>&6
4906 TERMLIBS
= CPPFLAGS
=$_cppflags
4910 echo "$ac_t""no" 1>&6
4919 echo "$ac_t""no" 1>&6
4926 # The following test taken from the cvs sources
4927 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4928 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4929 # libsocket.so which has a bad implementation of gethostbyname (it
4930 # only looks in /etc/hosts), so we only look for -lsocket if we need
4932 for ac_func
in connect
4934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4935 echo "configure:4936: checking for $ac_func" >&5
4936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 cat > conftest.
$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char $ac_func(); below. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4952 /* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4963 if { (eval echo configure
:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4965 eval "ac_cv_func_$ac_func=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.
$ac_ext >&5
4970 eval "ac_cv_func_$ac_func=no"
4975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4978 cat >> confdefs.h
<<EOF
4979 #define $ac_tr_func 1
4983 echo "$ac_t""no" 1>&6
4987 if test x
"$ac_cv_func_connect" = x
"no"; then
4990 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4991 echo "configure:4992: checking for printf in -lnsl_s" >&5
4992 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 ac_save_LIBS
="$LIBS"
4997 LIBS
="-lnsl_s $LIBS"
4998 cat > conftest.
$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5010 if { (eval echo configure
:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5012 eval "ac_cv_lib_$ac_lib_var=yes"
5014 echo "configure: failed program was:" >&5
5015 cat conftest.
$ac_ext >&5
5017 eval "ac_cv_lib_$ac_lib_var=no"
5020 LIBS
="$ac_save_LIBS"
5023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5024 echo "$ac_t""yes" 1>&6
5025 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5027 cat >> confdefs.h
<<EOF
5028 #define $ac_tr_lib 1
5031 LIBS
="-lnsl_s $LIBS"
5034 echo "$ac_t""no" 1>&6
5040 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5041 echo "configure:5042: checking for printf in -lnsl" >&5
5042 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 ac_save_LIBS
="$LIBS"
5048 cat > conftest.
$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5060 if { (eval echo configure
:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.
$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5070 LIBS
="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5077 cat >> confdefs.h
<<EOF
5078 #define $ac_tr_lib 1
5084 echo "$ac_t""no" 1>&6
5090 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5091 echo "configure:5092: checking for connect in -lsocket" >&5
5092 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS
="$LIBS"
5097 LIBS
="-lsocket $LIBS"
5098 cat > conftest.
$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5110 if { (eval echo configure
:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.
$ac_ext >&5
5117 eval "ac_cv_lib_$ac_lib_var=no"
5120 LIBS
="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5127 cat >> confdefs.h
<<EOF
5128 #define $ac_tr_lib 1
5131 LIBS
="-lsocket $LIBS"
5134 echo "$ac_t""no" 1>&6
5140 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5141 echo "configure:5142: checking for connect in -linet" >&5
5142 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 ac_save_LIBS
="$LIBS"
5148 cat > conftest.
$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5160 if { (eval echo configure
:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5162 eval "ac_cv_lib_$ac_lib_var=yes"
5164 echo "configure: failed program was:" >&5
5165 cat conftest.
$ac_ext >&5
5167 eval "ac_cv_lib_$ac_lib_var=no"
5170 LIBS
="$ac_save_LIBS"
5173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5174 echo "$ac_t""yes" 1>&6
5175 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5176 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5177 cat >> confdefs.h
<<EOF
5178 #define $ac_tr_lib 1
5184 echo "$ac_t""no" 1>&6
5188 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5189 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5190 # ac_cv_func_connect=yes
5191 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5192 cat >> confdefs.h
<<\EOF
5193 #define HAVE_CONNECT 1
5199 ###############################################
5200 # test for where we get get_yp_default_domain() from
5201 for ac_func
in yp_get_default_domain
5203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_func" >&5
5205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.
$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5211 /* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char $ac_func(); below. */
5214 /* Override any gcc2 internal prototype to avoid an error. */
5215 /* We use char because int might match the return type of a gcc2
5216 builtin and then its argument prototype would still apply. */
5221 /* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
5224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5232 if { (eval echo configure
:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5234 eval "ac_cv_func_$ac_func=yes"
5236 echo "configure: failed program was:" >&5
5237 cat conftest.
$ac_ext >&5
5239 eval "ac_cv_func_$ac_func=no"
5244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5246 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5247 cat >> confdefs.h
<<EOF
5248 #define $ac_tr_func 1
5252 echo "$ac_t""no" 1>&6
5256 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5257 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5258 echo "configure:5259: checking for yp_get_default_domain in -lnsl" >&5
5259 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 ac_save_LIBS
="$LIBS"
5265 cat > conftest.
$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5271 char yp_get_default_domain();
5274 yp_get_default_domain()
5277 if { (eval echo configure
:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5279 eval "ac_cv_lib_$ac_lib_var=yes"
5281 echo "configure: failed program was:" >&5
5282 cat conftest.
$ac_ext >&5
5284 eval "ac_cv_lib_$ac_lib_var=no"
5287 LIBS
="$ac_save_LIBS"
5290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5291 echo "$ac_t""yes" 1>&6
5293 cat >> confdefs.h
<<\EOF
5294 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5298 echo "$ac_t""no" 1>&6
5303 # Check if we have execl, if not we need to compile smbrun.
5304 for ac_func
in execl
5306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_func" >&5
5308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 cat > conftest.
$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 /* System header to define __stub macros and hopefully few prototypes,
5315 which can conflict with char $ac_func(); below. */
5317 /* Override any gcc2 internal prototype to avoid an error. */
5318 /* We use char because int might match the return type of a gcc2
5319 builtin and then its argument prototype would still apply. */
5324 /* The GNU C library defines this for functions which it implements
5325 to always fail with ENOSYS. Some functions are actually named
5326 something starting with __ and the normal name is an alias. */
5327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5335 if { (eval echo configure
:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5337 eval "ac_cv_func_$ac_func=yes"
5339 echo "configure: failed program was:" >&5
5340 cat conftest.
$ac_ext >&5
5342 eval "ac_cv_func_$ac_func=no"
5347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5350 cat >> confdefs.h
<<EOF
5351 #define $ac_tr_func 1
5355 echo "$ac_t""no" 1>&6
5359 if test x
"$ac_cv_func_execl" = x
"no"; then
5360 RUNPROG
="bin/smbrun"
5365 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_func" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char $ac_func(); below. */
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5385 /* The GNU C library defines this for functions which it implements
5386 to always fail with ENOSYS. Some functions are actually named
5387 something starting with __ and the normal name is an alias. */
5388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5396 if { (eval echo configure
:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5398 eval "ac_cv_func_$ac_func=yes"
5400 echo "configure: failed program was:" >&5
5401 cat conftest.
$ac_ext >&5
5403 eval "ac_cv_func_$ac_func=no"
5408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5409 echo "$ac_t""yes" 1>&6
5410 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5411 cat >> confdefs.h
<<EOF
5412 #define $ac_tr_func 1
5416 echo "$ac_t""no" 1>&6
5420 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_func" >&5
5424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 cat > conftest.
$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 /* System header to define __stub macros and hopefully few prototypes,
5431 which can conflict with char $ac_func(); below. */
5433 /* Override any gcc2 internal prototype to avoid an error. */
5434 /* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5440 /* The GNU C library defines this for functions which it implements
5441 to always fail with ENOSYS. Some functions are actually named
5442 something starting with __ and the normal name is an alias. */
5443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5451 if { (eval echo configure
:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5453 eval "ac_cv_func_$ac_func=yes"
5455 echo "configure: failed program was:" >&5
5456 cat conftest.
$ac_ext >&5
5458 eval "ac_cv_func_$ac_func=no"
5463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5466 cat >> confdefs.h
<<EOF
5467 #define $ac_tr_func 1
5471 echo "$ac_t""no" 1>&6
5475 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_func" >&5
5479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.
$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char $ac_func(); below. */
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5506 if { (eval echo configure
:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5508 eval "ac_cv_func_$ac_func=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.
$ac_ext >&5
5513 eval "ac_cv_func_$ac_func=no"
5518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5521 cat >> confdefs.h
<<EOF
5522 #define $ac_tr_func 1
5526 echo "$ac_t""no" 1>&6
5530 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_func" >&5
5534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.
$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func(); below. */
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5550 /* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5561 if { (eval echo configure
:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5563 eval "ac_cv_func_$ac_func=yes"
5565 echo "configure: failed program was:" >&5
5566 cat conftest.
$ac_ext >&5
5568 eval "ac_cv_func_$ac_func=no"
5573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5576 cat >> confdefs.h
<<EOF
5577 #define $ac_tr_func 1
5581 echo "$ac_t""no" 1>&6
5585 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5588 echo "configure:5589: checking for $ac_func" >&5
5589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5592 cat > conftest.
$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char $ac_func(); below. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5605 /* The GNU C library defines this for functions which it implements
5606 to always fail with ENOSYS. Some functions are actually named
5607 something starting with __ and the normal name is an alias. */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5616 if { (eval echo configure
:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5618 eval "ac_cv_func_$ac_func=yes"
5620 echo "configure: failed program was:" >&5
5621 cat conftest.
$ac_ext >&5
5623 eval "ac_cv_func_$ac_func=no"
5628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5629 echo "$ac_t""yes" 1>&6
5630 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5631 cat >> confdefs.h
<<EOF
5632 #define $ac_tr_func 1
5636 echo "$ac_t""no" 1>&6
5640 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.
$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5671 if { (eval echo configure
:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5673 eval "ac_cv_func_$ac_func=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 eval "ac_cv_func_$ac_func=no"
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h
<<EOF
5687 #define $ac_tr_func 1
5691 echo "$ac_t""no" 1>&6
5695 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_func" >&5
5699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5702 cat > conftest.
$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* System header to define __stub macros and hopefully few prototypes,
5706 which can conflict with char $ac_func(); below. */
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5726 if { (eval echo configure
:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5728 eval "ac_cv_func_$ac_func=yes"
5730 echo "configure: failed program was:" >&5
5731 cat conftest.
$ac_ext >&5
5733 eval "ac_cv_func_$ac_func=no"
5738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5741 cat >> confdefs.h
<<EOF
5742 #define $ac_tr_func 1
5746 echo "$ac_t""no" 1>&6
5750 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 cat > conftest.
$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5781 if { (eval echo configure
:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5783 eval "ac_cv_func_$ac_func=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.
$ac_ext >&5
5788 eval "ac_cv_func_$ac_func=no"
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h
<<EOF
5797 #define $ac_tr_func 1
5801 echo "$ac_t""no" 1>&6
5805 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5808 echo "configure:5809: checking for $ac_func" >&5
5809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5812 cat > conftest.
$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char $ac_func(); below. */
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5836 if { (eval echo configure
:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5838 eval "ac_cv_func_$ac_func=yes"
5840 echo "configure: failed program was:" >&5
5841 cat conftest.
$ac_ext >&5
5843 eval "ac_cv_func_$ac_func=no"
5848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5851 cat >> confdefs.h
<<EOF
5852 #define $ac_tr_func 1
5856 echo "$ac_t""no" 1>&6
5860 for ac_func
in syslog vsyslog
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 cat > conftest.
$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5891 if { (eval echo configure
:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5893 eval "ac_cv_func_$ac_func=yes"
5895 echo "configure: failed program was:" >&5
5896 cat conftest.
$ac_ext >&5
5898 eval "ac_cv_func_$ac_func=no"
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5906 cat >> confdefs.h
<<EOF
5907 #define $ac_tr_func 1
5911 echo "$ac_t""no" 1>&6
5916 # syscall() is needed for smbwrapper.
5917 for ac_func
in syscall
5919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5920 echo "configure:5921: checking for $ac_func" >&5
5921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5924 cat > conftest.
$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 /* System header to define __stub macros and hopefully few prototypes,
5928 which can conflict with char $ac_func(); below. */
5930 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5937 /* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5948 if { (eval echo configure
:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5950 eval "ac_cv_func_$ac_func=yes"
5952 echo "configure: failed program was:" >&5
5953 cat conftest.
$ac_ext >&5
5955 eval "ac_cv_func_$ac_func=no"
5960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5961 echo "$ac_t""yes" 1>&6
5962 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5963 cat >> confdefs.h
<<EOF
5964 #define $ac_tr_func 1
5968 echo "$ac_t""no" 1>&6
5973 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5976 echo "configure:5977: checking for $ac_func" >&5
5977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 cat > conftest.
$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char $ac_func(); below. */
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6004 if { (eval echo configure
:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6006 eval "ac_cv_func_$ac_func=yes"
6008 echo "configure: failed program was:" >&5
6009 cat conftest.
$ac_ext >&5
6011 eval "ac_cv_func_$ac_func=no"
6016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6019 cat >> confdefs.h
<<EOF
6020 #define $ac_tr_func 1
6024 echo "$ac_t""no" 1>&6
6028 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6031 echo "configure:6032: checking for $ac_func" >&5
6032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6035 cat > conftest.
$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* System header to define __stub macros and hopefully few prototypes,
6039 which can conflict with char $ac_func(); below. */
6041 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6048 /* The GNU C library defines this for functions which it implements
6049 to always fail with ENOSYS. Some functions are actually named
6050 something starting with __ and the normal name is an alias. */
6051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6059 if { (eval echo configure
:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6061 eval "ac_cv_func_$ac_func=yes"
6063 echo "configure: failed program was:" >&5
6064 cat conftest.
$ac_ext >&5
6066 eval "ac_cv_func_$ac_func=no"
6071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6073 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6074 cat >> confdefs.h
<<EOF
6075 #define $ac_tr_func 1
6079 echo "$ac_t""no" 1>&6
6083 for ac_func
in __getcwd _getcwd
6085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_func" >&5
6087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 cat > conftest.
$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char $ac_func(); below. */
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114 if { (eval echo configure
:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6116 eval "ac_cv_func_$ac_func=yes"
6118 echo "configure: failed program was:" >&5
6119 cat conftest.
$ac_ext >&5
6121 eval "ac_cv_func_$ac_func=no"
6126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6129 cat >> confdefs.h
<<EOF
6130 #define $ac_tr_func 1
6134 echo "$ac_t""no" 1>&6
6138 for ac_func
in __xstat __fxstat __lxstat
6140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_func" >&5
6142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.
$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func(); below. */
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169 if { (eval echo configure
:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6171 eval "ac_cv_func_$ac_func=yes"
6173 echo "configure: failed program was:" >&5
6174 cat conftest.
$ac_ext >&5
6176 eval "ac_cv_func_$ac_func=no"
6181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >> confdefs.h
<<EOF
6185 #define $ac_tr_func 1
6189 echo "$ac_t""no" 1>&6
6193 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_func" >&5
6197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6200 cat > conftest.
$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char $ac_func(); below. */
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6213 /* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6224 if { (eval echo configure
:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6226 eval "ac_cv_func_$ac_func=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.
$ac_ext >&5
6231 eval "ac_cv_func_$ac_func=no"
6236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6239 cat >> confdefs.h
<<EOF
6240 #define $ac_tr_func 1
6244 echo "$ac_t""no" 1>&6
6248 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6251 echo "configure:6252: checking for $ac_func" >&5
6252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6255 cat > conftest.
$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6261 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 if { (eval echo configure
:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6281 eval "ac_cv_func_$ac_func=yes"
6283 echo "configure: failed program was:" >&5
6284 cat conftest.
$ac_ext >&5
6286 eval "ac_cv_func_$ac_func=no"
6291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6294 cat >> confdefs.h
<<EOF
6295 #define $ac_tr_func 1
6299 echo "$ac_t""no" 1>&6
6303 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6306 echo "configure:6307: checking for $ac_func" >&5
6307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6308 echo $ac_n "(cached) $ac_c" 1>&6
6310 cat > conftest.
$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6313 /* System header to define __stub macros and hopefully few prototypes,
6314 which can conflict with char $ac_func(); below. */
6316 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6323 /* The GNU C library defines this for functions which it implements
6324 to always fail with ENOSYS. Some functions are actually named
6325 something starting with __ and the normal name is an alias. */
6326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6334 if { (eval echo configure
:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6336 eval "ac_cv_func_$ac_func=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.
$ac_ext >&5
6341 eval "ac_cv_func_$ac_func=no"
6346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6347 echo "$ac_t""yes" 1>&6
6348 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6349 cat >> confdefs.h
<<EOF
6350 #define $ac_tr_func 1
6354 echo "$ac_t""no" 1>&6
6358 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6361 echo "configure:6362: checking for $ac_func" >&5
6362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6363 echo $ac_n "(cached) $ac_c" 1>&6
6365 cat > conftest.
$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6368 /* System header to define __stub macros and hopefully few prototypes,
6369 which can conflict with char $ac_func(); below. */
6371 /* Override any gcc2 internal prototype to avoid an error. */
6372 /* We use char because int might match the return type of a gcc2
6373 builtin and then its argument prototype would still apply. */
6378 /* The GNU C library defines this for functions which it implements
6379 to always fail with ENOSYS. Some functions are actually named
6380 something starting with __ and the normal name is an alias. */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6389 if { (eval echo configure
:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6391 eval "ac_cv_func_$ac_func=yes"
6393 echo "configure: failed program was:" >&5
6394 cat conftest.
$ac_ext >&5
6396 eval "ac_cv_func_$ac_func=no"
6401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6402 echo "$ac_t""yes" 1>&6
6403 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6404 cat >> confdefs.h
<<EOF
6405 #define $ac_tr_func 1
6409 echo "$ac_t""no" 1>&6
6413 for ac_func
in _write __write _fork __fork
6415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6416 echo "configure:6417: checking for $ac_func" >&5
6417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6420 cat > conftest.
$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char $ac_func(); below. */
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6433 /* The GNU C library defines this for functions which it implements
6434 to always fail with ENOSYS. Some functions are actually named
6435 something starting with __ and the normal name is an alias. */
6436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 if { (eval echo configure
:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6446 eval "ac_cv_func_$ac_func=yes"
6448 echo "configure: failed program was:" >&5
6449 cat conftest.
$ac_ext >&5
6451 eval "ac_cv_func_$ac_func=no"
6456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6458 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6459 cat >> confdefs.h
<<EOF
6460 #define $ac_tr_func 1
6464 echo "$ac_t""no" 1>&6
6468 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6471 echo "configure:6472: checking for $ac_func" >&5
6472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6475 cat > conftest.
$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char $ac_func(); below. */
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 /* We use char because int might match the return type of a gcc2
6483 builtin and then its argument prototype would still apply. */
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6499 if { (eval echo configure
:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6501 eval "ac_cv_func_$ac_func=yes"
6503 echo "configure: failed program was:" >&5
6504 cat conftest.
$ac_ext >&5
6506 eval "ac_cv_func_$ac_func=no"
6511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6512 echo "$ac_t""yes" 1>&6
6513 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6514 cat >> confdefs.h
<<EOF
6515 #define $ac_tr_func 1
6519 echo "$ac_t""no" 1>&6
6523 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6526 echo "configure:6527: checking for $ac_func" >&5
6527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6528 echo $ac_n "(cached) $ac_c" 1>&6
6530 cat > conftest.
$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 /* System header to define __stub macros and hopefully few prototypes,
6534 which can conflict with char $ac_func(); below. */
6536 /* Override any gcc2 internal prototype to avoid an error. */
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6543 /* The GNU C library defines this for functions which it implements
6544 to always fail with ENOSYS. Some functions are actually named
6545 something starting with __ and the normal name is an alias. */
6546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6554 if { (eval echo configure
:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6556 eval "ac_cv_func_$ac_func=yes"
6558 echo "configure: failed program was:" >&5
6559 cat conftest.
$ac_ext >&5
6561 eval "ac_cv_func_$ac_func=no"
6566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6567 echo "$ac_t""yes" 1>&6
6568 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6569 cat >> confdefs.h
<<EOF
6570 #define $ac_tr_func 1
6574 echo "$ac_t""no" 1>&6
6578 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6581 echo "configure:6582: checking for $ac_func" >&5
6582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6583 echo $ac_n "(cached) $ac_c" 1>&6
6585 cat > conftest.
$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* System header to define __stub macros and hopefully few prototypes,
6589 which can conflict with char $ac_func(); below. */
6591 /* Override any gcc2 internal prototype to avoid an error. */
6592 /* We use char because int might match the return type of a gcc2
6593 builtin and then its argument prototype would still apply. */
6598 /* The GNU C library defines this for functions which it implements
6599 to always fail with ENOSYS. Some functions are actually named
6600 something starting with __ and the normal name is an alias. */
6601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 if { (eval echo configure
:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6611 eval "ac_cv_func_$ac_func=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.
$ac_ext >&5
6616 eval "ac_cv_func_$ac_func=no"
6621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6624 cat >> confdefs.h
<<EOF
6625 #define $ac_tr_func 1
6629 echo "$ac_t""no" 1>&6
6633 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6636 echo "configure:6637: checking for $ac_func" >&5
6637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6640 cat > conftest.
$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6643 /* System header to define __stub macros and hopefully few prototypes,
6644 which can conflict with char $ac_func(); below. */
6646 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6653 /* The GNU C library defines this for functions which it implements
6654 to always fail with ENOSYS. Some functions are actually named
6655 something starting with __ and the normal name is an alias. */
6656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6664 if { (eval echo configure
:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6666 eval "ac_cv_func_$ac_func=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.
$ac_ext >&5
6671 eval "ac_cv_func_$ac_func=no"
6676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6677 echo "$ac_t""yes" 1>&6
6678 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6679 cat >> confdefs.h
<<EOF
6680 #define $ac_tr_func 1
6684 echo "$ac_t""no" 1>&6
6688 for ac_func
in open64 _open64 __open64 creat64
6690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6691 echo "configure:6692: checking for $ac_func" >&5
6692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6695 cat > conftest.
$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* System header to define __stub macros and hopefully few prototypes,
6699 which can conflict with char $ac_func(); below. */
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6719 if { (eval echo configure
:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6721 eval "ac_cv_func_$ac_func=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.
$ac_ext >&5
6726 eval "ac_cv_func_$ac_func=no"
6731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6734 cat >> confdefs.h
<<EOF
6735 #define $ac_tr_func 1
6739 echo "$ac_t""no" 1>&6
6745 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6748 if test x
$ac_cv_func_stat64 = xno
; then
6749 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6750 echo "configure:6751: checking for stat64 in <sys/stat.h>" >&5
6751 cat > conftest.
$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6755 #if defined(HAVE_UNISTD_H)
6758 #include <sys/stat.h>
6761 struct stat64 st64; exit(stat64(".",&st64));
6764 if { (eval echo configure
:6765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6766 ac_cv_func_stat64
=yes
6768 echo "configure: failed program was:" >&5
6769 cat conftest.
$ac_ext >&5
6772 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6773 if test x
$ac_cv_func_stat64 = xyes
; then
6774 cat >> confdefs.h
<<\EOF
6775 #define HAVE_STAT64 1
6781 if test x
$ac_cv_func_lstat64 = xno
; then
6782 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6783 echo "configure:6784: checking for lstat64 in <sys/stat.h>" >&5
6784 cat > conftest.
$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6788 #if defined(HAVE_UNISTD_H)
6791 #include <sys/stat.h>
6794 struct stat64 st64; exit(lstat64(".",&st64));
6797 if { (eval echo configure
:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6799 ac_cv_func_lstat64
=yes
6801 echo "configure: failed program was:" >&5
6802 cat conftest.
$ac_ext >&5
6805 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6806 if test x
$ac_cv_func_lstat64 = xyes
; then
6807 cat >> confdefs.h
<<\EOF
6808 #define HAVE_LSTAT64 1
6814 if test x
$ac_cv_func_fstat64 = xno
; then
6815 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6816 echo "configure:6817: checking for fstat64 in <sys/stat.h>" >&5
6817 cat > conftest.
$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6821 #if defined(HAVE_UNISTD_H)
6824 #include <sys/stat.h>
6827 struct stat64 st64; exit(fstat64(0,&st64));
6830 if { (eval echo configure
:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6832 ac_cv_func_fstat64
=yes
6834 echo "configure: failed program was:" >&5
6835 cat conftest.
$ac_ext >&5
6838 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6839 if test x
$ac_cv_func_fstat64 = xyes
; then
6840 cat >> confdefs.h
<<\EOF
6841 #define HAVE_FSTAT64 1
6848 # If no strcasecmp, check for it in some known places
6849 # It is in -lresolv on ReliantUNIX and UnixWare
6850 # -lresolve *must* follow -lnsl for name resolution to work properly
6853 if test x
$ac_cv_func_strcasecmp = xno
; then
6854 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6855 echo "configure:6856: checking for strcasecmp in -lresolv" >&5
6856 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6860 ac_save_LIBS
="$LIBS"
6861 LIBS
="-lresolv $LIBS"
6862 cat > conftest.
$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6874 if { (eval echo configure
:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6876 eval "ac_cv_lib_$ac_lib_var=yes"
6878 echo "configure: failed program was:" >&5
6879 cat conftest.
$ac_ext >&5
6881 eval "ac_cv_lib_$ac_lib_var=no"
6884 LIBS
="$ac_save_LIBS"
6887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6888 echo "$ac_t""yes" 1>&6
6889 LIBS
="$LIBS -lresolv"
6890 cat >> confdefs.h
<<\EOF
6891 #define HAVE_STRCASECMP 1
6895 echo "$ac_t""no" 1>&6
6901 # Check for the functions putprpwnam, set_auth_parameters,
6902 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6903 # Needed for OSF1 and HPUX.
6907 *-lsecurity*) for ac_func
in putprpwnam
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6914 cat > conftest.
$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func(); below. */
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6938 if { (eval echo configure
:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6940 eval "ac_cv_func_$ac_func=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.
$ac_ext >&5
6945 eval "ac_cv_func_$ac_func=no"
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953 cat >> confdefs.h
<<EOF
6954 #define $ac_tr_func 1
6958 echo "$ac_t""no" 1>&6
6962 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6963 echo "configure:6964: checking for putprpwnam in -lsecurity" >&5
6964 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 ac_save_LIBS
="$LIBS"
6969 LIBS
="-lsecurity $LIBS"
6970 cat > conftest.
$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6982 if { (eval echo configure
:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6986 echo "configure: failed program was:" >&5
6987 cat conftest.
$ac_ext >&5
6989 eval "ac_cv_lib_$ac_lib_var=no"
6992 LIBS
="$ac_save_LIBS"
6995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6999 cat >> confdefs.h
<<EOF
7000 #define $ac_tr_lib 1
7003 LIBS
="-lsecurity $LIBS"
7006 echo "$ac_t""no" 1>&6
7009 for ac_func
in putprpwnam
7011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7012 echo "configure:7013: checking for $ac_func" >&5
7013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 cat > conftest.
$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7019 /* System header to define __stub macros and hopefully few prototypes,
7020 which can conflict with char $ac_func(); below. */
7022 /* Override any gcc2 internal prototype to avoid an error. */
7023 /* We use char because int might match the return type of a gcc2
7024 builtin and then its argument prototype would still apply. */
7029 /* The GNU C library defines this for functions which it implements
7030 to always fail with ENOSYS. Some functions are actually named
7031 something starting with __ and the normal name is an alias. */
7032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7040 if { (eval echo configure
:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7042 eval "ac_cv_func_$ac_func=yes"
7044 echo "configure: failed program was:" >&5
7045 cat conftest.
$ac_ext >&5
7047 eval "ac_cv_func_$ac_func=no"
7052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7055 cat >> confdefs.h
<<EOF
7056 #define $ac_tr_func 1
7060 echo "$ac_t""no" 1>&6
7068 *-lsec*) for ac_func
in putprpwnam
7070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7071 echo "configure:7072: checking for $ac_func" >&5
7072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7075 cat > conftest.
$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func(); below. */
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7088 /* The GNU C library defines this for functions which it implements
7089 to always fail with ENOSYS. Some functions are actually named
7090 something starting with __ and the normal name is an alias. */
7091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7099 if { (eval echo configure
:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7101 eval "ac_cv_func_$ac_func=yes"
7103 echo "configure: failed program was:" >&5
7104 cat conftest.
$ac_ext >&5
7106 eval "ac_cv_func_$ac_func=no"
7111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7114 cat >> confdefs.h
<<EOF
7115 #define $ac_tr_func 1
7119 echo "$ac_t""no" 1>&6
7123 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7124 echo "configure:7125: checking for putprpwnam in -lsec" >&5
7125 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7129 ac_save_LIBS
="$LIBS"
7131 cat > conftest.
$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7143 if { (eval echo configure
:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7145 eval "ac_cv_lib_$ac_lib_var=yes"
7147 echo "configure: failed program was:" >&5
7148 cat conftest.
$ac_ext >&5
7150 eval "ac_cv_lib_$ac_lib_var=no"
7153 LIBS
="$ac_save_LIBS"
7156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7158 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7159 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7160 cat >> confdefs.h
<<EOF
7161 #define $ac_tr_lib 1
7167 echo "$ac_t""no" 1>&6
7170 for ac_func
in putprpwnam
7172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7173 echo "configure:7174: checking for $ac_func" >&5
7174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7177 cat > conftest.
$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7180 /* System header to define __stub macros and hopefully few prototypes,
7181 which can conflict with char $ac_func(); below. */
7183 /* Override any gcc2 internal prototype to avoid an error. */
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7190 /* The GNU C library defines this for functions which it implements
7191 to always fail with ENOSYS. Some functions are actually named
7192 something starting with __ and the normal name is an alias. */
7193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7201 if { (eval echo configure
:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7203 eval "ac_cv_func_$ac_func=yes"
7205 echo "configure: failed program was:" >&5
7206 cat conftest.
$ac_ext >&5
7208 eval "ac_cv_func_$ac_func=no"
7213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7216 cat >> confdefs.h
<<EOF
7217 #define $ac_tr_func 1
7221 echo "$ac_t""no" 1>&6
7230 *-lsecurity*) for ac_func
in set_auth_parameters
7232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7233 echo "configure:7234: checking for $ac_func" >&5
7234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7237 cat > conftest.
$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* System header to define __stub macros and hopefully few prototypes,
7241 which can conflict with char $ac_func(); below. */
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7250 /* The GNU C library defines this for functions which it implements
7251 to always fail with ENOSYS. Some functions are actually named
7252 something starting with __ and the normal name is an alias. */
7253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7261 if { (eval echo configure
:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7263 eval "ac_cv_func_$ac_func=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.
$ac_ext >&5
7268 eval "ac_cv_func_$ac_func=no"
7273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7276 cat >> confdefs.h
<<EOF
7277 #define $ac_tr_func 1
7281 echo "$ac_t""no" 1>&6
7285 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7286 echo "configure:7287: checking for set_auth_parameters in -lsecurity" >&5
7287 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 ac_save_LIBS
="$LIBS"
7292 LIBS
="-lsecurity $LIBS"
7293 cat > conftest.
$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char set_auth_parameters();
7302 set_auth_parameters()
7305 if { (eval echo configure
:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7307 eval "ac_cv_lib_$ac_lib_var=yes"
7309 echo "configure: failed program was:" >&5
7310 cat conftest.
$ac_ext >&5
7312 eval "ac_cv_lib_$ac_lib_var=no"
7315 LIBS
="$ac_save_LIBS"
7318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7319 echo "$ac_t""yes" 1>&6
7320 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7322 cat >> confdefs.h
<<EOF
7323 #define $ac_tr_lib 1
7326 LIBS
="-lsecurity $LIBS"
7329 echo "$ac_t""no" 1>&6
7332 for ac_func
in set_auth_parameters
7334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7335 echo "configure:7336: checking for $ac_func" >&5
7336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7339 cat > conftest.
$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func(); below. */
7345 /* Override any gcc2 internal prototype to avoid an error. */
7346 /* We use char because int might match the return type of a gcc2
7347 builtin and then its argument prototype would still apply. */
7352 /* The GNU C library defines this for functions which it implements
7353 to always fail with ENOSYS. Some functions are actually named
7354 something starting with __ and the normal name is an alias. */
7355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7363 if { (eval echo configure
:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7365 eval "ac_cv_func_$ac_func=yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.
$ac_ext >&5
7370 eval "ac_cv_func_$ac_func=no"
7375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7377 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7378 cat >> confdefs.h
<<EOF
7379 #define $ac_tr_func 1
7383 echo "$ac_t""no" 1>&6
7391 *-lsec*) for ac_func
in set_auth_parameters
7393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7394 echo "configure:7395: checking for $ac_func" >&5
7395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7398 cat > conftest.
$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* System header to define __stub macros and hopefully few prototypes,
7402 which can conflict with char $ac_func(); below. */
7404 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7411 /* The GNU C library defines this for functions which it implements
7412 to always fail with ENOSYS. Some functions are actually named
7413 something starting with __ and the normal name is an alias. */
7414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7422 if { (eval echo configure
:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7424 eval "ac_cv_func_$ac_func=yes"
7426 echo "configure: failed program was:" >&5
7427 cat conftest.
$ac_ext >&5
7429 eval "ac_cv_func_$ac_func=no"
7434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7437 cat >> confdefs.h
<<EOF
7438 #define $ac_tr_func 1
7442 echo "$ac_t""no" 1>&6
7446 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7447 echo "configure:7448: checking for set_auth_parameters in -lsec" >&5
7448 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 ac_save_LIBS
="$LIBS"
7454 cat > conftest.
$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7460 char set_auth_parameters();
7463 set_auth_parameters()
7466 if { (eval echo configure
:7467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7468 eval "ac_cv_lib_$ac_lib_var=yes"
7470 echo "configure: failed program was:" >&5
7471 cat conftest.
$ac_ext >&5
7473 eval "ac_cv_lib_$ac_lib_var=no"
7476 LIBS
="$ac_save_LIBS"
7479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7480 echo "$ac_t""yes" 1>&6
7481 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7482 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7483 cat >> confdefs.h
<<EOF
7484 #define $ac_tr_lib 1
7490 echo "$ac_t""no" 1>&6
7493 for ac_func
in set_auth_parameters
7495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_func" >&5
7497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7500 cat > conftest.
$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7503 /* System header to define __stub macros and hopefully few prototypes,
7504 which can conflict with char $ac_func(); below. */
7506 /* Override any gcc2 internal prototype to avoid an error. */
7507 /* We use char because int might match the return type of a gcc2
7508 builtin and then its argument prototype would still apply. */
7513 /* The GNU C library defines this for functions which it implements
7514 to always fail with ENOSYS. Some functions are actually named
7515 something starting with __ and the normal name is an alias. */
7516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7524 if { (eval echo configure
:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7526 eval "ac_cv_func_$ac_func=yes"
7528 echo "configure: failed program was:" >&5
7529 cat conftest.
$ac_ext >&5
7531 eval "ac_cv_func_$ac_func=no"
7536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7537 echo "$ac_t""yes" 1>&6
7538 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7539 cat >> confdefs.h
<<EOF
7540 #define $ac_tr_func 1
7544 echo "$ac_t""no" 1>&6
7552 # UnixWare 7.x has its getspnam in -lgen
7554 *-lgen*) for ac_func
in getspnam
7556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7557 echo "configure:7558: checking for $ac_func" >&5
7558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7561 cat > conftest.
$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func(); below. */
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7574 /* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7585 if { (eval echo configure
:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7587 eval "ac_cv_func_$ac_func=yes"
7589 echo "configure: failed program was:" >&5
7590 cat conftest.
$ac_ext >&5
7592 eval "ac_cv_func_$ac_func=no"
7597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7600 cat >> confdefs.h
<<EOF
7601 #define $ac_tr_func 1
7605 echo "$ac_t""no" 1>&6
7609 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7610 echo "configure:7611: checking for getspnam in -lgen" >&5
7611 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7615 ac_save_LIBS
="$LIBS"
7617 cat > conftest.
$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7620 /* Override any gcc2 internal prototype to avoid an error. */
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7629 if { (eval echo configure
:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7631 eval "ac_cv_lib_$ac_lib_var=yes"
7633 echo "configure: failed program was:" >&5
7634 cat conftest.
$ac_ext >&5
7636 eval "ac_cv_lib_$ac_lib_var=no"
7639 LIBS
="$ac_save_LIBS"
7642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7643 echo "$ac_t""yes" 1>&6
7644 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7645 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7646 cat >> confdefs.h
<<EOF
7647 #define $ac_tr_lib 1
7653 echo "$ac_t""no" 1>&6
7656 for ac_func
in getspnam
7658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7659 echo "configure:7660: checking for $ac_func" >&5
7660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7663 cat > conftest.
$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* System header to define __stub macros and hopefully few prototypes,
7667 which can conflict with char $ac_func(); below. */
7669 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7676 /* The GNU C library defines this for functions which it implements
7677 to always fail with ENOSYS. Some functions are actually named
7678 something starting with __ and the normal name is an alias. */
7679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7687 if { (eval echo configure
:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7689 eval "ac_cv_func_$ac_func=yes"
7691 echo "configure: failed program was:" >&5
7692 cat conftest.
$ac_ext >&5
7694 eval "ac_cv_func_$ac_func=no"
7699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7702 cat >> confdefs.h
<<EOF
7703 #define $ac_tr_func 1
7707 echo "$ac_t""no" 1>&6
7716 *-lsecurity*) for ac_func
in getspnam
7718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7719 echo "configure:7720: checking for $ac_func" >&5
7720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7723 cat > conftest.
$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* System header to define __stub macros and hopefully few prototypes,
7727 which can conflict with char $ac_func(); below. */
7729 /* Override any gcc2 internal prototype to avoid an error. */
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7747 if { (eval echo configure
:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7749 eval "ac_cv_func_$ac_func=yes"
7751 echo "configure: failed program was:" >&5
7752 cat conftest.
$ac_ext >&5
7754 eval "ac_cv_func_$ac_func=no"
7759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7762 cat >> confdefs.h
<<EOF
7763 #define $ac_tr_func 1
7767 echo "$ac_t""no" 1>&6
7771 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7772 echo "configure:7773: checking for getspnam in -lsecurity" >&5
7773 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7777 ac_save_LIBS
="$LIBS"
7778 LIBS
="-lsecurity $LIBS"
7779 cat > conftest.
$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 /* Override any gcc2 internal prototype to avoid an error. */
7783 /* We use char because int might match the return type of a gcc2
7784 builtin and then its argument prototype would still apply. */
7791 if { (eval echo configure
:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7793 eval "ac_cv_lib_$ac_lib_var=yes"
7795 echo "configure: failed program was:" >&5
7796 cat conftest.
$ac_ext >&5
7798 eval "ac_cv_lib_$ac_lib_var=no"
7801 LIBS
="$ac_save_LIBS"
7804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7805 echo "$ac_t""yes" 1>&6
7806 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7808 cat >> confdefs.h
<<EOF
7809 #define $ac_tr_lib 1
7812 LIBS
="-lsecurity $LIBS"
7815 echo "$ac_t""no" 1>&6
7818 for ac_func
in getspnam
7820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_func" >&5
7822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7825 cat > conftest.
$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* System header to define __stub macros and hopefully few prototypes,
7829 which can conflict with char $ac_func(); below. */
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7838 /* The GNU C library defines this for functions which it implements
7839 to always fail with ENOSYS. Some functions are actually named
7840 something starting with __ and the normal name is an alias. */
7841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7849 if { (eval echo configure
:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7851 eval "ac_cv_func_$ac_func=yes"
7853 echo "configure: failed program was:" >&5
7854 cat conftest.
$ac_ext >&5
7856 eval "ac_cv_func_$ac_func=no"
7861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7864 cat >> confdefs.h
<<EOF
7865 #define $ac_tr_func 1
7869 echo "$ac_t""no" 1>&6
7877 *-lsec*) for ac_func
in getspnam
7879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7880 echo "configure:7881: checking for $ac_func" >&5
7881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7884 cat > conftest.
$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* System header to define __stub macros and hopefully few prototypes,
7888 which can conflict with char $ac_func(); below. */
7890 /* Override any gcc2 internal prototype to avoid an error. */
7891 /* We use char because int might match the return type of a gcc2
7892 builtin and then its argument prototype would still apply. */
7897 /* The GNU C library defines this for functions which it implements
7898 to always fail with ENOSYS. Some functions are actually named
7899 something starting with __ and the normal name is an alias. */
7900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7908 if { (eval echo configure
:7909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7910 eval "ac_cv_func_$ac_func=yes"
7912 echo "configure: failed program was:" >&5
7913 cat conftest.
$ac_ext >&5
7915 eval "ac_cv_func_$ac_func=no"
7920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7923 cat >> confdefs.h
<<EOF
7924 #define $ac_tr_func 1
7928 echo "$ac_t""no" 1>&6
7932 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7933 echo "configure:7934: checking for getspnam in -lsec" >&5
7934 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7938 ac_save_LIBS
="$LIBS"
7940 cat > conftest.
$ac_ext <<EOF
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7943 /* Override any gcc2 internal prototype to avoid an error. */
7944 /* We use char because int might match the return type of a gcc2
7945 builtin and then its argument prototype would still apply. */
7952 if { (eval echo configure
:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7954 eval "ac_cv_lib_$ac_lib_var=yes"
7956 echo "configure: failed program was:" >&5
7957 cat conftest.
$ac_ext >&5
7959 eval "ac_cv_lib_$ac_lib_var=no"
7962 LIBS
="$ac_save_LIBS"
7965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7966 echo "$ac_t""yes" 1>&6
7967 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7969 cat >> confdefs.h
<<EOF
7970 #define $ac_tr_lib 1
7976 echo "$ac_t""no" 1>&6
7979 for ac_func
in getspnam
7981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_func" >&5
7983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 cat > conftest.
$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* System header to define __stub macros and hopefully few prototypes,
7990 which can conflict with char $ac_func(); below. */
7992 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
7999 /* The GNU C library defines this for functions which it implements
8000 to always fail with ENOSYS. Some functions are actually named
8001 something starting with __ and the normal name is an alias. */
8002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8010 if { (eval echo configure
:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8012 eval "ac_cv_func_$ac_func=yes"
8014 echo "configure: failed program was:" >&5
8015 cat conftest.
$ac_ext >&5
8017 eval "ac_cv_func_$ac_func=no"
8022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8023 echo "$ac_t""yes" 1>&6
8024 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8025 cat >> confdefs.h
<<EOF
8026 #define $ac_tr_func 1
8030 echo "$ac_t""no" 1>&6
8039 *-lsecurity*) for ac_func
in bigcrypt
8041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8042 echo "configure:8043: checking for $ac_func" >&5
8043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8046 cat > conftest.
$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func(); below. */
8052 /* Override any gcc2 internal prototype to avoid an error. */
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8070 if { (eval echo configure
:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8072 eval "ac_cv_func_$ac_func=yes"
8074 echo "configure: failed program was:" >&5
8075 cat conftest.
$ac_ext >&5
8077 eval "ac_cv_func_$ac_func=no"
8082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8083 echo "$ac_t""yes" 1>&6
8084 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8085 cat >> confdefs.h
<<EOF
8086 #define $ac_tr_func 1
8090 echo "$ac_t""no" 1>&6
8094 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8095 echo "configure:8096: checking for bigcrypt in -lsecurity" >&5
8096 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8100 ac_save_LIBS
="$LIBS"
8101 LIBS
="-lsecurity $LIBS"
8102 cat > conftest.
$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8114 if { (eval echo configure
:8115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8116 eval "ac_cv_lib_$ac_lib_var=yes"
8118 echo "configure: failed program was:" >&5
8119 cat conftest.
$ac_ext >&5
8121 eval "ac_cv_lib_$ac_lib_var=no"
8124 LIBS
="$ac_save_LIBS"
8127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8128 echo "$ac_t""yes" 1>&6
8129 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8131 cat >> confdefs.h
<<EOF
8132 #define $ac_tr_lib 1
8135 LIBS
="-lsecurity $LIBS"
8138 echo "$ac_t""no" 1>&6
8141 for ac_func
in bigcrypt
8143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8144 echo "configure:8145: checking for $ac_func" >&5
8145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8148 cat > conftest.
$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char $ac_func(); below. */
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8161 /* The GNU C library defines this for functions which it implements
8162 to always fail with ENOSYS. Some functions are actually named
8163 something starting with __ and the normal name is an alias. */
8164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8172 if { (eval echo configure
:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8174 eval "ac_cv_func_$ac_func=yes"
8176 echo "configure: failed program was:" >&5
8177 cat conftest.
$ac_ext >&5
8179 eval "ac_cv_func_$ac_func=no"
8184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8187 cat >> confdefs.h
<<EOF
8188 #define $ac_tr_func 1
8192 echo "$ac_t""no" 1>&6
8200 *-lsec*) for ac_func
in bigcrypt
8202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8203 echo "configure:8204: checking for $ac_func" >&5
8204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8207 cat > conftest.
$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8210 /* System header to define __stub macros and hopefully few prototypes,
8211 which can conflict with char $ac_func(); below. */
8213 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8220 /* The GNU C library defines this for functions which it implements
8221 to always fail with ENOSYS. Some functions are actually named
8222 something starting with __ and the normal name is an alias. */
8223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8231 if { (eval echo configure
:8232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8233 eval "ac_cv_func_$ac_func=yes"
8235 echo "configure: failed program was:" >&5
8236 cat conftest.
$ac_ext >&5
8238 eval "ac_cv_func_$ac_func=no"
8243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8244 echo "$ac_t""yes" 1>&6
8245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8246 cat >> confdefs.h
<<EOF
8247 #define $ac_tr_func 1
8251 echo "$ac_t""no" 1>&6
8255 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8256 echo "configure:8257: checking for bigcrypt in -lsec" >&5
8257 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 ac_save_LIBS
="$LIBS"
8263 cat > conftest.
$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8275 if { (eval echo configure
:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8277 eval "ac_cv_lib_$ac_lib_var=yes"
8279 echo "configure: failed program was:" >&5
8280 cat conftest.
$ac_ext >&5
8282 eval "ac_cv_lib_$ac_lib_var=no"
8285 LIBS
="$ac_save_LIBS"
8288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8289 echo "$ac_t""yes" 1>&6
8290 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8292 cat >> confdefs.h
<<EOF
8293 #define $ac_tr_lib 1
8299 echo "$ac_t""no" 1>&6
8302 for ac_func
in bigcrypt
8304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8305 echo "configure:8306: checking for $ac_func" >&5
8306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8309 cat > conftest.
$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8312 /* System header to define __stub macros and hopefully few prototypes,
8313 which can conflict with char $ac_func(); below. */
8315 /* Override any gcc2 internal prototype to avoid an error. */
8316 /* We use char because int might match the return type of a gcc2
8317 builtin and then its argument prototype would still apply. */
8322 /* The GNU C library defines this for functions which it implements
8323 to always fail with ENOSYS. Some functions are actually named
8324 something starting with __ and the normal name is an alias. */
8325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8333 if { (eval echo configure
:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8335 eval "ac_cv_func_$ac_func=yes"
8337 echo "configure: failed program was:" >&5
8338 cat conftest.
$ac_ext >&5
8340 eval "ac_cv_func_$ac_func=no"
8345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8346 echo "$ac_t""yes" 1>&6
8347 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8348 cat >> confdefs.h
<<EOF
8349 #define $ac_tr_func 1
8353 echo "$ac_t""no" 1>&6
8362 *-lsecurity*) for ac_func
in getprpwnam
8364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8365 echo "configure:8366: checking for $ac_func" >&5
8366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
8369 cat > conftest.
$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* System header to define __stub macros and hopefully few prototypes,
8373 which can conflict with char $ac_func(); below. */
8375 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8382 /* The GNU C library defines this for functions which it implements
8383 to always fail with ENOSYS. Some functions are actually named
8384 something starting with __ and the normal name is an alias. */
8385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8393 if { (eval echo configure
:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8395 eval "ac_cv_func_$ac_func=yes"
8397 echo "configure: failed program was:" >&5
8398 cat conftest.
$ac_ext >&5
8400 eval "ac_cv_func_$ac_func=no"
8405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8407 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8408 cat >> confdefs.h
<<EOF
8409 #define $ac_tr_func 1
8413 echo "$ac_t""no" 1>&6
8417 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8418 echo "configure:8419: checking for getprpwnam in -lsecurity" >&5
8419 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8423 ac_save_LIBS
="$LIBS"
8424 LIBS
="-lsecurity $LIBS"
8425 cat > conftest.
$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8437 if { (eval echo configure
:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8439 eval "ac_cv_lib_$ac_lib_var=yes"
8441 echo "configure: failed program was:" >&5
8442 cat conftest.
$ac_ext >&5
8444 eval "ac_cv_lib_$ac_lib_var=no"
8447 LIBS
="$ac_save_LIBS"
8450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8451 echo "$ac_t""yes" 1>&6
8452 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8454 cat >> confdefs.h
<<EOF
8455 #define $ac_tr_lib 1
8458 LIBS
="-lsecurity $LIBS"
8461 echo "$ac_t""no" 1>&6
8464 for ac_func
in getprpwnam
8466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8467 echo "configure:8468: checking for $ac_func" >&5
8468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8469 echo $ac_n "(cached) $ac_c" 1>&6
8471 cat > conftest.
$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char $ac_func(); below. */
8477 /* Override any gcc2 internal prototype to avoid an error. */
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8484 /* The GNU C library defines this for functions which it implements
8485 to always fail with ENOSYS. Some functions are actually named
8486 something starting with __ and the normal name is an alias. */
8487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8495 if { (eval echo configure
:8496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8497 eval "ac_cv_func_$ac_func=yes"
8499 echo "configure: failed program was:" >&5
8500 cat conftest.
$ac_ext >&5
8502 eval "ac_cv_func_$ac_func=no"
8507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8508 echo "$ac_t""yes" 1>&6
8509 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8510 cat >> confdefs.h
<<EOF
8511 #define $ac_tr_func 1
8515 echo "$ac_t""no" 1>&6
8523 *-lsec*) for ac_func
in getprpwnam
8525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8526 echo "configure:8527: checking for $ac_func" >&5
8527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8530 cat > conftest.
$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char $ac_func(); below. */
8536 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8543 /* The GNU C library defines this for functions which it implements
8544 to always fail with ENOSYS. Some functions are actually named
8545 something starting with __ and the normal name is an alias. */
8546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8554 if { (eval echo configure
:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8556 eval "ac_cv_func_$ac_func=yes"
8558 echo "configure: failed program was:" >&5
8559 cat conftest.
$ac_ext >&5
8561 eval "ac_cv_func_$ac_func=no"
8566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8569 cat >> confdefs.h
<<EOF
8570 #define $ac_tr_func 1
8574 echo "$ac_t""no" 1>&6
8578 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8579 echo "configure:8580: checking for getprpwnam in -lsec" >&5
8580 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8584 ac_save_LIBS
="$LIBS"
8586 cat > conftest.
$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8589 /* Override any gcc2 internal prototype to avoid an error. */
8590 /* We use char because int might match the return type of a gcc2
8591 builtin and then its argument prototype would still apply. */
8598 if { (eval echo configure
:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8600 eval "ac_cv_lib_$ac_lib_var=yes"
8602 echo "configure: failed program was:" >&5
8603 cat conftest.
$ac_ext >&5
8605 eval "ac_cv_lib_$ac_lib_var=no"
8608 LIBS
="$ac_save_LIBS"
8611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8612 echo "$ac_t""yes" 1>&6
8613 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8614 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8615 cat >> confdefs.h
<<EOF
8616 #define $ac_tr_lib 1
8622 echo "$ac_t""no" 1>&6
8625 for ac_func
in getprpwnam
8627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8628 echo "configure:8629: checking for $ac_func" >&5
8629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8632 cat > conftest.
$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 /* System header to define __stub macros and hopefully few prototypes,
8636 which can conflict with char $ac_func(); below. */
8638 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8645 /* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8656 if { (eval echo configure
:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8658 eval "ac_cv_func_$ac_func=yes"
8660 echo "configure: failed program was:" >&5
8661 cat conftest.
$ac_ext >&5
8663 eval "ac_cv_func_$ac_func=no"
8668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8669 echo "$ac_t""yes" 1>&6
8670 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8671 cat >> confdefs.h
<<EOF
8672 #define $ac_tr_func 1
8676 echo "$ac_t""no" 1>&6
8684 # this bit needs to be modified for each OS that is suported by
8685 # smbwrapper. You need to specify how to created a shared library and
8686 # how to compile C code to produce PIC object files
8688 # these are the defaults, good for lots of systems
8696 # Assume non-shared by default and override below
8698 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8699 echo "configure:8700: checking ability to build shared libraries" >&5
8701 # and these are for particular systems
8703 *linux
*) cat >> confdefs.h
<<\EOF
8709 DYNEXP
="-Wl,--export-dynamic"
8711 SONAMEFLAG
="-Wl,-soname="
8712 cat >> confdefs.h
<<\EOF
8713 #define STAT_ST_BLOCKSIZE 512
8717 *solaris
*) cat >> confdefs.h
<<\EOF
8724 if test "${GCC}" = "yes"; then
8726 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8731 ## ${CFLAGS} added for building 64-bit shared
8732 ## libs using Sun's Compiler
8733 LDSHFLAGS
="-G \${CFLAGS}"
8737 cat >> confdefs.h
<<\EOF
8738 #define STAT_ST_BLOCKSIZE 512
8742 *sunos
*) cat >> confdefs.h
<<\EOF
8748 SONAMEFLAG
="-Wl,-h,"
8749 PICFLAG
="-KPIC" # Is this correct for SunOS
8750 cat >> confdefs.h
<<\EOF
8751 #define STAT_ST_BLOCKSIZE 512
8755 *freebsd
*) BLDSHARED
="true"
8757 DYNEXP
="-Wl,--export-dynamic"
8758 SONAMEFLAG
="-Wl,-soname,"
8759 PICFLAG
="-fPIC -DPIC"
8760 cat >> confdefs.h
<<\EOF
8761 #define STAT_ST_BLOCKSIZE 512
8765 *openbsd
*) BLDSHARED
="true"
8767 DYNEXP
="-Wl,-Bdynamic"
8768 SONAMEFLAG
="-Wl,-soname,"
8770 cat >> confdefs.h
<<\EOF
8771 #define STAT_ST_BLOCKSIZE 512
8775 *irix
*) cat >> confdefs.h
<<\EOF
8780 *irix6
*) cat >> confdefs.h
<<\EOF
8786 ATTEMPT_WRAP32_BUILD
=yes
8788 LDSHFLAGS
="-set_version sgi1.0 -shared"
8789 SONAMEFLAG
="-soname "
8791 if test "${GCC}" = "yes"; then
8796 cat >> confdefs.h
<<\EOF
8797 #define STAT_ST_BLOCKSIZE 512
8801 *aix
*) cat >> confdefs.h
<<\EOF
8806 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8807 DYNEXP
="-Wl,-brtl,-bexpall"
8809 if test "${GCC}" != "yes"; then
8810 ## for funky AIX compiler using strncpy()
8811 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8814 cat >> confdefs.h
<<\EOF
8815 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8819 *hpux
*) cat >> confdefs.h
<<\EOF
8824 # Use special PIC flags for the native HP-UX compiler.
8825 if test $ac_cv_prog_cc_Ae = yes; then
8828 LDSHFLAGS
="-B symbolic -b -z"
8833 cat >> confdefs.h
<<\EOF
8834 #define STAT_ST_BLOCKSIZE 8192
8838 *qnx
*) cat >> confdefs.h
<<\EOF
8842 cat >> confdefs.h
<<\EOF
8843 #define STAT_ST_BLOCKSIZE 512
8847 *osf
*) cat >> confdefs.h
<<\EOF
8853 SONAMEFLAG
="-Wl,-soname,"
8855 cat >> confdefs.h
<<\EOF
8856 #define STAT_ST_BLOCKSIZE 512
8860 *sco
*) cat >> confdefs.h
<<\EOF
8864 cat >> confdefs.h
<<\EOF
8865 #define STAT_ST_BLOCKSIZE 512
8869 *unixware
*) cat >> confdefs.h
<<\EOF
8875 SONAMEFLAG
="-Wl,-soname,"
8877 cat >> confdefs.h
<<\EOF
8878 #define STAT_ST_BLOCKSIZE 512
8882 *next2
*) cat >> confdefs.h
<<\EOF
8886 cat >> confdefs.h
<<\EOF
8887 #define STAT_ST_BLOCKSIZE 512
8891 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8892 set dummy
groff; ac_word
=$2
8893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8894 echo "configure:8895: checking for $ac_word" >&5
8895 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8898 if test -n "$ROFF"; then
8899 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8903 for ac_dir
in $ac_dummy; do
8904 test -z "$ac_dir" && ac_dir
=.
8905 if test -f $ac_dir/$ac_word; then
8906 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8913 ROFF
="$ac_cv_prog_ROFF"
8914 if test -n "$ROFF"; then
8915 echo "$ac_t""$ROFF" 1>&6
8917 echo "$ac_t""no" 1>&6
8920 cat >> confdefs.h
<<\EOF
8921 #define STAT_ST_BLOCKSIZE 512
8927 *-univel-*) if test "$GCC" != yes ; then
8928 cat >> confdefs.h
<<\EOF
8929 #define HAVE_MEMSET 1
8936 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8937 #define RELIANTUNIX 1
8941 cat >> confdefs.h
<<\EOF
8942 #define STAT_ST_BLOCKSIZE 512
8947 if test "$GCC" != yes ; then
8948 cat >> confdefs.h
<<\EOF
8949 #define HAVE_MEMSET 1
8954 cat >> confdefs.h
<<\EOF
8955 #define STAT_ST_BLOCKSIZE 512
8959 *vos
*) cat >> confdefs.h
<<\EOF
8960 #define STAT_ST_BLOCKSIZE 4096
8967 cat >> confdefs.h
<<\EOF
8968 #define STAT_ST_BLOCKSIZE 512
8974 echo "$ac_t""$BLDSHARED" 1>&6
8975 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8976 echo "configure:8977: checking linker flags for shared libraries" >&5
8977 echo "$ac_t""$LDSHFLAGS" 1>&6
8978 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8979 echo "configure:8980: checking compiler flags for position-independent code" >&5
8980 echo "$ac_t""$PICFLAGS" 1>&6
8982 # try to work out how to produce pic code with this compiler
8983 if test x
$PICFLAG = x
; then
8984 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8985 echo "configure:8986: checking whether ${CC-cc} accepts -fpic" >&5
8986 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8989 echo 'void f(){}' > conftest.c
8990 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8991 ac_cv_prog_cc_fpic
=yes
8993 ac_cv_prog_cc_fpic
=no
8999 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
9000 if test $ac_cv_prog_cc_fpic = yes; then
9004 if test x
$PICFLAG = x
; then
9005 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
9006 echo "configure:9007: checking whether ${CC-cc} accepts -KPIC" >&5
9007 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9010 echo 'void f(){}' > conftest.c
9011 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
9012 ac_cv_prog_cc_KPIC
=yes
9014 ac_cv_prog_cc_KPIC
=no
9020 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
9021 if test $ac_cv_prog_cc_KPIC = yes; then
9025 if test x
$PICFLAG = x
; then
9026 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
9027 echo "configure:9028: checking whether ${CC-cc} accepts -Kpic" >&5
9028 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9031 echo 'void f(){}' > conftest.c
9032 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
9033 ac_cv_prog_cc_Kpic
=yes
9035 ac_cv_prog_cc_Kpic
=no
9041 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
9042 if test $ac_cv_prog_cc_Kpic = yes; then
9049 echo $ac_n "checking for long long""... $ac_c" 1>&6
9050 echo "configure:9051: checking for long long" >&5
9051 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9055 if test "$cross_compiling" = yes; then
9056 samba_cv_have_longlong
=cross
9058 cat > conftest.
$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9062 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9064 if { (eval echo configure
:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9066 samba_cv_have_longlong
=yes
9068 echo "configure: failed program was:" >&5
9069 cat conftest.
$ac_ext >&5
9071 samba_cv_have_longlong
=no
9078 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9079 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9080 cat >> confdefs.h
<<\EOF
9081 #define HAVE_LONGLONG 1
9087 # Check if the compiler supports the LL prefix on long long integers.
9090 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9091 echo "configure:9092: checking for LL suffix on long long integers" >&5
9092 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9096 cat > conftest.
$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9101 long long i = 0x8000000000LL
9104 if { (eval echo configure
:9105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9106 samba_cv_compiler_supports_ll
=yes
9108 echo "configure: failed program was:" >&5
9109 cat conftest.
$ac_ext >&5
9111 samba_cv_compiler_supports_ll
=no
9116 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9117 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9118 cat >> confdefs.h
<<\EOF
9119 #define COMPILER_SUPPORTS_LL 1
9125 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9126 echo "configure:9127: checking for 64 bit off_t" >&5
9127 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9131 if test "$cross_compiling" = yes; then
9132 samba_cv_SIZEOF_OFF_T
=cross
9134 cat > conftest.
$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9138 #include <sys/stat.h>
9139 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9141 if { (eval echo configure
:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9143 samba_cv_SIZEOF_OFF_T
=yes
9145 echo "configure: failed program was:" >&5
9146 cat conftest.
$ac_ext >&5
9148 samba_cv_SIZEOF_OFF_T
=no
9155 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9156 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9157 cat >> confdefs.h
<<\EOF
9158 #define SIZEOF_OFF_T 8
9163 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9164 echo "configure:9165: checking for off64_t" >&5
9165 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9169 if test "$cross_compiling" = yes; then
9170 samba_cv_HAVE_OFF64_T
=cross
9172 cat > conftest.
$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9176 #if defined(HAVE_UNISTD_H)
9180 #include <sys/stat.h>
9181 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9183 if { (eval echo configure
:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9185 samba_cv_HAVE_OFF64_T
=yes
9187 echo "configure: failed program was:" >&5
9188 cat conftest.
$ac_ext >&5
9190 samba_cv_HAVE_OFF64_T
=no
9197 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9198 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9199 cat >> confdefs.h
<<\EOF
9200 #define HAVE_OFF64_T 1
9205 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9206 echo "configure:9207: checking for 64 bit ino_t" >&5
9207 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9211 if test "$cross_compiling" = yes; then
9212 samba_cv_SIZEOF_INO_T
=cross
9214 cat > conftest.
$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9218 #include <sys/stat.h>
9219 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9221 if { (eval echo configure
:9222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9223 samba_cv_SIZEOF_INO_T
=yes
9225 echo "configure: failed program was:" >&5
9226 cat conftest.
$ac_ext >&5
9228 samba_cv_SIZEOF_INO_T
=no
9235 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9236 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9237 cat >> confdefs.h
<<\EOF
9238 #define SIZEOF_INO_T 8
9243 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9244 echo "configure:9245: checking for ino64_t" >&5
9245 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
9249 if test "$cross_compiling" = yes; then
9250 samba_cv_HAVE_INO64_T
=cross
9252 cat > conftest.
$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9256 #if defined(HAVE_UNISTD_H)
9260 #include <sys/stat.h>
9261 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9263 if { (eval echo configure
:9264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9265 samba_cv_HAVE_INO64_T
=yes
9267 echo "configure: failed program was:" >&5
9268 cat conftest.
$ac_ext >&5
9270 samba_cv_HAVE_INO64_T
=no
9277 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9278 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9279 cat >> confdefs.h
<<\EOF
9280 #define HAVE_INO64_T 1
9285 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9286 echo "configure:9287: checking for dev64_t" >&5
9287 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9288 echo $ac_n "(cached) $ac_c" 1>&6
9291 if test "$cross_compiling" = yes; then
9292 samba_cv_HAVE_DEV64_T
=cross
9294 cat > conftest.
$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9298 #if defined(HAVE_UNISTD_H)
9302 #include <sys/stat.h>
9303 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9305 if { (eval echo configure
:9306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9307 samba_cv_HAVE_DEV64_T
=yes
9309 echo "configure: failed program was:" >&5
9310 cat conftest.
$ac_ext >&5
9312 samba_cv_HAVE_DEV64_T
=no
9319 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9320 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9321 cat >> confdefs.h
<<\EOF
9322 #define HAVE_DEV64_T 1
9327 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9328 echo "configure:9329: checking for struct dirent64" >&5
9329 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9333 cat > conftest.
$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #if defined(HAVE_UNISTD_H)
9340 #include <sys/types.h>
9346 if { (eval echo configure
:9347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9348 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9350 echo "configure: failed program was:" >&5
9351 cat conftest.
$ac_ext >&5
9353 samba_cv_HAVE_STRUCT_DIRENT64
=no
9358 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9359 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9360 cat >> confdefs.h
<<\EOF
9361 #define HAVE_STRUCT_DIRENT64 1
9366 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9367 echo "configure:9368: checking for major macro" >&5
9368 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9372 if test "$cross_compiling" = yes; then
9373 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9375 cat > conftest.
$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9379 #if defined(HAVE_UNISTD_H)
9382 #include <sys/types.h>
9383 main() { dev_t dev; int i = major(dev); return 0; }
9385 if { (eval echo configure
:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9387 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9389 echo "configure: failed program was:" >&5
9390 cat conftest.
$ac_ext >&5
9392 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9399 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9400 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9401 cat >> confdefs.h
<<\EOF
9402 #define HAVE_DEVICE_MAJOR_FN 1
9407 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9408 echo "configure:9409: checking for minor macro" >&5
9409 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9413 if test "$cross_compiling" = yes; then
9414 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9416 cat > conftest.
$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9420 #if defined(HAVE_UNISTD_H)
9423 #include <sys/types.h>
9424 main() { dev_t dev; int i = minor(dev); return 0; }
9426 if { (eval echo configure
:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9428 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9430 echo "configure: failed program was:" >&5
9431 cat conftest.
$ac_ext >&5
9433 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9440 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9441 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9442 cat >> confdefs.h
<<\EOF
9443 #define HAVE_DEVICE_MINOR_FN 1
9448 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9449 echo "configure:9450: checking for makedev macro" >&5
9450 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9454 if test "$cross_compiling" = yes; then
9455 samba_cv_HAVE_MAKEDEV_FN
=cross
9457 cat > conftest.
$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9461 #if defined(HAVE_UNISTD_H)
9464 #include <sys/types.h>
9465 main() { dev_t dev = makedev(1,2); return 0; }
9467 if { (eval echo configure
:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9469 samba_cv_HAVE_MAKEDEV_FN
=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.
$ac_ext >&5
9474 samba_cv_HAVE_MAKEDEV_FN
=no
9481 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9482 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9483 cat >> confdefs.h
<<\EOF
9484 #define MAKEDEV_FN 1
9489 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9490 echo "configure:9491: checking for unsigned char" >&5
9491 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9495 if test "$cross_compiling" = yes; then
9496 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9498 cat > conftest.
$ac_ext <<EOF
9499 #line 9500 "configure"
9500 #include "confdefs.h"
9502 main() { char c; c=250; exit((c > 0)?0:1); }
9504 if { (eval echo configure
:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9506 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9508 echo "configure: failed program was:" >&5
9509 cat conftest.
$ac_ext >&5
9511 samba_cv_HAVE_UNSIGNED_CHAR
=no
9518 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9519 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9520 cat >> confdefs.h
<<\EOF
9521 #define HAVE_UNSIGNED_CHAR 1
9526 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9527 echo "configure:9528: checking for sin_len in sock" >&5
9528 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9532 cat > conftest.
$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9536 #include <sys/socket.h>
9537 #include <netinet/in.h>
9539 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9542 if { (eval echo configure
:9543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9544 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9546 echo "configure: failed program was:" >&5
9547 cat conftest.
$ac_ext >&5
9549 samba_cv_HAVE_SOCK_SIN_LEN
=no
9554 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9555 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9556 cat >> confdefs.h
<<\EOF
9557 #define HAVE_SOCK_SIN_LEN 1
9562 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9563 echo "configure:9564: checking whether seekdir returns void" >&5
9564 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9568 cat > conftest.
$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9573 void seekdir(DIR *d, long loc) { return; }
9578 if { (eval echo configure
:9579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9580 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9582 echo "configure: failed program was:" >&5
9583 cat conftest.
$ac_ext >&5
9585 samba_cv_SEEKDIR_RETURNS_VOID
=no
9590 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9591 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9592 cat >> confdefs.h
<<\EOF
9593 #define SEEKDIR_RETURNS_VOID 1
9598 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9599 echo "configure:9600: checking for __FILE__ macro" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9604 cat > conftest.
$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9609 printf("%s\n", __FILE__);
9612 if { (eval echo configure
:9613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9614 samba_cv_HAVE_FILE_MACRO
=yes
9616 echo "configure: failed program was:" >&5
9617 cat conftest.
$ac_ext >&5
9619 samba_cv_HAVE_FILE_MACRO
=no
9624 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9625 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9626 cat >> confdefs.h
<<\EOF
9627 #define HAVE_FILE_MACRO 1
9632 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9633 echo "configure:9634: checking for __FUNCTION__ macro" >&5
9634 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9635 echo $ac_n "(cached) $ac_c" 1>&6
9638 cat > conftest.
$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9643 printf("%s\n", __FUNCTION__);
9646 if { (eval echo configure
:9647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9648 samba_cv_HAVE_FUNCTION_MACRO
=yes
9650 echo "configure: failed program was:" >&5
9651 cat conftest.
$ac_ext >&5
9653 samba_cv_HAVE_FUNCTION_MACRO
=no
9658 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9659 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9660 cat >> confdefs.h
<<\EOF
9661 #define HAVE_FUNCTION_MACRO 1
9666 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9667 echo "configure:9668: checking if gettimeofday takes tz argument" >&5
9668 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9669 echo $ac_n "(cached) $ac_c" 1>&6
9672 if test "$cross_compiling" = yes; then
9673 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9675 cat > conftest.
$ac_ext <<EOF
9676 #line 9677 "configure"
9677 #include "confdefs.h"
9679 #include <sys/time.h>
9681 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9683 if { (eval echo configure
:9684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9685 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9687 echo "configure: failed program was:" >&5
9688 cat conftest.
$ac_ext >&5
9690 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9697 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9698 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9699 cat >> confdefs.h
<<\EOF
9700 #define HAVE_GETTIMEOFDAY_TZ 1
9705 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9706 echo "configure:9707: checking for __va_copy" >&5
9707 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9708 echo $ac_n "(cached) $ac_c" 1>&6
9711 cat > conftest.
$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9720 if { (eval echo configure
:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9722 samba_cv_HAVE_VA_COPY
=yes
9724 echo "configure: failed program was:" >&5
9725 cat conftest.
$ac_ext >&5
9727 samba_cv_HAVE_VA_COPY
=no
9732 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9733 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9734 cat >> confdefs.h
<<\EOF
9735 #define HAVE_VA_COPY 1
9740 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9741 echo "configure:9742: checking for C99 vsnprintf" >&5
9742 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9746 if test "$cross_compiling" = yes; then
9747 samba_cv_HAVE_C99_VSNPRINTF
=cross
9749 cat > conftest.
$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9753 #include <sys/types.h>
9755 void foo(const char *format, ...) {
9760 va_start(ap, format);
9761 len = vsnprintf(buf, 0, format, ap);
9763 if (len != 5) exit(1);
9765 va_start(ap, format);
9766 len = vsnprintf(0, 0, format, ap);
9768 if (len != 5) exit(1);
9770 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9774 main() { foo("hello"); }
9777 if { (eval echo configure
:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9779 samba_cv_HAVE_C99_VSNPRINTF
=yes
9781 echo "configure: failed program was:" >&5
9782 cat conftest.
$ac_ext >&5
9784 samba_cv_HAVE_C99_VSNPRINTF
=no
9791 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9792 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9793 cat >> confdefs.h
<<\EOF
9794 #define HAVE_C99_VSNPRINTF 1
9799 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9800 echo "configure:9801: checking for broken readdir" >&5
9801 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9805 if test "$cross_compiling" = yes; then
9806 samba_cv_HAVE_BROKEN_READDIR
=cross
9808 cat > conftest.
$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 #include <sys/types.h>
9813 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9814 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9815 di->d_name[0] == 0) exit(0); exit(1);}
9817 if { (eval echo configure
:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9819 samba_cv_HAVE_BROKEN_READDIR
=yes
9821 echo "configure: failed program was:" >&5
9822 cat conftest.
$ac_ext >&5
9824 samba_cv_HAVE_BROKEN_READDIR
=no
9831 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9832 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9833 cat >> confdefs.h
<<\EOF
9834 #define HAVE_BROKEN_READDIR 1
9839 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9840 echo "configure:9841: checking for utimbuf" >&5
9841 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9842 echo $ac_n "(cached) $ac_c" 1>&6
9845 cat > conftest.
$ac_ext <<EOF
9846 #line 9847 "configure"
9847 #include "confdefs.h"
9848 #include <sys/types.h>
9851 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9854 if { (eval echo configure
:9855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9856 samba_cv_HAVE_UTIMBUF
=yes
9858 echo "configure: failed program was:" >&5
9859 cat conftest.
$ac_ext >&5
9861 samba_cv_HAVE_UTIMBUF
=no
9866 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9867 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9868 cat >> confdefs.h
<<\EOF
9869 #define HAVE_UTIMBUF 1
9875 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9878 echo "configure:9879: checking for $ac_func" >&5
9879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9880 echo $ac_n "(cached) $ac_c" 1>&6
9882 cat > conftest.
$ac_ext <<EOF
9883 #line 9884 "configure"
9884 #include "confdefs.h"
9885 /* System header to define __stub macros and hopefully few prototypes,
9886 which can conflict with char $ac_func(); below. */
9888 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9895 /* The GNU C library defines this for functions which it implements
9896 to always fail with ENOSYS. Some functions are actually named
9897 something starting with __ and the normal name is an alias. */
9898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9906 if { (eval echo configure
:9907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9908 eval "ac_cv_func_$ac_func=yes"
9910 echo "configure: failed program was:" >&5
9911 cat conftest.
$ac_ext >&5
9913 eval "ac_cv_func_$ac_func=no"
9918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9919 echo "$ac_t""yes" 1>&6
9920 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9921 cat >> confdefs.h
<<EOF
9922 #define $ac_tr_func 1
9926 echo "$ac_t""no" 1>&6
9931 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9932 echo "configure:9933: checking for ut_name in utmp" >&5
9933 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9937 cat > conftest.
$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <sys/types.h>
9943 struct utmp ut; ut.ut_name[0] = 'a';
9946 if { (eval echo configure
:9947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9948 samba_cv_HAVE_UT_UT_NAME
=yes
9950 echo "configure: failed program was:" >&5
9951 cat conftest.
$ac_ext >&5
9953 samba_cv_HAVE_UT_UT_NAME
=no
9958 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9959 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9960 cat >> confdefs.h
<<\EOF
9961 #define HAVE_UT_UT_NAME 1
9966 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9967 echo "configure:9968: checking for ut_user in utmp" >&5
9968 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9972 cat > conftest.
$ac_ext <<EOF
9973 #line 9974 "configure"
9974 #include "confdefs.h"
9975 #include <sys/types.h>
9978 struct utmp ut; ut.ut_user[0] = 'a';
9981 if { (eval echo configure
:9982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9983 samba_cv_HAVE_UT_UT_USER
=yes
9985 echo "configure: failed program was:" >&5
9986 cat conftest.
$ac_ext >&5
9988 samba_cv_HAVE_UT_UT_USER
=no
9993 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9994 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9995 cat >> confdefs.h
<<\EOF
9996 #define HAVE_UT_UT_USER 1
10001 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10002 echo "configure:10003: checking for ut_id in utmp" >&5
10003 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10007 cat > conftest.
$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 #include <sys/types.h>
10013 struct utmp ut; ut.ut_id[0] = 'a';
10016 if { (eval echo configure
:10017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10018 samba_cv_HAVE_UT_UT_ID
=yes
10020 echo "configure: failed program was:" >&5
10021 cat conftest.
$ac_ext >&5
10023 samba_cv_HAVE_UT_UT_ID
=no
10028 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10029 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10030 cat >> confdefs.h
<<\EOF
10031 #define HAVE_UT_UT_ID 1
10036 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10037 echo "configure:10038: checking for ut_host in utmp" >&5
10038 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10042 cat > conftest.
$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10045 #include <sys/types.h>
10048 struct utmp ut; ut.ut_host[0] = 'a';
10051 if { (eval echo configure
:10052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10053 samba_cv_HAVE_UT_UT_HOST
=yes
10055 echo "configure: failed program was:" >&5
10056 cat conftest.
$ac_ext >&5
10058 samba_cv_HAVE_UT_UT_HOST
=no
10063 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10064 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10065 cat >> confdefs.h
<<\EOF
10066 #define HAVE_UT_UT_HOST 1
10071 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10072 echo "configure:10073: checking for ut_time in utmp" >&5
10073 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10077 cat > conftest.
$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <sys/types.h>
10083 struct utmp ut; time_t t; ut.ut_time = t;
10086 if { (eval echo configure
:10087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10088 samba_cv_HAVE_UT_UT_TIME
=yes
10090 echo "configure: failed program was:" >&5
10091 cat conftest.
$ac_ext >&5
10093 samba_cv_HAVE_UT_UT_TIME
=no
10098 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10099 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10100 cat >> confdefs.h
<<\EOF
10101 #define HAVE_UT_UT_TIME 1
10106 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10107 echo "configure:10108: checking for ut_tv in utmp" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10112 cat > conftest.
$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <sys/types.h>
10118 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10121 if { (eval echo configure
:10122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10123 samba_cv_HAVE_UT_UT_TV
=yes
10125 echo "configure: failed program was:" >&5
10126 cat conftest.
$ac_ext >&5
10128 samba_cv_HAVE_UT_UT_TV
=no
10133 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10134 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10135 cat >> confdefs.h
<<\EOF
10136 #define HAVE_UT_UT_TV 1
10141 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10142 echo "configure:10143: checking for ut_type in utmp" >&5
10143 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10147 cat > conftest.
$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10150 #include <sys/types.h>
10153 struct utmp ut; ut.ut_type = 0;
10156 if { (eval echo configure
:10157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10158 samba_cv_HAVE_UT_UT_TYPE
=yes
10160 echo "configure: failed program was:" >&5
10161 cat conftest.
$ac_ext >&5
10163 samba_cv_HAVE_UT_UT_TYPE
=no
10168 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10169 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10170 cat >> confdefs.h
<<\EOF
10171 #define HAVE_UT_UT_TYPE 1
10176 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10177 echo "configure:10178: checking for ut_pid in utmp" >&5
10178 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10179 echo $ac_n "(cached) $ac_c" 1>&6
10182 cat > conftest.
$ac_ext <<EOF
10183 #line 10184 "configure"
10184 #include "confdefs.h"
10185 #include <sys/types.h>
10188 struct utmp ut; ut.ut_pid = 0;
10191 if { (eval echo configure
:10192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10193 samba_cv_HAVE_UT_UT_PID
=yes
10195 echo "configure: failed program was:" >&5
10196 cat conftest.
$ac_ext >&5
10198 samba_cv_HAVE_UT_UT_PID
=no
10203 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10204 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10205 cat >> confdefs.h
<<\EOF
10206 #define HAVE_UT_UT_PID 1
10211 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10212 echo "configure:10213: checking for ut_exit in utmp" >&5
10213 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10217 cat > conftest.
$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 #include <sys/types.h>
10223 struct utmp ut; ut.ut_exit.e_exit = 0;
10226 if { (eval echo configure
:10227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10228 samba_cv_HAVE_UT_UT_EXIT
=yes
10230 echo "configure: failed program was:" >&5
10231 cat conftest.
$ac_ext >&5
10233 samba_cv_HAVE_UT_UT_EXIT
=no
10238 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10239 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10240 cat >> confdefs.h
<<\EOF
10241 #define HAVE_UT_UT_EXIT 1
10246 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10247 echo "configure:10248: checking for ut_addr in utmp" >&5
10248 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10252 cat > conftest.
$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 #include <sys/types.h>
10258 struct utmp ut; ut.ut_addr = 0;
10261 if { (eval echo configure
:10262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10263 samba_cv_HAVE_UT_UT_ADDR
=yes
10265 echo "configure: failed program was:" >&5
10266 cat conftest.
$ac_ext >&5
10268 samba_cv_HAVE_UT_UT_ADDR
=no
10273 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10274 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10275 cat >> confdefs.h
<<\EOF
10276 #define HAVE_UT_UT_ADDR 1
10281 if test x
$ac_cv_func_pututline = xyes
; then
10282 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10283 echo "configure:10284: checking whether pututline returns pointer" >&5
10284 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10285 echo $ac_n "(cached) $ac_c" 1>&6
10288 cat > conftest.
$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291 #include <sys/types.h>
10294 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10297 if { (eval echo configure
:10298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10299 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10301 echo "configure: failed program was:" >&5
10302 cat conftest.
$ac_ext >&5
10304 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10309 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10310 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10311 cat >> confdefs.h
<<\EOF
10312 #define PUTUTLINE_RETURNS_UTMP 1
10318 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10319 echo "configure:10320: checking for ut_syslen in utmpx" >&5
10320 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10324 cat > conftest.
$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 #include <sys/types.h>
10330 struct utmpx ux; ux.ut_syslen = 0;
10333 if { (eval echo configure
:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10335 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.
$ac_ext >&5
10340 samba_cv_HAVE_UX_UT_SYSLEN
=no
10345 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10346 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10347 cat >> confdefs.h
<<\EOF
10348 #define HAVE_UX_UT_SYSLEN 1
10353 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10354 echo "configure:10355: checking for Linux kernel oplocks" >&5
10355 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10359 if test "$cross_compiling" = yes; then
10360 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10362 cat > conftest.
$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10366 #include <sys/types.h>
10369 #define F_GETLEASE 1025
10372 int fd = open("/dev/null", O_RDONLY);
10373 return fcntl(fd, F_GETLEASE, 0) == -1;
10377 if { (eval echo configure
:10378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10379 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10381 echo "configure: failed program was:" >&5
10382 cat conftest.
$ac_ext >&5
10384 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10391 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10392 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10393 cat >> confdefs.h
<<\EOF
10394 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10399 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10400 echo "configure:10401: checking for kernel change notify support" >&5
10401 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10405 if test "$cross_compiling" = yes; then
10406 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10408 cat > conftest.
$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10412 #include <sys/types.h>
10414 #include <signal.h>
10416 #define F_NOTIFY 1026
10419 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10423 if { (eval echo configure
:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10425 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10427 echo "configure: failed program was:" >&5
10428 cat conftest.
$ac_ext >&5
10430 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10437 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10438 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10439 cat >> confdefs.h
<<\EOF
10440 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10445 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10446 echo "configure:10447: checking for kernel share modes" >&5
10447 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10451 if test "$cross_compiling" = yes; then
10452 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10454 cat > conftest.
$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10458 #include <sys/types.h>
10460 #include <signal.h>
10461 #include <sys/file.h>
10463 #define LOCK_MAND 32
10464 #define LOCK_READ 64
10467 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10471 if { (eval echo configure
:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10473 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10475 echo "configure: failed program was:" >&5
10476 cat conftest.
$ac_ext >&5
10478 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10485 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10486 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10487 cat >> confdefs.h
<<\EOF
10488 #define HAVE_KERNEL_SHARE_MODES 1
10496 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10497 echo "configure:10498: checking for IRIX kernel oplock type definitions" >&5
10498 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10502 cat > conftest.
$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 #include <sys/types.h>
10508 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10511 if { (eval echo configure
:10512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10513 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10515 echo "configure: failed program was:" >&5
10516 cat conftest.
$ac_ext >&5
10518 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10523 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10524 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10525 cat >> confdefs.h
<<\EOF
10526 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10531 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10532 echo "configure:10533: checking for irix specific capabilities" >&5
10533 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10534 echo $ac_n "(cached) $ac_c" 1>&6
10537 if test "$cross_compiling" = yes; then
10538 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10540 cat > conftest.
$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 #include <sys/types.h>
10544 #include <sys/capability.h>
10547 if ((cap = cap_get_proc()) == NULL)
10549 cap->cap_effective |= CAP_NETWORK_MGT;
10550 cap->cap_inheritable |= CAP_NETWORK_MGT;
10556 if { (eval echo configure
:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10558 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10560 echo "configure: failed program was:" >&5
10561 cat conftest.
$ac_ext >&5
10563 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10570 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10571 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10572 cat >> confdefs.h
<<\EOF
10573 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10579 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10580 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10583 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10584 echo "configure:10585: checking for int16 typedef included by rpc/rpc.h" >&5
10585 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_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_INT16_FROM_RPC_RPC_H
=yes
10604 echo "configure: failed program was:" >&5
10605 cat conftest.
$ac_ext >&5
10607 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10612 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10613 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10614 cat >> confdefs.h
<<\EOF
10615 #define HAVE_INT16_FROM_RPC_RPC_H 1
10620 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10621 echo "configure:10622: checking for uint16 typedef included by rpc/rpc.h" >&5
10622 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10626 cat > conftest.
$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10629 #include <sys/types.h>
10630 #if defined(HAVE_RPC_RPC_H)
10631 #include <rpc/rpc.h>
10637 if { (eval echo configure
:10638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10639 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10641 echo "configure: failed program was:" >&5
10642 cat conftest.
$ac_ext >&5
10644 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10649 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10650 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10651 cat >> confdefs.h
<<\EOF
10652 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10657 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10658 echo "configure:10659: checking for int32 typedef included by rpc/rpc.h" >&5
10659 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10660 echo $ac_n "(cached) $ac_c" 1>&6
10663 cat > conftest.
$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include <sys/types.h>
10667 #if defined(HAVE_RPC_RPC_H)
10668 #include <rpc/rpc.h>
10674 if { (eval echo configure
:10675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10676 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10678 echo "configure: failed program was:" >&5
10679 cat conftest.
$ac_ext >&5
10681 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10686 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10687 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10688 cat >> confdefs.h
<<\EOF
10689 #define HAVE_INT32_FROM_RPC_RPC_H 1
10694 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10695 echo "configure:10696: checking for uint32 typedef included by rpc/rpc.h" >&5
10696 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10700 cat > conftest.
$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703 #include <sys/types.h>
10704 #if defined(HAVE_RPC_RPC_H)
10705 #include <rpc/rpc.h>
10711 if { (eval echo configure
:10712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10713 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10715 echo "configure: failed program was:" >&5
10716 cat conftest.
$ac_ext >&5
10718 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10723 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10724 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10725 cat >> confdefs.h
<<\EOF
10726 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10732 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10733 echo "configure:10734: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10734 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10735 echo $ac_n "(cached) $ac_c" 1>&6
10738 cat > conftest.
$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10741 #include <sys/types.h>
10742 #ifdef HAVE_SYS_SECURITY_H
10743 #include <sys/security.h>
10745 #endif /* HAVE_SYS_SECURITY_H */
10746 #if defined(HAVE_RPC_RPC_H)
10747 #include <rpc/rpc.h>
10753 if { (eval echo configure
:10754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10755 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10757 echo "configure: failed program was:" >&5
10758 cat conftest.
$ac_ext >&5
10760 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10765 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10766 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10767 cat >> confdefs.h
<<\EOF
10768 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10773 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10774 echo "configure:10775: checking for test routines" >&5
10775 if test "$cross_compiling" = yes; then
10776 echo "configure: warning: cannot run when cross-compiling" 1>&2
10778 cat > conftest.
$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 #include "${srcdir-.}/tests/trivial.c"
10783 if { (eval echo configure
:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10785 echo "$ac_t""yes" 1>&6
10787 echo "configure: failed program was:" >&5
10788 cat conftest.
$ac_ext >&5
10790 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10796 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10797 echo "configure:10798: checking for ftruncate extend" >&5
10798 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10802 if test "$cross_compiling" = yes; then
10803 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10805 cat > conftest.
$ac_ext <<EOF
10806 #line 10807 "configure"
10807 #include "confdefs.h"
10808 #include "${srcdir-.}/tests/ftruncate.c"
10810 if { (eval echo configure
:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10812 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10814 echo "configure: failed program was:" >&5
10815 cat conftest.
$ac_ext >&5
10817 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10824 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10825 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10826 cat >> confdefs.h
<<\EOF
10827 #define HAVE_FTRUNCATE_EXTEND 1
10832 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10833 echo "configure:10834: checking for broken getgroups" >&5
10834 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10838 if test "$cross_compiling" = yes; then
10839 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10841 cat > conftest.
$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10844 #include "${srcdir-.}/tests/getgroups.c"
10846 if { (eval echo configure
:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10848 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10850 echo "configure: failed program was:" >&5
10851 cat conftest.
$ac_ext >&5
10853 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10860 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10861 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10862 cat >> confdefs.h
<<\EOF
10863 #define HAVE_BROKEN_GETGROUPS 1
10868 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10869 echo "configure:10870: checking whether getpass should be replaced" >&5
10870 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10874 SAVE_CPPFLAGS
="$CPPFLAGS"
10875 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10876 cat > conftest.
$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10880 #define REPLACE_GETPASS 1
10881 #define NO_CONFIG_H 1
10882 #define main dont_declare_main
10883 #include "${srcdir-.}/lib/getsmbpass.c"
10890 if { (eval echo configure
:10891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10892 samba_cv_REPLACE_GETPASS
=yes
10894 echo "configure: failed program was:" >&5
10895 cat conftest.
$ac_ext >&5
10897 samba_cv_REPLACE_GETPASS
=no
10900 CPPFLAGS
="$SAVE_CPPFLAGS"
10904 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10905 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10906 cat >> confdefs.h
<<\EOF
10907 #define REPLACE_GETPASS 1
10912 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10913 echo "configure:10914: checking for broken inet_ntoa" >&5
10914 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10918 if test "$cross_compiling" = yes; then
10919 samba_cv_REPLACE_INET_NTOA
=cross
10921 cat > conftest.
$ac_ext <<EOF
10922 #line 10923 "configure"
10923 #include "confdefs.h"
10926 #include <sys/types.h>
10927 #include <netinet/in.h>
10928 #ifdef HAVE_ARPA_INET_H
10929 #include <arpa/inet.h>
10931 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10932 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10933 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10936 if { (eval echo configure
:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10938 samba_cv_REPLACE_INET_NTOA
=yes
10940 echo "configure: failed program was:" >&5
10941 cat conftest.
$ac_ext >&5
10943 samba_cv_REPLACE_INET_NTOA
=no
10950 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10951 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10952 cat >> confdefs.h
<<\EOF
10953 #define REPLACE_INET_NTOA 1
10958 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10959 echo "configure:10960: checking for secure mkstemp" >&5
10960 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10964 if test "$cross_compiling" = yes; then
10965 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10967 cat > conftest.
$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 #include <stdlib.h>
10971 #include <sys/types.h>
10972 #include <sys/stat.h>
10973 #include <unistd.h>
10976 char tpl[20]="/tmp/test.XXXXXX";
10977 int fd = mkstemp(tpl);
10978 if (fd == -1) exit(1);
10980 if (fstat(fd, &st) != 0) exit(1);
10981 if ((st.st_mode & 0777) != 0600) exit(1);
10985 if { (eval echo configure
:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10987 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10989 echo "configure: failed program was:" >&5
10990 cat conftest.
$ac_ext >&5
10992 samba_cv_HAVE_SECURE_MKSTEMP
=no
10999 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11000 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11001 cat >> confdefs.h
<<\EOF
11002 #define HAVE_SECURE_MKSTEMP 1
11007 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11008 echo "configure:11009: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11009 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11013 if test "$cross_compiling" = yes; then
11014 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11016 cat > conftest.
$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <unistd.h>
11020 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11022 if { (eval echo configure
:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11024 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11026 echo "configure: failed program was:" >&5
11027 cat conftest.
$ac_ext >&5
11029 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11036 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11037 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11038 cat >> confdefs.h
<<\EOF
11039 #define SYSCONF_SC_NGROUPS_MAX 1
11044 echo $ac_n "checking for root""... $ac_c" 1>&6
11045 echo "configure:11046: checking for root" >&5
11046 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11050 if test "$cross_compiling" = yes; then
11051 samba_cv_HAVE_ROOT
=cross
11053 cat > conftest.
$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 main() { exit(getuid() != 0); }
11058 if { (eval echo configure
:11059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11060 samba_cv_HAVE_ROOT
=yes
11062 echo "configure: failed program was:" >&5
11063 cat conftest.
$ac_ext >&5
11065 samba_cv_HAVE_ROOT
=no
11072 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11073 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11074 cat >> confdefs.h
<<\EOF
11075 #define HAVE_ROOT 1
11079 echo "configure: warning: running as non-root will disable some tests" 1>&2
11083 # look for a method of finding the list of network interfaces
11085 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11086 echo "configure:11087: checking for iface AIX" >&5
11087 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11091 if test "$cross_compiling" = yes; then
11092 samba_cv_HAVE_IFACE_AIX
=cross
11094 cat > conftest.
$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11098 #define HAVE_IFACE_AIX 1
11099 #define AUTOCONF_TEST 1
11100 #include "confdefs.h"
11101 #include "${srcdir-.}/lib/interfaces.c"
11103 if { (eval echo configure
:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11105 samba_cv_HAVE_IFACE_AIX
=yes
11107 echo "configure: failed program was:" >&5
11108 cat conftest.
$ac_ext >&5
11110 samba_cv_HAVE_IFACE_AIX
=no
11117 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11118 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11119 iface
=yes;cat >> confdefs.h
<<\EOF
11120 #define HAVE_IFACE_AIX 1
11125 if test $iface = no
; then
11126 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11127 echo "configure:11128: checking for iface ifconf" >&5
11128 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11132 if test "$cross_compiling" = yes; then
11133 samba_cv_HAVE_IFACE_IFCONF
=cross
11135 cat > conftest.
$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11139 #define HAVE_IFACE_IFCONF 1
11140 #define AUTOCONF_TEST 1
11141 #include "confdefs.h"
11142 #include "${srcdir-.}/lib/interfaces.c"
11144 if { (eval echo configure
:11145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11146 samba_cv_HAVE_IFACE_IFCONF
=yes
11148 echo "configure: failed program was:" >&5
11149 cat conftest.
$ac_ext >&5
11151 samba_cv_HAVE_IFACE_IFCONF
=no
11158 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11159 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11160 iface
=yes;cat >> confdefs.h
<<\EOF
11161 #define HAVE_IFACE_IFCONF 1
11167 if test $iface = no
; then
11168 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11169 echo "configure:11170: checking for iface ifreq" >&5
11170 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11171 echo $ac_n "(cached) $ac_c" 1>&6
11174 if test "$cross_compiling" = yes; then
11175 samba_cv_HAVE_IFACE_IFREQ
=cross
11177 cat > conftest.
$ac_ext <<EOF
11178 #line 11179 "configure"
11179 #include "confdefs.h"
11181 #define HAVE_IFACE_IFREQ 1
11182 #define AUTOCONF_TEST 1
11183 #include "confdefs.h"
11184 #include "${srcdir-.}/lib/interfaces.c"
11186 if { (eval echo configure
:11187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11188 samba_cv_HAVE_IFACE_IFREQ
=yes
11190 echo "configure: failed program was:" >&5
11191 cat conftest.
$ac_ext >&5
11193 samba_cv_HAVE_IFACE_IFREQ
=no
11200 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11201 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11202 iface
=yes;cat >> confdefs.h
<<\EOF
11203 #define HAVE_IFACE_IFREQ 1
11210 ################################################
11211 # look for a method of setting the effective uid
11213 if test $seteuid = no
; then
11214 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11215 echo "configure:11216: checking for setresuid" >&5
11216 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11220 if test "$cross_compiling" = yes; then
11221 samba_cv_USE_SETRESUID
=cross
11223 cat > conftest.
$ac_ext <<EOF
11224 #line 11225 "configure"
11225 #include "confdefs.h"
11227 #define AUTOCONF_TEST 1
11228 #define USE_SETRESUID 1
11229 #include "confdefs.h"
11230 #include "${srcdir-.}/lib/util_sec.c"
11232 if { (eval echo configure
:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11234 samba_cv_USE_SETRESUID
=yes
11236 echo "configure: failed program was:" >&5
11237 cat conftest.
$ac_ext >&5
11239 samba_cv_USE_SETRESUID
=no
11246 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11247 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11248 seteuid
=yes;cat >> confdefs.h
<<\EOF
11249 #define USE_SETRESUID 1
11256 if test $seteuid = no
; then
11257 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11258 echo "configure:11259: checking for setreuid" >&5
11259 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11260 echo $ac_n "(cached) $ac_c" 1>&6
11263 if test "$cross_compiling" = yes; then
11264 samba_cv_USE_SETREUID
=cross
11266 cat > conftest.
$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11270 #define AUTOCONF_TEST 1
11271 #define USE_SETREUID 1
11272 #include "confdefs.h"
11273 #include "${srcdir-.}/lib/util_sec.c"
11275 if { (eval echo configure
:11276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11277 samba_cv_USE_SETREUID
=yes
11279 echo "configure: failed program was:" >&5
11280 cat conftest.
$ac_ext >&5
11282 samba_cv_USE_SETREUID
=no
11289 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11290 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11291 seteuid
=yes;cat >> confdefs.h
<<\EOF
11292 #define USE_SETREUID 1
11298 if test $seteuid = no
; then
11299 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11300 echo "configure:11301: checking for seteuid" >&5
11301 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11305 if test "$cross_compiling" = yes; then
11306 samba_cv_USE_SETEUID
=cross
11308 cat > conftest.
$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11312 #define AUTOCONF_TEST 1
11313 #define USE_SETEUID 1
11314 #include "confdefs.h"
11315 #include "${srcdir-.}/lib/util_sec.c"
11317 if { (eval echo configure
:11318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11319 samba_cv_USE_SETEUID
=yes
11321 echo "configure: failed program was:" >&5
11322 cat conftest.
$ac_ext >&5
11324 samba_cv_USE_SETEUID
=no
11331 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11332 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11333 seteuid
=yes;cat >> confdefs.h
<<\EOF
11334 #define USE_SETEUID 1
11340 if test $seteuid = no
; then
11341 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11342 echo "configure:11343: checking for setuidx" >&5
11343 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11344 echo $ac_n "(cached) $ac_c" 1>&6
11347 if test "$cross_compiling" = yes; then
11348 samba_cv_USE_SETUIDX
=cross
11350 cat > conftest.
$ac_ext <<EOF
11351 #line 11352 "configure"
11352 #include "confdefs.h"
11354 #define AUTOCONF_TEST 1
11355 #define USE_SETUIDX 1
11356 #include "confdefs.h"
11357 #include "${srcdir-.}/lib/util_sec.c"
11359 if { (eval echo configure
:11360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11361 samba_cv_USE_SETUIDX
=yes
11363 echo "configure: failed program was:" >&5
11364 cat conftest.
$ac_ext >&5
11366 samba_cv_USE_SETUIDX
=no
11373 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11374 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11375 seteuid
=yes;cat >> confdefs.h
<<\EOF
11376 #define USE_SETUIDX 1
11383 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11384 echo "configure:11385: checking for working mmap" >&5
11385 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11386 echo $ac_n "(cached) $ac_c" 1>&6
11389 if test "$cross_compiling" = yes; then
11390 samba_cv_HAVE_MMAP
=cross
11392 cat > conftest.
$ac_ext <<EOF
11393 #line 11394 "configure"
11394 #include "confdefs.h"
11395 #include "${srcdir-.}/tests/shared_mmap.c"
11397 if { (eval echo configure
:11398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11399 samba_cv_HAVE_MMAP
=yes
11401 echo "configure: failed program was:" >&5
11402 cat conftest.
$ac_ext >&5
11404 samba_cv_HAVE_MMAP
=no
11411 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11412 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11413 cat >> confdefs.h
<<\EOF
11414 #define HAVE_MMAP 1
11419 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11420 echo "configure:11421: checking for ftruncate needs root" >&5
11421 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11425 if test "$cross_compiling" = yes; then
11426 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11428 cat > conftest.
$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 #include "${srcdir-.}/tests/ftruncroot.c"
11433 if { (eval echo configure
:11434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11435 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11437 echo "configure: failed program was:" >&5
11438 cat conftest.
$ac_ext >&5
11440 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11447 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11448 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11449 cat >> confdefs.h
<<\EOF
11450 #define FTRUNCATE_NEEDS_ROOT 1
11455 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11456 echo "configure:11457: checking for fcntl locking" >&5
11457 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11461 if test "$cross_compiling" = yes; then
11462 samba_cv_HAVE_FCNTL_LOCK
=cross
11464 cat > conftest.
$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11467 #include "${srcdir-.}/tests/fcntl_lock.c"
11469 if { (eval echo configure
:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11471 samba_cv_HAVE_FCNTL_LOCK
=yes
11473 echo "configure: failed program was:" >&5
11474 cat conftest.
$ac_ext >&5
11476 samba_cv_HAVE_FCNTL_LOCK
=no
11483 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11484 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11485 cat >> confdefs.h
<<\EOF
11486 #define HAVE_FCNTL_LOCK 1
11491 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11492 echo "configure:11493: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11493 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11497 if test "$cross_compiling" = yes; then
11498 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11500 cat > conftest.
$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include "${srcdir-.}/tests/fcntl_lock64.c"
11505 if { (eval echo configure
:11506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11507 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11509 echo "configure: failed program was:" >&5
11510 cat conftest.
$ac_ext >&5
11512 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11519 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11520 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11521 cat >> confdefs.h
<<\EOF
11522 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11529 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11530 echo "configure:11531: checking for 64 bit fcntl locking" >&5
11531 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11532 echo $ac_n "(cached) $ac_c" 1>&6
11535 if test "$cross_compiling" = yes; then
11536 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11538 cat > conftest.
$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11542 #if defined(HAVE_UNISTD_H)
11543 #include <unistd.h>
11546 #include <stdlib.h>
11548 #ifdef HAVE_FCNTL_H
11552 #ifdef HAVE_SYS_FCNTL_H
11553 #include <sys/fcntl.h>
11555 main() { struct flock64 fl64;
11556 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11563 if { (eval echo configure
:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11565 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11567 echo "configure: failed program was:" >&5
11568 cat conftest.
$ac_ext >&5
11570 samba_cv_HAVE_STRUCT_FLOCK64
=no
11577 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11579 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11580 cat >> confdefs.h
<<\EOF
11581 #define HAVE_STRUCT_FLOCK64 1
11587 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11588 echo "configure:11589: checking for st_blocks in struct stat" >&5
11589 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11593 cat > conftest.
$ac_ext <<EOF
11594 #line 11595 "configure"
11595 #include "confdefs.h"
11596 #include <sys/types.h>
11597 #include <sys/stat.h>
11598 #include <unistd.h>
11600 struct stat st; st.st_blocks = 0;
11603 if { (eval echo configure
:11604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11605 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11607 echo "configure: failed program was:" >&5
11608 cat conftest.
$ac_ext >&5
11610 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11615 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11616 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11617 cat >> confdefs.h
<<\EOF
11618 #define HAVE_STAT_ST_BLOCKS 1
11623 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11624 echo "configure:11625: checking for st_blksize in struct stat" >&5
11625 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11629 cat > conftest.
$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include <sys/types.h>
11633 #include <sys/stat.h>
11634 #include <unistd.h>
11636 struct stat st; st.st_blksize = 0;
11639 if { (eval echo configure
:11640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11641 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
11643 echo "configure: failed program was:" >&5
11644 cat conftest.
$ac_ext >&5
11646 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
11651 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11652 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
11653 cat >> confdefs.h
<<\EOF
11654 #define HAVE_STAT_ST_BLKSIZE 1
11661 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11662 echo "configure:11663: checking for broken RedHat 7.2 system header files" >&5
11663 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11664 echo $ac_n "(cached) $ac_c" 1>&6
11667 cat > conftest.
$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11671 #ifdef HAVE_SYS_VFS_H
11672 #include <sys/vfs.h>
11674 #ifdef HAVE_SYS_CAPABILITY_H
11675 #include <sys/capability.h>
11682 if { (eval echo configure
:11683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11684 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11686 echo "configure: failed program was:" >&5
11687 cat conftest.
$ac_ext >&5
11689 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11694 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11695 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11696 cat >> confdefs.h
<<\EOF
11697 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11704 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11705 echo "configure:11706: checking for broken nisplus include files" >&5
11706 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11710 cat > conftest.
$ac_ext <<EOF
11711 #line 11712 "configure"
11712 #include "confdefs.h"
11713 #include <sys/acl.h>
11714 #if defined(HAVE_RPCSVC_NIS_H)
11715 #include <rpcsvc/nis.h>
11721 if { (eval echo configure
:11722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11723 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11725 echo "configure: failed program was:" >&5
11726 cat conftest.
$ac_ext >&5
11728 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11733 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11734 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11735 cat >> confdefs.h
<<\EOF
11736 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11742 #################################################
11743 # check for smbwrapper support
11744 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11745 echo "configure:11746: checking whether to use smbwrapper" >&5
11746 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11747 if test "${with_smbwrapper+set}" = set; then
11748 withval
="$with_smbwrapper"
11751 echo "$ac_t""yes" 1>&6
11752 cat >> confdefs.h
<<\EOF
11753 #define WITH_SMBWRAPPER 1
11756 WRAPPROG
="bin/smbsh"
11757 WRAP
="bin/smbwrapper.$SHLIBEXT"
11759 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11762 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11765 # Conditions under which smbwrapper should not be built.
11767 if test x
$PICFLAG = x
; then
11768 echo No support
for PIC code
- disabling smbwrapper and smbsh
11772 elif test x
$ac_cv_func_syscall = xno
; then
11773 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11780 echo "$ac_t""no" 1>&6
11784 echo "$ac_t""no" 1>&6
11789 #################################################
11790 # check for the AFS filesystem
11791 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11792 echo "configure:11793: checking whether to use AFS" >&5
11793 # Check whether --with-afs or --without-afs was given.
11794 if test "${with_afs+set}" = set; then
11795 withval
="$with_afs"
11798 echo "$ac_t""yes" 1>&6
11799 cat >> confdefs.h
<<\EOF
11805 echo "$ac_t""no" 1>&6
11809 echo "$ac_t""no" 1>&6
11815 #################################################
11816 # check for the DFS auth system
11817 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11818 echo "configure:11819: checking whether to use DCE/DFS auth" >&5
11819 # Check whether --with-dfs or --without-dfs was given.
11820 if test "${with_dfs+set}" = set; then
11821 withval
="$with_dfs"
11824 echo "$ac_t""yes" 1>&6
11825 cat >> confdefs.h
<<\EOF
11831 echo "$ac_t""no" 1>&6
11835 echo "$ac_t""no" 1>&6
11840 #################################################
11841 # check for Kerberos IV auth system
11842 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11843 echo "configure:11844: checking whether to use Kerberos IV" >&5
11844 # Check whether --with-krb4 or --without-krb4 was given.
11845 if test "${with_krb4+set}" = set; then
11846 withval
="$with_krb4"
11849 echo "$ac_t""yes" 1>&6
11850 cat >> confdefs.h
<<\EOF
11851 #define KRB4_AUTH 1
11854 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11855 echo "configure:11856: checking for dn_expand in -lresolv" >&5
11856 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11860 ac_save_LIBS
="$LIBS"
11861 LIBS
="-lresolv $LIBS"
11862 cat > conftest.
$ac_ext <<EOF
11863 #line 11864 "configure"
11864 #include "confdefs.h"
11865 /* Override any gcc2 internal prototype to avoid an error. */
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11874 if { (eval echo configure
:11875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11876 eval "ac_cv_lib_$ac_lib_var=yes"
11878 echo "configure: failed program was:" >&5
11879 cat conftest.
$ac_ext >&5
11881 eval "ac_cv_lib_$ac_lib_var=no"
11884 LIBS
="$ac_save_LIBS"
11887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11888 echo "$ac_t""yes" 1>&6
11889 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11890 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11891 cat >> confdefs.h
<<EOF
11892 #define $ac_tr_lib 1
11895 LIBS
="-lresolv $LIBS"
11898 echo "$ac_t""no" 1>&6
11901 LIBS
="$LIBS -lkrb -ldes"
11902 CFLAGS
="$CFLAGS -I$withval/include"
11903 LDFLAGS
="$LDFLAGS -L$withval/lib"
11906 echo "$ac_t""no" 1>&6
11910 echo "$ac_t""no" 1>&6
11915 #################################################
11916 # check for Kerberos 5 auth system
11917 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11918 echo "configure:11919: checking whether to use Kerberos 5" >&5
11919 # Check whether --with-krb5 or --without-krb5 was given.
11920 if test "${with_krb5+set}" = set; then
11921 withval
="$with_krb5"
11924 echo "$ac_t""yes" 1>&6
11925 cat >> confdefs.h
<<\EOF
11926 #define KRB5_AUTH 1
11929 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11930 CFLAGS
="$CFLAGS -I$withval/include"
11931 LDFLAGS
="$LDFLAGS -L$withval/lib"
11934 echo "$ac_t""no" 1>&6
11938 echo "$ac_t""no" 1>&6
11943 #################################################
11944 # check for automount support
11945 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11946 echo "configure:11947: checking whether to use AUTOMOUNT" >&5
11947 # Check whether --with-automount or --without-automount was given.
11948 if test "${with_automount+set}" = set; then
11949 withval
="$with_automount"
11952 echo "$ac_t""yes" 1>&6
11953 cat >> confdefs.h
<<\EOF
11954 #define WITH_AUTOMOUNT 1
11959 echo "$ac_t""no" 1>&6
11963 echo "$ac_t""no" 1>&6
11968 #################################################
11969 # check for smbmount support
11970 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11971 echo "configure:11972: checking whether to use SMBMOUNT" >&5
11972 # Check whether --with-smbmount or --without-smbmount was given.
11973 if test "${with_smbmount+set}" = set; then
11974 withval
="$with_smbmount"
11979 echo "$ac_t""yes" 1>&6
11980 cat >> confdefs.h
<<\EOF
11981 #define WITH_SMBMOUNT 1
11984 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11987 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11992 echo "$ac_t""no" 1>&6
11997 echo "$ac_t""no" 1>&6
12004 #################################################
12005 # check for a PAM password database
12006 with_pam_for_crypt
=no
12007 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
12008 echo "configure:12009: checking whether to use PAM password database" >&5
12009 # Check whether --with-pam or --without-pam was given.
12010 if test "${with_pam+set}" = set; then
12011 withval
="$with_pam"
12014 echo "$ac_t""yes" 1>&6
12015 cat >> confdefs.h
<<\EOF
12020 with_pam_for_crypt
=yes
12023 echo "$ac_t""no" 1>&6
12027 echo "$ac_t""no" 1>&6
12032 # we can't build a pam module if we don't have pam.
12033 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12034 echo "configure:12035: checking for pam_get_data in -lpam" >&5
12035 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12037 echo $ac_n "(cached) $ac_c" 1>&6
12039 ac_save_LIBS
="$LIBS"
12041 cat > conftest.
$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12044 /* Override any gcc2 internal prototype to avoid an error. */
12045 /* We use char because int might match the return type of a gcc2
12046 builtin and then its argument prototype would still apply. */
12047 char pam_get_data();
12053 if { (eval echo configure
:12054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12055 eval "ac_cv_lib_$ac_lib_var=yes"
12057 echo "configure: failed program was:" >&5
12058 cat conftest.
$ac_ext >&5
12060 eval "ac_cv_lib_$ac_lib_var=no"
12063 LIBS
="$ac_save_LIBS"
12066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12067 echo "$ac_t""yes" 1>&6
12068 cat >> confdefs.h
<<\EOF
12069 #define HAVE_LIBPAM 1
12073 echo "$ac_t""no" 1>&6
12077 #################################################
12078 # check for pam_smbpass support
12079 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12080 echo "configure:12081: checking whether to use pam_smbpass" >&5
12081 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12082 if test "${with_pam_smbpass+set}" = set; then
12083 withval
="$with_pam_smbpass"
12086 echo "$ac_t""yes" 1>&6
12088 # Conditions under which pam_smbpass should not be built.
12090 if test x
$PICFLAG = x
; then
12091 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12093 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
12094 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12097 cat >> confdefs.h
<<\EOF
12098 #define WITH_PAM_SMBPASS 1
12101 PAM_MOD
="bin/pam_smbpass.so"
12105 echo "$ac_t""no" 1>&6
12109 echo "$ac_t""no" 1>&6
12115 ###############################################
12116 # test for where we get crypt() from, but only
12118 if test $with_pam_for_crypt = no
; then
12119 for ac_func
in crypt
12121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12122 echo "configure:12123: checking for $ac_func" >&5
12123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12124 echo $ac_n "(cached) $ac_c" 1>&6
12126 cat > conftest.
$ac_ext <<EOF
12127 #line 12128 "configure"
12128 #include "confdefs.h"
12129 /* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char $ac_func(); below. */
12131 #include <assert.h>
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12150 if { (eval echo configure
:12151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12152 eval "ac_cv_func_$ac_func=yes"
12154 echo "configure: failed program was:" >&5
12155 cat conftest.
$ac_ext >&5
12157 eval "ac_cv_func_$ac_func=no"
12162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12163 echo "$ac_t""yes" 1>&6
12164 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12165 cat >> confdefs.h
<<EOF
12166 #define $ac_tr_func 1
12170 echo "$ac_t""no" 1>&6
12174 if test x
"$ac_cv_func_crypt" = x
"no"; then
12175 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12176 echo "configure:12177: checking for crypt in -lcrypt" >&5
12177 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12181 ac_save_LIBS
="$LIBS"
12182 LIBS
="-lcrypt $LIBS"
12183 cat > conftest.
$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12186 /* Override any gcc2 internal prototype to avoid an error. */
12187 /* We use char because int might match the return type of a gcc2
12188 builtin and then its argument prototype would still apply. */
12195 if { (eval echo configure
:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12197 eval "ac_cv_lib_$ac_lib_var=yes"
12199 echo "configure: failed program was:" >&5
12200 cat conftest.
$ac_ext >&5
12202 eval "ac_cv_lib_$ac_lib_var=no"
12205 LIBS
="$ac_save_LIBS"
12208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12209 echo "$ac_t""yes" 1>&6
12210 LIBS
="$LIBS -lcrypt";
12211 cat >> confdefs.h
<<\EOF
12212 #define HAVE_CRYPT 1
12216 echo "$ac_t""no" 1>&6
12223 ## moved after the check for -lcrypt in order to
12224 ## ensure that the necessary libraries are included
12225 ## check checking for truncated salt. Wrapped by the
12226 ## $with_pam_for_crypt variable as above --jerry
12228 if test $with_pam_for_crypt = no
; then
12229 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12230 echo "configure:12231: checking for a crypt that needs truncated salt" >&5
12231 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12232 echo $ac_n "(cached) $ac_c" 1>&6
12235 if test "$cross_compiling" = yes; then
12236 samba_cv_HAVE_TRUNCATED_SALT
=cross
12238 cat > conftest.
$ac_ext <<EOF
12239 #line 12240 "configure"
12240 #include "confdefs.h"
12241 #include "${srcdir-.}/tests/crypttest.c"
12243 if { (eval echo configure
:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12245 samba_cv_HAVE_TRUNCATED_SALT
=no
12247 echo "configure: failed program was:" >&5
12248 cat conftest.
$ac_ext >&5
12250 samba_cv_HAVE_TRUNCATED_SALT
=yes
12257 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12258 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12259 cat >> confdefs.h
<<\EOF
12260 #define HAVE_TRUNCATED_SALT 1
12267 ########################################################################################
12269 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12271 ########################################################################################
12273 ## set the with_smbpasswd_sam as the default
12274 with_smbpasswd_sam
=yes
12278 #################################################
12279 # check for a TDB password database
12280 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12281 echo "configure:12282: checking whether to use TDB SAM database" >&5
12282 # Check whether --with-tdbsam or --without-tdbsam was given.
12283 if test "${with_tdbsam+set}" = set; then
12284 withval
="$with_tdbsam"
12287 echo "$ac_t""yes" 1>&6
12288 cat >> confdefs.h
<<\EOF
12289 #define WITH_TDB_SAM 1
12292 with_smbpasswd_sam
=no
12295 echo "$ac_t""no" 1>&6
12299 echo "$ac_t""no" 1>&6
12304 #################################################
12305 # check for a LDAP password database
12306 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12307 echo "configure:12308: checking whether to use LDAP SAM database" >&5
12308 # Check whether --with-ldapsam or --without-ldapsam was given.
12309 if test "${with_ldapsam+set}" = set; then
12310 withval
="$with_ldapsam"
12313 echo "$ac_t""yes" 1>&6
12314 cat >> confdefs.h
<<\EOF
12315 #define WITH_LDAP_SAM 1
12319 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12320 echo "configure:12321: checking for ber_bvfree in -llber" >&5
12321 ac_lib_var
=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12325 ac_save_LIBS
="$LIBS"
12326 LIBS
="-llber $LIBS"
12327 cat > conftest.
$ac_ext <<EOF
12328 #line 12329 "configure"
12329 #include "confdefs.h"
12330 /* Override any gcc2 internal prototype to avoid an error. */
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12339 if { (eval echo configure
:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12341 eval "ac_cv_lib_$ac_lib_var=yes"
12343 echo "configure: failed program was:" >&5
12344 cat conftest.
$ac_ext >&5
12346 eval "ac_cv_lib_$ac_lib_var=no"
12349 LIBS
="$ac_save_LIBS"
12352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 LDAPLIBS
="$LDAPLIBS -llber"
12356 echo "$ac_t""no" 1>&6
12359 ## remove -lresolv as this should be included by the -lsasl dependency
12360 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12361 ## issues on platforms that don't have it
12362 LDAPLIBS
="$LDAPLIBS"
12363 old_LDFLAGS
="$LDFLAGS"
12364 LDFLAGS
="$LDFLAGS $LDAPLIBS"
12365 for ac_func
in ldap_start_tls_s
12367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12368 echo "configure:12369: checking for $ac_func" >&5
12369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12370 echo $ac_n "(cached) $ac_c" 1>&6
12372 cat > conftest.
$ac_ext <<EOF
12373 #line 12374 "configure"
12374 #include "confdefs.h"
12375 /* System header to define __stub macros and hopefully few prototypes,
12376 which can conflict with char $ac_func(); below. */
12377 #include <assert.h>
12378 /* Override any gcc2 internal prototype to avoid an error. */
12379 /* We use char because int might match the return type of a gcc2
12380 builtin and then its argument prototype would still apply. */
12385 /* The GNU C library defines this for functions which it implements
12386 to always fail with ENOSYS. Some functions are actually named
12387 something starting with __ and the normal name is an alias. */
12388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12396 if { (eval echo configure
:12397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12398 eval "ac_cv_func_$ac_func=yes"
12400 echo "configure: failed program was:" >&5
12401 cat conftest.
$ac_ext >&5
12403 eval "ac_cv_func_$ac_func=no"
12408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12409 echo "$ac_t""yes" 1>&6
12410 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12411 cat >> confdefs.h
<<EOF
12412 #define $ac_tr_func 1
12416 echo "$ac_t""no" 1>&6
12420 LDFLAGS
="$old_LDFLAGS"
12421 with_smbpasswd_sam
=no
12423 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12424 echo "configure:12425: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12425 if eval "test \"`echo '$''{'samba_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12426 echo $ac_n "(cached) $ac_c" 1>&6
12429 cat > conftest.
$ac_ext <<EOF
12430 #line 12431 "configure"
12431 #include "confdefs.h"
12436 ldap_set_rebind_proc(0, 0, 0);
12439 if { (eval echo configure
:12440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12441 samba_cv_ldap_set_rebind_proc
=3
12443 echo "configure: failed program was:" >&5
12444 cat conftest.
$ac_ext >&5
12446 samba_cv_ldap_set_rebind_proc
=2
12451 echo "$ac_t""$samba_cv_ldap_set_rebind_proc" 1>&6
12452 if test x
"$samba_cv_ldap_set_rebind_proc" = x
"3"; then
12453 cat >> confdefs.h
<<\EOF
12454 #define LDAP_SET_REBIND_PROC_ARGS 3
12458 cat >> confdefs.h
<<\EOF
12459 #define LDAP_SET_REBIND_PROC_ARGS 2
12465 echo "$ac_t""no" 1>&6
12469 echo "$ac_t""no" 1>&6
12475 #################################################
12476 # check for a NISPLUS password database
12477 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12478 echo "configure:12479: checking whether to use NISPLUS SAM database" >&5
12479 # Check whether --with-nisplussam or --without-nisplussam was given.
12480 if test "${with_nisplussam+set}" = set; then
12481 withval
="$with_nisplussam"
12484 echo "$ac_t""yes" 1>&6
12485 cat >> confdefs.h
<<\EOF
12486 #define WITH_NISPLUS_SAM 1
12489 with_smbpasswd_sam
=no
12492 echo "$ac_t""no" 1>&6
12496 echo "$ac_t""no" 1>&6
12501 ################################################
12502 # This test should come last because the
12503 # smbpasswd SAM is only used if another format
12504 # has not been defined
12505 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12506 echo "configure:12507: checking whether to use traditional smbpasswd file" >&5
12507 if test $with_smbpasswd_sam = yes; then
12508 echo "$ac_t""yes" 1>&6
12509 cat >> confdefs.h
<<\EOF
12510 #define WITH_SMBPASSWD_SAM 1
12515 echo "$ac_t""no" 1>&6
12516 PDBEDIT
=bin
/pdbedit
12519 ########################################################################################
12521 ## END OF TESTS FOR SAM BACKENDS.
12523 ########################################################################################
12525 #################################################
12526 # check for a NISPLUS_HOME support
12527 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12528 echo "configure:12529: checking whether to use NISPLUS_HOME" >&5
12529 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12530 if test "${with_nisplus_home+set}" = set; then
12531 withval
="$with_nisplus_home"
12534 echo "$ac_t""yes" 1>&6
12535 cat >> confdefs.h
<<\EOF
12536 #define WITH_NISPLUS_HOME 1
12541 echo "$ac_t""no" 1>&6
12545 echo "$ac_t""no" 1>&6
12550 #################################################
12551 # check for the secure socket layer
12552 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12553 echo "configure:12554: checking whether to use SSL" >&5
12554 # Check whether --with-ssl or --without-ssl was given.
12555 if test "${with_ssl+set}" = set; then
12556 withval
="$with_ssl"
12559 echo "$ac_t""yes" 1>&6
12560 cat >> confdefs.h
<<\EOF
12564 withval
="/usr/local/ssl" # default
12566 if test "${with_sslinc+set}" = set; then
12568 withval
="$with_sslinc"
12571 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12572 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12575 CFLAGS
="-I${withval} $CFLAGS"
12581 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12585 if test "${with_ssllib+set}" = set; then
12587 withval
="$with_ssllib"
12590 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12591 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12594 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12600 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12604 LIBS
="-lssl -lcrypto $LIBS"
12606 # if test ! -d ${withval}; then
12607 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12611 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12615 echo "$ac_t""no" 1>&6
12619 echo "$ac_t""no" 1>&6
12624 #################################################
12625 # check for syslog logging
12626 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12627 echo "configure:12628: checking whether to use syslog logging" >&5
12628 # Check whether --with-syslog or --without-syslog was given.
12629 if test "${with_syslog+set}" = set; then
12630 withval
="$with_syslog"
12633 echo "$ac_t""yes" 1>&6
12634 cat >> confdefs.h
<<\EOF
12635 #define WITH_SYSLOG 1
12640 echo "$ac_t""no" 1>&6
12644 echo "$ac_t""no" 1>&6
12649 #################################################
12650 # check for a shared memory profiling support
12651 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12652 echo "configure:12653: checking whether to use profiling" >&5
12653 # Check whether --with-profiling-data or --without-profiling-data was given.
12654 if test "${with_profiling_data+set}" = set; then
12655 withval
="$with_profiling_data"
12658 echo "$ac_t""yes" 1>&6
12659 cat >> confdefs.h
<<\EOF
12660 #define WITH_PROFILE 1
12665 echo "$ac_t""no" 1>&6
12669 echo "$ac_t""no" 1>&6
12675 #################################################
12676 # check for experimental disk-quotas support
12677 QUOTAOBJS
=smbd
/noquotas.o
12679 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12680 echo "configure:12681: checking whether to support disk-quotas" >&5
12681 # Check whether --with-quotas or --without-quotas was given.
12682 if test "${with_quotas+set}" = set; then
12683 withval
="$with_quotas"
12686 echo "$ac_t""yes" 1>&6
12687 QUOTAOBJS
=smbd
/quotas.o
12690 echo "$ac_t""no" 1>&6
12694 echo "$ac_t""no" 1>&6
12700 #################################################
12701 # check for experimental utmp accounting
12703 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12704 echo "configure:12705: checking whether to support utmp accounting" >&5
12705 # Check whether --with-utmp or --without-utmp was given.
12706 if test "${with_utmp+set}" = set; then
12707 withval
="$with_utmp"
12710 echo "$ac_t""yes" 1>&6
12711 cat >> confdefs.h
<<\EOF
12712 #define WITH_UTMP 1
12717 echo "$ac_t""no" 1>&6
12721 echo "$ac_t""no" 1>&6
12726 #################################################
12727 # check for MS Dfs support
12729 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12730 echo "configure:12731: checking whether to support Microsoft Dfs" >&5
12731 # Check whether --with-msdfs or --without-msdfs was given.
12732 if test "${with_msdfs+set}" = set; then
12733 withval
="$with_msdfs"
12736 echo "$ac_t""yes" 1>&6
12737 cat >> confdefs.h
<<\EOF
12738 #define WITH_MSDFS 1
12743 echo "$ac_t""no" 1>&6
12747 echo "$ac_t""no" 1>&6
12752 #################################################
12753 # should we build libsmbclient?
12755 INSTALLCLIENTCMD_SH
=:
12756 INSTALLCLIENTCMD_A
=:
12757 LIBSMBCLIENT_SHARED
=
12759 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12760 echo "configure:12761: checking whether to build the libsmbclient shared library" >&5
12761 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12762 if test "${with_libsmbclient+set}" = set; then
12763 withval
="$with_libsmbclient"
12766 if test $BLDSHARED = true
; then
12767 INSTALLCLIENTCMD_SH
="\$(INSTALLCMD)"
12768 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12769 LIBSMBCLIENT
=libsmbclient
12770 echo "$ac_t""yes" 1>&6
12772 INSTALLCLIENTCMD_A
="\$(INSTALLCMD)"
12773 LIBSMBCLIENT
=libsmbclient
12774 echo "$ac_t""no shared library support -- will supply static library" 1>&6
12778 echo "$ac_t""no" 1>&6
12782 echo "$ac_t""no" 1>&6
12787 #################################################
12788 # these tests are taken from the GNU fileutils package
12789 echo "checking how to get filesystem space usage" 1>&6
12790 echo "configure:12791: checking how to get filesystem space usage" >&5
12793 # Test for statvfs64.
12794 if test $space = no
; then
12796 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12797 echo "configure:12798: checking statvfs64 function (SVR4)" >&5
12798 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12799 echo $ac_n "(cached) $ac_c" 1>&6
12801 if test "$cross_compiling" = yes; then
12802 fu_cv_sys_stat_statvfs64
=cross
12804 cat > conftest.
$ac_ext <<EOF
12805 #line 12806 "configure"
12806 #include "confdefs.h"
12808 #if defined(HAVE_UNISTD_H)
12809 #include <unistd.h>
12811 #include <sys/types.h>
12812 #include <sys/statvfs.h>
12815 struct statvfs64 fsd;
12816 exit (statvfs64 (".", &fsd));
12819 if { (eval echo configure
:12820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12821 fu_cv_sys_stat_statvfs64
=yes
12823 echo "configure: failed program was:" >&5
12824 cat conftest.
$ac_ext >&5
12826 fu_cv_sys_stat_statvfs64
=no
12833 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12834 if test $fu_cv_sys_stat_statvfs64 = yes; then
12836 cat >> confdefs.h
<<\EOF
12837 #define STAT_STATVFS64 1
12843 # Perform only the link test since it seems there are no variants of the
12844 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12845 # because that got a false positive on SCO OSR5. Adding the declaration
12846 # of a `struct statvfs' causes this test to fail (as it should) on such
12847 # systems. That system is reported to work fine with STAT_STATFS4 which
12848 # is what it gets when this test fails.
12849 if test $space = no
; then
12851 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12852 echo "configure:12853: checking statvfs function (SVR4)" >&5
12853 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12854 echo $ac_n "(cached) $ac_c" 1>&6
12856 cat > conftest.
$ac_ext <<EOF
12857 #line 12858 "configure"
12858 #include "confdefs.h"
12859 #include <sys/types.h>
12860 #include <sys/statvfs.h>
12862 struct statvfs fsd; statvfs (0, &fsd);
12865 if { (eval echo configure
:12866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12867 fu_cv_sys_stat_statvfs
=yes
12869 echo "configure: failed program was:" >&5
12870 cat conftest.
$ac_ext >&5
12872 fu_cv_sys_stat_statvfs
=no
12877 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12878 if test $fu_cv_sys_stat_statvfs = yes; then
12880 cat >> confdefs.h
<<\EOF
12881 #define STAT_STATVFS 1
12887 if test $space = no
; then
12888 # DEC Alpha running OSF/1
12889 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12890 echo "configure:12891: checking for 3-argument statfs function (DEC OSF/1)" >&5
12891 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12892 echo $ac_n "(cached) $ac_c" 1>&6
12894 if test "$cross_compiling" = yes; then
12895 fu_cv_sys_stat_statfs3_osf1
=no
12897 cat > conftest.
$ac_ext <<EOF
12898 #line 12899 "configure"
12899 #include "confdefs.h"
12901 #include <sys/param.h>
12902 #include <sys/types.h>
12903 #include <sys/mount.h>
12908 exit (statfs (".", &fsd, sizeof (struct statfs)));
12911 if { (eval echo configure
:12912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12913 fu_cv_sys_stat_statfs3_osf1
=yes
12915 echo "configure: failed program was:" >&5
12916 cat conftest.
$ac_ext >&5
12918 fu_cv_sys_stat_statfs3_osf1
=no
12925 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12926 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12928 cat >> confdefs.h
<<\EOF
12929 #define STAT_STATFS3_OSF1 1
12935 if test $space = no
; then
12937 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12938 echo "configure:12939: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12939 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12940 echo $ac_n "(cached) $ac_c" 1>&6
12942 if test "$cross_compiling" = yes; then
12943 fu_cv_sys_stat_statfs2_bsize
=no
12945 cat > conftest.
$ac_ext <<EOF
12946 #line 12947 "configure"
12947 #include "confdefs.h"
12949 #ifdef HAVE_SYS_PARAM_H
12950 #include <sys/param.h>
12952 #ifdef HAVE_SYS_MOUNT_H
12953 #include <sys/mount.h>
12955 #ifdef HAVE_SYS_VFS_H
12956 #include <sys/vfs.h>
12962 exit (statfs (".", &fsd));
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_statfs2_bsize
=yes
12969 echo "configure: failed program was:" >&5
12970 cat conftest.
$ac_ext >&5
12972 fu_cv_sys_stat_statfs2_bsize
=no
12979 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12980 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12982 cat >> confdefs.h
<<\EOF
12983 #define STAT_STATFS2_BSIZE 1
12989 if test $space = no
; then
12991 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12992 echo "configure:12993: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12993 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12994 echo $ac_n "(cached) $ac_c" 1>&6
12996 if test "$cross_compiling" = yes; then
12997 fu_cv_sys_stat_statfs4
=no
12999 cat > conftest.
$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13002 #include <sys/types.h>
13003 #include <sys/statfs.h>
13007 exit (statfs (".", &fsd, sizeof fsd, 0));
13010 if { (eval echo configure
:13011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13012 fu_cv_sys_stat_statfs4
=yes
13014 echo "configure: failed program was:" >&5
13015 cat conftest.
$ac_ext >&5
13017 fu_cv_sys_stat_statfs4
=no
13024 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13025 if test $fu_cv_sys_stat_statfs4 = yes; then
13027 cat >> confdefs.h
<<\EOF
13028 #define STAT_STATFS4 1
13034 if test $space = no
; then
13035 # 4.4BSD and NetBSD
13036 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13037 echo "configure:13038: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13038 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13039 echo $ac_n "(cached) $ac_c" 1>&6
13041 if test "$cross_compiling" = yes; then
13042 fu_cv_sys_stat_statfs2_fsize
=no
13044 cat > conftest.
$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13047 #include <sys/types.h>
13048 #ifdef HAVE_SYS_PARAM_H
13049 #include <sys/param.h>
13051 #ifdef HAVE_SYS_MOUNT_H
13052 #include <sys/mount.h>
13058 exit (statfs (".", &fsd));
13061 if { (eval echo configure
:13062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13063 fu_cv_sys_stat_statfs2_fsize
=yes
13065 echo "configure: failed program was:" >&5
13066 cat conftest.
$ac_ext >&5
13068 fu_cv_sys_stat_statfs2_fsize
=no
13075 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13076 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13078 cat >> confdefs.h
<<\EOF
13079 #define STAT_STATFS2_FSIZE 1
13085 if test $space = no
; then
13087 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13088 echo "configure:13089: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13089 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13090 echo $ac_n "(cached) $ac_c" 1>&6
13092 if test "$cross_compiling" = yes; then
13093 fu_cv_sys_stat_fs_data
=no
13095 cat > conftest.
$ac_ext <<EOF
13096 #line 13097 "configure"
13097 #include "confdefs.h"
13098 #include <sys/types.h>
13099 #ifdef HAVE_SYS_PARAM_H
13100 #include <sys/param.h>
13102 #ifdef HAVE_SYS_MOUNT_H
13103 #include <sys/mount.h>
13105 #ifdef HAVE_SYS_FS_TYPES_H
13106 #include <sys/fs_types.h>
13110 struct fs_data fsd;
13111 /* Ultrix's statfs returns 1 for success,
13112 0 for not mounted, -1 for failure. */
13113 exit (statfs (".", &fsd) != 1);
13116 if { (eval echo configure
:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13118 fu_cv_sys_stat_fs_data
=yes
13120 echo "configure: failed program was:" >&5
13121 cat conftest.
$ac_ext >&5
13123 fu_cv_sys_stat_fs_data
=no
13130 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13131 if test $fu_cv_sys_stat_fs_data = yes; then
13133 cat >> confdefs.h
<<\EOF
13134 #define STAT_STATFS2_FS_DATA 1
13141 # As a gating factor for large file support, in order to
13142 # use <4GB files we must have the following minimal support
13144 # long long, and a 64 bit off_t or off64_t.
13145 # If we don't have all of these then disable large
13148 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13149 echo "configure:13150: checking if large file support can be enabled" >&5
13150 cat > conftest.
$ac_ext <<EOF
13151 #line 13152 "configure"
13152 #include "confdefs.h"
13154 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13155 #include <sys/types.h>
13164 if { (eval echo configure
:13165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13166 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13168 echo "configure: failed program was:" >&5
13169 cat conftest.
$ac_ext >&5
13171 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13174 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13175 echo "$ac_t""yes" 1>&6
13176 cat >> confdefs.h
<<\EOF
13177 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13181 echo "$ac_t""no" 1>&6
13184 # Check whether --with-spinlocks or --without-spinlocks was given.
13185 if test "${with_spinlocks+set}" = set; then
13186 withval
="$with_spinlocks"
13190 if test "x$with_spinlocks" = "xyes"; then
13191 cat >> confdefs.h
<<\EOF
13192 #define USE_SPINLOCKS 1
13196 case "$host_cpu" in
13198 cat >> confdefs.h
<<\EOF
13199 #define SPARC_SPINLOCKS 1
13204 i386|i486|i586|i686
)
13205 cat >> confdefs.h
<<\EOF
13206 #define INTEL_SPINLOCKS 1
13212 cat >> confdefs.h
<<\EOF
13213 #define MIPS_SPINLOCKS 1
13219 cat >> confdefs.h
<<\EOF
13220 #define POWERPC_SPINLOCKS 1
13227 #################################################
13228 # check for ACL support
13230 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13231 echo "configure:13232: checking whether to support ACLs" >&5
13232 # Check whether --with-acl-support or --without-acl-support was given.
13233 if test "${with_acl_support+set}" = set; then
13234 withval
="$with_acl_support"
13240 echo "$ac_t""Using UnixWare ACLs" 1>&6
13241 cat >> confdefs.h
<<\EOF
13242 #define HAVE_UNIXWARE_ACLS 1
13247 echo "$ac_t""Using solaris ACLs" 1>&6
13248 cat >> confdefs.h
<<\EOF
13249 #define HAVE_SOLARIS_ACLS 1
13254 echo "$ac_t""Using HPUX ACLs" 1>&6
13255 cat >> confdefs.h
<<\EOF
13256 #define HAVE_HPUX_ACLS 1
13261 echo "$ac_t""Using IRIX ACLs" 1>&6
13262 cat >> confdefs.h
<<\EOF
13263 #define HAVE_IRIX_ACLS 1
13268 echo "$ac_t""Using AIX ACLs" 1>&6
13269 cat >> confdefs.h
<<\EOF
13270 #define HAVE_AIX_ACLS 1
13275 echo "$ac_t""Using Tru64 ACLs" 1>&6
13276 cat >> confdefs.h
<<\EOF
13277 #define HAVE_TRU64_ACLS 1
13280 LIBS
="$LIBS -lpacl"
13283 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13284 echo "configure:13285: checking for acl_get_file in -lacl" >&5
13285 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13287 echo $ac_n "(cached) $ac_c" 1>&6
13289 ac_save_LIBS
="$LIBS"
13291 cat > conftest.
$ac_ext <<EOF
13292 #line 13293 "configure"
13293 #include "confdefs.h"
13294 /* Override any gcc2 internal prototype to avoid an error. */
13295 /* We use char because int might match the return type of a gcc2
13296 builtin and then its argument prototype would still apply. */
13297 char acl_get_file();
13303 if { (eval echo configure
:13304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13305 eval "ac_cv_lib_$ac_lib_var=yes"
13307 echo "configure: failed program was:" >&5
13308 cat conftest.
$ac_ext >&5
13310 eval "ac_cv_lib_$ac_lib_var=no"
13313 LIBS
="$ac_save_LIBS"
13316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13317 echo "$ac_t""yes" 1>&6
13318 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13319 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13320 cat >> confdefs.h
<<EOF
13321 #define $ac_tr_lib 1
13327 echo "$ac_t""no" 1>&6
13330 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13331 echo "configure:13332: checking for ACL support" >&5
13332 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13333 echo $ac_n "(cached) $ac_c" 1>&6
13336 cat > conftest.
$ac_ext <<EOF
13337 #line 13338 "configure"
13338 #include "confdefs.h"
13339 #include <sys/types.h>
13340 #include <sys/acl.h>
13342 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13345 if { (eval echo configure
:13346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13347 samba_cv_HAVE_POSIX_ACLS
=yes
13349 echo "configure: failed program was:" >&5
13350 cat conftest.
$ac_ext >&5
13352 samba_cv_HAVE_POSIX_ACLS
=no
13357 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13358 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13359 echo "$ac_t""Using posix ACLs" 1>&6
13360 cat >> confdefs.h
<<\EOF
13361 #define HAVE_POSIX_ACLS 1
13364 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13365 echo "configure:13366: checking for acl_get_perm_np" >&5
13366 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13370 cat > conftest.
$ac_ext <<EOF
13371 #line 13372 "configure"
13372 #include "confdefs.h"
13373 #include <sys/types.h>
13374 #include <sys/acl.h>
13376 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13379 if { (eval echo configure
:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13381 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13383 echo "configure: failed program was:" >&5
13384 cat conftest.
$ac_ext >&5
13386 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13391 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13392 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13393 cat >> confdefs.h
<<\EOF
13394 #define HAVE_ACL_GET_PERM_NP 1
13403 echo "$ac_t""no" 1>&6
13404 cat >> confdefs.h
<<\EOF
13405 #define HAVE_NO_ACLS 1
13411 cat >> confdefs.h
<<\EOF
13412 #define HAVE_NO_ACLS 1
13415 echo "$ac_t""no" 1>&6
13420 #################################################
13421 # check for the historical SAMBA installation
13423 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13424 # Put all binaries under the /usr/local/samba/bin directory.
13428 #################################################
13429 # check for sendfile support
13431 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13432 echo "configure:13433: checking whether to check for support sendfile" >&5
13433 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13434 if test "${with_sendfile_support+set}" = set; then
13435 withval
="$with_sendfile_support"
13439 echo "$ac_t""yes" 1>&6;
13443 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13444 echo "configure:13445: checking for linux sendfile64 support" >&5
13445 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13446 echo $ac_n "(cached) $ac_c" 1>&6
13449 cat > conftest.
$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13452 #include <sys/sendfile.h>
13458 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13462 if { (eval echo configure
:13463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13464 samba_cv_HAVE_SENDFILE64
=yes
13466 echo "configure: failed program was:" >&5
13467 cat conftest.
$ac_ext >&5
13469 samba_cv_HAVE_SENDFILE64
=no
13474 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13476 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13477 echo "configure:13478: checking for linux sendfile support" >&5
13478 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13482 cat > conftest.
$ac_ext <<EOF
13483 #line 13484 "configure"
13484 #include "confdefs.h"
13485 #include <sys/sendfile.h>
13491 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13495 if { (eval echo configure
:13496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13497 samba_cv_HAVE_SENDFILE
=yes
13499 echo "configure: failed program was:" >&5
13500 cat conftest.
$ac_ext >&5
13502 samba_cv_HAVE_SENDFILE
=no
13507 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13509 # Try and cope with broken Linux sendfile....
13510 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13511 echo "configure:13512: checking for broken linux sendfile support" >&5
13512 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13513 echo $ac_n "(cached) $ac_c" 1>&6
13516 cat > conftest.
$ac_ext <<EOF
13517 #line 13518 "configure"
13518 #include "confdefs.h"
13520 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13521 #undef _FILE_OFFSET_BITS
13523 #include <sys/sendfile.h>
13529 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13533 if { (eval echo configure
:13534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13535 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
13537 echo "configure: failed program was:" >&5
13538 cat conftest.
$ac_ext >&5
13540 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
13545 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13547 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
13548 cat >> confdefs.h
<<\EOF
13549 #define HAVE_SENDFILE64 1
13552 cat >> confdefs.h
<<\EOF
13553 #define LINUX_SENDFILE_API 1
13556 cat >> confdefs.h
<<\EOF
13557 #define WITH_SENDFILE 1
13560 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13561 cat >> confdefs.h
<<\EOF
13562 #define HAVE_SENDFILE 1
13565 cat >> confdefs.h
<<\EOF
13566 #define LINUX_SENDFILE_API 1
13569 cat >> confdefs.h
<<\EOF
13570 #define WITH_SENDFILE 1
13573 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
13574 cat >> confdefs.h
<<\EOF
13575 #define LINUX_BROKEN_SENDFILE_API 1
13578 cat >> confdefs.h
<<\EOF
13579 #define WITH_SENDFILE 1
13583 echo "$ac_t""no" 1>&6;
13588 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13589 echo "configure:13590: checking for freebsd sendfile support" >&5
13590 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13591 echo $ac_n "(cached) $ac_c" 1>&6
13594 cat > conftest.
$ac_ext <<EOF
13595 #line 13596 "configure"
13596 #include "confdefs.h"
13598 #include <sys/types.h>
13599 #include <sys/socket.h>
13600 #include <sys/uio.h>
13603 #define NULL (void *)0
13604 int fromfd, tofd, ret, total;
13605 off_t offset, nwritten;
13607 struct iovec *headers;
13609 struct iovec *trailers;
13612 struct iovec hdtrl;
13613 hdr.headers = &hdtrl;
13615 hdr.trailers = NULL;
13617 hdtrl.iov_base = NULL;
13619 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13623 if { (eval echo configure
:13624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13625 samba_cv_HAVE_SENDFILE
=yes
13627 echo "configure: failed program was:" >&5
13628 cat conftest.
$ac_ext >&5
13630 samba_cv_HAVE_SENDFILE
=no
13635 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13637 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13638 cat >> confdefs.h
<<\EOF
13639 #define HAVE_SENDFILE 1
13642 cat >> confdefs.h
<<\EOF
13643 #define FREEBSD_SENDFILE_API 1
13646 cat >> confdefs.h
<<\EOF
13647 #define WITH_SENDFILE 1
13651 echo "$ac_t""no" 1>&6;
13656 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
13657 echo "configure:13658: checking for hpux sendfile64 support" >&5
13658 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13659 echo $ac_n "(cached) $ac_c" 1>&6
13662 cat > conftest.
$ac_ext <<EOF
13663 #line 13664 "configure"
13664 #include "confdefs.h"
13666 #include <sys/socket.h>
13667 #include <sys/uio.h>
13672 struct iovec hdtrl[2];
13676 hdtrl[0].iov_base = 0;
13677 hdtrl[0].iov_len = 0;
13679 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
13683 if { (eval echo configure
:13684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13685 samba_cv_HAVE_SENDFILE64
=yes
13687 echo "configure: failed program was:" >&5
13688 cat conftest.
$ac_ext >&5
13690 samba_cv_HAVE_SENDFILE64
=no
13695 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13696 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
13697 cat >> confdefs.h
<<\EOF
13698 #define HAVE_SENDFILE64 1
13701 cat >> confdefs.h
<<\EOF
13702 #define HPUX_SENDFILE_API 1
13705 cat >> confdefs.h
<<\EOF
13706 #define WITH_SENDFILE 1
13710 echo "$ac_t""no" 1>&6;
13713 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
13714 echo "configure:13715: checking for hpux sendfile support" >&5
13715 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13716 echo $ac_n "(cached) $ac_c" 1>&6
13719 cat > conftest.
$ac_ext <<EOF
13720 #line 13721 "configure"
13721 #include "confdefs.h"
13723 #include <sys/socket.h>
13724 #include <sys/uio.h>
13729 struct iovec hdtrl[2];
13733 hdtrl[0].iov_base = 0;
13734 hdtrl[0].iov_len = 0;
13736 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
13740 if { (eval echo configure
:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13742 samba_cv_HAVE_SENDFILE
=yes
13744 echo "configure: failed program was:" >&5
13745 cat conftest.
$ac_ext >&5
13747 samba_cv_HAVE_SENDFILE
=no
13752 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13753 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13754 cat >> confdefs.h
<<\EOF
13755 #define HAVE_SENDFILE 1
13758 cat >> confdefs.h
<<\EOF
13759 #define HPUX_SENDFILE_API 1
13762 cat >> confdefs.h
<<\EOF
13763 #define WITH_SENDFILE 1
13767 echo "$ac_t""no" 1>&6;
13772 LIBS
="$LIBS -lsendfile"
13773 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
13774 echo "configure:13775: checking for solaris sendfilev64 support" >&5
13775 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
13776 echo $ac_n "(cached) $ac_c" 1>&6
13779 cat > conftest.
$ac_ext <<EOF
13780 #line 13781 "configure"
13781 #include "confdefs.h"
13783 #include <sys/sendfile.h>
13788 struct sendfilevec vec[2];
13794 vec[0].sfv_fd = SFV_FD_SELF;
13795 vec[0].sfv_flag = 0;
13796 vec[0].sfv_off = 0;
13797 vec[0].sfv_len = 0;
13800 vec[1].sfv_flag = 0;
13801 vec[1].sfv_off = 0;
13802 vec[1].sfv_len = 0;
13803 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
13807 if { (eval echo configure
:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13809 samba_cv_HAVE_SENDFILEV64
=yes
13811 echo "configure: failed program was:" >&5
13812 cat conftest.
$ac_ext >&5
13814 samba_cv_HAVE_SENDFILEV64
=no
13819 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
13821 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
13822 cat >> confdefs.h
<<\EOF
13823 #define HAVE_SENDFILEV64 1
13826 cat >> confdefs.h
<<\EOF
13827 #define SOLARIS_SENDFILE_API 1
13830 cat >> confdefs.h
<<\EOF
13831 #define WITH_SENDFILE 1
13835 echo "$ac_t""no" 1>&6;
13838 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
13839 echo "configure:13840: checking for solaris sendfilev support" >&5
13840 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
13841 echo $ac_n "(cached) $ac_c" 1>&6
13844 cat > conftest.
$ac_ext <<EOF
13845 #line 13846 "configure"
13846 #include "confdefs.h"
13848 #include <sys/sendfile.h>
13853 struct sendfilevec vec[2];
13859 vec[0].sfv_fd = SFV_FD_SELF;
13860 vec[0].sfv_flag = 0;
13861 vec[0].sfv_off = 0;
13862 vec[0].sfv_len = 0;
13865 vec[1].sfv_flag = 0;
13866 vec[1].sfv_off = 0;
13867 vec[1].sfv_len = 0;
13868 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
13872 if { (eval echo configure
:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13874 samba_cv_HAVE_SENDFILEV
=yes
13876 echo "configure: failed program was:" >&5
13877 cat conftest.
$ac_ext >&5
13879 samba_cv_HAVE_SENDFILEV
=no
13884 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
13886 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
13887 cat >> confdefs.h
<<\EOF
13888 #define HAVE_SENDFILEV 1
13891 cat >> confdefs.h
<<\EOF
13892 #define SOLARIS_SENDFILE_API 1
13895 cat >> confdefs.h
<<\EOF
13896 #define WITH_SENDFILE 1
13900 echo "$ac_t""no" 1>&6;
13909 echo "$ac_t""no" 1>&6
13913 echo "$ac_t""no" 1>&6
13918 #################################################
13919 # Check whether winbind is supported on this platform. If so we need to
13920 # build and install client programs (WINBIND_TARGETS), sbin programs
13921 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13923 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13924 echo "configure:13925: checking whether to build winbind" >&5
13926 # Initially, the value of $host_os decides whether winbind is supported
13934 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13935 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13939 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13946 winbind_no_reason
=", unsupported on $host_os"
13950 # Check the setting of --with-winbindd
13952 # Check whether --with-winbind or --without-winbind was given.
13953 if test "${with_winbind+set}" = set; then
13954 withval
="$with_winbind"
13968 # We need unix domain sockets for winbind
13970 if test x
"$HAVE_WINBIND" = x
"yes"; then
13971 if test x
"$samba_cv_unixsocket" = x
"no"; then
13972 winbind_no_reason
=", no unix domain socket support on $host_os"
13977 # Display test results
13979 if test x
"$HAVE_WINBIND" = x
"yes"; then
13981 echo "$ac_t""yes" 1>&6
13983 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13984 echo "configure:13985: checking whether to enable winbind auth challenge/response code" >&5
13985 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13986 if test "${with_winbind_auth_challenge+set}" = set; then
13987 withval
="$with_winbind_auth_challenge"
13991 cat >> confdefs.h
<<\EOF
13992 #define WITH_WINBIND_AUTH_CRAP 1
13995 echo "$ac_t""yes" 1>&6
13998 echo "$ac_t""no" 1>&6
14002 echo "$ac_t""no" 1>&6
14007 # Check for FreeBSD problem with getgroups
14009 WINBIND_TARGETS
="bin/wbinfo"
14010 WINBIND_STARGETS
="bin/winbindd"
14013 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
14016 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
14021 case "$with_pam" in
14023 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
14027 # Check for Horrible winbindd ldap hack.
14029 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
14030 echo "configure:14031: checking whether to enable winbind ldap hack" >&5
14031 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
14032 if test "${with_winbind_ldap_hack+set}" = set; then
14033 withval
="$with_winbind_ldap_hack"
14037 cat >> confdefs.h
<<\EOF
14038 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
14041 LIBS
="$LIBS -lldap";
14042 echo "$ac_t""yes" 1>&6
14045 echo "$ac_t""no" 1>&6
14049 echo "$ac_t""no" 1>&6
14055 echo "$ac_t""no$winbind_no_reason" 1>&6
14058 WINBIND_STARGETS
=""
14059 WINBIND_LTARGETS
=""
14060 WINBIND_PAM_TARGETS
=""
14064 # Check for FreeBSD problem with getgroups
14065 # It returns EGID too many times in the list of groups
14066 # and causes a security problem
14067 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
14068 echo "configure:14069: checking whether or not getgroups returns EGID too many times" >&5
14069 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
14070 echo $ac_n "(cached) $ac_c" 1>&6
14072 if test "$cross_compiling" = yes; then
14073 samba_cv_have_getgroups_too_many_egids
=cross
14075 cat > conftest.
$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14079 #include <sys/types.h>
14082 int main(int argc, char *argv[])
14087 n = getgroups(n, &groups);
14088 /* Could actually pass back the number of EGIDs there ... */
14089 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
14092 if { (eval echo configure
:14093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14094 samba_cv_have_getgroups_too_many_egids
=no
14096 echo "configure: failed program was:" >&5
14097 cat conftest.
$ac_ext >&5
14099 samba_cv_have_getgroups_too_many_egids
=yes
14106 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
14107 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
14108 cat >> confdefs.h
<<\EOF
14109 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
14114 # Substitution time!
14123 # Solaris has some extra fields in struct passwd that need to be
14124 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14125 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14128 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14129 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14130 # [#include <pwd.h>])
14132 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14133 echo "configure:14134: checking whether struct passwd has pw_comment" >&5
14134 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14135 echo $ac_n "(cached) $ac_c" 1>&6
14138 cat > conftest.
$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14143 struct passwd p; p.pw_comment;
14146 if { (eval echo configure
:14147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14148 samba_cv_passwd_pw_comment
=yes
14150 echo "configure: failed program was:" >&5
14151 cat conftest.
$ac_ext >&5
14153 samba_cv_passwd_pw_comment
=no
14158 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14159 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
14160 cat >> confdefs.h
<<\EOF
14161 #define HAVE_PASSWD_PW_COMMENT 1
14166 #AC_CHECK_MEMBER(struct passwd.pw_age,
14167 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14168 # [#include <pwd.h>])
14170 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14171 echo "configure:14172: checking whether struct passwd has pw_age" >&5
14172 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14173 echo $ac_n "(cached) $ac_c" 1>&6
14176 cat > conftest.
$ac_ext <<EOF
14177 #line 14178 "configure"
14178 #include "confdefs.h"
14181 struct passwd p; p.pw_age;
14184 if { (eval echo configure
:14185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14186 samba_cv_passwd_pw_age
=yes
14188 echo "configure: failed program was:" >&5
14189 cat conftest.
$ac_ext >&5
14191 samba_cv_passwd_pw_age
=no
14196 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14197 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
14198 cat >> confdefs.h
<<\EOF
14199 #define HAVE_PASSWD_PW_AGE 1
14204 #################################################
14205 # Check to see if we should use the included popt
14207 # Check whether --with-included-popt or --without-included-popt was given.
14208 if test "${with_included_popt+set}" = set; then
14209 withval
="$with_included_popt"
14221 if test x
"$INCLUDED_POPT" != x
"yes"; then
14222 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14223 echo "configure:14224: checking for poptGetContext in -lpopt" >&5
14224 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14226 echo $ac_n "(cached) $ac_c" 1>&6
14228 ac_save_LIBS
="$LIBS"
14229 LIBS
="-lpopt $LIBS"
14230 cat > conftest.
$ac_ext <<EOF
14231 #line 14232 "configure"
14232 #include "confdefs.h"
14233 /* Override any gcc2 internal prototype to avoid an error. */
14234 /* We use char because int might match the return type of a gcc2
14235 builtin and then its argument prototype would still apply. */
14236 char poptGetContext();
14242 if { (eval echo configure
:14243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14244 eval "ac_cv_lib_$ac_lib_var=yes"
14246 echo "configure: failed program was:" >&5
14247 cat conftest.
$ac_ext >&5
14249 eval "ac_cv_lib_$ac_lib_var=no"
14252 LIBS
="$ac_save_LIBS"
14255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14256 echo "$ac_t""yes" 1>&6
14259 echo "$ac_t""no" 1>&6
14265 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14266 echo "configure:14267: checking whether to use included popt" >&5
14267 if test x
"$INCLUDED_POPT" = x
"yes"; then
14268 echo "$ac_t""$srcdir/popt" 1>&6
14269 BUILD_POPT
='$(POPT_OBJS)'
14270 FLAGS1
="-I$srcdir/popt"
14272 echo "$ac_t""no" 1>&6
14273 LIBS
="$LIBS -lpopt"
14278 #################################################
14279 # final configure stuff
14280 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14281 echo "configure:14282: checking configure summary" >&5
14282 if test "$cross_compiling" = yes; then
14283 echo "configure: warning: cannot run when cross-compiling" 1>&2
14285 cat > conftest.
$ac_ext <<EOF
14286 #line 14287 "configure"
14287 #include "confdefs.h"
14288 #include "${srcdir-.}/tests/summary.c"
14290 if { (eval echo configure
:14291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14292 echo "$ac_t""yes" 1>&6
14294 echo "configure: failed program was:" >&5
14295 cat conftest.
$ac_ext >&5
14297 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14307 cat > confcache
<<\EOF
14308 # This file is a shell script that caches the results of configure
14309 # tests run on this system so they can be shared between configure
14310 # scripts and configure runs. It is not useful on other systems.
14311 # If it contains results you don't want to keep, you may remove or edit it.
14313 # By default, configure uses ./config.cache as the cache file,
14314 # creating it if it does not exist already. You can give configure
14315 # the --cache-file=FILE option to use a different cache file; that is
14316 # what configure does when it calls configure scripts in
14317 # subdirectories, so they share the cache.
14318 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14319 # config.status only pays attention to the cache file if you give it the
14320 # --recheck option to rerun configure.
14323 # The following way of writing the cache mishandles newlines in values,
14324 # but we know of no workaround that is simple, portable, and efficient.
14325 # So, don't put newlines in cache variables' values.
14326 # Ultrix sh set writes to stderr and can't be redirected directly,
14327 # and sets the high bit in the cache file unless we assign to the vars.
14329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14331 # `set' does not quote correctly, so add quotes (double-quote substitution
14332 # turns \\\\ into \\, and sed turns \\ into \).
14334 -e "s/'/'\\\\''/g" \
14335 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14338 # `set' quotes correctly as required by POSIX, so do not add quotes.
14339 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14342 if cmp -s $cache_file confcache
; then
14345 if test -w $cache_file; then
14346 echo "updating cache $cache_file"
14347 cat confcache
> $cache_file
14349 echo "not updating unwritable cache $cache_file"
14354 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14356 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14357 # Let make expand exec_prefix.
14358 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14360 # Any assignment to VPATH causes Sun make to only execute
14361 # the first set of double-colon rules, so remove it if not needed.
14362 # If there is a colon in the path, we need to keep it.
14363 if test "x$srcdir" = x.
; then
14364 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
14367 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14369 DEFS
=-DHAVE_CONFIG_H
14371 # Without the "./", some shells look in PATH for config.status.
14372 : ${CONFIG_STATUS=./config.status}
14374 echo creating
$CONFIG_STATUS
14375 rm -f $CONFIG_STATUS
14376 cat > $CONFIG_STATUS <<EOF
14378 # Generated automatically by configure.
14379 # Run this file to recreate the current configuration.
14380 # This directory was configured as follows,
14381 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14383 # $0 $ac_configure_args
14385 # Compiler output produced by configure, useful for debugging
14386 # configure, is in ./config.log if it exists.
14388 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14391 case "\$ac_option" in
14392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14393 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14394 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14395 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14396 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14398 -help | --help | --hel | --he | --h)
14399 echo "\$ac_cs_usage"; exit 0 ;;
14400 *) echo "\$ac_cs_usage"; exit 1 ;;
14404 ac_given_srcdir=$srcdir
14405 ac_given_INSTALL="$INSTALL"
14407 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14409 cat >> $CONFIG_STATUS <<EOF
14411 # Protect against being on the right side of a sed subst in config.status.
14412 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14413 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14417 s%@CFLAGS@%$CFLAGS%g
14418 s%@CPPFLAGS@%$CPPFLAGS%g
14419 s%@CXXFLAGS@%$CXXFLAGS%g
14420 s%@FFLAGS@%$FFLAGS%g
14422 s%@LDFLAGS@%$LDFLAGS%g
14424 s%@exec_prefix@%$exec_prefix%g
14425 s%@prefix@%$prefix%g
14426 s%@program_transform_name@%$program_transform_name%g
14427 s%@bindir@%$bindir%g
14428 s%@sbindir@%$sbindir%g
14429 s%@libexecdir@%$libexecdir%g
14430 s%@datadir@%$datadir%g
14431 s%@sysconfdir@%$sysconfdir%g
14432 s%@sharedstatedir@%$sharedstatedir%g
14433 s%@localstatedir@%$localstatedir%g
14434 s%@libdir@%$libdir%g
14435 s%@includedir@%$includedir%g
14436 s%@oldincludedir@%$oldincludedir%g
14437 s%@infodir@%$infodir%g
14438 s%@mandir@%$mandir%g
14439 s%@codepagedir@%$codepagedir%g
14440 s%@configdir@%$configdir%g
14441 s%@lockdir@%$lockdir%g
14442 s%@piddir@%$piddir%g
14443 s%@logfilebase@%$logfilebase%g
14444 s%@privatedir@%$privatedir%g
14445 s%@swatdir@%$swatdir%g
14446 s%@RUNPROG@%$RUNPROG%g
14447 s%@MPROGS@%$MPROGS%g
14448 s%@LDSHFLAGS@%$LDSHFLAGS%g
14449 s%@SONAMEFLAG@%$SONAMEFLAG%g
14451 s%@HOST_OS@%$HOST_OS%g
14452 s%@PAM_MOD@%$PAM_MOD%g
14453 s%@PDBEDIT@%$PDBEDIT%g
14455 s%@WRAP32@%$WRAP32%g
14456 s%@WRAPPROG@%$WRAPPROG%g
14457 s%@PICFLAG@%$PICFLAG%g
14458 s%@PICSUFFIX@%$PICSUFFIX%g
14459 s%@SHLIBEXT@%$SHLIBEXT%g
14460 s%@BLDSHARED@%$BLDSHARED%g
14461 s%@INSTALLCLIENTCMD_SH@%$INSTALLCLIENTCMD_SH%g
14462 s%@INSTALLCLIENTCMD_A@%$INSTALLCLIENTCMD_A%g
14463 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14464 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14466 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14467 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14468 s%@INSTALL_DATA@%$INSTALL_DATA%g
14470 s%@passwd_program@%$passwd_program%g
14471 s%@BROKEN_CC@%$BROKEN_CC%g
14473 s%@host_alias@%$host_alias%g
14474 s%@host_cpu@%$host_cpu%g
14475 s%@host_vendor@%$host_vendor%g
14476 s%@host_os@%$host_os%g
14477 s%@target@%$target%g
14478 s%@target_alias@%$target_alias%g
14479 s%@target_cpu@%$target_cpu%g
14480 s%@target_vendor@%$target_vendor%g
14481 s%@target_os@%$target_os%g
14483 s%@build_alias@%$build_alias%g
14484 s%@build_cpu@%$build_cpu%g
14485 s%@build_vendor@%$build_vendor%g
14486 s%@build_os@%$build_os%g
14488 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14489 s%@LIBOBJS@%$LIBOBJS%g
14490 s%@TERMLIBS@%$TERMLIBS%g
14491 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14493 s%@DYNEXP@%$DYNEXP%g
14494 s%@LDAPLIBS@%$LDAPLIBS%g
14495 s%@QUOTAOBJS@%$QUOTAOBJS%g
14496 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14497 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14498 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14499 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14500 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14501 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14502 s%@BUILD_POPT@%$BUILD_POPT%g
14503 s%@FLAGS1@%$FLAGS1%g
14504 s%@builddir@%$builddir%g
14509 cat >> $CONFIG_STATUS <<\EOF
14511 # Split the substitutions into bite-sized pieces for seds with
14512 # small command number limits, like on Digital OSF/1 and HP-UX.
14513 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
14514 ac_file
=1 # Number of current file.
14515 ac_beg
=1 # First line for current file.
14516 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
14519 while $ac_more_lines; do
14520 if test $ac_beg -gt 1; then
14521 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
14523 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
14525 if test ! -s conftest.s
$ac_file; then
14526 ac_more_lines
=false
14527 rm -f conftest.s
$ac_file
14529 if test -z "$ac_sed_cmds"; then
14530 ac_sed_cmds
="sed -f conftest.s$ac_file"
14532 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
14534 ac_file
=`expr $ac_file + 1`
14536 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
14539 if test -z "$ac_sed_cmds"; then
14544 cat >> $CONFIG_STATUS <<EOF
14546 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14548 cat >> $CONFIG_STATUS <<\EOF
14549 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
14550 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14552 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14553 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14554 *) ac_file_in
="${ac_file}.in" ;;
14557 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14559 # Remove last slash and all that follows it. Not all systems have dirname.
14560 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14561 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14562 # The file is in a subdirectory.
14563 test ! -d "$ac_dir" && mkdir
"$ac_dir"
14564 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
14565 # A "../" for each directory in $ac_dir_suffix.
14566 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14568 ac_dir_suffix
= ac_dots
=
14571 case "$ac_given_srcdir" in
14573 if test -z "$ac_dots"; then top_srcdir
=.
14574 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14575 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
14576 *) # Relative path.
14577 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14578 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14581 case "$ac_given_INSTALL" in
14582 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
14583 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
14586 echo creating
"$ac_file"
14588 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14590 *Makefile
*) ac_comsub
="1i\\
14591 # $configure_input" ;;
14595 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14597 s%@configure_input@%$configure_input%g
14598 s%@srcdir@%$srcdir%g
14599 s%@top_srcdir@%$top_srcdir%g
14600 s%@INSTALL@%$INSTALL%g
14601 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
14605 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14606 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14608 # ac_d sets the value in "#define NAME VALUE" lines.
14609 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14610 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
14613 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14614 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14615 ac_uB
='\([ ]\)%\1#\2define\3'
14618 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14619 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14620 ac_eB
='$%\1#\2define\3'
14624 if test "${CONFIG_HEADERS+set}" != set; then
14626 cat >> $CONFIG_STATUS <<EOF
14627 CONFIG_HEADERS="include/config.h"
14629 cat >> $CONFIG_STATUS <<\EOF
14631 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
14632 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14634 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14635 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14636 *) ac_file_in
="${ac_file}.in" ;;
14639 echo creating
$ac_file
14641 rm -f conftest.frag conftest.
in conftest.out
14642 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14643 cat $ac_file_inputs > conftest.
in
14647 # Transform confdefs.h into a sed script conftest.vals that substitutes
14648 # the proper values into config.h.in to produce config.h. And first:
14649 # Protect against being on the right side of a sed subst in config.status.
14650 # Protect against being in an unquoted here document in config.status.
14651 rm -f conftest.vals
14652 cat > conftest.hdr
<<\EOF
14655 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14659 sed -n -f conftest.hdr confdefs.h > conftest.vals
14662 # This sed command replaces #undef with comments. This is necessary, for
14663 # example, in the case of _POSIX_SOURCE, which is predefined and required
14664 # on some systems where configure will not decide to define it.
14665 cat >> conftest.vals <<\EOF
14666 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14669 # Break up conftest.vals because some shells have a limit on
14670 # the size of here documents, and old seds have small limits too.
14672 rm -f conftest.tail
14675 ac_lines=`grep -c . conftest.vals
`
14676 # grep -c gives empty output for an empty file on some AIX systems.
14677 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14678 # Write a limited-size here document to conftest.frag.
14679 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14680 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14682 sed -f conftest.frag conftest.in > conftest.out
14684 mv conftest.out conftest.in
14685 ' >> $CONFIG_STATUS
14686 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14687 rm -f conftest.vals
14688 mv conftest.tail conftest.vals
14690 rm -f conftest.vals
14692 cat >> $CONFIG_STATUS <<\EOF
14693 rm -f conftest.frag conftest.h
14694 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14695 cat conftest.in >> conftest.h
14697 if cmp -s $ac_file conftest.h 2>/dev/null; then
14698 echo "$ac_file is unchanged"
14701 # Remove last slash and all that follows it. Not all systems have dirname.
14702 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14703 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14704 # The file is in a subdirectory.
14705 test ! -d "$ac_dir" && mkdir "$ac_dir"
14708 mv conftest.h $ac_file
14713 cat >> $CONFIG_STATUS <<EOF
14716 cat >> $CONFIG_STATUS <<\EOF
14720 chmod +x $CONFIG_STATUS
14721 rm -fr confdefs* $ac_clean_files
14722 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1