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-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
34 --with-smbwrapper Include SMB wrapper support (default=no)"
36 --with-afs Include AFS support (default=no)"
38 --with-dce-dfs Include DCE/DFS support (default=no)"
40 --with-krb4=base-dir Include Kerberos IV support (default=no)"
42 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
44 --with-automount Include AUTOMOUNT support (default=no)"
46 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
48 --with-pam Include PAM password database support (default=no)"
50 --with-pam_smbpass Include the smbpass PAM module (default=no)"
52 --with-tdbsam Include experimental TDB SAM support (default=no)"
54 --with-ldapsam Include experimental LDAP SAM support (default=no)"
56 --with-nisplussam Include NISPLUS SAM support (default=no)"
58 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
60 --with-ssl Include SSL support (default=no)
61 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
62 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
64 --with-syslog Include experimental SYSLOG support (default=no)"
66 --with-profiling-data Include gathering source code profile information (default=no)"
68 --with-quotas Include experimental disk-quota support (default=no)"
70 --with-utmp Include experimental utmp accounting (default=no)"
72 --with-msdfs Include MS Dfs support (default=no)"
74 --with-vfs Include Samba vfs support (default=no)"
76 --with-libsmbclient Build the libsmbclient shared library (default=no)"
78 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
80 --with-acl-support Include ACL support (default=no)"
82 --with-winbind Build winbind (default, if supported by OS)"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
88 cache_file
=.
/config.cache
97 program_transform_name
=s
,x
,x
,
105 bindir
='${exec_prefix}/bin'
106 sbindir
='${exec_prefix}/sbin'
107 libexecdir
='${exec_prefix}/libexec'
108 datadir
='${prefix}/share'
109 sysconfdir
='${prefix}/etc'
110 sharedstatedir
='${prefix}/com'
111 localstatedir
='${prefix}/var'
112 libdir
='${exec_prefix}/lib'
113 includedir
='${prefix}/include'
114 oldincludedir
='/usr/include'
115 infodir
='${prefix}/info'
116 mandir
='${prefix}/man'
118 # Initialize some other variables.
121 SHELL
=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
147 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
148 bindir
="$ac_optarg" ;;
150 -build |
--build |
--buil |
--bui |
--bu)
152 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
153 build
="$ac_optarg" ;;
155 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
156 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
157 ac_prev
=cache_file
;;
158 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
159 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
160 cache_file
="$ac_optarg" ;;
162 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
164 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
166 datadir
="$ac_optarg" ;;
168 -disable-* |
--disable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* |
--enable-*)
178 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
191 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
192 |
--exec |
--exe |
--ex)
193 ac_prev
=exec_prefix
;;
194 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
195 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
196 |
--exec=* |
--exe=* |
--ex=*)
197 exec_prefix
="$ac_optarg" ;;
199 -gas |
--gas |
--ga |
--g)
200 # Obsolete; use --with-gas.
203 -help |
--help |
--hel |
--he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host |
--host |
--hos |
--ho)
260 -host=* |
--host=* |
--hos=* |
--ho=*)
263 -includedir |
--includedir |
--includedi |
--included |
--include \
264 |
--includ |
--inclu |
--incl |
--inc)
265 ac_prev
=includedir
;;
266 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
267 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
268 includedir
="$ac_optarg" ;;
270 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
272 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
273 infodir
="$ac_optarg" ;;
275 -libdir |
--libdir |
--libdi |
--libd)
277 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
278 libdir
="$ac_optarg" ;;
280 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
281 |
--libexe |
--libex |
--libe)
282 ac_prev
=libexecdir
;;
283 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
284 |
--libexe=* |
--libex=* |
--libe=*)
285 libexecdir
="$ac_optarg" ;;
287 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
288 |
--localstate |
--localstat |
--localsta |
--localst \
289 |
--locals |
--local |
--loca |
--loc |
--lo)
290 ac_prev
=localstatedir
;;
291 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
292 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
293 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
294 localstatedir
="$ac_optarg" ;;
296 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
298 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
299 mandir
="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
309 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
310 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
313 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
314 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
315 |
--oldin |
--oldi |
--old |
--ol |
--o)
316 ac_prev
=oldincludedir
;;
317 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
318 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
319 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
320 oldincludedir
="$ac_optarg" ;;
322 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
324 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
325 prefix
="$ac_optarg" ;;
327 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
328 |
--program-pre |
--program-pr |
--program-p)
329 ac_prev
=program_prefix
;;
330 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
331 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
332 program_prefix
="$ac_optarg" ;;
334 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
335 |
--program-suf |
--program-su |
--program-s)
336 ac_prev
=program_suffix
;;
337 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
338 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
339 program_suffix
="$ac_optarg" ;;
341 -program-transform-name |
--program-transform-name \
342 |
--program-transform-nam |
--program-transform-na \
343 |
--program-transform-n |
--program-transform- \
344 |
--program-transform |
--program-transfor \
345 |
--program-transfo |
--program-transf \
346 |
--program-trans |
--program-tran \
347 |
--progr-tra |
--program-tr |
--program-t)
348 ac_prev
=program_transform_name
;;
349 -program-transform-name=* |
--program-transform-name=* \
350 |
--program-transform-nam=* |
--program-transform-na=* \
351 |
--program-transform-n=* |
--program-transform-=* \
352 |
--program-transform=* |
--program-transfor=* \
353 |
--program-transfo=* |
--program-transf=* \
354 |
--program-trans=* |
--program-tran=* \
355 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
356 program_transform_name
="$ac_optarg" ;;
358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
359 |
-silent |
--silent |
--silen |
--sile |
--sil)
362 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
364 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
366 sbindir
="$ac_optarg" ;;
368 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
369 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
370 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
372 ac_prev
=sharedstatedir
;;
373 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
374 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
375 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
377 sharedstatedir
="$ac_optarg" ;;
379 -site |
--site |
--sit)
381 -site=* |
--site=* |
--sit=*)
384 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
386 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
387 srcdir
="$ac_optarg" ;;
389 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
390 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
391 ac_prev
=sysconfdir
;;
392 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
393 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
394 sysconfdir
="$ac_optarg" ;;
396 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
398 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
399 target
="$ac_optarg" ;;
401 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
404 -version |
--version |
--versio |
--versi |
--vers)
405 echo "configure generated by autoconf version 2.13"
409 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* |
--without-*)
422 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package
=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
431 # Obsolete; use --with-x.
434 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
435 |
--x-incl |
--x-inc |
--x-in |
--x-i)
436 ac_prev
=x_includes
;;
437 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
438 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
439 x_includes
="$ac_optarg" ;;
441 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
442 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
443 ac_prev
=x_libraries
;;
444 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
445 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
446 x_libraries
="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE
; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
496 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
497 |
--no-cr |
--no-c) ;;
498 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
499 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
500 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest
* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file
=include
/includes.h
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted
=yes
528 # Try the directory containing this script, then its parent.
530 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
533 if test ! -r $srcdir/$ac_unique_file; then
537 ac_srcdir_defaulted
=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE
; then
551 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
553 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file
in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp
='$CPP $CPPFLAGS'
574 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling
=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
589 ac_n
= ac_c
='\c' ac_t
=
595 #################################################
596 # Directory handling stuff to support both the
597 # legacy SAMBA directories and FHS compliant
601 # Check whether --with-fhs or --without-fhs was given.
602 if test "${with_fhs+set}" = set; then
604 codepagedir
="\$(DATADIR)/samba/codepages"
605 configdir
="${sysconfdir}/samba"
606 lockdir
="\${VARDIR}/cache/samba"
607 logfilebase
="\${VARDIR}/log/samba"
608 privatedir
="\${CONFIGDIR}/private"
609 swatdir
="\${DATADIR}/samba/swat"
611 codepagedir
="\$(LIBDIR)/codepages"
612 configdir
="\$(LIBDIR)"
613 lockdir
="\$(VARDIR)/locks"
614 logfilebase
="\$(VARDIR)"
615 privatedir
="\${prefix}/private"
616 swatdir
="\${prefix}/swat"
620 #################################################
621 # set private directory location
622 # Check whether --with-privatedir or --without-privatedir was given.
623 if test "${with_privatedir+set}" = set; then
624 withval
="$with_privatedir"
628 # Just in case anybody calls it without argument
630 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
633 privatedir
="$withval"
639 #################################################
640 # set lock directory location
641 # Check whether --with-lockdir or --without-lockdir was given.
642 if test "${with_lockdir+set}" = set; then
643 withval
="$with_lockdir"
647 # Just in case anybody calls it without argument
649 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
658 #################################################
659 # set SWAT directory location
660 # Check whether --with-swatdir or --without-swatdir was given.
661 if test "${with_swatdir+set}" = set; then
662 withval
="$with_swatdir"
666 # Just in case anybody does it
668 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
677 #################################################
678 # set configuration directory location
679 # Check whether --with-configdir or --without-configdir was given.
680 if test "${with_configdir+set}" = set; then
681 withval
="$with_configdir"
685 # Just in case anybody does it
687 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
696 #################################################
697 # set codepage directory location
698 # Check whether --with-codepagedir or --without-codepagedir was given.
699 if test "${with_codepagedir+set}" = set; then
700 withval
="$with_codepagedir"
704 # Just in case anybody does it
706 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
709 codepagedir
="$withval"
715 #################################################
716 # set log directory location
717 # Check whether --with-logfilebase or --without-logfilebase was given.
718 if test "${with_logfilebase+set}" = set; then
719 withval
="$with_logfilebase"
723 # Just in case anybody does it
725 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
728 logfilebase
="$withval"
761 # compile with optimization and without debugging by default
762 CFLAGS
="-O ${CFLAGS}"
764 # Check whether --enable-debug or --disable-debug was given.
765 if test "${enable_debug+set}" = set; then
766 enableval
="$enable_debug"
767 if eval "test x$enable_debug = xyes"; then
768 CFLAGS
="${CFLAGS} -g"
775 # Extract the first word of "gcc", so it can be a program name with args.
776 set dummy gcc
; ac_word
=$2
777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778 echo "configure:779: checking for $ac_word" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 if test -n "$CC"; then
783 ac_cv_prog_CC
="$CC" # Let the user override the test.
785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
787 for ac_dir
in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir
=.
789 if test -f $ac_dir/$ac_word; then
798 if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
801 echo "$ac_t""no" 1>&6
804 if test -z "$CC"; then
805 # Extract the first word of "cc", so it can be a program name with args.
806 set dummy cc
; ac_word
=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$CC"; then
813 ac_cv_prog_CC
="$CC" # Let the user override the test.
815 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
818 for ac_dir
in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir
=.
820 if test -f $ac_dir/$ac_word; then
821 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
830 if test $ac_prog_rejected = yes; then
831 # We found a bogon in the path, so make sure we never use it.
832 set dummy
$ac_cv_prog_CC
834 if test $# -gt 0; then
835 # We chose a different compiler from the bogus one.
836 # However, it has the same basename, so the bogon will be chosen
837 # first if we set CC to just the basename; use the full file name.
839 set dummy
"$ac_dir/$ac_word" "$@"
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no" 1>&6
853 if test -z "$CC"; then
856 # Extract the first word of "cl", so it can be a program name with args.
857 set dummy cl
; ac_word
=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 if test -n "$CC"; then
864 ac_cv_prog_CC
="$CC" # Let the user override the test.
866 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
868 for ac_dir
in $ac_dummy; do
869 test -z "$ac_dir" && ac_dir
=.
870 if test -f $ac_dir/$ac_word; then
879 if test -n "$CC"; then
880 echo "$ac_t""$CC" 1>&6
882 echo "$ac_t""no" 1>&6
887 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp
='$CPP $CPPFLAGS'
896 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling
=$ac_cv_prog_cc_cross
900 cat > conftest.
$ac_ext << EOF
902 #line 903 "configure"
903 #include "confdefs.h"
907 if { (eval echo configure
:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
908 ac_cv_prog_cc_works
=yes
909 # If we can't run a trivial program, we are probably using a cross compiler.
910 if (.
/conftest
; exit) 2>/dev
/null
; then
911 ac_cv_prog_cc_cross
=no
913 ac_cv_prog_cc_cross
=yes
916 echo "configure: failed program was:" >&5
917 cat conftest.
$ac_ext >&5
918 ac_cv_prog_cc_works
=no
922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
923 ac_cpp
='$CPP $CPPFLAGS'
924 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
925 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
926 cross_compiling
=$ac_cv_prog_cc_cross
928 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
929 if test $ac_cv_prog_cc_works = no
; then
930 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
932 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
933 echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
934 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
935 cross_compiling
=$ac_cv_prog_cc_cross
937 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
938 echo "configure:939: checking whether we are using GNU C" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 cat > conftest.c
<<EOF
947 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
954 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
956 if test $ac_cv_prog_gcc = yes; then
962 ac_test_CFLAGS
="${CFLAGS+set}"
963 ac_save_CFLAGS
="$CFLAGS"
965 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
966 echo "configure:967: checking whether ${CC-cc} accepts -g" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 echo 'void f(){}' > conftest.c
971 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
980 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
981 if test "$ac_test_CFLAGS" = set; then
982 CFLAGS
="$ac_save_CFLAGS"
983 elif test $ac_cv_prog_cc_g = yes; then
984 if test "$GCC" = yes; then
990 if test "$GCC" = yes; then
998 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
999 if test -f $ac_dir/install-sh
; then
1001 ac_install_sh
="$ac_aux_dir/install-sh -c"
1003 elif test -f $ac_dir/install.sh
; then
1005 ac_install_sh
="$ac_aux_dir/install.sh -c"
1009 if test -z "$ac_aux_dir"; then
1010 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1012 ac_config_guess
=$ac_aux_dir/config.guess
1013 ac_config_sub
=$ac_aux_dir/config.sub
1014 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1016 # Find a good install program. We prefer a C program (faster),
1017 # so one script is as good as another. But avoid the broken or
1018 # incompatible versions:
1019 # SysV /etc/install, /usr/sbin/install
1020 # SunOS /usr/etc/install
1021 # IRIX /sbin/install
1023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1026 # ./install, which can be erroneously created by make from ./install.sh.
1027 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1028 echo "configure:1029: checking for a BSD compatible install" >&5
1029 if test -z "$INSTALL"; then
1030 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1034 for ac_dir
in $PATH; do
1035 # Account for people who put trailing slashes in PATH elements.
1037 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1039 # OSF1 and SCO ODT 3.0 have their own names for install.
1040 # Don't use installbsd from OSF since it installs stuff as root
1042 for ac_prog
in ginstall scoinst
install; do
1043 if test -f $ac_dir/$ac_prog; then
1044 if test $ac_prog = install &&
1045 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1046 # AIX install. It has an incompatible calling convention.
1049 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1060 if test "${ac_cv_path_install+set}" = set; then
1061 INSTALL
="$ac_cv_path_install"
1063 # As a last resort, use the slow shell script. We don't cache a
1064 # path for INSTALL within a source directory, because that will
1065 # break other packages using the cache if that directory is
1066 # removed, or if the path is relative.
1067 INSTALL
="$ac_install_sh"
1070 echo "$ac_t""$INSTALL" 1>&6
1072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1073 # It thinks the first close brace ends the variable substitution.
1074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1078 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1080 for ac_prog
in gawk mawk nawk
awk
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy
$ac_prog; ac_word
=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$AWK"; then
1090 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1094 for ac_dir
in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir
=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_AWK
="$ac_prog"
1104 AWK
="$ac_cv_prog_AWK"
1105 if test -n "$AWK"; then
1106 echo "$ac_t""$AWK" 1>&6
1108 echo "$ac_t""no" 1>&6
1111 test -n "$AWK" && break
1115 if test "x$CC" != xcc
; then
1116 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether $CC and cc understand -c and -o together" >&5
1119 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether cc understands -c and -o together" >&5
1122 set dummy
$CC; ac_cc
="`echo $2 |
1123 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1124 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 echo 'foo(){}' > conftest.c
1128 # Make sure it works both with $CC and with simple cc.
1129 # We do the test twice because some compilers refuse to overwrite an
1130 # existing .o file with -o, though they will create one.
1131 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1132 if { (eval echo configure
:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1133 test -f conftest.o
&& { (eval echo configure
:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1135 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1136 if test "x$CC" != xcc
; then
1137 # Test first that cc exists at all.
1138 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1139 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1140 if { (eval echo configure
:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1141 test -f conftest.o
&& { (eval echo configure
:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1146 # cc exists but doesn't like -o.
1147 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1152 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1157 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1158 echo "$ac_t""yes" 1>&6
1160 echo "$ac_t""no" 1>&6
1161 cat >> confdefs.h
<<\EOF
1162 #define NO_MINUS_C_MINUS_O 1
1167 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1174 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1175 echo "configure:1176: checking that the C compiler understands volatile" >&5
1176 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1180 cat > conftest.
$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183 #include <sys/types.h>
1188 if { (eval echo configure
:1189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1190 samba_cv_volatile
=yes
1192 echo "configure: failed program was:" >&5
1193 cat conftest.
$ac_ext >&5
1195 samba_cv_volatile
=no
1200 echo "$ac_t""$samba_cv_volatile" 1>&6
1201 if test x
"$samba_cv_volatile" = x
"yes"; then
1202 cat >> confdefs.h
<<\EOF
1203 #define HAVE_VOLATILE 1
1211 # Do some error checking and defaulting for the host and target type.
1213 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1216 # 1. You are not allowed to specify --host, --target, and nonopt at the
1218 # 2. Host defaults to nonopt.
1219 # 3. If nonopt is not specified, then host defaults to the current host,
1220 # as determined by config.guess.
1221 # 4. Target and build default to nonopt.
1222 # 5. If nonopt is not specified, then target and build default to host.
1224 # The aliases save the names the user supplied, while $host etc.
1225 # will get canonicalized.
1226 case $host---$target---$nonopt in
1227 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1228 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1232 # Make sure we can run config.sub.
1233 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1234 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1237 echo $ac_n "checking host system type""... $ac_c" 1>&6
1238 echo "configure:1239: checking host system type" >&5
1241 case "$host_alias" in
1245 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1246 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1248 *) host_alias
=$nonopt ;;
1252 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1253 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1254 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1255 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1256 echo "$ac_t""$host" 1>&6
1258 echo $ac_n "checking target system type""... $ac_c" 1>&6
1259 echo "configure:1260: checking target system type" >&5
1261 target_alias
=$target
1262 case "$target_alias" in
1265 NONE
) target_alias
=$host_alias ;;
1266 *) target_alias
=$nonopt ;;
1270 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1271 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1272 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1273 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1274 echo "$ac_t""$target" 1>&6
1276 echo $ac_n "checking build system type""... $ac_c" 1>&6
1277 echo "configure:1278: checking build system type" >&5
1280 case "$build_alias" in
1283 NONE
) build_alias
=$host_alias ;;
1284 *) build_alias
=$nonopt ;;
1288 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1289 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1290 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1291 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1292 echo "$ac_t""$build" 1>&6
1294 test "$host_alias" != "$target_alias" &&
1295 test "$program_prefix$program_suffix$program_transform_name" = \
1297 program_prefix
=${target_alias}-
1301 *irix6
*) cat >> confdefs.h
<<\EOF
1302 #include <standards.h>
1310 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1311 echo "configure:1312: checking config.cache system type" >&5
1312 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1313 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1314 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1315 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1316 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1317 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1318 echo "$ac_t""different" 1>&6
1319 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1321 echo "$ac_t""same" 1>&6
1323 ac_cv_host_system_type
="$host"
1324 ac_cv_build_system_type
="$build"
1325 ac_cv_target_system_type
="$target"
1329 # Config CPPFLAG settings for strange OS's that must be set
1330 # before other tests.
1333 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1335 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether ${CC-cc} accepts -Ae" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 echo 'void f(){}' > conftest.c
1341 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1342 ac_cv_prog_cc_Ae
=yes
1350 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1351 # mmap on HPUX is completely broken...
1352 cat >> confdefs.h
<<\EOF
1353 #define MMAP_BLACKLIST 1
1356 if test $ac_cv_prog_cc_Ae = yes; then
1357 CPPFLAGS
="$CPPFLAGS -Ae"
1360 # Defines needed for HPUX support.
1361 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1362 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1366 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1367 cat >> confdefs.h
<<\EOF
1368 #define USE_BOTH_CRYPT_CALLS 1
1373 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1374 cat >> confdefs.h
<<\EOF
1375 #define USE_BOTH_CRYPT_CALLS 1
1384 # CRAY Unicos has broken const handling
1386 echo "$ac_t""disabling const" 1>&6
1387 CPPFLAGS
="$CPPFLAGS -Dconst="
1391 # AIX4.x doesn't even admit to having large
1392 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1395 echo "$ac_t""enabling large file support" 1>&6
1396 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1399 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1400 # to the existance of large files..
1401 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1402 # recommendations on large file support, however it makes the
1403 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1404 # recommendation makes the compile fail on gcc2.7. JRA.
1408 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1409 echo "$ac_t""no large file support" 1>&6
1412 echo "$ac_t""enabling large file support" 1>&6
1413 if test "$ac_cv_prog_gcc" = yes; then
1414 ${CC-cc} -v >conftest.c
2>&1
1415 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1417 case "$ac_cv_gcc_compiler_version_number" in
1418 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1419 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1422 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1426 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1432 # Tests needed for SINIX large file support.
1435 if test $host = mips-sni-sysv4
; then
1436 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1437 echo "configure:1438: checking for LFS support" >&5
1438 old_CPPFLAGS
="$CPPFLAGS"
1439 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1440 if test "$cross_compiling" = yes; then
1441 SINIX_LFS_SUPPORT
=cross
1443 cat > conftest.
$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1449 #if _LFS64_LARGEFILE == 1
1456 if { (eval echo configure
:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1458 SINIX_LFS_SUPPORT
=yes
1460 echo "configure: failed program was:" >&5
1461 cat conftest.
$ac_ext >&5
1463 SINIX_LFS_SUPPORT
=no
1468 CPPFLAGS
="$old_CPPFLAGS"
1469 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1470 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1471 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1472 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1473 LIBS
="`getconf LFS64_LIBS` $LIBS"
1475 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1479 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1482 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1483 echo "configure:1484: checking for LFS support" >&5
1484 old_CPPFLAGS
="$CPPFLAGS"
1485 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1486 if test "$cross_compiling" = yes; then
1487 LINUX_LFS_SUPPORT
=cross
1489 cat > conftest.
$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1494 #include <sys/utsname.h>
1496 #if _LFS64_LARGEFILE == 1
1501 /* Ensure this is glibc 2.2 or higher */
1502 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1503 int libc_major = __GLIBC__;
1504 int libc_minor = __GLIBC_MINOR__;
1512 /* Ensure this is kernel 2.4 or higher */
1515 release = uts.release;
1516 major = atoi(strsep(&release, "."));
1517 minor = atoi(strsep(&release, "."));
1519 if (major > 2 || (major == 2 && minor > 3))
1528 if { (eval echo configure
:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1530 LINUX_LFS_SUPPORT
=yes
1532 echo "configure: failed program was:" >&5
1533 cat conftest.
$ac_ext >&5
1535 LINUX_LFS_SUPPORT
=no
1540 CPPFLAGS
="$old_CPPFLAGS"
1541 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1542 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1544 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1548 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1549 echo "configure:1550: checking for LFS support" >&5
1550 old_CPPFLAGS
="$CPPFLAGS"
1551 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1552 if test "$cross_compiling" = yes; then
1553 GLIBC_LFS_SUPPORT
=cross
1555 cat > conftest.
$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1561 #if _LFS64_LARGEFILE == 1
1568 if { (eval echo configure
:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1570 GLIBC_LFS_SUPPORT
=yes
1572 echo "configure: failed program was:" >&5
1573 cat conftest.
$ac_ext >&5
1575 GLIBC_LFS_SUPPORT
=no
1580 CPPFLAGS
="$old_CPPFLAGS"
1581 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1582 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1584 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1589 echo $ac_n "checking for inline""... $ac_c" 1>&6
1590 echo "configure:1591: checking for inline" >&5
1591 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1595 for ac_kw
in inline __inline__ __inline
; do
1596 cat > conftest.
$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1604 if { (eval echo configure
:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1606 ac_cv_c_inline
=$ac_kw; break
1608 echo "configure: failed program was:" >&5
1609 cat conftest.
$ac_ext >&5
1616 echo "$ac_t""$ac_cv_c_inline" 1>&6
1617 case "$ac_cv_c_inline" in
1619 no
) cat >> confdefs.h
<<\EOF
1623 *) cat >> confdefs.h
<<EOF
1624 #define inline $ac_cv_c_inline
1629 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1630 echo "configure:1631: checking how to run the C preprocessor" >&5
1631 # On Suns, sometimes $CPP names a directory.
1632 if test -n "$CPP" && test -d "$CPP"; then
1635 if test -z "$CPP"; then
1636 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 # This must be in double quotes, not single quotes, because CPP may get
1640 # substituted into the Makefile and "${CC-cc}" will confuse make.
1642 # On the NeXT, cc -E runs the code through the compiler's parser,
1643 # not just through cpp.
1644 cat > conftest.
$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1650 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1651 { (eval echo configure
:1652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1652 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1653 if test -z "$ac_err"; then
1657 echo "configure: failed program was:" >&5
1658 cat conftest.
$ac_ext >&5
1660 CPP
="${CC-cc} -E -traditional-cpp"
1661 cat > conftest.
$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1668 { (eval echo configure
:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1670 if test -z "$ac_err"; then
1674 echo "configure: failed program was:" >&5
1675 cat conftest.
$ac_ext >&5
1677 CPP
="${CC-cc} -nologo -E"
1678 cat > conftest.
$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1684 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1685 { (eval echo configure
:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1686 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1687 if test -z "$ac_err"; then
1691 echo "configure: failed program was:" >&5
1692 cat conftest.
$ac_ext >&5
1701 ac_cv_prog_CPP
="$CPP"
1703 CPP
="$ac_cv_prog_CPP"
1705 ac_cv_prog_CPP
="$CPP"
1707 echo "$ac_t""$CPP" 1>&6
1709 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1710 echo "configure:1711: checking for ANSI C header files" >&5
1711 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1722 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1723 { (eval echo configure
:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1724 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1725 if test -z "$ac_err"; then
1727 ac_cv_header_stdc
=yes
1730 echo "configure: failed program was:" >&5
1731 cat conftest.
$ac_ext >&5
1733 ac_cv_header_stdc
=no
1737 if test $ac_cv_header_stdc = yes; then
1738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1739 cat > conftest.
$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1745 egrep "memchr" >/dev
/null
2>&1; then
1749 ac_cv_header_stdc
=no
1755 if test $ac_cv_header_stdc = yes; then
1756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1757 cat > conftest.
$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1763 egrep "free" >/dev
/null
2>&1; then
1767 ac_cv_header_stdc
=no
1773 if test $ac_cv_header_stdc = yes; then
1774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1775 if test "$cross_compiling" = yes; then
1778 cat > conftest.
$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1782 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1783 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1785 int main () { int i; for (i = 0; i < 256; i++)
1786 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1790 if { (eval echo configure
:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 ac_cv_header_stdc
=no
1805 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1806 if test $ac_cv_header_stdc = yes; then
1807 cat >> confdefs.h
<<\EOF
1808 #define STDC_HEADERS 1
1814 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1816 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1817 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_hdr that defines DIR" >&5
1819 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.
$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 #include <sys/types.h>
1831 if { (eval echo configure
:1832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833 eval "ac_cv_header_dirent_$ac_safe=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.
$ac_ext >&5
1838 eval "ac_cv_header_dirent_$ac_safe=no"
1842 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1844 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1845 cat >> confdefs.h
<<EOF
1846 #define $ac_tr_hdr 1
1848 ac_header_dirent
=$ac_hdr; break
1850 echo "$ac_t""no" 1>&6
1853 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1854 if test $ac_header_dirent = dirent.h
; then
1855 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1856 echo "configure:1857: checking for opendir in -ldir" >&5
1857 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 ac_save_LIBS
="$LIBS"
1863 cat > conftest.
$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1866 /* Override any gcc2 internal prototype to avoid an error. */
1867 /* We use char because int might match the return type of a gcc2
1868 builtin and then its argument prototype would still apply. */
1875 if { (eval echo configure
:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1877 eval "ac_cv_lib_$ac_lib_var=yes"
1879 echo "configure: failed program was:" >&5
1880 cat conftest.
$ac_ext >&5
1882 eval "ac_cv_lib_$ac_lib_var=no"
1885 LIBS
="$ac_save_LIBS"
1888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1892 echo "$ac_t""no" 1>&6
1896 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1897 echo "configure:1898: checking for opendir in -lx" >&5
1898 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 ac_save_LIBS
="$LIBS"
1904 cat > conftest.
$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 /* Override any gcc2 internal prototype to avoid an error. */
1908 /* We use char because int might match the return type of a gcc2
1909 builtin and then its argument prototype would still apply. */
1916 if { (eval echo configure
:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1918 eval "ac_cv_lib_$ac_lib_var=yes"
1920 echo "configure: failed program was:" >&5
1921 cat conftest.
$ac_ext >&5
1923 eval "ac_cv_lib_$ac_lib_var=no"
1926 LIBS
="$ac_save_LIBS"
1929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1930 echo "$ac_t""yes" 1>&6
1933 echo "$ac_t""no" 1>&6
1938 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1939 echo "configure:1940: checking whether time.h and sys/time.h may both be included" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.
$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <sys/types.h>
1947 #include <sys/time.h>
1953 if { (eval echo configure
:1954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1955 ac_cv_header_time
=yes
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1960 ac_cv_header_time
=no
1965 echo "$ac_t""$ac_cv_header_time" 1>&6
1966 if test $ac_cv_header_time = yes; then
1967 cat >> confdefs.h
<<\EOF
1968 #define TIME_WITH_SYS_TIME 1
1973 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1974 echo "configure:1975: checking for sys/wait.h that is POSIX.1 compatible" >&5
1975 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.
$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 #include <sys/types.h>
1982 #include <sys/wait.h>
1984 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1987 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1992 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1995 if { (eval echo configure
:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1997 ac_cv_header_sys_wait_h
=yes
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 ac_cv_header_sys_wait_h
=no
2007 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2008 if test $ac_cv_header_sys_wait_h = yes; then
2009 cat >> confdefs.h
<<\EOF
2010 #define HAVE_SYS_WAIT_H 1
2015 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2017 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_hdr" >&5
2020 if eval "test \"`echo '$''{'ac_cv_header_$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"
2028 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2029 { (eval echo configure
:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2030 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2031 if test -z "$ac_err"; then
2033 eval "ac_cv_header_$ac_safe=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 eval "ac_cv_header_$ac_safe=no"
2043 if eval "test \"`echo '$ac_cv_header_'$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
2051 echo "$ac_t""no" 1>&6
2055 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2057 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_hdr" >&5
2060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2068 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2069 { (eval echo configure
:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2070 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2071 if test -z "$ac_err"; then
2073 eval "ac_cv_header_$ac_safe=yes"
2076 echo "configure: failed program was:" >&5
2077 cat conftest.
$ac_ext >&5
2079 eval "ac_cv_header_$ac_safe=no"
2083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2084 echo "$ac_t""yes" 1>&6
2085 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2086 cat >> confdefs.h
<<EOF
2087 #define $ac_tr_hdr 1
2091 echo "$ac_t""no" 1>&6
2095 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2097 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2099 echo "configure:2100: checking for $ac_hdr" >&5
2100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 cat > conftest.
$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2108 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2109 { (eval echo configure
:2110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2110 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2111 if test -z "$ac_err"; then
2113 eval "ac_cv_header_$ac_safe=yes"
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 eval "ac_cv_header_$ac_safe=no"
2123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2126 cat >> confdefs.h
<<EOF
2127 #define $ac_tr_hdr 1
2131 echo "$ac_t""no" 1>&6
2135 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2137 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_hdr" >&5
2140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 cat > conftest.
$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2148 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2149 { (eval echo configure
:2150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2150 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2151 if test -z "$ac_err"; then
2153 eval "ac_cv_header_$ac_safe=yes"
2156 echo "configure: failed program was:" >&5
2157 cat conftest.
$ac_ext >&5
2159 eval "ac_cv_header_$ac_safe=no"
2163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2166 cat >> confdefs.h
<<EOF
2167 #define $ac_tr_hdr 1
2171 echo "$ac_t""no" 1>&6
2175 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2177 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2179 echo "configure:2180: checking for $ac_hdr" >&5
2180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2188 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2189 { (eval echo configure
:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2190 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2191 if test -z "$ac_err"; then
2193 eval "ac_cv_header_$ac_safe=yes"
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 eval "ac_cv_header_$ac_safe=no"
2203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2205 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2206 cat >> confdefs.h
<<EOF
2207 #define $ac_tr_hdr 1
2211 echo "$ac_t""no" 1>&6
2215 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2217 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_hdr" >&5
2220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 cat > conftest.
$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2228 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2229 { (eval echo configure
:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2230 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2231 if test -z "$ac_err"; then
2233 eval "ac_cv_header_$ac_safe=yes"
2236 echo "configure: failed program was:" >&5
2237 cat conftest.
$ac_ext >&5
2239 eval "ac_cv_header_$ac_safe=no"
2243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2244 echo "$ac_t""yes" 1>&6
2245 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2246 cat >> confdefs.h
<<EOF
2247 #define $ac_tr_hdr 1
2251 echo "$ac_t""no" 1>&6
2255 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2257 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_hdr" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2269 { (eval echo configure
:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2270 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2271 if test -z "$ac_err"; then
2273 eval "ac_cv_header_$ac_safe=yes"
2276 echo "configure: failed program was:" >&5
2277 cat conftest.
$ac_ext >&5
2279 eval "ac_cv_header_$ac_safe=no"
2283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2286 cat >> confdefs.h
<<EOF
2287 #define $ac_tr_hdr 1
2291 echo "$ac_t""no" 1>&6
2295 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h synch.h pthread.h
2297 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_hdr" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.
$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2308 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure
:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then
2313 eval "ac_cv_header_$ac_safe=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 eval "ac_cv_header_$ac_safe=no"
2323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2326 cat >> confdefs.h
<<EOF
2327 #define $ac_tr_hdr 1
2331 echo "$ac_t""no" 1>&6
2337 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2338 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2342 cat > conftest.
$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2350 if { (eval echo configure
:2351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2352 ac_cv_header_shadow_h
=yes
2354 echo "configure: failed program was:" >&5
2355 cat conftest.
$ac_ext >&5
2357 ac_cv_header_shadow_h
=no
2360 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2361 cat >> confdefs.h
<<\EOF
2362 #define HAVE_SHADOW_H 1
2368 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2370 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2372 echo "configure:2373: checking for $ac_hdr" >&5
2373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2382 { (eval echo configure
:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2383 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2384 if test -z "$ac_err"; then
2386 eval "ac_cv_header_$ac_safe=yes"
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2392 eval "ac_cv_header_$ac_safe=no"
2396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2399 cat >> confdefs.h
<<EOF
2400 #define $ac_tr_hdr 1
2404 echo "$ac_t""no" 1>&6
2408 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2410 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_hdr" >&5
2413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2421 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2422 { (eval echo configure
:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2423 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2424 if test -z "$ac_err"; then
2426 eval "ac_cv_header_$ac_safe=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.
$ac_ext >&5
2432 eval "ac_cv_header_$ac_safe=no"
2436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2437 echo "$ac_t""yes" 1>&6
2438 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2439 cat >> confdefs.h
<<EOF
2440 #define $ac_tr_hdr 1
2444 echo "$ac_t""no" 1>&6
2448 for ac_hdr
in stropts.h poll.h
2450 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2452 echo "configure:2453: checking for $ac_hdr" >&5
2453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 cat > conftest.
$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2461 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462 { (eval echo configure
:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2464 if test -z "$ac_err"; then
2466 eval "ac_cv_header_$ac_safe=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.
$ac_ext >&5
2472 eval "ac_cv_header_$ac_safe=no"
2476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2478 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2479 cat >> confdefs.h
<<EOF
2480 #define $ac_tr_hdr 1
2484 echo "$ac_t""no" 1>&6
2488 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2490 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_hdr" >&5
2493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.
$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2501 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure
:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2506 eval "ac_cv_header_$ac_safe=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 eval "ac_cv_header_$ac_safe=no"
2516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2517 echo "$ac_t""yes" 1>&6
2518 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2519 cat >> confdefs.h
<<EOF
2520 #define $ac_tr_hdr 1
2524 echo "$ac_t""no" 1>&6
2528 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2530 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_hdr" >&5
2533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure
:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2546 eval "ac_cv_header_$ac_safe=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 eval "ac_cv_header_$ac_safe=no"
2556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2559 cat >> confdefs.h
<<EOF
2560 #define $ac_tr_hdr 1
2564 echo "$ac_t""no" 1>&6
2569 # For experimental utmp support (lastlog on some BSD-like systems)
2570 for ac_hdr
in utmp.h utmpx.h lastlog.h
2572 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_hdr" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.
$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2583 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure
:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2588 eval "ac_cv_header_$ac_safe=yes"
2591 echo "configure: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2594 eval "ac_cv_header_$ac_safe=no"
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2601 cat >> confdefs.h
<<EOF
2602 #define $ac_tr_hdr 1
2606 echo "$ac_t""no" 1>&6
2611 # For quotas on Veritas VxFS filesystems
2612 for ac_hdr
in sys
/fs
/vx_quota.h
2614 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_hdr" >&5
2617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 cat > conftest.
$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2625 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626 { (eval echo configure
:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2628 if test -z "$ac_err"; then
2630 eval "ac_cv_header_$ac_safe=yes"
2633 echo "configure: failed program was:" >&5
2634 cat conftest.
$ac_ext >&5
2636 eval "ac_cv_header_$ac_safe=no"
2640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2641 echo "$ac_t""yes" 1>&6
2642 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2643 cat >> confdefs.h
<<EOF
2644 #define $ac_tr_hdr 1
2648 echo "$ac_t""no" 1>&6
2653 # For quotas on Linux XFS filesystems
2654 for ac_hdr
in linux
/xqm.h
2656 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_hdr" >&5
2659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.
$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2668 { (eval echo configure
:2669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2670 if test -z "$ac_err"; then
2672 eval "ac_cv_header_$ac_safe=yes"
2675 echo "configure: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2678 eval "ac_cv_header_$ac_safe=no"
2682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2685 cat >> confdefs.h
<<EOF
2686 #define $ac_tr_hdr 1
2690 echo "$ac_t""no" 1>&6
2695 echo $ac_n "checking size of int""... $ac_c" 1>&6
2696 echo "configure:2697: checking size of int" >&5
2697 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 if test "$cross_compiling" = yes; then
2701 ac_cv_sizeof_int
=cross
2703 cat > conftest.
$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2709 FILE *f=fopen("conftestval", "w");
2711 fprintf(f, "%d\n", sizeof(int));
2715 if { (eval echo configure
:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2717 ac_cv_sizeof_int
=`cat conftestval`
2719 echo "configure: failed program was:" >&5
2720 cat conftest.
$ac_ext >&5
2728 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2729 cat >> confdefs.h
<<EOF
2730 #define SIZEOF_INT $ac_cv_sizeof_int
2734 echo $ac_n "checking size of long""... $ac_c" 1>&6
2735 echo "configure:2736: checking size of long" >&5
2736 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 if test "$cross_compiling" = yes; then
2740 ac_cv_sizeof_long
=cross
2742 cat > conftest.
$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2748 FILE *f=fopen("conftestval", "w");
2750 fprintf(f, "%d\n", sizeof(long));
2754 if { (eval echo configure
:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2756 ac_cv_sizeof_long
=`cat conftestval`
2758 echo "configure: failed program was:" >&5
2759 cat conftest.
$ac_ext >&5
2767 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2768 cat >> confdefs.h
<<EOF
2769 #define SIZEOF_LONG $ac_cv_sizeof_long
2773 echo $ac_n "checking size of short""... $ac_c" 1>&6
2774 echo "configure:2775: checking size of short" >&5
2775 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 if test "$cross_compiling" = yes; then
2779 ac_cv_sizeof_short
=cross
2781 cat > conftest.
$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2787 FILE *f=fopen("conftestval", "w");
2789 fprintf(f, "%d\n", sizeof(short));
2793 if { (eval echo configure
:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2795 ac_cv_sizeof_short
=`cat conftestval`
2797 echo "configure: failed program was:" >&5
2798 cat conftest.
$ac_ext >&5
2800 ac_cv_sizeof_short
=0
2806 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2807 cat >> confdefs.h
<<EOF
2808 #define SIZEOF_SHORT $ac_cv_sizeof_short
2813 echo $ac_n "checking for working const""... $ac_c" 1>&6
2814 echo "configure:2815: checking for working const" >&5
2815 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.
$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2824 /* Ultrix mips cc rejects this. */
2825 typedef int charset[2]; const charset x;
2826 /* SunOS 4.1.1 cc rejects this. */
2827 char const *const *ccp;
2829 /* NEC SVR4.0.2 mips cc rejects this. */
2830 struct point {int x, y;};
2831 static struct point const zero = {0,0};
2832 /* AIX XL C 1.02.0.0 rejects this.
2833 It does not let you subtract one const X* pointer from another in an arm
2834 of an if-expression whose if-part is not a constant expression */
2835 const char *g = "string";
2836 ccp = &g + (g ? g-g : 0);
2837 /* HPUX 7.0 cc rejects these. */
2840 ccp = (char const *const *) p;
2841 { /* SCO 3.2v4 cc rejects this. */
2843 char const *s = 0 ? (char *) 0 : (char const *) 0;
2847 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2849 const int *foo = &x[0];
2852 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2853 typedef const int *iptr;
2857 { /* AIX XL C 1.02.0.0 rejects this saying
2858 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2859 struct s { int j; const int *ap[3]; };
2860 struct s *b; b->j = 5;
2862 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2868 if { (eval echo configure
:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2880 echo "$ac_t""$ac_cv_c_const" 1>&6
2881 if test $ac_cv_c_const = no
; then
2882 cat >> confdefs.h
<<\EOF
2888 echo $ac_n "checking for inline""... $ac_c" 1>&6
2889 echo "configure:2890: checking for inline" >&5
2890 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2894 for ac_kw
in inline __inline__ __inline
; do
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2903 if { (eval echo configure
:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2905 ac_cv_c_inline
=$ac_kw; break
2907 echo "configure: failed program was:" >&5
2908 cat conftest.
$ac_ext >&5
2915 echo "$ac_t""$ac_cv_c_inline" 1>&6
2916 case "$ac_cv_c_inline" in
2918 no
) cat >> confdefs.h
<<\EOF
2922 *) cat >> confdefs.h
<<EOF
2923 #define inline $ac_cv_c_inline
2928 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2929 echo "configure:2930: checking whether byte ordering is bigendian" >&5
2930 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 ac_cv_c_bigendian
=unknown
2934 # See if sys/param.h defines the BYTE_ORDER macro.
2935 cat > conftest.
$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 #include <sys/types.h>
2939 #include <sys/param.h>
2942 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2947 if { (eval echo configure
:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2949 # It does; now see whether it defined to BIG_ENDIAN or not.
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <sys/types.h>
2954 #include <sys/param.h>
2957 #if BYTE_ORDER != BIG_ENDIAN
2962 if { (eval echo configure
:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2964 ac_cv_c_bigendian
=yes
2966 echo "configure: failed program was:" >&5
2967 cat conftest.
$ac_ext >&5
2969 ac_cv_c_bigendian
=no
2973 echo "configure: failed program was:" >&5
2974 cat conftest.
$ac_ext >&5
2977 if test $ac_cv_c_bigendian = unknown
; then
2978 if test "$cross_compiling" = yes; then
2979 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2981 cat > conftest.
$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2985 /* Are we little or big endian? From Harbison&Steele. */
2989 char c[sizeof (long)];
2992 exit (u.c[sizeof (long) - 1] == 1);
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_c_bigendian
=no
2999 echo "configure: failed program was:" >&5
3000 cat conftest.
$ac_ext >&5
3002 ac_cv_c_bigendian
=yes
3010 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3011 if test $ac_cv_c_bigendian = yes; then
3012 cat >> confdefs.h
<<\EOF
3013 #define WORDS_BIGENDIAN 1
3018 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3019 echo "configure:3020: checking whether char is unsigned" >&5
3020 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test "$GCC" = yes; then
3024 # GCC predefines this symbol on systems where it applies.
3025 cat > conftest.
$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 #ifdef __CHAR_UNSIGNED__
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 egrep "yes" >/dev
/null
2>&1; then
3036 ac_cv_c_char_unsigned
=yes
3039 ac_cv_c_char_unsigned
=no
3044 if test "$cross_compiling" = yes; then
3045 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3047 cat > conftest.
$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3051 #if !defined(__STDC__) || __STDC__ != 1
3055 volatile char c = 255; exit(c < 0);
3058 if { (eval echo configure
:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3060 ac_cv_c_char_unsigned
=yes
3062 echo "configure: failed program was:" >&5
3063 cat conftest.
$ac_ext >&5
3065 ac_cv_c_char_unsigned
=no
3073 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3074 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3075 cat >> confdefs.h
<<\EOF
3076 #define __CHAR_UNSIGNED__ 1
3082 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3083 echo "configure:3084: checking return type of signal handlers" >&5
3084 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.
$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #include <sys/types.h>
3096 extern "C" void (*signal (int, void (*)(int)))(int);
3098 void (*signal ()) ();
3105 if { (eval echo configure
:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3107 ac_cv_type_signal
=void
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3112 ac_cv_type_signal
=int
3117 echo "$ac_t""$ac_cv_type_signal" 1>&6
3118 cat >> confdefs.h
<<EOF
3119 #define RETSIGTYPE $ac_cv_type_signal
3123 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3124 echo "configure:3125: checking for uid_t in sys/types.h" >&5
3125 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.
$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <sys/types.h>
3133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3134 egrep "uid_t" >/dev
/null
2>&1; then
3136 ac_cv_type_uid_t
=yes
3145 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3146 if test $ac_cv_type_uid_t = no
; then
3147 cat >> confdefs.h
<<\EOF
3151 cat >> confdefs.h
<<\EOF
3157 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3158 echo "configure:3159: checking for mode_t" >&5
3159 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 cat > conftest.
$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <sys/types.h>
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3174 ac_cv_type_mode_t
=yes
3177 ac_cv_type_mode_t
=no
3182 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3183 if test $ac_cv_type_mode_t = no
; then
3184 cat >> confdefs.h
<<\EOF
3190 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3191 echo "configure:3192: checking for off_t" >&5
3192 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 #include <sys/types.h>
3204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3205 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3207 ac_cv_type_off_t
=yes
3215 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3216 if test $ac_cv_type_off_t = no
; then
3217 cat >> confdefs.h
<<\EOF
3223 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3224 echo "configure:3225: checking for size_t" >&5
3225 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 #include <sys/types.h>
3237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3238 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3240 ac_cv_type_size_t
=yes
3243 ac_cv_type_size_t
=no
3248 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3249 if test $ac_cv_type_size_t = no
; then
3250 cat >> confdefs.h
<<\EOF
3251 #define size_t unsigned
3256 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3257 echo "configure:3258: checking for pid_t" >&5
3258 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 #include <sys/types.h>
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3273 ac_cv_type_pid_t
=yes
3281 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3282 if test $ac_cv_type_pid_t = no
; then
3283 cat >> confdefs.h
<<\EOF
3289 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3290 echo "configure:3291: checking for st_rdev in struct stat" >&5
3291 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.
$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3300 struct stat s; s.st_rdev;
3303 if { (eval echo configure
:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305 ac_cv_struct_st_rdev
=yes
3307 echo "configure: failed program was:" >&5
3308 cat conftest.
$ac_ext >&5
3310 ac_cv_struct_st_rdev
=no
3315 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3316 if test $ac_cv_struct_st_rdev = yes; then
3317 cat >> confdefs.h
<<\EOF
3318 #define HAVE_ST_RDEV 1
3323 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3324 echo "configure:3325: checking for d_off in dirent" >&5
3325 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+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"
3333 #include <sys/types.h>
3336 struct dirent d; d.d_off;
3339 if { (eval echo configure
:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341 ac_cv_dirent_d_off
=yes
3343 echo "configure: failed program was:" >&5
3344 cat conftest.
$ac_ext >&5
3346 ac_cv_dirent_d_off
=no
3351 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3352 if test $ac_cv_dirent_d_off = yes; then
3353 cat >> confdefs.h
<<\EOF
3354 #define HAVE_DIRENT_D_OFF 1
3359 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3360 echo "configure:3361: checking for ino_t" >&5
3361 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <sys/types.h>
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3376 ac_cv_type_ino_t
=yes
3384 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3385 if test $ac_cv_type_ino_t = no
; then
3386 cat >> confdefs.h
<<\EOF
3387 #define ino_t unsigned
3392 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3393 echo "configure:3394: checking for loff_t" >&5
3394 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3409 ac_cv_type_loff_t
=yes
3412 ac_cv_type_loff_t
=no
3417 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3418 if test $ac_cv_type_loff_t = no
; then
3419 cat >> confdefs.h
<<\EOF
3420 #define loff_t off_t
3425 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3426 echo "configure:3427: checking for offset_t" >&5
3427 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.
$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3442 ac_cv_type_offset_t
=yes
3445 ac_cv_type_offset_t
=no
3450 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3451 if test $ac_cv_type_offset_t = no
; then
3452 cat >> confdefs.h
<<\EOF
3453 #define offset_t loff_t
3458 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3459 echo "configure:3460: checking for ssize_t" >&5
3460 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 cat > conftest.
$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3475 ac_cv_type_ssize_t
=yes
3478 ac_cv_type_ssize_t
=no
3483 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3484 if test $ac_cv_type_ssize_t = no
; then
3485 cat >> confdefs.h
<<\EOF
3491 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3492 echo "configure:3493: checking for wchar_t" >&5
3493 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.
$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <sys/types.h>
3505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3506 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3508 ac_cv_type_wchar_t
=yes
3511 ac_cv_type_wchar_t
=no
3516 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3517 if test $ac_cv_type_wchar_t = no
; then
3518 cat >> confdefs.h
<<\EOF
3519 #define wchar_t unsigned short
3525 ############################################
3526 # for cups support we need libcups, and a handful of header files
3528 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3529 echo "configure:3530: checking for httpConnect in -lcups" >&5
3530 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 ac_save_LIBS
="$LIBS"
3536 cat > conftest.
$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3548 if { (eval echo configure
:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3550 eval "ac_cv_lib_$ac_lib_var=yes"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3555 eval "ac_cv_lib_$ac_lib_var=no"
3558 LIBS
="$ac_save_LIBS"
3561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3563 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3564 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3565 cat >> confdefs.h
<<EOF
3566 #define $ac_tr_lib 1
3572 echo "$ac_t""no" 1>&6
3576 # I wonder if there is a nicer way of doing this?
3578 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3579 for ac_hdr
in cups
/cups.h cups
/language.h
3581 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3583 echo "configure:3584: checking for $ac_hdr" >&5
3584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 cat > conftest.
$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3592 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3593 { (eval echo configure
:3594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3594 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3595 if test -z "$ac_err"; then
3597 eval "ac_cv_header_$ac_safe=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3603 eval "ac_cv_header_$ac_safe=no"
3607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3608 echo "$ac_t""yes" 1>&6
3609 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3610 cat >> confdefs.h
<<EOF
3611 #define $ac_tr_hdr 1
3615 echo "$ac_t""no" 1>&6
3619 if test x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3620 if test x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3621 cat >> confdefs.h
<<\EOF
3629 ############################################
3630 # we need libdl for PAM and the new VFS code
3631 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3632 echo "configure:3633: checking for dlopen in -ldl" >&5
3633 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 ac_save_LIBS
="$LIBS"
3639 cat > conftest.
$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 /* Override any gcc2 internal prototype to avoid an error. */
3643 /* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3651 if { (eval echo configure
:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3653 eval "ac_cv_lib_$ac_lib_var=yes"
3655 echo "configure: failed program was:" >&5
3656 cat conftest.
$ac_ext >&5
3658 eval "ac_cv_lib_$ac_lib_var=no"
3661 LIBS
="$ac_save_LIBS"
3664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3665 echo "$ac_t""yes" 1>&6
3667 cat >> confdefs.h
<<\EOF
3668 #define HAVE_LIBDL 1
3672 echo "$ac_t""no" 1>&6
3676 ############################################
3677 # check if the compiler can do immediate structures
3678 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3679 echo "configure:3680: checking for immediate structures" >&5
3680 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3684 cat > conftest.
$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3691 #define X_FOOBAR(x) ((FOOBAR) { x })
3692 typedef struct {unsigned x;} FOOBAR;
3693 FOOBAR f = X_FOOBAR(1);
3697 if { (eval echo configure
:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699 samba_cv_immediate_structures
=yes
3701 echo "configure: failed program was:" >&5
3702 cat conftest.
$ac_ext >&5
3704 samba_cv_immediate_structures
=no
3709 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3710 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3711 cat >> confdefs.h
<<\EOF
3712 #define HAVE_IMMEDIATE_STRUCTURES 1
3717 ############################################
3718 # check for unix domain sockets
3719 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3720 echo "configure:3721: checking for unix domain sockets" >&5
3721 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3725 cat > conftest.
$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3729 #include <sys/types.h>
3732 #include <sys/socket.h>
3736 struct sockaddr_un sunaddr;
3737 sunaddr.sun_family = AF_UNIX;
3741 if { (eval echo configure
:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3743 samba_cv_unixsocket
=yes
3745 echo "configure: failed program was:" >&5
3746 cat conftest.
$ac_ext >&5
3748 samba_cv_unixsocket
=no
3753 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3754 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3755 cat >> confdefs.h
<<\EOF
3756 #define HAVE_UNIXSOCKET 1
3761 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3762 echo "configure:3763: checking for socklen_t type" >&5
3763 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3767 cat > conftest.
$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3771 #include <sys/types.h>
3776 #include <sys/socket.h>
3781 if { (eval echo configure
:3782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783 samba_cv_socklen_t
=yes
3785 echo "configure: failed program was:" >&5
3786 cat conftest.
$ac_ext >&5
3788 samba_cv_socklen_t
=no
3793 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3794 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3795 cat >> confdefs.h
<<\EOF
3796 #define HAVE_SOCKLEN_T_TYPE 1
3801 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3802 echo "configure:3803: checking for sig_atomic_t type" >&5
3803 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3807 cat > conftest.
$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3811 #include <sys/types.h>
3821 if { (eval echo configure
:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3823 samba_cv_sig_atomic_t
=yes
3825 echo "configure: failed program was:" >&5
3826 cat conftest.
$ac_ext >&5
3828 samba_cv_sig_atomic_t
=no
3833 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3834 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3835 cat >> confdefs.h
<<\EOF
3836 #define HAVE_SIG_ATOMIC_T_TYPE 1
3841 # stupid headers have the functions but no declaration. grrrr.
3843 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3844 echo "configure:3845: checking for errno declaration" >&5
3845 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3849 cat > conftest.
$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3857 if { (eval echo configure
:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3859 ac_cv_have_errno_decl
=yes
3861 echo "configure: failed program was:" >&5
3862 cat conftest.
$ac_ext >&5
3864 ac_cv_have_errno_decl
=no
3869 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3870 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3871 cat >> confdefs.h
<<\EOF
3872 #define HAVE_ERRNO_DECL 1
3878 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3879 echo "configure:3880: checking for setresuid declaration" >&5
3880 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3884 cat > conftest.
$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3889 int i = (int)setresuid
3892 if { (eval echo configure
:3893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3894 ac_cv_have_setresuid_decl
=yes
3896 echo "configure: failed program was:" >&5
3897 cat conftest.
$ac_ext >&5
3899 ac_cv_have_setresuid_decl
=no
3904 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3905 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3906 cat >> confdefs.h
<<\EOF
3907 #define HAVE_SETRESUID_DECL 1
3913 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3914 echo "configure:3915: checking for setresgid declaration" >&5
3915 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.
$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3924 int i = (int)setresgid
3927 if { (eval echo configure
:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3929 ac_cv_have_setresgid_decl
=yes
3931 echo "configure: failed program was:" >&5
3932 cat conftest.
$ac_ext >&5
3934 ac_cv_have_setresgid_decl
=no
3939 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3940 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3941 cat >> confdefs.h
<<\EOF
3942 #define HAVE_SETRESGID_DECL 1
3948 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3949 echo "configure:3950: checking for asprintf declaration" >&5
3950 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3959 int i = (int)asprintf
3962 if { (eval echo configure
:3963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3964 ac_cv_have_asprintf_decl
=yes
3966 echo "configure: failed program was:" >&5
3967 cat conftest.
$ac_ext >&5
3969 ac_cv_have_asprintf_decl
=no
3974 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3975 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3976 cat >> confdefs.h
<<\EOF
3977 #define HAVE_ASPRINTF_DECL 1
3983 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3984 echo "configure:3985: checking for vasprintf declaration" >&5
3985 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3989 cat > conftest.
$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3994 int i = (int)vasprintf
3997 if { (eval echo configure
:3998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3999 ac_cv_have_vasprintf_decl
=yes
4001 echo "configure: failed program was:" >&5
4002 cat conftest.
$ac_ext >&5
4004 ac_cv_have_vasprintf_decl
=no
4009 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4010 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4011 cat >> confdefs.h
<<\EOF
4012 #define HAVE_VASPRINTF_DECL 1
4018 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4019 echo "configure:4020: checking for vsnprintf declaration" >&5
4020 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4024 cat > conftest.
$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4029 int i = (int)vsnprintf
4032 if { (eval echo configure
:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4034 ac_cv_have_vsnprintf_decl
=yes
4036 echo "configure: failed program was:" >&5
4037 cat conftest.
$ac_ext >&5
4039 ac_cv_have_vsnprintf_decl
=no
4044 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4045 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4046 cat >> confdefs.h
<<\EOF
4047 #define HAVE_VSNPRINTF_DECL 1
4053 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4054 echo "configure:4055: checking for snprintf declaration" >&5
4055 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.
$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4064 int i = (int)snprintf
4067 if { (eval echo configure
:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4069 ac_cv_have_snprintf_decl
=yes
4071 echo "configure: failed program was:" >&5
4072 cat conftest.
$ac_ext >&5
4074 ac_cv_have_snprintf_decl
=no
4079 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4080 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4081 cat >> confdefs.h
<<\EOF
4082 #define HAVE_SNPRINTF_DECL 1
4088 # and glibc has setresuid under linux but the function does
4089 # nothing until kernel 2.1.44! very dumb.
4090 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4091 echo "configure:4092: checking for real setresuid" >&5
4092 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4096 if test "$cross_compiling" = yes; then
4097 samba_cv_have_setresuid
=cross
4099 cat > conftest.
$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4103 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4105 if { (eval echo configure
:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4107 samba_cv_have_setresuid
=yes
4109 echo "configure: failed program was:" >&5
4110 cat conftest.
$ac_ext >&5
4112 samba_cv_have_setresuid
=no
4119 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4120 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4121 cat >> confdefs.h
<<\EOF
4122 #define HAVE_SETRESUID 1
4127 # Do the same check for setresguid...
4129 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4130 echo "configure:4131: checking for real setresgid" >&5
4131 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4135 if test "$cross_compiling" = yes; then
4136 samba_cv_have_setresgid
=cross
4138 cat > conftest.
$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4143 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4145 if { (eval echo configure
:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4147 samba_cv_have_setresgid
=yes
4149 echo "configure: failed program was:" >&5
4150 cat conftest.
$ac_ext >&5
4152 samba_cv_have_setresgid
=no
4159 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4160 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4161 cat >> confdefs.h
<<\EOF
4162 #define HAVE_SETRESGID 1
4167 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4168 echo "configure:4169: checking for 8-bit clean memcmp" >&5
4169 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 if test "$cross_compiling" = yes; then
4173 ac_cv_func_memcmp_clean
=no
4175 cat > conftest.
$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4181 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4182 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4186 if { (eval echo configure
:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4188 ac_cv_func_memcmp_clean
=yes
4190 echo "configure: failed program was:" >&5
4191 cat conftest.
$ac_ext >&5
4193 ac_cv_func_memcmp_clean
=no
4200 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4201 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4204 ###############################################
4205 # Readline included by default unless explicitly asked not to
4206 test "${with_readline+set}" != "set" && with_readline
=yes
4208 # test for where we get readline() from
4209 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4210 echo "configure:4211: checking whether to use readline" >&5
4211 # Check whether --with-readline or --without-readline was given.
4212 if test "${with_readline+set}" = set; then
4213 withval
="$with_readline"
4214 case "$with_readline" in
4216 echo "$ac_t""yes" 1>&6
4218 for ac_hdr
in readline.h
history.h readline
/readline.h
4220 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4222 echo "configure:4223: checking for $ac_hdr" >&5
4223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 cat > conftest.
$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4231 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4232 { (eval echo configure
:4233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4233 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4234 if test -z "$ac_err"; then
4236 eval "ac_cv_header_$ac_safe=yes"
4239 echo "configure: failed program was:" >&5
4240 cat conftest.
$ac_ext >&5
4242 eval "ac_cv_header_$ac_safe=no"
4246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4247 echo "$ac_t""yes" 1>&6
4248 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4249 cat >> confdefs.h
<<EOF
4250 #define $ac_tr_hdr 1
4254 echo "$ac_t""no" 1>&6
4258 for ac_hdr
in readline
/history.h
4260 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4262 echo "configure:4263: checking for $ac_hdr" >&5
4263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4266 cat > conftest.
$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4271 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4272 { (eval echo configure
:4273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4273 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4274 if test -z "$ac_err"; then
4276 eval "ac_cv_header_$ac_safe=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.
$ac_ext >&5
4282 eval "ac_cv_header_$ac_safe=no"
4286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4287 echo "$ac_t""yes" 1>&6
4288 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4289 cat >> confdefs.h
<<EOF
4290 #define $ac_tr_hdr 1
4294 echo "$ac_t""no" 1>&6
4299 for ac_hdr
in readline.h readline
/readline.h
4301 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4303 echo "configure:4304: checking for $ac_hdr" >&5
4304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 cat > conftest.
$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4312 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4313 { (eval echo configure
:4314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4314 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4315 if test -z "$ac_err"; then
4317 eval "ac_cv_header_$ac_safe=yes"
4320 echo "configure: failed program was:" >&5
4321 cat conftest.
$ac_ext >&5
4323 eval "ac_cv_header_$ac_safe=no"
4327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4328 echo "$ac_t""yes" 1>&6
4329 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4330 cat >> confdefs.h
<<EOF
4331 #define $ac_tr_hdr 1
4334 for termlib
in ncurses curses termcap terminfo termlib
; do
4335 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4336 echo "configure:4337: checking for tgetent in -l${termlib}" >&5
4337 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 ac_save_LIBS
="$LIBS"
4342 LIBS
="-l${termlib} $LIBS"
4343 cat > conftest.
$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4346 /* Override any gcc2 internal prototype to avoid an error. */
4347 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4355 if { (eval echo configure
:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4357 eval "ac_cv_lib_$ac_lib_var=yes"
4359 echo "configure: failed program was:" >&5
4360 cat conftest.
$ac_ext >&5
4362 eval "ac_cv_lib_$ac_lib_var=no"
4365 LIBS
="$ac_save_LIBS"
4368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4369 echo "$ac_t""yes" 1>&6
4370 TERMLIBS
="-l${termlib}"; break
4372 echo "$ac_t""no" 1>&6
4376 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4377 echo "configure:4378: checking for rl_callback_handler_install in -lreadline" >&5
4378 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4382 ac_save_LIBS
="$LIBS"
4383 LIBS
="-lreadline $TERMLIBS $LIBS"
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 /* We use char because int might match the return type of a gcc2
4389 builtin and then its argument prototype would still apply. */
4390 char rl_callback_handler_install();
4393 rl_callback_handler_install()
4396 if { (eval echo configure
:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4398 eval "ac_cv_lib_$ac_lib_var=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.
$ac_ext >&5
4403 eval "ac_cv_lib_$ac_lib_var=no"
4406 LIBS
="$ac_save_LIBS"
4409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 TERMLIBS
="-lreadline $TERMLIBS"
4412 cat >> confdefs.h
<<\EOF
4413 #define HAVE_LIBREADLINE 1
4418 echo "$ac_t""no" 1>&6
4423 echo "$ac_t""no" 1>&6
4429 echo "$ac_t""no" 1>&6
4432 echo "$ac_t""yes" 1>&6
4434 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4435 # alternate readline path
4437 _cppflags
=${CPPFLAGS}
4439 # Add additional search path
4440 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4441 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4443 for ac_hdr
in readline.h
history.h readline
/readline.h
4445 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_hdr" >&5
4448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 cat > conftest.
$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4456 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4457 { (eval echo configure
:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4458 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4459 if test -z "$ac_err"; then
4461 eval "ac_cv_header_$ac_safe=yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.
$ac_ext >&5
4467 eval "ac_cv_header_$ac_safe=no"
4471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4474 cat >> confdefs.h
<<EOF
4475 #define $ac_tr_hdr 1
4479 echo "$ac_t""no" 1>&6
4483 for ac_hdr
in readline
/history.h
4485 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.
$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure
:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4501 eval "ac_cv_header_$ac_safe=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.
$ac_ext >&5
4507 eval "ac_cv_header_$ac_safe=no"
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h
<<EOF
4515 #define $ac_tr_hdr 1
4519 echo "$ac_t""no" 1>&6
4524 for ac_hdr
in readline.h readline
/readline.h
4526 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_hdr" >&5
4529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 cat > conftest.
$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4537 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4538 { (eval echo configure
:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4539 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4540 if test -z "$ac_err"; then
4542 eval "ac_cv_header_$ac_safe=yes"
4545 echo "configure: failed program was:" >&5
4546 cat conftest.
$ac_ext >&5
4548 eval "ac_cv_header_$ac_safe=no"
4552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4553 echo "$ac_t""yes" 1>&6
4554 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4555 cat >> confdefs.h
<<EOF
4556 #define $ac_tr_hdr 1
4559 for termlib
in ncurses curses termcap terminfo termlib
; do
4560 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4561 echo "configure:4562: checking for tgetent in -l${termlib}" >&5
4562 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 ac_save_LIBS
="$LIBS"
4567 LIBS
="-l${termlib} $LIBS"
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 /* Override any gcc2 internal prototype to avoid an error. */
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4580 if { (eval echo configure
:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4582 eval "ac_cv_lib_$ac_lib_var=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.
$ac_ext >&5
4587 eval "ac_cv_lib_$ac_lib_var=no"
4590 LIBS
="$ac_save_LIBS"
4593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4595 TERMLIBS
="-l${termlib}"; break
4597 echo "$ac_t""no" 1>&6
4601 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4602 echo "configure:4603: checking for rl_callback_handler_install in -lreadline" >&5
4603 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 ac_save_LIBS
="$LIBS"
4608 LIBS
="-lreadline $TERMLIBS $LIBS"
4609 cat > conftest.
$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4615 char rl_callback_handler_install();
4618 rl_callback_handler_install()
4621 if { (eval echo configure
:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4623 eval "ac_cv_lib_$ac_lib_var=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.
$ac_ext >&5
4628 eval "ac_cv_lib_$ac_lib_var=no"
4631 LIBS
="$ac_save_LIBS"
4634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 TERMLDFLAGS
="-L$with_readline/lib"
4637 TERMCPPFLAGS
="-I$with_readline/include"
4638 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4639 TERMLIBS
="-lreadline $TERMLIBS"
4640 cat >> confdefs.h
<<\EOF
4641 #define HAVE_LIBREADLINE 1
4646 echo "$ac_t""no" 1>&6
4647 TERMLIBS
= CPPFLAGS
=$_cppflags
4651 echo "$ac_t""no" 1>&6
4660 echo "$ac_t""no" 1>&6
4667 # The following test taken from the cvs sources
4668 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4669 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4670 # libsocket.so which has a bad implementation of gethostbyname (it
4671 # only looks in /etc/hosts), so we only look for -lsocket if we need
4673 for ac_func
in connect
4675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_func" >&5
4677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 cat > conftest.
$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func(); below. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 /* We use char because int might match the return type of a gcc2
4688 builtin and then its argument prototype would still apply. */
4693 /* The GNU C library defines this for functions which it implements
4694 to always fail with ENOSYS. Some functions are actually named
4695 something starting with __ and the normal name is an alias. */
4696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704 if { (eval echo configure
:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4706 eval "ac_cv_func_$ac_func=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.
$ac_ext >&5
4711 eval "ac_cv_func_$ac_func=no"
4716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4717 echo "$ac_t""yes" 1>&6
4718 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4719 cat >> confdefs.h
<<EOF
4720 #define $ac_tr_func 1
4724 echo "$ac_t""no" 1>&6
4728 if test x
"$ac_cv_func_connect" = x
"no"; then
4731 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4732 echo "configure:4733: checking for printf in -lnsl_s" >&5
4733 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 ac_save_LIBS
="$LIBS"
4738 LIBS
="-lnsl_s $LIBS"
4739 cat > conftest.
$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 /* Override any gcc2 internal prototype to avoid an error. */
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4751 if { (eval echo configure
:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4753 eval "ac_cv_lib_$ac_lib_var=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.
$ac_ext >&5
4758 eval "ac_cv_lib_$ac_lib_var=no"
4761 LIBS
="$ac_save_LIBS"
4764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4768 cat >> confdefs.h
<<EOF
4769 #define $ac_tr_lib 1
4772 LIBS
="-lnsl_s $LIBS"
4775 echo "$ac_t""no" 1>&6
4781 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4782 echo "configure:4783: checking for printf in -lnsl" >&5
4783 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 ac_save_LIBS
="$LIBS"
4789 cat > conftest.
$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4801 if { (eval echo configure
:4802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4803 eval "ac_cv_lib_$ac_lib_var=yes"
4805 echo "configure: failed program was:" >&5
4806 cat conftest.
$ac_ext >&5
4808 eval "ac_cv_lib_$ac_lib_var=no"
4811 LIBS
="$ac_save_LIBS"
4814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4817 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4818 cat >> confdefs.h
<<EOF
4819 #define $ac_tr_lib 1
4825 echo "$ac_t""no" 1>&6
4831 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4832 echo "configure:4833: checking for connect in -lsocket" >&5
4833 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4837 ac_save_LIBS
="$LIBS"
4838 LIBS
="-lsocket $LIBS"
4839 cat > conftest.
$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4851 if { (eval echo configure
:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4853 eval "ac_cv_lib_$ac_lib_var=yes"
4855 echo "configure: failed program was:" >&5
4856 cat conftest.
$ac_ext >&5
4858 eval "ac_cv_lib_$ac_lib_var=no"
4861 LIBS
="$ac_save_LIBS"
4864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4866 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4867 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4868 cat >> confdefs.h
<<EOF
4869 #define $ac_tr_lib 1
4872 LIBS
="-lsocket $LIBS"
4875 echo "$ac_t""no" 1>&6
4881 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4882 echo "configure:4883: checking for connect in -linet" >&5
4883 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4887 ac_save_LIBS
="$LIBS"
4889 cat > conftest.
$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4901 if { (eval echo configure
:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4903 eval "ac_cv_lib_$ac_lib_var=yes"
4905 echo "configure: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4908 eval "ac_cv_lib_$ac_lib_var=no"
4911 LIBS
="$ac_save_LIBS"
4914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4918 cat >> confdefs.h
<<EOF
4919 #define $ac_tr_lib 1
4925 echo "$ac_t""no" 1>&6
4929 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4930 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4931 # ac_cv_func_connect=yes
4932 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4933 cat >> confdefs.h
<<\EOF
4934 #define HAVE_CONNECT 1
4940 ###############################################
4941 # test for where we get get_yp_default_domain() from
4942 for ac_func
in yp_get_default_domain
4944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_func" >&5
4946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 cat > conftest.
$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* System header to define __stub macros and hopefully few prototypes,
4953 which can conflict with char $ac_func(); below. */
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4962 /* The GNU C library defines this for functions which it implements
4963 to always fail with ENOSYS. Some functions are actually named
4964 something starting with __ and the normal name is an alias. */
4965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4973 if { (eval echo configure
:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4975 eval "ac_cv_func_$ac_func=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.
$ac_ext >&5
4980 eval "ac_cv_func_$ac_func=no"
4985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4987 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4988 cat >> confdefs.h
<<EOF
4989 #define $ac_tr_func 1
4993 echo "$ac_t""no" 1>&6
4997 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4998 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4999 echo "configure:5000: checking for yp_get_default_domain in -lnsl" >&5
5000 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 ac_save_LIBS
="$LIBS"
5006 cat > conftest.
$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 /* We use char because int might match the return type of a gcc2
5011 builtin and then its argument prototype would still apply. */
5012 char yp_get_default_domain();
5015 yp_get_default_domain()
5018 if { (eval echo configure
:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5020 eval "ac_cv_lib_$ac_lib_var=yes"
5022 echo "configure: failed program was:" >&5
5023 cat conftest.
$ac_ext >&5
5025 eval "ac_cv_lib_$ac_lib_var=no"
5028 LIBS
="$ac_save_LIBS"
5031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5032 echo "$ac_t""yes" 1>&6
5034 cat >> confdefs.h
<<\EOF
5035 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5039 echo "$ac_t""no" 1>&6
5044 # Check if we have execl, if not we need to compile smbrun.
5045 for ac_func
in execl
5047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5048 echo "configure:5049: checking for $ac_func" >&5
5049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5052 cat > conftest.
$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 /* System header to define __stub macros and hopefully few prototypes,
5056 which can conflict with char $ac_func(); below. */
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5065 /* The GNU C library defines this for functions which it implements
5066 to always fail with ENOSYS. Some functions are actually named
5067 something starting with __ and the normal name is an alias. */
5068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5076 if { (eval echo configure
:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5078 eval "ac_cv_func_$ac_func=yes"
5080 echo "configure: failed program was:" >&5
5081 cat conftest.
$ac_ext >&5
5083 eval "ac_cv_func_$ac_func=no"
5088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5089 echo "$ac_t""yes" 1>&6
5090 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5091 cat >> confdefs.h
<<EOF
5092 #define $ac_tr_func 1
5096 echo "$ac_t""no" 1>&6
5100 if test x
"$ac_cv_func_execl" = x
"no"; then
5101 RUNPROG
="bin/smbrun"
5106 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot link
5108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5109 echo "configure:5110: checking for $ac_func" >&5
5110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5113 cat > conftest.
$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5116 /* System header to define __stub macros and hopefully few prototypes,
5117 which can conflict with char $ac_func(); below. */
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 /* We use char because int might match the return type of a gcc2
5121 builtin and then its argument prototype would still apply. */
5126 /* The GNU C library defines this for functions which it implements
5127 to always fail with ENOSYS. Some functions are actually named
5128 something starting with __ and the normal name is an alias. */
5129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5137 if { (eval echo configure
:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5139 eval "ac_cv_func_$ac_func=yes"
5141 echo "configure: failed program was:" >&5
5142 cat conftest.
$ac_ext >&5
5144 eval "ac_cv_func_$ac_func=no"
5149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5150 echo "$ac_t""yes" 1>&6
5151 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5152 cat >> confdefs.h
<<EOF
5153 #define $ac_tr_func 1
5157 echo "$ac_t""no" 1>&6
5161 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset setpgid mknod mknod64
5163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5164 echo "configure:5165: checking for $ac_func" >&5
5165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 cat > conftest.
$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 /* System header to define __stub macros and hopefully few prototypes,
5172 which can conflict with char $ac_func(); below. */
5174 /* Override any gcc2 internal prototype to avoid an error. */
5175 /* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5181 /* The GNU C library defines this for functions which it implements
5182 to always fail with ENOSYS. Some functions are actually named
5183 something starting with __ and the normal name is an alias. */
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5192 if { (eval echo configure
:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5194 eval "ac_cv_func_$ac_func=yes"
5196 echo "configure: failed program was:" >&5
5197 cat conftest.
$ac_ext >&5
5199 eval "ac_cv_func_$ac_func=no"
5204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5205 echo "$ac_t""yes" 1>&6
5206 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5207 cat >> confdefs.h
<<EOF
5208 #define $ac_tr_func 1
5212 echo "$ac_t""no" 1>&6
5216 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5219 echo "configure:5220: checking for $ac_func" >&5
5220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 cat > conftest.
$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226 /* System header to define __stub macros and hopefully few prototypes,
5227 which can conflict with char $ac_func(); below. */
5229 /* Override any gcc2 internal prototype to avoid an error. */
5230 /* We use char because int might match the return type of a gcc2
5231 builtin and then its argument prototype would still apply. */
5236 /* The GNU C library defines this for functions which it implements
5237 to always fail with ENOSYS. Some functions are actually named
5238 something starting with __ and the normal name is an alias. */
5239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5247 if { (eval echo configure
:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5249 eval "ac_cv_func_$ac_func=yes"
5251 echo "configure: failed program was:" >&5
5252 cat conftest.
$ac_ext >&5
5254 eval "ac_cv_func_$ac_func=no"
5259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5260 echo "$ac_t""yes" 1>&6
5261 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5262 cat >> confdefs.h
<<EOF
5263 #define $ac_tr_func 1
5267 echo "$ac_t""no" 1>&6
5271 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_func" >&5
5275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 cat > conftest.
$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* System header to define __stub macros and hopefully few prototypes,
5282 which can conflict with char $ac_func(); below. */
5284 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5291 /* The GNU C library defines this for functions which it implements
5292 to always fail with ENOSYS. Some functions are actually named
5293 something starting with __ and the normal name is an alias. */
5294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5302 if { (eval echo configure
:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5304 eval "ac_cv_func_$ac_func=yes"
5306 echo "configure: failed program was:" >&5
5307 cat conftest.
$ac_ext >&5
5309 eval "ac_cv_func_$ac_func=no"
5314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5317 cat >> confdefs.h
<<EOF
5318 #define $ac_tr_func 1
5322 echo "$ac_t""no" 1>&6
5326 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_func" >&5
5330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5333 cat > conftest.
$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5336 /* System header to define __stub macros and hopefully few prototypes,
5337 which can conflict with char $ac_func(); below. */
5339 /* Override any gcc2 internal prototype to avoid an error. */
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5346 /* The GNU C library defines this for functions which it implements
5347 to always fail with ENOSYS. Some functions are actually named
5348 something starting with __ and the normal name is an alias. */
5349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5357 if { (eval echo configure
:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5359 eval "ac_cv_func_$ac_func=yes"
5361 echo "configure: failed program was:" >&5
5362 cat conftest.
$ac_ext >&5
5364 eval "ac_cv_func_$ac_func=no"
5369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5372 cat >> confdefs.h
<<EOF
5373 #define $ac_tr_func 1
5377 echo "$ac_t""no" 1>&6
5381 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5384 echo "configure:5385: checking for $ac_func" >&5
5385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 cat > conftest.
$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 /* System header to define __stub macros and hopefully few prototypes,
5392 which can conflict with char $ac_func(); below. */
5394 /* Override any gcc2 internal prototype to avoid an error. */
5395 /* We use char because int might match the return type of a gcc2
5396 builtin and then its argument prototype would still apply. */
5401 /* The GNU C library defines this for functions which it implements
5402 to always fail with ENOSYS. Some functions are actually named
5403 something starting with __ and the normal name is an alias. */
5404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5412 if { (eval echo configure
:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5414 eval "ac_cv_func_$ac_func=yes"
5416 echo "configure: failed program was:" >&5
5417 cat conftest.
$ac_ext >&5
5419 eval "ac_cv_func_$ac_func=no"
5424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5425 echo "$ac_t""yes" 1>&6
5426 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5427 cat >> confdefs.h
<<EOF
5428 #define $ac_tr_func 1
5432 echo "$ac_t""no" 1>&6
5436 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5439 echo "configure:5440: checking for $ac_func" >&5
5440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 cat > conftest.
$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 /* System header to define __stub macros and hopefully few prototypes,
5447 which can conflict with char $ac_func(); below. */
5449 /* Override any gcc2 internal prototype to avoid an error. */
5450 /* We use char because int might match the return type of a gcc2
5451 builtin and then its argument prototype would still apply. */
5456 /* The GNU C library defines this for functions which it implements
5457 to always fail with ENOSYS. Some functions are actually named
5458 something starting with __ and the normal name is an alias. */
5459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5467 if { (eval echo configure
:5468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5469 eval "ac_cv_func_$ac_func=yes"
5471 echo "configure: failed program was:" >&5
5472 cat conftest.
$ac_ext >&5
5474 eval "ac_cv_func_$ac_func=no"
5479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5480 echo "$ac_t""yes" 1>&6
5481 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5482 cat >> confdefs.h
<<EOF
5483 #define $ac_tr_func 1
5487 echo "$ac_t""no" 1>&6
5491 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5494 echo "configure:5495: checking for $ac_func" >&5
5495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 cat > conftest.
$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501 /* System header to define __stub macros and hopefully few prototypes,
5502 which can conflict with char $ac_func(); below. */
5504 /* Override any gcc2 internal prototype to avoid an error. */
5505 /* We use char because int might match the return type of a gcc2
5506 builtin and then its argument prototype would still apply. */
5511 /* The GNU C library defines this for functions which it implements
5512 to always fail with ENOSYS. Some functions are actually named
5513 something starting with __ and the normal name is an alias. */
5514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5522 if { (eval echo configure
:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5524 eval "ac_cv_func_$ac_func=yes"
5526 echo "configure: failed program was:" >&5
5527 cat conftest.
$ac_ext >&5
5529 eval "ac_cv_func_$ac_func=no"
5534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5535 echo "$ac_t""yes" 1>&6
5536 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5537 cat >> confdefs.h
<<EOF
5538 #define $ac_tr_func 1
5542 echo "$ac_t""no" 1>&6
5546 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_func" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 cat > conftest.
$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557 which can conflict with char $ac_func(); below. */
5559 /* Override any gcc2 internal prototype to avoid an error. */
5560 /* We use char because int might match the return type of a gcc2
5561 builtin and then its argument prototype would still apply. */
5566 /* The GNU C library defines this for functions which it implements
5567 to always fail with ENOSYS. Some functions are actually named
5568 something starting with __ and the normal name is an alias. */
5569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5577 if { (eval echo configure
:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5579 eval "ac_cv_func_$ac_func=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.
$ac_ext >&5
5584 eval "ac_cv_func_$ac_func=no"
5589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5591 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5592 cat >> confdefs.h
<<EOF
5593 #define $ac_tr_func 1
5597 echo "$ac_t""no" 1>&6
5601 for ac_func
in syslog vsyslog
5603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5604 echo "configure:5605: checking for $ac_func" >&5
5605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.
$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 /* System header to define __stub macros and hopefully few prototypes,
5612 which can conflict with char $ac_func(); below. */
5614 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5621 /* The GNU C library defines this for functions which it implements
5622 to always fail with ENOSYS. Some functions are actually named
5623 something starting with __ and the normal name is an alias. */
5624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5632 if { (eval echo configure
:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5634 eval "ac_cv_func_$ac_func=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5639 eval "ac_cv_func_$ac_func=no"
5644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5647 cat >> confdefs.h
<<EOF
5648 #define $ac_tr_func 1
5652 echo "$ac_t""no" 1>&6
5657 # syscall() is needed for smbwrapper.
5658 for ac_func
in syscall
5660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_func" >&5
5662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.
$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* System header to define __stub macros and hopefully few prototypes,
5669 which can conflict with char $ac_func(); below. */
5671 /* Override any gcc2 internal prototype to avoid an error. */
5672 /* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5678 /* The GNU C library defines this for functions which it implements
5679 to always fail with ENOSYS. Some functions are actually named
5680 something starting with __ and the normal name is an alias. */
5681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689 if { (eval echo configure
:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5691 eval "ac_cv_func_$ac_func=yes"
5693 echo "configure: failed program was:" >&5
5694 cat conftest.
$ac_ext >&5
5696 eval "ac_cv_func_$ac_func=no"
5701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5702 echo "$ac_t""yes" 1>&6
5703 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5704 cat >> confdefs.h
<<EOF
5705 #define $ac_tr_func 1
5709 echo "$ac_t""no" 1>&6
5714 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5717 echo "configure:5718: checking for $ac_func" >&5
5718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5721 cat > conftest.
$ac_ext <<EOF
5722 #line 5723 "configure"
5723 #include "confdefs.h"
5724 /* System header to define __stub macros and hopefully few prototypes,
5725 which can conflict with char $ac_func(); below. */
5727 /* Override any gcc2 internal prototype to avoid an error. */
5728 /* We use char because int might match the return type of a gcc2
5729 builtin and then its argument prototype would still apply. */
5734 /* The GNU C library defines this for functions which it implements
5735 to always fail with ENOSYS. Some functions are actually named
5736 something starting with __ and the normal name is an alias. */
5737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5745 if { (eval echo configure
:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5747 eval "ac_cv_func_$ac_func=yes"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.
$ac_ext >&5
5752 eval "ac_cv_func_$ac_func=no"
5757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5758 echo "$ac_t""yes" 1>&6
5759 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5760 cat >> confdefs.h
<<EOF
5761 #define $ac_tr_func 1
5765 echo "$ac_t""no" 1>&6
5769 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5772 echo "configure:5773: checking for $ac_func" >&5
5773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5776 cat > conftest.
$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 /* System header to define __stub macros and hopefully few prototypes,
5780 which can conflict with char $ac_func(); below. */
5782 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5789 /* The GNU C library defines this for functions which it implements
5790 to always fail with ENOSYS. Some functions are actually named
5791 something starting with __ and the normal name is an alias. */
5792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5800 if { (eval echo configure
:5801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5802 eval "ac_cv_func_$ac_func=yes"
5804 echo "configure: failed program was:" >&5
5805 cat conftest.
$ac_ext >&5
5807 eval "ac_cv_func_$ac_func=no"
5812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5815 cat >> confdefs.h
<<EOF
5816 #define $ac_tr_func 1
5820 echo "$ac_t""no" 1>&6
5824 for ac_func
in __getcwd _getcwd
5826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5827 echo "configure:5828: checking for $ac_func" >&5
5828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5831 cat > conftest.
$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 /* System header to define __stub macros and hopefully few prototypes,
5835 which can conflict with char $ac_func(); below. */
5837 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */
5844 /* The GNU C library defines this for functions which it implements
5845 to always fail with ENOSYS. Some functions are actually named
5846 something starting with __ and the normal name is an alias. */
5847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5855 if { (eval echo configure
:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5857 eval "ac_cv_func_$ac_func=yes"
5859 echo "configure: failed program was:" >&5
5860 cat conftest.
$ac_ext >&5
5862 eval "ac_cv_func_$ac_func=no"
5867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5868 echo "$ac_t""yes" 1>&6
5869 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5870 cat >> confdefs.h
<<EOF
5871 #define $ac_tr_func 1
5875 echo "$ac_t""no" 1>&6
5879 for ac_func
in __xstat __fxstat __lxstat
5881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_func" >&5
5883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.
$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* System header to define __stub macros and hopefully few prototypes,
5890 which can conflict with char $ac_func(); below. */
5892 /* Override any gcc2 internal prototype to avoid an error. */
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5899 /* The GNU C library defines this for functions which it implements
5900 to always fail with ENOSYS. Some functions are actually named
5901 something starting with __ and the normal name is an alias. */
5902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5910 if { (eval echo configure
:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5912 eval "ac_cv_func_$ac_func=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.
$ac_ext >&5
5917 eval "ac_cv_func_$ac_func=no"
5922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5923 echo "$ac_t""yes" 1>&6
5924 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5925 cat >> confdefs.h
<<EOF
5926 #define $ac_tr_func 1
5930 echo "$ac_t""no" 1>&6
5934 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5937 echo "configure:5938: checking for $ac_func" >&5
5938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5941 cat > conftest.
$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 /* System header to define __stub macros and hopefully few prototypes,
5945 which can conflict with char $ac_func(); below. */
5947 /* Override any gcc2 internal prototype to avoid an error. */
5948 /* We use char because int might match the return type of a gcc2
5949 builtin and then its argument prototype would still apply. */
5954 /* The GNU C library defines this for functions which it implements
5955 to always fail with ENOSYS. Some functions are actually named
5956 something starting with __ and the normal name is an alias. */
5957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5965 if { (eval echo configure
:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5967 eval "ac_cv_func_$ac_func=yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.
$ac_ext >&5
5972 eval "ac_cv_func_$ac_func=no"
5977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5978 echo "$ac_t""yes" 1>&6
5979 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5980 cat >> confdefs.h
<<EOF
5981 #define $ac_tr_func 1
5985 echo "$ac_t""no" 1>&6
5989 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5992 echo "configure:5993: checking for $ac_func" >&5
5993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5994 echo $ac_n "(cached) $ac_c" 1>&6
5996 cat > conftest.
$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 /* System header to define __stub macros and hopefully few prototypes,
6000 which can conflict with char $ac_func(); below. */
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6009 /* The GNU C library defines this for functions which it implements
6010 to always fail with ENOSYS. Some functions are actually named
6011 something starting with __ and the normal name is an alias. */
6012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6020 if { (eval echo configure
:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6022 eval "ac_cv_func_$ac_func=yes"
6024 echo "configure: failed program was:" >&5
6025 cat conftest.
$ac_ext >&5
6027 eval "ac_cv_func_$ac_func=no"
6032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6033 echo "$ac_t""yes" 1>&6
6034 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6035 cat >> confdefs.h
<<EOF
6036 #define $ac_tr_func 1
6040 echo "$ac_t""no" 1>&6
6044 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6047 echo "configure:6048: checking for $ac_func" >&5
6048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6051 cat > conftest.
$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 /* System header to define __stub macros and hopefully few prototypes,
6055 which can conflict with char $ac_func(); below. */
6057 /* Override any gcc2 internal prototype to avoid an error. */
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6064 /* The GNU C library defines this for functions which it implements
6065 to always fail with ENOSYS. Some functions are actually named
6066 something starting with __ and the normal name is an alias. */
6067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6075 if { (eval echo configure
:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6077 eval "ac_cv_func_$ac_func=yes"
6079 echo "configure: failed program was:" >&5
6080 cat conftest.
$ac_ext >&5
6082 eval "ac_cv_func_$ac_func=no"
6087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6088 echo "$ac_t""yes" 1>&6
6089 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6090 cat >> confdefs.h
<<EOF
6091 #define $ac_tr_func 1
6095 echo "$ac_t""no" 1>&6
6099 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6102 echo "configure:6103: checking for $ac_func" >&5
6103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6106 cat > conftest.
$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 /* System header to define __stub macros and hopefully few prototypes,
6110 which can conflict with char $ac_func(); below. */
6112 /* Override any gcc2 internal prototype to avoid an error. */
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6119 /* The GNU C library defines this for functions which it implements
6120 to always fail with ENOSYS. Some functions are actually named
6121 something starting with __ and the normal name is an alias. */
6122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6130 if { (eval echo configure
:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6132 eval "ac_cv_func_$ac_func=yes"
6134 echo "configure: failed program was:" >&5
6135 cat conftest.
$ac_ext >&5
6137 eval "ac_cv_func_$ac_func=no"
6142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6143 echo "$ac_t""yes" 1>&6
6144 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6145 cat >> confdefs.h
<<EOF
6146 #define $ac_tr_func 1
6150 echo "$ac_t""no" 1>&6
6154 for ac_func
in _write __write _fork __fork
6156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6157 echo "configure:6158: checking for $ac_func" >&5
6158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6161 cat > conftest.
$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6164 /* System header to define __stub macros and hopefully few prototypes,
6165 which can conflict with char $ac_func(); below. */
6167 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6174 /* The GNU C library defines this for functions which it implements
6175 to always fail with ENOSYS. Some functions are actually named
6176 something starting with __ and the normal name is an alias. */
6177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6185 if { (eval echo configure
:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6187 eval "ac_cv_func_$ac_func=yes"
6189 echo "configure: failed program was:" >&5
6190 cat conftest.
$ac_ext >&5
6192 eval "ac_cv_func_$ac_func=no"
6197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6199 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6200 cat >> confdefs.h
<<EOF
6201 #define $ac_tr_func 1
6205 echo "$ac_t""no" 1>&6
6209 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6212 echo "configure:6213: checking for $ac_func" >&5
6213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 cat > conftest.
$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* System header to define __stub macros and hopefully few prototypes,
6220 which can conflict with char $ac_func(); below. */
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6240 if { (eval echo configure
:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6242 eval "ac_cv_func_$ac_func=yes"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.
$ac_ext >&5
6247 eval "ac_cv_func_$ac_func=no"
6252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6254 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6255 cat >> confdefs.h
<<EOF
6256 #define $ac_tr_func 1
6260 echo "$ac_t""no" 1>&6
6264 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6267 echo "configure:6268: checking for $ac_func" >&5
6268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6271 cat > conftest.
$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char $ac_func(); below. */
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6295 if { (eval echo configure
:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6297 eval "ac_cv_func_$ac_func=yes"
6299 echo "configure: failed program was:" >&5
6300 cat conftest.
$ac_ext >&5
6302 eval "ac_cv_func_$ac_func=no"
6307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6309 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6310 cat >> confdefs.h
<<EOF
6311 #define $ac_tr_func 1
6315 echo "$ac_t""no" 1>&6
6319 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6322 echo "configure:6323: checking for $ac_func" >&5
6323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6326 cat > conftest.
$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6329 /* System header to define __stub macros and hopefully few prototypes,
6330 which can conflict with char $ac_func(); below. */
6332 /* Override any gcc2 internal prototype to avoid an error. */
6333 /* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6339 /* The GNU C library defines this for functions which it implements
6340 to always fail with ENOSYS. Some functions are actually named
6341 something starting with __ and the normal name is an alias. */
6342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6350 if { (eval echo configure
:6351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6352 eval "ac_cv_func_$ac_func=yes"
6354 echo "configure: failed program was:" >&5
6355 cat conftest.
$ac_ext >&5
6357 eval "ac_cv_func_$ac_func=no"
6362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6363 echo "$ac_t""yes" 1>&6
6364 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6365 cat >> confdefs.h
<<EOF
6366 #define $ac_tr_func 1
6370 echo "$ac_t""no" 1>&6
6374 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6377 echo "configure:6378: checking for $ac_func" >&5
6378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6381 cat > conftest.
$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func(); below. */
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6394 /* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
6397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6405 if { (eval echo configure
:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6407 eval "ac_cv_func_$ac_func=yes"
6409 echo "configure: failed program was:" >&5
6410 cat conftest.
$ac_ext >&5
6412 eval "ac_cv_func_$ac_func=no"
6417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6418 echo "$ac_t""yes" 1>&6
6419 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6420 cat >> confdefs.h
<<EOF
6421 #define $ac_tr_func 1
6425 echo "$ac_t""no" 1>&6
6429 for ac_func
in open64 _open64 __open64 creat64
6431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6432 echo "configure:6433: checking for $ac_func" >&5
6433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6436 cat > conftest.
$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 /* System header to define __stub macros and hopefully few prototypes,
6440 which can conflict with char $ac_func(); below. */
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6449 /* The GNU C library defines this for functions which it implements
6450 to always fail with ENOSYS. Some functions are actually named
6451 something starting with __ and the normal name is an alias. */
6452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6460 if { (eval echo configure
:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6462 eval "ac_cv_func_$ac_func=yes"
6464 echo "configure: failed program was:" >&5
6465 cat conftest.
$ac_ext >&5
6467 eval "ac_cv_func_$ac_func=no"
6472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6473 echo "$ac_t""yes" 1>&6
6474 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6475 cat >> confdefs.h
<<EOF
6476 #define $ac_tr_func 1
6480 echo "$ac_t""no" 1>&6
6486 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6489 if test x
$ac_cv_func_stat64 = xno
; then
6490 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6491 echo "configure:6492: checking for stat64 in <sys/stat.h>" >&5
6492 cat > conftest.
$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6496 #if defined(HAVE_UNISTD_H)
6499 #include <sys/stat.h>
6502 struct stat64 st64; exit(stat64(".",&st64));
6505 if { (eval echo configure
:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6507 ac_cv_func_stat64
=yes
6509 echo "configure: failed program was:" >&5
6510 cat conftest.
$ac_ext >&5
6513 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6514 if test x
$ac_cv_func_stat64 = xyes
; then
6515 cat >> confdefs.h
<<\EOF
6516 #define HAVE_STAT64 1
6522 if test x
$ac_cv_func_lstat64 = xno
; then
6523 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6524 echo "configure:6525: checking for lstat64 in <sys/stat.h>" >&5
6525 cat > conftest.
$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6529 #if defined(HAVE_UNISTD_H)
6532 #include <sys/stat.h>
6535 struct stat64 st64; exit(lstat64(".",&st64));
6538 if { (eval echo configure
:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6540 ac_cv_func_lstat64
=yes
6542 echo "configure: failed program was:" >&5
6543 cat conftest.
$ac_ext >&5
6546 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6547 if test x
$ac_cv_func_lstat64 = xyes
; then
6548 cat >> confdefs.h
<<\EOF
6549 #define HAVE_LSTAT64 1
6555 if test x
$ac_cv_func_fstat64 = xno
; then
6556 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6557 echo "configure:6558: checking for fstat64 in <sys/stat.h>" >&5
6558 cat > conftest.
$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6562 #if defined(HAVE_UNISTD_H)
6565 #include <sys/stat.h>
6568 struct stat64 st64; exit(fstat64(0,&st64));
6571 if { (eval echo configure
:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6573 ac_cv_func_fstat64
=yes
6575 echo "configure: failed program was:" >&5
6576 cat conftest.
$ac_ext >&5
6579 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6580 if test x
$ac_cv_func_fstat64 = xyes
; then
6581 cat >> confdefs.h
<<\EOF
6582 #define HAVE_FSTAT64 1
6589 # If no strcasecmp, check for it in some known places
6590 # It is in -lresolv on ReliantUNIX and UnixWare
6591 # -lresolve *must* follow -lnsl for name resolution to work properly
6594 if test x
$ac_cv_func_strcasecmp = xno
; then
6595 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6596 echo "configure:6597: checking for strcasecmp in -lresolv" >&5
6597 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6601 ac_save_LIBS
="$LIBS"
6602 LIBS
="-lresolv $LIBS"
6603 cat > conftest.
$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6615 if { (eval echo configure
:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6617 eval "ac_cv_lib_$ac_lib_var=yes"
6619 echo "configure: failed program was:" >&5
6620 cat conftest.
$ac_ext >&5
6622 eval "ac_cv_lib_$ac_lib_var=no"
6625 LIBS
="$ac_save_LIBS"
6628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 LIBS
="$LIBS -lresolv"
6631 cat >> confdefs.h
<<\EOF
6632 #define HAVE_STRCASECMP 1
6636 echo "$ac_t""no" 1>&6
6642 # Check for the functions putprpwnam, set_auth_parameters,
6643 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6644 # Needed for OSF1 and HPUX.
6648 *-lsecurity*) for ac_func
in putprpwnam
6650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6651 echo "configure:6652: checking for $ac_func" >&5
6652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 cat > conftest.
$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* System header to define __stub macros and hopefully few prototypes,
6659 which can conflict with char $ac_func(); below. */
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6668 /* The GNU C library defines this for functions which it implements
6669 to always fail with ENOSYS. Some functions are actually named
6670 something starting with __ and the normal name is an alias. */
6671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6679 if { (eval echo configure
:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6681 eval "ac_cv_func_$ac_func=yes"
6683 echo "configure: failed program was:" >&5
6684 cat conftest.
$ac_ext >&5
6686 eval "ac_cv_func_$ac_func=no"
6691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6692 echo "$ac_t""yes" 1>&6
6693 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6694 cat >> confdefs.h
<<EOF
6695 #define $ac_tr_func 1
6699 echo "$ac_t""no" 1>&6
6703 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6704 echo "configure:6705: checking for putprpwnam in -lsecurity" >&5
6705 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6709 ac_save_LIBS
="$LIBS"
6710 LIBS
="-lsecurity $LIBS"
6711 cat > conftest.
$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6714 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6723 if { (eval echo configure
:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6725 eval "ac_cv_lib_$ac_lib_var=yes"
6727 echo "configure: failed program was:" >&5
6728 cat conftest.
$ac_ext >&5
6730 eval "ac_cv_lib_$ac_lib_var=no"
6733 LIBS
="$ac_save_LIBS"
6736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6738 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6739 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6740 cat >> confdefs.h
<<EOF
6741 #define $ac_tr_lib 1
6744 LIBS
="-lsecurity $LIBS"
6747 echo "$ac_t""no" 1>&6
6750 for ac_func
in putprpwnam
6752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6753 echo "configure:6754: checking for $ac_func" >&5
6754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6757 cat > conftest.
$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 /* System header to define __stub macros and hopefully few prototypes,
6761 which can conflict with char $ac_func(); below. */
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6770 /* The GNU C library defines this for functions which it implements
6771 to always fail with ENOSYS. Some functions are actually named
6772 something starting with __ and the normal name is an alias. */
6773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6781 if { (eval echo configure
:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6783 eval "ac_cv_func_$ac_func=yes"
6785 echo "configure: failed program was:" >&5
6786 cat conftest.
$ac_ext >&5
6788 eval "ac_cv_func_$ac_func=no"
6793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6796 cat >> confdefs.h
<<EOF
6797 #define $ac_tr_func 1
6801 echo "$ac_t""no" 1>&6
6809 *-lsec*) for ac_func
in putprpwnam
6811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6812 echo "configure:6813: checking for $ac_func" >&5
6813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6816 cat > conftest.
$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 /* System header to define __stub macros and hopefully few prototypes,
6820 which can conflict with char $ac_func(); below. */
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6829 /* The GNU C library defines this for functions which it implements
6830 to always fail with ENOSYS. Some functions are actually named
6831 something starting with __ and the normal name is an alias. */
6832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6840 if { (eval echo configure
:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6842 eval "ac_cv_func_$ac_func=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.
$ac_ext >&5
6847 eval "ac_cv_func_$ac_func=no"
6852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6853 echo "$ac_t""yes" 1>&6
6854 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6855 cat >> confdefs.h
<<EOF
6856 #define $ac_tr_func 1
6860 echo "$ac_t""no" 1>&6
6864 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6865 echo "configure:6866: checking for putprpwnam in -lsec" >&5
6866 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6870 ac_save_LIBS
="$LIBS"
6872 cat > conftest.
$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6884 if { (eval echo configure
:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6886 eval "ac_cv_lib_$ac_lib_var=yes"
6888 echo "configure: failed program was:" >&5
6889 cat conftest.
$ac_ext >&5
6891 eval "ac_cv_lib_$ac_lib_var=no"
6894 LIBS
="$ac_save_LIBS"
6897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6900 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6901 cat >> confdefs.h
<<EOF
6902 #define $ac_tr_lib 1
6908 echo "$ac_t""no" 1>&6
6911 for ac_func
in putprpwnam
6913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6914 echo "configure:6915: checking for $ac_func" >&5
6915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 cat > conftest.
$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char $ac_func(); below. */
6924 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6931 /* The GNU C library defines this for functions which it implements
6932 to always fail with ENOSYS. Some functions are actually named
6933 something starting with __ and the normal name is an alias. */
6934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6942 if { (eval echo configure
:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6944 eval "ac_cv_func_$ac_func=yes"
6946 echo "configure: failed program was:" >&5
6947 cat conftest.
$ac_ext >&5
6949 eval "ac_cv_func_$ac_func=no"
6954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6956 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6957 cat >> confdefs.h
<<EOF
6958 #define $ac_tr_func 1
6962 echo "$ac_t""no" 1>&6
6971 *-lsecurity*) for ac_func
in set_auth_parameters
6973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6974 echo "configure:6975: checking for $ac_func" >&5
6975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6978 cat > conftest.
$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6981 /* System header to define __stub macros and hopefully few prototypes,
6982 which can conflict with char $ac_func(); below. */
6984 /* Override any gcc2 internal prototype to avoid an error. */
6985 /* We use char because int might match the return type of a gcc2
6986 builtin and then its argument prototype would still apply. */
6991 /* The GNU C library defines this for functions which it implements
6992 to always fail with ENOSYS. Some functions are actually named
6993 something starting with __ and the normal name is an alias. */
6994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7002 if { (eval echo configure
:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7004 eval "ac_cv_func_$ac_func=yes"
7006 echo "configure: failed program was:" >&5
7007 cat conftest.
$ac_ext >&5
7009 eval "ac_cv_func_$ac_func=no"
7014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7015 echo "$ac_t""yes" 1>&6
7016 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7017 cat >> confdefs.h
<<EOF
7018 #define $ac_tr_func 1
7022 echo "$ac_t""no" 1>&6
7026 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7027 echo "configure:7028: checking for set_auth_parameters in -lsecurity" >&5
7028 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7032 ac_save_LIBS
="$LIBS"
7033 LIBS
="-lsecurity $LIBS"
7034 cat > conftest.
$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7037 /* Override any gcc2 internal prototype to avoid an error. */
7038 /* We use char because int might match the return type of a gcc2
7039 builtin and then its argument prototype would still apply. */
7040 char set_auth_parameters();
7043 set_auth_parameters()
7046 if { (eval echo configure
:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7048 eval "ac_cv_lib_$ac_lib_var=yes"
7050 echo "configure: failed program was:" >&5
7051 cat conftest.
$ac_ext >&5
7053 eval "ac_cv_lib_$ac_lib_var=no"
7056 LIBS
="$ac_save_LIBS"
7059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7060 echo "$ac_t""yes" 1>&6
7061 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7063 cat >> confdefs.h
<<EOF
7064 #define $ac_tr_lib 1
7067 LIBS
="-lsecurity $LIBS"
7070 echo "$ac_t""no" 1>&6
7073 for ac_func
in set_auth_parameters
7075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7076 echo "configure:7077: checking for $ac_func" >&5
7077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7080 cat > conftest.
$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 /* System header to define __stub macros and hopefully few prototypes,
7084 which can conflict with char $ac_func(); below. */
7086 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7093 /* The GNU C library defines this for functions which it implements
7094 to always fail with ENOSYS. Some functions are actually named
7095 something starting with __ and the normal name is an alias. */
7096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7104 if { (eval echo configure
:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7106 eval "ac_cv_func_$ac_func=yes"
7108 echo "configure: failed program was:" >&5
7109 cat conftest.
$ac_ext >&5
7111 eval "ac_cv_func_$ac_func=no"
7116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7117 echo "$ac_t""yes" 1>&6
7118 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7119 cat >> confdefs.h
<<EOF
7120 #define $ac_tr_func 1
7124 echo "$ac_t""no" 1>&6
7132 *-lsec*) for ac_func
in set_auth_parameters
7134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_func" >&5
7136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.
$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 /* System header to define __stub macros and hopefully few prototypes,
7143 which can conflict with char $ac_func(); below. */
7145 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7163 if { (eval echo configure
:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7165 eval "ac_cv_func_$ac_func=yes"
7167 echo "configure: failed program was:" >&5
7168 cat conftest.
$ac_ext >&5
7170 eval "ac_cv_func_$ac_func=no"
7175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7178 cat >> confdefs.h
<<EOF
7179 #define $ac_tr_func 1
7183 echo "$ac_t""no" 1>&6
7187 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7188 echo "configure:7189: checking for set_auth_parameters in -lsec" >&5
7189 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7193 ac_save_LIBS
="$LIBS"
7195 cat > conftest.
$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 /* Override any gcc2 internal prototype to avoid an error. */
7199 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201 char set_auth_parameters();
7204 set_auth_parameters()
7207 if { (eval echo configure
:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7209 eval "ac_cv_lib_$ac_lib_var=yes"
7211 echo "configure: failed program was:" >&5
7212 cat conftest.
$ac_ext >&5
7214 eval "ac_cv_lib_$ac_lib_var=no"
7217 LIBS
="$ac_save_LIBS"
7220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7221 echo "$ac_t""yes" 1>&6
7222 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7223 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7224 cat >> confdefs.h
<<EOF
7225 #define $ac_tr_lib 1
7231 echo "$ac_t""no" 1>&6
7234 for ac_func
in set_auth_parameters
7236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7237 echo "configure:7238: checking for $ac_func" >&5
7238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7241 cat > conftest.
$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 /* System header to define __stub macros and hopefully few prototypes,
7245 which can conflict with char $ac_func(); below. */
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7265 if { (eval echo configure
:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7267 eval "ac_cv_func_$ac_func=yes"
7269 echo "configure: failed program was:" >&5
7270 cat conftest.
$ac_ext >&5
7272 eval "ac_cv_func_$ac_func=no"
7277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7278 echo "$ac_t""yes" 1>&6
7279 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7280 cat >> confdefs.h
<<EOF
7281 #define $ac_tr_func 1
7285 echo "$ac_t""no" 1>&6
7293 # UnixWare 7.x has its getspnam in -lgen
7295 *-lgen*) for ac_func
in getspnam
7297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7298 echo "configure:7299: checking for $ac_func" >&5
7299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7302 cat > conftest.
$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7305 /* System header to define __stub macros and hopefully few prototypes,
7306 which can conflict with char $ac_func(); below. */
7308 /* Override any gcc2 internal prototype to avoid an error. */
7309 /* We use char because int might match the return type of a gcc2
7310 builtin and then its argument prototype would still apply. */
7315 /* The GNU C library defines this for functions which it implements
7316 to always fail with ENOSYS. Some functions are actually named
7317 something starting with __ and the normal name is an alias. */
7318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7326 if { (eval echo configure
:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7328 eval "ac_cv_func_$ac_func=yes"
7330 echo "configure: failed program was:" >&5
7331 cat conftest.
$ac_ext >&5
7333 eval "ac_cv_func_$ac_func=no"
7338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7339 echo "$ac_t""yes" 1>&6
7340 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7341 cat >> confdefs.h
<<EOF
7342 #define $ac_tr_func 1
7346 echo "$ac_t""no" 1>&6
7350 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7351 echo "configure:7352: checking for getspnam in -lgen" >&5
7352 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7356 ac_save_LIBS
="$LIBS"
7358 cat > conftest.
$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7361 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7370 if { (eval echo configure
:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7372 eval "ac_cv_lib_$ac_lib_var=yes"
7374 echo "configure: failed program was:" >&5
7375 cat conftest.
$ac_ext >&5
7377 eval "ac_cv_lib_$ac_lib_var=no"
7380 LIBS
="$ac_save_LIBS"
7383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7384 echo "$ac_t""yes" 1>&6
7385 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7387 cat >> confdefs.h
<<EOF
7388 #define $ac_tr_lib 1
7394 echo "$ac_t""no" 1>&6
7397 for ac_func
in getspnam
7399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7400 echo "configure:7401: checking for $ac_func" >&5
7401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7404 cat > conftest.
$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char $ac_func(); below. */
7410 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7428 if { (eval echo configure
:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7430 eval "ac_cv_func_$ac_func=yes"
7432 echo "configure: failed program was:" >&5
7433 cat conftest.
$ac_ext >&5
7435 eval "ac_cv_func_$ac_func=no"
7440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7443 cat >> confdefs.h
<<EOF
7444 #define $ac_tr_func 1
7448 echo "$ac_t""no" 1>&6
7457 *-lsecurity*) for ac_func
in getspnam
7459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7460 echo "configure:7461: checking for $ac_func" >&5
7461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7462 echo $ac_n "(cached) $ac_c" 1>&6
7464 cat > conftest.
$ac_ext <<EOF
7465 #line 7466 "configure"
7466 #include "confdefs.h"
7467 /* System header to define __stub macros and hopefully few prototypes,
7468 which can conflict with char $ac_func(); below. */
7470 /* Override any gcc2 internal prototype to avoid an error. */
7471 /* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */
7477 /* The GNU C library defines this for functions which it implements
7478 to always fail with ENOSYS. Some functions are actually named
7479 something starting with __ and the normal name is an alias. */
7480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7488 if { (eval echo configure
:7489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7490 eval "ac_cv_func_$ac_func=yes"
7492 echo "configure: failed program was:" >&5
7493 cat conftest.
$ac_ext >&5
7495 eval "ac_cv_func_$ac_func=no"
7500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7501 echo "$ac_t""yes" 1>&6
7502 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7503 cat >> confdefs.h
<<EOF
7504 #define $ac_tr_func 1
7508 echo "$ac_t""no" 1>&6
7512 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7513 echo "configure:7514: checking for getspnam in -lsecurity" >&5
7514 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7518 ac_save_LIBS
="$LIBS"
7519 LIBS
="-lsecurity $LIBS"
7520 cat > conftest.
$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7532 if { (eval echo configure
:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7534 eval "ac_cv_lib_$ac_lib_var=yes"
7536 echo "configure: failed program was:" >&5
7537 cat conftest.
$ac_ext >&5
7539 eval "ac_cv_lib_$ac_lib_var=no"
7542 LIBS
="$ac_save_LIBS"
7545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7549 cat >> confdefs.h
<<EOF
7550 #define $ac_tr_lib 1
7553 LIBS
="-lsecurity $LIBS"
7556 echo "$ac_t""no" 1>&6
7559 for ac_func
in getspnam
7561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_func" >&5
7563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 cat > conftest.
$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char $ac_func(); below. */
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7579 /* The GNU C library defines this for functions which it implements
7580 to always fail with ENOSYS. Some functions are actually named
7581 something starting with __ and the normal name is an alias. */
7582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7590 if { (eval echo configure
:7591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7592 eval "ac_cv_func_$ac_func=yes"
7594 echo "configure: failed program was:" >&5
7595 cat conftest.
$ac_ext >&5
7597 eval "ac_cv_func_$ac_func=no"
7602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7603 echo "$ac_t""yes" 1>&6
7604 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7605 cat >> confdefs.h
<<EOF
7606 #define $ac_tr_func 1
7610 echo "$ac_t""no" 1>&6
7618 *-lsec*) for ac_func
in getspnam
7620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7621 echo "configure:7622: checking for $ac_func" >&5
7622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7623 echo $ac_n "(cached) $ac_c" 1>&6
7625 cat > conftest.
$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 /* System header to define __stub macros and hopefully few prototypes,
7629 which can conflict with char $ac_func(); below. */
7631 /* Override any gcc2 internal prototype to avoid an error. */
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7638 /* The GNU C library defines this for functions which it implements
7639 to always fail with ENOSYS. Some functions are actually named
7640 something starting with __ and the normal name is an alias. */
7641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7649 if { (eval echo configure
:7650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7651 eval "ac_cv_func_$ac_func=yes"
7653 echo "configure: failed program was:" >&5
7654 cat conftest.
$ac_ext >&5
7656 eval "ac_cv_func_$ac_func=no"
7661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7662 echo "$ac_t""yes" 1>&6
7663 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7664 cat >> confdefs.h
<<EOF
7665 #define $ac_tr_func 1
7669 echo "$ac_t""no" 1>&6
7673 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7674 echo "configure:7675: checking for getspnam in -lsec" >&5
7675 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 ac_save_LIBS
="$LIBS"
7681 cat > conftest.
$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7693 if { (eval echo configure
:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7695 eval "ac_cv_lib_$ac_lib_var=yes"
7697 echo "configure: failed program was:" >&5
7698 cat conftest.
$ac_ext >&5
7700 eval "ac_cv_lib_$ac_lib_var=no"
7703 LIBS
="$ac_save_LIBS"
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7707 echo "$ac_t""yes" 1>&6
7708 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7710 cat >> confdefs.h
<<EOF
7711 #define $ac_tr_lib 1
7717 echo "$ac_t""no" 1>&6
7720 for ac_func
in getspnam
7722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7723 echo "configure:7724: checking for $ac_func" >&5
7724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 cat > conftest.
$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* System header to define __stub macros and hopefully few prototypes,
7731 which can conflict with char $ac_func(); below. */
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 /* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7740 /* The GNU C library defines this for functions which it implements
7741 to always fail with ENOSYS. Some functions are actually named
7742 something starting with __ and the normal name is an alias. */
7743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7751 if { (eval echo configure
:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7753 eval "ac_cv_func_$ac_func=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.
$ac_ext >&5
7758 eval "ac_cv_func_$ac_func=no"
7763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7766 cat >> confdefs.h
<<EOF
7767 #define $ac_tr_func 1
7771 echo "$ac_t""no" 1>&6
7780 *-lsecurity*) for ac_func
in bigcrypt
7782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7783 echo "configure:7784: checking for $ac_func" >&5
7784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7787 cat > conftest.
$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7790 /* System header to define __stub macros and hopefully few prototypes,
7791 which can conflict with char $ac_func(); below. */
7793 /* Override any gcc2 internal prototype to avoid an error. */
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7800 /* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7811 if { (eval echo configure
:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7813 eval "ac_cv_func_$ac_func=yes"
7815 echo "configure: failed program was:" >&5
7816 cat conftest.
$ac_ext >&5
7818 eval "ac_cv_func_$ac_func=no"
7823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7824 echo "$ac_t""yes" 1>&6
7825 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7826 cat >> confdefs.h
<<EOF
7827 #define $ac_tr_func 1
7831 echo "$ac_t""no" 1>&6
7835 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7836 echo "configure:7837: checking for bigcrypt in -lsecurity" >&5
7837 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 ac_save_LIBS
="$LIBS"
7842 LIBS
="-lsecurity $LIBS"
7843 cat > conftest.
$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7855 if { (eval echo configure
:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7857 eval "ac_cv_lib_$ac_lib_var=yes"
7859 echo "configure: failed program was:" >&5
7860 cat conftest.
$ac_ext >&5
7862 eval "ac_cv_lib_$ac_lib_var=no"
7865 LIBS
="$ac_save_LIBS"
7868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7870 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7871 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7872 cat >> confdefs.h
<<EOF
7873 #define $ac_tr_lib 1
7876 LIBS
="-lsecurity $LIBS"
7879 echo "$ac_t""no" 1>&6
7882 for ac_func
in bigcrypt
7884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7885 echo "configure:7886: checking for $ac_func" >&5
7886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7889 cat > conftest.
$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 /* System header to define __stub macros and hopefully few prototypes,
7893 which can conflict with char $ac_func(); below. */
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7902 /* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 if { (eval echo configure
:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7915 eval "ac_cv_func_$ac_func=yes"
7917 echo "configure: failed program was:" >&5
7918 cat conftest.
$ac_ext >&5
7920 eval "ac_cv_func_$ac_func=no"
7925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7926 echo "$ac_t""yes" 1>&6
7927 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7928 cat >> confdefs.h
<<EOF
7929 #define $ac_tr_func 1
7933 echo "$ac_t""no" 1>&6
7941 *-lsec*) for ac_func
in bigcrypt
7943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7944 echo "configure:7945: checking for $ac_func" >&5
7945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7948 cat > conftest.
$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char $ac_func(); below. */
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7961 /* The GNU C library defines this for functions which it implements
7962 to always fail with ENOSYS. Some functions are actually named
7963 something starting with __ and the normal name is an alias. */
7964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7972 if { (eval echo configure
:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7974 eval "ac_cv_func_$ac_func=yes"
7976 echo "configure: failed program was:" >&5
7977 cat conftest.
$ac_ext >&5
7979 eval "ac_cv_func_$ac_func=no"
7984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7987 cat >> confdefs.h
<<EOF
7988 #define $ac_tr_func 1
7992 echo "$ac_t""no" 1>&6
7996 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7997 echo "configure:7998: checking for bigcrypt in -lsec" >&5
7998 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8002 ac_save_LIBS
="$LIBS"
8004 cat > conftest.
$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8016 if { (eval echo configure
:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8018 eval "ac_cv_lib_$ac_lib_var=yes"
8020 echo "configure: failed program was:" >&5
8021 cat conftest.
$ac_ext >&5
8023 eval "ac_cv_lib_$ac_lib_var=no"
8026 LIBS
="$ac_save_LIBS"
8029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8033 cat >> confdefs.h
<<EOF
8034 #define $ac_tr_lib 1
8040 echo "$ac_t""no" 1>&6
8043 for ac_func
in bigcrypt
8045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8046 echo "configure:8047: checking for $ac_func" >&5
8047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8050 cat > conftest.
$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8053 /* System header to define __stub macros and hopefully few prototypes,
8054 which can conflict with char $ac_func(); below. */
8056 /* Override any gcc2 internal prototype to avoid an error. */
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8063 /* The GNU C library defines this for functions which it implements
8064 to always fail with ENOSYS. Some functions are actually named
8065 something starting with __ and the normal name is an alias. */
8066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8074 if { (eval echo configure
:8075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8076 eval "ac_cv_func_$ac_func=yes"
8078 echo "configure: failed program was:" >&5
8079 cat conftest.
$ac_ext >&5
8081 eval "ac_cv_func_$ac_func=no"
8086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8087 echo "$ac_t""yes" 1>&6
8088 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8089 cat >> confdefs.h
<<EOF
8090 #define $ac_tr_func 1
8094 echo "$ac_t""no" 1>&6
8103 *-lsecurity*) for ac_func
in getprpwnam
8105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8106 echo "configure:8107: checking for $ac_func" >&5
8107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8110 cat > conftest.
$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8113 /* System header to define __stub macros and hopefully few prototypes,
8114 which can conflict with char $ac_func(); below. */
8116 /* Override any gcc2 internal prototype to avoid an error. */
8117 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8123 /* The GNU C library defines this for functions which it implements
8124 to always fail with ENOSYS. Some functions are actually named
8125 something starting with __ and the normal name is an alias. */
8126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8134 if { (eval echo configure
:8135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8136 eval "ac_cv_func_$ac_func=yes"
8138 echo "configure: failed program was:" >&5
8139 cat conftest.
$ac_ext >&5
8141 eval "ac_cv_func_$ac_func=no"
8146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8147 echo "$ac_t""yes" 1>&6
8148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8149 cat >> confdefs.h
<<EOF
8150 #define $ac_tr_func 1
8154 echo "$ac_t""no" 1>&6
8158 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8159 echo "configure:8160: checking for getprpwnam in -lsecurity" >&5
8160 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8162 echo $ac_n "(cached) $ac_c" 1>&6
8164 ac_save_LIBS
="$LIBS"
8165 LIBS
="-lsecurity $LIBS"
8166 cat > conftest.
$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8169 /* Override any gcc2 internal prototype to avoid an error. */
8170 /* We use char because int might match the return type of a gcc2
8171 builtin and then its argument prototype would still apply. */
8178 if { (eval echo configure
:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8180 eval "ac_cv_lib_$ac_lib_var=yes"
8182 echo "configure: failed program was:" >&5
8183 cat conftest.
$ac_ext >&5
8185 eval "ac_cv_lib_$ac_lib_var=no"
8188 LIBS
="$ac_save_LIBS"
8191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8192 echo "$ac_t""yes" 1>&6
8193 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8194 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8195 cat >> confdefs.h
<<EOF
8196 #define $ac_tr_lib 1
8199 LIBS
="-lsecurity $LIBS"
8202 echo "$ac_t""no" 1>&6
8205 for ac_func
in getprpwnam
8207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8208 echo "configure:8209: checking for $ac_func" >&5
8209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8212 cat > conftest.
$ac_ext <<EOF
8213 #line 8214 "configure"
8214 #include "confdefs.h"
8215 /* System header to define __stub macros and hopefully few prototypes,
8216 which can conflict with char $ac_func(); below. */
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8225 /* The GNU C library defines this for functions which it implements
8226 to always fail with ENOSYS. Some functions are actually named
8227 something starting with __ and the normal name is an alias. */
8228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8236 if { (eval echo configure
:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8238 eval "ac_cv_func_$ac_func=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.
$ac_ext >&5
8243 eval "ac_cv_func_$ac_func=no"
8248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8249 echo "$ac_t""yes" 1>&6
8250 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8251 cat >> confdefs.h
<<EOF
8252 #define $ac_tr_func 1
8256 echo "$ac_t""no" 1>&6
8264 *-lsec*) for ac_func
in getprpwnam
8266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8267 echo "configure:8268: checking for $ac_func" >&5
8268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8269 echo $ac_n "(cached) $ac_c" 1>&6
8271 cat > conftest.
$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 /* System header to define __stub macros and hopefully few prototypes,
8275 which can conflict with char $ac_func(); below. */
8277 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8284 /* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
8287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8295 if { (eval echo configure
:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8297 eval "ac_cv_func_$ac_func=yes"
8299 echo "configure: failed program was:" >&5
8300 cat conftest.
$ac_ext >&5
8302 eval "ac_cv_func_$ac_func=no"
8307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8308 echo "$ac_t""yes" 1>&6
8309 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8310 cat >> confdefs.h
<<EOF
8311 #define $ac_tr_func 1
8315 echo "$ac_t""no" 1>&6
8319 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8320 echo "configure:8321: checking for getprpwnam in -lsec" >&5
8321 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8325 ac_save_LIBS
="$LIBS"
8327 cat > conftest.
$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 /* Override any gcc2 internal prototype to avoid an error. */
8331 /* We use char because int might match the return type of a gcc2
8332 builtin and then its argument prototype would still apply. */
8339 if { (eval echo configure
:8340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8341 eval "ac_cv_lib_$ac_lib_var=yes"
8343 echo "configure: failed program was:" >&5
8344 cat conftest.
$ac_ext >&5
8346 eval "ac_cv_lib_$ac_lib_var=no"
8349 LIBS
="$ac_save_LIBS"
8352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8353 echo "$ac_t""yes" 1>&6
8354 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8356 cat >> confdefs.h
<<EOF
8357 #define $ac_tr_lib 1
8363 echo "$ac_t""no" 1>&6
8366 for ac_func
in getprpwnam
8368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8369 echo "configure:8370: checking for $ac_func" >&5
8370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8373 cat > conftest.
$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* System header to define __stub macros and hopefully few prototypes,
8377 which can conflict with char $ac_func(); below. */
8379 /* Override any gcc2 internal prototype to avoid an error. */
8380 /* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8386 /* The GNU C library defines this for functions which it implements
8387 to always fail with ENOSYS. Some functions are actually named
8388 something starting with __ and the normal name is an alias. */
8389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8397 if { (eval echo configure
:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8399 eval "ac_cv_func_$ac_func=yes"
8401 echo "configure: failed program was:" >&5
8402 cat conftest.
$ac_ext >&5
8404 eval "ac_cv_func_$ac_func=no"
8409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8411 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8412 cat >> confdefs.h
<<EOF
8413 #define $ac_tr_func 1
8417 echo "$ac_t""no" 1>&6
8425 # this bit needs to be modified for each OS that is suported by
8426 # smbwrapper. You need to specify how to created a shared library and
8427 # how to compile C code to produce PIC object files
8429 # these are the defaults, good for lots of systems
8437 # Assume non-shared by default and override below
8439 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8440 echo "configure:8441: checking ability to build shared libraries" >&5
8442 # and these are for particular systems
8444 *linux
*) cat >> confdefs.h
<<\EOF
8451 SONAMEFLAG
="-Wl,-soname="
8452 cat >> confdefs.h
<<\EOF
8453 #define STAT_ST_BLOCKSIZE 512
8457 *solaris
*) cat >> confdefs.h
<<\EOF
8462 LDSHFLAGS
="-h \$@ -G"
8463 if test "${ac_cv_prog_CC}" = "gcc"; then
8470 cat >> confdefs.h
<<\EOF
8471 #define STAT_ST_BLOCKSIZE 512
8475 *sunos
*) cat >> confdefs.h
<<\EOF
8480 LDSHFLAGS
="-Wl,-h,\$@ -G"
8481 PICFLAG
="-KPIC" # Is this correct for SunOS
8483 *bsd
*) BLDSHARED
="true"
8484 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8486 cat >> confdefs.h
<<\EOF
8487 #define STAT_ST_BLOCKSIZE 512
8491 *irix
*) cat >> confdefs.h
<<\EOF
8496 *irix6
*) cat >> confdefs.h
<<\EOF
8502 ATTEMPT_WRAP32_BUILD
=yes
8504 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8505 if test "${ac_cv_prog_CC}" = "gcc"; then
8510 cat >> confdefs.h
<<\EOF
8511 #define STAT_ST_BLOCKSIZE 512
8515 *aix
*) cat >> confdefs.h
<<\EOF
8520 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8521 PICFLAG
="-O2 -qmaxmem=6000"
8522 cat >> confdefs.h
<<\EOF
8523 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8527 *hpux
*) cat >> confdefs.h
<<\EOF
8532 # Use special PIC flags for the native HP-UX compiler.
8533 if test $ac_cv_prog_cc_Ae = yes; then
8536 LDSHFLAGS
="-B symbolic -b -z +h \$@"
8539 cat >> confdefs.h
<<\EOF
8540 #define STAT_ST_BLOCKSIZE 8192
8544 *qnx
*) cat >> confdefs.h
<<\EOF
8548 *osf
*) cat >> confdefs.h
<<\EOF
8553 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8556 *sco
*) cat >> confdefs.h
<<\EOF
8560 *unixware
*) cat >> confdefs.h
<<\EOF
8565 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8568 *next2
*) cat >> confdefs.h
<<\EOF
8572 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8573 set dummy
groff; ac_word
=$2
8574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8575 echo "configure:8576: checking for $ac_word" >&5
8576 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8579 if test -n "$ROFF"; then
8580 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8582 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8584 for ac_dir
in $ac_dummy; do
8585 test -z "$ac_dir" && ac_dir
=.
8586 if test -f $ac_dir/$ac_word; then
8587 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8594 ROFF
="$ac_cv_prog_ROFF"
8595 if test -n "$ROFF"; then
8596 echo "$ac_t""$ROFF" 1>&6
8598 echo "$ac_t""no" 1>&6
8603 *-univel-*) if test "$GCC" != yes ; then
8604 cat >> confdefs.h
<<\EOF
8605 #define HAVE_MEMSET 1
8611 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8612 #define RELIANTUNIX 1
8618 if test "$GCC" != yes ; then
8619 cat >> confdefs.h
<<\EOF
8620 #define HAVE_MEMSET 1
8627 echo "$ac_t""$BLDSHARED" 1>&6
8628 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8629 echo "configure:8630: checking linker flags for shared libraries" >&5
8630 echo "$ac_t""$LDSHFLAGS" 1>&6
8631 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8632 echo "configure:8633: checking compiler flags for position-independent code" >&5
8633 echo "$ac_t""$PICFLAGS" 1>&6
8635 # try to work out how to produce pic code with this compiler
8636 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8637 echo "configure:8638: checking whether ${CC-cc} accepts -fpic" >&5
8638 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
8641 echo 'void f(){}' > conftest.c
8642 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8643 ac_cv_prog_cc_fpic
=yes
8645 ac_cv_prog_cc_fpic
=no
8651 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8652 if test $ac_cv_prog_cc_fpic = yes; then
8655 if test x
$PICFLAG = x
; then
8656 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8657 echo "configure:8658: checking whether ${CC-cc} accepts -KPIC" >&5
8658 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8661 echo 'void f(){}' > conftest.c
8662 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8663 ac_cv_prog_cc_KPIC
=yes
8665 ac_cv_prog_cc_KPIC
=no
8671 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8672 if test $ac_cv_prog_cc_KPIC = yes; then
8676 if test x
$PICFLAG = x
; then
8677 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8678 echo "configure:8679: checking whether ${CC-cc} accepts -Kpic" >&5
8679 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8682 echo 'void f(){}' > conftest.c
8683 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8684 ac_cv_prog_cc_Kpic
=yes
8686 ac_cv_prog_cc_Kpic
=no
8692 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8693 if test $ac_cv_prog_cc_Kpic = yes; then
8700 echo $ac_n "checking for long long""... $ac_c" 1>&6
8701 echo "configure:8702: checking for long long" >&5
8702 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8703 echo $ac_n "(cached) $ac_c" 1>&6
8706 if test "$cross_compiling" = yes; then
8707 samba_cv_have_longlong
=cross
8709 cat > conftest.
$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8713 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8715 if { (eval echo configure
:8716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8717 samba_cv_have_longlong
=yes
8719 echo "configure: failed program was:" >&5
8720 cat conftest.
$ac_ext >&5
8722 samba_cv_have_longlong
=no
8729 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8730 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8731 cat >> confdefs.h
<<\EOF
8732 #define HAVE_LONGLONG 1
8738 # Check if the compiler supports the LL prefix on long long integers.
8741 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8742 echo "configure:8743: checking for LL suffix on long long integers" >&5
8743 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8747 cat > conftest.
$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8752 long long i = 0x8000000000LL
8755 if { (eval echo configure
:8756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8757 samba_cv_compiler_supports_ll
=yes
8759 echo "configure: failed program was:" >&5
8760 cat conftest.
$ac_ext >&5
8762 samba_cv_compiler_supports_ll
=no
8767 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8768 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8769 cat >> confdefs.h
<<\EOF
8770 #define COMPILER_SUPPORTS_LL 1
8776 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8777 echo "configure:8778: checking for 64 bit off_t" >&5
8778 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8779 echo $ac_n "(cached) $ac_c" 1>&6
8782 if test "$cross_compiling" = yes; then
8783 samba_cv_SIZEOF_OFF_T
=cross
8785 cat > conftest.
$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8789 #include <sys/stat.h>
8790 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8792 if { (eval echo configure
:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8794 samba_cv_SIZEOF_OFF_T
=yes
8796 echo "configure: failed program was:" >&5
8797 cat conftest.
$ac_ext >&5
8799 samba_cv_SIZEOF_OFF_T
=no
8806 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8807 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8808 cat >> confdefs.h
<<\EOF
8809 #define SIZEOF_OFF_T 8
8814 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8815 echo "configure:8816: checking for off64_t" >&5
8816 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8817 echo $ac_n "(cached) $ac_c" 1>&6
8820 if test "$cross_compiling" = yes; then
8821 samba_cv_HAVE_OFF64_T
=cross
8823 cat > conftest.
$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8827 #if defined(HAVE_UNISTD_H)
8831 #include <sys/stat.h>
8832 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8834 if { (eval echo configure
:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8836 samba_cv_HAVE_OFF64_T
=yes
8838 echo "configure: failed program was:" >&5
8839 cat conftest.
$ac_ext >&5
8841 samba_cv_HAVE_OFF64_T
=no
8848 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8849 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8850 cat >> confdefs.h
<<\EOF
8851 #define HAVE_OFF64_T 1
8856 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8857 echo "configure:8858: checking for 64 bit ino_t" >&5
8858 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8862 if test "$cross_compiling" = yes; then
8863 samba_cv_SIZEOF_INO_T
=cross
8865 cat > conftest.
$ac_ext <<EOF
8866 #line 8867 "configure"
8867 #include "confdefs.h"
8869 #include <sys/stat.h>
8870 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8872 if { (eval echo configure
:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8874 samba_cv_SIZEOF_INO_T
=yes
8876 echo "configure: failed program was:" >&5
8877 cat conftest.
$ac_ext >&5
8879 samba_cv_SIZEOF_INO_T
=no
8886 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8887 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8888 cat >> confdefs.h
<<\EOF
8889 #define SIZEOF_INO_T 8
8894 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8895 echo "configure:8896: checking for ino64_t" >&5
8896 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8900 if test "$cross_compiling" = yes; then
8901 samba_cv_HAVE_INO64_T
=cross
8903 cat > conftest.
$ac_ext <<EOF
8904 #line 8905 "configure"
8905 #include "confdefs.h"
8907 #if defined(HAVE_UNISTD_H)
8911 #include <sys/stat.h>
8912 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8914 if { (eval echo configure
:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8916 samba_cv_HAVE_INO64_T
=yes
8918 echo "configure: failed program was:" >&5
8919 cat conftest.
$ac_ext >&5
8921 samba_cv_HAVE_INO64_T
=no
8928 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8929 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8930 cat >> confdefs.h
<<\EOF
8931 #define HAVE_INO64_T 1
8936 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
8937 echo "configure:8938: checking for dev64_t" >&5
8938 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
8939 echo $ac_n "(cached) $ac_c" 1>&6
8942 if test "$cross_compiling" = yes; then
8943 samba_cv_HAVE_DEV64_T
=cross
8945 cat > conftest.
$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8949 #if defined(HAVE_UNISTD_H)
8953 #include <sys/stat.h>
8954 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8956 if { (eval echo configure
:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8958 samba_cv_HAVE_DEV64_T
=yes
8960 echo "configure: failed program was:" >&5
8961 cat conftest.
$ac_ext >&5
8963 samba_cv_HAVE_DEV64_T
=no
8970 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
8971 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
8972 cat >> confdefs.h
<<\EOF
8973 #define HAVE_DEV64_T 1
8978 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8979 echo "configure:8980: checking for struct dirent64" >&5
8980 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8984 cat > conftest.
$ac_ext <<EOF
8985 #line 8986 "configure"
8986 #include "confdefs.h"
8988 #if defined(HAVE_UNISTD_H)
8991 #include <sys/types.h>
8997 if { (eval echo configure
:8998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8999 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9001 echo "configure: failed program was:" >&5
9002 cat conftest.
$ac_ext >&5
9004 samba_cv_HAVE_STRUCT_DIRENT64
=no
9009 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9010 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
9011 cat >> confdefs.h
<<\EOF
9012 #define HAVE_STRUCT_DIRENT64 1
9017 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9018 echo "configure:9019: checking for major macro" >&5
9019 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9020 echo $ac_n "(cached) $ac_c" 1>&6
9023 if test "$cross_compiling" = yes; then
9024 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9026 cat > conftest.
$ac_ext <<EOF
9027 #line 9028 "configure"
9028 #include "confdefs.h"
9030 #if defined(HAVE_UNISTD_H)
9033 #include <sys/types.h>
9034 main() { dev_t dev; int i = major(dev); return 0; }
9036 if { (eval echo configure
:9037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9038 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9040 echo "configure: failed program was:" >&5
9041 cat conftest.
$ac_ext >&5
9043 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9050 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9051 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9052 cat >> confdefs.h
<<\EOF
9053 #define HAVE_DEVICE_MAJOR_FN 1
9058 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9059 echo "configure:9060: checking for minor macro" >&5
9060 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9061 echo $ac_n "(cached) $ac_c" 1>&6
9064 if test "$cross_compiling" = yes; then
9065 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9067 cat > conftest.
$ac_ext <<EOF
9068 #line 9069 "configure"
9069 #include "confdefs.h"
9071 #if defined(HAVE_UNISTD_H)
9074 #include <sys/types.h>
9075 main() { dev_t dev; int i = minor(dev); return 0; }
9077 if { (eval echo configure
:9078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9079 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9081 echo "configure: failed program was:" >&5
9082 cat conftest.
$ac_ext >&5
9084 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9091 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9092 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9093 cat >> confdefs.h
<<\EOF
9094 #define HAVE_DEVICE_MINOR_FN 1
9099 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9100 echo "configure:9101: checking for makedev macro" >&5
9101 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9105 if test "$cross_compiling" = yes; then
9106 samba_cv_HAVE_MAKEDEV_FN
=cross
9108 cat > conftest.
$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9112 #if defined(HAVE_UNISTD_H)
9115 #include <sys/types.h>
9116 main() { dev_t dev = makedev(1,2); return 0; }
9118 if { (eval echo configure
:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9120 samba_cv_HAVE_MAKEDEV_FN
=yes
9122 echo "configure: failed program was:" >&5
9123 cat conftest.
$ac_ext >&5
9125 samba_cv_HAVE_MAKEDEV_FN
=no
9132 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9133 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9134 cat >> confdefs.h
<<\EOF
9135 #define MAKEDEV_FN 1
9140 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9141 echo "configure:9142: checking for unsigned char" >&5
9142 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9143 echo $ac_n "(cached) $ac_c" 1>&6
9146 if test "$cross_compiling" = yes; then
9147 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9149 cat > conftest.
$ac_ext <<EOF
9150 #line 9151 "configure"
9151 #include "confdefs.h"
9153 main() { char c; c=250; exit((c > 0)?0:1); }
9155 if { (eval echo configure
:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9157 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9159 echo "configure: failed program was:" >&5
9160 cat conftest.
$ac_ext >&5
9162 samba_cv_HAVE_UNSIGNED_CHAR
=no
9169 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9170 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9171 cat >> confdefs.h
<<\EOF
9172 #define HAVE_UNSIGNED_CHAR 1
9177 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9178 echo "configure:9179: checking for sin_len in sock" >&5
9179 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9180 echo $ac_n "(cached) $ac_c" 1>&6
9183 cat > conftest.
$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186 #include <sys/types.h>
9187 #include <sys/socket.h>
9188 #include <netinet/in.h>
9190 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9193 if { (eval echo configure
:9194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9195 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9197 echo "configure: failed program was:" >&5
9198 cat conftest.
$ac_ext >&5
9200 samba_cv_HAVE_SOCK_SIN_LEN
=no
9205 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9206 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9207 cat >> confdefs.h
<<\EOF
9208 #define HAVE_SOCK_SIN_LEN 1
9213 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9214 echo "configure:9215: checking whether seekdir returns void" >&5
9215 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9219 cat > conftest.
$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9222 #include <sys/types.h>
9224 void seekdir(DIR *d, long loc) { return; }
9229 if { (eval echo configure
:9230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9231 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9233 echo "configure: failed program was:" >&5
9234 cat conftest.
$ac_ext >&5
9236 samba_cv_SEEKDIR_RETURNS_VOID
=no
9241 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9242 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9243 cat >> confdefs.h
<<\EOF
9244 #define SEEKDIR_RETURNS_VOID 1
9249 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9250 echo "configure:9251: checking for __FILE__ macro" >&5
9251 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9255 cat > conftest.
$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9260 printf("%s\n", __FILE__);
9263 if { (eval echo configure
:9264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9265 samba_cv_HAVE_FILE_MACRO
=yes
9267 echo "configure: failed program was:" >&5
9268 cat conftest.
$ac_ext >&5
9270 samba_cv_HAVE_FILE_MACRO
=no
9275 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9276 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9277 cat >> confdefs.h
<<\EOF
9278 #define HAVE_FILE_MACRO 1
9283 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9284 echo "configure:9285: checking for __FUNCTION__ macro" >&5
9285 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9289 cat > conftest.
$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9294 printf("%s\n", __FUNCTION__);
9297 if { (eval echo configure
:9298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9299 samba_cv_HAVE_FUNCTION_MACRO
=yes
9301 echo "configure: failed program was:" >&5
9302 cat conftest.
$ac_ext >&5
9304 samba_cv_HAVE_FUNCTION_MACRO
=no
9309 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9310 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9311 cat >> confdefs.h
<<\EOF
9312 #define HAVE_FUNCTION_MACRO 1
9317 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9318 echo "configure:9319: checking if gettimeofday takes tz argument" >&5
9319 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9323 if test "$cross_compiling" = yes; then
9324 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9326 cat > conftest.
$ac_ext <<EOF
9327 #line 9328 "configure"
9328 #include "confdefs.h"
9330 #include <sys/time.h>
9332 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9334 if { (eval echo configure
:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9336 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9338 echo "configure: failed program was:" >&5
9339 cat conftest.
$ac_ext >&5
9341 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9348 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9349 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9350 cat >> confdefs.h
<<\EOF
9351 #define HAVE_GETTIMEOFDAY_TZ 1
9356 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9357 echo "configure:9358: checking for C99 vsnprintf" >&5
9358 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9362 if test "$cross_compiling" = yes; then
9363 samba_cv_HAVE_C99_VSNPRINTF
=cross
9365 cat > conftest.
$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9369 #include <sys/types.h>
9371 void foo(const char *format, ...) {
9376 va_start(ap, format);
9377 len = vsnprintf(0, 0, format, ap);
9379 if (len != 5) exit(1);
9381 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9385 main() { foo("hello"); }
9388 if { (eval echo configure
:9389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9390 samba_cv_HAVE_C99_VSNPRINTF
=yes
9392 echo "configure: failed program was:" >&5
9393 cat conftest.
$ac_ext >&5
9395 samba_cv_HAVE_C99_VSNPRINTF
=no
9402 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9403 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9404 cat >> confdefs.h
<<\EOF
9405 #define HAVE_C99_VSNPRINTF 1
9410 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9411 echo "configure:9412: checking for broken readdir" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9416 if test "$cross_compiling" = yes; then
9417 samba_cv_HAVE_BROKEN_READDIR
=cross
9419 cat > conftest.
$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 #include <sys/types.h>
9424 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9425 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9426 di->d_name[0] == 0) exit(0); exit(1);}
9428 if { (eval echo configure
:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9430 samba_cv_HAVE_BROKEN_READDIR
=yes
9432 echo "configure: failed program was:" >&5
9433 cat conftest.
$ac_ext >&5
9435 samba_cv_HAVE_BROKEN_READDIR
=no
9442 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9443 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9444 cat >> confdefs.h
<<\EOF
9445 #define HAVE_BROKEN_READDIR 1
9450 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9451 echo "configure:9452: checking for utimbuf" >&5
9452 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9456 cat > conftest.
$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459 #include <sys/types.h>
9462 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9465 if { (eval echo configure
:9466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9467 samba_cv_HAVE_UTIMBUF
=yes
9469 echo "configure: failed program was:" >&5
9470 cat conftest.
$ac_ext >&5
9472 samba_cv_HAVE_UTIMBUF
=no
9477 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9478 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9479 cat >> confdefs.h
<<\EOF
9480 #define HAVE_UTIMBUF 1
9486 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9489 echo "configure:9490: checking for $ac_func" >&5
9490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9493 cat > conftest.
$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 /* System header to define __stub macros and hopefully few prototypes,
9497 which can conflict with char $ac_func(); below. */
9499 /* Override any gcc2 internal prototype to avoid an error. */
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9517 if { (eval echo configure
:9518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9519 eval "ac_cv_func_$ac_func=yes"
9521 echo "configure: failed program was:" >&5
9522 cat conftest.
$ac_ext >&5
9524 eval "ac_cv_func_$ac_func=no"
9529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9530 echo "$ac_t""yes" 1>&6
9531 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9532 cat >> confdefs.h
<<EOF
9533 #define $ac_tr_func 1
9537 echo "$ac_t""no" 1>&6
9542 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9543 echo "configure:9544: checking for ut_name in utmp" >&5
9544 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9548 cat > conftest.
$ac_ext <<EOF
9549 #line 9550 "configure"
9550 #include "confdefs.h"
9551 #include <sys/types.h>
9554 struct utmp ut; ut.ut_name[0] = 'a';
9557 if { (eval echo configure
:9558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9559 samba_cv_HAVE_UT_UT_NAME
=yes
9561 echo "configure: failed program was:" >&5
9562 cat conftest.
$ac_ext >&5
9564 samba_cv_HAVE_UT_UT_NAME
=no
9569 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9570 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9571 cat >> confdefs.h
<<\EOF
9572 #define HAVE_UT_UT_NAME 1
9577 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9578 echo "configure:9579: checking for ut_user in utmp" >&5
9579 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9580 echo $ac_n "(cached) $ac_c" 1>&6
9583 cat > conftest.
$ac_ext <<EOF
9584 #line 9585 "configure"
9585 #include "confdefs.h"
9586 #include <sys/types.h>
9589 struct utmp ut; ut.ut_user[0] = 'a';
9592 if { (eval echo configure
:9593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9594 samba_cv_HAVE_UT_UT_USER
=yes
9596 echo "configure: failed program was:" >&5
9597 cat conftest.
$ac_ext >&5
9599 samba_cv_HAVE_UT_UT_USER
=no
9604 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9605 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9606 cat >> confdefs.h
<<\EOF
9607 #define HAVE_UT_UT_USER 1
9612 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9613 echo "configure:9614: checking for ut_id in utmp" >&5
9614 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9618 cat > conftest.
$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9621 #include <sys/types.h>
9624 struct utmp ut; ut.ut_id[0] = 'a';
9627 if { (eval echo configure
:9628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9629 samba_cv_HAVE_UT_UT_ID
=yes
9631 echo "configure: failed program was:" >&5
9632 cat conftest.
$ac_ext >&5
9634 samba_cv_HAVE_UT_UT_ID
=no
9639 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9640 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9641 cat >> confdefs.h
<<\EOF
9642 #define HAVE_UT_UT_ID 1
9647 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9648 echo "configure:9649: checking for ut_host in utmp" >&5
9649 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9653 cat > conftest.
$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 #include <sys/types.h>
9659 struct utmp ut; ut.ut_host[0] = 'a';
9662 if { (eval echo configure
:9663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9664 samba_cv_HAVE_UT_UT_HOST
=yes
9666 echo "configure: failed program was:" >&5
9667 cat conftest.
$ac_ext >&5
9669 samba_cv_HAVE_UT_UT_HOST
=no
9674 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9675 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9676 cat >> confdefs.h
<<\EOF
9677 #define HAVE_UT_UT_HOST 1
9682 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9683 echo "configure:9684: checking for ut_time in utmp" >&5
9684 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9688 cat > conftest.
$ac_ext <<EOF
9689 #line 9690 "configure"
9690 #include "confdefs.h"
9691 #include <sys/types.h>
9694 struct utmp ut; time_t t; ut.ut_time = t;
9697 if { (eval echo configure
:9698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9699 samba_cv_HAVE_UT_UT_TIME
=yes
9701 echo "configure: failed program was:" >&5
9702 cat conftest.
$ac_ext >&5
9704 samba_cv_HAVE_UT_UT_TIME
=no
9709 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9710 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9711 cat >> confdefs.h
<<\EOF
9712 #define HAVE_UT_UT_TIME 1
9717 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9718 echo "configure:9719: checking for ut_tv in utmp" >&5
9719 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9720 echo $ac_n "(cached) $ac_c" 1>&6
9723 cat > conftest.
$ac_ext <<EOF
9724 #line 9725 "configure"
9725 #include "confdefs.h"
9726 #include <sys/types.h>
9729 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9732 if { (eval echo configure
:9733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9734 samba_cv_HAVE_UT_UT_TV
=yes
9736 echo "configure: failed program was:" >&5
9737 cat conftest.
$ac_ext >&5
9739 samba_cv_HAVE_UT_UT_TV
=no
9744 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9745 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9746 cat >> confdefs.h
<<\EOF
9747 #define HAVE_UT_UT_TV 1
9752 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9753 echo "configure:9754: checking for ut_type in utmp" >&5
9754 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9758 cat > conftest.
$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 #include <sys/types.h>
9764 struct utmp ut; ut.ut_type = 0;
9767 if { (eval echo configure
:9768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9769 samba_cv_HAVE_UT_UT_TYPE
=yes
9771 echo "configure: failed program was:" >&5
9772 cat conftest.
$ac_ext >&5
9774 samba_cv_HAVE_UT_UT_TYPE
=no
9779 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9780 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9781 cat >> confdefs.h
<<\EOF
9782 #define HAVE_UT_UT_TYPE 1
9787 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9788 echo "configure:9789: checking for ut_pid in utmp" >&5
9789 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9790 echo $ac_n "(cached) $ac_c" 1>&6
9793 cat > conftest.
$ac_ext <<EOF
9794 #line 9795 "configure"
9795 #include "confdefs.h"
9796 #include <sys/types.h>
9799 struct utmp ut; ut.ut_pid = 0;
9802 if { (eval echo configure
:9803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9804 samba_cv_HAVE_UT_UT_PID
=yes
9806 echo "configure: failed program was:" >&5
9807 cat conftest.
$ac_ext >&5
9809 samba_cv_HAVE_UT_UT_PID
=no
9814 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9815 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9816 cat >> confdefs.h
<<\EOF
9817 #define HAVE_UT_UT_PID 1
9822 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9823 echo "configure:9824: checking for ut_exit in utmp" >&5
9824 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9825 echo $ac_n "(cached) $ac_c" 1>&6
9828 cat > conftest.
$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 #include <sys/types.h>
9834 struct utmp ut; ut.ut_exit.e_exit = 0;
9837 if { (eval echo configure
:9838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9839 samba_cv_HAVE_UT_UT_EXIT
=yes
9841 echo "configure: failed program was:" >&5
9842 cat conftest.
$ac_ext >&5
9844 samba_cv_HAVE_UT_UT_EXIT
=no
9849 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9850 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9851 cat >> confdefs.h
<<\EOF
9852 #define HAVE_UT_UT_EXIT 1
9857 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9858 echo "configure:9859: checking for ut_addr in utmp" >&5
9859 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9863 cat > conftest.
$ac_ext <<EOF
9864 #line 9865 "configure"
9865 #include "confdefs.h"
9866 #include <sys/types.h>
9869 struct utmp ut; ut.ut_addr = 0;
9872 if { (eval echo configure
:9873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9874 samba_cv_HAVE_UT_UT_ADDR
=yes
9876 echo "configure: failed program was:" >&5
9877 cat conftest.
$ac_ext >&5
9879 samba_cv_HAVE_UT_UT_ADDR
=no
9884 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9885 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9886 cat >> confdefs.h
<<\EOF
9887 #define HAVE_UT_UT_ADDR 1
9892 if test x
$ac_cv_func_pututline = xyes
; then
9893 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9894 echo "configure:9895: checking whether pututline returns pointer" >&5
9895 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9899 cat > conftest.
$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 #include <sys/types.h>
9905 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9908 if { (eval echo configure
:9909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9910 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9912 echo "configure: failed program was:" >&5
9913 cat conftest.
$ac_ext >&5
9915 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9920 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9921 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9922 cat >> confdefs.h
<<\EOF
9923 #define PUTUTLINE_RETURNS_UTMP 1
9929 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9930 echo "configure:9931: checking for ut_syslen in utmpx" >&5
9931 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9935 cat > conftest.
$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 #include <sys/types.h>
9941 struct utmpx ux; ux.ut_syslen = 0;
9944 if { (eval echo configure
:9945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9946 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9948 echo "configure: failed program was:" >&5
9949 cat conftest.
$ac_ext >&5
9951 samba_cv_HAVE_UX_UT_SYSLEN
=no
9956 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9957 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9958 cat >> confdefs.h
<<\EOF
9959 #define HAVE_UX_UT_SYSLEN 1
9964 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9965 echo "configure:9966: checking for Linux kernel oplocks" >&5
9966 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9967 echo $ac_n "(cached) $ac_c" 1>&6
9970 if test "$cross_compiling" = yes; then
9971 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9973 cat > conftest.
$ac_ext <<EOF
9974 #line 9975 "configure"
9975 #include "confdefs.h"
9977 #include <sys/types.h>
9980 #define F_GETLEASE 1025
9983 int fd = open("/dev/null", O_RDONLY);
9984 return fcntl(fd, F_GETLEASE, 0) == -1;
9988 if { (eval echo configure
:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9990 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9992 echo "configure: failed program was:" >&5
9993 cat conftest.
$ac_ext >&5
9995 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10002 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10003 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10004 cat >> confdefs.h
<<\EOF
10005 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10010 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10011 echo "configure:10012: checking for kernel change notify support" >&5
10012 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10016 if test "$cross_compiling" = yes; then
10017 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10019 cat > conftest.
$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10023 #include <sys/types.h>
10025 #include <signal.h>
10027 #define F_NOTIFY 1026
10030 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10034 if { (eval echo configure
:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10036 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10038 echo "configure: failed program was:" >&5
10039 cat conftest.
$ac_ext >&5
10041 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10048 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10049 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10050 cat >> confdefs.h
<<\EOF
10051 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10056 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10057 echo "configure:10058: checking for kernel share modes" >&5
10058 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10062 if test "$cross_compiling" = yes; then
10063 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10065 cat > conftest.
$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10069 #include <sys/types.h>
10071 #include <signal.h>
10072 #include <sys/file.h>
10074 #define LOCK_MAND 32
10075 #define LOCK_READ 64
10078 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10082 if { (eval echo configure
:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10084 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10086 echo "configure: failed program was:" >&5
10087 cat conftest.
$ac_ext >&5
10089 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10096 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10097 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10098 cat >> confdefs.h
<<\EOF
10099 #define HAVE_KERNEL_SHARE_MODES 1
10107 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10108 echo "configure:10109: checking for IRIX kernel oplock type definitions" >&5
10109 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10113 cat > conftest.
$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 #include <sys/types.h>
10119 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10122 if { (eval echo configure
:10123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10124 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10126 echo "configure: failed program was:" >&5
10127 cat conftest.
$ac_ext >&5
10129 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10134 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10135 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10136 cat >> confdefs.h
<<\EOF
10137 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10142 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10143 echo "configure:10144: checking for irix specific capabilities" >&5
10144 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10148 if test "$cross_compiling" = yes; then
10149 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10151 cat > conftest.
$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 #include <sys/types.h>
10155 #include <sys/capability.h>
10158 if ((cap = cap_get_proc()) == NULL)
10160 cap->cap_effective |= CAP_NETWORK_MGT;
10161 cap->cap_inheritable |= CAP_NETWORK_MGT;
10167 if { (eval echo configure
:10168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10169 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10171 echo "configure: failed program was:" >&5
10172 cat conftest.
$ac_ext >&5
10174 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10181 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10182 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10183 cat >> confdefs.h
<<\EOF
10184 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10190 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10191 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10194 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10195 echo "configure:10196: checking for int16 typedef included by rpc/rpc.h" >&5
10196 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10200 cat > conftest.
$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <sys/types.h>
10204 #if defined(HAVE_RPC_RPC_H)
10205 #include <rpc/rpc.h>
10211 if { (eval echo configure
:10212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10213 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10215 echo "configure: failed program was:" >&5
10216 cat conftest.
$ac_ext >&5
10218 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10223 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10224 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10225 cat >> confdefs.h
<<\EOF
10226 #define HAVE_INT16_FROM_RPC_RPC_H 1
10231 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10232 echo "configure:10233: checking for uint16 typedef included by rpc/rpc.h" >&5
10233 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10237 cat > conftest.
$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10240 #include <sys/types.h>
10241 #if defined(HAVE_RPC_RPC_H)
10242 #include <rpc/rpc.h>
10248 if { (eval echo configure
:10249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10250 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10252 echo "configure: failed program was:" >&5
10253 cat conftest.
$ac_ext >&5
10255 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10260 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10261 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10262 cat >> confdefs.h
<<\EOF
10263 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10268 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10269 echo "configure:10270: checking for int32 typedef included by rpc/rpc.h" >&5
10270 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10274 cat > conftest.
$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10277 #include <sys/types.h>
10278 #if defined(HAVE_RPC_RPC_H)
10279 #include <rpc/rpc.h>
10285 if { (eval echo configure
:10286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10287 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10289 echo "configure: failed program was:" >&5
10290 cat conftest.
$ac_ext >&5
10292 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10297 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10298 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10299 cat >> confdefs.h
<<\EOF
10300 #define HAVE_INT32_FROM_RPC_RPC_H 1
10305 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10306 echo "configure:10307: checking for uint32 typedef included by rpc/rpc.h" >&5
10307 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
10311 cat > conftest.
$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10314 #include <sys/types.h>
10315 #if defined(HAVE_RPC_RPC_H)
10316 #include <rpc/rpc.h>
10322 if { (eval echo configure
:10323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10324 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10326 echo "configure: failed program was:" >&5
10327 cat conftest.
$ac_ext >&5
10329 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10334 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10335 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10336 cat >> confdefs.h
<<\EOF
10337 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10343 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10344 echo "configure:10345: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10345 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10346 echo $ac_n "(cached) $ac_c" 1>&6
10349 cat > conftest.
$ac_ext <<EOF
10350 #line 10351 "configure"
10351 #include "confdefs.h"
10352 #include <sys/types.h>
10353 #ifdef HAVE_SYS_SECURITY_H
10354 #include <sys/security.h>
10356 #endif /* HAVE_SYS_SECURITY_H */
10357 #if defined(HAVE_RPC_RPC_H)
10358 #include <rpc/rpc.h>
10364 if { (eval echo configure
:10365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10366 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10368 echo "configure: failed program was:" >&5
10369 cat conftest.
$ac_ext >&5
10371 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10376 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10377 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10378 cat >> confdefs.h
<<\EOF
10379 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10384 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10385 echo "configure:10386: checking for test routines" >&5
10386 if test "$cross_compiling" = yes; then
10387 echo "configure: warning: cannot run when cross-compiling" 1>&2
10389 cat > conftest.
$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10392 #include "${srcdir-.}/tests/trivial.c"
10394 if { (eval echo configure
:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10396 echo "$ac_t""yes" 1>&6
10398 echo "configure: failed program was:" >&5
10399 cat conftest.
$ac_ext >&5
10401 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10407 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10408 echo "configure:10409: checking for ftruncate extend" >&5
10409 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10413 if test "$cross_compiling" = yes; then
10414 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10416 cat > conftest.
$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10419 #include "${srcdir-.}/tests/ftruncate.c"
10421 if { (eval echo configure
:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10423 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10425 echo "configure: failed program was:" >&5
10426 cat conftest.
$ac_ext >&5
10428 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10435 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10436 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10437 cat >> confdefs.h
<<\EOF
10438 #define HAVE_FTRUNCATE_EXTEND 1
10443 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10444 echo "configure:10445: checking for broken getgroups" >&5
10445 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10449 if test "$cross_compiling" = yes; then
10450 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10452 cat > conftest.
$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10455 #include "${srcdir-.}/tests/getgroups.c"
10457 if { (eval echo configure
:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10459 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10461 echo "configure: failed program was:" >&5
10462 cat conftest.
$ac_ext >&5
10464 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10471 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10472 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10473 cat >> confdefs.h
<<\EOF
10474 #define HAVE_BROKEN_GETGROUPS 1
10479 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10480 echo "configure:10481: checking whether getpass should be replaced" >&5
10481 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10482 echo $ac_n "(cached) $ac_c" 1>&6
10485 SAVE_CPPFLAGS
="$CPPFLAGS"
10486 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10487 cat > conftest.
$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10491 #define REPLACE_GETPASS 1
10492 #define NO_CONFIG_H 1
10493 #define main dont_declare_main
10494 #include "${srcdir-.}/lib/getsmbpass.c"
10501 if { (eval echo configure
:10502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10503 samba_cv_REPLACE_GETPASS
=yes
10505 echo "configure: failed program was:" >&5
10506 cat conftest.
$ac_ext >&5
10508 samba_cv_REPLACE_GETPASS
=no
10511 CPPFLAGS
="$SAVE_CPPFLAGS"
10515 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10516 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10517 cat >> confdefs.h
<<\EOF
10518 #define REPLACE_GETPASS 1
10523 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10524 echo "configure:10525: checking for broken inet_ntoa" >&5
10525 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10529 if test "$cross_compiling" = yes; then
10530 samba_cv_REPLACE_INET_NTOA
=cross
10532 cat > conftest.
$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10537 #include <sys/types.h>
10538 #include <netinet/in.h>
10539 #ifdef HAVE_ARPA_INET_H
10540 #include <arpa/inet.h>
10542 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10543 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10544 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10547 if { (eval echo configure
:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10549 samba_cv_REPLACE_INET_NTOA
=yes
10551 echo "configure: failed program was:" >&5
10552 cat conftest.
$ac_ext >&5
10554 samba_cv_REPLACE_INET_NTOA
=no
10561 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10562 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10563 cat >> confdefs.h
<<\EOF
10564 #define REPLACE_INET_NTOA 1
10569 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10570 echo "configure:10571: checking for secure mkstemp" >&5
10571 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
10575 if test "$cross_compiling" = yes; then
10576 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10578 cat > conftest.
$ac_ext <<EOF
10579 #line 10580 "configure"
10580 #include "confdefs.h"
10581 #include <stdlib.h>
10582 #include <sys/types.h>
10583 #include <sys/stat.h>
10584 #include <unistd.h>
10587 char tpl[20]="/tmp/test.XXXXXX";
10588 int fd = mkstemp(tpl);
10589 if (fd == -1) exit(1);
10591 if (fstat(fd, &st) != 0) exit(1);
10592 if ((st.st_mode & 0777) != 0600) exit(1);
10596 if { (eval echo configure
:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10598 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10600 echo "configure: failed program was:" >&5
10601 cat conftest.
$ac_ext >&5
10603 samba_cv_HAVE_SECURE_MKSTEMP
=no
10610 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10611 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10612 cat >> confdefs.h
<<\EOF
10613 #define HAVE_SECURE_MKSTEMP 1
10618 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10619 echo "configure:10620: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10620 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10621 echo $ac_n "(cached) $ac_c" 1>&6
10624 if test "$cross_compiling" = yes; then
10625 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10627 cat > conftest.
$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include <unistd.h>
10631 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10633 if { (eval echo configure
:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10635 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10637 echo "configure: failed program was:" >&5
10638 cat conftest.
$ac_ext >&5
10640 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10647 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10648 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10649 cat >> confdefs.h
<<\EOF
10650 #define SYSCONF_SC_NGROUPS_MAX 1
10655 echo $ac_n "checking for root""... $ac_c" 1>&6
10656 echo "configure:10657: checking for root" >&5
10657 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10658 echo $ac_n "(cached) $ac_c" 1>&6
10661 if test "$cross_compiling" = yes; then
10662 samba_cv_HAVE_ROOT
=cross
10664 cat > conftest.
$ac_ext <<EOF
10665 #line 10666 "configure"
10666 #include "confdefs.h"
10667 main() { exit(getuid() != 0); }
10669 if { (eval echo configure
:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10671 samba_cv_HAVE_ROOT
=yes
10673 echo "configure: failed program was:" >&5
10674 cat conftest.
$ac_ext >&5
10676 samba_cv_HAVE_ROOT
=no
10683 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10684 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10685 cat >> confdefs.h
<<\EOF
10686 #define HAVE_ROOT 1
10690 echo "configure: warning: running as non-root will disable some tests" 1>&2
10694 # look for a method of finding the list of network interfaces
10696 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10697 echo "configure:10698: checking for iface AIX" >&5
10698 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10699 echo $ac_n "(cached) $ac_c" 1>&6
10702 if test "$cross_compiling" = yes; then
10703 samba_cv_HAVE_IFACE_AIX
=cross
10705 cat > conftest.
$ac_ext <<EOF
10706 #line 10707 "configure"
10707 #include "confdefs.h"
10709 #define HAVE_IFACE_AIX 1
10710 #define AUTOCONF_TEST 1
10711 #include "confdefs.h"
10712 #include "${srcdir-.}/lib/interfaces.c"
10714 if { (eval echo configure
:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10716 samba_cv_HAVE_IFACE_AIX
=yes
10718 echo "configure: failed program was:" >&5
10719 cat conftest.
$ac_ext >&5
10721 samba_cv_HAVE_IFACE_AIX
=no
10728 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10729 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10730 iface
=yes;cat >> confdefs.h
<<\EOF
10731 #define HAVE_IFACE_AIX 1
10736 if test $iface = no
; then
10737 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10738 echo "configure:10739: checking for iface ifconf" >&5
10739 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10743 if test "$cross_compiling" = yes; then
10744 samba_cv_HAVE_IFACE_IFCONF
=cross
10746 cat > conftest.
$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10750 #define HAVE_IFACE_IFCONF 1
10751 #define AUTOCONF_TEST 1
10752 #include "confdefs.h"
10753 #include "${srcdir-.}/lib/interfaces.c"
10755 if { (eval echo configure
:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10757 samba_cv_HAVE_IFACE_IFCONF
=yes
10759 echo "configure: failed program was:" >&5
10760 cat conftest.
$ac_ext >&5
10762 samba_cv_HAVE_IFACE_IFCONF
=no
10769 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10770 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10771 iface
=yes;cat >> confdefs.h
<<\EOF
10772 #define HAVE_IFACE_IFCONF 1
10778 if test $iface = no
; then
10779 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10780 echo "configure:10781: checking for iface ifreq" >&5
10781 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10782 echo $ac_n "(cached) $ac_c" 1>&6
10785 if test "$cross_compiling" = yes; then
10786 samba_cv_HAVE_IFACE_IFREQ
=cross
10788 cat > conftest.
$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10792 #define HAVE_IFACE_IFREQ 1
10793 #define AUTOCONF_TEST 1
10794 #include "confdefs.h"
10795 #include "${srcdir-.}/lib/interfaces.c"
10797 if { (eval echo configure
:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10799 samba_cv_HAVE_IFACE_IFREQ
=yes
10801 echo "configure: failed program was:" >&5
10802 cat conftest.
$ac_ext >&5
10804 samba_cv_HAVE_IFACE_IFREQ
=no
10811 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10812 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10813 iface
=yes;cat >> confdefs.h
<<\EOF
10814 #define HAVE_IFACE_IFREQ 1
10821 ################################################
10822 # look for a method of setting the effective uid
10824 if test $seteuid = no
; then
10825 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10826 echo "configure:10827: checking for setresuid" >&5
10827 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10831 if test "$cross_compiling" = yes; then
10832 samba_cv_USE_SETRESUID
=cross
10834 cat > conftest.
$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10838 #define AUTOCONF_TEST 1
10839 #define USE_SETRESUID 1
10840 #include "confdefs.h"
10841 #include "${srcdir-.}/lib/util_sec.c"
10843 if { (eval echo configure
:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10845 samba_cv_USE_SETRESUID
=yes
10847 echo "configure: failed program was:" >&5
10848 cat conftest.
$ac_ext >&5
10850 samba_cv_USE_SETRESUID
=no
10857 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10858 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10859 seteuid
=yes;cat >> confdefs.h
<<\EOF
10860 #define USE_SETRESUID 1
10867 if test $seteuid = no
; then
10868 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10869 echo "configure:10870: checking for setreuid" >&5
10870 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10874 if test "$cross_compiling" = yes; then
10875 samba_cv_USE_SETREUID
=cross
10877 cat > conftest.
$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10881 #define AUTOCONF_TEST 1
10882 #define USE_SETREUID 1
10883 #include "confdefs.h"
10884 #include "${srcdir-.}/lib/util_sec.c"
10886 if { (eval echo configure
:10887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10888 samba_cv_USE_SETREUID
=yes
10890 echo "configure: failed program was:" >&5
10891 cat conftest.
$ac_ext >&5
10893 samba_cv_USE_SETREUID
=no
10900 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10901 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10902 seteuid
=yes;cat >> confdefs.h
<<\EOF
10903 #define USE_SETREUID 1
10909 if test $seteuid = no
; then
10910 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10911 echo "configure:10912: checking for seteuid" >&5
10912 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10913 echo $ac_n "(cached) $ac_c" 1>&6
10916 if test "$cross_compiling" = yes; then
10917 samba_cv_USE_SETEUID
=cross
10919 cat > conftest.
$ac_ext <<EOF
10920 #line 10921 "configure"
10921 #include "confdefs.h"
10923 #define AUTOCONF_TEST 1
10924 #define USE_SETEUID 1
10925 #include "confdefs.h"
10926 #include "${srcdir-.}/lib/util_sec.c"
10928 if { (eval echo configure
:10929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10930 samba_cv_USE_SETEUID
=yes
10932 echo "configure: failed program was:" >&5
10933 cat conftest.
$ac_ext >&5
10935 samba_cv_USE_SETEUID
=no
10942 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10943 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10944 seteuid
=yes;cat >> confdefs.h
<<\EOF
10945 #define USE_SETEUID 1
10951 if test $seteuid = no
; then
10952 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10953 echo "configure:10954: checking for setuidx" >&5
10954 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10955 echo $ac_n "(cached) $ac_c" 1>&6
10958 if test "$cross_compiling" = yes; then
10959 samba_cv_USE_SETUIDX
=cross
10961 cat > conftest.
$ac_ext <<EOF
10962 #line 10963 "configure"
10963 #include "confdefs.h"
10965 #define AUTOCONF_TEST 1
10966 #define USE_SETUIDX 1
10967 #include "confdefs.h"
10968 #include "${srcdir-.}/lib/util_sec.c"
10970 if { (eval echo configure
:10971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10972 samba_cv_USE_SETUIDX
=yes
10974 echo "configure: failed program was:" >&5
10975 cat conftest.
$ac_ext >&5
10977 samba_cv_USE_SETUIDX
=no
10984 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10985 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10986 seteuid
=yes;cat >> confdefs.h
<<\EOF
10987 #define USE_SETUIDX 1
10994 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10995 echo "configure:10996: checking for working mmap" >&5
10996 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10997 echo $ac_n "(cached) $ac_c" 1>&6
11000 if test "$cross_compiling" = yes; then
11001 samba_cv_HAVE_MMAP
=cross
11003 cat > conftest.
$ac_ext <<EOF
11004 #line 11005 "configure"
11005 #include "confdefs.h"
11006 #include "${srcdir-.}/tests/shared_mmap.c"
11008 if { (eval echo configure
:11009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11010 samba_cv_HAVE_MMAP
=yes
11012 echo "configure: failed program was:" >&5
11013 cat conftest.
$ac_ext >&5
11015 samba_cv_HAVE_MMAP
=no
11022 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11023 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11024 cat >> confdefs.h
<<\EOF
11025 #define HAVE_MMAP 1
11030 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11031 echo "configure:11032: checking for ftruncate needs root" >&5
11032 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11033 echo $ac_n "(cached) $ac_c" 1>&6
11036 if test "$cross_compiling" = yes; then
11037 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11039 cat > conftest.
$ac_ext <<EOF
11040 #line 11041 "configure"
11041 #include "confdefs.h"
11042 #include "${srcdir-.}/tests/ftruncroot.c"
11044 if { (eval echo configure
:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11046 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11048 echo "configure: failed program was:" >&5
11049 cat conftest.
$ac_ext >&5
11051 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11058 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11059 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11060 cat >> confdefs.h
<<\EOF
11061 #define FTRUNCATE_NEEDS_ROOT 1
11066 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11067 echo "configure:11068: checking for fcntl locking" >&5
11068 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11069 echo $ac_n "(cached) $ac_c" 1>&6
11072 if test "$cross_compiling" = yes; then
11073 samba_cv_HAVE_FCNTL_LOCK
=cross
11075 cat > conftest.
$ac_ext <<EOF
11076 #line 11077 "configure"
11077 #include "confdefs.h"
11078 #include "${srcdir-.}/tests/fcntl_lock.c"
11080 if { (eval echo configure
:11081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11082 samba_cv_HAVE_FCNTL_LOCK
=yes
11084 echo "configure: failed program was:" >&5
11085 cat conftest.
$ac_ext >&5
11087 samba_cv_HAVE_FCNTL_LOCK
=no
11094 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11095 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11096 cat >> confdefs.h
<<\EOF
11097 #define HAVE_FCNTL_LOCK 1
11102 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11103 echo "configure:11104: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11104 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11105 echo $ac_n "(cached) $ac_c" 1>&6
11108 if test "$cross_compiling" = yes; then
11109 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11111 cat > conftest.
$ac_ext <<EOF
11112 #line 11113 "configure"
11113 #include "confdefs.h"
11114 #include "${srcdir-.}/tests/fcntl_lock64.c"
11116 if { (eval echo configure
:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11118 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11120 echo "configure: failed program was:" >&5
11121 cat conftest.
$ac_ext >&5
11123 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11130 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11131 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11132 cat >> confdefs.h
<<\EOF
11133 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11140 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11141 echo "configure:11142: checking for 64 bit fcntl locking" >&5
11142 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11143 echo $ac_n "(cached) $ac_c" 1>&6
11146 if test "$cross_compiling" = yes; then
11147 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11149 cat > conftest.
$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11153 #if defined(HAVE_UNISTD_H)
11154 #include <unistd.h>
11157 #include <stdlib.h>
11159 #ifdef HAVE_FCNTL_H
11163 #ifdef HAVE_SYS_FCNTL_H
11164 #include <sys/fcntl.h>
11166 main() { struct flock64 fl64;
11167 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11174 if { (eval echo configure
:11175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11176 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11178 echo "configure: failed program was:" >&5
11179 cat conftest.
$ac_ext >&5
11181 samba_cv_HAVE_STRUCT_FLOCK64
=no
11188 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11190 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11191 cat >> confdefs.h
<<\EOF
11192 #define HAVE_STRUCT_FLOCK64 1
11198 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11199 echo "configure:11200: checking for st_blocks in struct stat" >&5
11200 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11204 cat > conftest.
$ac_ext <<EOF
11205 #line 11206 "configure"
11206 #include "confdefs.h"
11207 #include <sys/types.h>
11208 #include <sys/stat.h>
11209 #include <unistd.h>
11211 struct stat st; st.st_blocks = 0;
11214 if { (eval echo configure
:11215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11216 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11218 echo "configure: failed program was:" >&5
11219 cat conftest.
$ac_ext >&5
11221 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11226 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11227 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11228 cat >> confdefs.h
<<\EOF
11229 #define HAVE_STAT_ST_BLOCKS 1
11236 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11237 echo "configure:11238: checking for broken RedHat 7.2 system header files" >&5
11238 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11242 cat > conftest.
$ac_ext <<EOF
11243 #line 11244 "configure"
11244 #include "confdefs.h"
11246 #ifdef HAVE_SYS_VFS_H
11247 #include <sys/vfs.h>
11249 #ifdef HAVE_SYS_CAPABILITY_H
11250 #include <sys/capability.h>
11257 if { (eval echo configure
:11258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11259 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11261 echo "configure: failed program was:" >&5
11262 cat conftest.
$ac_ext >&5
11264 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11269 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11270 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11271 cat >> confdefs.h
<<\EOF
11272 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11279 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11280 echo "configure:11281: checking for broken nisplus include files" >&5
11281 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11285 cat > conftest.
$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 #include <sys/acl.h>
11289 #if defined(HAVE_RPCSVC_NIS_H)
11290 #include <rpcsvc/nis.h>
11296 if { (eval echo configure
:11297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11298 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11300 echo "configure: failed program was:" >&5
11301 cat conftest.
$ac_ext >&5
11303 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11308 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11309 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11310 cat >> confdefs.h
<<\EOF
11311 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11317 #################################################
11318 # check for smbwrapper support
11319 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11320 echo "configure:11321: checking whether to use smbwrapper" >&5
11321 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11322 if test "${with_smbwrapper+set}" = set; then
11323 withval
="$with_smbwrapper"
11326 echo "$ac_t""yes" 1>&6
11327 cat >> confdefs.h
<<\EOF
11328 #define WITH_SMBWRAPPER 1
11331 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11333 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11336 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11339 # Conditions under which smbwrapper should not be built.
11341 if test x
$PICFLAG = x
; then
11342 echo No support
for PIC code
- disabling smbwrapper and smbsh
11345 elif test x
$ac_cv_func_syscall = xno
; then
11346 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11352 echo "$ac_t""no" 1>&6
11356 echo "$ac_t""no" 1>&6
11361 #################################################
11362 # check for the AFS filesystem
11363 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11364 echo "configure:11365: checking whether to use AFS" >&5
11365 # Check whether --with-afs or --without-afs was given.
11366 if test "${with_afs+set}" = set; then
11367 withval
="$with_afs"
11370 echo "$ac_t""yes" 1>&6
11371 cat >> confdefs.h
<<\EOF
11377 echo "$ac_t""no" 1>&6
11381 echo "$ac_t""no" 1>&6
11387 #################################################
11388 # check for the DFS auth system
11389 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11390 echo "configure:11391: checking whether to use DCE/DFS auth" >&5
11391 # Check whether --with-dfs or --without-dfs was given.
11392 if test "${with_dfs+set}" = set; then
11393 withval
="$with_dfs"
11396 echo "$ac_t""yes" 1>&6
11397 cat >> confdefs.h
<<\EOF
11403 echo "$ac_t""no" 1>&6
11407 echo "$ac_t""no" 1>&6
11412 #################################################
11413 # check for Kerberos IV auth system
11414 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11415 echo "configure:11416: checking whether to use Kerberos IV" >&5
11416 # Check whether --with-krb4 or --without-krb4 was given.
11417 if test "${with_krb4+set}" = set; then
11418 withval
="$with_krb4"
11421 echo "$ac_t""yes" 1>&6
11422 cat >> confdefs.h
<<\EOF
11423 #define KRB4_AUTH 1
11426 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11427 echo "configure:11428: checking for dn_expand in -lresolv" >&5
11428 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11430 echo $ac_n "(cached) $ac_c" 1>&6
11432 ac_save_LIBS
="$LIBS"
11433 LIBS
="-lresolv $LIBS"
11434 cat > conftest.
$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 /* Override any gcc2 internal prototype to avoid an error. */
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11446 if { (eval echo configure
:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11448 eval "ac_cv_lib_$ac_lib_var=yes"
11450 echo "configure: failed program was:" >&5
11451 cat conftest.
$ac_ext >&5
11453 eval "ac_cv_lib_$ac_lib_var=no"
11456 LIBS
="$ac_save_LIBS"
11459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11460 echo "$ac_t""yes" 1>&6
11461 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11463 cat >> confdefs.h
<<EOF
11464 #define $ac_tr_lib 1
11467 LIBS
="-lresolv $LIBS"
11470 echo "$ac_t""no" 1>&6
11473 LIBS
="$LIBS -lkrb -ldes"
11474 CFLAGS
="$CFLAGS -I$withval/include"
11475 LDFLAGS
="$LDFLAGS -L$withval/lib"
11478 echo "$ac_t""no" 1>&6
11482 echo "$ac_t""no" 1>&6
11487 #################################################
11488 # check for Kerberos 5 auth system
11489 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11490 echo "configure:11491: checking whether to use Kerberos 5" >&5
11491 # Check whether --with-krb5 or --without-krb5 was given.
11492 if test "${with_krb5+set}" = set; then
11493 withval
="$with_krb5"
11496 echo "$ac_t""yes" 1>&6
11497 cat >> confdefs.h
<<\EOF
11498 #define KRB5_AUTH 1
11501 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11502 CFLAGS
="$CFLAGS -I$withval/include"
11503 LDFLAGS
="$LDFLAGS -L$withval/lib"
11506 echo "$ac_t""no" 1>&6
11510 echo "$ac_t""no" 1>&6
11515 #################################################
11516 # check for automount support
11517 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11518 echo "configure:11519: checking whether to use AUTOMOUNT" >&5
11519 # Check whether --with-automount or --without-automount was given.
11520 if test "${with_automount+set}" = set; then
11521 withval
="$with_automount"
11524 echo "$ac_t""yes" 1>&6
11525 cat >> confdefs.h
<<\EOF
11526 #define WITH_AUTOMOUNT 1
11531 echo "$ac_t""no" 1>&6
11535 echo "$ac_t""no" 1>&6
11540 #################################################
11541 # check for smbmount support
11542 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11543 echo "configure:11544: checking whether to use SMBMOUNT" >&5
11544 # Check whether --with-smbmount or --without-smbmount was given.
11545 if test "${with_smbmount+set}" = set; then
11546 withval
="$with_smbmount"
11551 echo "$ac_t""yes" 1>&6
11552 cat >> confdefs.h
<<\EOF
11553 #define WITH_SMBMOUNT 1
11556 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11559 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11564 echo "$ac_t""no" 1>&6
11569 echo "$ac_t""no" 1>&6
11576 #################################################
11577 # check for a PAM password database
11578 with_pam_for_crypt
=no
11579 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11580 echo "configure:11581: checking whether to use PAM password database" >&5
11581 # Check whether --with-pam or --without-pam was given.
11582 if test "${with_pam+set}" = set; then
11583 withval
="$with_pam"
11586 echo "$ac_t""yes" 1>&6
11587 cat >> confdefs.h
<<\EOF
11592 with_pam_for_crypt
=yes
11595 echo "$ac_t""no" 1>&6
11599 echo "$ac_t""no" 1>&6
11604 # we can't build a pam module if we don't have pam.
11605 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11606 echo "configure:11607: checking for pam_get_data in -lpam" >&5
11607 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11609 echo $ac_n "(cached) $ac_c" 1>&6
11611 ac_save_LIBS
="$LIBS"
11613 cat > conftest.
$ac_ext <<EOF
11614 #line 11615 "configure"
11615 #include "confdefs.h"
11616 /* Override any gcc2 internal prototype to avoid an error. */
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11619 char pam_get_data();
11625 if { (eval echo configure
:11626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11627 eval "ac_cv_lib_$ac_lib_var=yes"
11629 echo "configure: failed program was:" >&5
11630 cat conftest.
$ac_ext >&5
11632 eval "ac_cv_lib_$ac_lib_var=no"
11635 LIBS
="$ac_save_LIBS"
11638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11639 echo "$ac_t""yes" 1>&6
11640 cat >> confdefs.h
<<\EOF
11641 #define HAVE_LIBPAM 1
11645 echo "$ac_t""no" 1>&6
11649 #################################################
11650 # check for pam_smbpass support
11651 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11652 echo "configure:11653: checking whether to use pam_smbpass" >&5
11653 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11654 if test "${with_pam_smbpass+set}" = set; then
11655 withval
="$with_pam_smbpass"
11658 echo "$ac_t""yes" 1>&6
11660 # Conditions under which pam_smbpass should not be built.
11662 if test x
$PICFLAG = x
; then
11663 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11665 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11666 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11669 cat >> confdefs.h
<<\EOF
11670 #define WITH_PAM_SMBPASS 1
11673 PAM_MOD
="bin/pam_smbpass.so"
11677 echo "$ac_t""no" 1>&6
11681 echo "$ac_t""no" 1>&6
11687 ###############################################
11688 # test for where we get crypt() from, but only
11690 if test $with_pam_for_crypt = no
; then
11691 for ac_func
in crypt
11693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11694 echo "configure:11695: checking for $ac_func" >&5
11695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11696 echo $ac_n "(cached) $ac_c" 1>&6
11698 cat > conftest.
$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11701 /* System header to define __stub macros and hopefully few prototypes,
11702 which can conflict with char $ac_func(); below. */
11703 #include <assert.h>
11704 /* Override any gcc2 internal prototype to avoid an error. */
11705 /* We use char because int might match the return type of a gcc2
11706 builtin and then its argument prototype would still apply. */
11711 /* The GNU C library defines this for functions which it implements
11712 to always fail with ENOSYS. Some functions are actually named
11713 something starting with __ and the normal name is an alias. */
11714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11722 if { (eval echo configure
:11723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11724 eval "ac_cv_func_$ac_func=yes"
11726 echo "configure: failed program was:" >&5
11727 cat conftest.
$ac_ext >&5
11729 eval "ac_cv_func_$ac_func=no"
11734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11735 echo "$ac_t""yes" 1>&6
11736 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11737 cat >> confdefs.h
<<EOF
11738 #define $ac_tr_func 1
11742 echo "$ac_t""no" 1>&6
11746 if test x
"$ac_cv_func_crypt" = x
"no"; then
11747 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11748 echo "configure:11749: checking for crypt in -lcrypt" >&5
11749 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11751 echo $ac_n "(cached) $ac_c" 1>&6
11753 ac_save_LIBS
="$LIBS"
11754 LIBS
="-lcrypt $LIBS"
11755 cat > conftest.
$ac_ext <<EOF
11756 #line 11757 "configure"
11757 #include "confdefs.h"
11758 /* Override any gcc2 internal prototype to avoid an error. */
11759 /* We use char because int might match the return type of a gcc2
11760 builtin and then its argument prototype would still apply. */
11767 if { (eval echo configure
:11768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11769 eval "ac_cv_lib_$ac_lib_var=yes"
11771 echo "configure: failed program was:" >&5
11772 cat conftest.
$ac_ext >&5
11774 eval "ac_cv_lib_$ac_lib_var=no"
11777 LIBS
="$ac_save_LIBS"
11780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11781 echo "$ac_t""yes" 1>&6
11782 LIBS
="$LIBS -lcrypt";
11783 cat >> confdefs.h
<<\EOF
11784 #define HAVE_CRYPT 1
11788 echo "$ac_t""no" 1>&6
11795 ## moved after the check for -lcrypt in order to
11796 ## ensure that the necessary libraries are included
11797 ## check checking for truncated salt. Wrapped by the
11798 ## $with_pam_for_crypt variable as above --jerry
11800 if test $with_pam_for_crypt = no
; then
11801 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11802 echo "configure:11803: checking for a crypt that needs truncated salt" >&5
11803 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11804 echo $ac_n "(cached) $ac_c" 1>&6
11807 if test "$cross_compiling" = yes; then
11808 samba_cv_HAVE_TRUNCATED_SALT
=cross
11810 cat > conftest.
$ac_ext <<EOF
11811 #line 11812 "configure"
11812 #include "confdefs.h"
11813 #include "${srcdir-.}/tests/crypttest.c"
11815 if { (eval echo configure
:11816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11817 samba_cv_HAVE_TRUNCATED_SALT
=no
11819 echo "configure: failed program was:" >&5
11820 cat conftest.
$ac_ext >&5
11822 samba_cv_HAVE_TRUNCATED_SALT
=yes
11829 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11830 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11831 cat >> confdefs.h
<<\EOF
11832 #define HAVE_TRUNCATED_SALT 1
11839 ########################################################################################
11841 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11843 ########################################################################################
11845 ## set the with_smbpasswd_sam as the default
11846 with_smbpasswd_sam
=yes
11850 #################################################
11851 # check for a TDB password database
11852 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11853 echo "configure:11854: checking whether to use TDB SAM database" >&5
11854 # Check whether --with-tdbsam or --without-tdbsam was given.
11855 if test "${with_tdbsam+set}" = set; then
11856 withval
="$with_tdbsam"
11859 echo "$ac_t""yes" 1>&6
11860 cat >> confdefs.h
<<\EOF
11861 #define WITH_TDB_SAM 1
11864 with_smbpasswd_sam
=no
11867 echo "$ac_t""no" 1>&6
11871 echo "$ac_t""no" 1>&6
11876 #################################################
11877 # check for a LDAP password database
11878 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11879 echo "configure:11880: checking whether to use LDAP SAM database" >&5
11880 # Check whether --with-ldapsam or --without-ldapsam was given.
11881 if test "${with_ldapsam+set}" = set; then
11882 withval
="$with_ldapsam"
11885 echo "$ac_t""yes" 1>&6
11886 cat >> confdefs.h
<<\EOF
11887 #define WITH_LDAP_SAM 1
11890 LIBS
="-lldap -llber -lresolv $LIBS"
11891 with_smbpasswd_sam
=no
11894 echo "$ac_t""no" 1>&6
11898 echo "$ac_t""no" 1>&6
11903 #################################################
11904 # check for a NISPLUS password database
11905 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11906 echo "configure:11907: checking whether to use NISPLUS SAM database" >&5
11907 # Check whether --with-nisplussam or --without-nisplussam was given.
11908 if test "${with_nisplussam+set}" = set; then
11909 withval
="$with_nisplussam"
11912 echo "$ac_t""yes" 1>&6
11913 cat >> confdefs.h
<<\EOF
11914 #define WITH_NISPLUS_SAM 1
11917 with_smbpasswd_sam
=no
11920 echo "$ac_t""no" 1>&6
11924 echo "$ac_t""no" 1>&6
11929 ################################################
11930 # This test should come last because the
11931 # smbpasswd SAM is only used if another format
11932 # has not been defined
11933 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11934 echo "configure:11935: checking whether to use traditional smbpasswd file" >&5
11935 if test $with_smbpasswd_sam = yes; then
11936 echo "$ac_t""yes" 1>&6
11937 cat >> confdefs.h
<<\EOF
11938 #define WITH_SMBPASSWD_SAM 1
11943 echo "$ac_t""no" 1>&6
11944 PDBEDIT
=bin
/pdbedit
11947 ########################################################################################
11949 ## END OF TESTS FOR SAM BACKENDS.
11951 ########################################################################################
11953 #################################################
11954 # check for a NISPLUS_HOME support
11955 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11956 echo "configure:11957: checking whether to use NISPLUS_HOME" >&5
11957 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11958 if test "${with_nisplus_home+set}" = set; then
11959 withval
="$with_nisplus_home"
11962 echo "$ac_t""yes" 1>&6
11963 cat >> confdefs.h
<<\EOF
11964 #define WITH_NISPLUS_HOME 1
11969 echo "$ac_t""no" 1>&6
11973 echo "$ac_t""no" 1>&6
11978 #################################################
11979 # check for the secure socket layer
11980 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11981 echo "configure:11982: checking whether to use SSL" >&5
11982 # Check whether --with-ssl or --without-ssl was given.
11983 if test "${with_ssl+set}" = set; then
11984 withval
="$with_ssl"
11987 echo "$ac_t""yes" 1>&6
11988 cat >> confdefs.h
<<\EOF
11992 withval
="/usr/local/ssl" # default
11994 if test "${with_sslinc+set}" = set; then
11996 withval
="$with_sslinc"
11999 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12000 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12003 CFLAGS
="-I${withval} $CFLAGS"
12009 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12013 if test "${with_ssllib+set}" = set; then
12015 withval
="$with_ssllib"
12018 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12019 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12022 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12028 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12032 LIBS
="-lssl -lcrypto $LIBS"
12034 # if test ! -d ${withval}; then
12035 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12039 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12043 echo "$ac_t""no" 1>&6
12047 echo "$ac_t""no" 1>&6
12052 #################################################
12053 # check for syslog logging
12054 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12055 echo "configure:12056: checking whether to use syslog logging" >&5
12056 # Check whether --with-syslog or --without-syslog was given.
12057 if test "${with_syslog+set}" = set; then
12058 withval
="$with_syslog"
12061 echo "$ac_t""yes" 1>&6
12062 cat >> confdefs.h
<<\EOF
12063 #define WITH_SYSLOG 1
12068 echo "$ac_t""no" 1>&6
12072 echo "$ac_t""no" 1>&6
12077 #################################################
12078 # check for a shared memory profiling support
12079 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12080 echo "configure:12081: checking whether to use profiling" >&5
12081 # Check whether --with-profiling-data or --without-profiling-data was given.
12082 if test "${with_profiling_data+set}" = set; then
12083 withval
="$with_profiling_data"
12086 echo "$ac_t""yes" 1>&6
12087 cat >> confdefs.h
<<\EOF
12088 #define WITH_PROFILE 1
12093 echo "$ac_t""no" 1>&6
12097 echo "$ac_t""no" 1>&6
12103 #################################################
12104 # check for experimental disk-quotas support
12105 QUOTAOBJS
=smbd
/noquotas.o
12107 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12108 echo "configure:12109: checking whether to support disk-quotas" >&5
12109 # Check whether --with-quotas or --without-quotas was given.
12110 if test "${with_quotas+set}" = set; then
12111 withval
="$with_quotas"
12114 echo "$ac_t""yes" 1>&6
12115 QUOTAOBJS
=smbd
/quotas.o
12118 # Check for kernel 2.4.x quota braindamage...
12119 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12120 echo "configure:12121: checking for linux 2.4.x quota braindamage.." >&5
12121 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12125 cat > conftest.
$ac_ext <<EOF
12126 #line 12127 "configure"
12127 #include "confdefs.h"
12129 #include <sys/types.h>
12130 #include <asm/types.h>
12131 #include <linux/quota.h>
12132 #include <mntent.h>
12133 #include <linux/unistd.h>
12135 struct mem_dqblk D;
12138 if { (eval echo configure
:12139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12140 samba_cv_linux_2_4_quota_braindamage
=yes
12142 echo "configure: failed program was:" >&5
12143 cat conftest.
$ac_ext >&5
12145 samba_cv_linux_2_4_quota_braindamage
=no
12150 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12151 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
12152 cat >> confdefs.h
<<\EOF
12153 #define LINUX_QUOTAS_2 1
12157 cat >> confdefs.h
<<\EOF
12158 #define LINUX_QUOTAS_1 1
12168 echo "$ac_t""no" 1>&6
12172 echo "$ac_t""no" 1>&6
12178 #################################################
12179 # check for experimental utmp accounting
12181 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12182 echo "configure:12183: checking whether to support utmp accounting" >&5
12183 # Check whether --with-utmp or --without-utmp was given.
12184 if test "${with_utmp+set}" = set; then
12185 withval
="$with_utmp"
12188 echo "$ac_t""yes" 1>&6
12189 cat >> confdefs.h
<<\EOF
12190 #define WITH_UTMP 1
12195 echo "$ac_t""no" 1>&6
12199 echo "$ac_t""no" 1>&6
12204 #################################################
12205 # check for MS Dfs support
12207 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12208 echo "configure:12209: checking whether to support Microsoft Dfs" >&5
12209 # Check whether --with-msdfs or --without-msdfs was given.
12210 if test "${with_msdfs+set}" = set; then
12211 withval
="$with_msdfs"
12214 echo "$ac_t""yes" 1>&6
12215 cat >> confdefs.h
<<\EOF
12216 #define WITH_MSDFS 1
12221 echo "$ac_t""no" 1>&6
12225 echo "$ac_t""no" 1>&6
12230 #################################################
12231 # check for Samba VFS support
12233 echo $ac_n "checking whether to support the experimental Samba vfs""... $ac_c" 1>&6
12234 echo "configure:12235: checking whether to support the experimental Samba vfs" >&5
12235 # Check whether --with-vfs or --without-vfs was given.
12236 if test "${with_vfs+set}" = set; then
12237 withval
="$with_vfs"
12240 echo "$ac_t""yes" 1>&6
12241 cat >> confdefs.h
<<\EOF
12247 echo "$ac_t""no" 1>&6
12251 echo "$ac_t""no" 1>&6
12257 #################################################
12258 # should we build libsmbclient?
12260 LIBSMBCLIENT_SHARED
=
12262 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12263 echo "configure:12264: checking whether to build the libsmbclient shared library" >&5
12264 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12265 if test "${with_libsmbclient+set}" = set; then
12266 withval
="$with_libsmbclient"
12269 if test $BLDSHARED = true
; then
12270 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12271 LIBSMBCLIENT
=libsmbclient
12272 echo "$ac_t""yes" 1>&6
12274 echo "$ac_t""no shared library support" 1>&6
12278 echo "$ac_t""no" 1>&6
12282 echo "$ac_t""no" 1>&6
12287 #################################################
12288 # these tests are taken from the GNU fileutils package
12289 echo "checking how to get filesystem space usage" 1>&6
12290 echo "configure:12291: checking how to get filesystem space usage" >&5
12293 # Test for statvfs64.
12294 if test $space = no
; then
12296 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12297 echo "configure:12298: checking statvfs64 function (SVR4)" >&5
12298 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12299 echo $ac_n "(cached) $ac_c" 1>&6
12301 if test "$cross_compiling" = yes; then
12302 fu_cv_sys_stat_statvfs64
=cross
12304 cat > conftest.
$ac_ext <<EOF
12305 #line 12306 "configure"
12306 #include "confdefs.h"
12308 #if defined(HAVE_UNISTD_H)
12309 #include <unistd.h>
12311 #include <sys/types.h>
12312 #include <sys/statvfs.h>
12315 struct statvfs64 fsd;
12316 exit (statvfs64 (".", &fsd));
12319 if { (eval echo configure
:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12321 fu_cv_sys_stat_statvfs64
=yes
12323 echo "configure: failed program was:" >&5
12324 cat conftest.
$ac_ext >&5
12326 fu_cv_sys_stat_statvfs64
=no
12333 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12334 if test $fu_cv_sys_stat_statvfs64 = yes; then
12336 cat >> confdefs.h
<<\EOF
12337 #define STAT_STATVFS64 1
12343 # Perform only the link test since it seems there are no variants of the
12344 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12345 # because that got a false positive on SCO OSR5. Adding the declaration
12346 # of a `struct statvfs' causes this test to fail (as it should) on such
12347 # systems. That system is reported to work fine with STAT_STATFS4 which
12348 # is what it gets when this test fails.
12349 if test $space = no
; then
12351 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12352 echo "configure:12353: checking statvfs function (SVR4)" >&5
12353 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12354 echo $ac_n "(cached) $ac_c" 1>&6
12356 cat > conftest.
$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 #include <sys/types.h>
12360 #include <sys/statvfs.h>
12362 struct statvfs fsd; statvfs (0, &fsd);
12365 if { (eval echo configure
:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12367 fu_cv_sys_stat_statvfs
=yes
12369 echo "configure: failed program was:" >&5
12370 cat conftest.
$ac_ext >&5
12372 fu_cv_sys_stat_statvfs
=no
12377 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12378 if test $fu_cv_sys_stat_statvfs = yes; then
12380 cat >> confdefs.h
<<\EOF
12381 #define STAT_STATVFS 1
12387 if test $space = no
; then
12388 # DEC Alpha running OSF/1
12389 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12390 echo "configure:12391: checking for 3-argument statfs function (DEC OSF/1)" >&5
12391 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12392 echo $ac_n "(cached) $ac_c" 1>&6
12394 if test "$cross_compiling" = yes; then
12395 fu_cv_sys_stat_statfs3_osf1
=no
12397 cat > conftest.
$ac_ext <<EOF
12398 #line 12399 "configure"
12399 #include "confdefs.h"
12401 #include <sys/param.h>
12402 #include <sys/types.h>
12403 #include <sys/mount.h>
12408 exit (statfs (".", &fsd, sizeof (struct statfs)));
12411 if { (eval echo configure
:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12413 fu_cv_sys_stat_statfs3_osf1
=yes
12415 echo "configure: failed program was:" >&5
12416 cat conftest.
$ac_ext >&5
12418 fu_cv_sys_stat_statfs3_osf1
=no
12425 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12426 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12428 cat >> confdefs.h
<<\EOF
12429 #define STAT_STATFS3_OSF1 1
12435 if test $space = no
; then
12437 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12438 echo "configure:12439: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12439 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12440 echo $ac_n "(cached) $ac_c" 1>&6
12442 if test "$cross_compiling" = yes; then
12443 fu_cv_sys_stat_statfs2_bsize
=no
12445 cat > conftest.
$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12449 #ifdef HAVE_SYS_PARAM_H
12450 #include <sys/param.h>
12452 #ifdef HAVE_SYS_MOUNT_H
12453 #include <sys/mount.h>
12455 #ifdef HAVE_SYS_VFS_H
12456 #include <sys/vfs.h>
12462 exit (statfs (".", &fsd));
12465 if { (eval echo configure
:12466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12467 fu_cv_sys_stat_statfs2_bsize
=yes
12469 echo "configure: failed program was:" >&5
12470 cat conftest.
$ac_ext >&5
12472 fu_cv_sys_stat_statfs2_bsize
=no
12479 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12480 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12482 cat >> confdefs.h
<<\EOF
12483 #define STAT_STATFS2_BSIZE 1
12489 if test $space = no
; then
12491 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12492 echo "configure:12493: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12493 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12494 echo $ac_n "(cached) $ac_c" 1>&6
12496 if test "$cross_compiling" = yes; then
12497 fu_cv_sys_stat_statfs4
=no
12499 cat > conftest.
$ac_ext <<EOF
12500 #line 12501 "configure"
12501 #include "confdefs.h"
12502 #include <sys/types.h>
12503 #include <sys/statfs.h>
12507 exit (statfs (".", &fsd, sizeof fsd, 0));
12510 if { (eval echo configure
:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12512 fu_cv_sys_stat_statfs4
=yes
12514 echo "configure: failed program was:" >&5
12515 cat conftest.
$ac_ext >&5
12517 fu_cv_sys_stat_statfs4
=no
12524 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12525 if test $fu_cv_sys_stat_statfs4 = yes; then
12527 cat >> confdefs.h
<<\EOF
12528 #define STAT_STATFS4 1
12534 if test $space = no
; then
12535 # 4.4BSD and NetBSD
12536 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12537 echo "configure:12538: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12538 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12539 echo $ac_n "(cached) $ac_c" 1>&6
12541 if test "$cross_compiling" = yes; then
12542 fu_cv_sys_stat_statfs2_fsize
=no
12544 cat > conftest.
$ac_ext <<EOF
12545 #line 12546 "configure"
12546 #include "confdefs.h"
12547 #include <sys/types.h>
12548 #ifdef HAVE_SYS_PARAM_H
12549 #include <sys/param.h>
12551 #ifdef HAVE_SYS_MOUNT_H
12552 #include <sys/mount.h>
12558 exit (statfs (".", &fsd));
12561 if { (eval echo configure
:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12563 fu_cv_sys_stat_statfs2_fsize
=yes
12565 echo "configure: failed program was:" >&5
12566 cat conftest.
$ac_ext >&5
12568 fu_cv_sys_stat_statfs2_fsize
=no
12575 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12576 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12578 cat >> confdefs.h
<<\EOF
12579 #define STAT_STATFS2_FSIZE 1
12585 if test $space = no
; then
12587 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12588 echo "configure:12589: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12589 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12590 echo $ac_n "(cached) $ac_c" 1>&6
12592 if test "$cross_compiling" = yes; then
12593 fu_cv_sys_stat_fs_data
=no
12595 cat > conftest.
$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12598 #include <sys/types.h>
12599 #ifdef HAVE_SYS_PARAM_H
12600 #include <sys/param.h>
12602 #ifdef HAVE_SYS_MOUNT_H
12603 #include <sys/mount.h>
12605 #ifdef HAVE_SYS_FS_TYPES_H
12606 #include <sys/fs_types.h>
12610 struct fs_data fsd;
12611 /* Ultrix's statfs returns 1 for success,
12612 0 for not mounted, -1 for failure. */
12613 exit (statfs (".", &fsd) != 1);
12616 if { (eval echo configure
:12617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12618 fu_cv_sys_stat_fs_data
=yes
12620 echo "configure: failed program was:" >&5
12621 cat conftest.
$ac_ext >&5
12623 fu_cv_sys_stat_fs_data
=no
12630 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12631 if test $fu_cv_sys_stat_fs_data = yes; then
12633 cat >> confdefs.h
<<\EOF
12634 #define STAT_STATFS2_FS_DATA 1
12641 # As a gating factor for large file support, in order to
12642 # use <4GB files we must have the following minimal support
12644 # long long, and a 64 bit off_t or off64_t.
12645 # If we don't have all of these then disable large
12648 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12649 echo "configure:12650: checking if large file support can be enabled" >&5
12650 cat > conftest.
$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12654 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12655 #include <sys/types.h>
12664 if { (eval echo configure
:12665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12666 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12668 echo "configure: failed program was:" >&5
12669 cat conftest.
$ac_ext >&5
12671 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12674 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12675 echo "$ac_t""yes" 1>&6
12676 cat >> confdefs.h
<<\EOF
12677 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12681 echo "$ac_t""no" 1>&6
12684 # Check whether --with-spinlocks or --without-spinlocks was given.
12685 if test "${with_spinlocks+set}" = set; then
12686 withval
="$with_spinlocks"
12690 if test "x$with_spinlocks" = "xyes"; then
12691 cat >> confdefs.h
<<\EOF
12692 #define USE_SPINLOCKS 1
12696 case "$host_cpu" in
12698 cat >> confdefs.h
<<\EOF
12699 #define SPARC_SPINLOCKS 1
12704 i386|i486|i586|i686
)
12705 cat >> confdefs.h
<<\EOF
12706 #define INTEL_SPINLOCKS 1
12712 cat >> confdefs.h
<<\EOF
12713 #define MIPS_SPINLOCKS 1
12719 cat >> confdefs.h
<<\EOF
12720 #define POWERPC_SPINLOCKS 1
12727 #################################################
12728 # check for ACL support
12730 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12731 echo "configure:12732: checking whether to support ACLs" >&5
12732 # Check whether --with-acl-support or --without-acl-support was given.
12733 if test "${with_acl_support+set}" = set; then
12734 withval
="$with_acl_support"
12740 echo "$ac_t""Using UnixWare ACLs" 1>&6
12741 cat >> confdefs.h
<<\EOF
12742 #define HAVE_UNIXWARE_ACLS 1
12747 echo "$ac_t""Using solaris ACLs" 1>&6
12748 cat >> confdefs.h
<<\EOF
12749 #define HAVE_SOLARIS_ACLS 1
12754 echo "$ac_t""Using HPUX ACLs" 1>&6
12755 cat >> confdefs.h
<<\EOF
12756 #define HAVE_HPUX_ACLS 1
12761 echo "$ac_t""Using IRIX ACLs" 1>&6
12762 cat >> confdefs.h
<<\EOF
12763 #define HAVE_IRIX_ACLS 1
12768 echo "$ac_t""Using AIX ACLs" 1>&6
12769 cat >> confdefs.h
<<\EOF
12770 #define HAVE_AIX_ACLS 1
12775 echo "$ac_t""Using Tru64 ACLs" 1>&6
12776 cat >> confdefs.h
<<\EOF
12777 #define HAVE_TRU64_ACLS 1
12780 LIBS
="$LIBS -lpacl"
12783 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12784 echo "configure:12785: checking for acl_get_file in -lacl" >&5
12785 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12787 echo $ac_n "(cached) $ac_c" 1>&6
12789 ac_save_LIBS
="$LIBS"
12791 cat > conftest.
$ac_ext <<EOF
12792 #line 12793 "configure"
12793 #include "confdefs.h"
12794 /* Override any gcc2 internal prototype to avoid an error. */
12795 /* We use char because int might match the return type of a gcc2
12796 builtin and then its argument prototype would still apply. */
12797 char acl_get_file();
12803 if { (eval echo configure
:12804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12805 eval "ac_cv_lib_$ac_lib_var=yes"
12807 echo "configure: failed program was:" >&5
12808 cat conftest.
$ac_ext >&5
12810 eval "ac_cv_lib_$ac_lib_var=no"
12813 LIBS
="$ac_save_LIBS"
12816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12817 echo "$ac_t""yes" 1>&6
12818 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12819 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12820 cat >> confdefs.h
<<EOF
12821 #define $ac_tr_lib 1
12827 echo "$ac_t""no" 1>&6
12830 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12831 echo "configure:12832: checking for ACL support" >&5
12832 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12833 echo $ac_n "(cached) $ac_c" 1>&6
12836 cat > conftest.
$ac_ext <<EOF
12837 #line 12838 "configure"
12838 #include "confdefs.h"
12839 #include <sys/types.h>
12840 #include <sys/acl.h>
12842 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12845 if { (eval echo configure
:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12847 samba_cv_HAVE_POSIX_ACLS
=yes
12849 echo "configure: failed program was:" >&5
12850 cat conftest.
$ac_ext >&5
12852 samba_cv_HAVE_POSIX_ACLS
=no
12857 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12858 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12859 echo "$ac_t""Using posix ACLs" 1>&6
12860 cat >> confdefs.h
<<\EOF
12861 #define HAVE_POSIX_ACLS 1
12864 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12865 echo "configure:12866: checking for acl_get_perm_np" >&5
12866 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
12870 cat > conftest.
$ac_ext <<EOF
12871 #line 12872 "configure"
12872 #include "confdefs.h"
12873 #include <sys/types.h>
12874 #include <sys/acl.h>
12876 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12879 if { (eval echo configure
:12880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12881 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12883 echo "configure: failed program was:" >&5
12884 cat conftest.
$ac_ext >&5
12886 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12891 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12892 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12893 cat >> confdefs.h
<<\EOF
12894 #define HAVE_ACL_GET_PERM_NP 1
12903 echo "$ac_t""no" 1>&6
12904 cat >> confdefs.h
<<\EOF
12905 #define HAVE_NO_ACLS 1
12911 cat >> confdefs.h
<<\EOF
12912 #define HAVE_NO_ACLS 1
12915 echo "$ac_t""no" 1>&6
12920 #################################################
12921 # check for the historical SAMBA installation
12923 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
12924 # Put all binaries under the /usr/local/samba/bin directory.
12928 #################################################
12929 # Check whether winbind is supported on this platform. If so we need to
12930 # build and install client programs (WINBIND_TARGETS), sbin programs
12931 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12933 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12934 echo "configure:12935: checking whether to build winbind" >&5
12936 # Initially, the value of $host_os decides whether winbind is supported
12939 *linux
*|
*solaris
*|
*irix
*|
*hpux11
*)
12944 winbind_no_reason
=", unsupported on $host_os"
12948 # Check the setting of --with-winbindd
12950 # Check whether --with-winbind or --without-winbind was given.
12951 if test "${with_winbind+set}" = set; then
12952 withval
="$with_winbind"
12966 # We need unix domain sockets for winbind
12968 if test x
"$HAVE_WINBIND" = x
"yes"; then
12969 if test x
"$samba_cv_unixsocket" = x
"no"; then
12970 winbind_no_reason
=", no unix domain socket support on $host_os"
12975 # Display test results
12977 if test x
"$HAVE_WINBIND" = x
"yes"; then
12979 echo "$ac_t""yes" 1>&6
12981 WINBIND_TARGETS
="bin/wbinfo"
12982 WINBIND_STARGETS
="bin/winbindd"
12983 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
12985 case "$with_pam" in
12987 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
12991 echo "$ac_t""no$winbind_no_reason" 1>&6
12994 WINBIND_STARGETS
=""
12995 WINBIND_LTARGETS
=""
12996 WINBIND_PAM_TARGETS
=""
12999 # Substitution time!
13006 #################################################
13007 # final configure stuff
13008 echo "checking configure summary"
13009 if test "$cross_compiling" = yes; then
13012 cat > conftest.
$ac_ext <<EOF
13013 #line 13014 "configure"
13014 #include "confdefs.h"
13015 #include "${srcdir-.}/tests/summary.c"
13017 if { (eval echo configure
:13018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13019 echo "configure OK";
13021 echo "configure: failed program was:" >&5
13022 cat conftest.
$ac_ext >&5
13024 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13034 cat > confcache
<<\EOF
13035 # This file is a shell script that caches the results of configure
13036 # tests run on this system so they can be shared between configure
13037 # scripts and configure runs. It is not useful on other systems.
13038 # If it contains results you don't want to keep, you may remove or edit it.
13040 # By default, configure uses ./config.cache as the cache file,
13041 # creating it if it does not exist already. You can give configure
13042 # the --cache-file=FILE option to use a different cache file; that is
13043 # what configure does when it calls configure scripts in
13044 # subdirectories, so they share the cache.
13045 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13046 # config.status only pays attention to the cache file if you give it the
13047 # --recheck option to rerun configure.
13050 # The following way of writing the cache mishandles newlines in values,
13051 # but we know of no workaround that is simple, portable, and efficient.
13052 # So, don't put newlines in cache variables' values.
13053 # Ultrix sh set writes to stderr and can't be redirected directly,
13054 # and sets the high bit in the cache file unless we assign to the vars.
13056 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13058 # `set' does not quote correctly, so add quotes (double-quote substitution
13059 # turns \\\\ into \\, and sed turns \\ into \).
13061 -e "s/'/'\\\\''/g" \
13062 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13065 # `set' quotes correctly as required by POSIX, so do not add quotes.
13066 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13069 if cmp -s $cache_file confcache
; then
13072 if test -w $cache_file; then
13073 echo "updating cache $cache_file"
13074 cat confcache
> $cache_file
13076 echo "not updating unwritable cache $cache_file"
13081 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13083 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13084 # Let make expand exec_prefix.
13085 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13087 # Any assignment to VPATH causes Sun make to only execute
13088 # the first set of double-colon rules, so remove it if not needed.
13089 # If there is a colon in the path, we need to keep it.
13090 if test "x$srcdir" = x.
; then
13091 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13094 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13096 DEFS
=-DHAVE_CONFIG_H
13098 # Without the "./", some shells look in PATH for config.status.
13099 : ${CONFIG_STATUS=./config.status}
13101 echo creating
$CONFIG_STATUS
13102 rm -f $CONFIG_STATUS
13103 cat > $CONFIG_STATUS <<EOF
13105 # Generated automatically by configure.
13106 # Run this file to recreate the current configuration.
13107 # This directory was configured as follows,
13108 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13110 # $0 $ac_configure_args
13112 # Compiler output produced by configure, useful for debugging
13113 # configure, is in ./config.log if it exists.
13115 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13118 case "\$ac_option" in
13119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13120 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13121 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13122 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13123 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13125 -help | --help | --hel | --he | --h)
13126 echo "\$ac_cs_usage"; exit 0 ;;
13127 *) echo "\$ac_cs_usage"; exit 1 ;;
13131 ac_given_srcdir=$srcdir
13132 ac_given_INSTALL="$INSTALL"
13134 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13136 cat >> $CONFIG_STATUS <<EOF
13138 # Protect against being on the right side of a sed subst in config.status.
13139 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13140 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13144 s%@CFLAGS@%$CFLAGS%g
13145 s%@CPPFLAGS@%$CPPFLAGS%g
13146 s%@CXXFLAGS@%$CXXFLAGS%g
13147 s%@FFLAGS@%$FFLAGS%g
13149 s%@LDFLAGS@%$LDFLAGS%g
13151 s%@exec_prefix@%$exec_prefix%g
13152 s%@prefix@%$prefix%g
13153 s%@program_transform_name@%$program_transform_name%g
13154 s%@bindir@%$bindir%g
13155 s%@sbindir@%$sbindir%g
13156 s%@libexecdir@%$libexecdir%g
13157 s%@datadir@%$datadir%g
13158 s%@sysconfdir@%$sysconfdir%g
13159 s%@sharedstatedir@%$sharedstatedir%g
13160 s%@localstatedir@%$localstatedir%g
13161 s%@libdir@%$libdir%g
13162 s%@includedir@%$includedir%g
13163 s%@oldincludedir@%$oldincludedir%g
13164 s%@infodir@%$infodir%g
13165 s%@mandir@%$mandir%g
13166 s%@codepagedir@%$codepagedir%g
13167 s%@configdir@%$configdir%g
13168 s%@lockdir@%$lockdir%g
13169 s%@logfilebase@%$logfilebase%g
13170 s%@privatedir@%$privatedir%g
13171 s%@swatdir@%$swatdir%g
13172 s%@RUNPROG@%$RUNPROG%g
13173 s%@MPROGS@%$MPROGS%g
13174 s%@LDSHFLAGS@%$LDSHFLAGS%g
13175 s%@SONAMEFLAG@%$SONAMEFLAG%g
13177 s%@HOST_OS@%$HOST_OS%g
13178 s%@PAM_MOD@%$PAM_MOD%g
13179 s%@PDBEDIT@%$PDBEDIT%g
13181 s%@WRAP32@%$WRAP32%g
13182 s%@PICFLAG@%$PICFLAG%g
13183 s%@PICSUFFIX@%$PICSUFFIX%g
13184 s%@SHLIBEXT@%$SHLIBEXT%g
13185 s%@BLDSHARED@%$BLDSHARED%g
13186 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13187 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13189 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13190 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13191 s%@INSTALL_DATA@%$INSTALL_DATA%g
13193 s%@BROKEN_CC@%$BROKEN_CC%g
13195 s%@host_alias@%$host_alias%g
13196 s%@host_cpu@%$host_cpu%g
13197 s%@host_vendor@%$host_vendor%g
13198 s%@host_os@%$host_os%g
13199 s%@target@%$target%g
13200 s%@target_alias@%$target_alias%g
13201 s%@target_cpu@%$target_cpu%g
13202 s%@target_vendor@%$target_vendor%g
13203 s%@target_os@%$target_os%g
13205 s%@build_alias@%$build_alias%g
13206 s%@build_cpu@%$build_cpu%g
13207 s%@build_vendor@%$build_vendor%g
13208 s%@build_os@%$build_os%g
13210 s%@LIBOBJS@%$LIBOBJS%g
13211 s%@TERMLIBS@%$TERMLIBS%g
13212 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13214 s%@QUOTAOBJS@%$QUOTAOBJS%g
13215 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13216 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13217 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13218 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13219 s%@builddir@%$builddir%g
13224 cat >> $CONFIG_STATUS <<\EOF
13226 # Split the substitutions into bite-sized pieces for seds with
13227 # small command number limits, like on Digital OSF/1 and HP-UX.
13228 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13229 ac_file
=1 # Number of current file.
13230 ac_beg
=1 # First line for current file.
13231 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13234 while $ac_more_lines; do
13235 if test $ac_beg -gt 1; then
13236 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13238 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13240 if test ! -s conftest.s
$ac_file; then
13241 ac_more_lines
=false
13242 rm -f conftest.s
$ac_file
13244 if test -z "$ac_sed_cmds"; then
13245 ac_sed_cmds
="sed -f conftest.s$ac_file"
13247 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13249 ac_file
=`expr $ac_file + 1`
13251 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13254 if test -z "$ac_sed_cmds"; then
13259 cat >> $CONFIG_STATUS <<EOF
13261 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13263 cat >> $CONFIG_STATUS <<\EOF
13264 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13265 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13267 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13268 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13269 *) ac_file_in
="${ac_file}.in" ;;
13272 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13274 # Remove last slash and all that follows it. Not all systems have dirname.
13275 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13276 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13277 # The file is in a subdirectory.
13278 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13279 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13280 # A "../" for each directory in $ac_dir_suffix.
13281 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13283 ac_dir_suffix
= ac_dots
=
13286 case "$ac_given_srcdir" in
13288 if test -z "$ac_dots"; then top_srcdir
=.
13289 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13290 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13291 *) # Relative path.
13292 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13293 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13296 case "$ac_given_INSTALL" in
13297 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13298 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13301 echo creating
"$ac_file"
13303 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13305 *Makefile
*) ac_comsub
="1i\\
13306 # $configure_input" ;;
13310 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13312 s%@configure_input@%$configure_input%g
13313 s%@srcdir@%$srcdir%g
13314 s%@top_srcdir@%$top_srcdir%g
13315 s%@INSTALL@%$INSTALL%g
13316 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13320 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13321 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13323 # ac_d sets the value in "#define NAME VALUE" lines.
13324 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13325 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13328 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13329 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13330 ac_uB
='\([ ]\)%\1#\2define\3'
13333 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13334 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13335 ac_eB
='$%\1#\2define\3'
13339 if test "${CONFIG_HEADERS+set}" != set; then
13341 cat >> $CONFIG_STATUS <<EOF
13342 CONFIG_HEADERS="include/config.h"
13344 cat >> $CONFIG_STATUS <<\EOF
13346 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13347 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13349 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13350 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13351 *) ac_file_in
="${ac_file}.in" ;;
13354 echo creating
$ac_file
13356 rm -f conftest.frag conftest.
in conftest.out
13357 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13358 cat $ac_file_inputs > conftest.
in
13362 # Transform confdefs.h into a sed script conftest.vals that substitutes
13363 # the proper values into config.h.in to produce config.h. And first:
13364 # Protect against being on the right side of a sed subst in config.status.
13365 # Protect against being in an unquoted here document in config.status.
13366 rm -f conftest.vals
13367 cat > conftest.hdr
<<\EOF
13370 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13374 sed -n -f conftest.hdr confdefs.h > conftest.vals
13377 # This sed command replaces #undef with comments. This is necessary, for
13378 # example, in the case of _POSIX_SOURCE, which is predefined and required
13379 # on some systems where configure will not decide to define it.
13380 cat >> conftest.vals <<\EOF
13381 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13384 # Break up conftest.vals because some shells have a limit on
13385 # the size of here documents, and old seds have small limits too.
13387 rm -f conftest.tail
13390 ac_lines=`grep -c . conftest.vals
`
13391 # grep -c gives empty output for an empty file on some AIX systems.
13392 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13393 # Write a limited-size here document to conftest.frag.
13394 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13395 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13397 sed -f conftest.frag conftest.in > conftest.out
13399 mv conftest.out conftest.in
13400 ' >> $CONFIG_STATUS
13401 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13402 rm -f conftest.vals
13403 mv conftest.tail conftest.vals
13405 rm -f conftest.vals
13407 cat >> $CONFIG_STATUS <<\EOF
13408 rm -f conftest.frag conftest.h
13409 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13410 cat conftest.in >> conftest.h
13412 if cmp -s $ac_file conftest.h 2>/dev/null; then
13413 echo "$ac_file is unchanged"
13416 # Remove last slash and all that follows it. Not all systems have dirname.
13417 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
13418 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13419 # The file is in a subdirectory.
13420 test ! -d "$ac_dir" && mkdir "$ac_dir"
13423 mv conftest.h $ac_file
13428 cat >> $CONFIG_STATUS <<EOF
13431 cat >> $CONFIG_STATUS <<\EOF
13435 chmod +x $CONFIG_STATUS
13436 rm -fr confdefs* $ac_clean_files
13437 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1