3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-cups Turn on CUPS support (default=auto)"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-ads Active Directory support (default yes)"
52 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
54 --with-ldap LDAP support (default yes)"
56 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)"
58 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)"
60 --disable-mysqltest Do not try to compile and run a test MYSQL program"
62 --with-xml-prefix=PFX Prefix where libxml is installed (optional)"
64 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)"
66 --disable-xmltest Do not try to compile and run a test LIBXML program"
68 --with-automount Include automount support (default=no)"
70 --with-smbmount Include smbmount (Linux only) support (default=no)"
72 --with-pam Include PAM support (default=no)"
74 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
76 --with-sam Build new (experimental) SAM database (default=no)"
78 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
80 --with-tdbsam Include experimental TDB SAM support (default=no)"
82 --with-nisplussam Include NISPLUS SAM support (default=no)"
84 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
86 --with-syslog Include experimental SYSLOG support (default=no)"
88 --with-profiling-data Include gathering source code profile information (default=no)"
90 --with-quotas Include experimental disk-quota support (default=no)"
92 --with-utmp Include experimental utmp accounting (default=no)"
94 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
96 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
98 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
100 --with-acl-support Include ACL support (default=no)"
102 --with-sendfile-support Check for sendfile support (default=yes)"
104 --with-winbind Build winbind (default, if supported by OS)"
106 --with-included-popt use bundled popt library, not from system"
108 --with-python=PYTHONNAME build Python libraries"
110 # Initialize some variables set by options.
111 # The variables have the same names as the options, with
112 # dashes changed to underlines.
114 cache_file
=.
/config.cache
123 program_transform_name
=s
,x
,x
,
131 bindir
='${exec_prefix}/bin'
132 sbindir
='${exec_prefix}/sbin'
133 libexecdir
='${exec_prefix}/libexec'
134 datadir
='${prefix}/share'
135 sysconfdir
='${prefix}/etc'
136 sharedstatedir
='${prefix}/com'
137 localstatedir
='${prefix}/var'
138 libdir
='${exec_prefix}/lib'
139 includedir
='${prefix}/include'
140 oldincludedir
='/usr/include'
141 infodir
='${prefix}/info'
142 mandir
='${prefix}/man'
144 # Initialize some other variables.
147 SHELL
=${CONFIG_SHELL-/bin/sh}
148 # Maximum number of lines to put in a shell here document.
155 # If the previous option needs an argument, assign it.
156 if test -n "$ac_prev"; then
157 eval "$ac_prev=\$ac_option"
163 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
173 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
174 bindir
="$ac_optarg" ;;
176 -build |
--build |
--buil |
--bui |
--bu)
178 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
179 build
="$ac_optarg" ;;
181 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
182 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
183 ac_prev
=cache_file
;;
184 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
185 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
186 cache_file
="$ac_optarg" ;;
188 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
190 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
192 datadir
="$ac_optarg" ;;
194 -disable-* |
--disable-*)
195 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
201 eval "enable_${ac_feature}=no" ;;
203 -enable-* |
--enable-*)
204 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
205 # Reject names that are not valid shell variable names.
206 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
207 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
209 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
214 eval "enable_${ac_feature}='$ac_optarg'" ;;
216 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
217 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
218 |
--exec |
--exe |
--ex)
219 ac_prev
=exec_prefix
;;
220 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
221 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
222 |
--exec=* |
--exe=* |
--ex=*)
223 exec_prefix
="$ac_optarg" ;;
225 -gas |
--gas |
--ga |
--g)
226 # Obsolete; use --with-gas.
229 -help |
--help |
--hel |
--he)
230 # Omit some internal or obsolete options to make the list less imposing.
231 # This message is too long to be a string in the A/UX 3.1 sh.
233 Usage: configure [options] [host]
234 Options: [defaults in brackets after descriptions]
236 --cache-file=FILE cache test results in FILE
237 --help print this message
238 --no-create do not create output files
239 --quiet, --silent do not print \`checking...' messages
240 --version print the version of autoconf that created configure
241 Directory and file names:
242 --prefix=PREFIX install architecture-independent files in PREFIX
244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
246 --bindir=DIR user executables in DIR [EPREFIX/bin]
247 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
248 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
249 --datadir=DIR read-only architecture-independent data in DIR
251 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
252 --sharedstatedir=DIR modifiable architecture-independent data in DIR
254 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
255 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
256 --includedir=DIR C header files in DIR [PREFIX/include]
257 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
258 --infodir=DIR info documentation in DIR [PREFIX/info]
259 --mandir=DIR man documentation in DIR [PREFIX/man]
260 --srcdir=DIR find the sources in DIR [configure dir or ..]
261 --program-prefix=PREFIX prepend PREFIX to installed program names
262 --program-suffix=SUFFIX append SUFFIX to installed program names
263 --program-transform-name=PROGRAM
264 run sed PROGRAM on installed program names
268 --build=BUILD configure for building on BUILD [BUILD=HOST]
269 --host=HOST configure for HOST [guessed]
270 --target=TARGET configure for TARGET [TARGET=HOST]
271 Features and packages:
272 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
273 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
274 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
275 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
276 --x-includes=DIR X include files are in DIR
277 --x-libraries=DIR X library files are in DIR
279 if test -n "$ac_help"; then
280 echo "--enable and --with options recognized:$ac_help"
284 -host |
--host |
--hos |
--ho)
286 -host=* |
--host=* |
--hos=* |
--ho=*)
289 -includedir |
--includedir |
--includedi |
--included |
--include \
290 |
--includ |
--inclu |
--incl |
--inc)
291 ac_prev
=includedir
;;
292 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
293 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
294 includedir
="$ac_optarg" ;;
296 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
298 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
299 infodir
="$ac_optarg" ;;
301 -libdir |
--libdir |
--libdi |
--libd)
303 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
304 libdir
="$ac_optarg" ;;
306 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
307 |
--libexe |
--libex |
--libe)
308 ac_prev
=libexecdir
;;
309 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
310 |
--libexe=* |
--libex=* |
--libe=*)
311 libexecdir
="$ac_optarg" ;;
313 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
314 |
--localstate |
--localstat |
--localsta |
--localst \
315 |
--locals |
--local |
--loca |
--loc |
--lo)
316 ac_prev
=localstatedir
;;
317 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
318 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
319 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
320 localstatedir
="$ac_optarg" ;;
322 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
324 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
325 mandir
="$ac_optarg" ;;
328 # Obsolete; use --without-fp.
331 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
335 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
336 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
339 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
340 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
341 |
--oldin |
--oldi |
--old |
--ol |
--o)
342 ac_prev
=oldincludedir
;;
343 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
344 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
345 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
346 oldincludedir
="$ac_optarg" ;;
348 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
350 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
351 prefix
="$ac_optarg" ;;
353 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
354 |
--program-pre |
--program-pr |
--program-p)
355 ac_prev
=program_prefix
;;
356 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
357 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
358 program_prefix
="$ac_optarg" ;;
360 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
361 |
--program-suf |
--program-su |
--program-s)
362 ac_prev
=program_suffix
;;
363 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
364 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
365 program_suffix
="$ac_optarg" ;;
367 -program-transform-name |
--program-transform-name \
368 |
--program-transform-nam |
--program-transform-na \
369 |
--program-transform-n |
--program-transform- \
370 |
--program-transform |
--program-transfor \
371 |
--program-transfo |
--program-transf \
372 |
--program-trans |
--program-tran \
373 |
--progr-tra |
--program-tr |
--program-t)
374 ac_prev
=program_transform_name
;;
375 -program-transform-name=* |
--program-transform-name=* \
376 |
--program-transform-nam=* |
--program-transform-na=* \
377 |
--program-transform-n=* |
--program-transform-=* \
378 |
--program-transform=* |
--program-transfor=* \
379 |
--program-transfo=* |
--program-transf=* \
380 |
--program-trans=* |
--program-tran=* \
381 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
382 program_transform_name
="$ac_optarg" ;;
384 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
385 |
-silent |
--silent |
--silen |
--sile |
--sil)
388 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
390 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
392 sbindir
="$ac_optarg" ;;
394 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
395 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
396 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
398 ac_prev
=sharedstatedir
;;
399 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
400 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
401 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
403 sharedstatedir
="$ac_optarg" ;;
405 -site |
--site |
--sit)
407 -site=* |
--site=* |
--sit=*)
410 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
412 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
413 srcdir
="$ac_optarg" ;;
415 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
416 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
417 ac_prev
=sysconfdir
;;
418 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
419 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
420 sysconfdir
="$ac_optarg" ;;
422 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
424 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
425 target
="$ac_optarg" ;;
427 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
430 -version |
--version |
--versio |
--versi |
--vers)
431 echo "configure generated by autoconf version 2.13"
435 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
436 # Reject names that are not valid shell variable names.
437 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
438 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
440 ac_package
=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}='$ac_optarg'" ;;
447 -without-* |
--without-*)
448 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
449 # Reject names that are not valid shell variable names.
450 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
453 ac_package
=`echo $ac_package| sed 's/-/_/g'`
454 eval "with_${ac_package}=no" ;;
457 # Obsolete; use --with-x.
460 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
461 |
--x-incl |
--x-inc |
--x-in |
--x-i)
462 ac_prev
=x_includes
;;
463 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
464 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
465 x_includes
="$ac_optarg" ;;
467 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
468 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
469 ac_prev
=x_libraries
;;
470 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
471 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
472 x_libraries
="$ac_optarg" ;;
474 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
478 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
479 echo "configure: warning: $ac_option: invalid host type" 1>&2
481 if test "x$nonopt" != xNONE
; then
482 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
490 if test -n "$ac_prev"; then
491 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
496 # File descriptor usage:
499 # 2 errors and warnings
500 # 3 some systems may open it to /dev/tty
501 # 4 used on the Kubota Titan
502 # 6 checking for... messages and results
503 # 5 compiler messages saved in config.log
504 if test "$silent" = yes; then
512 This file contains any messages produced by compilers while
513 running configure, to aid debugging if configure makes a mistake.
516 # Strip out --no-create and --no-recursion so they do not pile up.
517 # Also quote any args containing shell metacharacters.
522 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
523 |
--no-cr |
--no-c) ;;
524 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
525 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
526 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
527 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
528 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
533 # Only set these to C if already set. These must not be set unconditionally
534 # because not all systems understand e.g. LANG=C (notably SCO).
535 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
536 # Non-C LC_CTYPE values break the ctype check.
537 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
538 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
539 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
540 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
543 rm -rf conftest
* confdefs.h
544 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
547 # A filename unique to this package, relative to the directory that
548 # configure is in, which we can look for to find out if srcdir is correct.
549 ac_unique_file
=include
/includes.h
551 # Find the source files, if location was not specified.
552 if test -z "$srcdir"; then
553 ac_srcdir_defaulted
=yes
554 # Try the directory containing this script, then its parent.
556 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
557 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
559 if test ! -r $srcdir/$ac_unique_file; then
563 ac_srcdir_defaulted
=no
565 if test ! -r $srcdir/$ac_unique_file; then
566 if test "$ac_srcdir_defaulted" = yes; then
567 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
569 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
572 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
574 # Prefer explicitly selected file to automatically selected ones.
575 if test -z "$CONFIG_SITE"; then
576 if test "x$prefix" != xNONE
; then
577 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
579 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
582 for ac_site_file
in $CONFIG_SITE; do
583 if test -r "$ac_site_file"; then
584 echo "loading site script $ac_site_file"
589 if test -r "$cache_file"; then
590 echo "loading cache $cache_file"
593 echo "creating cache $cache_file"
598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
599 ac_cpp
='$CPP $CPPFLAGS'
600 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
601 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
602 cross_compiling
=$ac_cv_prog_cc_cross
606 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
607 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
608 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
615 ac_n
= ac_c
='\c' ac_t
=
621 #################################################
622 # Directory handling stuff to support both the
623 # legacy SAMBA directories and FHS compliant
627 # Check whether --with-fhs or --without-fhs was given.
628 if test "${with_fhs+set}" = set; then
630 configdir
="${sysconfdir}/samba"
631 lockdir
="\${VARDIR}/cache/samba"
632 piddir
="\${VARDIR}/run/samba"
633 logfilebase
="\${VARDIR}/log/samba"
634 privatedir
="\${CONFIGDIR}/private"
635 libdir
="\${prefix}/lib/samba"
636 swatdir
="\${DATADIR}/samba/swat"
638 configdir
="\${LIBDIR}"
639 logfilebase
="\${VARDIR}"
640 lockdir
="\${VARDIR}/locks"
641 piddir
="\${VARDIR}/locks"
642 privatedir
="\${prefix}/private"
643 swatdir
="\${prefix}/swat"
647 #################################################
648 # set private directory location
649 # Check whether --with-privatedir or --without-privatedir was given.
650 if test "${with_privatedir+set}" = set; then
651 withval
="$with_privatedir"
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
660 privatedir
="$withval"
666 #################################################
667 # set lock directory location
668 # Check whether --with-lockdir or --without-lockdir was given.
669 if test "${with_lockdir+set}" = set; then
670 withval
="$with_lockdir"
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
685 #################################################
686 # set pid directory location
687 # Check whether --with-piddir or --without-piddir was given.
688 if test "${with_piddir+set}" = set; then
689 withval
="$with_piddir"
693 # Just in case anybody calls it without argument
695 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
704 #################################################
705 # set SWAT directory location
706 # Check whether --with-swatdir or --without-swatdir was given.
707 if test "${with_swatdir+set}" = set; then
708 withval
="$with_swatdir"
712 # Just in case anybody does it
714 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
723 #################################################
724 # set configuration directory location
725 # Check whether --with-configdir or --without-configdir was given.
726 if test "${with_configdir+set}" = set; then
727 withval
="$with_configdir"
731 # Just in case anybody does it
733 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
742 #################################################
743 # set log directory location
744 # Check whether --with-logfilebase or --without-logfilebase was given.
745 if test "${with_logfilebase+set}" = set; then
746 withval
="$with_logfilebase"
750 # Just in case anybody does it
752 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
755 logfilebase
="$withval"
789 # compile with optimization and without debugging by default
790 CFLAGS
="-O ${CFLAGS}"
792 # Check whether --enable-debug or --disable-debug was given.
793 if test "${enable_debug+set}" = set; then
794 enableval
="$enable_debug"
795 if eval "test x$enable_debug = xyes"; then
796 CFLAGS
="${CFLAGS} -g"
801 # Check whether --enable-developer or --disable-developer was given.
802 if test "${enable_developer+set}" = set; then
803 enableval
="$enable_developer"
804 if eval "test x$enable_developer = xyes"; then
805 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
810 # Check whether --enable-krb5developer or --disable-krb5developer was given.
811 if test "${enable_krb5developer+set}" = set; then
812 enableval
="$enable_krb5developer"
813 if eval "test x$enable_krb5developer = xyes"; then
814 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
819 # Check whether --enable-dmalloc or --disable-dmalloc was given.
820 if test "${enable_dmalloc+set}" = set; then
821 enableval
="$enable_dmalloc"
826 if test "x$enable_dmalloc" = xyes
828 cat >> confdefs.h
<<\EOF
829 #define ENABLE_DMALLOC 1
832 cat >> confdefs.h
<<\EOF
833 #define DMALLOC_FUNC_CHECK 1
836 LIBS
="$LIBS -ldmalloc"
839 # Extract the first word of "gcc", so it can be a program name with args.
840 set dummy gcc
; ac_word
=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 if test -n "$CC"; then
847 ac_cv_prog_CC
="$CC" # Let the user override the test.
849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
851 for ac_dir
in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir
=.
853 if test -f $ac_dir/$ac_word; then
862 if test -n "$CC"; then
863 echo "$ac_t""$CC" 1>&6
865 echo "$ac_t""no" 1>&6
868 if test -z "$CC"; then
869 # Extract the first word of "cc", so it can be a program name with args.
870 set dummy cc
; ac_word
=$2
871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
872 echo "configure:873: checking for $ac_word" >&5
873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 if test -n "$CC"; then
877 ac_cv_prog_CC
="$CC" # Let the user override the test.
879 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
882 for ac_dir
in $ac_dummy; do
883 test -z "$ac_dir" && ac_dir
=.
884 if test -f $ac_dir/$ac_word; then
885 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
894 if test $ac_prog_rejected = yes; then
895 # We found a bogon in the path, so make sure we never use it.
896 set dummy
$ac_cv_prog_CC
898 if test $# -gt 0; then
899 # We chose a different compiler from the bogus one.
900 # However, it has the same basename, so the bogon will be chosen
901 # first if we set CC to just the basename; use the full file name.
903 set dummy
"$ac_dir/$ac_word" "$@"
911 if test -n "$CC"; then
912 echo "$ac_t""$CC" 1>&6
914 echo "$ac_t""no" 1>&6
917 if test -z "$CC"; then
920 # Extract the first word of "cl", so it can be a program name with args.
921 set dummy cl
; ac_word
=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 if test -n "$CC"; then
928 ac_cv_prog_CC
="$CC" # Let the user override the test.
930 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
932 for ac_dir
in $ac_dummy; do
933 test -z "$ac_dir" && ac_dir
=.
934 if test -f $ac_dir/$ac_word; then
943 if test -n "$CC"; then
944 echo "$ac_t""$CC" 1>&6
946 echo "$ac_t""no" 1>&6
951 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
954 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
955 echo "configure:956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
959 ac_cpp
='$CPP $CPPFLAGS'
960 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
961 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
962 cross_compiling
=$ac_cv_prog_cc_cross
964 cat > conftest.
$ac_ext << EOF
966 #line 967 "configure"
967 #include "confdefs.h"
971 if { (eval echo configure
:972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
972 ac_cv_prog_cc_works
=yes
973 # If we can't run a trivial program, we are probably using a cross compiler.
974 if (.
/conftest
; exit) 2>/dev
/null
; then
975 ac_cv_prog_cc_cross
=no
977 ac_cv_prog_cc_cross
=yes
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
982 ac_cv_prog_cc_works
=no
986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
987 ac_cpp
='$CPP $CPPFLAGS'
988 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
989 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
990 cross_compiling
=$ac_cv_prog_cc_cross
992 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
993 if test $ac_cv_prog_cc_works = no
; then
994 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
996 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
997 echo "configure:998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
998 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
999 cross_compiling
=$ac_cv_prog_cc_cross
1001 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether we are using GNU C" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 cat > conftest.c
<<EOF
1011 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1018 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1020 if test $ac_cv_prog_gcc = yes; then
1026 ac_test_CFLAGS
="${CFLAGS+set}"
1027 ac_save_CFLAGS
="$CFLAGS"
1029 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1030 echo "configure:1031: checking whether ${CC-cc} accepts -g" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 echo 'void f(){}' > conftest.c
1035 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1044 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1045 if test "$ac_test_CFLAGS" = set; then
1046 CFLAGS
="$ac_save_CFLAGS"
1047 elif test $ac_cv_prog_cc_g = yes; then
1048 if test "$GCC" = yes; then
1054 if test "$GCC" = yes; then
1062 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1063 if test -f $ac_dir/install-sh
; then
1065 ac_install_sh
="$ac_aux_dir/install-sh -c"
1067 elif test -f $ac_dir/install.sh
; then
1069 ac_install_sh
="$ac_aux_dir/install.sh -c"
1073 if test -z "$ac_aux_dir"; then
1074 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1076 ac_config_guess
=$ac_aux_dir/config.guess
1077 ac_config_sub
=$ac_aux_dir/config.sub
1078 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1080 # Find a good install program. We prefer a C program (faster),
1081 # so one script is as good as another. But avoid the broken or
1082 # incompatible versions:
1083 # SysV /etc/install, /usr/sbin/install
1084 # SunOS /usr/etc/install
1085 # IRIX /sbin/install
1087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1090 # ./install, which can be erroneously created by make from ./install.sh.
1091 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1092 echo "configure:1093: checking for a BSD compatible install" >&5
1093 if test -z "$INSTALL"; then
1094 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1098 for ac_dir
in $PATH; do
1099 # Account for people who put trailing slashes in PATH elements.
1101 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1103 # OSF1 and SCO ODT 3.0 have their own names for install.
1104 # Don't use installbsd from OSF since it installs stuff as root
1106 for ac_prog
in ginstall scoinst
install; do
1107 if test -f $ac_dir/$ac_prog; then
1108 if test $ac_prog = install &&
1109 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1110 # AIX install. It has an incompatible calling convention.
1113 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1124 if test "${ac_cv_path_install+set}" = set; then
1125 INSTALL
="$ac_cv_path_install"
1127 # As a last resort, use the slow shell script. We don't cache a
1128 # path for INSTALL within a source directory, because that will
1129 # break other packages using the cache if that directory is
1130 # removed, or if the path is relative.
1131 INSTALL
="$ac_install_sh"
1134 echo "$ac_t""$INSTALL" 1>&6
1136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1137 # It thinks the first close brace ends the variable substitution.
1138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1142 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1144 for ac_prog
in mawk gawk nawk
awk
1146 # Extract the first word of "$ac_prog", so it can be a program name with args.
1147 set dummy
$ac_prog; ac_word
=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$AWK"; then
1154 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1158 for ac_dir
in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir
=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_AWK
="$ac_prog"
1168 AWK
="$ac_cv_prog_AWK"
1169 if test -n "$AWK"; then
1170 echo "$ac_t""$AWK" 1>&6
1172 echo "$ac_t""no" 1>&6
1175 test -n "$AWK" && break
1180 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1181 echo "configure:1182: checking if the linker ($LD) is GNU ld" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1186 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1187 ac_cv_prog_gnu_ld
=yes
1189 ac_cv_prog_gnu_ld
=no
1193 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1196 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1197 echo "configure:1198: checking for POSIXized ISC" >&5
1198 if test -d /etc
/conf
/kconfig.d
&&
1199 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1201 echo "$ac_t""yes" 1>&6
1202 ISC
=yes # If later tests want to check for ISC.
1203 cat >> confdefs.h
<<\EOF
1204 #define _POSIX_SOURCE 1
1207 if test "$GCC" = yes; then
1213 echo "$ac_t""no" 1>&6
1218 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1219 echo "configure:1220: checking for Cygwin environment" >&5
1220 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 cat > conftest.
$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1230 #define __CYGWIN__ __CYGWIN32__
1235 if { (eval echo configure
:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.
$ac_ext >&5
1248 echo "$ac_t""$ac_cv_cygwin" 1>&6
1250 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1251 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1252 echo "configure:1253: checking for mingw32 environment" >&5
1253 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 cat > conftest.
$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1264 if { (eval echo configure
:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1268 echo "configure: failed program was:" >&5
1269 cat conftest.
$ac_ext >&5
1277 echo "$ac_t""$ac_cv_mingw32" 1>&6
1279 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1282 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1283 echo "configure:1284: checking for executable suffix" >&5
1284 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1291 echo 'int main () { return 0; }' > conftest.
$ac_ext
1293 if { (eval echo configure
:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1294 for file in conftest.
*; do
1296 *.
$ac_ext |
*.c |
*.o |
*.obj
) ;;
1297 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1301 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1304 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1309 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1310 echo "$ac_t""${ac_cv_exeext}" 1>&6
1314 if test "x$CC" != xcc
; then
1315 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1316 echo "configure:1317: checking whether $CC and cc understand -c and -o together" >&5
1318 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether cc understands -c and -o together" >&5
1321 set dummy
$CC; ac_cc
="`echo $2 |
1322 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1323 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 echo 'foo(){}' > conftest.c
1327 # Make sure it works both with $CC and with simple cc.
1328 # We do the test twice because some compilers refuse to overwrite an
1329 # existing .o file with -o, though they will create one.
1330 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1331 if { (eval echo configure
:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1332 test -f conftest.o
&& { (eval echo configure
:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1334 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1335 if test "x$CC" != xcc
; then
1336 # Test first that cc exists at all.
1337 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1338 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1339 if { (eval echo configure
:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1340 test -f conftest.o
&& { (eval echo configure
:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1345 # cc exists but doesn't like -o.
1346 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1351 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1356 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1357 echo "$ac_t""yes" 1>&6
1359 echo "$ac_t""no" 1>&6
1360 cat >> confdefs.h
<<\EOF
1361 #define NO_MINUS_C_MINUS_O 1
1366 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1373 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1374 echo "configure:1375: checking that the C compiler understands volatile" >&5
1375 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.
$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <sys/types.h>
1387 if { (eval echo configure
:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1389 samba_cv_volatile
=yes
1391 echo "configure: failed program was:" >&5
1392 cat conftest.
$ac_ext >&5
1394 samba_cv_volatile
=no
1399 echo "$ac_t""$samba_cv_volatile" 1>&6
1400 if test x
"$samba_cv_volatile" = x
"yes"; then
1401 cat >> confdefs.h
<<\EOF
1402 #define HAVE_VOLATILE 1
1409 # Do some error checking and defaulting for the host and target type.
1411 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1414 # 1. You are not allowed to specify --host, --target, and nonopt at the
1416 # 2. Host defaults to nonopt.
1417 # 3. If nonopt is not specified, then host defaults to the current host,
1418 # as determined by config.guess.
1419 # 4. Target and build default to nonopt.
1420 # 5. If nonopt is not specified, then target and build default to host.
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 case $host---$target---$nonopt in
1425 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1426 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1430 # Make sure we can run config.sub.
1431 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1432 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1435 echo $ac_n "checking host system type""... $ac_c" 1>&6
1436 echo "configure:1437: checking host system type" >&5
1439 case "$host_alias" in
1443 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1444 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1446 *) host_alias
=$nonopt ;;
1450 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1451 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$ac_t""$host" 1>&6
1456 echo $ac_n "checking target system type""... $ac_c" 1>&6
1457 echo "configure:1458: checking target system type" >&5
1459 target_alias
=$target
1460 case "$target_alias" in
1463 NONE
) target_alias
=$host_alias ;;
1464 *) target_alias
=$nonopt ;;
1468 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1469 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 echo "$ac_t""$target" 1>&6
1474 echo $ac_n "checking build system type""... $ac_c" 1>&6
1475 echo "configure:1476: checking build system type" >&5
1478 case "$build_alias" in
1481 NONE
) build_alias
=$host_alias ;;
1482 *) build_alias
=$nonopt ;;
1486 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1487 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$ac_t""$build" 1>&6
1492 test "$host_alias" != "$target_alias" &&
1493 test "$program_prefix$program_suffix$program_transform_name" = \
1495 program_prefix
=${target_alias}-
1499 *irix6
*) cat >> confdefs.h
<<\EOF
1500 #include <standards.h>
1508 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1509 echo "configure:1510: checking config.cache system type" >&5
1510 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1511 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1512 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1513 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1514 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1515 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1516 echo "$ac_t""different" 1>&6
1517 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1519 echo "$ac_t""same" 1>&6
1521 ac_cv_host_system_type
="$host"
1522 ac_cv_build_system_type
="$build"
1523 ac_cv_target_system_type
="$target"
1529 # Config CPPFLAG settings for strange OS's that must be set
1530 # before other tests.
1533 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1536 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1537 echo "configure:1538: checking whether ${CC-cc} accepts -Ae" >&5
1538 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 echo 'void f(){}' > conftest.c
1542 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1543 ac_cv_prog_cc_Ae
=yes
1551 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1552 # mmap on HPUX is completely broken...
1553 cat >> confdefs.h
<<\EOF
1554 #define MMAP_BLACKLIST 1
1557 if test $ac_cv_prog_cc_Ae = yes; then
1558 CPPFLAGS
="$CPPFLAGS -Ae"
1561 # Defines needed for HPUX support.
1562 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1563 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1567 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1568 cat >> confdefs.h
<<\EOF
1569 #define USE_BOTH_CRYPT_CALLS 1
1572 cat >> confdefs.h
<<\EOF
1573 #define _HPUX_SOURCE 1
1576 cat >> confdefs.h
<<\EOF
1577 #define _POSIX_SOURCE 1
1580 cat >> confdefs.h
<<\EOF
1581 #define _ALIGNMENT_REQUIRED 1
1584 cat >> confdefs.h
<<\EOF
1585 #define _MAX_ALIGNMENT 4
1590 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1591 cat >> confdefs.h
<<\EOF
1592 #define USE_BOTH_CRYPT_CALLS 1
1595 cat >> confdefs.h
<<\EOF
1596 #define _HPUX_SOURCE 1
1599 cat >> confdefs.h
<<\EOF
1600 #define _POSIX_SOURCE 1
1603 cat >> confdefs.h
<<\EOF
1604 #define _LARGEFILE64_SOURCE 1
1607 cat >> confdefs.h
<<\EOF
1608 #define _ALIGNMENT_REQUIRED 1
1611 cat >> confdefs.h
<<\EOF
1612 #define _MAX_ALIGNMENT 4
1621 # CRAY Unicos has broken const handling
1623 echo "$ac_t""disabling const" 1>&6
1624 CPPFLAGS
="$CPPFLAGS -Dconst="
1628 # AIX4.x doesn't even admit to having large
1629 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1632 echo "$ac_t""enabling large file support" 1>&6
1633 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1634 cat >> confdefs.h
<<\EOF
1635 #define _LARGE_FILES 1
1640 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1641 # to the existance of large files..
1642 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1643 # recommendations on large file support, however it makes the
1644 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1645 # recommendation makes the compile fail on gcc2.7. JRA.
1649 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1650 echo "$ac_t""no large file support" 1>&6
1653 echo "$ac_t""enabling large file support" 1>&6
1654 if test "$ac_cv_prog_gcc" = yes; then
1655 ${CC-cc} -v >conftest.c
2>&1
1656 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1658 case "$ac_cv_gcc_compiler_version_number" in
1659 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1660 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1661 cat >> confdefs.h
<<\EOF
1662 #define _LARGEFILE64_SOURCE 1
1667 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1668 cat >> confdefs.h
<<\EOF
1669 #define _LARGEFILE64_SOURCE 1
1672 cat >> confdefs.h
<<\EOF
1673 #define _FILE_OFFSET_BITS 64
1679 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1680 cat >> confdefs.h
<<\EOF
1681 #define _LARGEFILE64_SOURCE 1
1684 cat >> confdefs.h
<<\EOF
1685 #define _FILE_OFFSET_BITS 64
1693 # Tests needed for SINIX large file support.
1696 if test $host = mips-sni-sysv4
; then
1697 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1698 echo "configure:1699: checking for LFS support" >&5
1699 old_CPPFLAGS
="$CPPFLAGS"
1700 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1701 if test "$cross_compiling" = yes; then
1702 SINIX_LFS_SUPPORT
=cross
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1710 #if _LFS64_LARGEFILE == 1
1717 if { (eval echo configure
:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1719 SINIX_LFS_SUPPORT
=yes
1721 echo "configure: failed program was:" >&5
1722 cat conftest.
$ac_ext >&5
1724 SINIX_LFS_SUPPORT
=no
1729 CPPFLAGS
="$old_CPPFLAGS"
1730 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1731 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1732 cat >> confdefs.h
<<\EOF
1733 #define _LARGEFILE64_SOURCE 1
1736 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1737 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1738 LIBS
="`getconf LFS64_LIBS` $LIBS"
1740 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1744 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1747 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1748 echo "configure:1749: checking for LFS support" >&5
1749 old_CPPFLAGS
="$CPPFLAGS"
1750 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1751 if test "$cross_compiling" = yes; then
1752 LINUX_LFS_SUPPORT
=cross
1754 cat > conftest.
$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1759 #include <sys/utsname.h>
1761 #if _LFS64_LARGEFILE == 1
1766 /* Ensure this is glibc 2.2 or higher */
1767 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1768 int libc_major = __GLIBC__;
1769 int libc_minor = __GLIBC_MINOR__;
1777 /* Ensure this is kernel 2.4 or higher */
1780 release = uts.release;
1781 major = atoi(strsep(&release, "."));
1782 minor = atoi(strsep(&release, "."));
1784 if (major > 2 || (major == 2 && minor > 3))
1793 if { (eval echo configure
:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1795 LINUX_LFS_SUPPORT
=yes
1797 echo "configure: failed program was:" >&5
1798 cat conftest.
$ac_ext >&5
1800 LINUX_LFS_SUPPORT
=no
1805 CPPFLAGS
="$old_CPPFLAGS"
1806 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1807 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1808 cat >> confdefs.h
<<\EOF
1809 #define _LARGEFILE64_SOURCE 1
1812 cat >> confdefs.h
<<\EOF
1813 #define _FILE_OFFSET_BITS 64
1816 cat >> confdefs.h
<<\EOF
1817 #define _GNU_SOURCE 1
1821 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1825 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1826 echo "configure:1827: checking for LFS support" >&5
1827 old_CPPFLAGS
="$CPPFLAGS"
1828 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1829 if test "$cross_compiling" = yes; then
1830 GLIBC_LFS_SUPPORT
=cross
1832 cat > conftest.
$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1838 #if _LFS64_LARGEFILE == 1
1845 if { (eval echo configure
:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1847 GLIBC_LFS_SUPPORT
=yes
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1852 GLIBC_LFS_SUPPORT
=no
1857 CPPFLAGS
="$old_CPPFLAGS"
1858 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1859 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1860 cat >> confdefs.h
<<\EOF
1861 #define _LARGEFILE64_SOURCE 1
1864 cat >> confdefs.h
<<\EOF
1865 #define _GNU_SOURCE 1
1869 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1874 echo $ac_n "checking for inline""... $ac_c" 1>&6
1875 echo "configure:1876: checking for inline" >&5
1876 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1880 for ac_kw
in inline __inline__ __inline
; do
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1889 if { (eval echo configure
:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1891 ac_cv_c_inline
=$ac_kw; break
1893 echo "configure: failed program was:" >&5
1894 cat conftest.
$ac_ext >&5
1901 echo "$ac_t""$ac_cv_c_inline" 1>&6
1902 case "$ac_cv_c_inline" in
1904 no
) cat >> confdefs.h
<<\EOF
1908 *) cat >> confdefs.h
<<EOF
1909 #define inline $ac_cv_c_inline
1914 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1915 echo "configure:1916: checking how to run the C preprocessor" >&5
1916 # On Suns, sometimes $CPP names a directory.
1917 if test -n "$CPP" && test -d "$CPP"; then
1920 if test -z "$CPP"; then
1921 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 # This must be in double quotes, not single quotes, because CPP may get
1925 # substituted into the Makefile and "${CC-cc}" will confuse make.
1927 # On the NeXT, cc -E runs the code through the compiler's parser,
1928 # not just through cpp.
1929 cat > conftest.
$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1935 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1936 { (eval echo configure
:1937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1937 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1938 if test -z "$ac_err"; then
1942 echo "configure: failed program was:" >&5
1943 cat conftest.
$ac_ext >&5
1945 CPP
="${CC-cc} -E -traditional-cpp"
1946 cat > conftest.
$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1952 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure
:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1955 if test -z "$ac_err"; then
1959 echo "configure: failed program was:" >&5
1960 cat conftest.
$ac_ext >&5
1962 CPP
="${CC-cc} -nologo -E"
1963 cat > conftest.
$ac_ext <<EOF
1964 #line 1965 "configure"
1965 #include "confdefs.h"
1969 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure
:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1972 if test -z "$ac_err"; then
1976 echo "configure: failed program was:" >&5
1977 cat conftest.
$ac_ext >&5
1986 ac_cv_prog_CPP
="$CPP"
1988 CPP
="$ac_cv_prog_CPP"
1990 ac_cv_prog_CPP
="$CPP"
1992 echo "$ac_t""$CPP" 1>&6
1994 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1995 echo "configure:1996: checking for ANSI C header files" >&5
1996 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 cat > conftest.
$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure
:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2012 ac_cv_header_stdc
=yes
2015 echo "configure: failed program was:" >&5
2016 cat conftest.
$ac_ext >&5
2018 ac_cv_header_stdc
=no
2022 if test $ac_cv_header_stdc = yes; then
2023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2024 cat > conftest.
$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2030 egrep "memchr" >/dev
/null
2>&1; then
2034 ac_cv_header_stdc
=no
2040 if test $ac_cv_header_stdc = yes; then
2041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2042 cat > conftest.
$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2048 egrep "free" >/dev
/null
2>&1; then
2052 ac_cv_header_stdc
=no
2058 if test $ac_cv_header_stdc = yes; then
2059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2060 if test "$cross_compiling" = yes; then
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2067 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2068 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2070 int main () { int i; for (i = 0; i < 256; i++)
2071 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2075 if { (eval echo configure
:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2079 echo "configure: failed program was:" >&5
2080 cat conftest.
$ac_ext >&5
2082 ac_cv_header_stdc
=no
2090 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2091 if test $ac_cv_header_stdc = yes; then
2092 cat >> confdefs.h
<<\EOF
2093 #define STDC_HEADERS 1
2099 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2101 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2102 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_hdr that defines DIR" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2116 if { (eval echo configure
:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2118 eval "ac_cv_header_dirent_$ac_safe=yes"
2120 echo "configure: failed program was:" >&5
2121 cat conftest.
$ac_ext >&5
2123 eval "ac_cv_header_dirent_$ac_safe=no"
2127 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2130 cat >> confdefs.h
<<EOF
2131 #define $ac_tr_hdr 1
2133 ac_header_dirent
=$ac_hdr; break
2135 echo "$ac_t""no" 1>&6
2138 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2139 if test $ac_header_dirent = dirent.h
; then
2140 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2141 echo "configure:2142: checking for opendir in -ldir" >&5
2142 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 ac_save_LIBS
="$LIBS"
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 /* Override any gcc2 internal prototype to avoid an error. */
2152 /* We use char because int might match the return type of a gcc2
2153 builtin and then its argument prototype would still apply. */
2160 if { (eval echo configure
:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2162 eval "ac_cv_lib_$ac_lib_var=yes"
2164 echo "configure: failed program was:" >&5
2165 cat conftest.
$ac_ext >&5
2167 eval "ac_cv_lib_$ac_lib_var=no"
2170 LIBS
="$ac_save_LIBS"
2173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2177 echo "$ac_t""no" 1>&6
2181 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2182 echo "configure:2183: checking for opendir in -lx" >&5
2183 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 ac_save_LIBS
="$LIBS"
2189 cat > conftest.
$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 /* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2201 if { (eval echo configure
:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2203 eval "ac_cv_lib_$ac_lib_var=yes"
2205 echo "configure: failed program was:" >&5
2206 cat conftest.
$ac_ext >&5
2208 eval "ac_cv_lib_$ac_lib_var=no"
2211 LIBS
="$ac_save_LIBS"
2214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2215 echo "$ac_t""yes" 1>&6
2218 echo "$ac_t""no" 1>&6
2223 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2224 echo "configure:2225: checking whether time.h and sys/time.h may both be included" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 #include <sys/types.h>
2232 #include <sys/time.h>
2238 if { (eval echo configure
:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2240 ac_cv_header_time
=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.
$ac_ext >&5
2245 ac_cv_header_time
=no
2250 echo "$ac_t""$ac_cv_header_time" 1>&6
2251 if test $ac_cv_header_time = yes; then
2252 cat >> confdefs.h
<<\EOF
2253 #define TIME_WITH_SYS_TIME 1
2258 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2259 echo "configure:2260: checking for sys/wait.h that is POSIX.1 compatible" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+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"
2266 #include <sys/types.h>
2267 #include <sys/wait.h>
2269 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2272 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2280 if { (eval echo configure
:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282 ac_cv_header_sys_wait_h
=yes
2284 echo "configure: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 ac_cv_header_sys_wait_h
=no
2292 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2293 if test $ac_cv_header_sys_wait_h = yes; then
2294 cat >> confdefs.h
<<\EOF
2295 #define HAVE_SYS_WAIT_H 1
2300 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2302 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure
:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2318 eval "ac_cv_header_$ac_safe=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.
$ac_ext >&5
2324 eval "ac_cv_header_$ac_safe=no"
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h
<<EOF
2332 #define $ac_tr_hdr 1
2336 echo "$ac_t""no" 1>&6
2340 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2342 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure
:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h
<<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2380 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2382 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.
$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure
:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h
<<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2420 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2422 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.
$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure
:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h
<<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2460 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
2462 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2473 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure
:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2478 eval "ac_cv_header_$ac_safe=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2484 eval "ac_cv_header_$ac_safe=no"
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h
<<EOF
2492 #define $ac_tr_hdr 1
2496 echo "$ac_t""no" 1>&6
2500 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2502 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure
:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h
<<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2540 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2542 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure
:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h
<<EOF
2572 #define $ac_tr_hdr 1
2576 echo "$ac_t""no" 1>&6
2580 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h ldap.h lber.h dlfcn.h
2582 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2584 echo "configure:2585: checking for $ac_hdr" >&5
2585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 cat > conftest.
$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2593 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2594 { (eval echo configure
:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2595 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2596 if test -z "$ac_err"; then
2598 eval "ac_cv_header_$ac_safe=yes"
2601 echo "configure: failed program was:" >&5
2602 cat conftest.
$ac_ext >&5
2604 eval "ac_cv_header_$ac_safe=no"
2608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2611 cat >> confdefs.h
<<EOF
2612 #define $ac_tr_hdr 1
2616 echo "$ac_t""no" 1>&6
2620 for ac_hdr
in sys
/syslog.h syslog.h
2622 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_hdr" >&5
2625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2633 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2634 { (eval echo configure
:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2635 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2636 if test -z "$ac_err"; then
2638 eval "ac_cv_header_$ac_safe=yes"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2644 eval "ac_cv_header_$ac_safe=no"
2648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2650 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2651 cat >> confdefs.h
<<EOF
2652 #define $ac_tr_hdr 1
2656 echo "$ac_t""no" 1>&6
2662 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2663 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2667 cat > conftest.
$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2675 if { (eval echo configure
:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2677 ac_cv_header_shadow_h
=yes
2679 echo "configure: failed program was:" >&5
2680 cat conftest.
$ac_ext >&5
2682 ac_cv_header_shadow_h
=no
2685 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2686 cat >> confdefs.h
<<\EOF
2687 #define HAVE_SHADOW_H 1
2693 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2695 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.
$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure
:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2711 eval "ac_cv_header_$ac_safe=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.
$ac_ext >&5
2717 eval "ac_cv_header_$ac_safe=no"
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h
<<EOF
2725 #define $ac_tr_hdr 1
2729 echo "$ac_t""no" 1>&6
2733 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_hdr" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure
:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2751 eval "ac_cv_header_$ac_safe=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.
$ac_ext >&5
2757 eval "ac_cv_header_$ac_safe=no"
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2764 cat >> confdefs.h
<<EOF
2765 #define $ac_tr_hdr 1
2769 echo "$ac_t""no" 1>&6
2773 for ac_hdr
in stropts.h poll.h
2775 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_hdr" >&5
2778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.
$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure
:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2789 if test -z "$ac_err"; then
2791 eval "ac_cv_header_$ac_safe=yes"
2794 echo "configure: failed program was:" >&5
2795 cat conftest.
$ac_ext >&5
2797 eval "ac_cv_header_$ac_safe=no"
2801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2804 cat >> confdefs.h
<<EOF
2805 #define $ac_tr_hdr 1
2809 echo "$ac_t""no" 1>&6
2813 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2815 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_hdr" >&5
2818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.
$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2827 { (eval echo configure
:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2829 if test -z "$ac_err"; then
2831 eval "ac_cv_header_$ac_safe=yes"
2834 echo "configure: failed program was:" >&5
2835 cat conftest.
$ac_ext >&5
2837 eval "ac_cv_header_$ac_safe=no"
2841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2844 cat >> confdefs.h
<<EOF
2845 #define $ac_tr_hdr 1
2849 echo "$ac_t""no" 1>&6
2853 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2855 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_hdr" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2866 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure
:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2871 eval "ac_cv_header_$ac_safe=yes"
2874 echo "configure: failed program was:" >&5
2875 cat conftest.
$ac_ext >&5
2877 eval "ac_cv_header_$ac_safe=no"
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2884 cat >> confdefs.h
<<EOF
2885 #define $ac_tr_hdr 1
2889 echo "$ac_t""no" 1>&6
2894 # For experimental utmp support (lastlog on some BSD-like systems)
2895 for ac_hdr
in utmp.h utmpx.h lastlog.h
2897 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_hdr" >&5
2900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.
$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2909 { (eval echo configure
:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2911 if test -z "$ac_err"; then
2913 eval "ac_cv_header_$ac_safe=yes"
2916 echo "configure: failed program was:" >&5
2917 cat conftest.
$ac_ext >&5
2919 eval "ac_cv_header_$ac_safe=no"
2923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2926 cat >> confdefs.h
<<EOF
2927 #define $ac_tr_hdr 1
2931 echo "$ac_t""no" 1>&6
2936 # For quotas on Veritas VxFS filesystems
2937 for ac_hdr
in sys
/fs
/vx_quota.h
2939 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2941 echo "configure:2942: checking for $ac_hdr" >&5
2942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 cat > conftest.
$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2950 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2951 { (eval echo configure
:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2952 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2953 if test -z "$ac_err"; then
2955 eval "ac_cv_header_$ac_safe=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.
$ac_ext >&5
2961 eval "ac_cv_header_$ac_safe=no"
2965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2968 cat >> confdefs.h
<<EOF
2969 #define $ac_tr_hdr 1
2973 echo "$ac_t""no" 1>&6
2978 # For quotas on Linux XFS filesystems
2979 for ac_hdr
in linux
/xqm.h
2981 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_hdr" >&5
2984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 cat > conftest.
$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2993 { (eval echo configure
:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2995 if test -z "$ac_err"; then
2997 eval "ac_cv_header_$ac_safe=yes"
3000 echo "configure: failed program was:" >&5
3001 cat conftest.
$ac_ext >&5
3003 eval "ac_cv_header_$ac_safe=no"
3007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3010 cat >> confdefs.h
<<EOF
3011 #define $ac_tr_hdr 1
3015 echo "$ac_t""no" 1>&6
3019 for ac_hdr
in xfs
/xqm.h
3021 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_hdr" >&5
3024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.
$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3032 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3033 { (eval echo configure
:3034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3034 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3035 if test -z "$ac_err"; then
3037 eval "ac_cv_header_$ac_safe=yes"
3040 echo "configure: failed program was:" >&5
3041 cat conftest.
$ac_ext >&5
3043 eval "ac_cv_header_$ac_safe=no"
3047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3048 echo "$ac_t""yes" 1>&6
3049 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3050 cat >> confdefs.h
<<EOF
3051 #define $ac_tr_hdr 1
3055 echo "$ac_t""no" 1>&6
3060 echo $ac_n "checking size of int""... $ac_c" 1>&6
3061 echo "configure:3062: checking size of int" >&5
3062 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 if test "$cross_compiling" = yes; then
3066 ac_cv_sizeof_int
=cross
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3072 #include <sys/types.h>
3075 FILE *f=fopen("conftestval", "w");
3077 fprintf(f, "%d\n", sizeof(int));
3081 if { (eval echo configure
:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3083 ac_cv_sizeof_int
=`cat conftestval`
3085 echo "configure: failed program was:" >&5
3086 cat conftest.
$ac_ext >&5
3094 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3095 cat >> confdefs.h
<<EOF
3096 #define SIZEOF_INT $ac_cv_sizeof_int
3100 echo $ac_n "checking size of long""... $ac_c" 1>&6
3101 echo "configure:3102: checking size of long" >&5
3102 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 if test "$cross_compiling" = yes; then
3106 ac_cv_sizeof_long
=cross
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3112 #include <sys/types.h>
3115 FILE *f=fopen("conftestval", "w");
3117 fprintf(f, "%d\n", sizeof(long));
3121 if { (eval echo configure
:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3123 ac_cv_sizeof_long
=`cat conftestval`
3125 echo "configure: failed program was:" >&5
3126 cat conftest.
$ac_ext >&5
3134 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3135 cat >> confdefs.h
<<EOF
3136 #define SIZEOF_LONG $ac_cv_sizeof_long
3140 echo $ac_n "checking size of short""... $ac_c" 1>&6
3141 echo "configure:3142: checking size of short" >&5
3142 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 if test "$cross_compiling" = yes; then
3146 ac_cv_sizeof_short
=cross
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3152 #include <sys/types.h>
3155 FILE *f=fopen("conftestval", "w");
3157 fprintf(f, "%d\n", sizeof(short));
3161 if { (eval echo configure
:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3163 ac_cv_sizeof_short
=`cat conftestval`
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3168 ac_cv_sizeof_short
=0
3174 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3175 cat >> confdefs.h
<<EOF
3176 #define SIZEOF_SHORT $ac_cv_sizeof_short
3181 echo $ac_n "checking for working const""... $ac_c" 1>&6
3182 echo "configure:3183: checking for working const" >&5
3183 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 cat > conftest.
$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3192 /* Ultrix mips cc rejects this. */
3193 typedef int charset[2]; const charset x;
3194 /* SunOS 4.1.1 cc rejects this. */
3195 char const *const *ccp;
3197 /* NEC SVR4.0.2 mips cc rejects this. */
3198 struct point {int x, y;};
3199 static struct point const zero = {0,0};
3200 /* AIX XL C 1.02.0.0 rejects this.
3201 It does not let you subtract one const X* pointer from another in an arm
3202 of an if-expression whose if-part is not a constant expression */
3203 const char *g = "string";
3204 ccp = &g + (g ? g-g : 0);
3205 /* HPUX 7.0 cc rejects these. */
3208 ccp = (char const *const *) p;
3209 { /* SCO 3.2v4 cc rejects this. */
3211 char const *s = 0 ? (char *) 0 : (char const *) 0;
3215 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3217 const int *foo = &x[0];
3220 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3221 typedef const int *iptr;
3225 { /* AIX XL C 1.02.0.0 rejects this saying
3226 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3227 struct s { int j; const int *ap[3]; };
3228 struct s *b; b->j = 5;
3230 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3236 if { (eval echo configure
:3237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3240 echo "configure: failed program was:" >&5
3241 cat conftest.
$ac_ext >&5
3248 echo "$ac_t""$ac_cv_c_const" 1>&6
3249 if test $ac_cv_c_const = no
; then
3250 cat >> confdefs.h
<<\EOF
3256 echo $ac_n "checking for inline""... $ac_c" 1>&6
3257 echo "configure:3258: checking for inline" >&5
3258 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3262 for ac_kw
in inline __inline__ __inline
; do
3263 cat > conftest.
$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3271 if { (eval echo configure
:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3273 ac_cv_c_inline
=$ac_kw; break
3275 echo "configure: failed program was:" >&5
3276 cat conftest.
$ac_ext >&5
3283 echo "$ac_t""$ac_cv_c_inline" 1>&6
3284 case "$ac_cv_c_inline" in
3286 no
) cat >> confdefs.h
<<\EOF
3290 *) cat >> confdefs.h
<<EOF
3291 #define inline $ac_cv_c_inline
3296 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3297 echo "configure:3298: checking whether byte ordering is bigendian" >&5
3298 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 ac_cv_c_bigendian
=unknown
3302 # See if sys/param.h defines the BYTE_ORDER macro.
3303 cat > conftest.
$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 #include <sys/types.h>
3307 #include <sys/param.h>
3310 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3315 if { (eval echo configure
:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 # It does; now see whether it defined to BIG_ENDIAN or not.
3318 cat > conftest.
$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3322 #include <sys/param.h>
3325 #if BYTE_ORDER != BIG_ENDIAN
3330 if { (eval echo configure
:3331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3332 ac_cv_c_bigendian
=yes
3334 echo "configure: failed program was:" >&5
3335 cat conftest.
$ac_ext >&5
3337 ac_cv_c_bigendian
=no
3341 echo "configure: failed program was:" >&5
3342 cat conftest.
$ac_ext >&5
3345 if test $ac_cv_c_bigendian = unknown
; then
3346 if test "$cross_compiling" = yes; then
3347 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3349 cat > conftest.
$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3353 /* Are we little or big endian? From Harbison&Steele. */
3357 char c[sizeof (long)];
3360 exit (u.c[sizeof (long) - 1] == 1);
3363 if { (eval echo configure
:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3365 ac_cv_c_bigendian
=no
3367 echo "configure: failed program was:" >&5
3368 cat conftest.
$ac_ext >&5
3370 ac_cv_c_bigendian
=yes
3378 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3379 if test $ac_cv_c_bigendian = yes; then
3380 cat >> confdefs.h
<<\EOF
3381 #define WORDS_BIGENDIAN 1
3386 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3387 echo "configure:3388: checking whether char is unsigned" >&5
3388 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 if test "$GCC" = yes; then
3392 # GCC predefines this symbol on systems where it applies.
3393 cat > conftest.
$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #ifdef __CHAR_UNSIGNED__
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 egrep "yes" >/dev
/null
2>&1; then
3404 ac_cv_c_char_unsigned
=yes
3407 ac_cv_c_char_unsigned
=no
3412 if test "$cross_compiling" = yes; then
3413 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3415 cat > conftest.
$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3419 #if !defined(__STDC__) || __STDC__ != 1
3423 volatile char c = 255; exit(c < 0);
3426 if { (eval echo configure
:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3428 ac_cv_c_char_unsigned
=yes
3430 echo "configure: failed program was:" >&5
3431 cat conftest.
$ac_ext >&5
3433 ac_cv_c_char_unsigned
=no
3441 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3442 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3443 cat >> confdefs.h
<<\EOF
3444 #define __CHAR_UNSIGNED__ 1
3450 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3451 echo "configure:3452: checking return type of signal handlers" >&5
3452 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.
$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <sys/types.h>
3464 extern "C" void (*signal (int, void (*)(int)))(int);
3466 void (*signal ()) ();
3473 if { (eval echo configure
:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475 ac_cv_type_signal
=void
3477 echo "configure: failed program was:" >&5
3478 cat conftest.
$ac_ext >&5
3480 ac_cv_type_signal
=int
3485 echo "$ac_t""$ac_cv_type_signal" 1>&6
3486 cat >> confdefs.h
<<EOF
3487 #define RETSIGTYPE $ac_cv_type_signal
3491 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3492 echo "configure:3493: checking for uid_t in sys/types.h" >&5
3493 if eval "test \"`echo '$''{'ac_cv_type_uid_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>
3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3502 egrep "uid_t" >/dev
/null
2>&1; then
3504 ac_cv_type_uid_t
=yes
3513 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3514 if test $ac_cv_type_uid_t = no
; then
3515 cat >> confdefs.h
<<\EOF
3519 cat >> confdefs.h
<<\EOF
3525 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3526 echo "configure:3527: checking for mode_t" >&5
3527 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.
$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <sys/types.h>
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3542 ac_cv_type_mode_t
=yes
3545 ac_cv_type_mode_t
=no
3550 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3551 if test $ac_cv_type_mode_t = no
; then
3552 cat >> confdefs.h
<<\EOF
3558 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3559 echo "configure:3560: checking for off_t" >&5
3560 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 cat > conftest.
$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 #include <sys/types.h>
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3575 ac_cv_type_off_t
=yes
3583 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3584 if test $ac_cv_type_off_t = no
; then
3585 cat >> confdefs.h
<<\EOF
3591 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3592 echo "configure:3593: checking for size_t" >&5
3593 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 cat > conftest.
$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <sys/types.h>
3605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3608 ac_cv_type_size_t
=yes
3611 ac_cv_type_size_t
=no
3616 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3617 if test $ac_cv_type_size_t = no
; then
3618 cat >> confdefs.h
<<\EOF
3619 #define size_t unsigned
3624 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3625 echo "configure:3626: checking for pid_t" >&5
3626 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 cat > conftest.
$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3641 ac_cv_type_pid_t
=yes
3649 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3650 if test $ac_cv_type_pid_t = no
; then
3651 cat >> confdefs.h
<<\EOF
3657 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3658 echo "configure:3659: checking for st_rdev in struct stat" >&5
3659 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.
$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 #include <sys/types.h>
3666 #include <sys/stat.h>
3668 struct stat s; s.st_rdev;
3671 if { (eval echo configure
:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673 ac_cv_struct_st_rdev
=yes
3675 echo "configure: failed program was:" >&5
3676 cat conftest.
$ac_ext >&5
3678 ac_cv_struct_st_rdev
=no
3683 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3684 if test $ac_cv_struct_st_rdev = yes; then
3685 cat >> confdefs.h
<<\EOF
3686 #define HAVE_ST_RDEV 1
3691 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3692 echo "configure:3693: checking for d_off in dirent" >&5
3693 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 cat > conftest.
$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3701 #include <sys/types.h>
3704 struct dirent d; d.d_off;
3707 if { (eval echo configure
:3708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3709 ac_cv_dirent_d_off
=yes
3711 echo "configure: failed program was:" >&5
3712 cat conftest.
$ac_ext >&5
3714 ac_cv_dirent_d_off
=no
3719 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3720 if test $ac_cv_dirent_d_off = yes; then
3721 cat >> confdefs.h
<<\EOF
3722 #define HAVE_DIRENT_D_OFF 1
3727 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3728 echo "configure:3729: checking for ino_t" >&5
3729 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 cat > conftest.
$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 #include <sys/types.h>
3741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3742 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3744 ac_cv_type_ino_t
=yes
3752 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3753 if test $ac_cv_type_ino_t = no
; then
3754 cat >> confdefs.h
<<\EOF
3755 #define ino_t unsigned
3760 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3761 echo "configure:3762: checking for loff_t" >&5
3762 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 #include <sys/types.h>
3774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3777 ac_cv_type_loff_t
=yes
3780 ac_cv_type_loff_t
=no
3785 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3786 if test $ac_cv_type_loff_t = no
; then
3787 cat >> confdefs.h
<<\EOF
3788 #define loff_t off_t
3793 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3794 echo "configure:3795: checking for offset_t" >&5
3795 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.
$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 #include <sys/types.h>
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3810 ac_cv_type_offset_t
=yes
3813 ac_cv_type_offset_t
=no
3818 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3819 if test $ac_cv_type_offset_t = no
; then
3820 cat >> confdefs.h
<<\EOF
3821 #define offset_t loff_t
3826 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3827 echo "configure:3828: checking for ssize_t" >&5
3828 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 cat > conftest.
$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <sys/types.h>
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3843 ac_cv_type_ssize_t
=yes
3846 ac_cv_type_ssize_t
=no
3851 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3852 if test $ac_cv_type_ssize_t = no
; then
3853 cat >> confdefs.h
<<\EOF
3859 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3860 echo "configure:3861: checking for wchar_t" >&5
3861 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 cat > conftest.
$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 #include <sys/types.h>
3873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3876 ac_cv_type_wchar_t
=yes
3879 ac_cv_type_wchar_t
=no
3884 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3885 if test $ac_cv_type_wchar_t = no
; then
3886 cat >> confdefs.h
<<\EOF
3887 #define wchar_t unsigned short
3893 ############################################
3894 # for cups support we need libcups, and a handful of header files
3896 # Check whether --enable-cups or --disable-cups was given.
3897 if test "${enable_cups+set}" = set; then
3898 enableval
="$enable_cups"
3903 if test x
$enable_cups != xno
; then
3904 # Extract the first word of "cups-config", so it can be a program name with args.
3905 set dummy cups-config
; ac_word
=$2
3906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3907 echo "configure:3908: checking for $ac_word" >&5
3908 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 case "$CUPS_CONFIG" in
3913 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3916 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3919 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3921 for ac_dir
in $ac_dummy; do
3922 test -z "$ac_dir" && ac_dir
=.
3923 if test -f $ac_dir/$ac_word; then
3924 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3932 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3933 if test -n "$CUPS_CONFIG"; then
3934 echo "$ac_t""$CUPS_CONFIG" 1>&6
3936 echo "$ac_t""no" 1>&6
3940 if test "x$CUPS_CONFIG" != x
; then
3941 cat >> confdefs.h
<<\EOF
3945 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3946 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3947 PRINTLIBS
="$PRINTLIBS `$CUPS_CONFIG --libs`"
3951 ############################################
3952 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
3953 for ac_func
in dlopen
3955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3956 echo "configure:3957: checking for $ac_func" >&5
3957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 cat > conftest.
$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 /* System header to define __stub macros and hopefully few prototypes,
3964 which can conflict with char $ac_func(); below. */
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3973 /* The GNU C library defines this for functions which it implements
3974 to always fail with ENOSYS. Some functions are actually named
3975 something starting with __ and the normal name is an alias. */
3976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3984 if { (eval echo configure
:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3986 eval "ac_cv_func_$ac_func=yes"
3988 echo "configure: failed program was:" >&5
3989 cat conftest.
$ac_ext >&5
3991 eval "ac_cv_func_$ac_func=no"
3996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3997 echo "$ac_t""yes" 1>&6
3998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3999 cat >> confdefs.h
<<EOF
4000 #define $ac_tr_func 1
4004 echo "$ac_t""no" 1>&6
4008 if test x
"$ac_cv_func_dlopen" = x
"no"; then
4009 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4010 echo "configure:4011: checking for dlopen in -ldl" >&5
4011 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4015 ac_save_LIBS
="$LIBS"
4017 cat > conftest.
$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4020 /* Override any gcc2 internal prototype to avoid an error. */
4021 /* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */
4029 if { (eval echo configure
:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4031 eval "ac_cv_lib_$ac_lib_var=yes"
4033 echo "configure: failed program was:" >&5
4034 cat conftest.
$ac_ext >&5
4036 eval "ac_cv_lib_$ac_lib_var=no"
4039 LIBS
="$ac_save_LIBS"
4042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4043 echo "$ac_t""yes" 1>&6
4045 cat >> confdefs.h
<<\EOF
4046 #define HAVE_DLOPEN 1
4050 echo "$ac_t""no" 1>&6
4054 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4056 ############################################
4057 # check if the compiler can do immediate structures
4058 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4059 echo "configure:4060: checking for immediate structures" >&5
4060 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4064 cat > conftest.
$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4071 typedef struct {unsigned x;} FOOBAR;
4072 #define X_FOOBAR(x) ((FOOBAR) { x })
4073 #define FOO_ONE X_FOOBAR(1)
4083 if { (eval echo configure
:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4085 samba_cv_immediate_structures
=yes
4087 echo "configure: failed program was:" >&5
4088 cat conftest.
$ac_ext >&5
4090 samba_cv_immediate_structures
=no
4095 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4096 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
4097 cat >> confdefs.h
<<\EOF
4098 #define HAVE_IMMEDIATE_STRUCTURES 1
4103 ############################################
4104 # check for unix domain sockets
4105 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4106 echo "configure:4107: checking for unix domain sockets" >&5
4107 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4115 #include <sys/types.h>
4118 #include <sys/socket.h>
4122 struct sockaddr_un sunaddr;
4123 sunaddr.sun_family = AF_UNIX;
4127 if { (eval echo configure
:4128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4129 samba_cv_unixsocket
=yes
4131 echo "configure: failed program was:" >&5
4132 cat conftest.
$ac_ext >&5
4134 samba_cv_unixsocket
=no
4139 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4140 if test x
"$samba_cv_unixsocket" = x
"yes"; then
4141 cat >> confdefs.h
<<\EOF
4142 #define HAVE_UNIXSOCKET 1
4148 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4149 echo "configure:4150: checking for socklen_t type" >&5
4150 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4154 cat > conftest.
$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4158 #include <sys/types.h>
4163 #include <sys/socket.h>
4168 if { (eval echo configure
:4169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4170 samba_cv_socklen_t
=yes
4172 echo "configure: failed program was:" >&5
4173 cat conftest.
$ac_ext >&5
4175 samba_cv_socklen_t
=no
4180 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4181 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4182 cat >> confdefs.h
<<\EOF
4183 #define HAVE_SOCKLEN_T_TYPE 1
4188 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4189 echo "configure:4190: checking for sig_atomic_t type" >&5
4190 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.
$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4198 #include <sys/types.h>
4208 if { (eval echo configure
:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4210 samba_cv_sig_atomic_t
=yes
4212 echo "configure: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 samba_cv_sig_atomic_t
=no
4220 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4221 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4222 cat >> confdefs.h
<<\EOF
4223 #define HAVE_SIG_ATOMIC_T_TYPE 1
4228 # stupid headers have the functions but no declaration. grrrr.
4230 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4231 echo "configure:4232: checking for errno declaration" >&5
4232 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4236 cat > conftest.
$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4244 if { (eval echo configure
:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4246 ac_cv_have_errno_decl
=yes
4248 echo "configure: failed program was:" >&5
4249 cat conftest.
$ac_ext >&5
4251 ac_cv_have_errno_decl
=no
4256 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4257 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4258 cat >> confdefs.h
<<\EOF
4259 #define HAVE_ERRNO_DECL 1
4265 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4266 echo "configure:4267: checking for setresuid declaration" >&5
4267 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4271 cat > conftest.
$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4276 int i = (int)setresuid
4279 if { (eval echo configure
:4280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4281 ac_cv_have_setresuid_decl
=yes
4283 echo "configure: failed program was:" >&5
4284 cat conftest.
$ac_ext >&5
4286 ac_cv_have_setresuid_decl
=no
4291 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4292 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4293 cat >> confdefs.h
<<\EOF
4294 #define HAVE_SETRESUID_DECL 1
4300 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4301 echo "configure:4302: checking for setresgid declaration" >&5
4302 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.
$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4311 int i = (int)setresgid
4314 if { (eval echo configure
:4315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4316 ac_cv_have_setresgid_decl
=yes
4318 echo "configure: failed program was:" >&5
4319 cat conftest.
$ac_ext >&5
4321 ac_cv_have_setresgid_decl
=no
4326 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4327 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4328 cat >> confdefs.h
<<\EOF
4329 #define HAVE_SETRESGID_DECL 1
4335 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4336 echo "configure:4337: checking for asprintf declaration" >&5
4337 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4341 cat > conftest.
$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4346 int i = (int)asprintf
4349 if { (eval echo configure
:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4351 ac_cv_have_asprintf_decl
=yes
4353 echo "configure: failed program was:" >&5
4354 cat conftest.
$ac_ext >&5
4356 ac_cv_have_asprintf_decl
=no
4361 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4362 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4363 cat >> confdefs.h
<<\EOF
4364 #define HAVE_ASPRINTF_DECL 1
4370 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4371 echo "configure:4372: checking for vasprintf declaration" >&5
4372 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4376 cat > conftest.
$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4381 int i = (int)vasprintf
4384 if { (eval echo configure
:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4386 ac_cv_have_vasprintf_decl
=yes
4388 echo "configure: failed program was:" >&5
4389 cat conftest.
$ac_ext >&5
4391 ac_cv_have_vasprintf_decl
=no
4396 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4397 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4398 cat >> confdefs.h
<<\EOF
4399 #define HAVE_VASPRINTF_DECL 1
4405 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4406 echo "configure:4407: checking for vsnprintf declaration" >&5
4407 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.
$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4416 int i = (int)vsnprintf
4419 if { (eval echo configure
:4420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4421 ac_cv_have_vsnprintf_decl
=yes
4423 echo "configure: failed program was:" >&5
4424 cat conftest.
$ac_ext >&5
4426 ac_cv_have_vsnprintf_decl
=no
4431 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4432 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4433 cat >> confdefs.h
<<\EOF
4434 #define HAVE_VSNPRINTF_DECL 1
4440 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4441 echo "configure:4442: checking for snprintf declaration" >&5
4442 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4446 cat > conftest.
$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4451 int i = (int)snprintf
4454 if { (eval echo configure
:4455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4456 ac_cv_have_snprintf_decl
=yes
4458 echo "configure: failed program was:" >&5
4459 cat conftest.
$ac_ext >&5
4461 ac_cv_have_snprintf_decl
=no
4466 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4467 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4468 cat >> confdefs.h
<<\EOF
4469 #define HAVE_SNPRINTF_DECL 1
4475 # and glibc has setresuid under linux but the function does
4476 # nothing until kernel 2.1.44! very dumb.
4477 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4478 echo "configure:4479: checking for real setresuid" >&5
4479 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4483 if test "$cross_compiling" = yes; then
4484 samba_cv_have_setresuid
=cross
4486 cat > conftest.
$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4490 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4492 if { (eval echo configure
:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4494 samba_cv_have_setresuid
=yes
4496 echo "configure: failed program was:" >&5
4497 cat conftest.
$ac_ext >&5
4499 samba_cv_have_setresuid
=no
4506 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4507 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4508 cat >> confdefs.h
<<\EOF
4509 #define HAVE_SETRESUID 1
4514 # Do the same check for setresguid...
4516 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4517 echo "configure:4518: checking for real setresgid" >&5
4518 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4522 if test "$cross_compiling" = yes; then
4523 samba_cv_have_setresgid
=cross
4525 cat > conftest.
$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4530 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4532 if { (eval echo configure
:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4534 samba_cv_have_setresgid
=yes
4536 echo "configure: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4539 samba_cv_have_setresgid
=no
4546 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4547 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4548 cat >> confdefs.h
<<\EOF
4549 #define HAVE_SETRESGID 1
4554 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4555 echo "configure:4556: checking for 8-bit clean memcmp" >&5
4556 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 if test "$cross_compiling" = yes; then
4560 ac_cv_func_memcmp_clean
=no
4562 cat > conftest.
$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4568 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4569 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4573 if { (eval echo configure
:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4575 ac_cv_func_memcmp_clean
=yes
4577 echo "configure: failed program was:" >&5
4578 cat conftest.
$ac_ext >&5
4580 ac_cv_func_memcmp_clean
=no
4587 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4588 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4591 ###############################################
4592 # test for where we get crypt() from
4593 for ac_func
in crypt
4595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4596 echo "configure:4597: checking for $ac_func" >&5
4597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 cat > conftest.
$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4603 /* System header to define __stub macros and hopefully few prototypes,
4604 which can conflict with char $ac_func(); below. */
4606 /* Override any gcc2 internal prototype to avoid an error. */
4607 /* We use char because int might match the return type of a gcc2
4608 builtin and then its argument prototype would still apply. */
4613 /* The GNU C library defines this for functions which it implements
4614 to always fail with ENOSYS. Some functions are actually named
4615 something starting with __ and the normal name is an alias. */
4616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4624 if { (eval echo configure
:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4626 eval "ac_cv_func_$ac_func=yes"
4628 echo "configure: failed program was:" >&5
4629 cat conftest.
$ac_ext >&5
4631 eval "ac_cv_func_$ac_func=no"
4636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4637 echo "$ac_t""yes" 1>&6
4638 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4639 cat >> confdefs.h
<<EOF
4640 #define $ac_tr_func 1
4644 echo "$ac_t""no" 1>&6
4648 if test x
"$ac_cv_func_crypt" = x
"no"; then
4649 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4650 echo "configure:4651: checking for crypt in -lcrypt" >&5
4651 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4655 ac_save_LIBS
="$LIBS"
4656 LIBS
="-lcrypt $LIBS"
4657 cat > conftest.
$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4669 if { (eval echo configure
:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4671 eval "ac_cv_lib_$ac_lib_var=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4676 eval "ac_cv_lib_$ac_lib_var=no"
4679 LIBS
="$ac_save_LIBS"
4682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 AUTHLIBS
="$AUTHLIBS -lcrypt";
4685 cat >> confdefs.h
<<\EOF
4686 #define HAVE_CRYPT 1
4690 echo "$ac_t""no" 1>&6
4696 ###############################################
4697 # Readline included by default unless explicitly asked not to
4698 test "${with_readline+set}" != "set" && with_readline
=yes
4700 # test for where we get readline() from
4701 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether to use readline" >&5
4703 # Check whether --with-readline or --without-readline was given.
4704 if test "${with_readline+set}" = set; then
4705 withval
="$with_readline"
4706 case "$with_readline" in
4708 echo "$ac_t""yes" 1>&6
4710 for ac_hdr
in readline.h
history.h readline
/readline.h
4712 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_hdr" >&5
4715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.
$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4723 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4724 { (eval echo configure
:4725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4725 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4726 if test -z "$ac_err"; then
4728 eval "ac_cv_header_$ac_safe=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.
$ac_ext >&5
4734 eval "ac_cv_header_$ac_safe=no"
4738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4741 cat >> confdefs.h
<<EOF
4742 #define $ac_tr_hdr 1
4746 echo "$ac_t""no" 1>&6
4750 for ac_hdr
in readline
/history.h
4752 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_hdr" >&5
4755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 cat > conftest.
$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4763 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4764 { (eval echo configure
:4765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4765 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4766 if test -z "$ac_err"; then
4768 eval "ac_cv_header_$ac_safe=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.
$ac_ext >&5
4774 eval "ac_cv_header_$ac_safe=no"
4778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4779 echo "$ac_t""yes" 1>&6
4780 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4781 cat >> confdefs.h
<<EOF
4782 #define $ac_tr_hdr 1
4786 echo "$ac_t""no" 1>&6
4791 for ac_hdr
in readline.h readline
/readline.h
4793 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4795 echo "configure:4796: checking for $ac_hdr" >&5
4796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 cat > conftest.
$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4804 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4805 { (eval echo configure
:4806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4806 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4807 if test -z "$ac_err"; then
4809 eval "ac_cv_header_$ac_safe=yes"
4812 echo "configure: failed program was:" >&5
4813 cat conftest.
$ac_ext >&5
4815 eval "ac_cv_header_$ac_safe=no"
4819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4820 echo "$ac_t""yes" 1>&6
4821 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4822 cat >> confdefs.h
<<EOF
4823 #define $ac_tr_hdr 1
4826 for termlib
in ncurses curses termcap terminfo termlib
; do
4827 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4828 echo "configure:4829: checking for tgetent in -l${termlib}" >&5
4829 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 ac_save_LIBS
="$LIBS"
4834 LIBS
="-l${termlib} $LIBS"
4835 cat > conftest.
$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 /* Override any gcc2 internal prototype to avoid an error. */
4839 /* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4847 if { (eval echo configure
:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4849 eval "ac_cv_lib_$ac_lib_var=yes"
4851 echo "configure: failed program was:" >&5
4852 cat conftest.
$ac_ext >&5
4854 eval "ac_cv_lib_$ac_lib_var=no"
4857 LIBS
="$ac_save_LIBS"
4860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 TERMLIBS
="-l${termlib}"; break
4864 echo "$ac_t""no" 1>&6
4868 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4869 echo "configure:4870: checking for rl_callback_handler_install in -lreadline" >&5
4870 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 ac_save_LIBS
="$LIBS"
4875 LIBS
="-lreadline $TERMLIBS $LIBS"
4876 cat > conftest.
$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 /* Override any gcc2 internal prototype to avoid an error. */
4880 /* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */
4882 char rl_callback_handler_install();
4885 rl_callback_handler_install()
4888 if { (eval echo configure
:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4890 eval "ac_cv_lib_$ac_lib_var=yes"
4892 echo "configure: failed program was:" >&5
4893 cat conftest.
$ac_ext >&5
4895 eval "ac_cv_lib_$ac_lib_var=no"
4898 LIBS
="$ac_save_LIBS"
4901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4902 echo "$ac_t""yes" 1>&6
4903 TERMLIBS
="-lreadline $TERMLIBS"
4904 cat >> confdefs.h
<<\EOF
4905 #define HAVE_LIBREADLINE 1
4910 echo "$ac_t""no" 1>&6
4915 echo "$ac_t""no" 1>&6
4921 echo "$ac_t""no" 1>&6
4924 echo "$ac_t""yes" 1>&6
4926 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4927 # alternate readline path
4929 _cppflags
=${CPPFLAGS}
4931 # Add additional search path
4932 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4933 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4935 for ac_hdr
in readline.h
history.h readline
/readline.h
4937 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_hdr" >&5
4940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.
$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4949 { (eval echo configure
:4950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4950 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4951 if test -z "$ac_err"; then
4953 eval "ac_cv_header_$ac_safe=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.
$ac_ext >&5
4959 eval "ac_cv_header_$ac_safe=no"
4963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4965 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4966 cat >> confdefs.h
<<EOF
4967 #define $ac_tr_hdr 1
4971 echo "$ac_t""no" 1>&6
4975 for ac_hdr
in readline
/history.h
4977 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4979 echo "configure:4980: checking for $ac_hdr" >&5
4980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 cat > conftest.
$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4988 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4989 { (eval echo configure
:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4990 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4991 if test -z "$ac_err"; then
4993 eval "ac_cv_header_$ac_safe=yes"
4996 echo "configure: failed program was:" >&5
4997 cat conftest.
$ac_ext >&5
4999 eval "ac_cv_header_$ac_safe=no"
5003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5006 cat >> confdefs.h
<<EOF
5007 #define $ac_tr_hdr 1
5011 echo "$ac_t""no" 1>&6
5016 for ac_hdr
in readline.h readline
/readline.h
5018 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5020 echo "configure:5021: checking for $ac_hdr" >&5
5021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5024 cat > conftest.
$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5029 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5030 { (eval echo configure
:5031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5031 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5032 if test -z "$ac_err"; then
5034 eval "ac_cv_header_$ac_safe=yes"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.
$ac_ext >&5
5040 eval "ac_cv_header_$ac_safe=no"
5044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5047 cat >> confdefs.h
<<EOF
5048 #define $ac_tr_hdr 1
5051 for termlib
in ncurses curses termcap terminfo termlib
; do
5052 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5053 echo "configure:5054: checking for tgetent in -l${termlib}" >&5
5054 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5058 ac_save_LIBS
="$LIBS"
5059 LIBS
="-l${termlib} $LIBS"
5060 cat > conftest.
$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063 /* Override any gcc2 internal prototype to avoid an error. */
5064 /* We use char because int might match the return type of a gcc2
5065 builtin and then its argument prototype would still apply. */
5072 if { (eval echo configure
:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5074 eval "ac_cv_lib_$ac_lib_var=yes"
5076 echo "configure: failed program was:" >&5
5077 cat conftest.
$ac_ext >&5
5079 eval "ac_cv_lib_$ac_lib_var=no"
5082 LIBS
="$ac_save_LIBS"
5085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5086 echo "$ac_t""yes" 1>&6
5087 TERMLIBS
="-l${termlib}"; break
5089 echo "$ac_t""no" 1>&6
5093 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5094 echo "configure:5095: checking for rl_callback_handler_install in -lreadline" >&5
5095 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 ac_save_LIBS
="$LIBS"
5100 LIBS
="-lreadline $TERMLIBS $LIBS"
5101 cat > conftest.
$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5107 char rl_callback_handler_install();
5110 rl_callback_handler_install()
5113 if { (eval echo configure
:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5115 eval "ac_cv_lib_$ac_lib_var=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.
$ac_ext >&5
5120 eval "ac_cv_lib_$ac_lib_var=no"
5123 LIBS
="$ac_save_LIBS"
5126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6
5128 TERMLDFLAGS
="-L$with_readline/lib"
5129 TERMCPPFLAGS
="-I$with_readline/include"
5130 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
5131 TERMLIBS
="-lreadline $TERMLIBS"
5132 cat >> confdefs.h
<<\EOF
5133 #define HAVE_LIBREADLINE 1
5138 echo "$ac_t""no" 1>&6
5139 TERMLIBS
= CPPFLAGS
=$_cppflags
5143 echo "$ac_t""no" 1>&6
5152 echo "$ac_t""no" 1>&6
5159 # The readline API changed slightly from readline3 to readline4, so
5160 # code will generate warnings on one of them unless we have a few
5162 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5163 echo "configure:5164: checking for rl_completion_matches in -lreadline" >&5
5164 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 ac_save_LIBS
="$LIBS"
5169 LIBS
="-lreadline $TERMLIBS $LIBS"
5170 cat > conftest.
$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5176 char rl_completion_matches();
5179 rl_completion_matches()
5182 if { (eval echo configure
:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5184 eval "ac_cv_lib_$ac_lib_var=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.
$ac_ext >&5
5189 eval "ac_cv_lib_$ac_lib_var=no"
5192 LIBS
="$ac_save_LIBS"
5195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 cat >> confdefs.h
<<\EOF
5198 #define HAVE_NEW_LIBREADLINE 1
5202 echo "$ac_t""no" 1>&6
5206 # The following test taken from the cvs sources
5207 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5208 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5209 # libsocket.so which has a bad implementation of gethostbyname (it
5210 # only looks in /etc/hosts), so we only look for -lsocket if we need
5212 for ac_func
in connect
5214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5215 echo "configure:5216: checking for $ac_func" >&5
5216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5219 cat > conftest.
$ac_ext <<EOF
5220 #line 5221 "configure"
5221 #include "confdefs.h"
5222 /* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char $ac_func(); below. */
5225 /* Override any gcc2 internal prototype to avoid an error. */
5226 /* We use char because int might match the return type of a gcc2
5227 builtin and then its argument prototype would still apply. */
5232 /* The GNU C library defines this for functions which it implements
5233 to always fail with ENOSYS. Some functions are actually named
5234 something starting with __ and the normal name is an alias. */
5235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5243 if { (eval echo configure
:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5245 eval "ac_cv_func_$ac_func=yes"
5247 echo "configure: failed program was:" >&5
5248 cat conftest.
$ac_ext >&5
5250 eval "ac_cv_func_$ac_func=no"
5255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5256 echo "$ac_t""yes" 1>&6
5257 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5258 cat >> confdefs.h
<<EOF
5259 #define $ac_tr_func 1
5263 echo "$ac_t""no" 1>&6
5267 if test x
"$ac_cv_func_connect" = x
"no"; then
5270 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5271 echo "configure:5272: checking for printf in -lnsl_s" >&5
5272 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 ac_save_LIBS
="$LIBS"
5277 LIBS
="-lnsl_s $LIBS"
5278 cat > conftest.
$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */
5290 if { (eval echo configure
:5291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5292 eval "ac_cv_lib_$ac_lib_var=yes"
5294 echo "configure: failed program was:" >&5
5295 cat conftest.
$ac_ext >&5
5297 eval "ac_cv_lib_$ac_lib_var=no"
5300 LIBS
="$ac_save_LIBS"
5303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5304 echo "$ac_t""yes" 1>&6
5305 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5307 cat >> confdefs.h
<<EOF
5308 #define $ac_tr_lib 1
5311 LIBS
="-lnsl_s $LIBS"
5314 echo "$ac_t""no" 1>&6
5320 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5321 echo "configure:5322: checking for printf in -lnsl" >&5
5322 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5326 ac_save_LIBS
="$LIBS"
5328 cat > conftest.
$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */
5340 if { (eval echo configure
:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5342 eval "ac_cv_lib_$ac_lib_var=yes"
5344 echo "configure: failed program was:" >&5
5345 cat conftest.
$ac_ext >&5
5347 eval "ac_cv_lib_$ac_lib_var=no"
5350 LIBS
="$ac_save_LIBS"
5353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5357 cat >> confdefs.h
<<EOF
5358 #define $ac_tr_lib 1
5364 echo "$ac_t""no" 1>&6
5370 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5371 echo "configure:5372: checking for connect in -lsocket" >&5
5372 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5376 ac_save_LIBS
="$LIBS"
5377 LIBS
="-lsocket $LIBS"
5378 cat > conftest.
$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5381 /* Override any gcc2 internal prototype to avoid an error. */
5382 /* We use char because int might match the return type of a gcc2
5383 builtin and then its argument prototype would still apply. */
5390 if { (eval echo configure
:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5392 eval "ac_cv_lib_$ac_lib_var=yes"
5394 echo "configure: failed program was:" >&5
5395 cat conftest.
$ac_ext >&5
5397 eval "ac_cv_lib_$ac_lib_var=no"
5400 LIBS
="$ac_save_LIBS"
5403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5404 echo "$ac_t""yes" 1>&6
5405 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5406 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5407 cat >> confdefs.h
<<EOF
5408 #define $ac_tr_lib 1
5411 LIBS
="-lsocket $LIBS"
5414 echo "$ac_t""no" 1>&6
5420 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5421 echo "configure:5422: checking for connect in -linet" >&5
5422 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 ac_save_LIBS
="$LIBS"
5428 cat > conftest.
$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 /* Override any gcc2 internal prototype to avoid an error. */
5432 /* We use char because int might match the return type of a gcc2
5433 builtin and then its argument prototype would still apply. */
5440 if { (eval echo configure
:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5442 eval "ac_cv_lib_$ac_lib_var=yes"
5444 echo "configure: failed program was:" >&5
5445 cat conftest.
$ac_ext >&5
5447 eval "ac_cv_lib_$ac_lib_var=no"
5450 LIBS
="$ac_save_LIBS"
5453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5454 echo "$ac_t""yes" 1>&6
5455 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5457 cat >> confdefs.h
<<EOF
5458 #define $ac_tr_lib 1
5464 echo "$ac_t""no" 1>&6
5468 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5469 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5470 # ac_cv_func_connect=yes
5471 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5472 cat >> confdefs.h
<<\EOF
5473 #define HAVE_CONNECT 1
5479 ###############################################
5480 # test for where we get get_yp_default_domain() from
5481 for ac_func
in yp_get_default_domain
5483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5484 echo "configure:5485: checking for $ac_func" >&5
5485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 cat > conftest.
$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 /* System header to define __stub macros and hopefully few prototypes,
5492 which can conflict with char $ac_func(); below. */
5494 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5501 /* The GNU C library defines this for functions which it implements
5502 to always fail with ENOSYS. Some functions are actually named
5503 something starting with __ and the normal name is an alias. */
5504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5512 if { (eval echo configure
:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5514 eval "ac_cv_func_$ac_func=yes"
5516 echo "configure: failed program was:" >&5
5517 cat conftest.
$ac_ext >&5
5519 eval "ac_cv_func_$ac_func=no"
5524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5527 cat >> confdefs.h
<<EOF
5528 #define $ac_tr_func 1
5532 echo "$ac_t""no" 1>&6
5536 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5537 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5538 echo "configure:5539: checking for yp_get_default_domain in -lnsl" >&5
5539 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5543 ac_save_LIBS
="$LIBS"
5545 cat > conftest.
$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5551 char yp_get_default_domain();
5554 yp_get_default_domain()
5557 if { (eval echo configure
:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5559 eval "ac_cv_lib_$ac_lib_var=yes"
5561 echo "configure: failed program was:" >&5
5562 cat conftest.
$ac_ext >&5
5564 eval "ac_cv_lib_$ac_lib_var=no"
5567 LIBS
="$ac_save_LIBS"
5570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5571 echo "$ac_t""yes" 1>&6
5573 cat >> confdefs.h
<<\EOF
5574 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5578 echo "$ac_t""no" 1>&6
5583 # Check if we have execl, if not we need to compile smbrun.
5584 for ac_func
in execl
5586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5587 echo "configure:5588: checking for $ac_func" >&5
5588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5591 cat > conftest.
$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5594 /* System header to define __stub macros and hopefully few prototypes,
5595 which can conflict with char $ac_func(); below. */
5597 /* Override any gcc2 internal prototype to avoid an error. */
5598 /* We use char because int might match the return type of a gcc2
5599 builtin and then its argument prototype would still apply. */
5604 /* The GNU C library defines this for functions which it implements
5605 to always fail with ENOSYS. Some functions are actually named
5606 something starting with __ and the normal name is an alias. */
5607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5615 if { (eval echo configure
:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5617 eval "ac_cv_func_$ac_func=yes"
5619 echo "configure: failed program was:" >&5
5620 cat conftest.
$ac_ext >&5
5622 eval "ac_cv_func_$ac_func=no"
5627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5628 echo "$ac_t""yes" 1>&6
5629 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5630 cat >> confdefs.h
<<EOF
5631 #define $ac_tr_func 1
5635 echo "$ac_t""no" 1>&6
5639 if test x
"$ac_cv_func_execl" = x
"no"; then
5640 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5643 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
5645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5646 echo "configure:5647: checking for $ac_func" >&5
5647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 cat > conftest.
$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 /* System header to define __stub macros and hopefully few prototypes,
5654 which can conflict with char $ac_func(); below. */
5656 /* Override any gcc2 internal prototype to avoid an error. */
5657 /* We use char because int might match the return type of a gcc2
5658 builtin and then its argument prototype would still apply. */
5663 /* The GNU C library defines this for functions which it implements
5664 to always fail with ENOSYS. Some functions are actually named
5665 something starting with __ and the normal name is an alias. */
5666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5674 if { (eval echo configure
:5675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5676 eval "ac_cv_func_$ac_func=yes"
5678 echo "configure: failed program was:" >&5
5679 cat conftest.
$ac_ext >&5
5681 eval "ac_cv_func_$ac_func=no"
5686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5687 echo "$ac_t""yes" 1>&6
5688 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5689 cat >> confdefs.h
<<EOF
5690 #define $ac_tr_func 1
5694 echo "$ac_t""no" 1>&6
5698 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5701 echo "configure:5702: checking for $ac_func" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.
$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char $ac_func(); below. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 if { (eval echo configure
:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5731 eval "ac_cv_func_$ac_func=yes"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.
$ac_ext >&5
5736 eval "ac_cv_func_$ac_func=no"
5741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5744 cat >> confdefs.h
<<EOF
5745 #define $ac_tr_func 1
5749 echo "$ac_t""no" 1>&6
5753 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5756 echo "configure:5757: checking for $ac_func" >&5
5757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5758 echo $ac_n "(cached) $ac_c" 1>&6
5760 cat > conftest.
$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 /* System header to define __stub macros and hopefully few prototypes,
5764 which can conflict with char $ac_func(); below. */
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5773 /* The GNU C library defines this for functions which it implements
5774 to always fail with ENOSYS. Some functions are actually named
5775 something starting with __ and the normal name is an alias. */
5776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5784 if { (eval echo configure
:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5786 eval "ac_cv_func_$ac_func=yes"
5788 echo "configure: failed program was:" >&5
5789 cat conftest.
$ac_ext >&5
5791 eval "ac_cv_func_$ac_func=no"
5796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5799 cat >> confdefs.h
<<EOF
5800 #define $ac_tr_func 1
5804 echo "$ac_t""no" 1>&6
5808 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5811 echo "configure:5812: checking for $ac_func" >&5
5812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 cat > conftest.
$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5818 /* System header to define __stub macros and hopefully few prototypes,
5819 which can conflict with char $ac_func(); below. */
5821 /* Override any gcc2 internal prototype to avoid an error. */
5822 /* We use char because int might match the return type of a gcc2
5823 builtin and then its argument prototype would still apply. */
5828 /* The GNU C library defines this for functions which it implements
5829 to always fail with ENOSYS. Some functions are actually named
5830 something starting with __ and the normal name is an alias. */
5831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5839 if { (eval echo configure
:5840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5841 eval "ac_cv_func_$ac_func=yes"
5843 echo "configure: failed program was:" >&5
5844 cat conftest.
$ac_ext >&5
5846 eval "ac_cv_func_$ac_func=no"
5851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5852 echo "$ac_t""yes" 1>&6
5853 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5854 cat >> confdefs.h
<<EOF
5855 #define $ac_tr_func 1
5859 echo "$ac_t""no" 1>&6
5863 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5866 echo "configure:5867: checking for $ac_func" >&5
5867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5870 cat > conftest.
$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 /* System header to define __stub macros and hopefully few prototypes,
5874 which can conflict with char $ac_func(); below. */
5876 /* Override any gcc2 internal prototype to avoid an error. */
5877 /* We use char because int might match the return type of a gcc2
5878 builtin and then its argument prototype would still apply. */
5883 /* The GNU C library defines this for functions which it implements
5884 to always fail with ENOSYS. Some functions are actually named
5885 something starting with __ and the normal name is an alias. */
5886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5894 if { (eval echo configure
:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5896 eval "ac_cv_func_$ac_func=yes"
5898 echo "configure: failed program was:" >&5
5899 cat conftest.
$ac_ext >&5
5901 eval "ac_cv_func_$ac_func=no"
5906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5908 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5909 cat >> confdefs.h
<<EOF
5910 #define $ac_tr_func 1
5914 echo "$ac_t""no" 1>&6
5918 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5921 echo "configure:5922: checking for $ac_func" >&5
5922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5925 cat > conftest.
$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 /* System header to define __stub macros and hopefully few prototypes,
5929 which can conflict with char $ac_func(); below. */
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5938 /* The GNU C library defines this for functions which it implements
5939 to always fail with ENOSYS. Some functions are actually named
5940 something starting with __ and the normal name is an alias. */
5941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5949 if { (eval echo configure
:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5951 eval "ac_cv_func_$ac_func=yes"
5953 echo "configure: failed program was:" >&5
5954 cat conftest.
$ac_ext >&5
5956 eval "ac_cv_func_$ac_func=no"
5961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h
<<EOF
5965 #define $ac_tr_func 1
5969 echo "$ac_t""no" 1>&6
5973 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5976 echo "configure:5977: checking for $ac_func" >&5
5977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 cat > conftest.
$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char $ac_func(); below. */
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6004 if { (eval echo configure
:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6006 eval "ac_cv_func_$ac_func=yes"
6008 echo "configure: failed program was:" >&5
6009 cat conftest.
$ac_ext >&5
6011 eval "ac_cv_func_$ac_func=no"
6016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6019 cat >> confdefs.h
<<EOF
6020 #define $ac_tr_func 1
6024 echo "$ac_t""no" 1>&6
6028 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6031 echo "configure:6032: checking for $ac_func" >&5
6032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6035 cat > conftest.
$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* System header to define __stub macros and hopefully few prototypes,
6039 which can conflict with char $ac_func(); below. */
6041 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6048 /* The GNU C library defines this for functions which it implements
6049 to always fail with ENOSYS. Some functions are actually named
6050 something starting with __ and the normal name is an alias. */
6051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6059 if { (eval echo configure
:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6061 eval "ac_cv_func_$ac_func=yes"
6063 echo "configure: failed program was:" >&5
6064 cat conftest.
$ac_ext >&5
6066 eval "ac_cv_func_$ac_func=no"
6071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6073 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6074 cat >> confdefs.h
<<EOF
6075 #define $ac_tr_func 1
6079 echo "$ac_t""no" 1>&6
6083 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
6085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_func" >&5
6087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 cat > conftest.
$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char $ac_func(); below. */
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114 if { (eval echo configure
:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6116 eval "ac_cv_func_$ac_func=yes"
6118 echo "configure: failed program was:" >&5
6119 cat conftest.
$ac_ext >&5
6121 eval "ac_cv_func_$ac_func=no"
6126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6129 cat >> confdefs.h
<<EOF
6130 #define $ac_tr_func 1
6134 echo "$ac_t""no" 1>&6
6138 for ac_func
in syslog vsyslog getgrouplist timegm
6140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_func" >&5
6142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.
$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func(); below. */
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169 if { (eval echo configure
:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6171 eval "ac_cv_func_$ac_func=yes"
6173 echo "configure: failed program was:" >&5
6174 cat conftest.
$ac_ext >&5
6176 eval "ac_cv_func_$ac_func=no"
6181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >> confdefs.h
<<EOF
6185 #define $ac_tr_func 1
6189 echo "$ac_t""no" 1>&6
6193 # setbuffer, shmget, shm_open are needed for smbtorture
6194 for ac_func
in setbuffer shmget shm_open
6196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_func" >&5
6198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6201 cat > conftest.
$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char $ac_func(); below. */
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225 if { (eval echo configure
:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6227 eval "ac_cv_func_$ac_func=yes"
6229 echo "configure: failed program was:" >&5
6230 cat conftest.
$ac_ext >&5
6232 eval "ac_cv_func_$ac_func=no"
6237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6240 cat >> confdefs.h
<<EOF
6241 #define $ac_tr_func 1
6245 echo "$ac_t""no" 1>&6
6250 # syscall() is needed for smbwrapper.
6251 for ac_func
in syscall
6253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6254 echo "configure:6255: checking for $ac_func" >&5
6255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6258 cat > conftest.
$ac_ext <<EOF
6259 #line 6260 "configure"
6260 #include "confdefs.h"
6261 /* System header to define __stub macros and hopefully few prototypes,
6262 which can conflict with char $ac_func(); below. */
6264 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6271 /* The GNU C library defines this for functions which it implements
6272 to always fail with ENOSYS. Some functions are actually named
6273 something starting with __ and the normal name is an alias. */
6274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6282 if { (eval echo configure
:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6284 eval "ac_cv_func_$ac_func=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.
$ac_ext >&5
6289 eval "ac_cv_func_$ac_func=no"
6294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6297 cat >> confdefs.h
<<EOF
6298 #define $ac_tr_func 1
6302 echo "$ac_t""no" 1>&6
6307 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6310 echo "configure:6311: checking for $ac_func" >&5
6311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 cat > conftest.
$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* System header to define __stub macros and hopefully few prototypes,
6318 which can conflict with char $ac_func(); below. */
6320 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6327 /* The GNU C library defines this for functions which it implements
6328 to always fail with ENOSYS. Some functions are actually named
6329 something starting with __ and the normal name is an alias. */
6330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6338 if { (eval echo configure
:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6340 eval "ac_cv_func_$ac_func=yes"
6342 echo "configure: failed program was:" >&5
6343 cat conftest.
$ac_ext >&5
6345 eval "ac_cv_func_$ac_func=no"
6350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6353 cat >> confdefs.h
<<EOF
6354 #define $ac_tr_func 1
6358 echo "$ac_t""no" 1>&6
6362 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_func" >&5
6366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6369 cat > conftest.
$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char $ac_func(); below. */
6375 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6382 /* The GNU C library defines this for functions which it implements
6383 to always fail with ENOSYS. Some functions are actually named
6384 something starting with __ and the normal name is an alias. */
6385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6393 if { (eval echo configure
:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6395 eval "ac_cv_func_$ac_func=yes"
6397 echo "configure: failed program was:" >&5
6398 cat conftest.
$ac_ext >&5
6400 eval "ac_cv_func_$ac_func=no"
6405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6406 echo "$ac_t""yes" 1>&6
6407 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6408 cat >> confdefs.h
<<EOF
6409 #define $ac_tr_func 1
6413 echo "$ac_t""no" 1>&6
6417 for ac_func
in __getcwd _getcwd
6419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6420 echo "configure:6421: checking for $ac_func" >&5
6421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6424 cat > conftest.
$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 /* System header to define __stub macros and hopefully few prototypes,
6428 which can conflict with char $ac_func(); below. */
6430 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6437 /* The GNU C library defines this for functions which it implements
6438 to always fail with ENOSYS. Some functions are actually named
6439 something starting with __ and the normal name is an alias. */
6440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6448 if { (eval echo configure
:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6450 eval "ac_cv_func_$ac_func=yes"
6452 echo "configure: failed program was:" >&5
6453 cat conftest.
$ac_ext >&5
6455 eval "ac_cv_func_$ac_func=no"
6460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6463 cat >> confdefs.h
<<EOF
6464 #define $ac_tr_func 1
6468 echo "$ac_t""no" 1>&6
6472 for ac_func
in __xstat __fxstat __lxstat
6474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6475 echo "configure:6476: checking for $ac_func" >&5
6476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6479 cat > conftest.
$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 /* System header to define __stub macros and hopefully few prototypes,
6483 which can conflict with char $ac_func(); below. */
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6492 /* The GNU C library defines this for functions which it implements
6493 to always fail with ENOSYS. Some functions are actually named
6494 something starting with __ and the normal name is an alias. */
6495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6503 if { (eval echo configure
:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6505 eval "ac_cv_func_$ac_func=yes"
6507 echo "configure: failed program was:" >&5
6508 cat conftest.
$ac_ext >&5
6510 eval "ac_cv_func_$ac_func=no"
6515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6516 echo "$ac_t""yes" 1>&6
6517 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6518 cat >> confdefs.h
<<EOF
6519 #define $ac_tr_func 1
6523 echo "$ac_t""no" 1>&6
6527 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_func" >&5
6531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 cat > conftest.
$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char $ac_func(); below. */
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6547 /* The GNU C library defines this for functions which it implements
6548 to always fail with ENOSYS. Some functions are actually named
6549 something starting with __ and the normal name is an alias. */
6550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6558 if { (eval echo configure
:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6560 eval "ac_cv_func_$ac_func=yes"
6562 echo "configure: failed program was:" >&5
6563 cat conftest.
$ac_ext >&5
6565 eval "ac_cv_func_$ac_func=no"
6570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6572 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6573 cat >> confdefs.h
<<EOF
6574 #define $ac_tr_func 1
6578 echo "$ac_t""no" 1>&6
6582 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_func" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.
$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func(); below. */
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6613 if { (eval echo configure
:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6615 eval "ac_cv_func_$ac_func=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.
$ac_ext >&5
6620 eval "ac_cv_func_$ac_func=no"
6625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6628 cat >> confdefs.h
<<EOF
6629 #define $ac_tr_func 1
6633 echo "$ac_t""no" 1>&6
6637 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6640 echo "configure:6641: checking for $ac_func" >&5
6641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 cat > conftest.
$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char $ac_func(); below. */
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6657 /* The GNU C library defines this for functions which it implements
6658 to always fail with ENOSYS. Some functions are actually named
6659 something starting with __ and the normal name is an alias. */
6660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6668 if { (eval echo configure
:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6670 eval "ac_cv_func_$ac_func=yes"
6672 echo "configure: failed program was:" >&5
6673 cat conftest.
$ac_ext >&5
6675 eval "ac_cv_func_$ac_func=no"
6680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6683 cat >> confdefs.h
<<EOF
6684 #define $ac_tr_func 1
6688 echo "$ac_t""no" 1>&6
6692 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_func" >&5
6696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 cat > conftest.
$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6702 /* System header to define __stub macros and hopefully few prototypes,
6703 which can conflict with char $ac_func(); below. */
6705 /* Override any gcc2 internal prototype to avoid an error. */
6706 /* We use char because int might match the return type of a gcc2
6707 builtin and then its argument prototype would still apply. */
6712 /* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
6715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
6727 echo "configure: failed program was:" >&5
6728 cat conftest.
$ac_ext >&5
6730 eval "ac_cv_func_$ac_func=no"
6735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6738 cat >> confdefs.h
<<EOF
6739 #define $ac_tr_func 1
6743 echo "$ac_t""no" 1>&6
6747 for ac_func
in _write __write _fork __fork
6749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6750 echo "configure:6751: checking for $ac_func" >&5
6751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6754 cat > conftest.
$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6757 /* System header to define __stub macros and hopefully few prototypes,
6758 which can conflict with char $ac_func(); below. */
6760 /* Override any gcc2 internal prototype to avoid an error. */
6761 /* We use char because int might match the return type of a gcc2
6762 builtin and then its argument prototype would still apply. */
6767 /* The GNU C library defines this for functions which it implements
6768 to always fail with ENOSYS. Some functions are actually named
6769 something starting with __ and the normal name is an alias. */
6770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6778 if { (eval echo configure
:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6780 eval "ac_cv_func_$ac_func=yes"
6782 echo "configure: failed program was:" >&5
6783 cat conftest.
$ac_ext >&5
6785 eval "ac_cv_func_$ac_func=no"
6790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6791 echo "$ac_t""yes" 1>&6
6792 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6793 cat >> confdefs.h
<<EOF
6794 #define $ac_tr_func 1
6798 echo "$ac_t""no" 1>&6
6802 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6805 echo "configure:6806: checking for $ac_func" >&5
6806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 cat > conftest.
$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char $ac_func(); below. */
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6833 if { (eval echo configure
:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6835 eval "ac_cv_func_$ac_func=yes"
6837 echo "configure: failed program was:" >&5
6838 cat conftest.
$ac_ext >&5
6840 eval "ac_cv_func_$ac_func=no"
6845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6847 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6848 cat >> confdefs.h
<<EOF
6849 #define $ac_tr_func 1
6853 echo "$ac_t""no" 1>&6
6857 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6860 echo "configure:6861: checking for $ac_func" >&5
6861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.
$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* System header to define __stub macros and hopefully few prototypes,
6868 which can conflict with char $ac_func(); below. */
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6877 /* The GNU C library defines this for functions which it implements
6878 to always fail with ENOSYS. Some functions are actually named
6879 something starting with __ and the normal name is an alias. */
6880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6888 if { (eval echo configure
:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6890 eval "ac_cv_func_$ac_func=yes"
6892 echo "configure: failed program was:" >&5
6893 cat conftest.
$ac_ext >&5
6895 eval "ac_cv_func_$ac_func=no"
6900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6901 echo "$ac_t""yes" 1>&6
6902 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6903 cat >> confdefs.h
<<EOF
6904 #define $ac_tr_func 1
6908 echo "$ac_t""no" 1>&6
6912 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6915 echo "configure:6916: checking for $ac_func" >&5
6916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6919 cat > conftest.
$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 /* System header to define __stub macros and hopefully few prototypes,
6923 which can conflict with char $ac_func(); below. */
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6932 /* The GNU C library defines this for functions which it implements
6933 to always fail with ENOSYS. Some functions are actually named
6934 something starting with __ and the normal name is an alias. */
6935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6943 if { (eval echo configure
:6944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6945 eval "ac_cv_func_$ac_func=yes"
6947 echo "configure: failed program was:" >&5
6948 cat conftest.
$ac_ext >&5
6950 eval "ac_cv_func_$ac_func=no"
6955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6956 echo "$ac_t""yes" 1>&6
6957 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6958 cat >> confdefs.h
<<EOF
6959 #define $ac_tr_func 1
6963 echo "$ac_t""no" 1>&6
6967 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6970 echo "configure:6971: checking for $ac_func" >&5
6971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6974 cat > conftest.
$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6977 /* System header to define __stub macros and hopefully few prototypes,
6978 which can conflict with char $ac_func(); below. */
6980 /* Override any gcc2 internal prototype to avoid an error. */
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6987 /* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6998 if { (eval echo configure
:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7000 eval "ac_cv_func_$ac_func=yes"
7002 echo "configure: failed program was:" >&5
7003 cat conftest.
$ac_ext >&5
7005 eval "ac_cv_func_$ac_func=no"
7010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7011 echo "$ac_t""yes" 1>&6
7012 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7013 cat >> confdefs.h
<<EOF
7014 #define $ac_tr_func 1
7018 echo "$ac_t""no" 1>&6
7022 for ac_func
in open64 _open64 __open64 creat64
7024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7025 echo "configure:7026: checking for $ac_func" >&5
7026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 cat > conftest.
$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char $ac_func(); below. */
7035 /* Override any gcc2 internal prototype to avoid an error. */
7036 /* We use char because int might match the return type of a gcc2
7037 builtin and then its argument prototype would still apply. */
7042 /* The GNU C library defines this for functions which it implements
7043 to always fail with ENOSYS. Some functions are actually named
7044 something starting with __ and the normal name is an alias. */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7053 if { (eval echo configure
:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7055 eval "ac_cv_func_$ac_func=yes"
7057 echo "configure: failed program was:" >&5
7058 cat conftest.
$ac_ext >&5
7060 eval "ac_cv_func_$ac_func=no"
7065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7067 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7068 cat >> confdefs.h
<<EOF
7069 #define $ac_tr_func 1
7073 echo "$ac_t""no" 1>&6
7079 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7082 if test x
$ac_cv_func_stat64 = xno
; then
7083 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7084 echo "configure:7085: checking for stat64 in <sys/stat.h>" >&5
7085 cat > conftest.
$ac_ext <<EOF
7086 #line 7087 "configure"
7087 #include "confdefs.h"
7089 #if defined(HAVE_UNISTD_H)
7092 #include <sys/stat.h>
7095 struct stat64 st64; exit(stat64(".",&st64));
7098 if { (eval echo configure
:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7100 ac_cv_func_stat64
=yes
7102 echo "configure: failed program was:" >&5
7103 cat conftest.
$ac_ext >&5
7106 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7107 if test x
$ac_cv_func_stat64 = xyes
; then
7108 cat >> confdefs.h
<<\EOF
7109 #define HAVE_STAT64 1
7115 if test x
$ac_cv_func_lstat64 = xno
; then
7116 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7117 echo "configure:7118: checking for lstat64 in <sys/stat.h>" >&5
7118 cat > conftest.
$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7122 #if defined(HAVE_UNISTD_H)
7125 #include <sys/stat.h>
7128 struct stat64 st64; exit(lstat64(".",&st64));
7131 if { (eval echo configure
:7132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7133 ac_cv_func_lstat64
=yes
7135 echo "configure: failed program was:" >&5
7136 cat conftest.
$ac_ext >&5
7139 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7140 if test x
$ac_cv_func_lstat64 = xyes
; then
7141 cat >> confdefs.h
<<\EOF
7142 #define HAVE_LSTAT64 Whether lstat64() is available
7148 if test x
$ac_cv_func_fstat64 = xno
; then
7149 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7150 echo "configure:7151: checking for fstat64 in <sys/stat.h>" >&5
7151 cat > conftest.
$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7155 #if defined(HAVE_UNISTD_H)
7158 #include <sys/stat.h>
7161 struct stat64 st64; exit(fstat64(0,&st64));
7164 if { (eval echo configure
:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7166 ac_cv_func_fstat64
=yes
7168 echo "configure: failed program was:" >&5
7169 cat conftest.
$ac_ext >&5
7172 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7173 if test x
$ac_cv_func_fstat64 = xyes
; then
7174 cat >> confdefs.h
<<\EOF
7175 #define HAVE_FSTAT64 1
7181 #####################################
7182 # we might need the resolv library on some systems
7183 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7184 echo "configure:7185: checking for dn_expand in -lresolv" >&5
7185 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7189 ac_save_LIBS
="$LIBS"
7190 LIBS
="-lresolv $LIBS"
7191 cat > conftest.
$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7203 if { (eval echo configure
:7204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7205 eval "ac_cv_lib_$ac_lib_var=yes"
7207 echo "configure: failed program was:" >&5
7208 cat conftest.
$ac_ext >&5
7210 eval "ac_cv_lib_$ac_lib_var=no"
7213 LIBS
="$ac_save_LIBS"
7216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7218 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7220 cat >> confdefs.h
<<EOF
7221 #define $ac_tr_lib 1
7224 LIBS
="-lresolv $LIBS"
7227 echo "$ac_t""no" 1>&6
7232 # Check for the functions putprpwnam, set_auth_parameters,
7233 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7234 # Needed for OSF1 and HPUX.
7238 *-lsecurity*) for ac_func
in putprpwnam
7240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7241 echo "configure:7242: checking for $ac_func" >&5
7242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7245 cat > conftest.
$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* System header to define __stub macros and hopefully few prototypes,
7249 which can conflict with char $ac_func(); below. */
7251 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7258 /* The GNU C library defines this for functions which it implements
7259 to always fail with ENOSYS. Some functions are actually named
7260 something starting with __ and the normal name is an alias. */
7261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7269 if { (eval echo configure
:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7271 eval "ac_cv_func_$ac_func=yes"
7273 echo "configure: failed program was:" >&5
7274 cat conftest.
$ac_ext >&5
7276 eval "ac_cv_func_$ac_func=no"
7281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7282 echo "$ac_t""yes" 1>&6
7283 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7284 cat >> confdefs.h
<<EOF
7285 #define $ac_tr_func 1
7289 echo "$ac_t""no" 1>&6
7293 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7294 echo "configure:7295: checking for putprpwnam in -lsecurity" >&5
7295 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7299 ac_save_LIBS
="$LIBS"
7300 LIBS
="-lsecurity $LIBS"
7301 cat > conftest.
$ac_ext <<EOF
7302 #line 7303 "configure"
7303 #include "confdefs.h"
7304 /* Override any gcc2 internal prototype to avoid an error. */
7305 /* We use char because int might match the return type of a gcc2
7306 builtin and then its argument prototype would still apply. */
7313 if { (eval echo configure
:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7315 eval "ac_cv_lib_$ac_lib_var=yes"
7317 echo "configure: failed program was:" >&5
7318 cat conftest.
$ac_ext >&5
7320 eval "ac_cv_lib_$ac_lib_var=no"
7323 LIBS
="$ac_save_LIBS"
7326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7327 echo "$ac_t""yes" 1>&6
7328 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7330 cat >> confdefs.h
<<EOF
7331 #define $ac_tr_lib 1
7334 LIBS
="-lsecurity $LIBS"
7337 echo "$ac_t""no" 1>&6
7340 for ac_func
in putprpwnam
7342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7343 echo "configure:7344: checking for $ac_func" >&5
7344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7347 cat > conftest.
$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 /* System header to define __stub macros and hopefully few prototypes,
7351 which can conflict with char $ac_func(); below. */
7353 /* Override any gcc2 internal prototype to avoid an error. */
7354 /* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7360 /* The GNU C library defines this for functions which it implements
7361 to always fail with ENOSYS. Some functions are actually named
7362 something starting with __ and the normal name is an alias. */
7363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7371 if { (eval echo configure
:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7373 eval "ac_cv_func_$ac_func=yes"
7375 echo "configure: failed program was:" >&5
7376 cat conftest.
$ac_ext >&5
7378 eval "ac_cv_func_$ac_func=no"
7383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7384 echo "$ac_t""yes" 1>&6
7385 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7386 cat >> confdefs.h
<<EOF
7387 #define $ac_tr_func 1
7391 echo "$ac_t""no" 1>&6
7399 *-lsec*) for ac_func
in putprpwnam
7401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7402 echo "configure:7403: checking for $ac_func" >&5
7403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7406 cat > conftest.
$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* System header to define __stub macros and hopefully few prototypes,
7410 which can conflict with char $ac_func(); below. */
7412 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7419 /* The GNU C library defines this for functions which it implements
7420 to always fail with ENOSYS. Some functions are actually named
7421 something starting with __ and the normal name is an alias. */
7422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7430 if { (eval echo configure
:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7432 eval "ac_cv_func_$ac_func=yes"
7434 echo "configure: failed program was:" >&5
7435 cat conftest.
$ac_ext >&5
7437 eval "ac_cv_func_$ac_func=no"
7442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7445 cat >> confdefs.h
<<EOF
7446 #define $ac_tr_func 1
7450 echo "$ac_t""no" 1>&6
7454 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7455 echo "configure:7456: checking for putprpwnam in -lsec" >&5
7456 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7458 echo $ac_n "(cached) $ac_c" 1>&6
7460 ac_save_LIBS
="$LIBS"
7462 cat > conftest.
$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7474 if { (eval echo configure
:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7476 eval "ac_cv_lib_$ac_lib_var=yes"
7478 echo "configure: failed program was:" >&5
7479 cat conftest.
$ac_ext >&5
7481 eval "ac_cv_lib_$ac_lib_var=no"
7484 LIBS
="$ac_save_LIBS"
7487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7491 cat >> confdefs.h
<<EOF
7492 #define $ac_tr_lib 1
7498 echo "$ac_t""no" 1>&6
7501 for ac_func
in putprpwnam
7503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7504 echo "configure:7505: checking for $ac_func" >&5
7505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7506 echo $ac_n "(cached) $ac_c" 1>&6
7508 cat > conftest.
$ac_ext <<EOF
7509 #line 7510 "configure"
7510 #include "confdefs.h"
7511 /* System header to define __stub macros and hopefully few prototypes,
7512 which can conflict with char $ac_func(); below. */
7514 /* Override any gcc2 internal prototype to avoid an error. */
7515 /* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7521 /* The GNU C library defines this for functions which it implements
7522 to always fail with ENOSYS. Some functions are actually named
7523 something starting with __ and the normal name is an alias. */
7524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
7536 echo "configure: failed program was:" >&5
7537 cat conftest.
$ac_ext >&5
7539 eval "ac_cv_func_$ac_func=no"
7544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7545 echo "$ac_t""yes" 1>&6
7546 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7547 cat >> confdefs.h
<<EOF
7548 #define $ac_tr_func 1
7552 echo "$ac_t""no" 1>&6
7561 *-lsecurity*) for ac_func
in set_auth_parameters
7563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7564 echo "configure:7565: checking for $ac_func" >&5
7565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7568 cat > conftest.
$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7571 /* System header to define __stub macros and hopefully few prototypes,
7572 which can conflict with char $ac_func(); below. */
7574 /* Override any gcc2 internal prototype to avoid an error. */
7575 /* We use char because int might match the return type of a gcc2
7576 builtin and then its argument prototype would still apply. */
7581 /* The GNU C library defines this for functions which it implements
7582 to always fail with ENOSYS. Some functions are actually named
7583 something starting with __ and the normal name is an alias. */
7584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7592 if { (eval echo configure
:7593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7594 eval "ac_cv_func_$ac_func=yes"
7596 echo "configure: failed program was:" >&5
7597 cat conftest.
$ac_ext >&5
7599 eval "ac_cv_func_$ac_func=no"
7604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7606 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7607 cat >> confdefs.h
<<EOF
7608 #define $ac_tr_func 1
7612 echo "$ac_t""no" 1>&6
7616 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7617 echo "configure:7618: checking for set_auth_parameters in -lsecurity" >&5
7618 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7620 echo $ac_n "(cached) $ac_c" 1>&6
7622 ac_save_LIBS
="$LIBS"
7623 LIBS
="-lsecurity $LIBS"
7624 cat > conftest.
$ac_ext <<EOF
7625 #line 7626 "configure"
7626 #include "confdefs.h"
7627 /* Override any gcc2 internal prototype to avoid an error. */
7628 /* We use char because int might match the return type of a gcc2
7629 builtin and then its argument prototype would still apply. */
7630 char set_auth_parameters();
7633 set_auth_parameters()
7636 if { (eval echo configure
:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7638 eval "ac_cv_lib_$ac_lib_var=yes"
7640 echo "configure: failed program was:" >&5
7641 cat conftest.
$ac_ext >&5
7643 eval "ac_cv_lib_$ac_lib_var=no"
7646 LIBS
="$ac_save_LIBS"
7649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7652 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7653 cat >> confdefs.h
<<EOF
7654 #define $ac_tr_lib 1
7657 LIBS
="-lsecurity $LIBS"
7660 echo "$ac_t""no" 1>&6
7663 for ac_func
in set_auth_parameters
7665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7666 echo "configure:7667: checking for $ac_func" >&5
7667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 cat > conftest.
$ac_ext <<EOF
7671 #line 7672 "configure"
7672 #include "confdefs.h"
7673 /* System header to define __stub macros and hopefully few prototypes,
7674 which can conflict with char $ac_func(); below. */
7676 /* Override any gcc2 internal prototype to avoid an error. */
7677 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */
7683 /* The GNU C library defines this for functions which it implements
7684 to always fail with ENOSYS. Some functions are actually named
7685 something starting with __ and the normal name is an alias. */
7686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7694 if { (eval echo configure
:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7696 eval "ac_cv_func_$ac_func=yes"
7698 echo "configure: failed program was:" >&5
7699 cat conftest.
$ac_ext >&5
7701 eval "ac_cv_func_$ac_func=no"
7706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7707 echo "$ac_t""yes" 1>&6
7708 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7709 cat >> confdefs.h
<<EOF
7710 #define $ac_tr_func 1
7714 echo "$ac_t""no" 1>&6
7722 *-lsec*) for ac_func
in set_auth_parameters
7724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7725 echo "configure:7726: checking for $ac_func" >&5
7726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7729 cat > conftest.
$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7732 /* System header to define __stub macros and hopefully few prototypes,
7733 which can conflict with char $ac_func(); below. */
7735 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7742 /* The GNU C library defines this for functions which it implements
7743 to always fail with ENOSYS. Some functions are actually named
7744 something starting with __ and the normal name is an alias. */
7745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7753 if { (eval echo configure
:7754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7755 eval "ac_cv_func_$ac_func=yes"
7757 echo "configure: failed program was:" >&5
7758 cat conftest.
$ac_ext >&5
7760 eval "ac_cv_func_$ac_func=no"
7765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7766 echo "$ac_t""yes" 1>&6
7767 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7768 cat >> confdefs.h
<<EOF
7769 #define $ac_tr_func 1
7773 echo "$ac_t""no" 1>&6
7777 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7778 echo "configure:7779: checking for set_auth_parameters in -lsec" >&5
7779 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7781 echo $ac_n "(cached) $ac_c" 1>&6
7783 ac_save_LIBS
="$LIBS"
7785 cat > conftest.
$ac_ext <<EOF
7786 #line 7787 "configure"
7787 #include "confdefs.h"
7788 /* Override any gcc2 internal prototype to avoid an error. */
7789 /* We use char because int might match the return type of a gcc2
7790 builtin and then its argument prototype would still apply. */
7791 char set_auth_parameters();
7794 set_auth_parameters()
7797 if { (eval echo configure
:7798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7799 eval "ac_cv_lib_$ac_lib_var=yes"
7801 echo "configure: failed program was:" >&5
7802 cat conftest.
$ac_ext >&5
7804 eval "ac_cv_lib_$ac_lib_var=no"
7807 LIBS
="$ac_save_LIBS"
7810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7812 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7814 cat >> confdefs.h
<<EOF
7815 #define $ac_tr_lib 1
7821 echo "$ac_t""no" 1>&6
7824 for ac_func
in set_auth_parameters
7826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_func" >&5
7828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7831 cat > conftest.
$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 /* System header to define __stub macros and hopefully few prototypes,
7835 which can conflict with char $ac_func(); below. */
7837 /* Override any gcc2 internal prototype to avoid an error. */
7838 /* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7844 /* The GNU C library defines this for functions which it implements
7845 to always fail with ENOSYS. Some functions are actually named
7846 something starting with __ and the normal name is an alias. */
7847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
7859 echo "configure: failed program was:" >&5
7860 cat conftest.
$ac_ext >&5
7862 eval "ac_cv_func_$ac_func=no"
7867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7868 echo "$ac_t""yes" 1>&6
7869 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7870 cat >> confdefs.h
<<EOF
7871 #define $ac_tr_func 1
7875 echo "$ac_t""no" 1>&6
7883 # UnixWare 7.x has its getspnam in -lgen
7885 *-lgen*) for ac_func
in getspnam
7887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7888 echo "configure:7889: checking for $ac_func" >&5
7889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7890 echo $ac_n "(cached) $ac_c" 1>&6
7892 cat > conftest.
$ac_ext <<EOF
7893 #line 7894 "configure"
7894 #include "confdefs.h"
7895 /* System header to define __stub macros and hopefully few prototypes,
7896 which can conflict with char $ac_func(); below. */
7898 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7905 /* The GNU C library defines this for functions which it implements
7906 to always fail with ENOSYS. Some functions are actually named
7907 something starting with __ and the normal name is an alias. */
7908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7916 if { (eval echo configure
:7917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7918 eval "ac_cv_func_$ac_func=yes"
7920 echo "configure: failed program was:" >&5
7921 cat conftest.
$ac_ext >&5
7923 eval "ac_cv_func_$ac_func=no"
7928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7929 echo "$ac_t""yes" 1>&6
7930 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7931 cat >> confdefs.h
<<EOF
7932 #define $ac_tr_func 1
7936 echo "$ac_t""no" 1>&6
7940 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7941 echo "configure:7942: checking for getspnam in -lgen" >&5
7942 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 ac_save_LIBS
="$LIBS"
7948 cat > conftest.
$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7960 if { (eval echo configure
:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7962 eval "ac_cv_lib_$ac_lib_var=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.
$ac_ext >&5
7967 eval "ac_cv_lib_$ac_lib_var=no"
7970 LIBS
="$ac_save_LIBS"
7973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7977 cat >> confdefs.h
<<EOF
7978 #define $ac_tr_lib 1
7984 echo "$ac_t""no" 1>&6
7987 for ac_func
in getspnam
7989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7990 echo "configure:7991: checking for $ac_func" >&5
7991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7994 cat > conftest.
$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
7997 /* System header to define __stub macros and hopefully few prototypes,
7998 which can conflict with char $ac_func(); below. */
8000 /* Override any gcc2 internal prototype to avoid an error. */
8001 /* We use char because int might match the return type of a gcc2
8002 builtin and then its argument prototype would still apply. */
8007 /* The GNU C library defines this for functions which it implements
8008 to always fail with ENOSYS. Some functions are actually named
8009 something starting with __ and the normal name is an alias. */
8010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8018 if { (eval echo configure
:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8020 eval "ac_cv_func_$ac_func=yes"
8022 echo "configure: failed program was:" >&5
8023 cat conftest.
$ac_ext >&5
8025 eval "ac_cv_func_$ac_func=no"
8030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8031 echo "$ac_t""yes" 1>&6
8032 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8033 cat >> confdefs.h
<<EOF
8034 #define $ac_tr_func 1
8038 echo "$ac_t""no" 1>&6
8047 *-lsecurity*) for ac_func
in getspnam
8049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8050 echo "configure:8051: checking for $ac_func" >&5
8051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8054 cat > conftest.
$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* System header to define __stub macros and hopefully few prototypes,
8058 which can conflict with char $ac_func(); below. */
8060 /* Override any gcc2 internal prototype to avoid an error. */
8061 /* We use char because int might match the return type of a gcc2
8062 builtin and then its argument prototype would still apply. */
8067 /* The GNU C library defines this for functions which it implements
8068 to always fail with ENOSYS. Some functions are actually named
8069 something starting with __ and the normal name is an alias. */
8070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8078 if { (eval echo configure
:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8080 eval "ac_cv_func_$ac_func=yes"
8082 echo "configure: failed program was:" >&5
8083 cat conftest.
$ac_ext >&5
8085 eval "ac_cv_func_$ac_func=no"
8090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8093 cat >> confdefs.h
<<EOF
8094 #define $ac_tr_func 1
8098 echo "$ac_t""no" 1>&6
8102 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8103 echo "configure:8104: checking for getspnam in -lsecurity" >&5
8104 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8108 ac_save_LIBS
="$LIBS"
8109 LIBS
="-lsecurity $LIBS"
8110 cat > conftest.
$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8113 /* Override any gcc2 internal prototype to avoid an error. */
8114 /* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8122 if { (eval echo configure
:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8124 eval "ac_cv_lib_$ac_lib_var=yes"
8126 echo "configure: failed program was:" >&5
8127 cat conftest.
$ac_ext >&5
8129 eval "ac_cv_lib_$ac_lib_var=no"
8132 LIBS
="$ac_save_LIBS"
8135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8137 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8139 cat >> confdefs.h
<<EOF
8140 #define $ac_tr_lib 1
8143 LIBS
="-lsecurity $LIBS"
8146 echo "$ac_t""no" 1>&6
8149 for ac_func
in getspnam
8151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8152 echo "configure:8153: checking for $ac_func" >&5
8153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8154 echo $ac_n "(cached) $ac_c" 1>&6
8156 cat > conftest.
$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 /* System header to define __stub macros and hopefully few prototypes,
8160 which can conflict with char $ac_func(); below. */
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8169 /* The GNU C library defines this for functions which it implements
8170 to always fail with ENOSYS. Some functions are actually named
8171 something starting with __ and the normal name is an alias. */
8172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8180 if { (eval echo configure
:8181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8182 eval "ac_cv_func_$ac_func=yes"
8184 echo "configure: failed program was:" >&5
8185 cat conftest.
$ac_ext >&5
8187 eval "ac_cv_func_$ac_func=no"
8192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8194 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8195 cat >> confdefs.h
<<EOF
8196 #define $ac_tr_func 1
8200 echo "$ac_t""no" 1>&6
8208 *-lsec*) for ac_func
in getspnam
8210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8211 echo "configure:8212: checking for $ac_func" >&5
8212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8215 cat > conftest.
$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* System header to define __stub macros and hopefully few prototypes,
8219 which can conflict with char $ac_func(); below. */
8221 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8228 /* The GNU C library defines this for functions which it implements
8229 to always fail with ENOSYS. Some functions are actually named
8230 something starting with __ and the normal name is an alias. */
8231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8239 if { (eval echo configure
:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8241 eval "ac_cv_func_$ac_func=yes"
8243 echo "configure: failed program was:" >&5
8244 cat conftest.
$ac_ext >&5
8246 eval "ac_cv_func_$ac_func=no"
8251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8252 echo "$ac_t""yes" 1>&6
8253 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8254 cat >> confdefs.h
<<EOF
8255 #define $ac_tr_func 1
8259 echo "$ac_t""no" 1>&6
8263 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8264 echo "configure:8265: checking for getspnam in -lsec" >&5
8265 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8269 ac_save_LIBS
="$LIBS"
8271 cat > conftest.
$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 /* Override any gcc2 internal prototype to avoid an error. */
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8283 if { (eval echo configure
:8284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8285 eval "ac_cv_lib_$ac_lib_var=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.
$ac_ext >&5
8290 eval "ac_cv_lib_$ac_lib_var=no"
8293 LIBS
="$ac_save_LIBS"
8296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8297 echo "$ac_t""yes" 1>&6
8298 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8300 cat >> confdefs.h
<<EOF
8301 #define $ac_tr_lib 1
8307 echo "$ac_t""no" 1>&6
8310 for ac_func
in getspnam
8312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8313 echo "configure:8314: checking for $ac_func" >&5
8314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8317 cat > conftest.
$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 /* System header to define __stub macros and hopefully few prototypes,
8321 which can conflict with char $ac_func(); below. */
8323 /* Override any gcc2 internal prototype to avoid an error. */
8324 /* We use char because int might match the return type of a gcc2
8325 builtin and then its argument prototype would still apply. */
8330 /* The GNU C library defines this for functions which it implements
8331 to always fail with ENOSYS. Some functions are actually named
8332 something starting with __ and the normal name is an alias. */
8333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8341 if { (eval echo configure
:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8343 eval "ac_cv_func_$ac_func=yes"
8345 echo "configure: failed program was:" >&5
8346 cat conftest.
$ac_ext >&5
8348 eval "ac_cv_func_$ac_func=no"
8353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8354 echo "$ac_t""yes" 1>&6
8355 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8356 cat >> confdefs.h
<<EOF
8357 #define $ac_tr_func 1
8361 echo "$ac_t""no" 1>&6
8370 *-lsecurity*) for ac_func
in bigcrypt
8372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8373 echo "configure:8374: checking for $ac_func" >&5
8374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8375 echo $ac_n "(cached) $ac_c" 1>&6
8377 cat > conftest.
$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 /* System header to define __stub macros and hopefully few prototypes,
8381 which can conflict with char $ac_func(); below. */
8383 /* Override any gcc2 internal prototype to avoid an error. */
8384 /* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8390 /* The GNU C library defines this for functions which it implements
8391 to always fail with ENOSYS. Some functions are actually named
8392 something starting with __ and the normal name is an alias. */
8393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8401 if { (eval echo configure
:8402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8403 eval "ac_cv_func_$ac_func=yes"
8405 echo "configure: failed program was:" >&5
8406 cat conftest.
$ac_ext >&5
8408 eval "ac_cv_func_$ac_func=no"
8413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8414 echo "$ac_t""yes" 1>&6
8415 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8416 cat >> confdefs.h
<<EOF
8417 #define $ac_tr_func 1
8421 echo "$ac_t""no" 1>&6
8425 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8426 echo "configure:8427: checking for bigcrypt in -lsecurity" >&5
8427 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8431 ac_save_LIBS
="$LIBS"
8432 LIBS
="-lsecurity $LIBS"
8433 cat > conftest.
$ac_ext <<EOF
8434 #line 8435 "configure"
8435 #include "confdefs.h"
8436 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8445 if { (eval echo configure
:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8447 eval "ac_cv_lib_$ac_lib_var=yes"
8449 echo "configure: failed program was:" >&5
8450 cat conftest.
$ac_ext >&5
8452 eval "ac_cv_lib_$ac_lib_var=no"
8455 LIBS
="$ac_save_LIBS"
8458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8459 echo "$ac_t""yes" 1>&6
8460 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8461 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8462 cat >> confdefs.h
<<EOF
8463 #define $ac_tr_lib 1
8466 LIBS
="-lsecurity $LIBS"
8469 echo "$ac_t""no" 1>&6
8472 for ac_func
in bigcrypt
8474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8475 echo "configure:8476: checking for $ac_func" >&5
8476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8479 cat > conftest.
$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 /* System header to define __stub macros and hopefully few prototypes,
8483 which can conflict with char $ac_func(); below. */
8485 /* Override any gcc2 internal prototype to avoid an error. */
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8492 /* The GNU C library defines this for functions which it implements
8493 to always fail with ENOSYS. Some functions are actually named
8494 something starting with __ and the normal name is an alias. */
8495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8503 if { (eval echo configure
:8504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8505 eval "ac_cv_func_$ac_func=yes"
8507 echo "configure: failed program was:" >&5
8508 cat conftest.
$ac_ext >&5
8510 eval "ac_cv_func_$ac_func=no"
8515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8516 echo "$ac_t""yes" 1>&6
8517 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8518 cat >> confdefs.h
<<EOF
8519 #define $ac_tr_func 1
8523 echo "$ac_t""no" 1>&6
8531 *-lsec*) for ac_func
in bigcrypt
8533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8534 echo "configure:8535: checking for $ac_func" >&5
8535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8538 cat > conftest.
$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 /* System header to define __stub macros and hopefully few prototypes,
8542 which can conflict with char $ac_func(); below. */
8544 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8551 /* The GNU C library defines this for functions which it implements
8552 to always fail with ENOSYS. Some functions are actually named
8553 something starting with __ and the normal name is an alias. */
8554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8562 if { (eval echo configure
:8563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8564 eval "ac_cv_func_$ac_func=yes"
8566 echo "configure: failed program was:" >&5
8567 cat conftest.
$ac_ext >&5
8569 eval "ac_cv_func_$ac_func=no"
8574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8575 echo "$ac_t""yes" 1>&6
8576 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8577 cat >> confdefs.h
<<EOF
8578 #define $ac_tr_func 1
8582 echo "$ac_t""no" 1>&6
8586 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8587 echo "configure:8588: checking for bigcrypt in -lsec" >&5
8588 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8592 ac_save_LIBS
="$LIBS"
8594 cat > conftest.
$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 /* Override any gcc2 internal prototype to avoid an error. */
8598 /* We use char because int might match the return type of a gcc2
8599 builtin and then its argument prototype would still apply. */
8606 if { (eval echo configure
:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8608 eval "ac_cv_lib_$ac_lib_var=yes"
8610 echo "configure: failed program was:" >&5
8611 cat conftest.
$ac_ext >&5
8613 eval "ac_cv_lib_$ac_lib_var=no"
8616 LIBS
="$ac_save_LIBS"
8619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8620 echo "$ac_t""yes" 1>&6
8621 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8622 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8623 cat >> confdefs.h
<<EOF
8624 #define $ac_tr_lib 1
8630 echo "$ac_t""no" 1>&6
8633 for ac_func
in bigcrypt
8635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8636 echo "configure:8637: checking for $ac_func" >&5
8637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8640 cat > conftest.
$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 /* System header to define __stub macros and hopefully few prototypes,
8644 which can conflict with char $ac_func(); below. */
8646 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8653 /* The GNU C library defines this for functions which it implements
8654 to always fail with ENOSYS. Some functions are actually named
8655 something starting with __ and the normal name is an alias. */
8656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8664 if { (eval echo configure
:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8666 eval "ac_cv_func_$ac_func=yes"
8668 echo "configure: failed program was:" >&5
8669 cat conftest.
$ac_ext >&5
8671 eval "ac_cv_func_$ac_func=no"
8676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8677 echo "$ac_t""yes" 1>&6
8678 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8679 cat >> confdefs.h
<<EOF
8680 #define $ac_tr_func 1
8684 echo "$ac_t""no" 1>&6
8693 *-lsecurity*) for ac_func
in getprpwnam
8695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8696 echo "configure:8697: checking for $ac_func" >&5
8697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8700 cat > conftest.
$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8703 /* System header to define __stub macros and hopefully few prototypes,
8704 which can conflict with char $ac_func(); below. */
8706 /* Override any gcc2 internal prototype to avoid an error. */
8707 /* We use char because int might match the return type of a gcc2
8708 builtin and then its argument prototype would still apply. */
8713 /* The GNU C library defines this for functions which it implements
8714 to always fail with ENOSYS. Some functions are actually named
8715 something starting with __ and the normal name is an alias. */
8716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8724 if { (eval echo configure
:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8726 eval "ac_cv_func_$ac_func=yes"
8728 echo "configure: failed program was:" >&5
8729 cat conftest.
$ac_ext >&5
8731 eval "ac_cv_func_$ac_func=no"
8736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8737 echo "$ac_t""yes" 1>&6
8738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8739 cat >> confdefs.h
<<EOF
8740 #define $ac_tr_func 1
8744 echo "$ac_t""no" 1>&6
8748 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8749 echo "configure:8750: checking for getprpwnam in -lsecurity" >&5
8750 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8754 ac_save_LIBS
="$LIBS"
8755 LIBS
="-lsecurity $LIBS"
8756 cat > conftest.
$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8759 /* Override any gcc2 internal prototype to avoid an error. */
8760 /* We use char because int might match the return type of a gcc2
8761 builtin and then its argument prototype would still apply. */
8768 if { (eval echo configure
:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8770 eval "ac_cv_lib_$ac_lib_var=yes"
8772 echo "configure: failed program was:" >&5
8773 cat conftest.
$ac_ext >&5
8775 eval "ac_cv_lib_$ac_lib_var=no"
8778 LIBS
="$ac_save_LIBS"
8781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8782 echo "$ac_t""yes" 1>&6
8783 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8785 cat >> confdefs.h
<<EOF
8786 #define $ac_tr_lib 1
8789 LIBS
="-lsecurity $LIBS"
8792 echo "$ac_t""no" 1>&6
8795 for ac_func
in getprpwnam
8797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8798 echo "configure:8799: checking for $ac_func" >&5
8799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8802 cat > conftest.
$ac_ext <<EOF
8803 #line 8804 "configure"
8804 #include "confdefs.h"
8805 /* System header to define __stub macros and hopefully few prototypes,
8806 which can conflict with char $ac_func(); below. */
8808 /* Override any gcc2 internal prototype to avoid an error. */
8809 /* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8815 /* The GNU C library defines this for functions which it implements
8816 to always fail with ENOSYS. Some functions are actually named
8817 something starting with __ and the normal name is an alias. */
8818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8826 if { (eval echo configure
:8827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8828 eval "ac_cv_func_$ac_func=yes"
8830 echo "configure: failed program was:" >&5
8831 cat conftest.
$ac_ext >&5
8833 eval "ac_cv_func_$ac_func=no"
8838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8839 echo "$ac_t""yes" 1>&6
8840 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8841 cat >> confdefs.h
<<EOF
8842 #define $ac_tr_func 1
8846 echo "$ac_t""no" 1>&6
8854 *-lsec*) for ac_func
in getprpwnam
8856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8857 echo "configure:8858: checking for $ac_func" >&5
8858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8861 cat > conftest.
$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8864 /* System header to define __stub macros and hopefully few prototypes,
8865 which can conflict with char $ac_func(); below. */
8867 /* Override any gcc2 internal prototype to avoid an error. */
8868 /* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8874 /* The GNU C library defines this for functions which it implements
8875 to always fail with ENOSYS. Some functions are actually named
8876 something starting with __ and the normal name is an alias. */
8877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8885 if { (eval echo configure
:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8887 eval "ac_cv_func_$ac_func=yes"
8889 echo "configure: failed program was:" >&5
8890 cat conftest.
$ac_ext >&5
8892 eval "ac_cv_func_$ac_func=no"
8897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8898 echo "$ac_t""yes" 1>&6
8899 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8900 cat >> confdefs.h
<<EOF
8901 #define $ac_tr_func 1
8905 echo "$ac_t""no" 1>&6
8909 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8910 echo "configure:8911: checking for getprpwnam in -lsec" >&5
8911 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8915 ac_save_LIBS
="$LIBS"
8917 cat > conftest.
$ac_ext <<EOF
8918 #line 8919 "configure"
8919 #include "confdefs.h"
8920 /* Override any gcc2 internal prototype to avoid an error. */
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8929 if { (eval echo configure
:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8931 eval "ac_cv_lib_$ac_lib_var=yes"
8933 echo "configure: failed program was:" >&5
8934 cat conftest.
$ac_ext >&5
8936 eval "ac_cv_lib_$ac_lib_var=no"
8939 LIBS
="$ac_save_LIBS"
8942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8943 echo "$ac_t""yes" 1>&6
8944 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8945 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8946 cat >> confdefs.h
<<EOF
8947 #define $ac_tr_lib 1
8953 echo "$ac_t""no" 1>&6
8956 for ac_func
in getprpwnam
8958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8959 echo "configure:8960: checking for $ac_func" >&5
8960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8963 cat > conftest.
$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 /* System header to define __stub macros and hopefully few prototypes,
8967 which can conflict with char $ac_func(); below. */
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8987 if { (eval echo configure
:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8989 eval "ac_cv_func_$ac_func=yes"
8991 echo "configure: failed program was:" >&5
8992 cat conftest.
$ac_ext >&5
8994 eval "ac_cv_func_$ac_func=no"
8999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9000 echo "$ac_t""yes" 1>&6
9001 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9002 cat >> confdefs.h
<<EOF
9003 #define $ac_tr_func 1
9007 echo "$ac_t""no" 1>&6
9015 # this bit needs to be modified for each OS that is suported by
9016 # smbwrapper. You need to specify how to created a shared library and
9017 # how to compile C code to produce PIC object files
9019 # these are the defaults, good for lots of systems
9028 # Assume non-shared by default and override below
9030 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9031 echo "configure:9032: checking ability to build shared libraries" >&5
9033 # and these are for particular systems
9035 *linux
*) cat >> confdefs.h
<<\EOF
9041 DYNEXP
="-Wl,--export-dynamic"
9043 SONAMEFLAG
="-Wl,-soname="
9044 cat >> confdefs.h
<<\EOF
9045 #define STAT_ST_BLOCKSIZE 512
9049 *solaris
*) cat >> confdefs.h
<<\EOF
9056 if test "${GCC}" = "yes"; then
9058 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9063 ## ${CFLAGS} added for building 64-bit shared
9064 ## libs using Sun's Compiler
9065 LDSHFLAGS
="-G \${CFLAGS}"
9069 cat >> confdefs.h
<<\EOF
9070 #define STAT_ST_BLOCKSIZE 512
9074 *sunos
*) cat >> confdefs.h
<<\EOF
9080 SONAMEFLAG
="-Wl,-h,"
9081 PICFLAG
="-KPIC" # Is this correct for SunOS
9082 cat >> confdefs.h
<<\EOF
9083 #define STAT_ST_BLOCKSIZE 512
9087 *freebsd
*) BLDSHARED
="true"
9089 DYNEXP
="-Wl,--export-dynamic"
9090 SONAMEFLAG
="-Wl,-soname,"
9091 PICFLAG
="-fPIC -DPIC"
9092 cat >> confdefs.h
<<\EOF
9093 #define STAT_ST_BLOCKSIZE 512
9097 *openbsd
*) BLDSHARED
="true"
9099 DYNEXP
="-Wl,-Bdynamic"
9100 SONAMEFLAG
="-Wl,-soname,"
9102 cat >> confdefs.h
<<\EOF
9103 #define STAT_ST_BLOCKSIZE 512
9107 *irix
*) cat >> confdefs.h
<<\EOF
9112 *irix6
*) cat >> confdefs.h
<<\EOF
9118 ATTEMPT_WRAP32_BUILD
=yes
9120 LDSHFLAGS
="-set_version sgi1.0 -shared"
9121 SONAMEFLAG
="-soname "
9123 if test "${GCC}" = "yes"; then
9128 cat >> confdefs.h
<<\EOF
9129 #define STAT_ST_BLOCKSIZE 512
9133 *aix
*) cat >> confdefs.h
<<\EOF
9138 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
9139 DYNEXP
="-Wl,-brtl,-bexpall"
9141 if test "${GCC}" != "yes"; then
9142 ## for funky AIX compiler using strncpy()
9143 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9146 cat >> confdefs.h
<<\EOF
9147 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9151 *hpux
*) cat >> confdefs.h
<<\EOF
9156 # Use special PIC flags for the native HP-UX compiler.
9157 if test $ac_cv_prog_cc_Ae = yes; then
9160 LDSHFLAGS
="-B symbolic -b -z"
9165 cat >> confdefs.h
<<\EOF
9166 #define STAT_ST_BLOCKSIZE 8192
9170 *qnx
*) cat >> confdefs.h
<<\EOF
9174 cat >> confdefs.h
<<\EOF
9175 #define STAT_ST_BLOCKSIZE 512
9179 *osf
*) cat >> confdefs.h
<<\EOF
9185 SONAMEFLAG
="-Wl,-soname,"
9187 cat >> confdefs.h
<<\EOF
9188 #define STAT_ST_BLOCKSIZE 512
9192 *sco
*) cat >> confdefs.h
<<\EOF
9196 cat >> confdefs.h
<<\EOF
9197 #define STAT_ST_BLOCKSIZE 512
9201 *unixware
*) cat >> confdefs.h
<<\EOF
9207 SONAMEFLAG
="-Wl,-soname,"
9209 cat >> confdefs.h
<<\EOF
9210 #define STAT_ST_BLOCKSIZE 512
9214 *next2
*) cat >> confdefs.h
<<\EOF
9218 cat >> confdefs.h
<<\EOF
9219 #define STAT_ST_BLOCKSIZE 512
9223 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
9224 set dummy
groff; ac_word
=$2
9225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9226 echo "configure:9227: checking for $ac_word" >&5
9227 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9230 if test -n "$ROFF"; then
9231 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
9233 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
9235 for ac_dir
in $ac_dummy; do
9236 test -z "$ac_dir" && ac_dir
=.
9237 if test -f $ac_dir/$ac_word; then
9238 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
9245 ROFF
="$ac_cv_prog_ROFF"
9246 if test -n "$ROFF"; then
9247 echo "$ac_t""$ROFF" 1>&6
9249 echo "$ac_t""no" 1>&6
9252 cat >> confdefs.h
<<\EOF
9253 #define STAT_ST_BLOCKSIZE 512
9257 *sysv4
*) cat >> confdefs.h
<<\EOF
9262 *-univel-*) if test "$GCC" != yes ; then
9263 cat >> confdefs.h
<<\EOF
9264 #define HAVE_MEMSET 1
9271 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
9272 #define RELIANTUNIX 1
9276 cat >> confdefs.h
<<\EOF
9277 #define STAT_ST_BLOCKSIZE 512
9282 *sysv5
*) cat >> confdefs.h
<<\EOF
9286 if test "$GCC" != yes ; then
9287 cat >> confdefs.h
<<\EOF
9288 #define HAVE_MEMSET 1
9293 cat >> confdefs.h
<<\EOF
9294 #define STAT_ST_BLOCKSIZE 512
9299 cat >> confdefs.h
<<\EOF
9300 #define STAT_ST_BLOCKSIZE 512
9306 echo "$ac_t""$BLDSHARED" 1>&6
9307 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9308 echo "configure:9309: checking linker flags for shared libraries" >&5
9309 echo "$ac_t""$LDSHFLAGS" 1>&6
9310 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9311 echo "configure:9312: checking compiler flags for position-independent code" >&5
9312 echo "$ac_t""$PICFLAGS" 1>&6
9314 #######################################################
9315 # test whether building a shared library actually works
9316 if test $BLDSHARED = true
; then
9317 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9318 echo "configure:9319: checking whether building shared libraries actually works" >&5
9319 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9323 ac_cv_shlib_works
=no
9324 # try building a trivial shared library
9325 if test "$PICSUFFIX" = "po"; then
9326 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
9327 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9328 ac_cv_shlib_works
=yes
9330 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.
$PICSUFFIX ${srcdir-.}/tests
/shlib.c
&&
9331 mv shlib.
$PICSUFFIX shlib.po
&&
9332 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9333 ac_cv_shlib_works
=yes
9335 rm -f shlib.so shlib.po
9339 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9340 if test $ac_cv_shlib_works = no
; then
9346 # this updates our target list if we can build shared libs
9347 if test $BLDSHARED = true
; then
9348 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
9350 LIBSMBCLIENT_SHARED
=
9355 echo $ac_n "checking for long long""... $ac_c" 1>&6
9356 echo "configure:9357: checking for long long" >&5
9357 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9361 if test "$cross_compiling" = yes; then
9362 samba_cv_have_longlong
=cross
9364 cat > conftest.
$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9368 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9370 if { (eval echo configure
:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9372 samba_cv_have_longlong
=yes
9374 echo "configure: failed program was:" >&5
9375 cat conftest.
$ac_ext >&5
9377 samba_cv_have_longlong
=no
9384 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9385 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9386 cat >> confdefs.h
<<\EOF
9387 #define HAVE_LONGLONG 1
9393 # Check if the compiler supports the LL prefix on long long integers.
9396 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9397 echo "configure:9398: checking for LL suffix on long long integers" >&5
9398 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9402 cat > conftest.
$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9407 long long i = 0x8000000000LL
9410 if { (eval echo configure
:9411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9412 samba_cv_compiler_supports_ll
=yes
9414 echo "configure: failed program was:" >&5
9415 cat conftest.
$ac_ext >&5
9417 samba_cv_compiler_supports_ll
=no
9422 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9423 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9424 cat >> confdefs.h
<<\EOF
9425 #define COMPILER_SUPPORTS_LL 1
9431 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9432 echo "configure:9433: checking for 64 bit off_t" >&5
9433 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9437 if test "$cross_compiling" = yes; then
9438 samba_cv_SIZEOF_OFF_T
=cross
9440 cat > conftest.
$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9444 #include <sys/stat.h>
9445 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9447 if { (eval echo configure
:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9449 samba_cv_SIZEOF_OFF_T
=yes
9451 echo "configure: failed program was:" >&5
9452 cat conftest.
$ac_ext >&5
9454 samba_cv_SIZEOF_OFF_T
=no
9461 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9462 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9463 cat >> confdefs.h
<<\EOF
9464 #define SIZEOF_OFF_T 8
9469 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9470 echo "configure:9471: checking for off64_t" >&5
9471 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9475 if test "$cross_compiling" = yes; then
9476 samba_cv_HAVE_OFF64_T
=cross
9478 cat > conftest.
$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9482 #if defined(HAVE_UNISTD_H)
9486 #include <sys/stat.h>
9487 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9489 if { (eval echo configure
:9490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9491 samba_cv_HAVE_OFF64_T
=yes
9493 echo "configure: failed program was:" >&5
9494 cat conftest.
$ac_ext >&5
9496 samba_cv_HAVE_OFF64_T
=no
9503 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9504 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9505 cat >> confdefs.h
<<\EOF
9506 #define HAVE_OFF64_T 1
9511 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9512 echo "configure:9513: checking for 64 bit ino_t" >&5
9513 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9517 if test "$cross_compiling" = yes; then
9518 samba_cv_SIZEOF_INO_T
=cross
9520 cat > conftest.
$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9524 #include <sys/stat.h>
9525 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9527 if { (eval echo configure
:9528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9529 samba_cv_SIZEOF_INO_T
=yes
9531 echo "configure: failed program was:" >&5
9532 cat conftest.
$ac_ext >&5
9534 samba_cv_SIZEOF_INO_T
=no
9541 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9542 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9543 cat >> confdefs.h
<<\EOF
9544 #define SIZEOF_INO_T 8
9549 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9550 echo "configure:9551: checking for ino64_t" >&5
9551 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9555 if test "$cross_compiling" = yes; then
9556 samba_cv_HAVE_INO64_T
=cross
9558 cat > conftest.
$ac_ext <<EOF
9559 #line 9560 "configure"
9560 #include "confdefs.h"
9562 #if defined(HAVE_UNISTD_H)
9566 #include <sys/stat.h>
9567 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9569 if { (eval echo configure
:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9571 samba_cv_HAVE_INO64_T
=yes
9573 echo "configure: failed program was:" >&5
9574 cat conftest.
$ac_ext >&5
9576 samba_cv_HAVE_INO64_T
=no
9583 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9584 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9585 cat >> confdefs.h
<<\EOF
9586 #define HAVE_INO64_T 1
9591 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9592 echo "configure:9593: checking for dev64_t" >&5
9593 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9594 echo $ac_n "(cached) $ac_c" 1>&6
9597 if test "$cross_compiling" = yes; then
9598 samba_cv_HAVE_DEV64_T
=cross
9600 cat > conftest.
$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9604 #if defined(HAVE_UNISTD_H)
9608 #include <sys/stat.h>
9609 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9611 if { (eval echo configure
:9612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9613 samba_cv_HAVE_DEV64_T
=yes
9615 echo "configure: failed program was:" >&5
9616 cat conftest.
$ac_ext >&5
9618 samba_cv_HAVE_DEV64_T
=no
9625 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9626 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9627 cat >> confdefs.h
<<\EOF
9628 #define HAVE_DEV64_T 1
9633 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9634 echo "configure:9635: checking for struct dirent64" >&5
9635 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9636 echo $ac_n "(cached) $ac_c" 1>&6
9639 cat > conftest.
$ac_ext <<EOF
9640 #line 9641 "configure"
9641 #include "confdefs.h"
9643 #if defined(HAVE_UNISTD_H)
9646 #include <sys/types.h>
9652 if { (eval echo configure
:9653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9654 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9656 echo "configure: failed program was:" >&5
9657 cat conftest.
$ac_ext >&5
9659 samba_cv_HAVE_STRUCT_DIRENT64
=no
9664 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9665 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9666 cat >> confdefs.h
<<\EOF
9667 #define HAVE_STRUCT_DIRENT64 1
9672 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9673 echo "configure:9674: checking for major macro" >&5
9674 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9675 echo $ac_n "(cached) $ac_c" 1>&6
9678 if test "$cross_compiling" = yes; then
9679 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9681 cat > conftest.
$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9685 #if defined(HAVE_UNISTD_H)
9688 #include <sys/types.h>
9689 main() { dev_t dev; int i = major(dev); return 0; }
9691 if { (eval echo configure
:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9693 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9695 echo "configure: failed program was:" >&5
9696 cat conftest.
$ac_ext >&5
9698 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9705 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9706 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9707 cat >> confdefs.h
<<\EOF
9708 #define HAVE_DEVICE_MAJOR_FN 1
9713 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9714 echo "configure:9715: checking for minor macro" >&5
9715 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9716 echo $ac_n "(cached) $ac_c" 1>&6
9719 if test "$cross_compiling" = yes; then
9720 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9722 cat > conftest.
$ac_ext <<EOF
9723 #line 9724 "configure"
9724 #include "confdefs.h"
9726 #if defined(HAVE_UNISTD_H)
9729 #include <sys/types.h>
9730 main() { dev_t dev; int i = minor(dev); return 0; }
9732 if { (eval echo configure
:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9734 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9736 echo "configure: failed program was:" >&5
9737 cat conftest.
$ac_ext >&5
9739 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9746 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9747 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9748 cat >> confdefs.h
<<\EOF
9749 #define HAVE_DEVICE_MINOR_FN 1
9754 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9755 echo "configure:9756: checking for unsigned char" >&5
9756 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9757 echo $ac_n "(cached) $ac_c" 1>&6
9760 if test "$cross_compiling" = yes; then
9761 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9763 cat > conftest.
$ac_ext <<EOF
9764 #line 9765 "configure"
9765 #include "confdefs.h"
9767 main() { char c; c=250; exit((c > 0)?0:1); }
9769 if { (eval echo configure
:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9771 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9773 echo "configure: failed program was:" >&5
9774 cat conftest.
$ac_ext >&5
9776 samba_cv_HAVE_UNSIGNED_CHAR
=no
9783 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9784 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9785 cat >> confdefs.h
<<\EOF
9786 #define HAVE_UNSIGNED_CHAR 1
9791 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9792 echo "configure:9793: checking for sin_len in sock" >&5
9793 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9794 echo $ac_n "(cached) $ac_c" 1>&6
9797 cat > conftest.
$ac_ext <<EOF
9798 #line 9799 "configure"
9799 #include "confdefs.h"
9800 #include <sys/types.h>
9801 #include <sys/socket.h>
9802 #include <netinet/in.h>
9804 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9807 if { (eval echo configure
:9808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9809 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9811 echo "configure: failed program was:" >&5
9812 cat conftest.
$ac_ext >&5
9814 samba_cv_HAVE_SOCK_SIN_LEN
=no
9819 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9820 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9821 cat >> confdefs.h
<<\EOF
9822 #define HAVE_SOCK_SIN_LEN 1
9827 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9828 echo "configure:9829: checking whether seekdir returns void" >&5
9829 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9833 cat > conftest.
$ac_ext <<EOF
9834 #line 9835 "configure"
9835 #include "confdefs.h"
9836 #include <sys/types.h>
9838 void seekdir(DIR *d, long loc) { return; }
9843 if { (eval echo configure
:9844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9845 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9847 echo "configure: failed program was:" >&5
9848 cat conftest.
$ac_ext >&5
9850 samba_cv_SEEKDIR_RETURNS_VOID
=no
9855 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9856 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9857 cat >> confdefs.h
<<\EOF
9858 #define SEEKDIR_RETURNS_VOID 1
9863 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9864 echo "configure:9865: checking for __FUNCTION__ macro" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9869 cat > conftest.
$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9874 printf("%s\n", __FUNCTION__);
9877 if { (eval echo configure
:9878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9879 samba_cv_HAVE_FUNCTION_MACRO
=yes
9881 echo "configure: failed program was:" >&5
9882 cat conftest.
$ac_ext >&5
9884 samba_cv_HAVE_FUNCTION_MACRO
=no
9889 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9890 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9891 cat >> confdefs.h
<<\EOF
9892 #define HAVE_FUNCTION_MACRO 1
9897 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9898 echo "configure:9899: checking if gettimeofday takes tz argument" >&5
9899 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9900 echo $ac_n "(cached) $ac_c" 1>&6
9903 if test "$cross_compiling" = yes; then
9904 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9906 cat > conftest.
$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9910 #include <sys/time.h>
9912 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9914 if { (eval echo configure
:9915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9916 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9918 echo "configure: failed program was:" >&5
9919 cat conftest.
$ac_ext >&5
9921 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9928 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9929 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9930 cat >> confdefs.h
<<\EOF
9931 #define HAVE_GETTIMEOFDAY_TZ 1
9936 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9937 echo "configure:9938: checking for __va_copy" >&5
9938 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9939 echo $ac_n "(cached) $ac_c" 1>&6
9942 cat > conftest.
$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9951 if { (eval echo configure
:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9953 samba_cv_HAVE_VA_COPY
=yes
9955 echo "configure: failed program was:" >&5
9956 cat conftest.
$ac_ext >&5
9958 samba_cv_HAVE_VA_COPY
=no
9963 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9964 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9965 cat >> confdefs.h
<<\EOF
9966 #define HAVE_VA_COPY 1
9971 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9972 echo "configure:9973: checking for C99 vsnprintf" >&5
9973 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9977 if test "$cross_compiling" = yes; then
9978 samba_cv_HAVE_C99_VSNPRINTF
=cross
9980 cat > conftest.
$ac_ext <<EOF
9981 #line 9982 "configure"
9982 #include "confdefs.h"
9984 #include <sys/types.h>
9986 void foo(const char *format, ...) {
9991 va_start(ap, format);
9992 len = vsnprintf(buf, 0, format, ap);
9994 if (len != 5) exit(1);
9996 va_start(ap, format);
9997 len = vsnprintf(0, 0, format, ap);
9999 if (len != 5) exit(1);
10001 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10005 main() { foo("hello"); }
10008 if { (eval echo configure
:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10010 samba_cv_HAVE_C99_VSNPRINTF
=yes
10012 echo "configure: failed program was:" >&5
10013 cat conftest.
$ac_ext >&5
10015 samba_cv_HAVE_C99_VSNPRINTF
=no
10022 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10023 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
10024 cat >> confdefs.h
<<\EOF
10025 #define HAVE_C99_VSNPRINTF 1
10030 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10031 echo "configure:10032: checking for broken readdir" >&5
10032 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10033 echo $ac_n "(cached) $ac_c" 1>&6
10036 if test "$cross_compiling" = yes; then
10037 samba_cv_HAVE_BROKEN_READDIR
=cross
10039 cat > conftest.
$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include <sys/types.h>
10043 #include <dirent.h>
10044 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10045 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10046 di->d_name[0] == 0) exit(0); exit(1);}
10048 if { (eval echo configure
:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10050 samba_cv_HAVE_BROKEN_READDIR
=yes
10052 echo "configure: failed program was:" >&5
10053 cat conftest.
$ac_ext >&5
10055 samba_cv_HAVE_BROKEN_READDIR
=no
10062 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10063 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
10064 cat >> confdefs.h
<<\EOF
10065 #define HAVE_BROKEN_READDIR 1
10070 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10071 echo "configure:10072: checking for utimbuf" >&5
10072 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10073 echo $ac_n "(cached) $ac_c" 1>&6
10076 cat > conftest.
$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079 #include <sys/types.h>
10082 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10085 if { (eval echo configure
:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10087 samba_cv_HAVE_UTIMBUF
=yes
10089 echo "configure: failed program was:" >&5
10090 cat conftest.
$ac_ext >&5
10092 samba_cv_HAVE_UTIMBUF
=no
10097 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10098 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
10099 cat >> confdefs.h
<<\EOF
10100 #define HAVE_UTIMBUF 1
10106 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
10108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10109 echo "configure:10110: checking for $ac_func" >&5
10110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10113 cat > conftest.
$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 /* System header to define __stub macros and hopefully few prototypes,
10117 which can conflict with char $ac_func(); below. */
10118 #include <assert.h>
10119 /* Override any gcc2 internal prototype to avoid an error. */
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10126 /* The GNU C library defines this for functions which it implements
10127 to always fail with ENOSYS. Some functions are actually named
10128 something starting with __ and the normal name is an alias. */
10129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10137 if { (eval echo configure
:10138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10139 eval "ac_cv_func_$ac_func=yes"
10141 echo "configure: failed program was:" >&5
10142 cat conftest.
$ac_ext >&5
10144 eval "ac_cv_func_$ac_func=no"
10149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10150 echo "$ac_t""yes" 1>&6
10151 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10152 cat >> confdefs.h
<<EOF
10153 #define $ac_tr_func 1
10157 echo "$ac_t""no" 1>&6
10162 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10163 echo "configure:10164: checking for ut_name in utmp" >&5
10164 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10168 cat > conftest.
$ac_ext <<EOF
10169 #line 10170 "configure"
10170 #include "confdefs.h"
10171 #include <sys/types.h>
10174 struct utmp ut; ut.ut_name[0] = 'a';
10177 if { (eval echo configure
:10178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10179 samba_cv_HAVE_UT_UT_NAME
=yes
10181 echo "configure: failed program was:" >&5
10182 cat conftest.
$ac_ext >&5
10184 samba_cv_HAVE_UT_UT_NAME
=no
10189 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10190 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
10191 cat >> confdefs.h
<<\EOF
10192 #define HAVE_UT_UT_NAME 1
10197 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10198 echo "configure:10199: checking for ut_user in utmp" >&5
10199 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10200 echo $ac_n "(cached) $ac_c" 1>&6
10203 cat > conftest.
$ac_ext <<EOF
10204 #line 10205 "configure"
10205 #include "confdefs.h"
10206 #include <sys/types.h>
10209 struct utmp ut; ut.ut_user[0] = 'a';
10212 if { (eval echo configure
:10213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10214 samba_cv_HAVE_UT_UT_USER
=yes
10216 echo "configure: failed program was:" >&5
10217 cat conftest.
$ac_ext >&5
10219 samba_cv_HAVE_UT_UT_USER
=no
10224 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10225 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
10226 cat >> confdefs.h
<<\EOF
10227 #define HAVE_UT_UT_USER 1
10232 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10233 echo "configure:10234: checking for ut_id in utmp" >&5
10234 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10238 cat > conftest.
$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241 #include <sys/types.h>
10244 struct utmp ut; ut.ut_id[0] = 'a';
10247 if { (eval echo configure
:10248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10249 samba_cv_HAVE_UT_UT_ID
=yes
10251 echo "configure: failed program was:" >&5
10252 cat conftest.
$ac_ext >&5
10254 samba_cv_HAVE_UT_UT_ID
=no
10259 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10260 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10261 cat >> confdefs.h
<<\EOF
10262 #define HAVE_UT_UT_ID 1
10267 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10268 echo "configure:10269: checking for ut_host in utmp" >&5
10269 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10270 echo $ac_n "(cached) $ac_c" 1>&6
10273 cat > conftest.
$ac_ext <<EOF
10274 #line 10275 "configure"
10275 #include "confdefs.h"
10276 #include <sys/types.h>
10279 struct utmp ut; ut.ut_host[0] = 'a';
10282 if { (eval echo configure
:10283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10284 samba_cv_HAVE_UT_UT_HOST
=yes
10286 echo "configure: failed program was:" >&5
10287 cat conftest.
$ac_ext >&5
10289 samba_cv_HAVE_UT_UT_HOST
=no
10294 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10295 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10296 cat >> confdefs.h
<<\EOF
10297 #define HAVE_UT_UT_HOST 1
10302 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10303 echo "configure:10304: checking for ut_time in utmp" >&5
10304 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10308 cat > conftest.
$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10311 #include <sys/types.h>
10314 struct utmp ut; time_t t; ut.ut_time = t;
10317 if { (eval echo configure
:10318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10319 samba_cv_HAVE_UT_UT_TIME
=yes
10321 echo "configure: failed program was:" >&5
10322 cat conftest.
$ac_ext >&5
10324 samba_cv_HAVE_UT_UT_TIME
=no
10329 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10330 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10331 cat >> confdefs.h
<<\EOF
10332 #define HAVE_UT_UT_TIME 1
10337 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10338 echo "configure:10339: checking for ut_tv in utmp" >&5
10339 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10343 cat > conftest.
$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 #include <sys/types.h>
10349 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10352 if { (eval echo configure
:10353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10354 samba_cv_HAVE_UT_UT_TV
=yes
10356 echo "configure: failed program was:" >&5
10357 cat conftest.
$ac_ext >&5
10359 samba_cv_HAVE_UT_UT_TV
=no
10364 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10365 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10366 cat >> confdefs.h
<<\EOF
10367 #define HAVE_UT_UT_TV 1
10372 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10373 echo "configure:10374: checking for ut_type in utmp" >&5
10374 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10375 echo $ac_n "(cached) $ac_c" 1>&6
10378 cat > conftest.
$ac_ext <<EOF
10379 #line 10380 "configure"
10380 #include "confdefs.h"
10381 #include <sys/types.h>
10384 struct utmp ut; ut.ut_type = 0;
10387 if { (eval echo configure
:10388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10389 samba_cv_HAVE_UT_UT_TYPE
=yes
10391 echo "configure: failed program was:" >&5
10392 cat conftest.
$ac_ext >&5
10394 samba_cv_HAVE_UT_UT_TYPE
=no
10399 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10400 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10401 cat >> confdefs.h
<<\EOF
10402 #define HAVE_UT_UT_TYPE 1
10407 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10408 echo "configure:10409: checking for ut_pid in utmp" >&5
10409 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10413 cat > conftest.
$ac_ext <<EOF
10414 #line 10415 "configure"
10415 #include "confdefs.h"
10416 #include <sys/types.h>
10419 struct utmp ut; ut.ut_pid = 0;
10422 if { (eval echo configure
:10423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10424 samba_cv_HAVE_UT_UT_PID
=yes
10426 echo "configure: failed program was:" >&5
10427 cat conftest.
$ac_ext >&5
10429 samba_cv_HAVE_UT_UT_PID
=no
10434 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10435 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10436 cat >> confdefs.h
<<\EOF
10437 #define HAVE_UT_UT_PID 1
10442 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10443 echo "configure:10444: checking for ut_exit in utmp" >&5
10444 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10448 cat > conftest.
$ac_ext <<EOF
10449 #line 10450 "configure"
10450 #include "confdefs.h"
10451 #include <sys/types.h>
10454 struct utmp ut; ut.ut_exit.e_exit = 0;
10457 if { (eval echo configure
:10458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10459 samba_cv_HAVE_UT_UT_EXIT
=yes
10461 echo "configure: failed program was:" >&5
10462 cat conftest.
$ac_ext >&5
10464 samba_cv_HAVE_UT_UT_EXIT
=no
10469 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10470 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10471 cat >> confdefs.h
<<\EOF
10472 #define HAVE_UT_UT_EXIT 1
10477 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10478 echo "configure:10479: checking for ut_addr in utmp" >&5
10479 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
10483 cat > conftest.
$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 #include <sys/types.h>
10489 struct utmp ut; ut.ut_addr = 0;
10492 if { (eval echo configure
:10493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10494 samba_cv_HAVE_UT_UT_ADDR
=yes
10496 echo "configure: failed program was:" >&5
10497 cat conftest.
$ac_ext >&5
10499 samba_cv_HAVE_UT_UT_ADDR
=no
10504 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10505 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10506 cat >> confdefs.h
<<\EOF
10507 #define HAVE_UT_UT_ADDR 1
10512 if test x
$ac_cv_func_pututline = xyes
; then
10513 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10514 echo "configure:10515: checking whether pututline returns pointer" >&5
10515 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10516 echo $ac_n "(cached) $ac_c" 1>&6
10519 cat > conftest.
$ac_ext <<EOF
10520 #line 10521 "configure"
10521 #include "confdefs.h"
10522 #include <sys/types.h>
10525 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10528 if { (eval echo configure
:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10530 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10532 echo "configure: failed program was:" >&5
10533 cat conftest.
$ac_ext >&5
10535 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10540 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10541 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10542 cat >> confdefs.h
<<\EOF
10543 #define PUTUTLINE_RETURNS_UTMP 1
10549 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10550 echo "configure:10551: checking for ut_syslen in utmpx" >&5
10551 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10552 echo $ac_n "(cached) $ac_c" 1>&6
10555 cat > conftest.
$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10558 #include <sys/types.h>
10561 struct utmpx ux; ux.ut_syslen = 0;
10564 if { (eval echo configure
:10565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10566 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10568 echo "configure: failed program was:" >&5
10569 cat conftest.
$ac_ext >&5
10571 samba_cv_HAVE_UX_UT_SYSLEN
=no
10576 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10577 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10578 cat >> confdefs.h
<<\EOF
10579 #define HAVE_UX_UT_SYSLEN 1
10585 #################################################
10586 # check for libiconv support
10587 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10588 echo "configure:10589: checking whether to use libiconv" >&5
10589 # Check whether --with-libiconv or --without-libiconv was given.
10590 if test "${with_libiconv+set}" = set; then
10591 withval
="$with_libiconv"
10594 echo "$ac_t""no" 1>&6
10597 echo "$ac_t""yes" 1>&6
10598 CFLAGS
="$CFLAGS -I$withval/include"
10599 LDFLAGS
="$LDFLAGS -L$withval/lib"
10600 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10601 echo "configure:10602: checking for iconv_open in -liconv" >&5
10602 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10606 ac_save_LIBS
="$LIBS"
10607 LIBS
="-liconv $LIBS"
10608 cat > conftest.
$ac_ext <<EOF
10609 #line 10610 "configure"
10610 #include "confdefs.h"
10611 /* Override any gcc2 internal prototype to avoid an error. */
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10620 if { (eval echo configure
:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10622 eval "ac_cv_lib_$ac_lib_var=yes"
10624 echo "configure: failed program was:" >&5
10625 cat conftest.
$ac_ext >&5
10627 eval "ac_cv_lib_$ac_lib_var=no"
10630 LIBS
="$ac_save_LIBS"
10633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10634 echo "$ac_t""yes" 1>&6
10635 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10636 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10637 cat >> confdefs.h
<<EOF
10638 #define $ac_tr_lib 1
10641 LIBS
="-liconv $LIBS"
10644 echo "$ac_t""no" 1>&6
10647 cat >> confdefs.h
<<EOF
10648 #define WITH_LIBICONV "${withval}"
10654 echo "$ac_t""no" 1>&6
10661 # check for iconv in libc
10662 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10663 echo "configure:10664: checking for working iconv" >&5
10664 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10665 echo $ac_n "(cached) $ac_c" 1>&6
10668 if test "$cross_compiling" = yes; then
10669 samba_cv_HAVE_NATIVE_ICONV
=cross
10671 cat > conftest.
$ac_ext <<EOF
10672 #line 10673 "configure"
10673 #include "confdefs.h"
10677 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10678 if (cd == 0 || cd == (iconv_t)-1) return -1;
10683 if { (eval echo configure
:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10685 samba_cv_HAVE_NATIVE_ICONV
=yes
10687 echo "configure: failed program was:" >&5
10688 cat conftest.
$ac_ext >&5
10690 samba_cv_HAVE_NATIVE_ICONV
=no
10697 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10698 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
10699 cat >> confdefs.h
<<\EOF
10700 #define HAVE_NATIVE_ICONV 1
10706 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10707 echo "configure:10708: checking for Linux kernel oplocks" >&5
10708 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10712 if test "$cross_compiling" = yes; then
10713 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10715 cat > conftest.
$ac_ext <<EOF
10716 #line 10717 "configure"
10717 #include "confdefs.h"
10719 #include <sys/types.h>
10722 #define F_GETLEASE 1025
10725 int fd = open("/dev/null", O_RDONLY);
10726 return fcntl(fd, F_GETLEASE, 0) == -1;
10730 if { (eval echo configure
:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10732 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10734 echo "configure: failed program was:" >&5
10735 cat conftest.
$ac_ext >&5
10737 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10744 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10745 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10746 cat >> confdefs.h
<<\EOF
10747 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10752 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10753 echo "configure:10754: checking for kernel change notify support" >&5
10754 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10758 if test "$cross_compiling" = yes; then
10759 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10761 cat > conftest.
$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10765 #include <sys/types.h>
10767 #include <signal.h>
10769 #define F_NOTIFY 1026
10772 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10776 if { (eval echo configure
:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10778 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10780 echo "configure: failed program was:" >&5
10781 cat conftest.
$ac_ext >&5
10783 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10790 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10791 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10792 cat >> confdefs.h
<<\EOF
10793 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10798 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10799 echo "configure:10800: checking for kernel share modes" >&5
10800 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10801 echo $ac_n "(cached) $ac_c" 1>&6
10804 if test "$cross_compiling" = yes; then
10805 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10807 cat > conftest.
$ac_ext <<EOF
10808 #line 10809 "configure"
10809 #include "confdefs.h"
10811 #include <sys/types.h>
10813 #include <signal.h>
10814 #include <sys/file.h>
10816 #define LOCK_MAND 32
10817 #define LOCK_READ 64
10820 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10824 if { (eval echo configure
:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10826 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10828 echo "configure: failed program was:" >&5
10829 cat conftest.
$ac_ext >&5
10831 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10838 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10839 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10840 cat >> confdefs.h
<<\EOF
10841 #define HAVE_KERNEL_SHARE_MODES 1
10849 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10850 echo "configure:10851: checking for IRIX kernel oplock type definitions" >&5
10851 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10852 echo $ac_n "(cached) $ac_c" 1>&6
10855 cat > conftest.
$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <sys/types.h>
10861 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10864 if { (eval echo configure
:10865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10866 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10868 echo "configure: failed program was:" >&5
10869 cat conftest.
$ac_ext >&5
10871 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10876 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10877 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10878 cat >> confdefs.h
<<\EOF
10879 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10884 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10885 echo "configure:10886: checking for irix specific capabilities" >&5
10886 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10890 if test "$cross_compiling" = yes; then
10891 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10893 cat > conftest.
$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 #include <sys/types.h>
10897 #include <sys/capability.h>
10900 if ((cap = cap_get_proc()) == NULL)
10902 cap->cap_effective |= CAP_NETWORK_MGT;
10903 cap->cap_inheritable |= CAP_NETWORK_MGT;
10909 if { (eval echo configure
:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10911 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10913 echo "configure: failed program was:" >&5
10914 cat conftest.
$ac_ext >&5
10916 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10923 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10924 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10925 cat >> confdefs.h
<<\EOF
10926 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10932 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10933 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10936 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10937 echo "configure:10938: checking for int16 typedef included by rpc/rpc.h" >&5
10938 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10939 echo $ac_n "(cached) $ac_c" 1>&6
10942 cat > conftest.
$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10945 #include <sys/types.h>
10946 #if defined(HAVE_RPC_RPC_H)
10947 #include <rpc/rpc.h>
10953 if { (eval echo configure
:10954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10955 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10957 echo "configure: failed program was:" >&5
10958 cat conftest.
$ac_ext >&5
10960 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10965 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10966 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10967 cat >> confdefs.h
<<\EOF
10968 #define HAVE_INT16_FROM_RPC_RPC_H 1
10973 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10974 echo "configure:10975: checking for uint16 typedef included by rpc/rpc.h" >&5
10975 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10976 echo $ac_n "(cached) $ac_c" 1>&6
10979 cat > conftest.
$ac_ext <<EOF
10980 #line 10981 "configure"
10981 #include "confdefs.h"
10982 #include <sys/types.h>
10983 #if defined(HAVE_RPC_RPC_H)
10984 #include <rpc/rpc.h>
10990 if { (eval echo configure
:10991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10992 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10994 echo "configure: failed program was:" >&5
10995 cat conftest.
$ac_ext >&5
10997 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
11002 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
11003 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
11004 cat >> confdefs.h
<<\EOF
11005 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11010 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11011 echo "configure:11012: checking for int32 typedef included by rpc/rpc.h" >&5
11012 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11013 echo $ac_n "(cached) $ac_c" 1>&6
11016 cat > conftest.
$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <sys/types.h>
11020 #if defined(HAVE_RPC_RPC_H)
11021 #include <rpc/rpc.h>
11027 if { (eval echo configure
:11028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11029 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
11031 echo "configure: failed program was:" >&5
11032 cat conftest.
$ac_ext >&5
11034 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
11039 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11040 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
11041 cat >> confdefs.h
<<\EOF
11042 #define HAVE_INT32_FROM_RPC_RPC_H 1
11047 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11048 echo "configure:11049: checking for uint32 typedef included by rpc/rpc.h" >&5
11049 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11050 echo $ac_n "(cached) $ac_c" 1>&6
11053 cat > conftest.
$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 #include <sys/types.h>
11057 #if defined(HAVE_RPC_RPC_H)
11058 #include <rpc/rpc.h>
11064 if { (eval echo configure
:11065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11066 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
11068 echo "configure: failed program was:" >&5
11069 cat conftest.
$ac_ext >&5
11071 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
11076 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11077 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
11078 cat >> confdefs.h
<<\EOF
11079 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11085 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11086 echo "configure:11087: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11087 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11091 cat > conftest.
$ac_ext <<EOF
11092 #line 11093 "configure"
11093 #include "confdefs.h"
11094 #include <sys/types.h>
11095 #ifdef HAVE_SYS_SECURITY_H
11096 #include <sys/security.h>
11098 #endif /* HAVE_SYS_SECURITY_H */
11099 #if defined(HAVE_RPC_RPC_H)
11100 #include <rpc/rpc.h>
11106 if { (eval echo configure
:11107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11108 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
11110 echo "configure: failed program was:" >&5
11111 cat conftest.
$ac_ext >&5
11113 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
11118 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11119 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
11120 cat >> confdefs.h
<<\EOF
11121 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11126 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11127 echo "configure:11128: checking for test routines" >&5
11128 if test "$cross_compiling" = yes; then
11129 echo "configure: warning: cannot run when cross-compiling" 1>&2
11131 cat > conftest.
$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11134 #include "${srcdir-.}/tests/trivial.c"
11136 if { (eval echo configure
:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11138 echo "$ac_t""yes" 1>&6
11140 echo "configure: failed program was:" >&5
11141 cat conftest.
$ac_ext >&5
11143 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11149 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11150 echo "configure:11151: checking for ftruncate extend" >&5
11151 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
11155 if test "$cross_compiling" = yes; then
11156 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
11158 cat > conftest.
$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11161 #include "${srcdir-.}/tests/ftruncate.c"
11163 if { (eval echo configure
:11164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11165 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
11167 echo "configure: failed program was:" >&5
11168 cat conftest.
$ac_ext >&5
11170 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
11177 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11178 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
11179 cat >> confdefs.h
<<\EOF
11180 #define HAVE_FTRUNCATE_EXTEND 1
11185 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11186 echo "configure:11187: checking for AF_LOCAL socket support" >&5
11187 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11188 echo $ac_n "(cached) $ac_c" 1>&6
11191 if test "$cross_compiling" = yes; then
11192 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
11194 cat > conftest.
$ac_ext <<EOF
11195 #line 11196 "configure"
11196 #include "confdefs.h"
11197 #include "${srcdir-.}/tests/unixsock.c"
11199 if { (eval echo configure
:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11201 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
11203 echo "configure: failed program was:" >&5
11204 cat conftest.
$ac_ext >&5
11206 samba_cv_HAVE_WORKING_AF_LOCAL
=no
11213 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11214 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11216 cat >> confdefs.h
<<\EOF
11217 #define HAVE_WORKING_AF_LOCAL 1
11222 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11223 echo "configure:11224: checking for broken getgroups" >&5
11224 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11228 if test "$cross_compiling" = yes; then
11229 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
11231 cat > conftest.
$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11234 #include "${srcdir-.}/tests/getgroups.c"
11236 if { (eval echo configure
:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11238 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
11240 echo "configure: failed program was:" >&5
11241 cat conftest.
$ac_ext >&5
11243 samba_cv_HAVE_BROKEN_GETGROUPS
=no
11250 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11251 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
11252 cat >> confdefs.h
<<\EOF
11253 #define HAVE_BROKEN_GETGROUPS 1
11258 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11259 echo "configure:11260: checking whether getpass should be replaced" >&5
11260 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11264 SAVE_CPPFLAGS
="$CPPFLAGS"
11265 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11266 cat > conftest.
$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11270 #define REPLACE_GETPASS 1
11271 #define NO_CONFIG_H 1
11272 #define main dont_declare_main
11273 #include "${srcdir-.}/lib/getsmbpass.c"
11280 if { (eval echo configure
:11281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11282 samba_cv_REPLACE_GETPASS
=yes
11284 echo "configure: failed program was:" >&5
11285 cat conftest.
$ac_ext >&5
11287 samba_cv_REPLACE_GETPASS
=no
11290 CPPFLAGS
="$SAVE_CPPFLAGS"
11294 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11295 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
11296 cat >> confdefs.h
<<\EOF
11297 #define REPLACE_GETPASS 1
11302 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11303 echo "configure:11304: checking for broken inet_ntoa" >&5
11304 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11305 echo $ac_n "(cached) $ac_c" 1>&6
11308 if test "$cross_compiling" = yes; then
11309 samba_cv_REPLACE_INET_NTOA
=cross
11311 cat > conftest.
$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11316 #include <sys/types.h>
11317 #include <netinet/in.h>
11318 #ifdef HAVE_ARPA_INET_H
11319 #include <arpa/inet.h>
11321 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11322 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11323 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11326 if { (eval echo configure
:11327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11328 samba_cv_REPLACE_INET_NTOA
=yes
11330 echo "configure: failed program was:" >&5
11331 cat conftest.
$ac_ext >&5
11333 samba_cv_REPLACE_INET_NTOA
=no
11340 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11341 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
11342 cat >> confdefs.h
<<\EOF
11343 #define REPLACE_INET_NTOA 1
11348 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11349 echo "configure:11350: checking for secure mkstemp" >&5
11350 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11354 if test "$cross_compiling" = yes; then
11355 samba_cv_HAVE_SECURE_MKSTEMP
=cross
11357 cat > conftest.
$ac_ext <<EOF
11358 #line 11359 "configure"
11359 #include "confdefs.h"
11360 #include <stdlib.h>
11361 #include <sys/types.h>
11362 #include <sys/stat.h>
11363 #include <unistd.h>
11366 char tpl[20]="/tmp/test.XXXXXX";
11367 int fd = mkstemp(tpl);
11368 if (fd == -1) exit(1);
11370 if (fstat(fd, &st) != 0) exit(1);
11371 if ((st.st_mode & 0777) != 0600) exit(1);
11375 if { (eval echo configure
:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11377 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11379 echo "configure: failed program was:" >&5
11380 cat conftest.
$ac_ext >&5
11382 samba_cv_HAVE_SECURE_MKSTEMP
=no
11389 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11390 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11391 cat >> confdefs.h
<<\EOF
11392 #define HAVE_SECURE_MKSTEMP 1
11397 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11398 echo "configure:11399: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11399 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11400 echo $ac_n "(cached) $ac_c" 1>&6
11403 if test "$cross_compiling" = yes; then
11404 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11406 cat > conftest.
$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11409 #include <unistd.h>
11410 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11412 if { (eval echo configure
:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11414 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11416 echo "configure: failed program was:" >&5
11417 cat conftest.
$ac_ext >&5
11419 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11426 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11427 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11428 cat >> confdefs.h
<<\EOF
11429 #define SYSCONF_SC_NGROUPS_MAX 1
11434 echo $ac_n "checking for root""... $ac_c" 1>&6
11435 echo "configure:11436: checking for root" >&5
11436 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11437 echo $ac_n "(cached) $ac_c" 1>&6
11440 if test "$cross_compiling" = yes; then
11441 samba_cv_HAVE_ROOT
=cross
11443 cat > conftest.
$ac_ext <<EOF
11444 #line 11445 "configure"
11445 #include "confdefs.h"
11446 main() { exit(getuid() != 0); }
11448 if { (eval echo configure
:11449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11450 samba_cv_HAVE_ROOT
=yes
11452 echo "configure: failed program was:" >&5
11453 cat conftest.
$ac_ext >&5
11455 samba_cv_HAVE_ROOT
=no
11462 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11463 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11464 cat >> confdefs.h
<<\EOF
11465 #define HAVE_ROOT 1
11469 echo "configure: warning: running as non-root will disable some tests" 1>&2
11473 # look for a method of finding the list of network interfaces
11475 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11476 echo "configure:11477: checking for iface AIX" >&5
11477 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11478 echo $ac_n "(cached) $ac_c" 1>&6
11481 if test "$cross_compiling" = yes; then
11482 samba_cv_HAVE_IFACE_AIX
=cross
11484 cat > conftest.
$ac_ext <<EOF
11485 #line 11486 "configure"
11486 #include "confdefs.h"
11488 #define HAVE_IFACE_AIX 1
11489 #define AUTOCONF_TEST 1
11490 #include "confdefs.h"
11491 #include "${srcdir-.}/lib/interfaces.c"
11493 if { (eval echo configure
:11494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11495 samba_cv_HAVE_IFACE_AIX
=yes
11497 echo "configure: failed program was:" >&5
11498 cat conftest.
$ac_ext >&5
11500 samba_cv_HAVE_IFACE_AIX
=no
11507 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11508 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11509 iface
=yes;cat >> confdefs.h
<<\EOF
11510 #define HAVE_IFACE_AIX 1
11515 if test $iface = no
; then
11516 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11517 echo "configure:11518: checking for iface ifconf" >&5
11518 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11522 if test "$cross_compiling" = yes; then
11523 samba_cv_HAVE_IFACE_IFCONF
=cross
11525 cat > conftest.
$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11529 #define HAVE_IFACE_IFCONF 1
11530 #define AUTOCONF_TEST 1
11531 #include "confdefs.h"
11532 #include "${srcdir-.}/lib/interfaces.c"
11534 if { (eval echo configure
:11535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11536 samba_cv_HAVE_IFACE_IFCONF
=yes
11538 echo "configure: failed program was:" >&5
11539 cat conftest.
$ac_ext >&5
11541 samba_cv_HAVE_IFACE_IFCONF
=no
11548 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11549 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11550 iface
=yes;cat >> confdefs.h
<<\EOF
11551 #define HAVE_IFACE_IFCONF 1
11557 if test $iface = no
; then
11558 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11559 echo "configure:11560: checking for iface ifreq" >&5
11560 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11561 echo $ac_n "(cached) $ac_c" 1>&6
11564 if test "$cross_compiling" = yes; then
11565 samba_cv_HAVE_IFACE_IFREQ
=cross
11567 cat > conftest.
$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11571 #define HAVE_IFACE_IFREQ 1
11572 #define AUTOCONF_TEST 1
11573 #include "confdefs.h"
11574 #include "${srcdir-.}/lib/interfaces.c"
11576 if { (eval echo configure
:11577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11578 samba_cv_HAVE_IFACE_IFREQ
=yes
11580 echo "configure: failed program was:" >&5
11581 cat conftest.
$ac_ext >&5
11583 samba_cv_HAVE_IFACE_IFREQ
=no
11590 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11591 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11592 iface
=yes;cat >> confdefs.h
<<\EOF
11593 #define HAVE_IFACE_IFREQ 1
11600 ################################################
11601 # look for a method of setting the effective uid
11603 if test $seteuid = no
; then
11604 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11605 echo "configure:11606: checking for setresuid" >&5
11606 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11607 echo $ac_n "(cached) $ac_c" 1>&6
11610 if test "$cross_compiling" = yes; then
11611 samba_cv_USE_SETRESUID
=cross
11613 cat > conftest.
$ac_ext <<EOF
11614 #line 11615 "configure"
11615 #include "confdefs.h"
11617 #define AUTOCONF_TEST 1
11618 #define USE_SETRESUID 1
11619 #include "confdefs.h"
11620 #include "${srcdir-.}/lib/util_sec.c"
11622 if { (eval echo configure
:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11624 samba_cv_USE_SETRESUID
=yes
11626 echo "configure: failed program was:" >&5
11627 cat conftest.
$ac_ext >&5
11629 samba_cv_USE_SETRESUID
=no
11636 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11637 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11638 seteuid
=yes;cat >> confdefs.h
<<\EOF
11639 #define USE_SETRESUID 1
11646 if test $seteuid = no
; then
11647 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11648 echo "configure:11649: checking for setreuid" >&5
11649 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11653 if test "$cross_compiling" = yes; then
11654 samba_cv_USE_SETREUID
=cross
11656 cat > conftest.
$ac_ext <<EOF
11657 #line 11658 "configure"
11658 #include "confdefs.h"
11660 #define AUTOCONF_TEST 1
11661 #define USE_SETREUID 1
11662 #include "confdefs.h"
11663 #include "${srcdir-.}/lib/util_sec.c"
11665 if { (eval echo configure
:11666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11667 samba_cv_USE_SETREUID
=yes
11669 echo "configure: failed program was:" >&5
11670 cat conftest.
$ac_ext >&5
11672 samba_cv_USE_SETREUID
=no
11679 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11680 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11681 seteuid
=yes;cat >> confdefs.h
<<\EOF
11682 #define USE_SETREUID 1
11688 if test $seteuid = no
; then
11689 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11690 echo "configure:11691: checking for seteuid" >&5
11691 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11692 echo $ac_n "(cached) $ac_c" 1>&6
11695 if test "$cross_compiling" = yes; then
11696 samba_cv_USE_SETEUID
=cross
11698 cat > conftest.
$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11702 #define AUTOCONF_TEST 1
11703 #define USE_SETEUID 1
11704 #include "confdefs.h"
11705 #include "${srcdir-.}/lib/util_sec.c"
11707 if { (eval echo configure
:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11709 samba_cv_USE_SETEUID
=yes
11711 echo "configure: failed program was:" >&5
11712 cat conftest.
$ac_ext >&5
11714 samba_cv_USE_SETEUID
=no
11721 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11722 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11723 seteuid
=yes;cat >> confdefs.h
<<\EOF
11724 #define USE_SETEUID 1
11730 if test $seteuid = no
; then
11731 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11732 echo "configure:11733: checking for setuidx" >&5
11733 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11734 echo $ac_n "(cached) $ac_c" 1>&6
11737 if test "$cross_compiling" = yes; then
11738 samba_cv_USE_SETUIDX
=cross
11740 cat > conftest.
$ac_ext <<EOF
11741 #line 11742 "configure"
11742 #include "confdefs.h"
11744 #define AUTOCONF_TEST 1
11745 #define USE_SETUIDX 1
11746 #include "confdefs.h"
11747 #include "${srcdir-.}/lib/util_sec.c"
11749 if { (eval echo configure
:11750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11751 samba_cv_USE_SETUIDX
=yes
11753 echo "configure: failed program was:" >&5
11754 cat conftest.
$ac_ext >&5
11756 samba_cv_USE_SETUIDX
=no
11763 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11764 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11765 seteuid
=yes;cat >> confdefs.h
<<\EOF
11766 #define USE_SETUIDX 1
11773 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11774 echo "configure:11775: checking for working mmap" >&5
11775 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11776 echo $ac_n "(cached) $ac_c" 1>&6
11779 if test "$cross_compiling" = yes; then
11780 samba_cv_HAVE_MMAP
=cross
11782 cat > conftest.
$ac_ext <<EOF
11783 #line 11784 "configure"
11784 #include "confdefs.h"
11785 #include "${srcdir-.}/tests/shared_mmap.c"
11787 if { (eval echo configure
:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11789 samba_cv_HAVE_MMAP
=yes
11791 echo "configure: failed program was:" >&5
11792 cat conftest.
$ac_ext >&5
11794 samba_cv_HAVE_MMAP
=no
11801 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11802 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11803 cat >> confdefs.h
<<\EOF
11804 #define HAVE_MMAP 1
11809 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11810 echo "configure:11811: checking for ftruncate needs root" >&5
11811 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11812 echo $ac_n "(cached) $ac_c" 1>&6
11815 if test "$cross_compiling" = yes; then
11816 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11818 cat > conftest.
$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11821 #include "${srcdir-.}/tests/ftruncroot.c"
11823 if { (eval echo configure
:11824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11825 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11827 echo "configure: failed program was:" >&5
11828 cat conftest.
$ac_ext >&5
11830 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11837 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11838 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11839 cat >> confdefs.h
<<\EOF
11840 #define FTRUNCATE_NEEDS_ROOT 1
11845 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11846 echo "configure:11847: checking for fcntl locking" >&5
11847 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11848 echo $ac_n "(cached) $ac_c" 1>&6
11851 if test "$cross_compiling" = yes; then
11852 samba_cv_HAVE_FCNTL_LOCK
=cross
11854 cat > conftest.
$ac_ext <<EOF
11855 #line 11856 "configure"
11856 #include "confdefs.h"
11857 #include "${srcdir-.}/tests/fcntl_lock.c"
11859 if { (eval echo configure
:11860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11861 samba_cv_HAVE_FCNTL_LOCK
=yes
11863 echo "configure: failed program was:" >&5
11864 cat conftest.
$ac_ext >&5
11866 samba_cv_HAVE_FCNTL_LOCK
=no
11873 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11874 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11875 cat >> confdefs.h
<<\EOF
11876 #define HAVE_FCNTL_LOCK 1
11881 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11882 echo "configure:11883: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11883 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11884 echo $ac_n "(cached) $ac_c" 1>&6
11887 if test "$cross_compiling" = yes; then
11888 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11890 cat > conftest.
$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11893 #include "${srcdir-.}/tests/fcntl_lock64.c"
11895 if { (eval echo configure
:11896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11897 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11899 echo "configure: failed program was:" >&5
11900 cat conftest.
$ac_ext >&5
11902 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11909 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11910 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11911 cat >> confdefs.h
<<\EOF
11912 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11919 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11920 echo "configure:11921: checking for 64 bit fcntl locking" >&5
11921 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11922 echo $ac_n "(cached) $ac_c" 1>&6
11925 if test "$cross_compiling" = yes; then
11926 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11928 cat > conftest.
$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11932 #if defined(HAVE_UNISTD_H)
11933 #include <unistd.h>
11936 #include <stdlib.h>
11938 #ifdef HAVE_FCNTL_H
11942 #ifdef HAVE_SYS_FCNTL_H
11943 #include <sys/fcntl.h>
11945 main() { struct flock64 fl64;
11946 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11953 if { (eval echo configure
:11954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11955 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11957 echo "configure: failed program was:" >&5
11958 cat conftest.
$ac_ext >&5
11960 samba_cv_HAVE_STRUCT_FLOCK64
=no
11967 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11969 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11970 cat >> confdefs.h
<<\EOF
11971 #define HAVE_STRUCT_FLOCK64 1
11977 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11978 echo "configure:11979: checking for st_blocks in struct stat" >&5
11979 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11980 echo $ac_n "(cached) $ac_c" 1>&6
11983 cat > conftest.
$ac_ext <<EOF
11984 #line 11985 "configure"
11985 #include "confdefs.h"
11986 #include <sys/types.h>
11987 #include <sys/stat.h>
11988 #include <unistd.h>
11990 struct stat st; st.st_blocks = 0;
11993 if { (eval echo configure
:11994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11995 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11997 echo "configure: failed program was:" >&5
11998 cat conftest.
$ac_ext >&5
12000 samba_cv_HAVE_STAT_ST_BLOCKS
=no
12005 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12006 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
12007 cat >> confdefs.h
<<\EOF
12008 #define HAVE_STAT_ST_BLOCKS 1
12013 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12014 echo "configure:12015: checking for st_blksize in struct stat" >&5
12015 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12016 echo $ac_n "(cached) $ac_c" 1>&6
12019 cat > conftest.
$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 #include <sys/types.h>
12023 #include <sys/stat.h>
12024 #include <unistd.h>
12026 struct stat st; st.st_blksize = 0;
12029 if { (eval echo configure
:12030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12031 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
12033 echo "configure: failed program was:" >&5
12034 cat conftest.
$ac_ext >&5
12036 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
12041 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12042 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
12043 cat >> confdefs.h
<<\EOF
12044 #define HAVE_STAT_ST_BLKSIZE 1
12051 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12052 echo "configure:12053: checking for broken RedHat 7.2 system header files" >&5
12053 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12057 cat > conftest.
$ac_ext <<EOF
12058 #line 12059 "configure"
12059 #include "confdefs.h"
12061 #ifdef HAVE_SYS_VFS_H
12062 #include <sys/vfs.h>
12064 #ifdef HAVE_SYS_CAPABILITY_H
12065 #include <sys/capability.h>
12072 if { (eval echo configure
:12073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12074 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
12076 echo "configure: failed program was:" >&5
12077 cat conftest.
$ac_ext >&5
12079 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
12084 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12085 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
12086 cat >> confdefs.h
<<\EOF
12087 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12094 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12095 echo "configure:12096: checking for broken nisplus include files" >&5
12096 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12100 cat > conftest.
$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 #include <sys/acl.h>
12104 #if defined(HAVE_RPCSVC_NIS_H)
12105 #include <rpcsvc/nis.h>
12111 if { (eval echo configure
:12112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12113 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
12115 echo "configure: failed program was:" >&5
12116 cat conftest.
$ac_ext >&5
12118 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
12123 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12124 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
12125 cat >> confdefs.h
<<\EOF
12126 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12132 #################################################
12133 # check for smbwrapper support
12134 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12135 echo "configure:12136: checking whether to use smbwrapper" >&5
12136 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12137 if test "${with_smbwrapper+set}" = set; then
12138 withval
="$with_smbwrapper"
12141 echo "$ac_t""yes" 1>&6
12142 cat >> confdefs.h
<<\EOF
12143 #define WITH_SMBWRAPPER 1
12146 WRAPPROG
="bin/smbsh\$(EXEEXT)"
12147 WRAP
="bin/smbwrapper.$SHLIBEXT"
12149 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
12152 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
12155 # Conditions under which smbwrapper should not be built.
12157 if test x
$PICFLAG = x
; then
12158 echo No support
for PIC code
- disabling smbwrapper and smbsh
12162 elif test x
$ac_cv_func_syscall = xno
; then
12163 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12168 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12169 SMBWRAPPER
="$WRAPPROG $WRAP $WRAP32"
12172 echo "$ac_t""no" 1>&6
12176 echo "$ac_t""no" 1>&6
12181 #################################################
12182 # check for AFS clear-text auth support
12183 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12184 echo "configure:12185: checking whether to use AFS clear-text auth" >&5
12185 # Check whether --with-afs or --without-afs was given.
12186 if test "${with_afs+set}" = set; then
12187 withval
="$with_afs"
12190 echo "$ac_t""yes" 1>&6
12191 cat >> confdefs.h
<<\EOF
12197 echo "$ac_t""no" 1>&6
12201 echo "$ac_t""no" 1>&6
12207 #################################################
12208 # check for the DFS clear-text auth system
12209 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12210 echo "configure:12211: checking whether to use DFS clear-text auth" >&5
12211 # Check whether --with-dfs or --without-dfs was given.
12212 if test "${with_dfs+set}" = set; then
12213 withval
="$with_dfs"
12216 echo "$ac_t""yes" 1>&6
12217 cat >> confdefs.h
<<\EOF
12223 echo "$ac_t""no" 1>&6
12227 echo "$ac_t""no" 1>&6
12232 #################################################
12233 # active directory support
12235 with_ads_support
=yes
12236 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12237 echo "configure:12238: checking whether to use Active Directory" >&5
12239 # Check whether --with-ads or --without-ads was given.
12240 if test "${with_ads+set}" = set; then
12241 withval
="$with_ads"
12244 with_ads_support
=no
12250 if test x
"$with_ads_support" = x
"yes"; then
12251 cat >> confdefs.h
<<\EOF
12257 echo "$ac_t""$with_ads_support" 1>&6
12260 if test x
"$with_ads_support" = x
"yes"; then
12262 #################################################
12263 # check for location of Kerberos 5 install
12264 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12265 echo "configure:12266: checking for kerberos 5 install path" >&5
12266 # Check whether --with-krb5 or --without-krb5 was given.
12267 if test "${with_krb5+set}" = set; then
12268 withval
="$with_krb5"
12271 echo "$ac_t""no" 1>&6
12274 echo "$ac_t""yes" 1>&6
12275 LIBS
="$LIBS -lkrb5"
12276 CFLAGS
="$CFLAGS -I$withval/include"
12277 CPPFLAGS
="$CPPFLAGS -I$withval/include"
12278 LDFLAGS
="$LDFLAGS -L$withval/lib"
12283 echo "$ac_t""no" 1>&6
12289 if test x
$FOUND_KRB5 = x
"no"; then
12290 #################################################
12291 # see if this box has the SuSE location for the heimdal kerberos implementation
12292 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12293 echo "configure:12294: checking for /usr/include/heimdal" >&5
12294 if test -d /usr
/include
/heimdal
; then
12295 CFLAGS
="$CFLAGS -I/usr/include/heimdal"
12296 CPPFLAGS
="$CPPFLAGS -I/usr/include/heimdal"
12297 echo "$ac_t""yes" 1>&6
12299 echo "$ac_t""no" 1>&6
12304 if test x
$FOUND_KRB5 = x
"no"; then
12305 #################################################
12306 # see if this box has the RedHat location for kerberos
12307 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12308 echo "configure:12309: checking for /usr/kerberos" >&5
12309 if test -d /usr
/kerberos
; then
12310 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
12311 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
12312 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
12313 echo "$ac_t""yes" 1>&6
12315 echo "$ac_t""no" 1>&6
12320 # now check for krb5.h. Some systems have the libraries without the headers!
12321 # note that this check is done here to allow for different kerberos
12323 for ac_hdr
in krb5.h
12325 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12327 echo "configure:12328: checking for $ac_hdr" >&5
12328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12329 echo $ac_n "(cached) $ac_c" 1>&6
12331 cat > conftest.
$ac_ext <<EOF
12332 #line 12333 "configure"
12333 #include "confdefs.h"
12336 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12337 { (eval echo configure
:12338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12338 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12339 if test -z "$ac_err"; then
12341 eval "ac_cv_header_$ac_safe=yes"
12344 echo "configure: failed program was:" >&5
12345 cat conftest.
$ac_ext >&5
12347 eval "ac_cv_header_$ac_safe=no"
12351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12352 echo "$ac_t""yes" 1>&6
12353 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12354 cat >> confdefs.h
<<EOF
12355 #define $ac_tr_hdr 1
12359 echo "$ac_t""no" 1>&6
12364 # now check for gssapi headers. This is also done here to allow for
12365 # different kerberos include paths
12366 for ac_hdr
in gssapi
/gssapi_generic.h gssapi
/gssapi.h
12368 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12370 echo "configure:12371: checking for $ac_hdr" >&5
12371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12374 cat > conftest.
$ac_ext <<EOF
12375 #line 12376 "configure"
12376 #include "confdefs.h"
12379 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12380 { (eval echo configure
:12381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12381 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12382 if test -z "$ac_err"; then
12384 eval "ac_cv_header_$ac_safe=yes"
12387 echo "configure: failed program was:" >&5
12388 cat conftest.
$ac_ext >&5
12390 eval "ac_cv_header_$ac_safe=no"
12394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12395 echo "$ac_t""yes" 1>&6
12396 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12397 cat >> confdefs.h
<<EOF
12398 #define $ac_tr_hdr 1
12402 echo "$ac_t""no" 1>&6
12407 ##################################################################
12408 # we might need the k5crypto and com_err libraries on some systems
12409 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12410 echo "configure:12411: checking for _et_list in -lcom_err" >&5
12411 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12413 echo $ac_n "(cached) $ac_c" 1>&6
12415 ac_save_LIBS
="$LIBS"
12416 LIBS
="-lcom_err $LIBS"
12417 cat > conftest.
$ac_ext <<EOF
12418 #line 12419 "configure"
12419 #include "confdefs.h"
12420 /* Override any gcc2 internal prototype to avoid an error. */
12421 /* We use char because int might match the return type of a gcc2
12422 builtin and then its argument prototype would still apply. */
12429 if { (eval echo configure
:12430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12431 eval "ac_cv_lib_$ac_lib_var=yes"
12433 echo "configure: failed program was:" >&5
12434 cat conftest.
$ac_ext >&5
12436 eval "ac_cv_lib_$ac_lib_var=no"
12439 LIBS
="$ac_save_LIBS"
12442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12443 echo "$ac_t""yes" 1>&6
12444 LIBS
="$LIBS -lcom_err"
12446 echo "$ac_t""no" 1>&6
12449 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12450 echo "configure:12451: checking for krb5_encrypt_data in -lk5crypto" >&5
12451 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12453 echo $ac_n "(cached) $ac_c" 1>&6
12455 ac_save_LIBS
="$LIBS"
12456 LIBS
="-lk5crypto $LIBS"
12457 cat > conftest.
$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 /* Override any gcc2 internal prototype to avoid an error. */
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12463 char krb5_encrypt_data();
12466 krb5_encrypt_data()
12469 if { (eval echo configure
:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12471 eval "ac_cv_lib_$ac_lib_var=yes"
12473 echo "configure: failed program was:" >&5
12474 cat conftest.
$ac_ext >&5
12476 eval "ac_cv_lib_$ac_lib_var=no"
12479 LIBS
="$ac_save_LIBS"
12482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12483 echo "$ac_t""yes" 1>&6
12484 LIBS
="$LIBS -lk5crypto"
12486 echo "$ac_t""no" 1>&6
12490 ########################################################
12491 # now see if we can find the krb5 libs in standard paths
12492 # or as specified above
12493 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12494 echo "configure:12495: checking for krb5_mk_req_extended in -lkrb5" >&5
12495 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12497 echo $ac_n "(cached) $ac_c" 1>&6
12499 ac_save_LIBS
="$LIBS"
12500 LIBS
="-lkrb5 $LIBS"
12501 cat > conftest.
$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 /* Override any gcc2 internal prototype to avoid an error. */
12505 /* We use char because int might match the return type of a gcc2
12506 builtin and then its argument prototype would still apply. */
12507 char krb5_mk_req_extended();
12510 krb5_mk_req_extended()
12513 if { (eval echo configure
:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12515 eval "ac_cv_lib_$ac_lib_var=yes"
12517 echo "configure: failed program was:" >&5
12518 cat conftest.
$ac_ext >&5
12520 eval "ac_cv_lib_$ac_lib_var=no"
12523 LIBS
="$ac_save_LIBS"
12526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12527 echo "$ac_t""yes" 1>&6
12528 LIBS
="$LIBS -lkrb5";
12529 cat >> confdefs.h
<<\EOF
12530 #define HAVE_KRB5 1
12534 echo "$ac_t""no" 1>&6
12538 ########################################################
12539 # now see if we can find the gssapi libs in standard paths
12540 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12541 echo "configure:12542: checking for gss_display_status in -lgssapi_krb5" >&5
12542 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12544 echo $ac_n "(cached) $ac_c" 1>&6
12546 ac_save_LIBS
="$LIBS"
12547 LIBS
="-lgssapi_krb5 $LIBS"
12548 cat > conftest.
$ac_ext <<EOF
12549 #line 12550 "configure"
12550 #include "confdefs.h"
12551 /* Override any gcc2 internal prototype to avoid an error. */
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12554 char gss_display_status();
12557 gss_display_status()
12560 if { (eval echo configure
:12561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12562 eval "ac_cv_lib_$ac_lib_var=yes"
12564 echo "configure: failed program was:" >&5
12565 cat conftest.
$ac_ext >&5
12567 eval "ac_cv_lib_$ac_lib_var=no"
12570 LIBS
="$ac_save_LIBS"
12573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12574 echo "$ac_t""yes" 1>&6
12575 LIBS
="$LIBS -lgssapi_krb5";
12576 cat >> confdefs.h
<<\EOF
12577 #define HAVE_GSSAPI 1
12581 echo "$ac_t""no" 1>&6
12586 ########################################################
12587 # Compile with LDAP support?
12589 with_ldap_support
=yes
12590 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12591 echo "configure:12592: checking whether to use LDAP" >&5
12593 # Check whether --with-ldap or --without-ldap was given.
12594 if test "${with_ldap+set}" = set; then
12595 withval
="$with_ldap"
12598 with_ldap_support
=no
12604 echo "$ac_t""$with_ldap_support" 1>&6
12606 if test x
"$with_ldap_support" = x
"yes"; then
12608 ##################################################################
12609 # we might need the lber lib on some systems. To avoid link errors
12610 # this test must be before the libldap test
12611 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12612 echo "configure:12613: checking for ber_scanf in -llber" >&5
12613 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12615 echo $ac_n "(cached) $ac_c" 1>&6
12617 ac_save_LIBS
="$LIBS"
12618 LIBS
="-llber $LIBS"
12619 cat > conftest.
$ac_ext <<EOF
12620 #line 12621 "configure"
12621 #include "confdefs.h"
12622 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12631 if { (eval echo configure
:12632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12633 eval "ac_cv_lib_$ac_lib_var=yes"
12635 echo "configure: failed program was:" >&5
12636 cat conftest.
$ac_ext >&5
12638 eval "ac_cv_lib_$ac_lib_var=no"
12641 LIBS
="$ac_save_LIBS"
12644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12645 echo "$ac_t""yes" 1>&6
12646 LIBS
="$LIBS -llber"
12648 echo "$ac_t""no" 1>&6
12652 ########################################################
12653 # now see if we can find the ldap libs in standard paths
12654 if test x
$have_ldap != xyes
; then
12655 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12656 echo "configure:12657: checking for ldap_domain2hostlist in -lldap" >&5
12657 ac_lib_var
=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12661 ac_save_LIBS
="$LIBS"
12662 LIBS
="-lldap $LIBS"
12663 cat > conftest.
$ac_ext <<EOF
12664 #line 12665 "configure"
12665 #include "confdefs.h"
12666 /* Override any gcc2 internal prototype to avoid an error. */
12667 /* We use char because int might match the return type of a gcc2
12668 builtin and then its argument prototype would still apply. */
12669 char ldap_domain2hostlist();
12672 ldap_domain2hostlist()
12675 if { (eval echo configure
:12676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12677 eval "ac_cv_lib_$ac_lib_var=yes"
12679 echo "configure: failed program was:" >&5
12680 cat conftest.
$ac_ext >&5
12682 eval "ac_cv_lib_$ac_lib_var=no"
12685 LIBS
="$ac_save_LIBS"
12688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12689 echo "$ac_t""yes" 1>&6
12690 LIBS
="$LIBS -lldap";
12691 cat >> confdefs.h
<<\EOF
12692 #define HAVE_LDAP 1
12696 echo "$ac_t""no" 1>&6
12700 ########################################################
12701 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12702 # Check found in pam_ldap 145.
12703 for ac_func
in ldap_set_rebind_proc
12705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12706 echo "configure:12707: checking for $ac_func" >&5
12707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12710 cat > conftest.
$ac_ext <<EOF
12711 #line 12712 "configure"
12712 #include "confdefs.h"
12713 /* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char $ac_func(); below. */
12715 #include <assert.h>
12716 /* Override any gcc2 internal prototype to avoid an error. */
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12723 /* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12734 if { (eval echo configure
:12735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12736 eval "ac_cv_func_$ac_func=yes"
12738 echo "configure: failed program was:" >&5
12739 cat conftest.
$ac_ext >&5
12741 eval "ac_cv_func_$ac_func=no"
12746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12747 echo "$ac_t""yes" 1>&6
12748 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12749 cat >> confdefs.h
<<EOF
12750 #define $ac_tr_func 1
12754 echo "$ac_t""no" 1>&6
12758 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12759 echo "configure:12760: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12760 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12764 cat > conftest.
$ac_ext <<EOF
12765 #line 12766 "configure"
12766 #include "confdefs.h"
12771 ldap_set_rebind_proc(0, 0, 0);
12774 if { (eval echo configure
:12775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12776 pam_ldap_cv_ldap_set_rebind_proc
=3
12778 echo "configure: failed program was:" >&5
12779 cat conftest.
$ac_ext >&5
12781 pam_ldap_cv_ldap_set_rebind_proc
=2
12786 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12787 cat >> confdefs.h
<<EOF
12788 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12794 ########################################################
12795 # Compile with MySQL support?
12796 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
12797 if test "${with_mysql_prefix+set}" = set; then
12798 withval
="$with_mysql_prefix"
12799 mysql_prefix
="$withval"
12804 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
12805 if test "${with_mysql_exec_prefix+set}" = set; then
12806 withval
="$with_mysql_exec_prefix"
12807 mysql_exec_prefix
="$withval"
12809 mysql_exec_prefix
=""
12812 # Check whether --enable-mysqltest or --disable-mysqltest was given.
12813 if test "${enable_mysqltest+set}" = set; then
12814 enableval
="$enable_mysqltest"
12817 enable_mysqltest
=yes
12821 if test x
$mysql_exec_prefix != x
; then
12822 mysql_args
="$mysql_args --exec-prefix=$mysql_exec_prefix"
12823 if test x
${MYSQL_CONFIG+set} != xset
; then
12824 MYSQL_CONFIG
=$mysql_exec_prefix/bin
/mysql_config
12827 if test x
$mysql_prefix != x
; then
12828 mysql_args
="$mysql_args --prefix=$mysql_prefix"
12829 if test x
${MYSQL_CONFIG+set} != xset
; then
12830 MYSQL_CONFIG
=$mysql_prefix/bin
/mysql_config
12835 # Extract the first word of "mysql_config", so it can be a program name with args.
12836 set dummy mysql_config
; ac_word
=$2
12837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12838 echo "configure:12839: checking for $ac_word" >&5
12839 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
12840 echo $ac_n "(cached) $ac_c" 1>&6
12842 case "$MYSQL_CONFIG" in
12844 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a path.
12847 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a dos path.
12850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
12852 for ac_dir
in $ac_dummy; do
12853 test -z "$ac_dir" && ac_dir
=.
12854 if test -f $ac_dir/$ac_word; then
12855 ac_cv_path_MYSQL_CONFIG
="$ac_dir/$ac_word"
12860 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG
="no"
12864 MYSQL_CONFIG
="$ac_cv_path_MYSQL_CONFIG"
12865 if test -n "$MYSQL_CONFIG"; then
12866 echo "$ac_t""$MYSQL_CONFIG" 1>&6
12868 echo "$ac_t""no" 1>&6
12871 min_mysql_version
=0.11.0
12872 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
12873 echo "configure:12874: checking for MYSQL - version >= $min_mysql_version" >&5
12875 if test "$MYSQL_CONFIG" = "no" ; then
12878 MYSQL_CFLAGS
=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
12879 MYSQL_LIBS
=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
12881 mysql_major_version
=`$MYSQL_CONFIG $mysql_args --version | \
12882 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12883 mysql_minor_version
=`$MYSQL_CONFIG $mysql_args --version | \
12884 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12885 mysql_micro_version
=`$MYSQL_CONFIG $mysql_config_args --version | \
12886 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12887 if test "x$enable_mysqltest" = "xyes" ; then
12888 ac_save_CFLAGS
="$CFLAGS"
12889 ac_save_LIBS
="$LIBS"
12890 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
12891 LIBS
="$LIBS $MYSQL_LIBS"
12892 rm -f conf.mysqltest
12893 if test "$cross_compiling" = yes; then
12894 echo $ac_n "cross compiling; assumed OK... $ac_c"
12896 cat > conftest.
$ac_ext <<EOF
12897 #line 12898 "configure"
12898 #include "confdefs.h"
12901 #include <stdlib.h>
12902 #include <string.h>
12906 my_strdup (char *str)
12912 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12913 strcpy (new_str, str);
12921 int main (int argc, char *argv[])
12923 int major, minor, micro;
12926 /* This hangs on some systems (?)
12927 system ("touch conf.mysqltest");
12929 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
12931 /* HP/UX 9 (%@#!) writes to sscanf strings */
12932 tmp_version = my_strdup("$min_mysql_version");
12933 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12934 printf("%s, bad version string\n", "$min_mysql_version");
12938 if (($mysql_major_version > major) ||
12939 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
12940 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
12946 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
12947 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
12948 printf("*** best to upgrade to the required version.\n");
12949 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
12950 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
12951 printf("*** config.cache before re-running configure\n");
12958 if { (eval echo configure
:12959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12962 echo "configure: failed program was:" >&5
12963 cat conftest.
$ac_ext >&5
12970 CFLAGS
="$ac_save_CFLAGS"
12971 LIBS
="$ac_save_LIBS"
12974 if test "x$no_mysql" = x
; then
12975 echo "$ac_t""yes" 1>&6
12976 MODULE_MYSQL
=bin
/mysql.so
12978 echo "$ac_t""no" 1>&6
12979 if test "$MYSQL_CONFIG" = "no" ; then
12980 echo "*** The mysql_config script installed by MYSQL could not be found"
12981 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
12982 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
12983 echo "*** full path to mysql_config."
12985 if test -f conf.mysqltest
; then
12988 echo "*** Could not run MYSQL test program, checking why..."
12989 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
12990 LIBS
="$LIBS $MYSQL_LIBS"
12991 cat > conftest.
$ac_ext <<EOF
12992 #line 12993 "configure"
12993 #include "confdefs.h"
12998 int main(int argc, char *argv[])
13001 #define main K_and_R_C_main
13007 if { (eval echo configure
:13008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13009 echo "*** The test program compiled, but did not run. This usually means"
13010 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13011 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13012 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13013 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13014 echo "*** is required on your system"
13016 echo "*** If you have an old version installed, it is best to remove it, although"
13017 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13019 echo "configure: failed program was:" >&5
13020 cat conftest.
$ac_ext >&5
13022 echo "*** The test program failed to compile or link. See the file config.log for the"
13023 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13024 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13025 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13028 CFLAGS
="$ac_save_CFLAGS"
13029 LIBS
="$ac_save_LIBS"
13038 rm -f conf.mysqltest
13040 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13043 ########################################################
13044 # Compile with XML support?
13046 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13047 if test "${with_xml_prefix+set}" = set; then
13048 withval
="$with_xml_prefix"
13049 xml_config_prefix
="$withval"
13051 xml_config_prefix
=""
13054 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13055 if test "${with_xml_exec_prefix+set}" = set; then
13056 withval
="$with_xml_exec_prefix"
13057 xml_config_exec_prefix
="$withval"
13059 xml_config_exec_prefix
=""
13062 # Check whether --enable-xmltest or --disable-xmltest was given.
13063 if test "${enable_xmltest+set}" = set; then
13064 enableval
="$enable_xmltest"
13071 if test x
$xml_config_exec_prefix != x
; then
13072 xml_config_args
="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13073 if test x
${XML2_CONFIG+set} != xset
; then
13074 XML2_CONFIG
=$xml_config_exec_prefix/bin
/xml2-config
13077 if test x
$xml_config_prefix != x
; then
13078 xml_config_args
="$xml_config_args --prefix=$xml_config_prefix"
13079 if test x
${XML2_CONFIG+set} != xset
; then
13080 XML2_CONFIG
=$xml_config_prefix/bin
/xml2-config
13084 # Extract the first word of "xml2-config", so it can be a program name with args.
13085 set dummy xml2-config
; ac_word
=$2
13086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13087 echo "configure:13088: checking for $ac_word" >&5
13088 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13089 echo $ac_n "(cached) $ac_c" 1>&6
13091 case "$XML2_CONFIG" in
13093 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
13096 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a dos path.
13099 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
13101 for ac_dir
in $ac_dummy; do
13102 test -z "$ac_dir" && ac_dir
=.
13103 if test -f $ac_dir/$ac_word; then
13104 ac_cv_path_XML2_CONFIG
="$ac_dir/$ac_word"
13109 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG
="no"
13113 XML2_CONFIG
="$ac_cv_path_XML2_CONFIG"
13114 if test -n "$XML2_CONFIG"; then
13115 echo "$ac_t""$XML2_CONFIG" 1>&6
13117 echo "$ac_t""no" 1>&6
13120 min_xml_version
=2.0.0
13121 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13122 echo "configure:13123: checking for libxml - version >= $min_xml_version" >&5
13124 if test "$XML2_CONFIG" = "no" ; then
13127 XML_CFLAGS
=`$XML2_CONFIG $xml_config_args --cflags`
13128 XML_LIBS
=`$XML2_CONFIG $xml_config_args --libs`
13129 xml_config_major_version
=`$XML2_CONFIG $xml_config_args --version | \
13130 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13131 xml_config_minor_version
=`$XML2_CONFIG $xml_config_args --version | \
13132 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13133 xml_config_micro_version
=`$XML2_CONFIG $xml_config_args --version | \
13134 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13135 if test "x$enable_xmltest" = "xyes" ; then
13136 ac_save_CFLAGS
="$CFLAGS"
13137 ac_save_LIBS
="$LIBS"
13138 CFLAGS
="$CFLAGS $XML_CFLAGS"
13139 LIBS
="$XML_LIBS $LIBS"
13141 if test "$cross_compiling" = yes; then
13142 echo $ac_n "cross compiling; assumed OK... $ac_c"
13144 cat > conftest.
$ac_ext <<EOF
13145 #line 13146 "configure"
13146 #include "confdefs.h"
13148 #include <stdlib.h>
13150 #include <string.h>
13151 #include <libxml/xmlversion.h>
13156 int xml_major_version, xml_minor_version, xml_micro_version;
13157 int major, minor, micro;
13160 system("touch conf.xmltest");
13162 /* Capture xml2-config output via autoconf/configure variables */
13163 /* HP/UX 9 (%@#!) writes to sscanf strings */
13164 tmp_version = (char *)strdup("$min_xml_version");
13165 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13166 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13171 /* Capture the version information from the header files */
13172 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13173 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13174 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13179 /* Compare xml2-config output to the libxml headers */
13180 if ((xml_major_version != $xml_config_major_version) ||
13181 (xml_minor_version != $xml_config_minor_version) ||
13182 (xml_micro_version != $xml_config_micro_version))
13184 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13185 xml_major_version, xml_minor_version, xml_micro_version);
13186 printf("*** xml2-config (version %d.%d.%d)\n",
13187 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13190 /* Compare the headers to the library to make sure we match */
13191 /* Less than ideal -- doesn't provide us with return value feedback,
13192 * only exits if there's a serious mismatch between header and library.
13194 LIBXML_TEST_VERSION;
13196 /* Test that the library is greater than our minimum version */
13197 if ((xml_major_version > major) ||
13198 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13199 ((xml_major_version == major) && (xml_minor_version == minor) &&
13200 (xml_micro_version >= micro)))
13206 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13207 xml_major_version, xml_minor_version, xml_micro_version);
13208 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13209 major, minor, micro);
13210 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13212 printf("*** If you have already installed a sufficiently new version, this error\n");
13213 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13214 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13215 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13216 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13217 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13218 printf("*** so that the correct libraries are found at run-time))\n");
13224 if { (eval echo configure
:13225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13228 echo "configure: failed program was:" >&5
13229 cat conftest.
$ac_ext >&5
13236 CFLAGS
="$ac_save_CFLAGS"
13237 LIBS
="$ac_save_LIBS"
13241 if test "x$no_xml" = x
; then
13242 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13243 MODULE_XML
=bin
/xml.so
13245 echo "$ac_t""no" 1>&6
13246 if test "$XML2_CONFIG" = "no" ; then
13247 echo "*** The xml2-config script installed by LIBXML could not be found"
13248 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13249 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13250 echo "*** full path to xml2-config."
13252 if test -f conf.xmltest
; then
13255 echo "*** Could not run libxml test program, checking why..."
13256 CFLAGS
="$CFLAGS $XML_CFLAGS"
13257 LIBS
="$LIBS $XML_LIBS"
13258 cat > conftest.
$ac_ext <<EOF
13259 #line 13260 "configure"
13260 #include "confdefs.h"
13262 #include <libxml/xmlversion.h>
13266 LIBXML_TEST_VERSION; return 0;
13269 if { (eval echo configure
:13270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13271 echo "*** The test program compiled, but did not run. This usually means"
13272 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13273 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13274 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13275 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13276 echo "*** is required on your system"
13278 echo "*** If you have an old version installed, it is best to remove it, although"
13279 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13281 echo "configure: failed program was:" >&5
13282 cat conftest.
$ac_ext >&5
13284 echo "*** The test program failed to compile or link. See the file config.log for the"
13285 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13286 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13287 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13290 CFLAGS
="$ac_save_CFLAGS"
13291 LIBS
="$ac_save_LIBS"
13303 CFLAGS
="$CFLAGS $XML_CFLAGS"
13306 #################################################
13307 # check for automount support
13308 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13309 echo "configure:13310: checking whether to use automount" >&5
13310 # Check whether --with-automount or --without-automount was given.
13311 if test "${with_automount+set}" = set; then
13312 withval
="$with_automount"
13315 echo "$ac_t""yes" 1>&6
13316 cat >> confdefs.h
<<\EOF
13317 #define WITH_AUTOMOUNT 1
13322 echo "$ac_t""no" 1>&6
13326 echo "$ac_t""no" 1>&6
13331 #################################################
13332 # check for smbmount support
13333 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13334 echo "configure:13335: checking whether to use smbmount" >&5
13335 # Check whether --with-smbmount or --without-smbmount was given.
13336 if test "${with_smbmount+set}" = set; then
13337 withval
="$with_smbmount"
13342 echo "$ac_t""yes" 1>&6
13343 cat >> confdefs.h
<<\EOF
13344 #define WITH_SMBMOUNT 1
13347 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13350 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13355 echo "$ac_t""no" 1>&6
13359 echo "$ac_t""no" 1>&6
13365 #################################################
13366 # check for a PAM clear-text auth, accounts, password and session support
13367 with_pam_for_crypt
=no
13368 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13369 echo "configure:13370: checking whether to use PAM" >&5
13370 # Check whether --with-pam or --without-pam was given.
13371 if test "${with_pam+set}" = set; then
13372 withval
="$with_pam"
13375 echo "$ac_t""yes" 1>&6
13376 cat >> confdefs.h
<<\EOF
13380 AUTHLIBS
="$AUTHLIBS -lpam"
13381 with_pam_for_crypt
=yes
13384 echo "$ac_t""no" 1>&6
13388 echo "$ac_t""no" 1>&6
13393 # we can't build a pam module if we don't have pam.
13394 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13395 echo "configure:13396: checking for pam_get_data in -lpam" >&5
13396 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
13400 ac_save_LIBS
="$LIBS"
13402 cat > conftest.
$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13408 char pam_get_data();
13414 if { (eval echo configure
:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13416 eval "ac_cv_lib_$ac_lib_var=yes"
13418 echo "configure: failed program was:" >&5
13419 cat conftest.
$ac_ext >&5
13421 eval "ac_cv_lib_$ac_lib_var=no"
13424 LIBS
="$ac_save_LIBS"
13427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13428 echo "$ac_t""yes" 1>&6
13429 cat >> confdefs.h
<<\EOF
13430 #define HAVE_LIBPAM 1
13434 echo "$ac_t""no" 1>&6
13438 #################################################
13439 # check for pam_smbpass support
13440 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13441 echo "configure:13442: checking whether to use pam_smbpass" >&5
13442 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13443 if test "${with_pam_smbpass+set}" = set; then
13444 withval
="$with_pam_smbpass"
13447 echo "$ac_t""yes" 1>&6
13449 # Conditions under which pam_smbpass should not be built.
13451 if test x
$PICFLAG = x
; then
13452 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13453 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
13454 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13456 SHLIB_PROGS
="$SHLIB_PROGS bin/pam_smbpass.so"
13460 echo "$ac_t""no" 1>&6
13464 echo "$ac_t""no" 1>&6
13470 ###############################################
13471 # test for where we get crypt() from, but only
13473 if test x
"$with_pam_for_crypt" = x
"no"; then
13474 for ac_func
in crypt
13476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13477 echo "configure:13478: checking for $ac_func" >&5
13478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13481 cat > conftest.
$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13484 /* System header to define __stub macros and hopefully few prototypes,
13485 which can conflict with char $ac_func(); below. */
13486 #include <assert.h>
13487 /* Override any gcc2 internal prototype to avoid an error. */
13488 /* We use char because int might match the return type of a gcc2
13489 builtin and then its argument prototype would still apply. */
13494 /* The GNU C library defines this for functions which it implements
13495 to always fail with ENOSYS. Some functions are actually named
13496 something starting with __ and the normal name is an alias. */
13497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13505 if { (eval echo configure
:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13507 eval "ac_cv_func_$ac_func=yes"
13509 echo "configure: failed program was:" >&5
13510 cat conftest.
$ac_ext >&5
13512 eval "ac_cv_func_$ac_func=no"
13517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13518 echo "$ac_t""yes" 1>&6
13519 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13520 cat >> confdefs.h
<<EOF
13521 #define $ac_tr_func 1
13525 echo "$ac_t""no" 1>&6
13529 if test x
"$ac_cv_func_crypt" = x
"no"; then
13530 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13531 echo "configure:13532: checking for crypt in -lcrypt" >&5
13532 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13534 echo $ac_n "(cached) $ac_c" 1>&6
13536 ac_save_LIBS
="$LIBS"
13537 LIBS
="-lcrypt $LIBS"
13538 cat > conftest.
$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 /* Override any gcc2 internal prototype to avoid an error. */
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13550 if { (eval echo configure
:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13552 eval "ac_cv_lib_$ac_lib_var=yes"
13554 echo "configure: failed program was:" >&5
13555 cat conftest.
$ac_ext >&5
13557 eval "ac_cv_lib_$ac_lib_var=no"
13560 LIBS
="$ac_save_LIBS"
13563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13564 echo "$ac_t""yes" 1>&6
13565 AUTHLIBS
="$AUTHLIBS -lcrypt";
13566 cat >> confdefs.h
<<\EOF
13567 #define HAVE_CRYPT 1
13571 echo "$ac_t""no" 1>&6
13578 ## moved after the check for -lcrypt in order to
13579 ## ensure that the necessary libraries are included
13580 ## check checking for truncated salt. Wrapped by the
13581 ## $with_pam_for_crypt variable as above --jerry
13583 if test $with_pam_for_crypt = no
; then
13584 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13585 echo "configure:13586: checking for a crypt that needs truncated salt" >&5
13586 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13587 echo $ac_n "(cached) $ac_c" 1>&6
13591 LIBS
="$AUTHLIBS $LIBS"
13592 if test "$cross_compiling" = yes; then
13593 samba_cv_HAVE_TRUNCATED_SALT
=cross
13595 cat > conftest.
$ac_ext <<EOF
13596 #line 13597 "configure"
13597 #include "confdefs.h"
13598 #include "${srcdir-.}/tests/crypttest.c"
13600 if { (eval echo configure
:13601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13602 samba_cv_HAVE_TRUNCATED_SALT
=no
13604 echo "configure: failed program was:" >&5
13605 cat conftest.
$ac_ext >&5
13607 samba_cv_HAVE_TRUNCATED_SALT
=yes
13615 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
13616 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
13617 cat >> confdefs.h
<<\EOF
13618 #define HAVE_TRUNCATED_SALT 1
13624 # New experimental SAM system
13626 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
13627 echo "configure:13628: checking whether to build the new (experimental) SAM database" >&5
13628 # Check whether --with-sam or --without-sam was given.
13629 if test "${with_sam+set}" = set; then
13630 withval
="$with_sam"
13633 echo "$ac_t""yes" 1>&6
13634 cat >> confdefs.h
<<\EOF
13640 echo "$ac_t""no" 1>&6
13644 echo "$ac_t""no" 1>&6
13650 ########################################################################################
13652 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
13654 ########################################################################################
13656 #################################################
13657 # check for a LDAP password database configuration backwards compatibility
13658 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
13659 echo "configure:13660: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
13660 # Check whether --with-ldapsam or --without-ldapsam was given.
13661 if test "${with_ldapsam+set}" = set; then
13662 withval
="$with_ldapsam"
13665 echo "$ac_t""yes" 1>&6
13666 cat >> confdefs.h
<<\EOF
13667 #define WITH_LDAP_SAMCONFIG 1
13672 echo "$ac_t""no" 1>&6
13676 echo "$ac_t""no" 1>&6
13681 #################################################
13682 # check for a TDB password database
13683 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
13684 echo "configure:13685: checking whether to use TDB SAM database" >&5
13685 # Check whether --with-tdbsam or --without-tdbsam was given.
13686 if test "${with_tdbsam+set}" = set; then
13687 withval
="$with_tdbsam"
13690 echo "$ac_t""yes" 1>&6
13691 cat >> confdefs.h
<<\EOF
13692 #define WITH_TDB_SAM 1
13697 echo "$ac_t""no" 1>&6
13701 echo "$ac_t""no" 1>&6
13706 #################################################
13707 # check for a NISPLUS password database
13708 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
13709 echo "configure:13710: checking whether to use NISPLUS SAM database" >&5
13710 # Check whether --with-nisplussam or --without-nisplussam was given.
13711 if test "${with_nisplussam+set}" = set; then
13712 withval
="$with_nisplussam"
13715 echo "$ac_t""yes" 1>&6
13716 cat >> confdefs.h
<<\EOF
13717 #define WITH_NISPLUS_SAM 1
13722 echo "$ac_t""no" 1>&6
13726 echo "$ac_t""no" 1>&6
13731 ########################################################################################
13733 ## END OF TESTS FOR SAM BACKENDS.
13735 ########################################################################################
13737 #################################################
13738 # check for a NISPLUS_HOME support
13739 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
13740 echo "configure:13741: checking whether to use NISPLUS_HOME" >&5
13741 # Check whether --with-nisplus-home or --without-nisplus-home was given.
13742 if test "${with_nisplus_home+set}" = set; then
13743 withval
="$with_nisplus_home"
13746 echo "$ac_t""yes" 1>&6
13747 cat >> confdefs.h
<<\EOF
13748 #define WITH_NISPLUS_HOME 1
13753 echo "$ac_t""no" 1>&6
13757 echo "$ac_t""no" 1>&6
13762 #################################################
13763 # check for syslog logging
13764 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
13765 echo "configure:13766: checking whether to use syslog logging" >&5
13766 # Check whether --with-syslog or --without-syslog was given.
13767 if test "${with_syslog+set}" = set; then
13768 withval
="$with_syslog"
13771 echo "$ac_t""yes" 1>&6
13772 cat >> confdefs.h
<<\EOF
13773 #define WITH_SYSLOG 1
13778 echo "$ac_t""no" 1>&6
13782 echo "$ac_t""no" 1>&6
13787 #################################################
13788 # check for a shared memory profiling support
13789 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
13790 echo "configure:13791: checking whether to use profiling" >&5
13791 # Check whether --with-profiling-data or --without-profiling-data was given.
13792 if test "${with_profiling_data+set}" = set; then
13793 withval
="$with_profiling_data"
13796 echo "$ac_t""yes" 1>&6
13797 cat >> confdefs.h
<<\EOF
13798 #define WITH_PROFILE 1
13803 echo "$ac_t""no" 1>&6
13807 echo "$ac_t""no" 1>&6
13813 #################################################
13814 # check for experimental disk-quotas support
13815 QUOTAOBJS
=smbd
/noquotas.o
13817 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13818 echo "configure:13819: checking whether to support disk-quotas" >&5
13819 # Check whether --with-quotas or --without-quotas was given.
13820 if test "${with_quotas+set}" = set; then
13821 withval
="$with_quotas"
13824 echo "$ac_t""yes" 1>&6
13827 # Check for kernel 2.4.x quota braindamage...
13828 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13829 echo "configure:13830: checking for linux 2.4.x quota braindamage.." >&5
13830 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13831 echo $ac_n "(cached) $ac_c" 1>&6
13834 cat > conftest.
$ac_ext <<EOF
13835 #line 13836 "configure"
13836 #include "confdefs.h"
13838 #include <sys/types.h>
13839 #include <asm/types.h>
13840 #include <linux/quota.h>
13841 #include <mntent.h>
13842 #include <linux/unistd.h>
13844 struct mem_dqblk D;
13847 if { (eval echo configure
:13848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13849 samba_cv_linux_2_4_quota_braindamage
=yes
13851 echo "configure: failed program was:" >&5
13852 cat conftest.
$ac_ext >&5
13854 samba_cv_linux_2_4_quota_braindamage
=no
13859 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13860 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
13861 cat >> confdefs.h
<<\EOF
13862 #define LINUX_QUOTAS_2 1
13866 cat >> confdefs.h
<<\EOF
13867 #define LINUX_QUOTAS_1 1
13875 QUOTAOBJS
=smbd
/quotas.o
13876 cat >> confdefs.h
<<\EOF
13877 #define WITH_QUOTAS 1
13882 echo "$ac_t""no" 1>&6
13886 echo "$ac_t""no" 1>&6
13892 #################################################
13893 # check for experimental utmp accounting
13895 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13896 echo "configure:13897: checking whether to support utmp accounting" >&5
13897 # Check whether --with-utmp or --without-utmp was given.
13898 if test "${with_utmp+set}" = set; then
13899 withval
="$with_utmp"
13902 echo "$ac_t""yes" 1>&6
13903 cat >> confdefs.h
<<\EOF
13904 #define WITH_UTMP 1
13909 echo "$ac_t""no" 1>&6
13913 echo "$ac_t""no" 1>&6
13918 #################################################
13919 # choose native language(s) of man pages
13920 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13921 echo "configure:13922: checking chosen man pages' language(s)" >&5
13922 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13923 if test "${with_manpages_langs+set}" = set; then
13924 withval
="$with_manpages_langs"
13927 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13931 manlangs
="$withval"
13935 echo "$ac_t""$manlangs" 1>&6
13936 manlangs
=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
13940 echo "$ac_t""$manlangs" 1>&6
13946 #################################################
13947 # should we build libsmbclient?
13949 LIBSMBCLIENT_SHARED
=
13951 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13952 echo "configure:13953: checking whether to build the libsmbclient shared library" >&5
13953 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13954 if test "${with_libsmbclient+set}" = set; then
13955 withval
="$with_libsmbclient"
13958 echo "$ac_t""no" 1>&6
13961 if test $BLDSHARED = true
; then
13962 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
13963 LIBSMBCLIENT
=libsmbclient
13964 echo "$ac_t""yes" 1>&6
13966 echo "$ac_t""no shared library support" 1>&6
13971 echo "$ac_t""yes" 1>&6
13977 #################################################
13978 # these tests are taken from the GNU fileutils package
13979 echo "checking how to get filesystem space usage" 1>&6
13980 echo "configure:13981: checking how to get filesystem space usage" >&5
13983 # Test for statvfs64.
13984 if test $space = no
; then
13986 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13987 echo "configure:13988: checking statvfs64 function (SVR4)" >&5
13988 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13989 echo $ac_n "(cached) $ac_c" 1>&6
13991 if test "$cross_compiling" = yes; then
13992 fu_cv_sys_stat_statvfs64
=cross
13994 cat > conftest.
$ac_ext <<EOF
13995 #line 13996 "configure"
13996 #include "confdefs.h"
13998 #if defined(HAVE_UNISTD_H)
13999 #include <unistd.h>
14001 #include <sys/types.h>
14002 #include <sys/statvfs.h>
14005 struct statvfs64 fsd;
14006 exit (statvfs64 (".", &fsd));
14009 if { (eval echo configure
:14010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14011 fu_cv_sys_stat_statvfs64
=yes
14013 echo "configure: failed program was:" >&5
14014 cat conftest.
$ac_ext >&5
14016 fu_cv_sys_stat_statvfs64
=no
14023 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
14024 if test $fu_cv_sys_stat_statvfs64 = yes; then
14026 cat >> confdefs.h
<<\EOF
14027 #define STAT_STATVFS64 1
14033 # Perform only the link test since it seems there are no variants of the
14034 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14035 # because that got a false positive on SCO OSR5. Adding the declaration
14036 # of a `struct statvfs' causes this test to fail (as it should) on such
14037 # systems. That system is reported to work fine with STAT_STATFS4 which
14038 # is what it gets when this test fails.
14039 if test $space = no
; then
14041 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14042 echo "configure:14043: checking statvfs function (SVR4)" >&5
14043 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14046 cat > conftest.
$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 #include <sys/types.h>
14050 #include <sys/statvfs.h>
14052 struct statvfs fsd; statvfs (0, &fsd);
14055 if { (eval echo configure
:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14057 fu_cv_sys_stat_statvfs
=yes
14059 echo "configure: failed program was:" >&5
14060 cat conftest.
$ac_ext >&5
14062 fu_cv_sys_stat_statvfs
=no
14067 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14068 if test $fu_cv_sys_stat_statvfs = yes; then
14070 cat >> confdefs.h
<<\EOF
14071 #define STAT_STATVFS 1
14077 if test $space = no
; then
14078 # DEC Alpha running OSF/1
14079 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14080 echo "configure:14081: checking for 3-argument statfs function (DEC OSF/1)" >&5
14081 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14082 echo $ac_n "(cached) $ac_c" 1>&6
14084 if test "$cross_compiling" = yes; then
14085 fu_cv_sys_stat_statfs3_osf1
=no
14087 cat > conftest.
$ac_ext <<EOF
14088 #line 14089 "configure"
14089 #include "confdefs.h"
14091 #include <sys/param.h>
14092 #include <sys/types.h>
14093 #include <sys/mount.h>
14098 exit (statfs (".", &fsd, sizeof (struct statfs)));
14101 if { (eval echo configure
:14102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14103 fu_cv_sys_stat_statfs3_osf1
=yes
14105 echo "configure: failed program was:" >&5
14106 cat conftest.
$ac_ext >&5
14108 fu_cv_sys_stat_statfs3_osf1
=no
14115 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14116 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14118 cat >> confdefs.h
<<\EOF
14119 #define STAT_STATFS3_OSF1 1
14125 if test $space = no
; then
14127 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14128 echo "configure:14129: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14129 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14130 echo $ac_n "(cached) $ac_c" 1>&6
14132 if test "$cross_compiling" = yes; then
14133 fu_cv_sys_stat_statfs2_bsize
=no
14135 cat > conftest.
$ac_ext <<EOF
14136 #line 14137 "configure"
14137 #include "confdefs.h"
14139 #ifdef HAVE_SYS_PARAM_H
14140 #include <sys/param.h>
14142 #ifdef HAVE_SYS_MOUNT_H
14143 #include <sys/mount.h>
14145 #ifdef HAVE_SYS_VFS_H
14146 #include <sys/vfs.h>
14152 exit (statfs (".", &fsd));
14155 if { (eval echo configure
:14156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14157 fu_cv_sys_stat_statfs2_bsize
=yes
14159 echo "configure: failed program was:" >&5
14160 cat conftest.
$ac_ext >&5
14162 fu_cv_sys_stat_statfs2_bsize
=no
14169 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14170 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14172 cat >> confdefs.h
<<\EOF
14173 #define STAT_STATFS2_BSIZE 1
14179 if test $space = no
; then
14181 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14182 echo "configure:14183: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14183 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14184 echo $ac_n "(cached) $ac_c" 1>&6
14186 if test "$cross_compiling" = yes; then
14187 fu_cv_sys_stat_statfs4
=no
14189 cat > conftest.
$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 #include <sys/types.h>
14193 #include <sys/statfs.h>
14197 exit (statfs (".", &fsd, sizeof fsd, 0));
14200 if { (eval echo configure
:14201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14202 fu_cv_sys_stat_statfs4
=yes
14204 echo "configure: failed program was:" >&5
14205 cat conftest.
$ac_ext >&5
14207 fu_cv_sys_stat_statfs4
=no
14214 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14215 if test $fu_cv_sys_stat_statfs4 = yes; then
14217 cat >> confdefs.h
<<\EOF
14218 #define STAT_STATFS4 1
14224 if test $space = no
; then
14225 # 4.4BSD and NetBSD
14226 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14227 echo "configure:14228: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14228 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14229 echo $ac_n "(cached) $ac_c" 1>&6
14231 if test "$cross_compiling" = yes; then
14232 fu_cv_sys_stat_statfs2_fsize
=no
14234 cat > conftest.
$ac_ext <<EOF
14235 #line 14236 "configure"
14236 #include "confdefs.h"
14237 #include <sys/types.h>
14238 #ifdef HAVE_SYS_PARAM_H
14239 #include <sys/param.h>
14241 #ifdef HAVE_SYS_MOUNT_H
14242 #include <sys/mount.h>
14248 exit (statfs (".", &fsd));
14251 if { (eval echo configure
:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14253 fu_cv_sys_stat_statfs2_fsize
=yes
14255 echo "configure: failed program was:" >&5
14256 cat conftest.
$ac_ext >&5
14258 fu_cv_sys_stat_statfs2_fsize
=no
14265 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14266 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14268 cat >> confdefs.h
<<\EOF
14269 #define STAT_STATFS2_FSIZE 1
14275 if test $space = no
; then
14277 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14278 echo "configure:14279: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14279 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14280 echo $ac_n "(cached) $ac_c" 1>&6
14282 if test "$cross_compiling" = yes; then
14283 fu_cv_sys_stat_fs_data
=no
14285 cat > conftest.
$ac_ext <<EOF
14286 #line 14287 "configure"
14287 #include "confdefs.h"
14288 #include <sys/types.h>
14289 #ifdef HAVE_SYS_PARAM_H
14290 #include <sys/param.h>
14292 #ifdef HAVE_SYS_MOUNT_H
14293 #include <sys/mount.h>
14295 #ifdef HAVE_SYS_FS_TYPES_H
14296 #include <sys/fs_types.h>
14300 struct fs_data fsd;
14301 /* Ultrix's statfs returns 1 for success,
14302 0 for not mounted, -1 for failure. */
14303 exit (statfs (".", &fsd) != 1);
14306 if { (eval echo configure
:14307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14308 fu_cv_sys_stat_fs_data
=yes
14310 echo "configure: failed program was:" >&5
14311 cat conftest.
$ac_ext >&5
14313 fu_cv_sys_stat_fs_data
=no
14320 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14321 if test $fu_cv_sys_stat_fs_data = yes; then
14323 cat >> confdefs.h
<<\EOF
14324 #define STAT_STATFS2_FS_DATA 1
14331 # As a gating factor for large file support, in order to
14332 # use <4GB files we must have the following minimal support
14334 # long long, and a 64 bit off_t or off64_t.
14335 # If we don't have all of these then disable large
14338 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14339 echo "configure:14340: checking if large file support can be enabled" >&5
14340 cat > conftest.
$ac_ext <<EOF
14341 #line 14342 "configure"
14342 #include "confdefs.h"
14344 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14345 #include <sys/types.h>
14354 if { (eval echo configure
:14355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14356 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
14358 echo "configure: failed program was:" >&5
14359 cat conftest.
$ac_ext >&5
14361 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
14364 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
14365 cat >> confdefs.h
<<\EOF
14366 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14370 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14372 # Check whether --with-spinlocks or --without-spinlocks was given.
14373 if test "${with_spinlocks+set}" = set; then
14374 withval
="$with_spinlocks"
14378 if test "x$with_spinlocks" = "xyes"; then
14379 cat >> confdefs.h
<<\EOF
14380 #define USE_SPINLOCKS 1
14384 case "$host_cpu" in
14386 cat >> confdefs.h
<<\EOF
14387 #define SPARC_SPINLOCKS 1
14392 i386|i486|i586|i686
)
14393 cat >> confdefs.h
<<\EOF
14394 #define INTEL_SPINLOCKS 1
14400 cat >> confdefs.h
<<\EOF
14401 #define MIPS_SPINLOCKS 1
14407 cat >> confdefs.h
<<\EOF
14408 #define POWERPC_SPINLOCKS 1
14415 #################################################
14416 # check for ACL support
14418 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14419 echo "configure:14420: checking whether to support ACLs" >&5
14420 # Check whether --with-acl-support or --without-acl-support was given.
14421 if test "${with_acl_support+set}" = set; then
14422 withval
="$with_acl_support"
14428 echo "$ac_t""Using UnixWare ACLs" 1>&6
14429 cat >> confdefs.h
<<\EOF
14430 #define HAVE_UNIXWARE_ACLS 1
14435 echo "$ac_t""Using solaris ACLs" 1>&6
14436 cat >> confdefs.h
<<\EOF
14437 #define HAVE_SOLARIS_ACLS 1
14442 echo "$ac_t""Using HPUX ACLs" 1>&6
14443 cat >> confdefs.h
<<\EOF
14444 #define HAVE_HPUX_ACLS 1
14449 echo "$ac_t""Using IRIX ACLs" 1>&6
14450 cat >> confdefs.h
<<\EOF
14451 #define HAVE_IRIX_ACLS 1
14456 echo "$ac_t""Using AIX ACLs" 1>&6
14457 cat >> confdefs.h
<<\EOF
14458 #define HAVE_AIX_ACLS 1
14463 echo "$ac_t""Using Tru64 ACLs" 1>&6
14464 cat >> confdefs.h
<<\EOF
14465 #define HAVE_TRU64_ACLS 1
14468 LIBS
="$LIBS -lpacl"
14471 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14472 echo "configure:14473: checking for acl_get_file in -lacl" >&5
14473 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14475 echo $ac_n "(cached) $ac_c" 1>&6
14477 ac_save_LIBS
="$LIBS"
14479 cat > conftest.
$ac_ext <<EOF
14480 #line 14481 "configure"
14481 #include "confdefs.h"
14482 /* Override any gcc2 internal prototype to avoid an error. */
14483 /* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14485 char acl_get_file();
14491 if { (eval echo configure
:14492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14493 eval "ac_cv_lib_$ac_lib_var=yes"
14495 echo "configure: failed program was:" >&5
14496 cat conftest.
$ac_ext >&5
14498 eval "ac_cv_lib_$ac_lib_var=no"
14501 LIBS
="$ac_save_LIBS"
14504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14505 echo "$ac_t""yes" 1>&6
14506 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14507 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14508 cat >> confdefs.h
<<EOF
14509 #define $ac_tr_lib 1
14515 echo "$ac_t""no" 1>&6
14518 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14519 echo "configure:14520: checking for ACL support" >&5
14520 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14521 echo $ac_n "(cached) $ac_c" 1>&6
14524 cat > conftest.
$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14527 #include <sys/types.h>
14528 #include <sys/acl.h>
14530 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14533 if { (eval echo configure
:14534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14535 samba_cv_HAVE_POSIX_ACLS
=yes
14537 echo "configure: failed program was:" >&5
14538 cat conftest.
$ac_ext >&5
14540 samba_cv_HAVE_POSIX_ACLS
=no
14545 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14546 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
14547 echo "$ac_t""Using posix ACLs" 1>&6
14548 cat >> confdefs.h
<<\EOF
14549 #define HAVE_POSIX_ACLS 1
14552 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14553 echo "configure:14554: checking for acl_get_perm_np" >&5
14554 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14555 echo $ac_n "(cached) $ac_c" 1>&6
14558 cat > conftest.
$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 #include <sys/types.h>
14562 #include <sys/acl.h>
14564 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14567 if { (eval echo configure
:14568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14569 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
14571 echo "configure: failed program was:" >&5
14572 cat conftest.
$ac_ext >&5
14574 samba_cv_HAVE_ACL_GET_PERM_NP
=no
14579 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14580 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
14581 cat >> confdefs.h
<<\EOF
14582 #define HAVE_ACL_GET_PERM_NP 1
14591 echo "$ac_t""no" 1>&6
14592 cat >> confdefs.h
<<\EOF
14593 #define HAVE_NO_ACLS 1
14599 cat >> confdefs.h
<<\EOF
14600 #define HAVE_NO_ACLS 1
14603 echo "$ac_t""no" 1>&6
14608 #################################################
14609 # check for sendfile support
14611 with_sendfile_support
=yes
14612 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
14613 echo "configure:14614: checking whether to check to support sendfile" >&5
14614 # Check whether --with-sendfile-support or --without-sendfile-support was given.
14615 if test "${with_sendfile_support+set}" = set; then
14616 withval
="$with_sendfile_support"
14620 echo "$ac_t""yes" 1>&6;
14624 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
14625 echo "configure:14626: checking for linux sendfile64 support" >&5
14626 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14627 echo $ac_n "(cached) $ac_c" 1>&6
14630 cat > conftest.
$ac_ext <<EOF
14631 #line 14632 "configure"
14632 #include "confdefs.h"
14633 #include <sys/sendfile.h>
14639 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
14643 if { (eval echo configure
:14644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14645 samba_cv_HAVE_SENDFILE64
=yes
14647 echo "configure: failed program was:" >&5
14648 cat conftest.
$ac_ext >&5
14650 samba_cv_HAVE_SENDFILE64
=no
14655 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14657 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
14658 echo "configure:14659: checking for linux sendfile support" >&5
14659 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14660 echo $ac_n "(cached) $ac_c" 1>&6
14663 cat > conftest.
$ac_ext <<EOF
14664 #line 14665 "configure"
14665 #include "confdefs.h"
14666 #include <sys/sendfile.h>
14672 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14676 if { (eval echo configure
:14677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14678 samba_cv_HAVE_SENDFILE
=yes
14680 echo "configure: failed program was:" >&5
14681 cat conftest.
$ac_ext >&5
14683 samba_cv_HAVE_SENDFILE
=no
14688 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14690 # Try and cope with broken Linux sendfile....
14691 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
14692 echo "configure:14693: checking for broken linux sendfile support" >&5
14693 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
14694 echo $ac_n "(cached) $ac_c" 1>&6
14697 cat > conftest.
$ac_ext <<EOF
14698 #line 14699 "configure"
14699 #include "confdefs.h"
14701 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
14702 #undef _FILE_OFFSET_BITS
14704 #include <sys/sendfile.h>
14710 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14714 if { (eval echo configure
:14715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14716 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
14718 echo "configure: failed program was:" >&5
14719 cat conftest.
$ac_ext >&5
14721 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
14726 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
14728 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
14729 cat >> confdefs.h
<<\EOF
14730 #define HAVE_SENDFILE64 1
14733 cat >> confdefs.h
<<\EOF
14734 #define LINUX_SENDFILE_API 1
14737 cat >> confdefs.h
<<\EOF
14738 #define WITH_SENDFILE 1
14741 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14742 cat >> confdefs.h
<<\EOF
14743 #define HAVE_SENDFILE 1
14746 cat >> confdefs.h
<<\EOF
14747 #define LINUX_SENDFILE_API 1
14750 cat >> confdefs.h
<<\EOF
14751 #define WITH_SENDFILE 1
14754 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
14755 cat >> confdefs.h
<<\EOF
14756 #define LINUX_BROKEN_SENDFILE_API 1
14759 cat >> confdefs.h
<<\EOF
14760 #define WITH_SENDFILE 1
14764 echo "$ac_t""no" 1>&6;
14769 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
14770 echo "configure:14771: checking for freebsd sendfile support" >&5
14771 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14772 echo $ac_n "(cached) $ac_c" 1>&6
14775 cat > conftest.
$ac_ext <<EOF
14776 #line 14777 "configure"
14777 #include "confdefs.h"
14779 #include <sys/types.h>
14780 #include <sys/socket.h>
14781 #include <sys/uio.h>
14785 off_t offset, nwritten;
14786 struct sf_hdtr hdr;
14787 struct iovec hdtrl;
14788 hdr->headers = &hdtrl;
14790 hdr->trailers = NULL;
14792 hdtrl.iov_base = NULL;
14794 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
14798 if { (eval echo configure
:14799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14800 samba_cv_HAVE_SENDFILE
=yes
14802 echo "configure: failed program was:" >&5
14803 cat conftest.
$ac_ext >&5
14805 samba_cv_HAVE_SENDFILE
=no
14810 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14812 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14813 cat >> confdefs.h
<<\EOF
14814 #define HAVE_SENDFILE 1
14817 cat >> confdefs.h
<<\EOF
14818 #define FREEBSD_SENDFILE_API 1
14821 cat >> confdefs.h
<<\EOF
14822 #define WITH_SENDFILE 1
14826 echo "$ac_t""no" 1>&6;
14831 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
14832 echo "configure:14833: checking for hpux sendfile64 support" >&5
14833 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14834 echo $ac_n "(cached) $ac_c" 1>&6
14837 cat > conftest.
$ac_ext <<EOF
14838 #line 14839 "configure"
14839 #include "confdefs.h"
14841 #include <sys/socket.h>
14842 #include <sys/uio.h>
14847 struct iovec hdtrl[2];
14851 hdtrl[0].iov_base = 0;
14852 hdtrl[0].iov_len = 0;
14854 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
14858 if { (eval echo configure
:14859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14860 samba_cv_HAVE_SENDFILE64
=yes
14862 echo "configure: failed program was:" >&5
14863 cat conftest.
$ac_ext >&5
14865 samba_cv_HAVE_SENDFILE64
=no
14870 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14871 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
14872 cat >> confdefs.h
<<\EOF
14873 #define HAVE_SENDFILE64 1
14876 cat >> confdefs.h
<<\EOF
14877 #define HPUX_SENDFILE_API 1
14880 cat >> confdefs.h
<<\EOF
14881 #define WITH_SENDFILE 1
14885 echo "$ac_t""no" 1>&6;
14888 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
14889 echo "configure:14890: checking for hpux sendfile support" >&5
14890 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14894 cat > conftest.
$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14898 #include <sys/socket.h>
14899 #include <sys/uio.h>
14904 struct iovec hdtrl[2];
14908 hdtrl[0].iov_base = 0;
14909 hdtrl[0].iov_len = 0;
14911 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
14915 if { (eval echo configure
:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14917 samba_cv_HAVE_SENDFILE
=yes
14919 echo "configure: failed program was:" >&5
14920 cat conftest.
$ac_ext >&5
14922 samba_cv_HAVE_SENDFILE
=no
14927 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14928 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14929 cat >> confdefs.h
<<\EOF
14930 #define HAVE_SENDFILE 1
14933 cat >> confdefs.h
<<\EOF
14934 #define HPUX_SENDFILE_API 1
14937 cat >> confdefs.h
<<\EOF
14938 #define WITH_SENDFILE 1
14942 echo "$ac_t""no" 1>&6;
14947 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
14948 echo "configure:14949: checking for sendfilev in -lsendfile" >&5
14949 ac_lib_var
=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
14950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14951 echo $ac_n "(cached) $ac_c" 1>&6
14953 ac_save_LIBS
="$LIBS"
14954 LIBS
="-lsendfile $LIBS"
14955 cat > conftest.
$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14958 /* Override any gcc2 internal prototype to avoid an error. */
14959 /* We use char because int might match the return type of a gcc2
14960 builtin and then its argument prototype would still apply. */
14967 if { (eval echo configure
:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14969 eval "ac_cv_lib_$ac_lib_var=yes"
14971 echo "configure: failed program was:" >&5
14972 cat conftest.
$ac_ext >&5
14974 eval "ac_cv_lib_$ac_lib_var=no"
14977 LIBS
="$ac_save_LIBS"
14980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14981 echo "$ac_t""yes" 1>&6
14982 ac_tr_lib
=HAVE_LIB
`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14983 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14984 cat >> confdefs.h
<<EOF
14985 #define $ac_tr_lib 1
14988 LIBS
="-lsendfile $LIBS"
14991 echo "$ac_t""no" 1>&6
14994 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
14995 echo "configure:14996: checking for solaris sendfilev64 support" >&5
14996 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
14997 echo $ac_n "(cached) $ac_c" 1>&6
15000 cat > conftest.
$ac_ext <<EOF
15001 #line 15002 "configure"
15002 #include "confdefs.h"
15004 #include <sys/sendfile.h>
15009 struct sendfilevec vec[2];
15015 vec[0].sfv_fd = SFV_FD_SELF;
15016 vec[0].sfv_flag = 0;
15017 vec[0].sfv_off = 0;
15018 vec[0].sfv_len = 0;
15021 vec[1].sfv_flag = 0;
15022 vec[1].sfv_off = 0;
15023 vec[1].sfv_len = 0;
15024 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
15028 if { (eval echo configure
:15029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15030 samba_cv_HAVE_SENDFILEV64
=yes
15032 echo "configure: failed program was:" >&5
15033 cat conftest.
$ac_ext >&5
15035 samba_cv_HAVE_SENDFILEV64
=no
15040 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15042 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
15043 cat >> confdefs.h
<<\EOF
15044 #define HAVE_SENDFILEV64 1
15047 cat >> confdefs.h
<<\EOF
15048 #define SOLARIS_SENDFILE_API 1
15051 cat >> confdefs.h
<<\EOF
15052 #define WITH_SENDFILE 1
15056 echo "$ac_t""no" 1>&6;
15059 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15060 echo "configure:15061: checking for solaris sendfilev support" >&5
15061 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15062 echo $ac_n "(cached) $ac_c" 1>&6
15065 cat > conftest.
$ac_ext <<EOF
15066 #line 15067 "configure"
15067 #include "confdefs.h"
15069 #include <sys/sendfile.h>
15074 struct sendfilevec vec[2];
15080 vec[0].sfv_fd = SFV_FD_SELF;
15081 vec[0].sfv_flag = 0;
15082 vec[0].sfv_off = 0;
15083 vec[0].sfv_len = 0;
15086 vec[1].sfv_flag = 0;
15087 vec[1].sfv_off = 0;
15088 vec[1].sfv_len = 0;
15089 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15093 if { (eval echo configure
:15094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15095 samba_cv_HAVE_SENDFILEV
=yes
15097 echo "configure: failed program was:" >&5
15098 cat conftest.
$ac_ext >&5
15100 samba_cv_HAVE_SENDFILEV
=no
15105 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15107 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
15108 cat >> confdefs.h
<<\EOF
15109 #define HAVE_SENDFILEV 1
15112 cat >> confdefs.h
<<\EOF
15113 #define SOLARIS_SENDFILE_API 1
15116 cat >> confdefs.h
<<\EOF
15117 #define WITH_SENDFILE 1
15121 echo "$ac_t""no" 1>&6;
15130 echo "$ac_t""no" 1>&6
15134 echo "$ac_t""yes" 1>&6
15140 #################################################
15141 # Check whether winbind is supported on this platform. If so we need to
15142 # build and install client programs, sbin programs and shared libraries
15144 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15145 echo "configure:15146: checking whether to build winbind" >&5
15147 # Initially, the value of $host_os decides whether winbind is supported
15155 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15156 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
15160 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15164 winbind_no_reason
=", unsupported on $host_os"
15171 # Check the setting of --with-winbindd
15173 # Check whether --with-winbind or --without-winbind was given.
15174 if test "${with_winbind+set}" = set; then
15175 withval
="$with_winbind"
15189 # We need unix domain sockets for winbind
15191 if test x
"$HAVE_WINBIND" = x
"yes"; then
15192 if test x
"$samba_cv_unixsocket" = x
"no"; then
15193 winbind_no_reason
=", no unix domain socket support on $host_os"
15198 # Display test results
15200 if test x
"$HAVE_WINBIND" = x
"yes"; then
15201 echo "$ac_t""yes" 1>&6
15202 cat >> confdefs.h
<<\EOF
15203 #define WITH_WINBIND 1
15207 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15208 EXTRA_SBIN_PROGS
="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15209 if test x
"$BLDSHARED" = x
"true"; then
15210 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15211 if test x
"$with_pam" = x
"yes"; then
15212 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/pam_winbind.so"
15216 echo "$ac_t""no$winbind_no_reason" 1>&6
15219 # Solaris has some extra fields in struct passwd that need to be
15220 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15221 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15224 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15225 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15226 # [#include <pwd.h>])
15228 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15229 echo "configure:15230: checking whether struct passwd has pw_comment" >&5
15230 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15231 echo $ac_n "(cached) $ac_c" 1>&6
15234 cat > conftest.
$ac_ext <<EOF
15235 #line 15236 "configure"
15236 #include "confdefs.h"
15239 struct passwd p; p.pw_comment;
15242 if { (eval echo configure
:15243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15244 samba_cv_passwd_pw_comment
=yes
15246 echo "configure: failed program was:" >&5
15247 cat conftest.
$ac_ext >&5
15249 samba_cv_passwd_pw_comment
=no
15254 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15255 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
15256 cat >> confdefs.h
<<\EOF
15257 #define HAVE_PASSWD_PW_COMMENT 1
15262 #AC_CHECK_MEMBER(struct passwd.pw_age,
15263 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15264 # [#include <pwd.h>])
15266 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15267 echo "configure:15268: checking whether struct passwd has pw_age" >&5
15268 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15269 echo $ac_n "(cached) $ac_c" 1>&6
15272 cat > conftest.
$ac_ext <<EOF
15273 #line 15274 "configure"
15274 #include "confdefs.h"
15277 struct passwd p; p.pw_age;
15280 if { (eval echo configure
:15281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15282 samba_cv_passwd_pw_age
=yes
15284 echo "configure: failed program was:" >&5
15285 cat conftest.
$ac_ext >&5
15287 samba_cv_passwd_pw_age
=no
15292 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15293 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
15294 cat >> confdefs.h
<<\EOF
15295 #define HAVE_PASSWD_PW_AGE 1
15300 #################################################
15301 # Check to see if we should use the included popt
15303 # Check whether --with-included-popt or --without-included-popt was given.
15304 if test "${with_included_popt+set}" = set; then
15305 withval
="$with_included_popt"
15317 if test x
"$INCLUDED_POPT" != x
"yes"; then
15318 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15319 echo "configure:15320: checking for poptGetContext in -lpopt" >&5
15320 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15322 echo $ac_n "(cached) $ac_c" 1>&6
15324 ac_save_LIBS
="$LIBS"
15325 LIBS
="-lpopt $LIBS"
15326 cat > conftest.
$ac_ext <<EOF
15327 #line 15328 "configure"
15328 #include "confdefs.h"
15329 /* Override any gcc2 internal prototype to avoid an error. */
15330 /* We use char because int might match the return type of a gcc2
15331 builtin and then its argument prototype would still apply. */
15332 char poptGetContext();
15338 if { (eval echo configure
:15339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15340 eval "ac_cv_lib_$ac_lib_var=yes"
15342 echo "configure: failed program was:" >&5
15343 cat conftest.
$ac_ext >&5
15345 eval "ac_cv_lib_$ac_lib_var=no"
15348 LIBS
="$ac_save_LIBS"
15351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15352 echo "$ac_t""yes" 1>&6
15355 echo "$ac_t""no" 1>&6
15361 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15362 echo "configure:15363: checking whether to use included popt" >&5
15363 if test x
"$INCLUDED_POPT" = x
"yes"; then
15364 echo "$ac_t""yes" 1>&6
15365 BUILD_POPT
='$(POPT_OBJS)'
15366 FLAGS1
="-I$srcdir/popt"
15368 echo "$ac_t""no" 1>&6
15369 LIBS
="$LIBS -lpopt"
15374 #################################################
15375 # Check if the user wants Python
15377 # At the moment, you can use this to set which Python binary to link
15378 # against. (Libraries built for Python2.2 can't be used by 2.1,
15379 # though they can coexist in different directories.) In the future
15380 # this might make the Python stuff be built by default.
15382 # Defaulting python breaks the clean target if python isn't installed
15386 # Check whether --with-python or --without-python was given.
15387 if test "${with_python+set}" = set; then
15388 withval
="$with_python"
15389 case "${withval-python}" in
15392 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS python_ext"
15398 PYTHON
=${withval-python}
15405 #################################################
15406 # do extra things if we are running insure
15408 if test "${ac_cv_prog_CC}" = "insure"; then
15409 CPPFLAGS
="$CPPFLAGS -D__INSURE__"
15412 #################################################
15413 # final configure stuff
15415 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15416 echo "configure:15417: checking configure summary" >&5
15417 if test "$cross_compiling" = yes; then
15418 echo "configure: warning: cannot run when cross-compiling" 1>&2
15420 cat > conftest.
$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 #include "${srcdir-.}/tests/summary.c"
15425 if { (eval echo configure
:15426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
15427 echo "$ac_t""yes" 1>&6
15429 echo "configure: failed program was:" >&5
15430 cat conftest.
$ac_ext >&5
15432 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15442 cat > confcache
<<\EOF
15443 # This file is a shell script that caches the results of configure
15444 # tests run on this system so they can be shared between configure
15445 # scripts and configure runs. It is not useful on other systems.
15446 # If it contains results you don't want to keep, you may remove or edit it.
15448 # By default, configure uses ./config.cache as the cache file,
15449 # creating it if it does not exist already. You can give configure
15450 # the --cache-file=FILE option to use a different cache file; that is
15451 # what configure does when it calls configure scripts in
15452 # subdirectories, so they share the cache.
15453 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15454 # config.status only pays attention to the cache file if you give it the
15455 # --recheck option to rerun configure.
15458 # The following way of writing the cache mishandles newlines in values,
15459 # but we know of no workaround that is simple, portable, and efficient.
15460 # So, don't put newlines in cache variables' values.
15461 # Ultrix sh set writes to stderr and can't be redirected directly,
15462 # and sets the high bit in the cache file unless we assign to the vars.
15464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15466 # `set' does not quote correctly, so add quotes (double-quote substitution
15467 # turns \\\\ into \\, and sed turns \\ into \).
15469 -e "s/'/'\\\\''/g" \
15470 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15473 # `set' quotes correctly as required by POSIX, so do not add quotes.
15474 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15477 if cmp -s $cache_file confcache
; then
15480 if test -w $cache_file; then
15481 echo "updating cache $cache_file"
15482 cat confcache
> $cache_file
15484 echo "not updating unwritable cache $cache_file"
15489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15491 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15492 # Let make expand exec_prefix.
15493 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15495 # Any assignment to VPATH causes Sun make to only execute
15496 # the first set of double-colon rules, so remove it if not needed.
15497 # If there is a colon in the path, we need to keep it.
15498 if test "x$srcdir" = x.
; then
15499 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
15502 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15504 DEFS
=-DHAVE_CONFIG_H
15506 # Without the "./", some shells look in PATH for config.status.
15507 : ${CONFIG_STATUS=./config.status}
15509 echo creating
$CONFIG_STATUS
15510 rm -f $CONFIG_STATUS
15511 cat > $CONFIG_STATUS <<EOF
15513 # Generated automatically by configure.
15514 # Run this file to recreate the current configuration.
15515 # This directory was configured as follows,
15516 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15518 # $0 $ac_configure_args
15520 # Compiler output produced by configure, useful for debugging
15521 # configure, is in ./config.log if it exists.
15523 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15526 case "\$ac_option" in
15527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15528 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15529 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15530 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15531 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15533 -help | --help | --hel | --he | --h)
15534 echo "\$ac_cs_usage"; exit 0 ;;
15535 *) echo "\$ac_cs_usage"; exit 1 ;;
15539 ac_given_srcdir=$srcdir
15540 ac_given_INSTALL="$INSTALL"
15542 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15544 cat >> $CONFIG_STATUS <<EOF
15546 # Protect against being on the right side of a sed subst in config.status.
15547 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15548 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15552 s%@CFLAGS@%$CFLAGS%g
15553 s%@CPPFLAGS@%$CPPFLAGS%g
15554 s%@CXXFLAGS@%$CXXFLAGS%g
15555 s%@FFLAGS@%$FFLAGS%g
15557 s%@LDFLAGS@%$LDFLAGS%g
15559 s%@exec_prefix@%$exec_prefix%g
15560 s%@prefix@%$prefix%g
15561 s%@program_transform_name@%$program_transform_name%g
15562 s%@bindir@%$bindir%g
15563 s%@sbindir@%$sbindir%g
15564 s%@libexecdir@%$libexecdir%g
15565 s%@datadir@%$datadir%g
15566 s%@sysconfdir@%$sysconfdir%g
15567 s%@sharedstatedir@%$sharedstatedir%g
15568 s%@localstatedir@%$localstatedir%g
15569 s%@libdir@%$libdir%g
15570 s%@includedir@%$includedir%g
15571 s%@oldincludedir@%$oldincludedir%g
15572 s%@infodir@%$infodir%g
15573 s%@mandir@%$mandir%g
15574 s%@configdir@%$configdir%g
15575 s%@lockdir@%$lockdir%g
15576 s%@piddir@%$piddir%g
15577 s%@logfilebase@%$logfilebase%g
15578 s%@privatedir@%$privatedir%g
15579 s%@swatdir@%$swatdir%g
15580 s%@LDSHFLAGS@%$LDSHFLAGS%g
15581 s%@SONAMEFLAG@%$SONAMEFLAG%g
15583 s%@HOST_OS@%$HOST_OS%g
15584 s%@PICFLAG@%$PICFLAG%g
15585 s%@PICSUFFIX@%$PICSUFFIX%g
15586 s%@POBAD_CC@%$POBAD_CC%g
15587 s%@SHLIBEXT@%$SHLIBEXT%g
15588 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
15589 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
15590 s%@PRINTLIBS@%$PRINTLIBS%g
15591 s%@AUTHLIBS@%$AUTHLIBS%g
15592 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
15593 s%@SMBWRAPPER@%$SMBWRAPPER%g
15594 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
15595 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
15596 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
15598 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15599 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15600 s%@INSTALL_DATA@%$INSTALL_DATA%g
15602 s%@EXEEXT@%$EXEEXT%g
15603 s%@BROKEN_CC@%$BROKEN_CC%g
15605 s%@host_alias@%$host_alias%g
15606 s%@host_cpu@%$host_cpu%g
15607 s%@host_vendor@%$host_vendor%g
15608 s%@host_os@%$host_os%g
15609 s%@target@%$target%g
15610 s%@target_alias@%$target_alias%g
15611 s%@target_cpu@%$target_cpu%g
15612 s%@target_vendor@%$target_vendor%g
15613 s%@target_os@%$target_os%g
15615 s%@build_alias@%$build_alias%g
15616 s%@build_cpu@%$build_cpu%g
15617 s%@build_vendor@%$build_vendor%g
15618 s%@build_os@%$build_os%g
15620 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
15621 s%@LIBOBJS@%$LIBOBJS%g
15622 s%@TERMLIBS@%$TERMLIBS%g
15623 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
15625 s%@DYNEXP@%$DYNEXP%g
15626 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
15627 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
15628 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
15629 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
15630 s%@XML2_CONFIG@%$XML2_CONFIG%g
15631 s%@XML_CFLAGS@%$XML_CFLAGS%g
15632 s%@XML_LIBS@%$XML_LIBS%g
15633 s%@MODULE_XML@%$MODULE_XML%g
15634 s%@QUOTAOBJS@%$QUOTAOBJS%g
15635 s%@manlangs@%$manlangs%g
15636 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
15637 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
15638 s%@BUILD_POPT@%$BUILD_POPT%g
15639 s%@FLAGS1@%$FLAGS1%g
15640 s%@PYTHON@%$PYTHON%g
15641 s%@builddir@%$builddir%g
15646 cat >> $CONFIG_STATUS <<\EOF
15648 # Split the substitutions into bite-sized pieces for seds with
15649 # small command number limits, like on Digital OSF/1 and HP-UX.
15650 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
15651 ac_file
=1 # Number of current file.
15652 ac_beg
=1 # First line for current file.
15653 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
15656 while $ac_more_lines; do
15657 if test $ac_beg -gt 1; then
15658 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
15660 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
15662 if test ! -s conftest.s
$ac_file; then
15663 ac_more_lines
=false
15664 rm -f conftest.s
$ac_file
15666 if test -z "$ac_sed_cmds"; then
15667 ac_sed_cmds
="sed -f conftest.s$ac_file"
15669 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
15671 ac_file
=`expr $ac_file + 1`
15673 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
15676 if test -z "$ac_sed_cmds"; then
15681 cat >> $CONFIG_STATUS <<EOF
15683 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
15685 cat >> $CONFIG_STATUS <<\EOF
15686 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
15687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15689 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
15690 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15691 *) ac_file_in
="${ac_file}.in" ;;
15694 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15696 # Remove last slash and all that follows it. Not all systems have dirname.
15697 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
15699 # The file is in a subdirectory.
15700 test ! -d "$ac_dir" && mkdir
"$ac_dir"
15701 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
15702 # A "../" for each directory in $ac_dir_suffix.
15703 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15705 ac_dir_suffix
= ac_dots
=
15708 case "$ac_given_srcdir" in
15710 if test -z "$ac_dots"; then top_srcdir
=.
15711 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15712 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
15713 *) # Relative path.
15714 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15715 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15718 case "$ac_given_INSTALL" in
15719 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
15720 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
15723 echo creating
"$ac_file"
15725 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15727 *Makefile
*) ac_comsub
="1i\\
15728 # $configure_input" ;;
15732 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15734 s%@configure_input@%$configure_input%g
15735 s%@srcdir@%$srcdir%g
15736 s%@top_srcdir@%$top_srcdir%g
15737 s%@INSTALL@%$INSTALL%g
15738 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
15742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15745 # ac_d sets the value in "#define NAME VALUE" lines.
15746 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15747 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
15750 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15751 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15752 ac_uB
='\([ ]\)%\1#\2define\3'
15755 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15756 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15757 ac_eB
='$%\1#\2define\3'
15761 if test "${CONFIG_HEADERS+set}" != set; then
15763 cat >> $CONFIG_STATUS <<EOF
15764 CONFIG_HEADERS="include/config.h"
15766 cat >> $CONFIG_STATUS <<\EOF
15768 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
15769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15771 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
15772 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15773 *) ac_file_in
="${ac_file}.in" ;;
15776 echo creating
$ac_file
15778 rm -f conftest.frag conftest.
in conftest.out
15779 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15780 cat $ac_file_inputs > conftest.
in
15784 # Transform confdefs.h into a sed script conftest.vals that substitutes
15785 # the proper values into config.h.in to produce config.h. And first:
15786 # Protect against being on the right side of a sed subst in config.status.
15787 # Protect against being in an unquoted here document in config.status.
15788 rm -f conftest.vals
15789 cat > conftest.hdr
<<\EOF
15792 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15796 sed -n -f conftest.hdr confdefs.h > conftest.vals
15799 # This sed command replaces #undef with comments. This is necessary, for
15800 # example, in the case of _POSIX_SOURCE, which is predefined and required
15801 # on some systems where configure will not decide to define it.
15802 cat >> conftest.vals <<\EOF
15803 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15806 # Break up conftest.vals because some shells have a limit on
15807 # the size of here documents, and old seds have small limits too.
15809 rm -f conftest.tail
15812 ac_lines=`grep -c . conftest.vals
`
15813 # grep -c gives empty output for an empty file on some AIX systems.
15814 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15815 # Write a limited-size here document to conftest.frag.
15816 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15817 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15819 sed -f conftest.frag conftest.in > conftest.out
15821 mv conftest.out conftest.in
15822 ' >> $CONFIG_STATUS
15823 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15824 rm -f conftest.vals
15825 mv conftest.tail conftest.vals
15827 rm -f conftest.vals
15829 cat >> $CONFIG_STATUS <<\EOF
15830 rm -f conftest.frag conftest.h
15831 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15832 cat conftest.in >> conftest.h
15834 if cmp -s $ac_file conftest.h 2>/dev/null; then
15835 echo "$ac_file is unchanged"
15838 # Remove last slash and all that follows it. Not all systems have dirname.
15839 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
15840 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15841 # The file is in a subdirectory.
15842 test ! -d "$ac_dir" && mkdir "$ac_dir"
15845 mv conftest.h $ac_file
15850 cat >> $CONFIG_STATUS <<EOF
15853 cat >> $CONFIG_STATUS <<\EOF
15857 chmod +x $CONFIG_STATUS
15858 rm -fr confdefs* $ac_clean_files
15859 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15862 #################################################
15863 # Print very concise instructions on building/use
15864 if test "x$enable_dmalloc" = xyes
15866 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
15867 echo "$ac_t"" \$ eval \`dmalloc samba\
`." 1>&6