3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-developer turn on developer warnings and debugging [default=no]"
36 --enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
38 --enable-dmalloc enable heap debugging [default=no]"
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-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
52 --with-automount Include AUTOMOUNT support (default=no)"
54 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
56 --with-pam Include PAM support (default=no)"
58 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
60 --with-tdbsam Include experimental TDB SAM support (default=no)"
62 --with-nisplussam Include NISPLUS SAM support (default=no)"
64 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
66 --with-syslog Include experimental SYSLOG support (default=no)"
68 --with-profiling-data Include gathering source code profile information (default=no)"
70 --with-quotas Include experimental disk-quota support (default=no)"
72 --with-utmp Include experimental utmp accounting (default=no)"
74 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
76 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
78 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
80 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
82 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
84 --with-acl-support Include ACL support (default=no)"
86 --with-winbind Build winbind (default, if supported by OS)"
88 --with-included-popt use bundled popt library, not from system"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
94 cache_file
=.
/config.cache
103 program_transform_name
=s
,x
,x
,
111 bindir
='${exec_prefix}/bin'
112 sbindir
='${exec_prefix}/sbin'
113 libexecdir
='${exec_prefix}/libexec'
114 datadir
='${prefix}/share'
115 sysconfdir
='${prefix}/etc'
116 sharedstatedir
='${prefix}/com'
117 localstatedir
='${prefix}/var'
118 libdir
='${exec_prefix}/lib'
119 includedir
='${prefix}/include'
120 oldincludedir
='/usr/include'
121 infodir
='${prefix}/info'
122 mandir
='${prefix}/man'
124 # Initialize some other variables.
127 SHELL
=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
143 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
147 # Accept the important Cygnus configure options, so we can diagnose typos.
151 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
153 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
154 bindir
="$ac_optarg" ;;
156 -build |
--build |
--buil |
--bui |
--bu)
158 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
159 build
="$ac_optarg" ;;
161 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
162 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
163 ac_prev
=cache_file
;;
164 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
165 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
166 cache_file
="$ac_optarg" ;;
168 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
170 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
172 datadir
="$ac_optarg" ;;
174 -disable-* |
--disable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* |
--enable-*)
184 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
197 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
198 |
--exec |
--exe |
--ex)
199 ac_prev
=exec_prefix
;;
200 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
201 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
202 |
--exec=* |
--exe=* |
--ex=*)
203 exec_prefix
="$ac_optarg" ;;
205 -gas |
--gas |
--ga |
--g)
206 # Obsolete; use --with-gas.
209 -help |
--help |
--hel |
--he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
264 -host |
--host |
--hos |
--ho)
266 -host=* |
--host=* |
--hos=* |
--ho=*)
269 -includedir |
--includedir |
--includedi |
--included |
--include \
270 |
--includ |
--inclu |
--incl |
--inc)
271 ac_prev
=includedir
;;
272 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
273 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
274 includedir
="$ac_optarg" ;;
276 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
278 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
279 infodir
="$ac_optarg" ;;
281 -libdir |
--libdir |
--libdi |
--libd)
283 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
284 libdir
="$ac_optarg" ;;
286 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
287 |
--libexe |
--libex |
--libe)
288 ac_prev
=libexecdir
;;
289 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
290 |
--libexe=* |
--libex=* |
--libe=*)
291 libexecdir
="$ac_optarg" ;;
293 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
294 |
--localstate |
--localstat |
--localsta |
--localst \
295 |
--locals |
--local |
--loca |
--loc |
--lo)
296 ac_prev
=localstatedir
;;
297 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
298 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
299 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
300 localstatedir
="$ac_optarg" ;;
302 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
304 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
305 mandir
="$ac_optarg" ;;
308 # Obsolete; use --without-fp.
311 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
315 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
316 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
319 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
320 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
321 |
--oldin |
--oldi |
--old |
--ol |
--o)
322 ac_prev
=oldincludedir
;;
323 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
324 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
325 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
326 oldincludedir
="$ac_optarg" ;;
328 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
330 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
331 prefix
="$ac_optarg" ;;
333 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
334 |
--program-pre |
--program-pr |
--program-p)
335 ac_prev
=program_prefix
;;
336 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
337 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
338 program_prefix
="$ac_optarg" ;;
340 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
341 |
--program-suf |
--program-su |
--program-s)
342 ac_prev
=program_suffix
;;
343 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
344 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
345 program_suffix
="$ac_optarg" ;;
347 -program-transform-name |
--program-transform-name \
348 |
--program-transform-nam |
--program-transform-na \
349 |
--program-transform-n |
--program-transform- \
350 |
--program-transform |
--program-transfor \
351 |
--program-transfo |
--program-transf \
352 |
--program-trans |
--program-tran \
353 |
--progr-tra |
--program-tr |
--program-t)
354 ac_prev
=program_transform_name
;;
355 -program-transform-name=* |
--program-transform-name=* \
356 |
--program-transform-nam=* |
--program-transform-na=* \
357 |
--program-transform-n=* |
--program-transform-=* \
358 |
--program-transform=* |
--program-transfor=* \
359 |
--program-transfo=* |
--program-transf=* \
360 |
--program-trans=* |
--program-tran=* \
361 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
362 program_transform_name
="$ac_optarg" ;;
364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
365 |
-silent |
--silent |
--silen |
--sile |
--sil)
368 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
370 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
372 sbindir
="$ac_optarg" ;;
374 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
375 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
376 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
378 ac_prev
=sharedstatedir
;;
379 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
380 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
381 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
383 sharedstatedir
="$ac_optarg" ;;
385 -site |
--site |
--sit)
387 -site=* |
--site=* |
--sit=*)
390 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
392 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
393 srcdir
="$ac_optarg" ;;
395 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
396 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
397 ac_prev
=sysconfdir
;;
398 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
399 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
400 sysconfdir
="$ac_optarg" ;;
402 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
404 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
405 target
="$ac_optarg" ;;
407 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
410 -version |
--version |
--versio |
--versi |
--vers)
411 echo "configure generated by autoconf version 2.13"
415 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package
=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* |
--without-*)
428 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package
=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
441 |
--x-incl |
--x-inc |
--x-in |
--x-i)
442 ac_prev
=x_includes
;;
443 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
444 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
445 x_includes
="$ac_optarg" ;;
447 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
448 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
449 ac_prev
=x_libraries
;;
450 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
451 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
452 x_libraries
="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE
; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
502 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
503 |
--no-cr |
--no-c) ;;
504 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
505 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
506 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest
* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file
=include
/includes.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted
=yes
534 # Try the directory containing this script, then its parent.
536 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
539 if test ! -r $srcdir/$ac_unique_file; then
543 ac_srcdir_defaulted
=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE
; then
557 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
559 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file
in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
573 echo "creating cache $cache_file"
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp
='$CPP $CPPFLAGS'
580 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling
=$ac_cv_prog_cc_cross
586 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
595 ac_n
= ac_c
='\c' ac_t
=
601 #################################################
602 # Directory handling stuff to support both the
603 # legacy SAMBA directories and FHS compliant
607 # Check whether --with-fhs or --without-fhs was given.
608 if test "${with_fhs+set}" = set; then
610 codepagedir
="\$(DATADIR)/samba/codepages"
611 configdir
="${sysconfdir}/samba"
612 lockdir
="\${VARDIR}/cache/samba"
613 piddir
="\$(VARDIR)/run/samba"
614 logfilebase
="\${VARDIR}/log/samba"
615 privatedir
="\${CONFIGDIR}/private"
616 swatdir
="\${DATADIR}/samba/swat"
618 codepagedir
="\$(LIBDIR)/codepages"
619 configdir
="\$(LIBDIR)"
620 logfilebase
="\$(VARDIR)"
621 lockdir
="\${VARDIR}/locks"
622 piddir
="\$(VARDIR)/locks"
623 privatedir
="\${prefix}/private"
624 swatdir
="\${prefix}/swat"
628 #################################################
629 # set private directory location
630 # Check whether --with-privatedir or --without-privatedir was given.
631 if test "${with_privatedir+set}" = set; then
632 withval
="$with_privatedir"
636 # Just in case anybody calls it without argument
638 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
641 privatedir
="$withval"
647 #################################################
648 # set lock directory location
649 # Check whether --with-lockdir or --without-lockdir was given.
650 if test "${with_lockdir+set}" = set; then
651 withval
="$with_lockdir"
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
666 #################################################
667 # set pid directory location
668 # Check whether --with-piddir or --without-piddir was given.
669 if test "${with_piddir+set}" = set; then
670 withval
="$with_piddir"
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
685 #################################################
686 # set SWAT directory location
687 # Check whether --with-swatdir or --without-swatdir was given.
688 if test "${with_swatdir+set}" = set; then
689 withval
="$with_swatdir"
693 # Just in case anybody does it
695 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
704 #################################################
705 # set configuration directory location
706 # Check whether --with-configdir or --without-configdir was given.
707 if test "${with_configdir+set}" = set; then
708 withval
="$with_configdir"
712 # Just in case anybody does it
714 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
723 #################################################
724 # set codepage directory location
725 # Check whether --with-codepagedir or --without-codepagedir was given.
726 if test "${with_codepagedir+set}" = set; then
727 withval
="$with_codepagedir"
731 # Just in case anybody does it
733 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
736 codepagedir
="$withval"
742 #################################################
743 # set log directory location
744 # Check whether --with-logfilebase or --without-logfilebase was given.
745 if test "${with_logfilebase+set}" = set; then
746 withval
="$with_logfilebase"
750 # Just in case anybody does it
752 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
755 logfilebase
="$withval"
786 # compile with optimisation and without debugging by default
787 CFLAGS
="-O ${CFLAGS}"
789 # Check whether --enable-debug or --disable-debug was given.
790 if test "${enable_debug+set}" = set; then
791 enableval
="$enable_debug"
792 if eval "test x$enable_debug = xyes"; then
793 CFLAGS
="${CFLAGS} -g"
798 # Check whether --enable-developer or --disable-developer was given.
799 if test "${enable_developer+set}" = set; then
800 enableval
="$enable_developer"
801 if eval "test x$enable_developer = xyes"; then
802 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
807 # Check whether --enable-krb5developer or --disable-krb5developer was given.
808 if test "${enable_krb5developer+set}" = set; then
809 enableval
="$enable_krb5developer"
810 if eval "test x$enable_krb5developer = xyes"; then
811 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
816 # Check whether --enable-dmalloc or --disable-dmalloc was given.
817 if test "${enable_dmalloc+set}" = set; then
818 enableval
="$enable_dmalloc"
823 if test "x$enable_dmalloc" = xyes
825 cat >> confdefs.h
<<\EOF
826 #define ENABLE_DMALLOC 1
829 cat >> confdefs.h
<<\EOF
830 #define DMALLOC_FUNC_CHECK 1
833 LIBS
="$LIBS -ldmalloc"
836 # Extract the first word of "gcc", so it can be a program name with args.
837 set dummy gcc
; ac_word
=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC
="$CC" # Let the user override the test.
846 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
848 for ac_dir
in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir
=.
850 if test -f $ac_dir/$ac_word; then
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
866 # Extract the first word of "cc", so it can be a program name with args.
867 set dummy cc
; ac_word
=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC
="$CC" # Let the user override the test.
876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
879 for ac_dir
in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir
=.
881 if test -f $ac_dir/$ac_word; then
882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
891 if test $ac_prog_rejected = yes; then
892 # We found a bogon in the path, so make sure we never use it.
893 set dummy
$ac_cv_prog_CC
895 if test $# -gt 0; then
896 # We chose a different compiler from the bogus one.
897 # However, it has the same basename, so the bogon will be chosen
898 # first if we set CC to just the basename; use the full file name.
900 set dummy
"$ac_dir/$ac_word" "$@"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
914 if test -z "$CC"; then
917 # Extract the first word of "cl", so it can be a program name with args.
918 set dummy cl
; ac_word
=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 if test -n "$CC"; then
925 ac_cv_prog_CC
="$CC" # Let the user override the test.
927 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
929 for ac_dir
in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir
=.
931 if test -f $ac_dir/$ac_word; then
940 if test -n "$CC"; then
941 echo "$ac_t""$CC" 1>&6
943 echo "$ac_t""no" 1>&6
948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp
='$CPP $CPPFLAGS'
957 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling
=$ac_cv_prog_cc_cross
961 cat > conftest.
$ac_ext << EOF
963 #line 964 "configure"
964 #include "confdefs.h"
968 if { (eval echo configure
:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
969 ac_cv_prog_cc_works
=yes
970 # If we can't run a trivial program, we are probably using a cross compiler.
971 if (.
/conftest
; exit) 2>/dev
/null
; then
972 ac_cv_prog_cc_cross
=no
974 ac_cv_prog_cc_cross
=yes
977 echo "configure: failed program was:" >&5
978 cat conftest.
$ac_ext >&5
979 ac_cv_prog_cc_works
=no
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp
='$CPP $CPPFLAGS'
985 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling
=$ac_cv_prog_cc_cross
989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990 if test $ac_cv_prog_cc_works = no
; then
991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996 cross_compiling
=$ac_cv_prog_cc_cross
998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999 echo "configure:1000: checking whether we are using GNU C" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 cat > conftest.c
<<EOF
1008 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1017 if test $ac_cv_prog_gcc = yes; then
1023 ac_test_CFLAGS
="${CFLAGS+set}"
1024 ac_save_CFLAGS
="$CFLAGS"
1026 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1041 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042 if test "$ac_test_CFLAGS" = set; then
1043 CFLAGS
="$ac_save_CFLAGS"
1044 elif test $ac_cv_prog_cc_g = yes; then
1045 if test "$GCC" = yes; then
1051 if test "$GCC" = yes; then
1059 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1060 if test -f $ac_dir/install-sh
; then
1062 ac_install_sh
="$ac_aux_dir/install-sh -c"
1064 elif test -f $ac_dir/install.sh
; then
1066 ac_install_sh
="$ac_aux_dir/install.sh -c"
1070 if test -z "$ac_aux_dir"; then
1071 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1073 ac_config_guess
=$ac_aux_dir/config.guess
1074 ac_config_sub
=$ac_aux_dir/config.sub
1075 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1077 # Find a good install program. We prefer a C program (faster),
1078 # so one script is as good as another. But avoid the broken or
1079 # incompatible versions:
1080 # SysV /etc/install, /usr/sbin/install
1081 # SunOS /usr/etc/install
1082 # IRIX /sbin/install
1084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1087 # ./install, which can be erroneously created by make from ./install.sh.
1088 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1089 echo "configure:1090: checking for a BSD compatible install" >&5
1090 if test -z "$INSTALL"; then
1091 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1095 for ac_dir
in $PATH; do
1096 # Account for people who put trailing slashes in PATH elements.
1098 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1100 # OSF1 and SCO ODT 3.0 have their own names for install.
1101 # Don't use installbsd from OSF since it installs stuff as root
1103 for ac_prog
in ginstall scoinst
install; do
1104 if test -f $ac_dir/$ac_prog; then
1105 if test $ac_prog = install &&
1106 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1107 # AIX install. It has an incompatible calling convention.
1110 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1121 if test "${ac_cv_path_install+set}" = set; then
1122 INSTALL
="$ac_cv_path_install"
1124 # As a last resort, use the slow shell script. We don't cache a
1125 # path for INSTALL within a source directory, because that will
1126 # break other packages using the cache if that directory is
1127 # removed, or if the path is relative.
1128 INSTALL
="$ac_install_sh"
1131 echo "$ac_t""$INSTALL" 1>&6
1133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1134 # It thinks the first close brace ends the variable substitution.
1135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1139 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1141 for ac_prog
in gawk mawk nawk
awk
1143 # Extract the first word of "$ac_prog", so it can be a program name with args.
1144 set dummy
$ac_prog; ac_word
=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$AWK"; then
1151 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1155 for ac_dir
in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir
=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_AWK
="$ac_prog"
1165 AWK
="$ac_cv_prog_AWK"
1166 if test -n "$AWK"; then
1167 echo "$ac_t""$AWK" 1>&6
1169 echo "$ac_t""no" 1>&6
1172 test -n "$AWK" && break
1176 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1177 echo "configure:1178: checking for POSIXized ISC" >&5
1178 if test -d /etc
/conf
/kconfig.d
&&
1179 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1181 echo "$ac_t""yes" 1>&6
1182 ISC
=yes # If later tests want to check for ISC.
1183 cat >> confdefs.h
<<\EOF
1184 #define _POSIX_SOURCE 1
1187 if test "$GCC" = yes; then
1193 echo "$ac_t""no" 1>&6
1198 if test "x$CC" != xcc
; then
1199 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether $CC and cc understand -c and -o together" >&5
1202 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether cc understands -c and -o together" >&5
1205 set dummy
$CC; ac_cc
="`echo $2 |
1206 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1207 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 echo 'foo(){}' > conftest.c
1211 # Make sure it works both with $CC and with simple cc.
1212 # We do the test twice because some compilers refuse to overwrite an
1213 # existing .o file with -o, though they will create one.
1214 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1215 if { (eval echo configure
:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1216 test -f conftest.o
&& { (eval echo configure
:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1218 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1219 if test "x$CC" != xcc
; then
1220 # Test first that cc exists at all.
1221 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1222 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1223 if { (eval echo configure
:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1224 test -f conftest.o
&& { (eval echo configure
:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1229 # cc exists but doesn't like -o.
1230 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1235 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1240 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1241 echo "$ac_t""yes" 1>&6
1243 echo "$ac_t""no" 1>&6
1244 cat >> confdefs.h
<<\EOF
1245 #define NO_MINUS_C_MINUS_O 1
1250 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1257 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1258 echo "configure:1259: checking that the C compiler understands volatile" >&5
1259 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1263 cat > conftest.
$ac_ext <<EOF
1264 #line 1265 "configure"
1265 #include "confdefs.h"
1266 #include <sys/types.h>
1271 if { (eval echo configure
:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1273 samba_cv_volatile
=yes
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1278 samba_cv_volatile
=no
1283 echo "$ac_t""$samba_cv_volatile" 1>&6
1284 if test x
"$samba_cv_volatile" = x
"yes"; then
1285 cat >> confdefs.h
<<\EOF
1286 #define HAVE_VOLATILE 1
1293 # Do some error checking and defaulting for the host and target type.
1295 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1298 # 1. You are not allowed to specify --host, --target, and nonopt at the
1300 # 2. Host defaults to nonopt.
1301 # 3. If nonopt is not specified, then host defaults to the current host,
1302 # as determined by config.guess.
1303 # 4. Target and build default to nonopt.
1304 # 5. If nonopt is not specified, then target and build default to host.
1306 # The aliases save the names the user supplied, while $host etc.
1307 # will get canonicalized.
1308 case $host---$target---$nonopt in
1309 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1310 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1314 # Make sure we can run config.sub.
1315 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1316 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1319 echo $ac_n "checking host system type""... $ac_c" 1>&6
1320 echo "configure:1321: checking host system type" >&5
1323 case "$host_alias" in
1327 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1328 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1330 *) host_alias
=$nonopt ;;
1334 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1335 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$ac_t""$host" 1>&6
1340 echo $ac_n "checking target system type""... $ac_c" 1>&6
1341 echo "configure:1342: checking target system type" >&5
1343 target_alias
=$target
1344 case "$target_alias" in
1347 NONE
) target_alias
=$host_alias ;;
1348 *) target_alias
=$nonopt ;;
1352 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1353 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$ac_t""$target" 1>&6
1358 echo $ac_n "checking build system type""... $ac_c" 1>&6
1359 echo "configure:1360: checking build system type" >&5
1362 case "$build_alias" in
1365 NONE
) build_alias
=$host_alias ;;
1366 *) build_alias
=$nonopt ;;
1370 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1371 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374 echo "$ac_t""$build" 1>&6
1376 test "$host_alias" != "$target_alias" &&
1377 test "$program_prefix$program_suffix$program_transform_name" = \
1379 program_prefix
=${target_alias}-
1383 *irix6
*) cat >> confdefs.h
<<\EOF
1384 #include <standards.h>
1392 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1393 echo "configure:1394: checking config.cache system type" >&5
1394 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1395 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1396 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1397 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1398 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1399 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1400 echo "$ac_t""different" 1>&6
1401 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1403 echo "$ac_t""same" 1>&6
1405 ac_cv_host_system_type
="$host"
1406 ac_cv_build_system_type
="$build"
1407 ac_cv_target_system_type
="$target"
1413 # Config CPPFLAG settings for strange OS's that must be set
1414 # before other tests.
1417 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1420 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether ${CC-cc} accepts -Ae" >&5
1422 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 echo 'void f(){}' > conftest.c
1426 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1427 ac_cv_prog_cc_Ae
=yes
1435 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1436 # mmap on HPUX is completely broken...
1437 cat >> confdefs.h
<<\EOF
1438 #define MMAP_BLACKLIST 1
1441 if test $ac_cv_prog_cc_Ae = yes; then
1442 CPPFLAGS
="$CPPFLAGS -Ae"
1445 # Defines needed for HPUX support.
1446 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1447 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1451 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1452 cat >> confdefs.h
<<\EOF
1453 #define USE_BOTH_CRYPT_CALLS 1
1456 cat >> confdefs.h
<<\EOF
1457 #define _HPUX_SOURCE 1
1460 cat >> confdefs.h
<<\EOF
1461 #define _POSIX_SOURCE 1
1464 cat >> confdefs.h
<<\EOF
1465 #define _ALIGNMENT_REQUIRED 1
1468 cat >> confdefs.h
<<\EOF
1469 #define _MAX_ALIGNMENT 4
1474 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1475 cat >> confdefs.h
<<\EOF
1476 #define USE_BOTH_CRYPT_CALLS 1
1479 cat >> confdefs.h
<<\EOF
1480 #define _HPUX_SOURCE 1
1483 cat >> confdefs.h
<<\EOF
1484 #define _POSIX_SOURCE 1
1487 cat >> confdefs.h
<<\EOF
1488 #define _LARGEFILE64_SOURCE 1
1491 cat >> confdefs.h
<<\EOF
1492 #define _ALIGNMENT_REQUIRED 1
1495 cat >> confdefs.h
<<\EOF
1496 #define _MAX_ALIGNMENT 4
1505 # CRAY Unicos has broken const handling
1507 echo "$ac_t""disabling const" 1>&6
1508 CPPFLAGS
="$CPPFLAGS -Dconst="
1512 # AIX4.x doesn't even admit to having large
1513 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1516 echo "$ac_t""enabling large file support" 1>&6
1517 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1518 cat >> confdefs.h
<<\EOF
1519 #define _LARGE_FILES 1
1524 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1525 # to the existance of large files..
1526 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1527 # recommendations on large file support, however it makes the
1528 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1529 # recommendation makes the compile fail on gcc2.7. JRA.
1533 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1534 echo "$ac_t""no large file support" 1>&6
1537 echo "$ac_t""enabling large file support" 1>&6
1538 if test "$ac_cv_prog_gcc" = yes; then
1539 ${CC-cc} -v >conftest.c
2>&1
1540 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1542 case "$ac_cv_gcc_compiler_version_number" in
1543 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1544 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1545 cat >> confdefs.h
<<\EOF
1546 #define _LARGEFILE64_SOURCE 1
1551 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1552 cat >> confdefs.h
<<\EOF
1553 #define _LARGEFILE64_SOURCE 1
1556 cat >> confdefs.h
<<\EOF
1557 #define _FILE_OFFSET_BITS 64
1563 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1564 cat >> confdefs.h
<<\EOF
1565 #define _LARGEFILE64_SOURCE 1
1568 cat >> confdefs.h
<<\EOF
1569 #define _FILE_OFFSET_BITS 64
1577 # Tests needed for SINIX large file support.
1580 if test $host = mips-sni-sysv4
; then
1581 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1582 echo "configure:1583: checking for LFS support" >&5
1583 old_CPPFLAGS
="$CPPFLAGS"
1584 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1585 if test "$cross_compiling" = yes; then
1586 SINIX_LFS_SUPPORT
=cross
1588 cat > conftest.
$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1594 #if _LFS64_LARGEFILE == 1
1601 if { (eval echo configure
:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1603 SINIX_LFS_SUPPORT
=yes
1605 echo "configure: failed program was:" >&5
1606 cat conftest.
$ac_ext >&5
1608 SINIX_LFS_SUPPORT
=no
1613 CPPFLAGS
="$old_CPPFLAGS"
1614 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1615 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1616 cat >> confdefs.h
<<\EOF
1617 #define _LARGEFILE64_SOURCE 1
1620 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1621 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1622 LIBS
="`getconf LFS64_LIBS` $LIBS"
1624 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1628 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1631 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1632 echo "configure:1633: checking for LFS support" >&5
1633 old_CPPFLAGS
="$CPPFLAGS"
1634 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1635 if test "$cross_compiling" = yes; then
1636 LINUX_LFS_SUPPORT
=cross
1638 cat > conftest.
$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1643 #include <sys/utsname.h>
1645 #if _LFS64_LARGEFILE == 1
1650 /* Ensure this is glibc 2.2 or higher */
1651 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1652 int libc_major = __GLIBC__;
1653 int libc_minor = __GLIBC_MINOR__;
1661 /* Ensure this is kernel 2.4 or higher */
1664 release = uts.release;
1665 major = atoi(strsep(&release, "."));
1666 minor = atoi(strsep(&release, "."));
1668 if (major > 2 || (major == 2 && minor > 3))
1677 if { (eval echo configure
:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1679 LINUX_LFS_SUPPORT
=yes
1681 echo "configure: failed program was:" >&5
1682 cat conftest.
$ac_ext >&5
1684 LINUX_LFS_SUPPORT
=no
1689 CPPFLAGS
="$old_CPPFLAGS"
1690 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1691 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1692 cat >> confdefs.h
<<\EOF
1693 #define _LARGEFILE64_SOURCE 1
1696 cat >> confdefs.h
<<\EOF
1697 #define _FILE_OFFSET_BITS 64
1700 cat >> confdefs.h
<<\EOF
1701 #define _GNU_SOURCE 1
1705 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1709 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1710 echo "configure:1711: checking for LFS support" >&5
1711 old_CPPFLAGS
="$CPPFLAGS"
1712 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1713 if test "$cross_compiling" = yes; then
1714 GLIBC_LFS_SUPPORT
=cross
1716 cat > conftest.
$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1722 #if _LFS64_LARGEFILE == 1
1729 if { (eval echo configure
:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1731 GLIBC_LFS_SUPPORT
=yes
1733 echo "configure: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1736 GLIBC_LFS_SUPPORT
=no
1741 CPPFLAGS
="$old_CPPFLAGS"
1742 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1743 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1744 cat >> confdefs.h
<<\EOF
1745 #define _LARGEFILE64_SOURCE 1
1748 cat >> confdefs.h
<<\EOF
1749 #define _GNU_SOURCE 1
1753 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1758 echo $ac_n "checking for inline""... $ac_c" 1>&6
1759 echo "configure:1760: checking for inline" >&5
1760 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1764 for ac_kw
in inline __inline__ __inline
; do
1765 cat > conftest.
$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1773 if { (eval echo configure
:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1775 ac_cv_c_inline
=$ac_kw; break
1777 echo "configure: failed program was:" >&5
1778 cat conftest.
$ac_ext >&5
1785 echo "$ac_t""$ac_cv_c_inline" 1>&6
1786 case "$ac_cv_c_inline" in
1788 no
) cat >> confdefs.h
<<\EOF
1792 *) cat >> confdefs.h
<<EOF
1793 #define inline $ac_cv_c_inline
1798 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1799 echo "configure:1800: checking how to run the C preprocessor" >&5
1800 # On Suns, sometimes $CPP names a directory.
1801 if test -n "$CPP" && test -d "$CPP"; then
1804 if test -z "$CPP"; then
1805 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 # This must be in double quotes, not single quotes, because CPP may get
1809 # substituted into the Makefile and "${CC-cc}" will confuse make.
1811 # On the NeXT, cc -E runs the code through the compiler's parser,
1812 # not just through cpp.
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1819 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1820 { (eval echo configure
:1821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1821 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1822 if test -z "$ac_err"; then
1826 echo "configure: failed program was:" >&5
1827 cat conftest.
$ac_ext >&5
1829 CPP
="${CC-cc} -E -traditional-cpp"
1830 cat > conftest.
$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1837 { (eval echo configure
:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1838 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1839 if test -z "$ac_err"; then
1843 echo "configure: failed program was:" >&5
1844 cat conftest.
$ac_ext >&5
1846 CPP
="${CC-cc} -nologo -E"
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1854 { (eval echo configure
:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1856 if test -z "$ac_err"; then
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1870 ac_cv_prog_CPP
="$CPP"
1872 CPP
="$ac_cv_prog_CPP"
1874 ac_cv_prog_CPP
="$CPP"
1876 echo "$ac_t""$CPP" 1>&6
1878 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1879 echo "configure:1880: checking for ANSI C header files" >&5
1880 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.
$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1891 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1892 { (eval echo configure
:1893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1893 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1894 if test -z "$ac_err"; then
1896 ac_cv_header_stdc
=yes
1899 echo "configure: failed program was:" >&5
1900 cat conftest.
$ac_ext >&5
1902 ac_cv_header_stdc
=no
1906 if test $ac_cv_header_stdc = yes; then
1907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1908 cat > conftest.
$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1914 egrep "memchr" >/dev
/null
2>&1; then
1918 ac_cv_header_stdc
=no
1924 if test $ac_cv_header_stdc = yes; then
1925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1926 cat > conftest.
$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1932 egrep "free" >/dev
/null
2>&1; then
1936 ac_cv_header_stdc
=no
1942 if test $ac_cv_header_stdc = yes; then
1943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1944 if test "$cross_compiling" = yes; then
1947 cat > conftest.
$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1951 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1952 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1954 int main () { int i; for (i = 0; i < 256; i++)
1955 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1959 if { (eval echo configure
:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1963 echo "configure: failed program was:" >&5
1964 cat conftest.
$ac_ext >&5
1966 ac_cv_header_stdc
=no
1974 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1975 if test $ac_cv_header_stdc = yes; then
1976 cat >> confdefs.h
<<\EOF
1977 #define STDC_HEADERS 1
1983 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1985 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_hdr that defines DIR" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.
$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 #include <sys/types.h>
2000 if { (eval echo configure
:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2002 eval "ac_cv_header_dirent_$ac_safe=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 eval "ac_cv_header_dirent_$ac_safe=no"
2011 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2014 cat >> confdefs.h
<<EOF
2015 #define $ac_tr_hdr 1
2017 ac_header_dirent
=$ac_hdr; break
2019 echo "$ac_t""no" 1>&6
2022 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2023 if test $ac_header_dirent = dirent.h
; then
2024 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2025 echo "configure:2026: checking for opendir in -ldir" >&5
2026 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 ac_save_LIBS
="$LIBS"
2032 cat > conftest.
$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2044 if { (eval echo configure
:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2046 eval "ac_cv_lib_$ac_lib_var=yes"
2048 echo "configure: failed program was:" >&5
2049 cat conftest.
$ac_ext >&5
2051 eval "ac_cv_lib_$ac_lib_var=no"
2054 LIBS
="$ac_save_LIBS"
2057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2061 echo "$ac_t""no" 1>&6
2065 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2066 echo "configure:2067: checking for opendir in -lx" >&5
2067 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 ac_save_LIBS
="$LIBS"
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 /* Override any gcc2 internal prototype to avoid an error. */
2077 /* We use char because int might match the return type of a gcc2
2078 builtin and then its argument prototype would still apply. */
2085 if { (eval echo configure
:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2087 eval "ac_cv_lib_$ac_lib_var=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 eval "ac_cv_lib_$ac_lib_var=no"
2095 LIBS
="$ac_save_LIBS"
2098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2102 echo "$ac_t""no" 1>&6
2107 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether time.h and sys/time.h may both be included" >&5
2109 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.
$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #include <sys/types.h>
2116 #include <sys/time.h>
2122 if { (eval echo configure
:2123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2124 ac_cv_header_time
=yes
2126 echo "configure: failed program was:" >&5
2127 cat conftest.
$ac_ext >&5
2129 ac_cv_header_time
=no
2134 echo "$ac_t""$ac_cv_header_time" 1>&6
2135 if test $ac_cv_header_time = yes; then
2136 cat >> confdefs.h
<<\EOF
2137 #define TIME_WITH_SYS_TIME 1
2142 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2143 echo "configure:2144: checking for sys/wait.h that is POSIX.1 compatible" >&5
2144 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 #include <sys/types.h>
2151 #include <sys/wait.h>
2153 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2156 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2161 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2164 if { (eval echo configure
:2165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2166 ac_cv_header_sys_wait_h
=yes
2168 echo "configure: failed program was:" >&5
2169 cat conftest.
$ac_ext >&5
2171 ac_cv_header_sys_wait_h
=no
2176 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2177 if test $ac_cv_header_sys_wait_h = yes; then
2178 cat >> confdefs.h
<<\EOF
2179 #define HAVE_SYS_WAIT_H 1
2184 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2186 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_hdr" >&5
2189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2197 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure
:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2200 if test -z "$ac_err"; then
2202 eval "ac_cv_header_$ac_safe=yes"
2205 echo "configure: failed program was:" >&5
2206 cat conftest.
$ac_ext >&5
2208 eval "ac_cv_header_$ac_safe=no"
2212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2215 cat >> confdefs.h
<<EOF
2216 #define $ac_tr_hdr 1
2220 echo "$ac_t""no" 1>&6
2224 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2226 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2237 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure
:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2242 eval "ac_cv_header_$ac_safe=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 eval "ac_cv_header_$ac_safe=no"
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h
<<EOF
2256 #define $ac_tr_hdr 1
2260 echo "$ac_t""no" 1>&6
2264 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2266 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2268 echo "configure:2269: checking for $ac_hdr" >&5
2269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.
$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2277 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2278 { (eval echo configure
:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2279 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2280 if test -z "$ac_err"; then
2282 eval "ac_cv_header_$ac_safe=yes"
2285 echo "configure: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2288 eval "ac_cv_header_$ac_safe=no"
2292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2295 cat >> confdefs.h
<<EOF
2296 #define $ac_tr_hdr 1
2300 echo "$ac_t""no" 1>&6
2304 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2306 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2308 echo "configure:2309: checking for $ac_hdr" >&5
2309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2317 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2318 { (eval echo configure
:2319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2319 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2320 if test -z "$ac_err"; then
2322 eval "ac_cv_header_$ac_safe=yes"
2325 echo "configure: failed program was:" >&5
2326 cat conftest.
$ac_ext >&5
2328 eval "ac_cv_header_$ac_safe=no"
2332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2333 echo "$ac_t""yes" 1>&6
2334 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2335 cat >> confdefs.h
<<EOF
2336 #define $ac_tr_hdr 1
2340 echo "$ac_t""no" 1>&6
2344 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
2346 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_hdr" >&5
2349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 cat > conftest.
$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2358 { (eval echo configure
:2359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2359 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2360 if test -z "$ac_err"; then
2362 eval "ac_cv_header_$ac_safe=yes"
2365 echo "configure: failed program was:" >&5
2366 cat conftest.
$ac_ext >&5
2368 eval "ac_cv_header_$ac_safe=no"
2372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2373 echo "$ac_t""yes" 1>&6
2374 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2375 cat >> confdefs.h
<<EOF
2376 #define $ac_tr_hdr 1
2380 echo "$ac_t""no" 1>&6
2384 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2386 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_hdr" >&5
2389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 cat > conftest.
$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2397 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2398 { (eval echo configure
:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2399 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2400 if test -z "$ac_err"; then
2402 eval "ac_cv_header_$ac_safe=yes"
2405 echo "configure: failed program was:" >&5
2406 cat conftest.
$ac_ext >&5
2408 eval "ac_cv_header_$ac_safe=no"
2412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2415 cat >> confdefs.h
<<EOF
2416 #define $ac_tr_hdr 1
2420 echo "$ac_t""no" 1>&6
2424 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2426 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2428 echo "configure:2429: checking for $ac_hdr" >&5
2429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2437 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2438 { (eval echo configure
:2439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2439 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2440 if test -z "$ac_err"; then
2442 eval "ac_cv_header_$ac_safe=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.
$ac_ext >&5
2448 eval "ac_cv_header_$ac_safe=no"
2452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2455 cat >> confdefs.h
<<EOF
2456 #define $ac_tr_hdr 1
2460 echo "$ac_t""no" 1>&6
2464 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h ldap.h lber.h dlfcn.h
2466 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2468 echo "configure:2469: checking for $ac_hdr" >&5
2469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.
$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2477 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure
:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2482 eval "ac_cv_header_$ac_safe=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.
$ac_ext >&5
2488 eval "ac_cv_header_$ac_safe=no"
2492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2493 echo "$ac_t""yes" 1>&6
2494 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2495 cat >> confdefs.h
<<EOF
2496 #define $ac_tr_hdr 1
2500 echo "$ac_t""no" 1>&6
2506 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2507 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2511 cat > conftest.
$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2519 if { (eval echo configure
:2520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2521 ac_cv_header_shadow_h
=yes
2523 echo "configure: failed program was:" >&5
2524 cat conftest.
$ac_ext >&5
2526 ac_cv_header_shadow_h
=no
2529 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2530 cat >> confdefs.h
<<\EOF
2531 #define HAVE_SHADOW_H 1
2537 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2539 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_hdr" >&5
2542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.
$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2550 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2551 { (eval echo configure
:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2552 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2553 if test -z "$ac_err"; then
2555 eval "ac_cv_header_$ac_safe=yes"
2558 echo "configure: failed program was:" >&5
2559 cat conftest.
$ac_ext >&5
2561 eval "ac_cv_header_$ac_safe=no"
2565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2568 cat >> confdefs.h
<<EOF
2569 #define $ac_tr_hdr 1
2573 echo "$ac_t""no" 1>&6
2577 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2579 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_hdr" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.
$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2590 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure
:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2595 eval "ac_cv_header_$ac_safe=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.
$ac_ext >&5
2601 eval "ac_cv_header_$ac_safe=no"
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2608 cat >> confdefs.h
<<EOF
2609 #define $ac_tr_hdr 1
2613 echo "$ac_t""no" 1>&6
2617 for ac_hdr
in stropts.h poll.h
2619 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_hdr" >&5
2622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 cat > conftest.
$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure
:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2635 eval "ac_cv_header_$ac_safe=yes"
2638 echo "configure: failed program was:" >&5
2639 cat conftest.
$ac_ext >&5
2641 eval "ac_cv_header_$ac_safe=no"
2645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2646 echo "$ac_t""yes" 1>&6
2647 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2648 cat >> confdefs.h
<<EOF
2649 #define $ac_tr_hdr 1
2653 echo "$ac_t""no" 1>&6
2657 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2659 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_hdr" >&5
2662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 cat > conftest.
$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2670 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2671 { (eval echo configure
:2672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2672 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2673 if test -z "$ac_err"; then
2675 eval "ac_cv_header_$ac_safe=yes"
2678 echo "configure: failed program was:" >&5
2679 cat conftest.
$ac_ext >&5
2681 eval "ac_cv_header_$ac_safe=no"
2685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2688 cat >> confdefs.h
<<EOF
2689 #define $ac_tr_hdr 1
2693 echo "$ac_t""no" 1>&6
2697 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2699 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2701 echo "configure:2702: checking for $ac_hdr" >&5
2702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 cat > conftest.
$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2710 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2711 { (eval echo configure
:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2712 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2713 if test -z "$ac_err"; then
2715 eval "ac_cv_header_$ac_safe=yes"
2718 echo "configure: failed program was:" >&5
2719 cat conftest.
$ac_ext >&5
2721 eval "ac_cv_header_$ac_safe=no"
2725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2728 cat >> confdefs.h
<<EOF
2729 #define $ac_tr_hdr 1
2733 echo "$ac_t""no" 1>&6
2738 # For experimental utmp support (lastlog on some BSD-like systems)
2739 for ac_hdr
in utmp.h utmpx.h lastlog.h
2741 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_hdr" >&5
2744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.
$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2752 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2753 { (eval echo configure
:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2754 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2755 if test -z "$ac_err"; then
2757 eval "ac_cv_header_$ac_safe=yes"
2760 echo "configure: failed program was:" >&5
2761 cat conftest.
$ac_ext >&5
2763 eval "ac_cv_header_$ac_safe=no"
2767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2770 cat >> confdefs.h
<<EOF
2771 #define $ac_tr_hdr 1
2775 echo "$ac_t""no" 1>&6
2780 # For quotas on Veritas VxFS filesystems
2781 for ac_hdr
in sys
/fs
/vx_quota.h
2783 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_hdr" >&5
2786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 cat > conftest.
$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2794 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2795 { (eval echo configure
:2796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2796 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2797 if test -z "$ac_err"; then
2799 eval "ac_cv_header_$ac_safe=yes"
2802 echo "configure: failed program was:" >&5
2803 cat conftest.
$ac_ext >&5
2805 eval "ac_cv_header_$ac_safe=no"
2809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2812 cat >> confdefs.h
<<EOF
2813 #define $ac_tr_hdr 1
2817 echo "$ac_t""no" 1>&6
2822 # For quotas on Linux XFS filesystems
2823 for ac_hdr
in linux
/xqm.h
2825 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure
:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2841 eval "ac_cv_header_$ac_safe=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2847 eval "ac_cv_header_$ac_safe=no"
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h
<<EOF
2855 #define $ac_tr_hdr 1
2859 echo "$ac_t""no" 1>&6
2864 echo $ac_n "checking size of int""... $ac_c" 1>&6
2865 echo "configure:2866: checking size of int" >&5
2866 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 if test "$cross_compiling" = yes; then
2870 ac_cv_sizeof_int
=cross
2872 cat > conftest.
$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2878 FILE *f=fopen("conftestval", "w");
2880 fprintf(f, "%d\n", sizeof(int));
2884 if { (eval echo configure
:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2886 ac_cv_sizeof_int
=`cat conftestval`
2888 echo "configure: failed program was:" >&5
2889 cat conftest.
$ac_ext >&5
2897 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2898 cat >> confdefs.h
<<EOF
2899 #define SIZEOF_INT $ac_cv_sizeof_int
2903 echo $ac_n "checking size of long""... $ac_c" 1>&6
2904 echo "configure:2905: checking size of long" >&5
2905 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 if test "$cross_compiling" = yes; then
2909 ac_cv_sizeof_long
=cross
2911 cat > conftest.
$ac_ext <<EOF
2912 #line 2913 "configure"
2913 #include "confdefs.h"
2917 FILE *f=fopen("conftestval", "w");
2919 fprintf(f, "%d\n", sizeof(long));
2923 if { (eval echo configure
:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2925 ac_cv_sizeof_long
=`cat conftestval`
2927 echo "configure: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2936 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2937 cat >> confdefs.h
<<EOF
2938 #define SIZEOF_LONG $ac_cv_sizeof_long
2942 echo $ac_n "checking size of short""... $ac_c" 1>&6
2943 echo "configure:2944: checking size of short" >&5
2944 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 if test "$cross_compiling" = yes; then
2948 ac_cv_sizeof_short
=cross
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2956 FILE *f=fopen("conftestval", "w");
2958 fprintf(f, "%d\n", sizeof(short));
2962 if { (eval echo configure
:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2964 ac_cv_sizeof_short
=`cat conftestval`
2966 echo "configure: failed program was:" >&5
2967 cat conftest.
$ac_ext >&5
2969 ac_cv_sizeof_short
=0
2975 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2976 cat >> confdefs.h
<<EOF
2977 #define SIZEOF_SHORT $ac_cv_sizeof_short
2982 echo $ac_n "checking for working const""... $ac_c" 1>&6
2983 echo "configure:2984: checking for working const" >&5
2984 if eval "test \"`echo '$''{'ac_cv_c_const'+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"
2993 /* Ultrix mips cc rejects this. */
2994 typedef int charset[2]; const charset x;
2995 /* SunOS 4.1.1 cc rejects this. */
2996 char const *const *ccp;
2998 /* NEC SVR4.0.2 mips cc rejects this. */
2999 struct point {int x, y;};
3000 static struct point const zero = {0,0};
3001 /* AIX XL C 1.02.0.0 rejects this.
3002 It does not let you subtract one const X* pointer from another in an arm
3003 of an if-expression whose if-part is not a constant expression */
3004 const char *g = "string";
3005 ccp = &g + (g ? g-g : 0);
3006 /* HPUX 7.0 cc rejects these. */
3009 ccp = (char const *const *) p;
3010 { /* SCO 3.2v4 cc rejects this. */
3012 char const *s = 0 ? (char *) 0 : (char const *) 0;
3016 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3018 const int *foo = &x[0];
3021 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3022 typedef const int *iptr;
3026 { /* AIX XL C 1.02.0.0 rejects this saying
3027 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3028 struct s { int j; const int *ap[3]; };
3029 struct s *b; b->j = 5;
3031 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3037 if { (eval echo configure
:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3049 echo "$ac_t""$ac_cv_c_const" 1>&6
3050 if test $ac_cv_c_const = no
; then
3051 cat >> confdefs.h
<<\EOF
3057 echo $ac_n "checking for inline""... $ac_c" 1>&6
3058 echo "configure:3059: checking for inline" >&5
3059 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3063 for ac_kw
in inline __inline__ __inline
; do
3064 cat > conftest.
$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3072 if { (eval echo configure
:3073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3074 ac_cv_c_inline
=$ac_kw; break
3076 echo "configure: failed program was:" >&5
3077 cat conftest.
$ac_ext >&5
3084 echo "$ac_t""$ac_cv_c_inline" 1>&6
3085 case "$ac_cv_c_inline" in
3087 no
) cat >> confdefs.h
<<\EOF
3091 *) cat >> confdefs.h
<<EOF
3092 #define inline $ac_cv_c_inline
3097 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3098 echo "configure:3099: checking whether byte ordering is bigendian" >&5
3099 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 ac_cv_c_bigendian
=unknown
3103 # See if sys/param.h defines the BYTE_ORDER macro.
3104 cat > conftest.
$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3107 #include <sys/types.h>
3108 #include <sys/param.h>
3111 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3116 if { (eval echo configure
:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3118 # It does; now see whether it defined to BIG_ENDIAN or not.
3119 cat > conftest.
$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 #include <sys/types.h>
3123 #include <sys/param.h>
3126 #if BYTE_ORDER != BIG_ENDIAN
3131 if { (eval echo configure
:3132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3133 ac_cv_c_bigendian
=yes
3135 echo "configure: failed program was:" >&5
3136 cat conftest.
$ac_ext >&5
3138 ac_cv_c_bigendian
=no
3142 echo "configure: failed program was:" >&5
3143 cat conftest.
$ac_ext >&5
3146 if test $ac_cv_c_bigendian = unknown
; then
3147 if test "$cross_compiling" = yes; then
3148 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3150 cat > conftest.
$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3154 /* Are we little or big endian? From Harbison&Steele. */
3158 char c[sizeof (long)];
3161 exit (u.c[sizeof (long) - 1] == 1);
3164 if { (eval echo configure
:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3166 ac_cv_c_bigendian
=no
3168 echo "configure: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3171 ac_cv_c_bigendian
=yes
3179 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3180 if test $ac_cv_c_bigendian = yes; then
3181 cat >> confdefs.h
<<\EOF
3182 #define WORDS_BIGENDIAN 1
3187 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3188 echo "configure:3189: checking whether char is unsigned" >&5
3189 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 if test "$GCC" = yes; then
3193 # GCC predefines this symbol on systems where it applies.
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #ifdef __CHAR_UNSIGNED__
3202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3203 egrep "yes" >/dev
/null
2>&1; then
3205 ac_cv_c_char_unsigned
=yes
3208 ac_cv_c_char_unsigned
=no
3213 if test "$cross_compiling" = yes; then
3214 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3216 cat > conftest.
$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3220 #if !defined(__STDC__) || __STDC__ != 1
3224 volatile char c = 255; exit(c < 0);
3227 if { (eval echo configure
:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3229 ac_cv_c_char_unsigned
=yes
3231 echo "configure: failed program was:" >&5
3232 cat conftest.
$ac_ext >&5
3234 ac_cv_c_char_unsigned
=no
3242 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3243 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3244 cat >> confdefs.h
<<\EOF
3245 #define __CHAR_UNSIGNED__ 1
3251 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3252 echo "configure:3253: checking return type of signal handlers" >&5
3253 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.
$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 #include <sys/types.h>
3265 extern "C" void (*signal (int, void (*)(int)))(int);
3267 void (*signal ()) ();
3274 if { (eval echo configure
:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3276 ac_cv_type_signal
=void
3278 echo "configure: failed program was:" >&5
3279 cat conftest.
$ac_ext >&5
3281 ac_cv_type_signal
=int
3286 echo "$ac_t""$ac_cv_type_signal" 1>&6
3287 cat >> confdefs.h
<<EOF
3288 #define RETSIGTYPE $ac_cv_type_signal
3292 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3293 echo "configure:3294: checking for uid_t in sys/types.h" >&5
3294 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 cat > conftest.
$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <sys/types.h>
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 egrep "uid_t" >/dev
/null
2>&1; then
3305 ac_cv_type_uid_t
=yes
3314 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3315 if test $ac_cv_type_uid_t = no
; then
3316 cat >> confdefs.h
<<\EOF
3320 cat >> confdefs.h
<<\EOF
3326 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3327 echo "configure:3328: checking for mode_t" >&5
3328 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <sys/types.h>
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3343 ac_cv_type_mode_t
=yes
3346 ac_cv_type_mode_t
=no
3351 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3352 if test $ac_cv_type_mode_t = no
; then
3353 cat >> confdefs.h
<<\EOF
3359 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3360 echo "configure:3361: checking for off_t" >&5
3361 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <sys/types.h>
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3376 ac_cv_type_off_t
=yes
3384 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3385 if test $ac_cv_type_off_t = no
; then
3386 cat >> confdefs.h
<<\EOF
3392 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3393 echo "configure:3394: checking for size_t" >&5
3394 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3409 ac_cv_type_size_t
=yes
3412 ac_cv_type_size_t
=no
3417 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3418 if test $ac_cv_type_size_t = no
; then
3419 cat >> confdefs.h
<<\EOF
3420 #define size_t unsigned
3425 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3426 echo "configure:3427: checking for pid_t" >&5
3427 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.
$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3442 ac_cv_type_pid_t
=yes
3450 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3451 if test $ac_cv_type_pid_t = no
; then
3452 cat >> confdefs.h
<<\EOF
3458 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3459 echo "configure:3460: checking for st_rdev in struct stat" >&5
3460 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 cat > conftest.
$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3467 #include <sys/stat.h>
3469 struct stat s; s.st_rdev;
3472 if { (eval echo configure
:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474 ac_cv_struct_st_rdev
=yes
3476 echo "configure: failed program was:" >&5
3477 cat conftest.
$ac_ext >&5
3479 ac_cv_struct_st_rdev
=no
3484 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3485 if test $ac_cv_struct_st_rdev = yes; then
3486 cat >> confdefs.h
<<\EOF
3487 #define HAVE_ST_RDEV 1
3492 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3493 echo "configure:3494: checking for d_off in dirent" >&5
3494 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3502 #include <sys/types.h>
3505 struct dirent d; d.d_off;
3508 if { (eval echo configure
:3509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3510 ac_cv_dirent_d_off
=yes
3512 echo "configure: failed program was:" >&5
3513 cat conftest.
$ac_ext >&5
3515 ac_cv_dirent_d_off
=no
3520 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3521 if test $ac_cv_dirent_d_off = yes; then
3522 cat >> confdefs.h
<<\EOF
3523 #define HAVE_DIRENT_D_OFF 1
3528 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3529 echo "configure:3530: checking for ino_t" >&5
3530 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.
$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <sys/types.h>
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3545 ac_cv_type_ino_t
=yes
3553 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3554 if test $ac_cv_type_ino_t = no
; then
3555 cat >> confdefs.h
<<\EOF
3556 #define ino_t unsigned
3561 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3562 echo "configure:3563: checking for loff_t" >&5
3563 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.
$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <sys/types.h>
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3578 ac_cv_type_loff_t
=yes
3581 ac_cv_type_loff_t
=no
3586 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3587 if test $ac_cv_type_loff_t = no
; then
3588 cat >> confdefs.h
<<\EOF
3589 #define loff_t off_t
3594 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3595 echo "configure:3596: checking for offset_t" >&5
3596 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 cat > conftest.
$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #include <sys/types.h>
3608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3609 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3611 ac_cv_type_offset_t
=yes
3614 ac_cv_type_offset_t
=no
3619 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3620 if test $ac_cv_type_offset_t = no
; then
3621 cat >> confdefs.h
<<\EOF
3622 #define offset_t loff_t
3627 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3628 echo "configure:3629: checking for ssize_t" >&5
3629 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 cat > conftest.
$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3644 ac_cv_type_ssize_t
=yes
3647 ac_cv_type_ssize_t
=no
3652 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3653 if test $ac_cv_type_ssize_t = no
; then
3654 cat >> confdefs.h
<<\EOF
3660 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3661 echo "configure:3662: checking for wchar_t" >&5
3662 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 cat > conftest.
$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <sys/types.h>
3674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3675 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3677 ac_cv_type_wchar_t
=yes
3680 ac_cv_type_wchar_t
=no
3685 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3686 if test $ac_cv_type_wchar_t = no
; then
3687 cat >> confdefs.h
<<\EOF
3688 #define wchar_t unsigned short
3694 ############################################
3695 # for cups support we need libcups, and a handful of header files
3697 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3698 echo "configure:3699: checking for httpConnect in -lcups" >&5
3699 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 ac_save_LIBS
="$LIBS"
3705 cat > conftest.
$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3717 if { (eval echo configure
:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3719 eval "ac_cv_lib_$ac_lib_var=yes"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.
$ac_ext >&5
3724 eval "ac_cv_lib_$ac_lib_var=no"
3727 LIBS
="$ac_save_LIBS"
3730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3733 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3734 cat >> confdefs.h
<<EOF
3735 #define $ac_tr_lib 1
3741 echo "$ac_t""no" 1>&6
3745 # I wonder if there is a nicer way of doing this?
3747 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3748 for ac_hdr
in cups
/cups.h cups
/language.h
3750 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_hdr" >&5
3753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 cat > conftest.
$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3761 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3762 { (eval echo configure
:3763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3763 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3764 if test -z "$ac_err"; then
3766 eval "ac_cv_header_$ac_safe=yes"
3769 echo "configure: failed program was:" >&5
3770 cat conftest.
$ac_ext >&5
3772 eval "ac_cv_header_$ac_safe=no"
3776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3778 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3779 cat >> confdefs.h
<<EOF
3780 #define $ac_tr_hdr 1
3784 echo "$ac_t""no" 1>&6
3788 if test x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3789 if test x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3790 cat >> confdefs.h
<<\EOF
3798 ############################################
3799 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3800 for ac_func
in dlopen
3802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3803 echo "configure:3804: checking for $ac_func" >&5
3804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 cat > conftest.
$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 /* System header to define __stub macros and hopefully few prototypes,
3811 which can conflict with char $ac_func(); below. */
3813 /* Override any gcc2 internal prototype to avoid an error. */
3814 /* We use char because int might match the return type of a gcc2
3815 builtin and then its argument prototype would still apply. */
3820 /* The GNU C library defines this for functions which it implements
3821 to always fail with ENOSYS. Some functions are actually named
3822 something starting with __ and the normal name is an alias. */
3823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3831 if { (eval echo configure
:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3833 eval "ac_cv_func_$ac_func=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.
$ac_ext >&5
3838 eval "ac_cv_func_$ac_func=no"
3843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3844 echo "$ac_t""yes" 1>&6
3845 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3846 cat >> confdefs.h
<<EOF
3847 #define $ac_tr_func 1
3851 echo "$ac_t""no" 1>&6
3855 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3856 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3857 echo "configure:3858: checking for dlopen in -ldl" >&5
3858 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 ac_save_LIBS
="$LIBS"
3864 cat > conftest.
$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 /* Override any gcc2 internal prototype to avoid an error. */
3868 /* We use char because int might match the return type of a gcc2
3869 builtin and then its argument prototype would still apply. */
3876 if { (eval echo configure
:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3878 eval "ac_cv_lib_$ac_lib_var=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.
$ac_ext >&5
3883 eval "ac_cv_lib_$ac_lib_var=no"
3886 LIBS
="$ac_save_LIBS"
3889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3892 cat >> confdefs.h
<<\EOF
3893 #define HAVE_DLOPEN 1
3897 echo "$ac_t""no" 1>&6
3901 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3903 ############################################
3904 # check if the compiler can do immediate structures
3905 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3906 echo "configure:3907: checking for immediate structures" >&5
3907 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3911 cat > conftest.
$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3918 typedef struct {unsigned x;} FOOBAR;
3919 #define X_FOOBAR(x) ((FOOBAR) { x })
3920 #define FOO_ONE X_FOOBAR(1)
3930 if { (eval echo configure
:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932 samba_cv_immediate_structures
=yes
3934 echo "configure: failed program was:" >&5
3935 cat conftest.
$ac_ext >&5
3937 samba_cv_immediate_structures
=no
3942 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3943 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3944 cat >> confdefs.h
<<\EOF
3945 #define HAVE_IMMEDIATE_STRUCTURES 1
3950 ############################################
3951 # check for unix domain sockets
3952 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3953 echo "configure:3954: checking for unix domain sockets" >&5
3954 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3958 cat > conftest.
$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3962 #include <sys/types.h>
3965 #include <sys/socket.h>
3969 struct sockaddr_un sunaddr;
3970 sunaddr.sun_family = AF_UNIX;
3974 if { (eval echo configure
:3975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3976 samba_cv_unixsocket
=yes
3978 echo "configure: failed program was:" >&5
3979 cat conftest.
$ac_ext >&5
3981 samba_cv_unixsocket
=no
3986 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3987 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3988 cat >> confdefs.h
<<\EOF
3989 #define HAVE_UNIXSOCKET 1
3995 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3996 echo "configure:3997: checking for socklen_t type" >&5
3997 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
4001 cat > conftest.
$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4005 #include <sys/types.h>
4010 #include <sys/socket.h>
4015 if { (eval echo configure
:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4017 samba_cv_socklen_t
=yes
4019 echo "configure: failed program was:" >&5
4020 cat conftest.
$ac_ext >&5
4022 samba_cv_socklen_t
=no
4027 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4028 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4029 cat >> confdefs.h
<<\EOF
4030 #define HAVE_SOCKLEN_T_TYPE 1
4035 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4036 echo "configure:4037: checking for sig_atomic_t type" >&5
4037 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4041 cat > conftest.
$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4045 #include <sys/types.h>
4055 if { (eval echo configure
:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 samba_cv_sig_atomic_t
=yes
4059 echo "configure: failed program was:" >&5
4060 cat conftest.
$ac_ext >&5
4062 samba_cv_sig_atomic_t
=no
4067 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4068 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4069 cat >> confdefs.h
<<\EOF
4070 #define HAVE_SIG_ATOMIC_T_TYPE 1
4075 # stupid headers have the functions but no declaration. grrrr.
4077 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4078 echo "configure:4079: checking for errno declaration" >&5
4079 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4083 cat > conftest.
$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4091 if { (eval echo configure
:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4093 ac_cv_have_errno_decl
=yes
4095 echo "configure: failed program was:" >&5
4096 cat conftest.
$ac_ext >&5
4098 ac_cv_have_errno_decl
=no
4103 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4104 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4105 cat >> confdefs.h
<<\EOF
4106 #define HAVE_ERRNO_DECL 1
4112 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4113 echo "configure:4114: checking for setresuid declaration" >&5
4114 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4118 cat > conftest.
$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4123 int i = (int)setresuid
4126 if { (eval echo configure
:4127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4128 ac_cv_have_setresuid_decl
=yes
4130 echo "configure: failed program was:" >&5
4131 cat conftest.
$ac_ext >&5
4133 ac_cv_have_setresuid_decl
=no
4138 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4139 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4140 cat >> confdefs.h
<<\EOF
4141 #define HAVE_SETRESUID_DECL 1
4147 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4148 echo "configure:4149: checking for setresgid declaration" >&5
4149 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4153 cat > conftest.
$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4158 int i = (int)setresgid
4161 if { (eval echo configure
:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4163 ac_cv_have_setresgid_decl
=yes
4165 echo "configure: failed program was:" >&5
4166 cat conftest.
$ac_ext >&5
4168 ac_cv_have_setresgid_decl
=no
4173 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4174 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4175 cat >> confdefs.h
<<\EOF
4176 #define HAVE_SETRESGID_DECL 1
4182 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4183 echo "configure:4184: checking for asprintf declaration" >&5
4184 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4188 cat > conftest.
$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4193 int i = (int)asprintf
4196 if { (eval echo configure
:4197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4198 ac_cv_have_asprintf_decl
=yes
4200 echo "configure: failed program was:" >&5
4201 cat conftest.
$ac_ext >&5
4203 ac_cv_have_asprintf_decl
=no
4208 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4209 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4210 cat >> confdefs.h
<<\EOF
4211 #define HAVE_ASPRINTF_DECL 1
4217 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4218 echo "configure:4219: checking for vasprintf declaration" >&5
4219 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4223 cat > conftest.
$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4228 int i = (int)vasprintf
4231 if { (eval echo configure
:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4233 ac_cv_have_vasprintf_decl
=yes
4235 echo "configure: failed program was:" >&5
4236 cat conftest.
$ac_ext >&5
4238 ac_cv_have_vasprintf_decl
=no
4243 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4244 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4245 cat >> confdefs.h
<<\EOF
4246 #define HAVE_VASPRINTF_DECL 1
4252 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4253 echo "configure:4254: checking for vsnprintf declaration" >&5
4254 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4258 cat > conftest.
$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4263 int i = (int)vsnprintf
4266 if { (eval echo configure
:4267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4268 ac_cv_have_vsnprintf_decl
=yes
4270 echo "configure: failed program was:" >&5
4271 cat conftest.
$ac_ext >&5
4273 ac_cv_have_vsnprintf_decl
=no
4278 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4279 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4280 cat >> confdefs.h
<<\EOF
4281 #define HAVE_VSNPRINTF_DECL 1
4287 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4288 echo "configure:4289: checking for snprintf declaration" >&5
4289 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.
$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4298 int i = (int)snprintf
4301 if { (eval echo configure
:4302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4303 ac_cv_have_snprintf_decl
=yes
4305 echo "configure: failed program was:" >&5
4306 cat conftest.
$ac_ext >&5
4308 ac_cv_have_snprintf_decl
=no
4313 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4314 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4315 cat >> confdefs.h
<<\EOF
4316 #define HAVE_SNPRINTF_DECL 1
4322 # and glibc has setresuid under linux but the function does
4323 # nothing until kernel 2.1.44! very dumb.
4324 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4325 echo "configure:4326: checking for real setresuid" >&5
4326 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4330 if test "$cross_compiling" = yes; then
4331 samba_cv_have_setresuid
=cross
4333 cat > conftest.
$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4337 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4339 if { (eval echo configure
:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4341 samba_cv_have_setresuid
=yes
4343 echo "configure: failed program was:" >&5
4344 cat conftest.
$ac_ext >&5
4346 samba_cv_have_setresuid
=no
4353 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4354 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4355 cat >> confdefs.h
<<\EOF
4356 #define HAVE_SETRESUID 1
4361 # Do the same check for setresguid...
4363 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4364 echo "configure:4365: checking for real setresgid" >&5
4365 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4369 if test "$cross_compiling" = yes; then
4370 samba_cv_have_setresgid
=cross
4372 cat > conftest.
$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4377 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4379 if { (eval echo configure
:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4381 samba_cv_have_setresgid
=yes
4383 echo "configure: failed program was:" >&5
4384 cat conftest.
$ac_ext >&5
4386 samba_cv_have_setresgid
=no
4393 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4394 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4395 cat >> confdefs.h
<<\EOF
4396 #define HAVE_SETRESGID 1
4401 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4402 echo "configure:4403: checking for 8-bit clean memcmp" >&5
4403 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 if test "$cross_compiling" = yes; then
4407 ac_cv_func_memcmp_clean
=no
4409 cat > conftest.
$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4415 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4416 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4420 if { (eval echo configure
:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4422 ac_cv_func_memcmp_clean
=yes
4424 echo "configure: failed program was:" >&5
4425 cat conftest.
$ac_ext >&5
4427 ac_cv_func_memcmp_clean
=no
4434 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4435 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4438 ###############################################
4439 # test for where we get crypt() from
4440 for ac_func
in crypt
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.
$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func(); below. */
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4471 if { (eval echo configure
:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4473 eval "ac_cv_func_$ac_func=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.
$ac_ext >&5
4478 eval "ac_cv_func_$ac_func=no"
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486 cat >> confdefs.h
<<EOF
4487 #define $ac_tr_func 1
4491 echo "$ac_t""no" 1>&6
4495 if test x
"$ac_cv_func_crypt" = x
"no"; then
4496 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4497 echo "configure:4498: checking for crypt in -lcrypt" >&5
4498 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 ac_save_LIBS
="$LIBS"
4503 LIBS
="-lcrypt $LIBS"
4504 cat > conftest.
$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4516 if { (eval echo configure
:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4518 eval "ac_cv_lib_$ac_lib_var=yes"
4520 echo "configure: failed program was:" >&5
4521 cat conftest.
$ac_ext >&5
4523 eval "ac_cv_lib_$ac_lib_var=no"
4526 LIBS
="$ac_save_LIBS"
4529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 LIBS
="$LIBS -lcrypt";
4532 cat >> confdefs.h
<<\EOF
4533 #define HAVE_CRYPT 1
4537 echo "$ac_t""no" 1>&6
4543 ###############################################
4544 # Readline included by default unless explicitly asked not to
4545 test "${with_readline+set}" != "set" && with_readline
=yes
4547 # test for where we get readline() from
4548 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4549 echo "configure:4550: checking whether to use readline" >&5
4550 # Check whether --with-readline or --without-readline was given.
4551 if test "${with_readline+set}" = set; then
4552 withval
="$with_readline"
4553 case "$with_readline" in
4555 echo "$ac_t""yes" 1>&6
4557 for ac_hdr
in readline.h
history.h readline
/readline.h
4559 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4561 echo "configure:4562: checking for $ac_hdr" >&5
4562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 cat > conftest.
$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4570 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4571 { (eval echo configure
:4572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4572 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4573 if test -z "$ac_err"; then
4575 eval "ac_cv_header_$ac_safe=yes"
4578 echo "configure: failed program was:" >&5
4579 cat conftest.
$ac_ext >&5
4581 eval "ac_cv_header_$ac_safe=no"
4585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4587 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4588 cat >> confdefs.h
<<EOF
4589 #define $ac_tr_hdr 1
4593 echo "$ac_t""no" 1>&6
4597 for ac_hdr
in readline
/history.h
4599 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4601 echo "configure:4602: checking for $ac_hdr" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.
$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4610 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure
:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4615 eval "ac_cv_header_$ac_safe=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.
$ac_ext >&5
4621 eval "ac_cv_header_$ac_safe=no"
4625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4626 echo "$ac_t""yes" 1>&6
4627 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4628 cat >> confdefs.h
<<EOF
4629 #define $ac_tr_hdr 1
4633 echo "$ac_t""no" 1>&6
4638 for ac_hdr
in readline.h readline
/readline.h
4640 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4642 echo "configure:4643: checking for $ac_hdr" >&5
4643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4646 cat > conftest.
$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4651 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4652 { (eval echo configure
:4653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4653 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4654 if test -z "$ac_err"; then
4656 eval "ac_cv_header_$ac_safe=yes"
4659 echo "configure: failed program was:" >&5
4660 cat conftest.
$ac_ext >&5
4662 eval "ac_cv_header_$ac_safe=no"
4666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4668 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4669 cat >> confdefs.h
<<EOF
4670 #define $ac_tr_hdr 1
4673 for termlib
in ncurses curses termcap terminfo termlib
; do
4674 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4675 echo "configure:4676: checking for tgetent in -l${termlib}" >&5
4676 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 ac_save_LIBS
="$LIBS"
4681 LIBS
="-l${termlib} $LIBS"
4682 cat > conftest.
$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 /* Override any gcc2 internal prototype to avoid an error. */
4686 /* We use char because int might match the return type of a gcc2
4687 builtin and then its argument prototype would still apply. */
4694 if { (eval echo configure
:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4696 eval "ac_cv_lib_$ac_lib_var=yes"
4698 echo "configure: failed program was:" >&5
4699 cat conftest.
$ac_ext >&5
4701 eval "ac_cv_lib_$ac_lib_var=no"
4704 LIBS
="$ac_save_LIBS"
4707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6
4709 TERMLIBS
="-l${termlib}"; break
4711 echo "$ac_t""no" 1>&6
4715 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4716 echo "configure:4717: checking for rl_callback_handler_install in -lreadline" >&5
4717 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 ac_save_LIBS
="$LIBS"
4722 LIBS
="-lreadline $TERMLIBS $LIBS"
4723 cat > conftest.
$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4729 char rl_callback_handler_install();
4732 rl_callback_handler_install()
4735 if { (eval echo configure
:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4737 eval "ac_cv_lib_$ac_lib_var=yes"
4739 echo "configure: failed program was:" >&5
4740 cat conftest.
$ac_ext >&5
4742 eval "ac_cv_lib_$ac_lib_var=no"
4745 LIBS
="$ac_save_LIBS"
4748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4750 TERMLIBS
="-lreadline $TERMLIBS"
4751 cat >> confdefs.h
<<\EOF
4752 #define HAVE_LIBREADLINE 1
4757 echo "$ac_t""no" 1>&6
4762 echo "$ac_t""no" 1>&6
4768 echo "$ac_t""no" 1>&6
4771 echo "$ac_t""yes" 1>&6
4773 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4774 # alternate readline path
4776 _cppflags
=${CPPFLAGS}
4778 # Add additional search path
4779 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4780 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4782 for ac_hdr
in readline.h
history.h readline
/readline.h
4784 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_hdr" >&5
4787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.
$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4795 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4796 { (eval echo configure
:4797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4797 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4798 if test -z "$ac_err"; then
4800 eval "ac_cv_header_$ac_safe=yes"
4803 echo "configure: failed program was:" >&5
4804 cat conftest.
$ac_ext >&5
4806 eval "ac_cv_header_$ac_safe=no"
4810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4812 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4813 cat >> confdefs.h
<<EOF
4814 #define $ac_tr_hdr 1
4818 echo "$ac_t""no" 1>&6
4822 for ac_hdr
in readline
/history.h
4824 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4826 echo "configure:4827: checking for $ac_hdr" >&5
4827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.
$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4835 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4836 { (eval echo configure
:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4837 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4838 if test -z "$ac_err"; then
4840 eval "ac_cv_header_$ac_safe=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.
$ac_ext >&5
4846 eval "ac_cv_header_$ac_safe=no"
4850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4853 cat >> confdefs.h
<<EOF
4854 #define $ac_tr_hdr 1
4858 echo "$ac_t""no" 1>&6
4863 for ac_hdr
in readline.h readline
/readline.h
4865 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4867 echo "configure:4868: checking for $ac_hdr" >&5
4868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 cat > conftest.
$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4877 { (eval echo configure
:4878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4879 if test -z "$ac_err"; then
4881 eval "ac_cv_header_$ac_safe=yes"
4884 echo "configure: failed program was:" >&5
4885 cat conftest.
$ac_ext >&5
4887 eval "ac_cv_header_$ac_safe=no"
4891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4894 cat >> confdefs.h
<<EOF
4895 #define $ac_tr_hdr 1
4898 for termlib
in ncurses curses termcap terminfo termlib
; do
4899 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4900 echo "configure:4901: checking for tgetent in -l${termlib}" >&5
4901 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 ac_save_LIBS
="$LIBS"
4906 LIBS
="-l${termlib} $LIBS"
4907 cat > conftest.
$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */
4919 if { (eval echo configure
:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4921 eval "ac_cv_lib_$ac_lib_var=yes"
4923 echo "configure: failed program was:" >&5
4924 cat conftest.
$ac_ext >&5
4926 eval "ac_cv_lib_$ac_lib_var=no"
4929 LIBS
="$ac_save_LIBS"
4932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 TERMLIBS
="-l${termlib}"; break
4936 echo "$ac_t""no" 1>&6
4940 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4941 echo "configure:4942: checking for rl_callback_handler_install in -lreadline" >&5
4942 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 ac_save_LIBS
="$LIBS"
4947 LIBS
="-lreadline $TERMLIBS $LIBS"
4948 cat > conftest.
$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4954 char rl_callback_handler_install();
4957 rl_callback_handler_install()
4960 if { (eval echo configure
:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4964 echo "configure: failed program was:" >&5
4965 cat conftest.
$ac_ext >&5
4967 eval "ac_cv_lib_$ac_lib_var=no"
4970 LIBS
="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 TERMLDFLAGS
="-L$with_readline/lib"
4976 TERMCPPFLAGS
="-I$with_readline/include"
4977 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4978 TERMLIBS
="-lreadline $TERMLIBS"
4979 cat >> confdefs.h
<<\EOF
4980 #define HAVE_LIBREADLINE 1
4985 echo "$ac_t""no" 1>&6
4986 TERMLIBS
= CPPFLAGS
=$_cppflags
4990 echo "$ac_t""no" 1>&6
4999 echo "$ac_t""no" 1>&6
5006 # The readline API changed slightly from readline3 to readline4, so
5007 # code will generate warnings on one of them unless we have a few
5009 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5010 echo "configure:5011: checking for rl_completion_matches in -lreadline" >&5
5011 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 ac_save_LIBS
="$LIBS"
5016 LIBS
="-lreadline $TERMLIBS $LIBS"
5017 cat > conftest.
$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5023 char rl_completion_matches();
5026 rl_completion_matches()
5029 if { (eval echo configure
:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5031 eval "ac_cv_lib_$ac_lib_var=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.
$ac_ext >&5
5036 eval "ac_cv_lib_$ac_lib_var=no"
5039 LIBS
="$ac_save_LIBS"
5042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5044 cat >> confdefs.h
<<\EOF
5045 #define HAVE_NEW_LIBREADLINE 1
5049 echo "$ac_t""no" 1>&6
5053 # The following test taken from the cvs sources
5054 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5055 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5056 # libsocket.so which has a bad implementation of gethostbyname (it
5057 # only looks in /etc/hosts), so we only look for -lsocket if we need
5059 for ac_func
in connect
5061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5062 echo "configure:5063: checking for $ac_func" >&5
5063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
5066 cat > conftest.
$ac_ext <<EOF
5067 #line 5068 "configure"
5068 #include "confdefs.h"
5069 /* System header to define __stub macros and hopefully few prototypes,
5070 which can conflict with char $ac_func(); below. */
5072 /* Override any gcc2 internal prototype to avoid an error. */
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5079 /* The GNU C library defines this for functions which it implements
5080 to always fail with ENOSYS. Some functions are actually named
5081 something starting with __ and the normal name is an alias. */
5082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5090 if { (eval echo configure
:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5092 eval "ac_cv_func_$ac_func=yes"
5094 echo "configure: failed program was:" >&5
5095 cat conftest.
$ac_ext >&5
5097 eval "ac_cv_func_$ac_func=no"
5102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5103 echo "$ac_t""yes" 1>&6
5104 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5105 cat >> confdefs.h
<<EOF
5106 #define $ac_tr_func 1
5110 echo "$ac_t""no" 1>&6
5114 if test x
"$ac_cv_func_connect" = x
"no"; then
5117 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5118 echo "configure:5119: checking for printf in -lnsl_s" >&5
5119 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 ac_save_LIBS
="$LIBS"
5124 LIBS
="-lnsl_s $LIBS"
5125 cat > conftest.
$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5137 if { (eval echo configure
:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5139 eval "ac_cv_lib_$ac_lib_var=yes"
5141 echo "configure: failed program was:" >&5
5142 cat conftest.
$ac_ext >&5
5144 eval "ac_cv_lib_$ac_lib_var=no"
5147 LIBS
="$ac_save_LIBS"
5150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5151 echo "$ac_t""yes" 1>&6
5152 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5153 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5154 cat >> confdefs.h
<<EOF
5155 #define $ac_tr_lib 1
5158 LIBS
="-lnsl_s $LIBS"
5161 echo "$ac_t""no" 1>&6
5167 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5168 echo "configure:5169: checking for printf in -lnsl" >&5
5169 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 ac_save_LIBS
="$LIBS"
5175 cat > conftest.
$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5187 if { (eval echo configure
:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.
$ac_ext >&5
5194 eval "ac_cv_lib_$ac_lib_var=no"
5197 LIBS
="$ac_save_LIBS"
5200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5201 echo "$ac_t""yes" 1>&6
5202 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5203 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5204 cat >> confdefs.h
<<EOF
5205 #define $ac_tr_lib 1
5211 echo "$ac_t""no" 1>&6
5217 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5218 echo "configure:5219: checking for connect in -lsocket" >&5
5219 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 ac_save_LIBS
="$LIBS"
5224 LIBS
="-lsocket $LIBS"
5225 cat > conftest.
$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5228 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5237 if { (eval echo configure
:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5239 eval "ac_cv_lib_$ac_lib_var=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.
$ac_ext >&5
5244 eval "ac_cv_lib_$ac_lib_var=no"
5247 LIBS
="$ac_save_LIBS"
5250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5251 echo "$ac_t""yes" 1>&6
5252 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5254 cat >> confdefs.h
<<EOF
5255 #define $ac_tr_lib 1
5258 LIBS
="-lsocket $LIBS"
5261 echo "$ac_t""no" 1>&6
5267 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5268 echo "configure:5269: checking for connect in -linet" >&5
5269 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5273 ac_save_LIBS
="$LIBS"
5275 cat > conftest.
$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* Override any gcc2 internal prototype to avoid an error. */
5279 /* We use char because int might match the return type of a gcc2
5280 builtin and then its argument prototype would still apply. */
5287 if { (eval echo configure
:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5289 eval "ac_cv_lib_$ac_lib_var=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.
$ac_ext >&5
5294 eval "ac_cv_lib_$ac_lib_var=no"
5297 LIBS
="$ac_save_LIBS"
5300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5304 cat >> confdefs.h
<<EOF
5305 #define $ac_tr_lib 1
5311 echo "$ac_t""no" 1>&6
5315 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5316 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5317 # ac_cv_func_connect=yes
5318 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5319 cat >> confdefs.h
<<\EOF
5320 #define HAVE_CONNECT 1
5326 ###############################################
5327 # test for where we get get_yp_default_domain() from
5328 for ac_func
in yp_get_default_domain
5330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_func" >&5
5332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.
$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char $ac_func(); below. */
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5348 /* The GNU C library defines this for functions which it implements
5349 to always fail with ENOSYS. Some functions are actually named
5350 something starting with __ and the normal name is an alias. */
5351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5359 if { (eval echo configure
:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5361 eval "ac_cv_func_$ac_func=yes"
5363 echo "configure: failed program was:" >&5
5364 cat conftest.
$ac_ext >&5
5366 eval "ac_cv_func_$ac_func=no"
5371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5372 echo "$ac_t""yes" 1>&6
5373 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5374 cat >> confdefs.h
<<EOF
5375 #define $ac_tr_func 1
5379 echo "$ac_t""no" 1>&6
5383 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5384 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5385 echo "configure:5386: checking for yp_get_default_domain in -lnsl" >&5
5386 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 ac_save_LIBS
="$LIBS"
5392 cat > conftest.
$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 /* Override any gcc2 internal prototype to avoid an error. */
5396 /* We use char because int might match the return type of a gcc2
5397 builtin and then its argument prototype would still apply. */
5398 char yp_get_default_domain();
5401 yp_get_default_domain()
5404 if { (eval echo configure
:5405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5406 eval "ac_cv_lib_$ac_lib_var=yes"
5408 echo "configure: failed program was:" >&5
5409 cat conftest.
$ac_ext >&5
5411 eval "ac_cv_lib_$ac_lib_var=no"
5414 LIBS
="$ac_save_LIBS"
5417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5420 cat >> confdefs.h
<<\EOF
5421 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5425 echo "$ac_t""no" 1>&6
5430 # Check if we have execl, if not we need to compile smbrun.
5431 for ac_func
in execl
5433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_func" >&5
5435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char $ac_func(); below. */
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5462 if { (eval echo configure
:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5464 eval "ac_cv_func_$ac_func=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.
$ac_ext >&5
5469 eval "ac_cv_func_$ac_func=no"
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h
<<EOF
5478 #define $ac_tr_func 1
5482 echo "$ac_t""no" 1>&6
5486 if test x
"$ac_cv_func_execl" = x
"no"; then
5487 RUNPROG
="bin/smbrun"
5492 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
5494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5495 echo "configure:5496: checking for $ac_func" >&5
5496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5499 cat > conftest.
$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 /* System header to define __stub macros and hopefully few prototypes,
5503 which can conflict with char $ac_func(); below. */
5505 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5512 /* The GNU C library defines this for functions which it implements
5513 to always fail with ENOSYS. Some functions are actually named
5514 something starting with __ and the normal name is an alias. */
5515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5523 if { (eval echo configure
:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5525 eval "ac_cv_func_$ac_func=yes"
5527 echo "configure: failed program was:" >&5
5528 cat conftest.
$ac_ext >&5
5530 eval "ac_cv_func_$ac_func=no"
5535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5537 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5538 cat >> confdefs.h
<<EOF
5539 #define $ac_tr_func 1
5543 echo "$ac_t""no" 1>&6
5547 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5550 echo "configure:5551: checking for $ac_func" >&5
5551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 cat > conftest.
$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 /* System header to define __stub macros and hopefully few prototypes,
5558 which can conflict with char $ac_func(); below. */
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5567 /* The GNU C library defines this for functions which it implements
5568 to always fail with ENOSYS. Some functions are actually named
5569 something starting with __ and the normal name is an alias. */
5570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5578 if { (eval echo configure
:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5580 eval "ac_cv_func_$ac_func=yes"
5582 echo "configure: failed program was:" >&5
5583 cat conftest.
$ac_ext >&5
5585 eval "ac_cv_func_$ac_func=no"
5590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5592 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5593 cat >> confdefs.h
<<EOF
5594 #define $ac_tr_func 1
5598 echo "$ac_t""no" 1>&6
5602 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5605 echo "configure:5606: checking for $ac_func" >&5
5606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.
$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 /* System header to define __stub macros and hopefully few prototypes,
5613 which can conflict with char $ac_func(); below. */
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5622 /* The GNU C library defines this for functions which it implements
5623 to always fail with ENOSYS. Some functions are actually named
5624 something starting with __ and the normal name is an alias. */
5625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5633 if { (eval echo configure
:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5635 eval "ac_cv_func_$ac_func=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.
$ac_ext >&5
5640 eval "ac_cv_func_$ac_func=no"
5645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5647 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5648 cat >> confdefs.h
<<EOF
5649 #define $ac_tr_func 1
5653 echo "$ac_t""no" 1>&6
5657 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5660 echo "configure:5661: checking for $ac_func" >&5
5661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5664 cat > conftest.
$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 /* System header to define __stub macros and hopefully few prototypes,
5668 which can conflict with char $ac_func(); below. */
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5677 /* The GNU C library defines this for functions which it implements
5678 to always fail with ENOSYS. Some functions are actually named
5679 something starting with __ and the normal name is an alias. */
5680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5688 if { (eval echo configure
:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5690 eval "ac_cv_func_$ac_func=yes"
5692 echo "configure: failed program was:" >&5
5693 cat conftest.
$ac_ext >&5
5695 eval "ac_cv_func_$ac_func=no"
5700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5701 echo "$ac_t""yes" 1>&6
5702 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5703 cat >> confdefs.h
<<EOF
5704 #define $ac_tr_func 1
5708 echo "$ac_t""no" 1>&6
5712 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5715 echo "configure:5716: checking for $ac_func" >&5
5716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5719 cat > conftest.
$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5722 /* System header to define __stub macros and hopefully few prototypes,
5723 which can conflict with char $ac_func(); below. */
5725 /* Override any gcc2 internal prototype to avoid an error. */
5726 /* We use char because int might match the return type of a gcc2
5727 builtin and then its argument prototype would still apply. */
5732 /* The GNU C library defines this for functions which it implements
5733 to always fail with ENOSYS. Some functions are actually named
5734 something starting with __ and the normal name is an alias. */
5735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5743 if { (eval echo configure
:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5745 eval "ac_cv_func_$ac_func=yes"
5747 echo "configure: failed program was:" >&5
5748 cat conftest.
$ac_ext >&5
5750 eval "ac_cv_func_$ac_func=no"
5755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5756 echo "$ac_t""yes" 1>&6
5757 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5758 cat >> confdefs.h
<<EOF
5759 #define $ac_tr_func 1
5763 echo "$ac_t""no" 1>&6
5767 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5770 echo "configure:5771: checking for $ac_func" >&5
5771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5774 cat > conftest.
$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 /* System header to define __stub macros and hopefully few prototypes,
5778 which can conflict with char $ac_func(); below. */
5780 /* Override any gcc2 internal prototype to avoid an error. */
5781 /* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */
5787 /* The GNU C library defines this for functions which it implements
5788 to always fail with ENOSYS. Some functions are actually named
5789 something starting with __ and the normal name is an alias. */
5790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5798 if { (eval echo configure
:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5800 eval "ac_cv_func_$ac_func=yes"
5802 echo "configure: failed program was:" >&5
5803 cat conftest.
$ac_ext >&5
5805 eval "ac_cv_func_$ac_func=no"
5810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5812 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813 cat >> confdefs.h
<<EOF
5814 #define $ac_tr_func 1
5818 echo "$ac_t""no" 1>&6
5822 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5825 echo "configure:5826: checking for $ac_func" >&5
5826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5827 echo $ac_n "(cached) $ac_c" 1>&6
5829 cat > conftest.
$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 /* System header to define __stub macros and hopefully few prototypes,
5833 which can conflict with char $ac_func(); below. */
5835 /* Override any gcc2 internal prototype to avoid an error. */
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5842 /* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5853 if { (eval echo configure
:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5855 eval "ac_cv_func_$ac_func=yes"
5857 echo "configure: failed program was:" >&5
5858 cat conftest.
$ac_ext >&5
5860 eval "ac_cv_func_$ac_func=no"
5865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5868 cat >> confdefs.h
<<EOF
5869 #define $ac_tr_func 1
5873 echo "$ac_t""no" 1>&6
5877 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5880 echo "configure:5881: checking for $ac_func" >&5
5881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 cat > conftest.
$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* System header to define __stub macros and hopefully few prototypes,
5888 which can conflict with char $ac_func(); below. */
5890 /* Override any gcc2 internal prototype to avoid an error. */
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5897 /* The GNU C library defines this for functions which it implements
5898 to always fail with ENOSYS. Some functions are actually named
5899 something starting with __ and the normal name is an alias. */
5900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5908 if { (eval echo configure
:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5910 eval "ac_cv_func_$ac_func=yes"
5912 echo "configure: failed program was:" >&5
5913 cat conftest.
$ac_ext >&5
5915 eval "ac_cv_func_$ac_func=no"
5920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5922 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5923 cat >> confdefs.h
<<EOF
5924 #define $ac_tr_func 1
5928 echo "$ac_t""no" 1>&6
5932 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5935 echo "configure:5936: checking for $ac_func" >&5
5936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5937 echo $ac_n "(cached) $ac_c" 1>&6
5939 cat > conftest.
$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5942 /* System header to define __stub macros and hopefully few prototypes,
5943 which can conflict with char $ac_func(); below. */
5945 /* Override any gcc2 internal prototype to avoid an error. */
5946 /* We use char because int might match the return type of a gcc2
5947 builtin and then its argument prototype would still apply. */
5952 /* The GNU C library defines this for functions which it implements
5953 to always fail with ENOSYS. Some functions are actually named
5954 something starting with __ and the normal name is an alias. */
5955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5963 if { (eval echo configure
:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5965 eval "ac_cv_func_$ac_func=yes"
5967 echo "configure: failed program was:" >&5
5968 cat conftest.
$ac_ext >&5
5970 eval "ac_cv_func_$ac_func=no"
5975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5976 echo "$ac_t""yes" 1>&6
5977 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5978 cat >> confdefs.h
<<EOF
5979 #define $ac_tr_func 1
5983 echo "$ac_t""no" 1>&6
5987 for ac_func
in syslog vsyslog
5989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_func" >&5
5991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.
$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 /* System header to define __stub macros and hopefully few prototypes,
5998 which can conflict with char $ac_func(); below. */
6000 /* Override any gcc2 internal prototype to avoid an error. */
6001 /* We use char because int might match the return type of a gcc2
6002 builtin and then its argument prototype would still apply. */
6007 /* The GNU C library defines this for functions which it implements
6008 to always fail with ENOSYS. Some functions are actually named
6009 something starting with __ and the normal name is an alias. */
6010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6018 if { (eval echo configure
:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6020 eval "ac_cv_func_$ac_func=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.
$ac_ext >&5
6025 eval "ac_cv_func_$ac_func=no"
6030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6031 echo "$ac_t""yes" 1>&6
6032 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6033 cat >> confdefs.h
<<EOF
6034 #define $ac_tr_func 1
6038 echo "$ac_t""no" 1>&6
6042 # setbuffer is needed for smbtorture
6043 for ac_func
in setbuffer
6045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6046 echo "configure:6047: checking for $ac_func" >&5
6047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6048 echo $ac_n "(cached) $ac_c" 1>&6
6050 cat > conftest.
$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6053 /* System header to define __stub macros and hopefully few prototypes,
6054 which can conflict with char $ac_func(); below. */
6056 /* Override any gcc2 internal prototype to avoid an error. */
6057 /* We use char because int might match the return type of a gcc2
6058 builtin and then its argument prototype would still apply. */
6063 /* The GNU C library defines this for functions which it implements
6064 to always fail with ENOSYS. Some functions are actually named
6065 something starting with __ and the normal name is an alias. */
6066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6074 if { (eval echo configure
:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6076 eval "ac_cv_func_$ac_func=yes"
6078 echo "configure: failed program was:" >&5
6079 cat conftest.
$ac_ext >&5
6081 eval "ac_cv_func_$ac_func=no"
6086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6087 echo "$ac_t""yes" 1>&6
6088 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6089 cat >> confdefs.h
<<EOF
6090 #define $ac_tr_func 1
6094 echo "$ac_t""no" 1>&6
6099 # syscall() is needed for smbwrapper.
6100 for ac_func
in syscall
6102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6103 echo "configure:6104: checking for $ac_func" >&5
6104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6107 cat > conftest.
$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6110 /* System header to define __stub macros and hopefully few prototypes,
6111 which can conflict with char $ac_func(); below. */
6113 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6120 /* The GNU C library defines this for functions which it implements
6121 to always fail with ENOSYS. Some functions are actually named
6122 something starting with __ and the normal name is an alias. */
6123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6131 if { (eval echo configure
:6132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6133 eval "ac_cv_func_$ac_func=yes"
6135 echo "configure: failed program was:" >&5
6136 cat conftest.
$ac_ext >&5
6138 eval "ac_cv_func_$ac_func=no"
6143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6144 echo "$ac_t""yes" 1>&6
6145 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6146 cat >> confdefs.h
<<EOF
6147 #define $ac_tr_func 1
6151 echo "$ac_t""no" 1>&6
6156 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6159 echo "configure:6160: checking for $ac_func" >&5
6160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 cat > conftest.
$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 /* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char $ac_func(); below. */
6169 /* Override any gcc2 internal prototype to avoid an error. */
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6176 /* The GNU C library defines this for functions which it implements
6177 to always fail with ENOSYS. Some functions are actually named
6178 something starting with __ and the normal name is an alias. */
6179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6187 if { (eval echo configure
:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6189 eval "ac_cv_func_$ac_func=yes"
6191 echo "configure: failed program was:" >&5
6192 cat conftest.
$ac_ext >&5
6194 eval "ac_cv_func_$ac_func=no"
6199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6202 cat >> confdefs.h
<<EOF
6203 #define $ac_tr_func 1
6207 echo "$ac_t""no" 1>&6
6211 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6214 echo "configure:6215: checking for $ac_func" >&5
6215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6218 cat > conftest.
$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 /* System header to define __stub macros and hopefully few prototypes,
6222 which can conflict with char $ac_func(); below. */
6224 /* Override any gcc2 internal prototype to avoid an error. */
6225 /* We use char because int might match the return type of a gcc2
6226 builtin and then its argument prototype would still apply. */
6231 /* The GNU C library defines this for functions which it implements
6232 to always fail with ENOSYS. Some functions are actually named
6233 something starting with __ and the normal name is an alias. */
6234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6242 if { (eval echo configure
:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6244 eval "ac_cv_func_$ac_func=yes"
6246 echo "configure: failed program was:" >&5
6247 cat conftest.
$ac_ext >&5
6249 eval "ac_cv_func_$ac_func=no"
6254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6256 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6257 cat >> confdefs.h
<<EOF
6258 #define $ac_tr_func 1
6262 echo "$ac_t""no" 1>&6
6266 for ac_func
in __getcwd _getcwd
6268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_func" >&5
6270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6273 cat > conftest.
$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 /* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char $ac_func(); below. */
6279 /* Override any gcc2 internal prototype to avoid an error. */
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6286 /* The GNU C library defines this for functions which it implements
6287 to always fail with ENOSYS. Some functions are actually named
6288 something starting with __ and the normal name is an alias. */
6289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6297 if { (eval echo configure
:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6299 eval "ac_cv_func_$ac_func=yes"
6301 echo "configure: failed program was:" >&5
6302 cat conftest.
$ac_ext >&5
6304 eval "ac_cv_func_$ac_func=no"
6309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6310 echo "$ac_t""yes" 1>&6
6311 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6312 cat >> confdefs.h
<<EOF
6313 #define $ac_tr_func 1
6317 echo "$ac_t""no" 1>&6
6321 for ac_func
in __xstat __fxstat __lxstat
6323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6324 echo "configure:6325: checking for $ac_func" >&5
6325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6328 cat > conftest.
$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func(); below. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 if { (eval echo configure
:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6354 eval "ac_cv_func_$ac_func=yes"
6356 echo "configure: failed program was:" >&5
6357 cat conftest.
$ac_ext >&5
6359 eval "ac_cv_func_$ac_func=no"
6364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6366 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6367 cat >> confdefs.h
<<EOF
6368 #define $ac_tr_func 1
6372 echo "$ac_t""no" 1>&6
6376 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6379 echo "configure:6380: checking for $ac_func" >&5
6380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6383 cat > conftest.
$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 /* System header to define __stub macros and hopefully few prototypes,
6387 which can conflict with char $ac_func(); below. */
6389 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6396 /* The GNU C library defines this for functions which it implements
6397 to always fail with ENOSYS. Some functions are actually named
6398 something starting with __ and the normal name is an alias. */
6399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6407 if { (eval echo configure
:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6409 eval "ac_cv_func_$ac_func=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.
$ac_ext >&5
6414 eval "ac_cv_func_$ac_func=no"
6419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6420 echo "$ac_t""yes" 1>&6
6421 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6422 cat >> confdefs.h
<<EOF
6423 #define $ac_tr_func 1
6427 echo "$ac_t""no" 1>&6
6431 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6434 echo "configure:6435: checking for $ac_func" >&5
6435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6438 cat > conftest.
$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 /* System header to define __stub macros and hopefully few prototypes,
6442 which can conflict with char $ac_func(); below. */
6444 /* Override any gcc2 internal prototype to avoid an error. */
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6451 /* The GNU C library defines this for functions which it implements
6452 to always fail with ENOSYS. Some functions are actually named
6453 something starting with __ and the normal name is an alias. */
6454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6462 if { (eval echo configure
:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6464 eval "ac_cv_func_$ac_func=yes"
6466 echo "configure: failed program was:" >&5
6467 cat conftest.
$ac_ext >&5
6469 eval "ac_cv_func_$ac_func=no"
6474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6476 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6477 cat >> confdefs.h
<<EOF
6478 #define $ac_tr_func 1
6482 echo "$ac_t""no" 1>&6
6486 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6489 echo "configure:6490: checking for $ac_func" >&5
6490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6493 cat > conftest.
$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* System header to define __stub macros and hopefully few prototypes,
6497 which can conflict with char $ac_func(); below. */
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6506 /* The GNU C library defines this for functions which it implements
6507 to always fail with ENOSYS. Some functions are actually named
6508 something starting with __ and the normal name is an alias. */
6509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6517 if { (eval echo configure
:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6519 eval "ac_cv_func_$ac_func=yes"
6521 echo "configure: failed program was:" >&5
6522 cat conftest.
$ac_ext >&5
6524 eval "ac_cv_func_$ac_func=no"
6529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6530 echo "$ac_t""yes" 1>&6
6531 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6532 cat >> confdefs.h
<<EOF
6533 #define $ac_tr_func 1
6537 echo "$ac_t""no" 1>&6
6541 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6544 echo "configure:6545: checking for $ac_func" >&5
6545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 cat > conftest.
$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 /* System header to define __stub macros and hopefully few prototypes,
6552 which can conflict with char $ac_func(); below. */
6554 /* Override any gcc2 internal prototype to avoid an error. */
6555 /* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */
6561 /* The GNU C library defines this for functions which it implements
6562 to always fail with ENOSYS. Some functions are actually named
6563 something starting with __ and the normal name is an alias. */
6564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6572 if { (eval echo configure
:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6574 eval "ac_cv_func_$ac_func=yes"
6576 echo "configure: failed program was:" >&5
6577 cat conftest.
$ac_ext >&5
6579 eval "ac_cv_func_$ac_func=no"
6584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6585 echo "$ac_t""yes" 1>&6
6586 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6587 cat >> confdefs.h
<<EOF
6588 #define $ac_tr_func 1
6592 echo "$ac_t""no" 1>&6
6596 for ac_func
in _write __write _fork __fork
6598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6599 echo "configure:6600: checking for $ac_func" >&5
6600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6603 cat > conftest.
$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 /* System header to define __stub macros and hopefully few prototypes,
6607 which can conflict with char $ac_func(); below. */
6609 /* Override any gcc2 internal prototype to avoid an error. */
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6616 /* The GNU C library defines this for functions which it implements
6617 to always fail with ENOSYS. Some functions are actually named
6618 something starting with __ and the normal name is an alias. */
6619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6627 if { (eval echo configure
:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6629 eval "ac_cv_func_$ac_func=yes"
6631 echo "configure: failed program was:" >&5
6632 cat conftest.
$ac_ext >&5
6634 eval "ac_cv_func_$ac_func=no"
6639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6641 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6642 cat >> confdefs.h
<<EOF
6643 #define $ac_tr_func 1
6647 echo "$ac_t""no" 1>&6
6651 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6654 echo "configure:6655: checking for $ac_func" >&5
6655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 cat > conftest.
$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* System header to define __stub macros and hopefully few prototypes,
6662 which can conflict with char $ac_func(); below. */
6664 /* Override any gcc2 internal prototype to avoid an error. */
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6671 /* The GNU C library defines this for functions which it implements
6672 to always fail with ENOSYS. Some functions are actually named
6673 something starting with __ and the normal name is an alias. */
6674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6682 if { (eval echo configure
:6683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6684 eval "ac_cv_func_$ac_func=yes"
6686 echo "configure: failed program was:" >&5
6687 cat conftest.
$ac_ext >&5
6689 eval "ac_cv_func_$ac_func=no"
6694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6697 cat >> confdefs.h
<<EOF
6698 #define $ac_tr_func 1
6702 echo "$ac_t""no" 1>&6
6706 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6709 echo "configure:6710: checking for $ac_func" >&5
6710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6713 cat > conftest.
$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6716 /* System header to define __stub macros and hopefully few prototypes,
6717 which can conflict with char $ac_func(); below. */
6719 /* Override any gcc2 internal prototype to avoid an error. */
6720 /* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */
6726 /* The GNU C library defines this for functions which it implements
6727 to always fail with ENOSYS. Some functions are actually named
6728 something starting with __ and the normal name is an alias. */
6729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6737 if { (eval echo configure
:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6739 eval "ac_cv_func_$ac_func=yes"
6741 echo "configure: failed program was:" >&5
6742 cat conftest.
$ac_ext >&5
6744 eval "ac_cv_func_$ac_func=no"
6749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6750 echo "$ac_t""yes" 1>&6
6751 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6752 cat >> confdefs.h
<<EOF
6753 #define $ac_tr_func 1
6757 echo "$ac_t""no" 1>&6
6761 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6764 echo "configure:6765: checking for $ac_func" >&5
6765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6768 cat > conftest.
$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 /* System header to define __stub macros and hopefully few prototypes,
6772 which can conflict with char $ac_func(); below. */
6774 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6781 /* The GNU C library defines this for functions which it implements
6782 to always fail with ENOSYS. Some functions are actually named
6783 something starting with __ and the normal name is an alias. */
6784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6792 if { (eval echo configure
:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6794 eval "ac_cv_func_$ac_func=yes"
6796 echo "configure: failed program was:" >&5
6797 cat conftest.
$ac_ext >&5
6799 eval "ac_cv_func_$ac_func=no"
6804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6805 echo "$ac_t""yes" 1>&6
6806 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6807 cat >> confdefs.h
<<EOF
6808 #define $ac_tr_func 1
6812 echo "$ac_t""no" 1>&6
6816 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6819 echo "configure:6820: checking for $ac_func" >&5
6820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6823 cat > conftest.
$ac_ext <<EOF
6824 #line 6825 "configure"
6825 #include "confdefs.h"
6826 /* System header to define __stub macros and hopefully few prototypes,
6827 which can conflict with char $ac_func(); below. */
6829 /* Override any gcc2 internal prototype to avoid an error. */
6830 /* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6836 /* The GNU C library defines this for functions which it implements
6837 to always fail with ENOSYS. Some functions are actually named
6838 something starting with __ and the normal name is an alias. */
6839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6847 if { (eval echo configure
:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6849 eval "ac_cv_func_$ac_func=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.
$ac_ext >&5
6854 eval "ac_cv_func_$ac_func=no"
6859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6861 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6862 cat >> confdefs.h
<<EOF
6863 #define $ac_tr_func 1
6867 echo "$ac_t""no" 1>&6
6871 for ac_func
in open64 _open64 __open64 creat64
6873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6874 echo "configure:6875: checking for $ac_func" >&5
6875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 cat > conftest.
$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* System header to define __stub macros and hopefully few prototypes,
6882 which can conflict with char $ac_func(); below. */
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 /* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */
6891 /* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
6894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6902 if { (eval echo configure
:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6904 eval "ac_cv_func_$ac_func=yes"
6906 echo "configure: failed program was:" >&5
6907 cat conftest.
$ac_ext >&5
6909 eval "ac_cv_func_$ac_func=no"
6914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6915 echo "$ac_t""yes" 1>&6
6916 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6917 cat >> confdefs.h
<<EOF
6918 #define $ac_tr_func 1
6922 echo "$ac_t""no" 1>&6
6928 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6931 if test x
$ac_cv_func_stat64 = xno
; then
6932 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6933 echo "configure:6934: checking for stat64 in <sys/stat.h>" >&5
6934 cat > conftest.
$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6938 #if defined(HAVE_UNISTD_H)
6941 #include <sys/stat.h>
6944 struct stat64 st64; exit(stat64(".",&st64));
6947 if { (eval echo configure
:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6949 ac_cv_func_stat64
=yes
6951 echo "configure: failed program was:" >&5
6952 cat conftest.
$ac_ext >&5
6955 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6956 if test x
$ac_cv_func_stat64 = xyes
; then
6957 cat >> confdefs.h
<<\EOF
6958 #define HAVE_STAT64 1
6964 if test x
$ac_cv_func_lstat64 = xno
; then
6965 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6966 echo "configure:6967: checking for lstat64 in <sys/stat.h>" >&5
6967 cat > conftest.
$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6971 #if defined(HAVE_UNISTD_H)
6974 #include <sys/stat.h>
6977 struct stat64 st64; exit(lstat64(".",&st64));
6980 if { (eval echo configure
:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6982 ac_cv_func_lstat64
=yes
6984 echo "configure: failed program was:" >&5
6985 cat conftest.
$ac_ext >&5
6988 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6989 if test x
$ac_cv_func_lstat64 = xyes
; then
6990 cat >> confdefs.h
<<\EOF
6991 #define HAVE_LSTAT64 1
6997 if test x
$ac_cv_func_fstat64 = xno
; then
6998 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6999 echo "configure:7000: checking for fstat64 in <sys/stat.h>" >&5
7000 cat > conftest.
$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7004 #if defined(HAVE_UNISTD_H)
7007 #include <sys/stat.h>
7010 struct stat64 st64; exit(fstat64(0,&st64));
7013 if { (eval echo configure
:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7015 ac_cv_func_fstat64
=yes
7017 echo "configure: failed program was:" >&5
7018 cat conftest.
$ac_ext >&5
7021 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7022 if test x
$ac_cv_func_fstat64 = xyes
; then
7023 cat >> confdefs.h
<<\EOF
7024 #define HAVE_FSTAT64 1
7030 #####################################
7031 # we might need the resolv library on some systems
7032 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7033 echo "configure:7034: checking for dn_expand in -lresolv" >&5
7034 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7038 ac_save_LIBS
="$LIBS"
7039 LIBS
="-lresolv $LIBS"
7040 cat > conftest.
$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 /* Override any gcc2 internal prototype to avoid an error. */
7044 /* We use char because int might match the return type of a gcc2
7045 builtin and then its argument prototype would still apply. */
7052 if { (eval echo configure
:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7054 eval "ac_cv_lib_$ac_lib_var=yes"
7056 echo "configure: failed program was:" >&5
7057 cat conftest.
$ac_ext >&5
7059 eval "ac_cv_lib_$ac_lib_var=no"
7062 LIBS
="$ac_save_LIBS"
7065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7067 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7068 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7069 cat >> confdefs.h
<<EOF
7070 #define $ac_tr_lib 1
7073 LIBS
="-lresolv $LIBS"
7076 echo "$ac_t""no" 1>&6
7081 # Check for the functions putprpwnam, set_auth_parameters,
7082 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7083 # Needed for OSF1 and HPUX.
7087 *-lsecurity*) for ac_func
in putprpwnam
7089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7090 echo "configure:7091: checking for $ac_func" >&5
7091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7092 echo $ac_n "(cached) $ac_c" 1>&6
7094 cat > conftest.
$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7097 /* System header to define __stub macros and hopefully few prototypes,
7098 which can conflict with char $ac_func(); below. */
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7107 /* The GNU C library defines this for functions which it implements
7108 to always fail with ENOSYS. Some functions are actually named
7109 something starting with __ and the normal name is an alias. */
7110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7118 if { (eval echo configure
:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7120 eval "ac_cv_func_$ac_func=yes"
7122 echo "configure: failed program was:" >&5
7123 cat conftest.
$ac_ext >&5
7125 eval "ac_cv_func_$ac_func=no"
7130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7131 echo "$ac_t""yes" 1>&6
7132 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7133 cat >> confdefs.h
<<EOF
7134 #define $ac_tr_func 1
7138 echo "$ac_t""no" 1>&6
7142 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7143 echo "configure:7144: checking for putprpwnam in -lsecurity" >&5
7144 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7146 echo $ac_n "(cached) $ac_c" 1>&6
7148 ac_save_LIBS
="$LIBS"
7149 LIBS
="-lsecurity $LIBS"
7150 cat > conftest.
$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7162 if { (eval echo configure
:7163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7164 eval "ac_cv_lib_$ac_lib_var=yes"
7166 echo "configure: failed program was:" >&5
7167 cat conftest.
$ac_ext >&5
7169 eval "ac_cv_lib_$ac_lib_var=no"
7172 LIBS
="$ac_save_LIBS"
7175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7179 cat >> confdefs.h
<<EOF
7180 #define $ac_tr_lib 1
7183 LIBS
="-lsecurity $LIBS"
7186 echo "$ac_t""no" 1>&6
7189 for ac_func
in putprpwnam
7191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7192 echo "configure:7193: checking for $ac_func" >&5
7193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7196 cat > conftest.
$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 /* System header to define __stub macros and hopefully few prototypes,
7200 which can conflict with char $ac_func(); below. */
7202 /* Override any gcc2 internal prototype to avoid an error. */
7203 /* We use char because int might match the return type of a gcc2
7204 builtin and then its argument prototype would still apply. */
7209 /* The GNU C library defines this for functions which it implements
7210 to always fail with ENOSYS. Some functions are actually named
7211 something starting with __ and the normal name is an alias. */
7212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7220 if { (eval echo configure
:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7222 eval "ac_cv_func_$ac_func=yes"
7224 echo "configure: failed program was:" >&5
7225 cat conftest.
$ac_ext >&5
7227 eval "ac_cv_func_$ac_func=no"
7232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7234 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7235 cat >> confdefs.h
<<EOF
7236 #define $ac_tr_func 1
7240 echo "$ac_t""no" 1>&6
7248 *-lsec*) for ac_func
in putprpwnam
7250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7251 echo "configure:7252: checking for $ac_func" >&5
7252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7253 echo $ac_n "(cached) $ac_c" 1>&6
7255 cat > conftest.
$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* System header to define __stub macros and hopefully few prototypes,
7259 which can conflict with char $ac_func(); below. */
7261 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7268 /* The GNU C library defines this for functions which it implements
7269 to always fail with ENOSYS. Some functions are actually named
7270 something starting with __ and the normal name is an alias. */
7271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7279 if { (eval echo configure
:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7281 eval "ac_cv_func_$ac_func=yes"
7283 echo "configure: failed program was:" >&5
7284 cat conftest.
$ac_ext >&5
7286 eval "ac_cv_func_$ac_func=no"
7291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7292 echo "$ac_t""yes" 1>&6
7293 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7294 cat >> confdefs.h
<<EOF
7295 #define $ac_tr_func 1
7299 echo "$ac_t""no" 1>&6
7303 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7304 echo "configure:7305: checking for putprpwnam in -lsec" >&5
7305 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7309 ac_save_LIBS
="$LIBS"
7311 cat > conftest.
$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 /* Override any gcc2 internal prototype to avoid an error. */
7315 /* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */
7323 if { (eval echo configure
:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7325 eval "ac_cv_lib_$ac_lib_var=yes"
7327 echo "configure: failed program was:" >&5
7328 cat conftest.
$ac_ext >&5
7330 eval "ac_cv_lib_$ac_lib_var=no"
7333 LIBS
="$ac_save_LIBS"
7336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7337 echo "$ac_t""yes" 1>&6
7338 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7340 cat >> confdefs.h
<<EOF
7341 #define $ac_tr_lib 1
7347 echo "$ac_t""no" 1>&6
7350 for ac_func
in putprpwnam
7352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7353 echo "configure:7354: checking for $ac_func" >&5
7354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7355 echo $ac_n "(cached) $ac_c" 1>&6
7357 cat > conftest.
$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* System header to define __stub macros and hopefully few prototypes,
7361 which can conflict with char $ac_func(); below. */
7363 /* Override any gcc2 internal prototype to avoid an error. */
7364 /* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7370 /* The GNU C library defines this for functions which it implements
7371 to always fail with ENOSYS. Some functions are actually named
7372 something starting with __ and the normal name is an alias. */
7373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7381 if { (eval echo configure
:7382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7383 eval "ac_cv_func_$ac_func=yes"
7385 echo "configure: failed program was:" >&5
7386 cat conftest.
$ac_ext >&5
7388 eval "ac_cv_func_$ac_func=no"
7393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7394 echo "$ac_t""yes" 1>&6
7395 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7396 cat >> confdefs.h
<<EOF
7397 #define $ac_tr_func 1
7401 echo "$ac_t""no" 1>&6
7410 *-lsecurity*) for ac_func
in set_auth_parameters
7412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7413 echo "configure:7414: checking for $ac_func" >&5
7414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7417 cat > conftest.
$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420 /* System header to define __stub macros and hopefully few prototypes,
7421 which can conflict with char $ac_func(); below. */
7423 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7430 /* The GNU C library defines this for functions which it implements
7431 to always fail with ENOSYS. Some functions are actually named
7432 something starting with __ and the normal name is an alias. */
7433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7441 if { (eval echo configure
:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7443 eval "ac_cv_func_$ac_func=yes"
7445 echo "configure: failed program was:" >&5
7446 cat conftest.
$ac_ext >&5
7448 eval "ac_cv_func_$ac_func=no"
7453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7454 echo "$ac_t""yes" 1>&6
7455 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7456 cat >> confdefs.h
<<EOF
7457 #define $ac_tr_func 1
7461 echo "$ac_t""no" 1>&6
7465 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7466 echo "configure:7467: checking for set_auth_parameters in -lsecurity" >&5
7467 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7471 ac_save_LIBS
="$LIBS"
7472 LIBS
="-lsecurity $LIBS"
7473 cat > conftest.
$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7479 char set_auth_parameters();
7482 set_auth_parameters()
7485 if { (eval echo configure
:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7487 eval "ac_cv_lib_$ac_lib_var=yes"
7489 echo "configure: failed program was:" >&5
7490 cat conftest.
$ac_ext >&5
7492 eval "ac_cv_lib_$ac_lib_var=no"
7495 LIBS
="$ac_save_LIBS"
7498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7502 cat >> confdefs.h
<<EOF
7503 #define $ac_tr_lib 1
7506 LIBS
="-lsecurity $LIBS"
7509 echo "$ac_t""no" 1>&6
7512 for ac_func
in set_auth_parameters
7514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7515 echo "configure:7516: checking for $ac_func" >&5
7516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7519 cat > conftest.
$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 /* System header to define __stub macros and hopefully few prototypes,
7523 which can conflict with char $ac_func(); below. */
7525 /* Override any gcc2 internal prototype to avoid an error. */
7526 /* We use char because int might match the return type of a gcc2
7527 builtin and then its argument prototype would still apply. */
7532 /* The GNU C library defines this for functions which it implements
7533 to always fail with ENOSYS. Some functions are actually named
7534 something starting with __ and the normal name is an alias. */
7535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7543 if { (eval echo configure
:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7545 eval "ac_cv_func_$ac_func=yes"
7547 echo "configure: failed program was:" >&5
7548 cat conftest.
$ac_ext >&5
7550 eval "ac_cv_func_$ac_func=no"
7555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7557 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7558 cat >> confdefs.h
<<EOF
7559 #define $ac_tr_func 1
7563 echo "$ac_t""no" 1>&6
7571 *-lsec*) for ac_func
in set_auth_parameters
7573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7574 echo "configure:7575: checking for $ac_func" >&5
7575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7576 echo $ac_n "(cached) $ac_c" 1>&6
7578 cat > conftest.
$ac_ext <<EOF
7579 #line 7580 "configure"
7580 #include "confdefs.h"
7581 /* System header to define __stub macros and hopefully few prototypes,
7582 which can conflict with char $ac_func(); below. */
7584 /* Override any gcc2 internal prototype to avoid an error. */
7585 /* We use char because int might match the return type of a gcc2
7586 builtin and then its argument prototype would still apply. */
7591 /* The GNU C library defines this for functions which it implements
7592 to always fail with ENOSYS. Some functions are actually named
7593 something starting with __ and the normal name is an alias. */
7594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7602 if { (eval echo configure
:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7604 eval "ac_cv_func_$ac_func=yes"
7606 echo "configure: failed program was:" >&5
7607 cat conftest.
$ac_ext >&5
7609 eval "ac_cv_func_$ac_func=no"
7614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7615 echo "$ac_t""yes" 1>&6
7616 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7617 cat >> confdefs.h
<<EOF
7618 #define $ac_tr_func 1
7622 echo "$ac_t""no" 1>&6
7626 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7627 echo "configure:7628: checking for set_auth_parameters in -lsec" >&5
7628 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7630 echo $ac_n "(cached) $ac_c" 1>&6
7632 ac_save_LIBS
="$LIBS"
7634 cat > conftest.
$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7637 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7640 char set_auth_parameters();
7643 set_auth_parameters()
7646 if { (eval echo configure
:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7648 eval "ac_cv_lib_$ac_lib_var=yes"
7650 echo "configure: failed program was:" >&5
7651 cat conftest.
$ac_ext >&5
7653 eval "ac_cv_lib_$ac_lib_var=no"
7656 LIBS
="$ac_save_LIBS"
7659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7660 echo "$ac_t""yes" 1>&6
7661 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7662 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7663 cat >> confdefs.h
<<EOF
7664 #define $ac_tr_lib 1
7670 echo "$ac_t""no" 1>&6
7673 for ac_func
in set_auth_parameters
7675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7676 echo "configure:7677: checking for $ac_func" >&5
7677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7680 cat > conftest.
$ac_ext <<EOF
7681 #line 7682 "configure"
7682 #include "confdefs.h"
7683 /* System header to define __stub macros and hopefully few prototypes,
7684 which can conflict with char $ac_func(); below. */
7686 /* Override any gcc2 internal prototype to avoid an error. */
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7693 /* The GNU C library defines this for functions which it implements
7694 to always fail with ENOSYS. Some functions are actually named
7695 something starting with __ and the normal name is an alias. */
7696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7704 if { (eval echo configure
:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7706 eval "ac_cv_func_$ac_func=yes"
7708 echo "configure: failed program was:" >&5
7709 cat conftest.
$ac_ext >&5
7711 eval "ac_cv_func_$ac_func=no"
7716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7717 echo "$ac_t""yes" 1>&6
7718 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7719 cat >> confdefs.h
<<EOF
7720 #define $ac_tr_func 1
7724 echo "$ac_t""no" 1>&6
7732 # UnixWare 7.x has its getspnam in -lgen
7734 *-lgen*) for ac_func
in getspnam
7736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_func" >&5
7738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7741 cat > conftest.
$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 /* System header to define __stub macros and hopefully few prototypes,
7745 which can conflict with char $ac_func(); below. */
7747 /* Override any gcc2 internal prototype to avoid an error. */
7748 /* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7754 /* The GNU C library defines this for functions which it implements
7755 to always fail with ENOSYS. Some functions are actually named
7756 something starting with __ and the normal name is an alias. */
7757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7765 if { (eval echo configure
:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7767 eval "ac_cv_func_$ac_func=yes"
7769 echo "configure: failed program was:" >&5
7770 cat conftest.
$ac_ext >&5
7772 eval "ac_cv_func_$ac_func=no"
7777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7778 echo "$ac_t""yes" 1>&6
7779 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7780 cat >> confdefs.h
<<EOF
7781 #define $ac_tr_func 1
7785 echo "$ac_t""no" 1>&6
7789 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7790 echo "configure:7791: checking for getspnam in -lgen" >&5
7791 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7795 ac_save_LIBS
="$LIBS"
7797 cat > conftest.
$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7809 if { (eval echo configure
:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7811 eval "ac_cv_lib_$ac_lib_var=yes"
7813 echo "configure: failed program was:" >&5
7814 cat conftest.
$ac_ext >&5
7816 eval "ac_cv_lib_$ac_lib_var=no"
7819 LIBS
="$ac_save_LIBS"
7822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7823 echo "$ac_t""yes" 1>&6
7824 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7825 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7826 cat >> confdefs.h
<<EOF
7827 #define $ac_tr_lib 1
7833 echo "$ac_t""no" 1>&6
7836 for ac_func
in getspnam
7838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7839 echo "configure:7840: checking for $ac_func" >&5
7840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7841 echo $ac_n "(cached) $ac_c" 1>&6
7843 cat > conftest.
$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* System header to define __stub macros and hopefully few prototypes,
7847 which can conflict with char $ac_func(); below. */
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7856 /* The GNU C library defines this for functions which it implements
7857 to always fail with ENOSYS. Some functions are actually named
7858 something starting with __ and the normal name is an alias. */
7859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7867 if { (eval echo configure
:7868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7869 eval "ac_cv_func_$ac_func=yes"
7871 echo "configure: failed program was:" >&5
7872 cat conftest.
$ac_ext >&5
7874 eval "ac_cv_func_$ac_func=no"
7879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7881 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7882 cat >> confdefs.h
<<EOF
7883 #define $ac_tr_func 1
7887 echo "$ac_t""no" 1>&6
7896 *-lsecurity*) for ac_func
in getspnam
7898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_func" >&5
7900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7903 cat > conftest.
$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 /* System header to define __stub macros and hopefully few prototypes,
7907 which can conflict with char $ac_func(); below. */
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 /* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7916 /* The GNU C library defines this for functions which it implements
7917 to always fail with ENOSYS. Some functions are actually named
7918 something starting with __ and the normal name is an alias. */
7919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7927 if { (eval echo configure
:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7929 eval "ac_cv_func_$ac_func=yes"
7931 echo "configure: failed program was:" >&5
7932 cat conftest.
$ac_ext >&5
7934 eval "ac_cv_func_$ac_func=no"
7939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7940 echo "$ac_t""yes" 1>&6
7941 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7942 cat >> confdefs.h
<<EOF
7943 #define $ac_tr_func 1
7947 echo "$ac_t""no" 1>&6
7951 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7952 echo "configure:7953: checking for getspnam in -lsecurity" >&5
7953 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7957 ac_save_LIBS
="$LIBS"
7958 LIBS
="-lsecurity $LIBS"
7959 cat > conftest.
$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7971 if { (eval echo configure
:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7973 eval "ac_cv_lib_$ac_lib_var=yes"
7975 echo "configure: failed program was:" >&5
7976 cat conftest.
$ac_ext >&5
7978 eval "ac_cv_lib_$ac_lib_var=no"
7981 LIBS
="$ac_save_LIBS"
7984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7987 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7988 cat >> confdefs.h
<<EOF
7989 #define $ac_tr_lib 1
7992 LIBS
="-lsecurity $LIBS"
7995 echo "$ac_t""no" 1>&6
7998 for ac_func
in getspnam
8000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8001 echo "configure:8002: checking for $ac_func" >&5
8002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8005 cat > conftest.
$ac_ext <<EOF
8006 #line 8007 "configure"
8007 #include "confdefs.h"
8008 /* System header to define __stub macros and hopefully few prototypes,
8009 which can conflict with char $ac_func(); below. */
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8018 /* The GNU C library defines this for functions which it implements
8019 to always fail with ENOSYS. Some functions are actually named
8020 something starting with __ and the normal name is an alias. */
8021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8029 if { (eval echo configure
:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8031 eval "ac_cv_func_$ac_func=yes"
8033 echo "configure: failed program was:" >&5
8034 cat conftest.
$ac_ext >&5
8036 eval "ac_cv_func_$ac_func=no"
8041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8042 echo "$ac_t""yes" 1>&6
8043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8044 cat >> confdefs.h
<<EOF
8045 #define $ac_tr_func 1
8049 echo "$ac_t""no" 1>&6
8057 *-lsec*) for ac_func
in getspnam
8059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8060 echo "configure:8061: checking for $ac_func" >&5
8061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8064 cat > conftest.
$ac_ext <<EOF
8065 #line 8066 "configure"
8066 #include "confdefs.h"
8067 /* System header to define __stub macros and hopefully few prototypes,
8068 which can conflict with char $ac_func(); below. */
8070 /* Override any gcc2 internal prototype to avoid an error. */
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8077 /* The GNU C library defines this for functions which it implements
8078 to always fail with ENOSYS. Some functions are actually named
8079 something starting with __ and the normal name is an alias. */
8080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8088 if { (eval echo configure
:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8090 eval "ac_cv_func_$ac_func=yes"
8092 echo "configure: failed program was:" >&5
8093 cat conftest.
$ac_ext >&5
8095 eval "ac_cv_func_$ac_func=no"
8100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8103 cat >> confdefs.h
<<EOF
8104 #define $ac_tr_func 1
8108 echo "$ac_t""no" 1>&6
8112 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8113 echo "configure:8114: checking for getspnam in -lsec" >&5
8114 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8118 ac_save_LIBS
="$LIBS"
8120 cat > conftest.
$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8132 if { (eval echo configure
:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8134 eval "ac_cv_lib_$ac_lib_var=yes"
8136 echo "configure: failed program was:" >&5
8137 cat conftest.
$ac_ext >&5
8139 eval "ac_cv_lib_$ac_lib_var=no"
8142 LIBS
="$ac_save_LIBS"
8145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8146 echo "$ac_t""yes" 1>&6
8147 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8149 cat >> confdefs.h
<<EOF
8150 #define $ac_tr_lib 1
8156 echo "$ac_t""no" 1>&6
8159 for ac_func
in getspnam
8161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8162 echo "configure:8163: checking for $ac_func" >&5
8163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8166 cat > conftest.
$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8169 /* System header to define __stub macros and hopefully few prototypes,
8170 which can conflict with char $ac_func(); below. */
8172 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8179 /* The GNU C library defines this for functions which it implements
8180 to always fail with ENOSYS. Some functions are actually named
8181 something starting with __ and the normal name is an alias. */
8182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8190 if { (eval echo configure
:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8192 eval "ac_cv_func_$ac_func=yes"
8194 echo "configure: failed program was:" >&5
8195 cat conftest.
$ac_ext >&5
8197 eval "ac_cv_func_$ac_func=no"
8202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8203 echo "$ac_t""yes" 1>&6
8204 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8205 cat >> confdefs.h
<<EOF
8206 #define $ac_tr_func 1
8210 echo "$ac_t""no" 1>&6
8219 *-lsecurity*) for ac_func
in bigcrypt
8221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8222 echo "configure:8223: checking for $ac_func" >&5
8223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8226 cat > conftest.
$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 /* System header to define __stub macros and hopefully few prototypes,
8230 which can conflict with char $ac_func(); below. */
8232 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8239 /* The GNU C library defines this for functions which it implements
8240 to always fail with ENOSYS. Some functions are actually named
8241 something starting with __ and the normal name is an alias. */
8242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8250 if { (eval echo configure
:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8252 eval "ac_cv_func_$ac_func=yes"
8254 echo "configure: failed program was:" >&5
8255 cat conftest.
$ac_ext >&5
8257 eval "ac_cv_func_$ac_func=no"
8262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8263 echo "$ac_t""yes" 1>&6
8264 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8265 cat >> confdefs.h
<<EOF
8266 #define $ac_tr_func 1
8270 echo "$ac_t""no" 1>&6
8274 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8275 echo "configure:8276: checking for bigcrypt in -lsecurity" >&5
8276 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8278 echo $ac_n "(cached) $ac_c" 1>&6
8280 ac_save_LIBS
="$LIBS"
8281 LIBS
="-lsecurity $LIBS"
8282 cat > conftest.
$ac_ext <<EOF
8283 #line 8284 "configure"
8284 #include "confdefs.h"
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8294 if { (eval echo configure
:8295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8296 eval "ac_cv_lib_$ac_lib_var=yes"
8298 echo "configure: failed program was:" >&5
8299 cat conftest.
$ac_ext >&5
8301 eval "ac_cv_lib_$ac_lib_var=no"
8304 LIBS
="$ac_save_LIBS"
8307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8308 echo "$ac_t""yes" 1>&6
8309 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8311 cat >> confdefs.h
<<EOF
8312 #define $ac_tr_lib 1
8315 LIBS
="-lsecurity $LIBS"
8318 echo "$ac_t""no" 1>&6
8321 for ac_func
in bigcrypt
8323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8324 echo "configure:8325: checking for $ac_func" >&5
8325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8328 cat > conftest.
$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* System header to define __stub macros and hopefully few prototypes,
8332 which can conflict with char $ac_func(); below. */
8334 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8341 /* The GNU C library defines this for functions which it implements
8342 to always fail with ENOSYS. Some functions are actually named
8343 something starting with __ and the normal name is an alias. */
8344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8352 if { (eval echo configure
:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8354 eval "ac_cv_func_$ac_func=yes"
8356 echo "configure: failed program was:" >&5
8357 cat conftest.
$ac_ext >&5
8359 eval "ac_cv_func_$ac_func=no"
8364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8365 echo "$ac_t""yes" 1>&6
8366 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8367 cat >> confdefs.h
<<EOF
8368 #define $ac_tr_func 1
8372 echo "$ac_t""no" 1>&6
8380 *-lsec*) for ac_func
in bigcrypt
8382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8383 echo "configure:8384: checking for $ac_func" >&5
8384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8385 echo $ac_n "(cached) $ac_c" 1>&6
8387 cat > conftest.
$ac_ext <<EOF
8388 #line 8389 "configure"
8389 #include "confdefs.h"
8390 /* System header to define __stub macros and hopefully few prototypes,
8391 which can conflict with char $ac_func(); below. */
8393 /* Override any gcc2 internal prototype to avoid an error. */
8394 /* We use char because int might match the return type of a gcc2
8395 builtin and then its argument prototype would still apply. */
8400 /* The GNU C library defines this for functions which it implements
8401 to always fail with ENOSYS. Some functions are actually named
8402 something starting with __ and the normal name is an alias. */
8403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8411 if { (eval echo configure
:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8413 eval "ac_cv_func_$ac_func=yes"
8415 echo "configure: failed program was:" >&5
8416 cat conftest.
$ac_ext >&5
8418 eval "ac_cv_func_$ac_func=no"
8423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8424 echo "$ac_t""yes" 1>&6
8425 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8426 cat >> confdefs.h
<<EOF
8427 #define $ac_tr_func 1
8431 echo "$ac_t""no" 1>&6
8435 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8436 echo "configure:8437: checking for bigcrypt in -lsec" >&5
8437 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8441 ac_save_LIBS
="$LIBS"
8443 cat > conftest.
$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8455 if { (eval echo configure
:8456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8457 eval "ac_cv_lib_$ac_lib_var=yes"
8459 echo "configure: failed program was:" >&5
8460 cat conftest.
$ac_ext >&5
8462 eval "ac_cv_lib_$ac_lib_var=no"
8465 LIBS
="$ac_save_LIBS"
8468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8469 echo "$ac_t""yes" 1>&6
8470 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8471 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8472 cat >> confdefs.h
<<EOF
8473 #define $ac_tr_lib 1
8479 echo "$ac_t""no" 1>&6
8482 for ac_func
in bigcrypt
8484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8485 echo "configure:8486: checking for $ac_func" >&5
8486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
8489 cat > conftest.
$ac_ext <<EOF
8490 #line 8491 "configure"
8491 #include "confdefs.h"
8492 /* System header to define __stub macros and hopefully few prototypes,
8493 which can conflict with char $ac_func(); below. */
8495 /* Override any gcc2 internal prototype to avoid an error. */
8496 /* We use char because int might match the return type of a gcc2
8497 builtin and then its argument prototype would still apply. */
8502 /* The GNU C library defines this for functions which it implements
8503 to always fail with ENOSYS. Some functions are actually named
8504 something starting with __ and the normal name is an alias. */
8505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8513 if { (eval echo configure
:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8515 eval "ac_cv_func_$ac_func=yes"
8517 echo "configure: failed program was:" >&5
8518 cat conftest.
$ac_ext >&5
8520 eval "ac_cv_func_$ac_func=no"
8525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8526 echo "$ac_t""yes" 1>&6
8527 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8528 cat >> confdefs.h
<<EOF
8529 #define $ac_tr_func 1
8533 echo "$ac_t""no" 1>&6
8542 *-lsecurity*) for ac_func
in getprpwnam
8544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8545 echo "configure:8546: checking for $ac_func" >&5
8546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8547 echo $ac_n "(cached) $ac_c" 1>&6
8549 cat > conftest.
$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 /* System header to define __stub macros and hopefully few prototypes,
8553 which can conflict with char $ac_func(); below. */
8555 /* Override any gcc2 internal prototype to avoid an error. */
8556 /* We use char because int might match the return type of a gcc2
8557 builtin and then its argument prototype would still apply. */
8562 /* The GNU C library defines this for functions which it implements
8563 to always fail with ENOSYS. Some functions are actually named
8564 something starting with __ and the normal name is an alias. */
8565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8573 if { (eval echo configure
:8574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8575 eval "ac_cv_func_$ac_func=yes"
8577 echo "configure: failed program was:" >&5
8578 cat conftest.
$ac_ext >&5
8580 eval "ac_cv_func_$ac_func=no"
8585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8586 echo "$ac_t""yes" 1>&6
8587 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8588 cat >> confdefs.h
<<EOF
8589 #define $ac_tr_func 1
8593 echo "$ac_t""no" 1>&6
8597 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8598 echo "configure:8599: checking for getprpwnam in -lsecurity" >&5
8599 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8603 ac_save_LIBS
="$LIBS"
8604 LIBS
="-lsecurity $LIBS"
8605 cat > conftest.
$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8617 if { (eval echo configure
:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8619 eval "ac_cv_lib_$ac_lib_var=yes"
8621 echo "configure: failed program was:" >&5
8622 cat conftest.
$ac_ext >&5
8624 eval "ac_cv_lib_$ac_lib_var=no"
8627 LIBS
="$ac_save_LIBS"
8630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8631 echo "$ac_t""yes" 1>&6
8632 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8633 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8634 cat >> confdefs.h
<<EOF
8635 #define $ac_tr_lib 1
8638 LIBS
="-lsecurity $LIBS"
8641 echo "$ac_t""no" 1>&6
8644 for ac_func
in getprpwnam
8646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8647 echo "configure:8648: checking for $ac_func" >&5
8648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8651 cat > conftest.
$ac_ext <<EOF
8652 #line 8653 "configure"
8653 #include "confdefs.h"
8654 /* System header to define __stub macros and hopefully few prototypes,
8655 which can conflict with char $ac_func(); below. */
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8664 /* The GNU C library defines this for functions which it implements
8665 to always fail with ENOSYS. Some functions are actually named
8666 something starting with __ and the normal name is an alias. */
8667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8675 if { (eval echo configure
:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8677 eval "ac_cv_func_$ac_func=yes"
8679 echo "configure: failed program was:" >&5
8680 cat conftest.
$ac_ext >&5
8682 eval "ac_cv_func_$ac_func=no"
8687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8688 echo "$ac_t""yes" 1>&6
8689 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8690 cat >> confdefs.h
<<EOF
8691 #define $ac_tr_func 1
8695 echo "$ac_t""no" 1>&6
8703 *-lsec*) for ac_func
in getprpwnam
8705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8706 echo "configure:8707: checking for $ac_func" >&5
8707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
8710 cat > conftest.
$ac_ext <<EOF
8711 #line 8712 "configure"
8712 #include "confdefs.h"
8713 /* System header to define __stub macros and hopefully few prototypes,
8714 which can conflict with char $ac_func(); below. */
8716 /* Override any gcc2 internal prototype to avoid an error. */
8717 /* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */
8723 /* The GNU C library defines this for functions which it implements
8724 to always fail with ENOSYS. Some functions are actually named
8725 something starting with __ and the normal name is an alias. */
8726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8734 if { (eval echo configure
:8735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8736 eval "ac_cv_func_$ac_func=yes"
8738 echo "configure: failed program was:" >&5
8739 cat conftest.
$ac_ext >&5
8741 eval "ac_cv_func_$ac_func=no"
8746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8747 echo "$ac_t""yes" 1>&6
8748 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8749 cat >> confdefs.h
<<EOF
8750 #define $ac_tr_func 1
8754 echo "$ac_t""no" 1>&6
8758 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8759 echo "configure:8760: checking for getprpwnam in -lsec" >&5
8760 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8764 ac_save_LIBS
="$LIBS"
8766 cat > conftest.
$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8769 /* Override any gcc2 internal prototype to avoid an error. */
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8778 if { (eval echo configure
:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8780 eval "ac_cv_lib_$ac_lib_var=yes"
8782 echo "configure: failed program was:" >&5
8783 cat conftest.
$ac_ext >&5
8785 eval "ac_cv_lib_$ac_lib_var=no"
8788 LIBS
="$ac_save_LIBS"
8791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8792 echo "$ac_t""yes" 1>&6
8793 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8794 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8795 cat >> confdefs.h
<<EOF
8796 #define $ac_tr_lib 1
8802 echo "$ac_t""no" 1>&6
8805 for ac_func
in getprpwnam
8807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8808 echo "configure:8809: checking for $ac_func" >&5
8809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8810 echo $ac_n "(cached) $ac_c" 1>&6
8812 cat > conftest.
$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 /* System header to define __stub macros and hopefully few prototypes,
8816 which can conflict with char $ac_func(); below. */
8818 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8825 /* The GNU C library defines this for functions which it implements
8826 to always fail with ENOSYS. Some functions are actually named
8827 something starting with __ and the normal name is an alias. */
8828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8836 if { (eval echo configure
:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8838 eval "ac_cv_func_$ac_func=yes"
8840 echo "configure: failed program was:" >&5
8841 cat conftest.
$ac_ext >&5
8843 eval "ac_cv_func_$ac_func=no"
8848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8849 echo "$ac_t""yes" 1>&6
8850 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8851 cat >> confdefs.h
<<EOF
8852 #define $ac_tr_func 1
8856 echo "$ac_t""no" 1>&6
8864 # this bit needs to be modified for each OS that is suported by
8865 # smbwrapper. You need to specify how to created a shared library and
8866 # how to compile C code to produce PIC object files
8868 # these are the defaults, good for lots of systems
8876 # Assume non-shared by default and override below
8878 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8879 echo "configure:8880: checking ability to build shared libraries" >&5
8881 # and these are for particular systems
8883 *linux
*) cat >> confdefs.h
<<\EOF
8889 DYNEXP
="-Wl,--export-dynamic"
8891 cat >> confdefs.h
<<\EOF
8892 #define STAT_ST_BLOCKSIZE 512
8897 cat >> confdefs.h
<<\EOF
8902 LDSHFLAGS
="-h \$@ -G"
8903 if test "${GCC}" = "yes"; then
8907 ## ${CFLAGS} added for building 64-bit shared
8908 ## libs using Sun's Compiler
8909 LDSHFLAGS
="-G \${CFLAGS}"
8913 cat >> confdefs.h
<<\EOF
8914 #define STAT_ST_BLOCKSIZE 512
8918 *sunos
*) cat >> confdefs.h
<<\EOF
8923 LDSHFLAGS
="-Wl,-h,\$@ -G"
8924 PICFLAG
="-KPIC" # Is this correct for SunOS
8926 *bsd
*) BLDSHARED
="true"
8927 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8928 DYNEXP
="-Wl,-Bdynamic"
8930 cat >> confdefs.h
<<\EOF
8931 #define STAT_ST_BLOCKSIZE 512
8935 *irix
*) cat >> confdefs.h
<<\EOF
8940 *irix6
*) cat >> confdefs.h
<<\EOF
8946 ATTEMPT_WRAP32_BUILD
=yes
8948 LDSHFLAGS
="-soname \$@ -shared"
8950 if test "${GCC}" = "yes"; then
8955 cat >> confdefs.h
<<\EOF
8956 #define STAT_ST_BLOCKSIZE 512
8960 *aix
*) cat >> confdefs.h
<<\EOF
8965 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8966 PICFLAG
="-O2 -qmaxmem=6000"
8967 cat >> confdefs.h
<<\EOF
8968 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8972 *hpux
*) cat >> confdefs.h
<<\EOF
8977 # Use special PIC flags for the native HP-UX compiler.
8978 if test $ac_cv_prog_cc_Ae = yes; then
8981 LDSHFLAGS
="-B symbolic -b -z +h \$@"
8985 cat >> confdefs.h
<<\EOF
8986 #define STAT_ST_BLOCKSIZE 8192
8990 *qnx
*) cat >> confdefs.h
<<\EOF
8994 *osf
*) cat >> confdefs.h
<<\EOF
8999 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
9003 cat >> confdefs.h
<<\EOF
9008 *unixware
*) cat >> confdefs.h
<<\EOF
9013 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
9016 *next2
*) cat >> confdefs.h
<<\EOF
9020 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
9021 set dummy
groff; ac_word
=$2
9022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9023 echo "configure:9024: checking for $ac_word" >&5
9024 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9027 if test -n "$ROFF"; then
9028 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
9030 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
9032 for ac_dir
in $ac_dummy; do
9033 test -z "$ac_dir" && ac_dir
=.
9034 if test -f $ac_dir/$ac_word; then
9035 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
9042 ROFF
="$ac_cv_prog_ROFF"
9043 if test -n "$ROFF"; then
9044 echo "$ac_t""$ROFF" 1>&6
9046 echo "$ac_t""no" 1>&6
9052 if test "$GCC" != yes ; then
9053 cat >> confdefs.h
<<\EOF
9054 #define HAVE_MEMSET 1
9062 cat >> confdefs.h
<<\EOF
9063 #define RELIANTUNIX 1
9071 if test "$GCC" != yes ; then
9072 cat >> confdefs.h
<<\EOF
9073 #define HAVE_MEMSET 1
9081 echo "$ac_t""$BLDSHARED" 1>&6
9082 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9083 echo "configure:9084: checking linker flags for shared libraries" >&5
9084 echo "$ac_t""$LDSHFLAGS" 1>&6
9085 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9086 echo "configure:9087: checking compiler flags for position-independent code" >&5
9087 echo "$ac_t""$PICFLAGS" 1>&6
9089 #######################################################
9090 # test whether building a shared library actually works
9091 if test $BLDSHARED = true
; then
9092 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9093 echo "configure:9094: checking whether building shared libraries actually works" >&5
9094 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9098 ac_cv_shlib_works
=no
9099 # try building a trivial shared library
9100 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
9101 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po
&&
9102 ac_cv_shlib_works
=yes
9103 rm -f shlib.so shlib.po
9107 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9108 if test $ac_cv_shlib_works = no
; then
9114 # this updates our target list if we can build shared libs
9115 if test $BLDSHARED = true
; then
9116 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
9118 LIBSMBCLIENT_SHARED
=
9123 echo $ac_n "checking for long long""... $ac_c" 1>&6
9124 echo "configure:9125: checking for long long" >&5
9125 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9126 echo $ac_n "(cached) $ac_c" 1>&6
9129 if test "$cross_compiling" = yes; then
9130 samba_cv_have_longlong
=cross
9132 cat > conftest.
$ac_ext <<EOF
9133 #line 9134 "configure"
9134 #include "confdefs.h"
9136 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9138 if { (eval echo configure
:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9140 samba_cv_have_longlong
=yes
9142 echo "configure: failed program was:" >&5
9143 cat conftest.
$ac_ext >&5
9145 samba_cv_have_longlong
=no
9152 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9153 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9154 cat >> confdefs.h
<<\EOF
9155 #define HAVE_LONGLONG 1
9161 # Check if the compiler supports the LL prefix on long long integers.
9164 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9165 echo "configure:9166: checking for LL suffix on long long integers" >&5
9166 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9170 cat > conftest.
$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9175 long long i = 0x8000000000LL
9178 if { (eval echo configure
:9179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9180 samba_cv_compiler_supports_ll
=yes
9182 echo "configure: failed program was:" >&5
9183 cat conftest.
$ac_ext >&5
9185 samba_cv_compiler_supports_ll
=no
9190 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9191 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9192 cat >> confdefs.h
<<\EOF
9193 #define COMPILER_SUPPORTS_LL 1
9199 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9200 echo "configure:9201: checking for 64 bit off_t" >&5
9201 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9205 if test "$cross_compiling" = yes; then
9206 samba_cv_SIZEOF_OFF_T
=cross
9208 cat > conftest.
$ac_ext <<EOF
9209 #line 9210 "configure"
9210 #include "confdefs.h"
9212 #include <sys/stat.h>
9213 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9215 if { (eval echo configure
:9216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9217 samba_cv_SIZEOF_OFF_T
=yes
9219 echo "configure: failed program was:" >&5
9220 cat conftest.
$ac_ext >&5
9222 samba_cv_SIZEOF_OFF_T
=no
9229 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9230 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9231 cat >> confdefs.h
<<\EOF
9232 #define SIZEOF_OFF_T 8
9237 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9238 echo "configure:9239: checking for off64_t" >&5
9239 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9240 echo $ac_n "(cached) $ac_c" 1>&6
9243 if test "$cross_compiling" = yes; then
9244 samba_cv_HAVE_OFF64_T
=cross
9246 cat > conftest.
$ac_ext <<EOF
9247 #line 9248 "configure"
9248 #include "confdefs.h"
9250 #if defined(HAVE_UNISTD_H)
9254 #include <sys/stat.h>
9255 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9257 if { (eval echo configure
:9258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9259 samba_cv_HAVE_OFF64_T
=yes
9261 echo "configure: failed program was:" >&5
9262 cat conftest.
$ac_ext >&5
9264 samba_cv_HAVE_OFF64_T
=no
9271 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9272 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9273 cat >> confdefs.h
<<\EOF
9274 #define HAVE_OFF64_T 1
9279 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9280 echo "configure:9281: checking for 64 bit ino_t" >&5
9281 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9285 if test "$cross_compiling" = yes; then
9286 samba_cv_SIZEOF_INO_T
=cross
9288 cat > conftest.
$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9292 #include <sys/stat.h>
9293 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9295 if { (eval echo configure
:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9297 samba_cv_SIZEOF_INO_T
=yes
9299 echo "configure: failed program was:" >&5
9300 cat conftest.
$ac_ext >&5
9302 samba_cv_SIZEOF_INO_T
=no
9309 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9310 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9311 cat >> confdefs.h
<<\EOF
9312 #define SIZEOF_INO_T 8
9317 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9318 echo "configure:9319: checking for ino64_t" >&5
9319 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9323 if test "$cross_compiling" = yes; then
9324 samba_cv_HAVE_INO64_T
=cross
9326 cat > conftest.
$ac_ext <<EOF
9327 #line 9328 "configure"
9328 #include "confdefs.h"
9330 #if defined(HAVE_UNISTD_H)
9334 #include <sys/stat.h>
9335 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9337 if { (eval echo configure
:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9339 samba_cv_HAVE_INO64_T
=yes
9341 echo "configure: failed program was:" >&5
9342 cat conftest.
$ac_ext >&5
9344 samba_cv_HAVE_INO64_T
=no
9351 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9352 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9353 cat >> confdefs.h
<<\EOF
9354 #define HAVE_INO64_T 1
9359 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9360 echo "configure:9361: checking for dev64_t" >&5
9361 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9365 if test "$cross_compiling" = yes; then
9366 samba_cv_HAVE_DEV64_T
=cross
9368 cat > conftest.
$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9372 #if defined(HAVE_UNISTD_H)
9376 #include <sys/stat.h>
9377 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9379 if { (eval echo configure
:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9381 samba_cv_HAVE_DEV64_T
=yes
9383 echo "configure: failed program was:" >&5
9384 cat conftest.
$ac_ext >&5
9386 samba_cv_HAVE_DEV64_T
=no
9393 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9394 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9395 cat >> confdefs.h
<<\EOF
9396 #define HAVE_DEV64_T 1
9401 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9402 echo "configure:9403: checking for struct dirent64" >&5
9403 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
9407 cat > conftest.
$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9411 #if defined(HAVE_UNISTD_H)
9414 #include <sys/types.h>
9420 if { (eval echo configure
:9421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9422 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9424 echo "configure: failed program was:" >&5
9425 cat conftest.
$ac_ext >&5
9427 samba_cv_HAVE_STRUCT_DIRENT64
=no
9432 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9433 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
9434 cat >> confdefs.h
<<\EOF
9435 #define HAVE_STRUCT_DIRENT64 1
9440 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9441 echo "configure:9442: checking for major macro" >&5
9442 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9443 echo $ac_n "(cached) $ac_c" 1>&6
9446 if test "$cross_compiling" = yes; then
9447 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9449 cat > conftest.
$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9453 #if defined(HAVE_UNISTD_H)
9456 #include <sys/types.h>
9457 main() { dev_t dev; int i = major(dev); return 0; }
9459 if { (eval echo configure
:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9461 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9463 echo "configure: failed program was:" >&5
9464 cat conftest.
$ac_ext >&5
9466 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9473 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9474 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9475 cat >> confdefs.h
<<\EOF
9476 #define HAVE_DEVICE_MAJOR_FN 1
9481 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9482 echo "configure:9483: checking for minor macro" >&5
9483 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9487 if test "$cross_compiling" = yes; then
9488 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9490 cat > conftest.
$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9494 #if defined(HAVE_UNISTD_H)
9497 #include <sys/types.h>
9498 main() { dev_t dev; int i = minor(dev); return 0; }
9500 if { (eval echo configure
:9501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9502 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9504 echo "configure: failed program was:" >&5
9505 cat conftest.
$ac_ext >&5
9507 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9514 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9515 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9516 cat >> confdefs.h
<<\EOF
9517 #define HAVE_DEVICE_MINOR_FN 1
9522 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9523 echo "configure:9524: checking for unsigned char" >&5
9524 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9528 if test "$cross_compiling" = yes; then
9529 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9531 cat > conftest.
$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9535 main() { char c; c=250; exit((c > 0)?0:1); }
9537 if { (eval echo configure
:9538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9539 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9541 echo "configure: failed program was:" >&5
9542 cat conftest.
$ac_ext >&5
9544 samba_cv_HAVE_UNSIGNED_CHAR
=no
9551 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9552 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9553 cat >> confdefs.h
<<\EOF
9554 #define HAVE_UNSIGNED_CHAR 1
9559 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9560 echo "configure:9561: checking for sin_len in sock" >&5
9561 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9565 cat > conftest.
$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9569 #include <sys/socket.h>
9570 #include <netinet/in.h>
9572 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9575 if { (eval echo configure
:9576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9577 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9579 echo "configure: failed program was:" >&5
9580 cat conftest.
$ac_ext >&5
9582 samba_cv_HAVE_SOCK_SIN_LEN
=no
9587 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9588 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9589 cat >> confdefs.h
<<\EOF
9590 #define HAVE_SOCK_SIN_LEN 1
9595 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9596 echo "configure:9597: checking whether seekdir returns void" >&5
9597 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9601 cat > conftest.
$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9604 #include <sys/types.h>
9606 void seekdir(DIR *d, long loc) { return; }
9611 if { (eval echo configure
:9612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9613 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9615 echo "configure: failed program was:" >&5
9616 cat conftest.
$ac_ext >&5
9618 samba_cv_SEEKDIR_RETURNS_VOID
=no
9623 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9624 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9625 cat >> confdefs.h
<<\EOF
9626 #define SEEKDIR_RETURNS_VOID 1
9631 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9632 echo "configure:9633: checking for __FILE__ macro" >&5
9633 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9637 cat > conftest.
$ac_ext <<EOF
9638 #line 9639 "configure"
9639 #include "confdefs.h"
9642 printf("%s\n", __FILE__);
9645 if { (eval echo configure
:9646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9647 samba_cv_HAVE_FILE_MACRO
=yes
9649 echo "configure: failed program was:" >&5
9650 cat conftest.
$ac_ext >&5
9652 samba_cv_HAVE_FILE_MACRO
=no
9657 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9658 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9659 cat >> confdefs.h
<<\EOF
9660 #define HAVE_FILE_MACRO 1
9665 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9666 echo "configure:9667: checking for __FUNCTION__ macro" >&5
9667 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9671 cat > conftest.
$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9676 printf("%s\n", __FUNCTION__);
9679 if { (eval echo configure
:9680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9681 samba_cv_HAVE_FUNCTION_MACRO
=yes
9683 echo "configure: failed program was:" >&5
9684 cat conftest.
$ac_ext >&5
9686 samba_cv_HAVE_FUNCTION_MACRO
=no
9691 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9692 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9693 cat >> confdefs.h
<<\EOF
9694 #define HAVE_FUNCTION_MACRO 1
9699 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9700 echo "configure:9701: checking if gettimeofday takes tz argument" >&5
9701 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9705 if test "$cross_compiling" = yes; then
9706 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9708 cat > conftest.
$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9712 #include <sys/time.h>
9714 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9716 if { (eval echo configure
:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9718 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9720 echo "configure: failed program was:" >&5
9721 cat conftest.
$ac_ext >&5
9723 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9730 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9731 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9732 cat >> confdefs.h
<<\EOF
9733 #define HAVE_GETTIMEOFDAY_TZ 1
9738 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9739 echo "configure:9740: checking for __va_copy" >&5
9740 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9741 echo $ac_n "(cached) $ac_c" 1>&6
9744 cat > conftest.
$ac_ext <<EOF
9745 #line 9746 "configure"
9746 #include "confdefs.h"
9753 if { (eval echo configure
:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9755 samba_cv_HAVE_VA_COPY
=yes
9757 echo "configure: failed program was:" >&5
9758 cat conftest.
$ac_ext >&5
9760 samba_cv_HAVE_VA_COPY
=no
9765 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9766 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9767 cat >> confdefs.h
<<\EOF
9768 #define HAVE_VA_COPY 1
9773 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9774 echo "configure:9775: checking for C99 vsnprintf" >&5
9775 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9779 if test "$cross_compiling" = yes; then
9780 samba_cv_HAVE_C99_VSNPRINTF
=cross
9782 cat > conftest.
$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9786 #include <sys/types.h>
9788 void foo(const char *format, ...) {
9793 va_start(ap, format);
9794 len = vsnprintf(buf, 0, format, ap);
9796 if (len != 5) exit(1);
9798 va_start(ap, format);
9799 len = vsnprintf(0, 0, format, ap);
9801 if (len != 5) exit(1);
9803 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9807 main() { foo("hello"); }
9810 if { (eval echo configure
:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9812 samba_cv_HAVE_C99_VSNPRINTF
=yes
9814 echo "configure: failed program was:" >&5
9815 cat conftest.
$ac_ext >&5
9817 samba_cv_HAVE_C99_VSNPRINTF
=no
9824 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9825 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9826 cat >> confdefs.h
<<\EOF
9827 #define HAVE_C99_VSNPRINTF 1
9832 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9833 echo "configure:9834: checking for broken readdir" >&5
9834 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9835 echo $ac_n "(cached) $ac_c" 1>&6
9838 if test "$cross_compiling" = yes; then
9839 samba_cv_HAVE_BROKEN_READDIR
=cross
9841 cat > conftest.
$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 #include <sys/types.h>
9846 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9847 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9848 di->d_name[0] == 0) exit(0); exit(1);}
9850 if { (eval echo configure
:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9852 samba_cv_HAVE_BROKEN_READDIR
=yes
9854 echo "configure: failed program was:" >&5
9855 cat conftest.
$ac_ext >&5
9857 samba_cv_HAVE_BROKEN_READDIR
=no
9864 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9865 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9866 cat >> confdefs.h
<<\EOF
9867 #define HAVE_BROKEN_READDIR 1
9872 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9873 echo "configure:9874: checking for utimbuf" >&5
9874 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9878 cat > conftest.
$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include <sys/types.h>
9884 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9887 if { (eval echo configure
:9888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9889 samba_cv_HAVE_UTIMBUF
=yes
9891 echo "configure: failed program was:" >&5
9892 cat conftest.
$ac_ext >&5
9894 samba_cv_HAVE_UTIMBUF
=no
9899 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9900 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9901 cat >> confdefs.h
<<\EOF
9902 #define HAVE_UTIMBUF 1
9908 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9911 echo "configure:9912: checking for $ac_func" >&5
9912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9913 echo $ac_n "(cached) $ac_c" 1>&6
9915 cat > conftest.
$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 /* System header to define __stub macros and hopefully few prototypes,
9919 which can conflict with char $ac_func(); below. */
9921 /* Override any gcc2 internal prototype to avoid an error. */
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9939 if { (eval echo configure
:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9941 eval "ac_cv_func_$ac_func=yes"
9943 echo "configure: failed program was:" >&5
9944 cat conftest.
$ac_ext >&5
9946 eval "ac_cv_func_$ac_func=no"
9951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9952 echo "$ac_t""yes" 1>&6
9953 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9954 cat >> confdefs.h
<<EOF
9955 #define $ac_tr_func 1
9959 echo "$ac_t""no" 1>&6
9964 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9965 echo "configure:9966: checking for ut_name in utmp" >&5
9966 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9967 echo $ac_n "(cached) $ac_c" 1>&6
9970 cat > conftest.
$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 #include <sys/types.h>
9976 struct utmp ut; ut.ut_name[0] = 'a';
9979 if { (eval echo configure
:9980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9981 samba_cv_HAVE_UT_UT_NAME
=yes
9983 echo "configure: failed program was:" >&5
9984 cat conftest.
$ac_ext >&5
9986 samba_cv_HAVE_UT_UT_NAME
=no
9991 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9992 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9993 cat >> confdefs.h
<<\EOF
9994 #define HAVE_UT_UT_NAME 1
9999 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10000 echo "configure:10001: checking for ut_user in utmp" >&5
10001 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10005 cat > conftest.
$ac_ext <<EOF
10006 #line 10007 "configure"
10007 #include "confdefs.h"
10008 #include <sys/types.h>
10011 struct utmp ut; ut.ut_user[0] = 'a';
10014 if { (eval echo configure
:10015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10016 samba_cv_HAVE_UT_UT_USER
=yes
10018 echo "configure: failed program was:" >&5
10019 cat conftest.
$ac_ext >&5
10021 samba_cv_HAVE_UT_UT_USER
=no
10026 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10027 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
10028 cat >> confdefs.h
<<\EOF
10029 #define HAVE_UT_UT_USER 1
10034 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10035 echo "configure:10036: checking for ut_id in utmp" >&5
10036 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10037 echo $ac_n "(cached) $ac_c" 1>&6
10040 cat > conftest.
$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043 #include <sys/types.h>
10046 struct utmp ut; ut.ut_id[0] = 'a';
10049 if { (eval echo configure
:10050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10051 samba_cv_HAVE_UT_UT_ID
=yes
10053 echo "configure: failed program was:" >&5
10054 cat conftest.
$ac_ext >&5
10056 samba_cv_HAVE_UT_UT_ID
=no
10061 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10062 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10063 cat >> confdefs.h
<<\EOF
10064 #define HAVE_UT_UT_ID 1
10069 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10070 echo "configure:10071: checking for ut_host in utmp" >&5
10071 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10072 echo $ac_n "(cached) $ac_c" 1>&6
10075 cat > conftest.
$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 #include <sys/types.h>
10081 struct utmp ut; ut.ut_host[0] = 'a';
10084 if { (eval echo configure
:10085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10086 samba_cv_HAVE_UT_UT_HOST
=yes
10088 echo "configure: failed program was:" >&5
10089 cat conftest.
$ac_ext >&5
10091 samba_cv_HAVE_UT_UT_HOST
=no
10096 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10097 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10098 cat >> confdefs.h
<<\EOF
10099 #define HAVE_UT_UT_HOST 1
10104 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10105 echo "configure:10106: checking for ut_time in utmp" >&5
10106 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10110 cat > conftest.
$ac_ext <<EOF
10111 #line 10112 "configure"
10112 #include "confdefs.h"
10113 #include <sys/types.h>
10116 struct utmp ut; time_t t; ut.ut_time = t;
10119 if { (eval echo configure
:10120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10121 samba_cv_HAVE_UT_UT_TIME
=yes
10123 echo "configure: failed program was:" >&5
10124 cat conftest.
$ac_ext >&5
10126 samba_cv_HAVE_UT_UT_TIME
=no
10131 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10132 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10133 cat >> confdefs.h
<<\EOF
10134 #define HAVE_UT_UT_TIME 1
10139 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10140 echo "configure:10141: checking for ut_tv in utmp" >&5
10141 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10142 echo $ac_n "(cached) $ac_c" 1>&6
10145 cat > conftest.
$ac_ext <<EOF
10146 #line 10147 "configure"
10147 #include "confdefs.h"
10148 #include <sys/types.h>
10151 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10154 if { (eval echo configure
:10155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10156 samba_cv_HAVE_UT_UT_TV
=yes
10158 echo "configure: failed program was:" >&5
10159 cat conftest.
$ac_ext >&5
10161 samba_cv_HAVE_UT_UT_TV
=no
10166 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10167 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10168 cat >> confdefs.h
<<\EOF
10169 #define HAVE_UT_UT_TV 1
10174 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10175 echo "configure:10176: checking for ut_type in utmp" >&5
10176 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10180 cat > conftest.
$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include <sys/types.h>
10186 struct utmp ut; ut.ut_type = 0;
10189 if { (eval echo configure
:10190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10191 samba_cv_HAVE_UT_UT_TYPE
=yes
10193 echo "configure: failed program was:" >&5
10194 cat conftest.
$ac_ext >&5
10196 samba_cv_HAVE_UT_UT_TYPE
=no
10201 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10202 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10203 cat >> confdefs.h
<<\EOF
10204 #define HAVE_UT_UT_TYPE 1
10209 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10210 echo "configure:10211: checking for ut_pid in utmp" >&5
10211 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
10215 cat > conftest.
$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include <sys/types.h>
10221 struct utmp ut; ut.ut_pid = 0;
10224 if { (eval echo configure
:10225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10226 samba_cv_HAVE_UT_UT_PID
=yes
10228 echo "configure: failed program was:" >&5
10229 cat conftest.
$ac_ext >&5
10231 samba_cv_HAVE_UT_UT_PID
=no
10236 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10237 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10238 cat >> confdefs.h
<<\EOF
10239 #define HAVE_UT_UT_PID 1
10244 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10245 echo "configure:10246: checking for ut_exit in utmp" >&5
10246 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10250 cat > conftest.
$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 #include <sys/types.h>
10256 struct utmp ut; ut.ut_exit.e_exit = 0;
10259 if { (eval echo configure
:10260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10261 samba_cv_HAVE_UT_UT_EXIT
=yes
10263 echo "configure: failed program was:" >&5
10264 cat conftest.
$ac_ext >&5
10266 samba_cv_HAVE_UT_UT_EXIT
=no
10271 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10272 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10273 cat >> confdefs.h
<<\EOF
10274 #define HAVE_UT_UT_EXIT 1
10279 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10280 echo "configure:10281: checking for ut_addr in utmp" >&5
10281 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10282 echo $ac_n "(cached) $ac_c" 1>&6
10285 cat > conftest.
$ac_ext <<EOF
10286 #line 10287 "configure"
10287 #include "confdefs.h"
10288 #include <sys/types.h>
10291 struct utmp ut; ut.ut_addr = 0;
10294 if { (eval echo configure
:10295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10296 samba_cv_HAVE_UT_UT_ADDR
=yes
10298 echo "configure: failed program was:" >&5
10299 cat conftest.
$ac_ext >&5
10301 samba_cv_HAVE_UT_UT_ADDR
=no
10306 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10307 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10308 cat >> confdefs.h
<<\EOF
10309 #define HAVE_UT_UT_ADDR 1
10314 if test x
$ac_cv_func_pututline = xyes
; then
10315 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10316 echo "configure:10317: checking whether pututline returns pointer" >&5
10317 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10321 cat > conftest.
$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10324 #include <sys/types.h>
10327 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10330 if { (eval echo configure
:10331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10332 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10334 echo "configure: failed program was:" >&5
10335 cat conftest.
$ac_ext >&5
10337 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10342 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10343 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10344 cat >> confdefs.h
<<\EOF
10345 #define PUTUTLINE_RETURNS_UTMP 1
10351 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10352 echo "configure:10353: checking for ut_syslen in utmpx" >&5
10353 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10357 cat > conftest.
$ac_ext <<EOF
10358 #line 10359 "configure"
10359 #include "confdefs.h"
10360 #include <sys/types.h>
10363 struct utmpx ux; ux.ut_syslen = 0;
10366 if { (eval echo configure
:10367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10368 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10370 echo "configure: failed program was:" >&5
10371 cat conftest.
$ac_ext >&5
10373 samba_cv_HAVE_UX_UT_SYSLEN
=no
10378 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10379 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10380 cat >> confdefs.h
<<\EOF
10381 #define HAVE_UX_UT_SYSLEN 1
10387 #################################################
10388 # check for libiconv support
10389 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10390 echo "configure:10391: checking whether to use libiconv" >&5
10391 # Check whether --with-libiconv or --without-libiconv was given.
10392 if test "${with_libiconv+set}" = set; then
10393 withval
="$with_libiconv"
10396 echo "$ac_t""no" 1>&6
10399 echo "$ac_t""yes" 1>&6
10400 CFLAGS
="$CFLAGS -I$withval/include"
10401 LDFLAGS
="$LDFLAGS -L$withval/lib"
10402 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10403 echo "configure:10404: checking for iconv_open in -liconv" >&5
10404 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10408 ac_save_LIBS
="$LIBS"
10409 LIBS
="-liconv $LIBS"
10410 cat > conftest.
$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 /* Override any gcc2 internal prototype to avoid an error. */
10414 /* We use char because int might match the return type of a gcc2
10415 builtin and then its argument prototype would still apply. */
10422 if { (eval echo configure
:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10424 eval "ac_cv_lib_$ac_lib_var=yes"
10426 echo "configure: failed program was:" >&5
10427 cat conftest.
$ac_ext >&5
10429 eval "ac_cv_lib_$ac_lib_var=no"
10432 LIBS
="$ac_save_LIBS"
10435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10437 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10439 cat >> confdefs.h
<<EOF
10440 #define $ac_tr_lib 1
10443 LIBS
="-liconv $LIBS"
10446 echo "$ac_t""no" 1>&6
10449 cat >> confdefs.h
<<EOF
10450 #define WITH_LIBICONV "${withval}"
10456 echo "$ac_t""no" 1>&6
10463 # check for iconv in libc
10464 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10465 echo "configure:10466: checking for working iconv" >&5
10466 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10470 if test "$cross_compiling" = yes; then
10471 samba_cv_HAVE_NATIVE_ICONV
=cross
10473 cat > conftest.
$ac_ext <<EOF
10474 #line 10475 "configure"
10475 #include "confdefs.h"
10479 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10480 if (cd == 0 || cd == (iconv_t)-1) return -1;
10485 if { (eval echo configure
:10486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10487 samba_cv_HAVE_NATIVE_ICONV
=yes
10489 echo "configure: failed program was:" >&5
10490 cat conftest.
$ac_ext >&5
10492 samba_cv_HAVE_NATIVE_ICONV
=no
10499 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10500 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
10501 cat >> confdefs.h
<<\EOF
10502 #define HAVE_NATIVE_ICONV 1
10508 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10509 echo "configure:10510: checking for Linux kernel oplocks" >&5
10510 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10514 if test "$cross_compiling" = yes; then
10515 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10517 cat > conftest.
$ac_ext <<EOF
10518 #line 10519 "configure"
10519 #include "confdefs.h"
10521 #include <sys/types.h>
10524 #define F_GETLEASE 1025
10527 int fd = open("/dev/null", O_RDONLY);
10528 return fcntl(fd, F_GETLEASE, 0) == -1;
10532 if { (eval echo configure
:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10534 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10536 echo "configure: failed program was:" >&5
10537 cat conftest.
$ac_ext >&5
10539 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10546 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10547 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10548 cat >> confdefs.h
<<\EOF
10549 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10554 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10555 echo "configure:10556: checking for kernel change notify support" >&5
10556 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
10560 if test "$cross_compiling" = yes; then
10561 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10563 cat > conftest.
$ac_ext <<EOF
10564 #line 10565 "configure"
10565 #include "confdefs.h"
10567 #include <sys/types.h>
10569 #include <signal.h>
10571 #define F_NOTIFY 1026
10574 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10578 if { (eval echo configure
:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10580 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10582 echo "configure: failed program was:" >&5
10583 cat conftest.
$ac_ext >&5
10585 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10592 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10593 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10594 cat >> confdefs.h
<<\EOF
10595 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10600 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10601 echo "configure:10602: checking for kernel share modes" >&5
10602 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10603 echo $ac_n "(cached) $ac_c" 1>&6
10606 if test "$cross_compiling" = yes; then
10607 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10609 cat > conftest.
$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10613 #include <sys/types.h>
10615 #include <signal.h>
10616 #include <sys/file.h>
10618 #define LOCK_MAND 32
10619 #define LOCK_READ 64
10622 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10626 if { (eval echo configure
:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10628 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10630 echo "configure: failed program was:" >&5
10631 cat conftest.
$ac_ext >&5
10633 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10640 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10641 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10642 cat >> confdefs.h
<<\EOF
10643 #define HAVE_KERNEL_SHARE_MODES 1
10651 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10652 echo "configure:10653: checking for IRIX kernel oplock type definitions" >&5
10653 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10654 echo $ac_n "(cached) $ac_c" 1>&6
10657 cat > conftest.
$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 #include <sys/types.h>
10663 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10666 if { (eval echo configure
:10667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10668 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10670 echo "configure: failed program was:" >&5
10671 cat conftest.
$ac_ext >&5
10673 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10678 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10679 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10680 cat >> confdefs.h
<<\EOF
10681 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10686 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10687 echo "configure:10688: checking for irix specific capabilities" >&5
10688 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10692 if test "$cross_compiling" = yes; then
10693 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10695 cat > conftest.
$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10698 #include <sys/types.h>
10699 #include <sys/capability.h>
10702 if ((cap = cap_get_proc()) == NULL)
10704 cap->cap_effective |= CAP_NETWORK_MGT;
10705 cap->cap_inheritable |= CAP_NETWORK_MGT;
10711 if { (eval echo configure
:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10713 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10715 echo "configure: failed program was:" >&5
10716 cat conftest.
$ac_ext >&5
10718 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10725 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10726 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10727 cat >> confdefs.h
<<\EOF
10728 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10734 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10735 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10738 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10739 echo "configure:10740: checking for int16 typedef included by rpc/rpc.h" >&5
10740 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10744 cat > conftest.
$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10747 #include <sys/types.h>
10748 #if defined(HAVE_RPC_RPC_H)
10749 #include <rpc/rpc.h>
10755 if { (eval echo configure
:10756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10757 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10759 echo "configure: failed program was:" >&5
10760 cat conftest.
$ac_ext >&5
10762 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10767 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10768 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10769 cat >> confdefs.h
<<\EOF
10770 #define HAVE_INT16_FROM_RPC_RPC_H 1
10775 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10776 echo "configure:10777: checking for uint16 typedef included by rpc/rpc.h" >&5
10777 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10778 echo $ac_n "(cached) $ac_c" 1>&6
10781 cat > conftest.
$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10784 #include <sys/types.h>
10785 #if defined(HAVE_RPC_RPC_H)
10786 #include <rpc/rpc.h>
10792 if { (eval echo configure
:10793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10794 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10796 echo "configure: failed program was:" >&5
10797 cat conftest.
$ac_ext >&5
10799 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10804 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10805 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10806 cat >> confdefs.h
<<\EOF
10807 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10812 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10813 echo "configure:10814: checking for int32 typedef included by rpc/rpc.h" >&5
10814 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10815 echo $ac_n "(cached) $ac_c" 1>&6
10818 cat > conftest.
$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10821 #include <sys/types.h>
10822 #if defined(HAVE_RPC_RPC_H)
10823 #include <rpc/rpc.h>
10829 if { (eval echo configure
:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10831 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10833 echo "configure: failed program was:" >&5
10834 cat conftest.
$ac_ext >&5
10836 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10841 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10842 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10843 cat >> confdefs.h
<<\EOF
10844 #define HAVE_INT32_FROM_RPC_RPC_H 1
10849 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10850 echo "configure:10851: checking for uint32 typedef included by rpc/rpc.h" >&5
10851 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+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>
10859 #if defined(HAVE_RPC_RPC_H)
10860 #include <rpc/rpc.h>
10866 if { (eval echo configure
:10867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10868 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10870 echo "configure: failed program was:" >&5
10871 cat conftest.
$ac_ext >&5
10873 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10878 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10879 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10880 cat >> confdefs.h
<<\EOF
10881 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10887 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10888 echo "configure:10889: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10889 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10890 echo $ac_n "(cached) $ac_c" 1>&6
10893 cat > conftest.
$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 #include <sys/types.h>
10897 #ifdef HAVE_SYS_SECURITY_H
10898 #include <sys/security.h>
10900 #endif /* HAVE_SYS_SECURITY_H */
10901 #if defined(HAVE_RPC_RPC_H)
10902 #include <rpc/rpc.h>
10908 if { (eval echo configure
:10909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10910 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10912 echo "configure: failed program was:" >&5
10913 cat conftest.
$ac_ext >&5
10915 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10920 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10921 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10922 cat >> confdefs.h
<<\EOF
10923 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10928 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10929 echo "configure:10930: checking for test routines" >&5
10930 if test "$cross_compiling" = yes; then
10931 echo "configure: warning: cannot run when cross-compiling" 1>&2
10933 cat > conftest.
$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 #include "${srcdir-.}/tests/trivial.c"
10938 if { (eval echo configure
:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10940 echo "$ac_t""yes" 1>&6
10942 echo "configure: failed program was:" >&5
10943 cat conftest.
$ac_ext >&5
10945 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10951 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10952 echo "configure:10953: checking for ftruncate extend" >&5
10953 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10957 if test "$cross_compiling" = yes; then
10958 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10960 cat > conftest.
$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 #include "${srcdir-.}/tests/ftruncate.c"
10965 if { (eval echo configure
:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10967 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10969 echo "configure: failed program was:" >&5
10970 cat conftest.
$ac_ext >&5
10972 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10979 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10980 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10981 cat >> confdefs.h
<<\EOF
10982 #define HAVE_FTRUNCATE_EXTEND 1
10987 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10988 echo "configure:10989: checking for AF_LOCAL socket support" >&5
10989 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10993 if test "$cross_compiling" = yes; then
10994 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
10996 cat > conftest.
$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
10999 #include "${srcdir-.}/tests/unixsock.c"
11001 if { (eval echo configure
:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11003 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
11005 echo "configure: failed program was:" >&5
11006 cat conftest.
$ac_ext >&5
11008 samba_cv_HAVE_WORKING_AF_LOCAL
=no
11015 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11016 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11018 cat >> confdefs.h
<<\EOF
11019 #define HAVE_WORKING_AF_LOCAL 1
11024 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11025 echo "configure:11026: checking for broken getgroups" >&5
11026 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11030 if test "$cross_compiling" = yes; then
11031 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
11033 cat > conftest.
$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 #include "${srcdir-.}/tests/getgroups.c"
11038 if { (eval echo configure
:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11040 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
11042 echo "configure: failed program was:" >&5
11043 cat conftest.
$ac_ext >&5
11045 samba_cv_HAVE_BROKEN_GETGROUPS
=no
11052 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11053 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
11054 cat >> confdefs.h
<<\EOF
11055 #define HAVE_BROKEN_GETGROUPS 1
11060 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11061 echo "configure:11062: checking whether getpass should be replaced" >&5
11062 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11066 SAVE_CPPFLAGS
="$CPPFLAGS"
11067 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/popt -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
11068 cat > conftest.
$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11072 #define REPLACE_GETPASS 1
11073 #define NO_CONFIG_H 1
11074 #define main dont_declare_main
11075 #include "${srcdir-.}/lib/getsmbpass.c"
11082 if { (eval echo configure
:11083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11084 samba_cv_REPLACE_GETPASS
=yes
11086 echo "configure: failed program was:" >&5
11087 cat conftest.
$ac_ext >&5
11089 samba_cv_REPLACE_GETPASS
=no
11092 CPPFLAGS
="$SAVE_CPPFLAGS"
11096 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11097 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
11098 cat >> confdefs.h
<<\EOF
11099 #define REPLACE_GETPASS 1
11104 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11105 echo "configure:11106: checking for broken inet_ntoa" >&5
11106 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11110 if test "$cross_compiling" = yes; then
11111 samba_cv_REPLACE_INET_NTOA
=cross
11113 cat > conftest.
$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11118 #include <sys/types.h>
11119 #include <netinet/in.h>
11120 #ifdef HAVE_ARPA_INET_H
11121 #include <arpa/inet.h>
11123 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11124 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11125 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11128 if { (eval echo configure
:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11130 samba_cv_REPLACE_INET_NTOA
=yes
11132 echo "configure: failed program was:" >&5
11133 cat conftest.
$ac_ext >&5
11135 samba_cv_REPLACE_INET_NTOA
=no
11142 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11143 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
11144 cat >> confdefs.h
<<\EOF
11145 #define REPLACE_INET_NTOA 1
11150 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11151 echo "configure:11152: checking for secure mkstemp" >&5
11152 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11153 echo $ac_n "(cached) $ac_c" 1>&6
11156 if test "$cross_compiling" = yes; then
11157 samba_cv_HAVE_SECURE_MKSTEMP
=cross
11159 cat > conftest.
$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 #include <stdlib.h>
11163 #include <sys/types.h>
11164 #include <sys/stat.h>
11165 #include <unistd.h>
11168 char tpl[20]="/tmp/test.XXXXXX";
11169 int fd = mkstemp(tpl);
11170 if (fd == -1) exit(1);
11172 if (fstat(fd, &st) != 0) exit(1);
11173 if ((st.st_mode & 0777) != 0600) exit(1);
11177 if { (eval echo configure
:11178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11179 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11181 echo "configure: failed program was:" >&5
11182 cat conftest.
$ac_ext >&5
11184 samba_cv_HAVE_SECURE_MKSTEMP
=no
11191 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11192 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11193 cat >> confdefs.h
<<\EOF
11194 #define HAVE_SECURE_MKSTEMP 1
11199 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11200 echo "configure:11201: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11201 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11205 if test "$cross_compiling" = yes; then
11206 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11208 cat > conftest.
$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <unistd.h>
11212 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11214 if { (eval echo configure
:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11216 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11218 echo "configure: failed program was:" >&5
11219 cat conftest.
$ac_ext >&5
11221 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11228 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11229 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11230 cat >> confdefs.h
<<\EOF
11231 #define SYSCONF_SC_NGROUPS_MAX 1
11236 echo $ac_n "checking for root""... $ac_c" 1>&6
11237 echo "configure:11238: checking for root" >&5
11238 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11242 if test "$cross_compiling" = yes; then
11243 samba_cv_HAVE_ROOT
=cross
11245 cat > conftest.
$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11248 main() { exit(getuid() != 0); }
11250 if { (eval echo configure
:11251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11252 samba_cv_HAVE_ROOT
=yes
11254 echo "configure: failed program was:" >&5
11255 cat conftest.
$ac_ext >&5
11257 samba_cv_HAVE_ROOT
=no
11264 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11265 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11266 cat >> confdefs.h
<<\EOF
11267 #define HAVE_ROOT 1
11271 echo "configure: warning: running as non-root will disable some tests" 1>&2
11275 # look for a method of finding the list of network interfaces
11277 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11278 echo "configure:11279: checking for iface AIX" >&5
11279 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11280 echo $ac_n "(cached) $ac_c" 1>&6
11283 if test "$cross_compiling" = yes; then
11284 samba_cv_HAVE_IFACE_AIX
=cross
11286 cat > conftest.
$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11290 #define HAVE_IFACE_AIX 1
11291 #define AUTOCONF_TEST 1
11292 #include "confdefs.h"
11293 #include "${srcdir-.}/lib/interfaces.c"
11295 if { (eval echo configure
:11296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11297 samba_cv_HAVE_IFACE_AIX
=yes
11299 echo "configure: failed program was:" >&5
11300 cat conftest.
$ac_ext >&5
11302 samba_cv_HAVE_IFACE_AIX
=no
11309 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11310 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11311 iface
=yes;cat >> confdefs.h
<<\EOF
11312 #define HAVE_IFACE_AIX 1
11317 if test $iface = no
; then
11318 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11319 echo "configure:11320: checking for iface ifconf" >&5
11320 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11321 echo $ac_n "(cached) $ac_c" 1>&6
11324 if test "$cross_compiling" = yes; then
11325 samba_cv_HAVE_IFACE_IFCONF
=cross
11327 cat > conftest.
$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11331 #define HAVE_IFACE_IFCONF 1
11332 #define AUTOCONF_TEST 1
11333 #include "confdefs.h"
11334 #include "${srcdir-.}/lib/interfaces.c"
11336 if { (eval echo configure
:11337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11338 samba_cv_HAVE_IFACE_IFCONF
=yes
11340 echo "configure: failed program was:" >&5
11341 cat conftest.
$ac_ext >&5
11343 samba_cv_HAVE_IFACE_IFCONF
=no
11350 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11351 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11352 iface
=yes;cat >> confdefs.h
<<\EOF
11353 #define HAVE_IFACE_IFCONF 1
11359 if test $iface = no
; then
11360 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11361 echo "configure:11362: checking for iface ifreq" >&5
11362 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11366 if test "$cross_compiling" = yes; then
11367 samba_cv_HAVE_IFACE_IFREQ
=cross
11369 cat > conftest.
$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11373 #define HAVE_IFACE_IFREQ 1
11374 #define AUTOCONF_TEST 1
11375 #include "confdefs.h"
11376 #include "${srcdir-.}/lib/interfaces.c"
11378 if { (eval echo configure
:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11380 samba_cv_HAVE_IFACE_IFREQ
=yes
11382 echo "configure: failed program was:" >&5
11383 cat conftest.
$ac_ext >&5
11385 samba_cv_HAVE_IFACE_IFREQ
=no
11392 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11393 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11394 iface
=yes;cat >> confdefs.h
<<\EOF
11395 #define HAVE_IFACE_IFREQ 1
11402 ################################################
11403 # look for a method of setting the effective uid
11405 if test $seteuid = no
; then
11406 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11407 echo "configure:11408: checking for setresuid" >&5
11408 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11412 if test "$cross_compiling" = yes; then
11413 samba_cv_USE_SETRESUID
=cross
11415 cat > conftest.
$ac_ext <<EOF
11416 #line 11417 "configure"
11417 #include "confdefs.h"
11419 #define AUTOCONF_TEST 1
11420 #define USE_SETRESUID 1
11421 #include "confdefs.h"
11422 #include "${srcdir-.}/lib/util_sec.c"
11424 if { (eval echo configure
:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11426 samba_cv_USE_SETRESUID
=yes
11428 echo "configure: failed program was:" >&5
11429 cat conftest.
$ac_ext >&5
11431 samba_cv_USE_SETRESUID
=no
11438 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11439 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11440 seteuid
=yes;cat >> confdefs.h
<<\EOF
11441 #define USE_SETRESUID 1
11448 if test $seteuid = no
; then
11449 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11450 echo "configure:11451: checking for setreuid" >&5
11451 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11452 echo $ac_n "(cached) $ac_c" 1>&6
11455 if test "$cross_compiling" = yes; then
11456 samba_cv_USE_SETREUID
=cross
11458 cat > conftest.
$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11462 #define AUTOCONF_TEST 1
11463 #define USE_SETREUID 1
11464 #include "confdefs.h"
11465 #include "${srcdir-.}/lib/util_sec.c"
11467 if { (eval echo configure
:11468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11469 samba_cv_USE_SETREUID
=yes
11471 echo "configure: failed program was:" >&5
11472 cat conftest.
$ac_ext >&5
11474 samba_cv_USE_SETREUID
=no
11481 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11482 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11483 seteuid
=yes;cat >> confdefs.h
<<\EOF
11484 #define USE_SETREUID 1
11490 if test $seteuid = no
; then
11491 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11492 echo "configure:11493: checking for seteuid" >&5
11493 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11497 if test "$cross_compiling" = yes; then
11498 samba_cv_USE_SETEUID
=cross
11500 cat > conftest.
$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11504 #define AUTOCONF_TEST 1
11505 #define USE_SETEUID 1
11506 #include "confdefs.h"
11507 #include "${srcdir-.}/lib/util_sec.c"
11509 if { (eval echo configure
:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11511 samba_cv_USE_SETEUID
=yes
11513 echo "configure: failed program was:" >&5
11514 cat conftest.
$ac_ext >&5
11516 samba_cv_USE_SETEUID
=no
11523 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11524 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11525 seteuid
=yes;cat >> confdefs.h
<<\EOF
11526 #define USE_SETEUID 1
11532 if test $seteuid = no
; then
11533 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11534 echo "configure:11535: checking for setuidx" >&5
11535 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11539 if test "$cross_compiling" = yes; then
11540 samba_cv_USE_SETUIDX
=cross
11542 cat > conftest.
$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11546 #define AUTOCONF_TEST 1
11547 #define USE_SETUIDX 1
11548 #include "confdefs.h"
11549 #include "${srcdir-.}/lib/util_sec.c"
11551 if { (eval echo configure
:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11553 samba_cv_USE_SETUIDX
=yes
11555 echo "configure: failed program was:" >&5
11556 cat conftest.
$ac_ext >&5
11558 samba_cv_USE_SETUIDX
=no
11565 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11566 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11567 seteuid
=yes;cat >> confdefs.h
<<\EOF
11568 #define USE_SETUIDX 1
11575 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11576 echo "configure:11577: checking for working mmap" >&5
11577 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11581 if test "$cross_compiling" = yes; then
11582 samba_cv_HAVE_MMAP
=cross
11584 cat > conftest.
$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11587 #include "${srcdir-.}/tests/shared_mmap.c"
11589 if { (eval echo configure
:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11591 samba_cv_HAVE_MMAP
=yes
11593 echo "configure: failed program was:" >&5
11594 cat conftest.
$ac_ext >&5
11596 samba_cv_HAVE_MMAP
=no
11603 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11604 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11605 cat >> confdefs.h
<<\EOF
11606 #define HAVE_MMAP 1
11611 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11612 echo "configure:11613: checking for ftruncate needs root" >&5
11613 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11614 echo $ac_n "(cached) $ac_c" 1>&6
11617 if test "$cross_compiling" = yes; then
11618 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11620 cat > conftest.
$ac_ext <<EOF
11621 #line 11622 "configure"
11622 #include "confdefs.h"
11623 #include "${srcdir-.}/tests/ftruncroot.c"
11625 if { (eval echo configure
:11626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11627 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11629 echo "configure: failed program was:" >&5
11630 cat conftest.
$ac_ext >&5
11632 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11639 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11640 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11641 cat >> confdefs.h
<<\EOF
11642 #define FTRUNCATE_NEEDS_ROOT 1
11647 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11648 echo "configure:11649: checking for fcntl locking" >&5
11649 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11653 if test "$cross_compiling" = yes; then
11654 samba_cv_HAVE_FCNTL_LOCK
=cross
11656 cat > conftest.
$ac_ext <<EOF
11657 #line 11658 "configure"
11658 #include "confdefs.h"
11659 #include "${srcdir-.}/tests/fcntl_lock.c"
11661 if { (eval echo configure
:11662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11663 samba_cv_HAVE_FCNTL_LOCK
=yes
11665 echo "configure: failed program was:" >&5
11666 cat conftest.
$ac_ext >&5
11668 samba_cv_HAVE_FCNTL_LOCK
=no
11675 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11676 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11677 cat >> confdefs.h
<<\EOF
11678 #define HAVE_FCNTL_LOCK 1
11683 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11684 echo "configure:11685: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11685 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11686 echo $ac_n "(cached) $ac_c" 1>&6
11689 if test "$cross_compiling" = yes; then
11690 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11692 cat > conftest.
$ac_ext <<EOF
11693 #line 11694 "configure"
11694 #include "confdefs.h"
11695 #include "${srcdir-.}/tests/fcntl_lock64.c"
11697 if { (eval echo configure
:11698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11699 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11701 echo "configure: failed program was:" >&5
11702 cat conftest.
$ac_ext >&5
11704 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11711 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11712 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11713 cat >> confdefs.h
<<\EOF
11714 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11721 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11722 echo "configure:11723: checking for 64 bit fcntl locking" >&5
11723 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
11727 if test "$cross_compiling" = yes; then
11728 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11730 cat > conftest.
$ac_ext <<EOF
11731 #line 11732 "configure"
11732 #include "confdefs.h"
11734 #if defined(HAVE_UNISTD_H)
11735 #include <unistd.h>
11738 #include <stdlib.h>
11740 #ifdef HAVE_FCNTL_H
11744 #ifdef HAVE_SYS_FCNTL_H
11745 #include <sys/fcntl.h>
11747 main() { struct flock64 fl64;
11748 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11755 if { (eval echo configure
:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11757 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11759 echo "configure: failed program was:" >&5
11760 cat conftest.
$ac_ext >&5
11762 samba_cv_HAVE_STRUCT_FLOCK64
=no
11769 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11771 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11772 cat >> confdefs.h
<<\EOF
11773 #define HAVE_STRUCT_FLOCK64 1
11779 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11780 echo "configure:11781: checking for st_blocks in struct stat" >&5
11781 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11782 echo $ac_n "(cached) $ac_c" 1>&6
11785 cat > conftest.
$ac_ext <<EOF
11786 #line 11787 "configure"
11787 #include "confdefs.h"
11788 #include <sys/types.h>
11789 #include <sys/stat.h>
11790 #include <unistd.h>
11792 struct stat st; st.st_blocks = 0;
11795 if { (eval echo configure
:11796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11797 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11799 echo "configure: failed program was:" >&5
11800 cat conftest.
$ac_ext >&5
11802 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11807 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11808 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11809 cat >> confdefs.h
<<\EOF
11810 #define HAVE_STAT_ST_BLOCKS 1
11817 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11818 echo "configure:11819: checking for broken RedHat 7.2 system header files" >&5
11819 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11823 cat > conftest.
$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11827 #ifdef HAVE_SYS_VFS_H
11828 #include <sys/vfs.h>
11830 #ifdef HAVE_SYS_CAPABILITY_H
11831 #include <sys/capability.h>
11838 if { (eval echo configure
:11839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11840 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11842 echo "configure: failed program was:" >&5
11843 cat conftest.
$ac_ext >&5
11845 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11850 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11851 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11852 cat >> confdefs.h
<<\EOF
11853 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11860 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11861 echo "configure:11862: checking for broken nisplus include files" >&5
11862 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11863 echo $ac_n "(cached) $ac_c" 1>&6
11866 cat > conftest.
$ac_ext <<EOF
11867 #line 11868 "configure"
11868 #include "confdefs.h"
11869 #include <sys/acl.h>
11870 #if defined(HAVE_RPCSVC_NIS_H)
11871 #include <rpcsvc/nis.h>
11877 if { (eval echo configure
:11878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11879 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11881 echo "configure: failed program was:" >&5
11882 cat conftest.
$ac_ext >&5
11884 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11889 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11890 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11891 cat >> confdefs.h
<<\EOF
11892 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11898 #################################################
11899 # check for smbwrapper support
11900 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11901 echo "configure:11902: checking whether to use smbwrapper" >&5
11902 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11903 if test "${with_smbwrapper+set}" = set; then
11904 withval
="$with_smbwrapper"
11907 echo "$ac_t""yes" 1>&6
11908 cat >> confdefs.h
<<\EOF
11909 #define WITH_SMBWRAPPER 1
11912 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11914 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11917 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11920 # Conditions under which smbwrapper should not be built.
11922 if test x
$PICFLAG = x
; then
11923 echo No support
for PIC code
- disabling smbwrapper and smbsh
11926 elif test x
$ac_cv_func_syscall = xno
; then
11927 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11933 echo "$ac_t""no" 1>&6
11937 echo "$ac_t""no" 1>&6
11942 #################################################
11943 # check for AFS clear-text auth support
11944 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11945 echo "configure:11946: checking whether to use AFS clear-text auth" >&5
11946 # Check whether --with-afs or --without-afs was given.
11947 if test "${with_afs+set}" = set; then
11948 withval
="$with_afs"
11951 echo "$ac_t""yes" 1>&6
11952 cat >> confdefs.h
<<\EOF
11958 echo "$ac_t""no" 1>&6
11962 echo "$ac_t""no" 1>&6
11968 #################################################
11969 # check for the DFS clear-text auth system
11970 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11971 echo "configure:11972: checking whether to use DFS clear-text auth" >&5
11972 # Check whether --with-dfs or --without-dfs was given.
11973 if test "${with_dfs+set}" = set; then
11974 withval
="$with_dfs"
11977 echo "$ac_t""yes" 1>&6
11978 cat >> confdefs.h
<<\EOF
11984 echo "$ac_t""no" 1>&6
11988 echo "$ac_t""no" 1>&6
11994 #################################################
11995 # see if this box has the RedHat location for kerberos
11996 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11997 echo "configure:11998: checking for /usr/kerberos" >&5
11998 if test -d /usr
/kerberos
; then
11999 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
12000 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
12001 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
12002 echo "$ac_t""yes" 1>&6
12004 echo "$ac_t""no" 1>&6
12007 #################################################
12008 # check for location of Kerberos 5 install
12009 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12010 echo "configure:12011: checking for kerberos 5 install path" >&5
12011 # Check whether --with-krb5 or --without-krb5 was given.
12012 if test "${with_krb5+set}" = set; then
12013 withval
="$with_krb5"
12016 echo "$ac_t""no" 1>&6
12019 echo "$ac_t""yes" 1>&6
12020 LIBS
="$LIBS -lkrb5"
12021 CFLAGS
="$CFLAGS -I$withval/include"
12022 CPPFLAGS
="$CPPFLAGS -I$withval/include"
12023 LDFLAGS
="$LDFLAGS -L$withval/lib"
12027 echo "$ac_t""no" 1>&6
12032 # now check for krb5.h. Some systems have the libraries without the headers!
12033 # note that this check is done here to allow for different kerberos
12035 for ac_hdr
in krb5.h
12037 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12039 echo "configure:12040: checking for $ac_hdr" >&5
12040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12041 echo $ac_n "(cached) $ac_c" 1>&6
12043 cat > conftest.
$ac_ext <<EOF
12044 #line 12045 "configure"
12045 #include "confdefs.h"
12048 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12049 { (eval echo configure
:12050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12050 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12051 if test -z "$ac_err"; then
12053 eval "ac_cv_header_$ac_safe=yes"
12056 echo "configure: failed program was:" >&5
12057 cat conftest.
$ac_ext >&5
12059 eval "ac_cv_header_$ac_safe=no"
12063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12064 echo "$ac_t""yes" 1>&6
12065 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12066 cat >> confdefs.h
<<EOF
12067 #define $ac_tr_hdr 1
12071 echo "$ac_t""no" 1>&6
12076 # now check for gssapi headers. This is also done here to allow for
12077 # different kerberos include paths
12078 for ac_hdr
in gssapi
/gssapi_generic.h gssapi
/gssapi.h
12080 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12082 echo "configure:12083: checking for $ac_hdr" >&5
12083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12084 echo $ac_n "(cached) $ac_c" 1>&6
12086 cat > conftest.
$ac_ext <<EOF
12087 #line 12088 "configure"
12088 #include "confdefs.h"
12091 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12092 { (eval echo configure
:12093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12093 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12094 if test -z "$ac_err"; then
12096 eval "ac_cv_header_$ac_safe=yes"
12099 echo "configure: failed program was:" >&5
12100 cat conftest.
$ac_ext >&5
12102 eval "ac_cv_header_$ac_safe=no"
12106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12107 echo "$ac_t""yes" 1>&6
12108 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12109 cat >> confdefs.h
<<EOF
12110 #define $ac_tr_hdr 1
12114 echo "$ac_t""no" 1>&6
12119 ##################################################################
12120 # we might need the k5crypto and com_err libraries on some systems
12121 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12122 echo "configure:12123: checking for _et_list in -lcom_err" >&5
12123 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12127 ac_save_LIBS
="$LIBS"
12128 LIBS
="-lcom_err $LIBS"
12129 cat > conftest.
$ac_ext <<EOF
12130 #line 12131 "configure"
12131 #include "confdefs.h"
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12141 if { (eval echo configure
:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12143 eval "ac_cv_lib_$ac_lib_var=yes"
12145 echo "configure: failed program was:" >&5
12146 cat conftest.
$ac_ext >&5
12148 eval "ac_cv_lib_$ac_lib_var=no"
12151 LIBS
="$ac_save_LIBS"
12154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156 LIBS
="$LIBS -lcom_err"
12158 echo "$ac_t""no" 1>&6
12161 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12162 echo "configure:12163: checking for krb5_encrypt_data in -lk5crypto" >&5
12163 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12165 echo $ac_n "(cached) $ac_c" 1>&6
12167 ac_save_LIBS
="$LIBS"
12168 LIBS
="-lk5crypto $LIBS"
12169 cat > conftest.
$ac_ext <<EOF
12170 #line 12171 "configure"
12171 #include "confdefs.h"
12172 /* Override any gcc2 internal prototype to avoid an error. */
12173 /* We use char because int might match the return type of a gcc2
12174 builtin and then its argument prototype would still apply. */
12175 char krb5_encrypt_data();
12178 krb5_encrypt_data()
12181 if { (eval echo configure
:12182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12183 eval "ac_cv_lib_$ac_lib_var=yes"
12185 echo "configure: failed program was:" >&5
12186 cat conftest.
$ac_ext >&5
12188 eval "ac_cv_lib_$ac_lib_var=no"
12191 LIBS
="$ac_save_LIBS"
12194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12195 echo "$ac_t""yes" 1>&6
12196 LIBS
="$LIBS -lk5crypto"
12198 echo "$ac_t""no" 1>&6
12202 ########################################################
12203 # now see if we can find the krb5 libs in standard paths
12204 # or as specified above
12205 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12206 echo "configure:12207: checking for krb5_mk_req_extended in -lkrb5" >&5
12207 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12211 ac_save_LIBS
="$LIBS"
12212 LIBS
="-lkrb5 $LIBS"
12213 cat > conftest.
$ac_ext <<EOF
12214 #line 12215 "configure"
12215 #include "confdefs.h"
12216 /* Override any gcc2 internal prototype to avoid an error. */
12217 /* We use char because int might match the return type of a gcc2
12218 builtin and then its argument prototype would still apply. */
12219 char krb5_mk_req_extended();
12222 krb5_mk_req_extended()
12225 if { (eval echo configure
:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12227 eval "ac_cv_lib_$ac_lib_var=yes"
12229 echo "configure: failed program was:" >&5
12230 cat conftest.
$ac_ext >&5
12232 eval "ac_cv_lib_$ac_lib_var=no"
12235 LIBS
="$ac_save_LIBS"
12238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12239 echo "$ac_t""yes" 1>&6
12240 LIBS
="$LIBS -lkrb5";
12241 cat >> confdefs.h
<<\EOF
12242 #define HAVE_KRB5 1
12246 echo "$ac_t""no" 1>&6
12250 ########################################################
12251 # now see if we can find the gssapi libs in standard paths
12252 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12253 echo "configure:12254: checking for gss_display_status in -lgssapi_krb5" >&5
12254 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12256 echo $ac_n "(cached) $ac_c" 1>&6
12258 ac_save_LIBS
="$LIBS"
12259 LIBS
="-lgssapi_krb5 $LIBS"
12260 cat > conftest.
$ac_ext <<EOF
12261 #line 12262 "configure"
12262 #include "confdefs.h"
12263 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12266 char gss_display_status();
12269 gss_display_status()
12272 if { (eval echo configure
:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12274 eval "ac_cv_lib_$ac_lib_var=yes"
12276 echo "configure: failed program was:" >&5
12277 cat conftest.
$ac_ext >&5
12279 eval "ac_cv_lib_$ac_lib_var=no"
12282 LIBS
="$ac_save_LIBS"
12285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12286 echo "$ac_t""yes" 1>&6
12287 LIBS
="$LIBS -lgssapi_krb5";
12288 cat >> confdefs.h
<<\EOF
12289 #define HAVE_GSSAPI 1
12293 echo "$ac_t""no" 1>&6
12297 ##################################################################
12298 # we might need the lber lib on some systems. To avoid link errors
12299 # this test must be before the libldap test
12300 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12301 echo "configure:12302: checking for ber_scanf in -llber" >&5
12302 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12304 echo $ac_n "(cached) $ac_c" 1>&6
12306 ac_save_LIBS
="$LIBS"
12307 LIBS
="-llber $LIBS"
12308 cat > conftest.
$ac_ext <<EOF
12309 #line 12310 "configure"
12310 #include "confdefs.h"
12311 /* Override any gcc2 internal prototype to avoid an error. */
12312 /* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12320 if { (eval echo configure
:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12322 eval "ac_cv_lib_$ac_lib_var=yes"
12324 echo "configure: failed program was:" >&5
12325 cat conftest.
$ac_ext >&5
12327 eval "ac_cv_lib_$ac_lib_var=no"
12330 LIBS
="$ac_save_LIBS"
12333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12334 echo "$ac_t""yes" 1>&6
12335 LIBS
="$LIBS -llber"
12337 echo "$ac_t""no" 1>&6
12341 ########################################################
12342 # now see if we can find the ldap libs in standard paths
12343 if test x
$have_ldap != xyes
; then
12344 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12345 echo "configure:12346: checking for ldap_domain2hostlist in -lldap" >&5
12346 ac_lib_var
=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12348 echo $ac_n "(cached) $ac_c" 1>&6
12350 ac_save_LIBS
="$LIBS"
12351 LIBS
="-lldap $LIBS"
12352 cat > conftest.
$ac_ext <<EOF
12353 #line 12354 "configure"
12354 #include "confdefs.h"
12355 /* Override any gcc2 internal prototype to avoid an error. */
12356 /* We use char because int might match the return type of a gcc2
12357 builtin and then its argument prototype would still apply. */
12358 char ldap_domain2hostlist();
12361 ldap_domain2hostlist()
12364 if { (eval echo configure
:12365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12366 eval "ac_cv_lib_$ac_lib_var=yes"
12368 echo "configure: failed program was:" >&5
12369 cat conftest.
$ac_ext >&5
12371 eval "ac_cv_lib_$ac_lib_var=no"
12374 LIBS
="$ac_save_LIBS"
12377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12378 echo "$ac_t""yes" 1>&6
12379 LIBS
="$LIBS -lldap";
12380 cat >> confdefs.h
<<\EOF
12381 #define HAVE_LDAP 1
12385 echo "$ac_t""no" 1>&6
12389 ########################################################
12390 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12391 # Check found in pam_ldap 145.
12392 for ac_func
in ldap_set_rebind_proc
12394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12395 echo "configure:12396: checking for $ac_func" >&5
12396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12397 echo $ac_n "(cached) $ac_c" 1>&6
12399 cat > conftest.
$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func(); below. */
12404 #include <assert.h>
12405 /* Override any gcc2 internal prototype to avoid an error. */
12406 /* We use char because int might match the return type of a gcc2
12407 builtin and then its argument prototype would still apply. */
12412 /* The GNU C library defines this for functions which it implements
12413 to always fail with ENOSYS. Some functions are actually named
12414 something starting with __ and the normal name is an alias. */
12415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12423 if { (eval echo configure
:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12425 eval "ac_cv_func_$ac_func=yes"
12427 echo "configure: failed program was:" >&5
12428 cat conftest.
$ac_ext >&5
12430 eval "ac_cv_func_$ac_func=no"
12435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12436 echo "$ac_t""yes" 1>&6
12437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12438 cat >> confdefs.h
<<EOF
12439 #define $ac_tr_func 1
12443 echo "$ac_t""no" 1>&6
12447 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12448 echo "configure:12449: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12449 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12453 cat > conftest.
$ac_ext <<EOF
12454 #line 12455 "configure"
12455 #include "confdefs.h"
12460 ldap_set_rebind_proc(0, 0, 0);
12463 if { (eval echo configure
:12464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12465 pam_ldap_cv_ldap_set_rebind_proc
=3
12467 echo "configure: failed program was:" >&5
12468 cat conftest.
$ac_ext >&5
12470 pam_ldap_cv_ldap_set_rebind_proc
=2
12475 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12476 cat >> confdefs.h
<<EOF
12477 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12482 #################################################
12483 # check for automount support
12484 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12485 echo "configure:12486: checking whether to use AUTOMOUNT" >&5
12486 # Check whether --with-automount or --without-automount was given.
12487 if test "${with_automount+set}" = set; then
12488 withval
="$with_automount"
12491 echo "$ac_t""yes" 1>&6
12492 cat >> confdefs.h
<<\EOF
12493 #define WITH_AUTOMOUNT 1
12498 echo "$ac_t""no" 1>&6
12502 echo "$ac_t""no" 1>&6
12507 #################################################
12508 # check for smbmount support
12509 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12510 echo "configure:12511: checking whether to use SMBMOUNT" >&5
12511 # Check whether --with-smbmount or --without-smbmount was given.
12512 if test "${with_smbmount+set}" = set; then
12513 withval
="$with_smbmount"
12518 echo "$ac_t""yes" 1>&6
12519 cat >> confdefs.h
<<\EOF
12520 #define WITH_SMBMOUNT 1
12523 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
12526 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12531 echo "$ac_t""no" 1>&6
12536 echo "$ac_t""no" 1>&6
12543 #################################################
12544 # check for a PAM clear-text auth, accounts, password and session support
12545 with_pam_for_crypt
=no
12546 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12547 echo "configure:12548: checking whether to use PAM" >&5
12548 # Check whether --with-pam or --without-pam was given.
12549 if test "${with_pam+set}" = set; then
12550 withval
="$with_pam"
12553 echo "$ac_t""yes" 1>&6
12554 cat >> confdefs.h
<<\EOF
12559 with_pam_for_crypt
=yes
12562 echo "$ac_t""no" 1>&6
12566 echo "$ac_t""no" 1>&6
12571 # we can't build a pam module if we don't have pam.
12572 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12573 echo "configure:12574: checking for pam_get_data in -lpam" >&5
12574 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12576 echo $ac_n "(cached) $ac_c" 1>&6
12578 ac_save_LIBS
="$LIBS"
12580 cat > conftest.
$ac_ext <<EOF
12581 #line 12582 "configure"
12582 #include "confdefs.h"
12583 /* Override any gcc2 internal prototype to avoid an error. */
12584 /* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12586 char pam_get_data();
12592 if { (eval echo configure
:12593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12594 eval "ac_cv_lib_$ac_lib_var=yes"
12596 echo "configure: failed program was:" >&5
12597 cat conftest.
$ac_ext >&5
12599 eval "ac_cv_lib_$ac_lib_var=no"
12602 LIBS
="$ac_save_LIBS"
12605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12606 echo "$ac_t""yes" 1>&6
12607 cat >> confdefs.h
<<\EOF
12608 #define HAVE_LIBPAM 1
12612 echo "$ac_t""no" 1>&6
12616 #################################################
12617 # check for pam_smbpass support
12618 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12619 echo "configure:12620: checking whether to use pam_smbpass" >&5
12620 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12621 if test "${with_pam_smbpass+set}" = set; then
12622 withval
="$with_pam_smbpass"
12625 echo "$ac_t""yes" 1>&6
12627 # Conditions under which pam_smbpass should not be built.
12629 if test x
$PICFLAG = x
; then
12630 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12632 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
12633 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12636 PAM_MOD
="bin/pam_smbpass.so"
12640 echo "$ac_t""no" 1>&6
12644 echo "$ac_t""no" 1>&6
12650 ###############################################
12651 # test for where we get crypt() from, but only
12653 if test $with_pam_for_crypt = no
; then
12654 for ac_func
in crypt
12656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12657 echo "configure:12658: checking for $ac_func" >&5
12658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12661 cat > conftest.
$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func(); below. */
12666 #include <assert.h>
12667 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12674 /* The GNU C library defines this for functions which it implements
12675 to always fail with ENOSYS. Some functions are actually named
12676 something starting with __ and the normal name is an alias. */
12677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12685 if { (eval echo configure
:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12687 eval "ac_cv_func_$ac_func=yes"
12689 echo "configure: failed program was:" >&5
12690 cat conftest.
$ac_ext >&5
12692 eval "ac_cv_func_$ac_func=no"
12697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12698 echo "$ac_t""yes" 1>&6
12699 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12700 cat >> confdefs.h
<<EOF
12701 #define $ac_tr_func 1
12705 echo "$ac_t""no" 1>&6
12709 if test x
"$ac_cv_func_crypt" = x
"no"; then
12710 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12711 echo "configure:12712: checking for crypt in -lcrypt" >&5
12712 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12716 ac_save_LIBS
="$LIBS"
12717 LIBS
="-lcrypt $LIBS"
12718 cat > conftest.
$ac_ext <<EOF
12719 #line 12720 "configure"
12720 #include "confdefs.h"
12721 /* Override any gcc2 internal prototype to avoid an error. */
12722 /* We use char because int might match the return type of a gcc2
12723 builtin and then its argument prototype would still apply. */
12730 if { (eval echo configure
:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12732 eval "ac_cv_lib_$ac_lib_var=yes"
12734 echo "configure: failed program was:" >&5
12735 cat conftest.
$ac_ext >&5
12737 eval "ac_cv_lib_$ac_lib_var=no"
12740 LIBS
="$ac_save_LIBS"
12743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12744 echo "$ac_t""yes" 1>&6
12745 LIBS
="$LIBS -lcrypt";
12746 cat >> confdefs.h
<<\EOF
12747 #define HAVE_CRYPT 1
12751 echo "$ac_t""no" 1>&6
12758 ## moved after the check for -lcrypt in order to
12759 ## ensure that the necessary libraries are included
12760 ## check checking for truncated salt. Wrapped by the
12761 ## $with_pam_for_crypt variable as above --jerry
12763 if test $with_pam_for_crypt = no
; then
12764 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12765 echo "configure:12766: checking for a crypt that needs truncated salt" >&5
12766 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12767 echo $ac_n "(cached) $ac_c" 1>&6
12770 if test "$cross_compiling" = yes; then
12771 samba_cv_HAVE_TRUNCATED_SALT
=cross
12773 cat > conftest.
$ac_ext <<EOF
12774 #line 12775 "configure"
12775 #include "confdefs.h"
12776 #include "${srcdir-.}/tests/crypttest.c"
12778 if { (eval echo configure
:12779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12780 samba_cv_HAVE_TRUNCATED_SALT
=no
12782 echo "configure: failed program was:" >&5
12783 cat conftest.
$ac_ext >&5
12785 samba_cv_HAVE_TRUNCATED_SALT
=yes
12792 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12793 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12794 cat >> confdefs.h
<<\EOF
12795 #define HAVE_TRUNCATED_SALT 1
12803 ########################################################################################
12805 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12807 ########################################################################################
12809 #################################################
12810 # check for a TDB password database
12811 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12812 echo "configure:12813: checking whether to use TDB SAM database" >&5
12813 # Check whether --with-tdbsam or --without-tdbsam was given.
12814 if test "${with_tdbsam+set}" = set; then
12815 withval
="$with_tdbsam"
12818 echo "$ac_t""yes" 1>&6
12819 cat >> confdefs.h
<<\EOF
12820 #define WITH_TDB_SAM 1
12825 echo "$ac_t""no" 1>&6
12829 echo "$ac_t""no" 1>&6
12834 #################################################
12835 # check for a NISPLUS password database
12836 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12837 echo "configure:12838: checking whether to use NISPLUS SAM database" >&5
12838 # Check whether --with-nisplussam or --without-nisplussam was given.
12839 if test "${with_nisplussam+set}" = set; then
12840 withval
="$with_nisplussam"
12843 echo "$ac_t""yes" 1>&6
12844 cat >> confdefs.h
<<\EOF
12845 #define WITH_NISPLUS_SAM 1
12850 echo "$ac_t""no" 1>&6
12854 echo "$ac_t""no" 1>&6
12859 ########################################################################################
12861 ## END OF TESTS FOR SAM BACKENDS.
12863 ########################################################################################
12865 #################################################
12866 # check for a NISPLUS_HOME support
12867 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12868 echo "configure:12869: checking whether to use NISPLUS_HOME" >&5
12869 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12870 if test "${with_nisplus_home+set}" = set; then
12871 withval
="$with_nisplus_home"
12874 echo "$ac_t""yes" 1>&6
12875 cat >> confdefs.h
<<\EOF
12876 #define WITH_NISPLUS_HOME 1
12881 echo "$ac_t""no" 1>&6
12885 echo "$ac_t""no" 1>&6
12890 #################################################
12891 # check for syslog logging
12892 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12893 echo "configure:12894: checking whether to use syslog logging" >&5
12894 # Check whether --with-syslog or --without-syslog was given.
12895 if test "${with_syslog+set}" = set; then
12896 withval
="$with_syslog"
12899 echo "$ac_t""yes" 1>&6
12900 cat >> confdefs.h
<<\EOF
12901 #define WITH_SYSLOG 1
12906 echo "$ac_t""no" 1>&6
12910 echo "$ac_t""no" 1>&6
12915 #################################################
12916 # check for a shared memory profiling support
12917 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12918 echo "configure:12919: checking whether to use profiling" >&5
12919 # Check whether --with-profiling-data or --without-profiling-data was given.
12920 if test "${with_profiling_data+set}" = set; then
12921 withval
="$with_profiling_data"
12924 echo "$ac_t""yes" 1>&6
12925 cat >> confdefs.h
<<\EOF
12926 #define WITH_PROFILE 1
12931 echo "$ac_t""no" 1>&6
12935 echo "$ac_t""no" 1>&6
12941 #################################################
12942 # check for experimental disk-quotas support
12943 QUOTAOBJS
=smbd
/noquotas.o
12945 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12946 echo "configure:12947: checking whether to support disk-quotas" >&5
12947 # Check whether --with-quotas or --without-quotas was given.
12948 if test "${with_quotas+set}" = set; then
12949 withval
="$with_quotas"
12952 echo "$ac_t""yes" 1>&6
12955 # Check for kernel 2.4.x quota braindamage...
12956 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12957 echo "configure:12958: checking for linux 2.4.x quota braindamage.." >&5
12958 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12959 echo $ac_n "(cached) $ac_c" 1>&6
12962 cat > conftest.
$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12966 #include <sys/types.h>
12967 #include <asm/types.h>
12968 #include <linux/quota.h>
12969 #include <mntent.h>
12970 #include <linux/unistd.h>
12972 struct mem_dqblk D;
12975 if { (eval echo configure
:12976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12977 samba_cv_linux_2_4_quota_braindamage
=yes
12979 echo "configure: failed program was:" >&5
12980 cat conftest.
$ac_ext >&5
12982 samba_cv_linux_2_4_quota_braindamage
=no
12987 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12988 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
12989 cat >> confdefs.h
<<\EOF
12990 #define LINUX_QUOTAS_2 1
12994 cat >> confdefs.h
<<\EOF
12995 #define LINUX_QUOTAS_1 1
13003 QUOTAOBJS
=smbd
/quotas.o
13004 cat >> confdefs.h
<<\EOF
13005 #define WITH_QUOTAS 1
13010 echo "$ac_t""no" 1>&6
13014 echo "$ac_t""no" 1>&6
13020 #################################################
13021 # check for experimental utmp accounting
13023 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13024 echo "configure:13025: checking whether to support utmp accounting" >&5
13025 # Check whether --with-utmp or --without-utmp was given.
13026 if test "${with_utmp+set}" = set; then
13027 withval
="$with_utmp"
13030 echo "$ac_t""yes" 1>&6
13031 cat >> confdefs.h
<<\EOF
13032 #define WITH_UTMP 1
13037 echo "$ac_t""no" 1>&6
13041 echo "$ac_t""no" 1>&6
13046 #################################################
13047 # set private directory location
13048 # Check whether --with-privatedir or --without-privatedir was given.
13049 if test "${with_privatedir+set}" = set; then
13050 withval
="$with_privatedir"
13054 # Just in case anybody calls it without argument
13056 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
13057 privatedir
='${prefix}/private'
13060 privatedir
="$withval"
13065 privatedir
='${prefix}/private'
13071 #################################################
13072 # set lock directory location
13073 # Check whether --with-lockdir or --without-lockdir was given.
13074 if test "${with_lockdir+set}" = set; then
13075 withval
="$with_lockdir"
13079 # Just in case anybody calls it without argument
13081 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
13082 lockdir
='$(VARDIR)/locks'
13090 lockdir
='$(VARDIR)/locks'
13096 #################################################
13097 # set SWAT directory location
13098 # Check whether --with-swatdir or --without-swatdir was given.
13099 if test "${with_swatdir+set}" = set; then
13100 withval
="$with_swatdir"
13104 # Just in case anybody does it
13106 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
13107 swatdir
='${prefix}/swat'
13115 swatdir
='${prefix}/swat'
13121 #################################################
13122 # choose native language(s) of man pages
13123 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13124 echo "configure:13125: checking chosen man pages' language(s)" >&5
13125 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13126 if test "${with_manpages_langs+set}" = set; then
13127 withval
="$with_manpages_langs"
13130 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13134 manlangs
="$withval"
13138 echo "$ac_t""$manlangs" 1>&6
13139 manlangs
=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13143 echo "$ac_t""$manlangs" 1>&6
13149 #################################################
13150 # these tests are taken from the GNU fileutils package
13151 echo "checking how to get filesystem space usage" 1>&6
13152 echo "configure:13153: checking how to get filesystem space usage" >&5
13155 # Test for statvfs64.
13156 if test $space = no
; then
13158 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13159 echo "configure:13160: checking statvfs64 function (SVR4)" >&5
13160 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13163 if test "$cross_compiling" = yes; then
13164 fu_cv_sys_stat_statvfs64
=cross
13166 cat > conftest.
$ac_ext <<EOF
13167 #line 13168 "configure"
13168 #include "confdefs.h"
13170 #if defined(HAVE_UNISTD_H)
13171 #include <unistd.h>
13173 #include <sys/types.h>
13174 #include <sys/statvfs.h>
13177 struct statvfs64 fsd;
13178 exit (statvfs64 (".", &fsd));
13181 if { (eval echo configure
:13182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13183 fu_cv_sys_stat_statvfs64
=yes
13185 echo "configure: failed program was:" >&5
13186 cat conftest.
$ac_ext >&5
13188 fu_cv_sys_stat_statvfs64
=no
13195 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13196 if test $fu_cv_sys_stat_statvfs64 = yes; then
13198 cat >> confdefs.h
<<\EOF
13199 #define STAT_STATVFS64 1
13205 # Perform only the link test since it seems there are no variants of the
13206 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13207 # because that got a false positive on SCO OSR5. Adding the declaration
13208 # of a `struct statvfs' causes this test to fail (as it should) on such
13209 # systems. That system is reported to work fine with STAT_STATFS4 which
13210 # is what it gets when this test fails.
13211 if test $space = no
; then
13213 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13214 echo "configure:13215: checking statvfs function (SVR4)" >&5
13215 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13216 echo $ac_n "(cached) $ac_c" 1>&6
13218 cat > conftest.
$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 #include <sys/types.h>
13222 #include <sys/statvfs.h>
13224 struct statvfs fsd; statvfs (0, &fsd);
13227 if { (eval echo configure
:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13229 fu_cv_sys_stat_statvfs
=yes
13231 echo "configure: failed program was:" >&5
13232 cat conftest.
$ac_ext >&5
13234 fu_cv_sys_stat_statvfs
=no
13239 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13240 if test $fu_cv_sys_stat_statvfs = yes; then
13242 cat >> confdefs.h
<<\EOF
13243 #define STAT_STATVFS 1
13249 if test $space = no
; then
13250 # DEC Alpha running OSF/1
13251 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13252 echo "configure:13253: checking for 3-argument statfs function (DEC OSF/1)" >&5
13253 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13254 echo $ac_n "(cached) $ac_c" 1>&6
13256 if test "$cross_compiling" = yes; then
13257 fu_cv_sys_stat_statfs3_osf1
=no
13259 cat > conftest.
$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13263 #include <sys/param.h>
13264 #include <sys/types.h>
13265 #include <sys/mount.h>
13270 exit (statfs (".", &fsd, sizeof (struct statfs)));
13273 if { (eval echo configure
:13274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13275 fu_cv_sys_stat_statfs3_osf1
=yes
13277 echo "configure: failed program was:" >&5
13278 cat conftest.
$ac_ext >&5
13280 fu_cv_sys_stat_statfs3_osf1
=no
13287 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13288 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13290 cat >> confdefs.h
<<\EOF
13291 #define STAT_STATFS3_OSF1 1
13297 if test $space = no
; then
13299 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13300 echo "configure:13301: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13301 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13302 echo $ac_n "(cached) $ac_c" 1>&6
13304 if test "$cross_compiling" = yes; then
13305 fu_cv_sys_stat_statfs2_bsize
=no
13307 cat > conftest.
$ac_ext <<EOF
13308 #line 13309 "configure"
13309 #include "confdefs.h"
13311 #ifdef HAVE_SYS_PARAM_H
13312 #include <sys/param.h>
13314 #ifdef HAVE_SYS_MOUNT_H
13315 #include <sys/mount.h>
13317 #ifdef HAVE_SYS_VFS_H
13318 #include <sys/vfs.h>
13324 exit (statfs (".", &fsd));
13327 if { (eval echo configure
:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13329 fu_cv_sys_stat_statfs2_bsize
=yes
13331 echo "configure: failed program was:" >&5
13332 cat conftest.
$ac_ext >&5
13334 fu_cv_sys_stat_statfs2_bsize
=no
13341 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13342 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13344 cat >> confdefs.h
<<\EOF
13345 #define STAT_STATFS2_BSIZE 1
13351 if test $space = no
; then
13353 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13354 echo "configure:13355: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13355 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13358 if test "$cross_compiling" = yes; then
13359 fu_cv_sys_stat_statfs4
=no
13361 cat > conftest.
$ac_ext <<EOF
13362 #line 13363 "configure"
13363 #include "confdefs.h"
13364 #include <sys/types.h>
13365 #include <sys/statfs.h>
13369 exit (statfs (".", &fsd, sizeof fsd, 0));
13372 if { (eval echo configure
:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13374 fu_cv_sys_stat_statfs4
=yes
13376 echo "configure: failed program was:" >&5
13377 cat conftest.
$ac_ext >&5
13379 fu_cv_sys_stat_statfs4
=no
13386 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13387 if test $fu_cv_sys_stat_statfs4 = yes; then
13389 cat >> confdefs.h
<<\EOF
13390 #define STAT_STATFS4 1
13396 if test $space = no
; then
13397 # 4.4BSD and NetBSD
13398 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13399 echo "configure:13400: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13400 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13401 echo $ac_n "(cached) $ac_c" 1>&6
13403 if test "$cross_compiling" = yes; then
13404 fu_cv_sys_stat_statfs2_fsize
=no
13406 cat > conftest.
$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13409 #include <sys/types.h>
13410 #ifdef HAVE_SYS_PARAM_H
13411 #include <sys/param.h>
13413 #ifdef HAVE_SYS_MOUNT_H
13414 #include <sys/mount.h>
13420 exit (statfs (".", &fsd));
13423 if { (eval echo configure
:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13425 fu_cv_sys_stat_statfs2_fsize
=yes
13427 echo "configure: failed program was:" >&5
13428 cat conftest.
$ac_ext >&5
13430 fu_cv_sys_stat_statfs2_fsize
=no
13437 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13438 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13440 cat >> confdefs.h
<<\EOF
13441 #define STAT_STATFS2_FSIZE 1
13447 if test $space = no
; then
13449 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13450 echo "configure:13451: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13451 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13452 echo $ac_n "(cached) $ac_c" 1>&6
13454 if test "$cross_compiling" = yes; then
13455 fu_cv_sys_stat_fs_data
=no
13457 cat > conftest.
$ac_ext <<EOF
13458 #line 13459 "configure"
13459 #include "confdefs.h"
13460 #include <sys/types.h>
13461 #ifdef HAVE_SYS_PARAM_H
13462 #include <sys/param.h>
13464 #ifdef HAVE_SYS_MOUNT_H
13465 #include <sys/mount.h>
13467 #ifdef HAVE_SYS_FS_TYPES_H
13468 #include <sys/fs_types.h>
13472 struct fs_data fsd;
13473 /* Ultrix's statfs returns 1 for success,
13474 0 for not mounted, -1 for failure. */
13475 exit (statfs (".", &fsd) != 1);
13478 if { (eval echo configure
:13479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13480 fu_cv_sys_stat_fs_data
=yes
13482 echo "configure: failed program was:" >&5
13483 cat conftest.
$ac_ext >&5
13485 fu_cv_sys_stat_fs_data
=no
13492 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13493 if test $fu_cv_sys_stat_fs_data = yes; then
13495 cat >> confdefs.h
<<\EOF
13496 #define STAT_STATFS2_FS_DATA 1
13503 # As a gating factor for large file support, in order to
13504 # use <4GB files we must have the following minimal support
13506 # long long, and a 64 bit off_t or off64_t.
13507 # If we don't have all of these then disable large
13510 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13511 echo "configure:13512: checking if large file support can be enabled" >&5
13512 cat > conftest.
$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13516 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13517 #include <sys/types.h>
13526 if { (eval echo configure
:13527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13528 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13530 echo "configure: failed program was:" >&5
13531 cat conftest.
$ac_ext >&5
13533 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13536 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13537 cat >> confdefs.h
<<\EOF
13538 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13542 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13544 # Check whether --with-spinlocks or --without-spinlocks was given.
13545 if test "${with_spinlocks+set}" = set; then
13546 withval
="$with_spinlocks"
13550 if test "x$with_spinlocks" = "xyes"; then
13551 cat >> confdefs.h
<<\EOF
13552 #define USE_SPINLOCKS 1
13556 case "$host_cpu" in
13558 cat >> confdefs.h
<<\EOF
13559 #define SPARC_SPINLOCKS 1
13564 i386|i486|i586|i686
)
13565 cat >> confdefs.h
<<\EOF
13566 #define INTEL_SPINLOCKS 1
13572 cat >> confdefs.h
<<\EOF
13573 #define MIPS_SPINLOCKS 1
13579 cat >> confdefs.h
<<\EOF
13580 #define POWERPC_SPINLOCKS 1
13587 #################################################
13588 # check for ACL support
13590 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13591 echo "configure:13592: checking whether to support ACLs" >&5
13592 # Check whether --with-acl-support or --without-acl-support was given.
13593 if test "${with_acl_support+set}" = set; then
13594 withval
="$with_acl_support"
13600 echo "$ac_t""Using UnixWare ACLs" 1>&6
13601 cat >> confdefs.h
<<\EOF
13602 #define HAVE_UNIXWARE_ACLS 1
13607 echo "$ac_t""Using solaris ACLs" 1>&6
13608 cat >> confdefs.h
<<\EOF
13609 #define HAVE_SOLARIS_ACLS 1
13614 echo "$ac_t""Using HPUX ACLs" 1>&6
13615 cat >> confdefs.h
<<\EOF
13616 #define HAVE_HPUX_ACLS 1
13621 echo "$ac_t""Using IRIX ACLs" 1>&6
13622 cat >> confdefs.h
<<\EOF
13623 #define HAVE_IRIX_ACLS 1
13628 echo "$ac_t""Using AIX ACLs" 1>&6
13629 cat >> confdefs.h
<<\EOF
13630 #define HAVE_AIX_ACLS 1
13635 echo "$ac_t""Using Tru64 ACLs" 1>&6
13636 cat >> confdefs.h
<<\EOF
13637 #define HAVE_TRU64_ACLS 1
13640 LIBS
="$LIBS -lpacl"
13643 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13644 echo "configure:13645: checking for acl_get_file in -lacl" >&5
13645 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13647 echo $ac_n "(cached) $ac_c" 1>&6
13649 ac_save_LIBS
="$LIBS"
13651 cat > conftest.
$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 /* Override any gcc2 internal prototype to avoid an error. */
13655 /* We use char because int might match the return type of a gcc2
13656 builtin and then its argument prototype would still apply. */
13657 char acl_get_file();
13663 if { (eval echo configure
:13664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13665 eval "ac_cv_lib_$ac_lib_var=yes"
13667 echo "configure: failed program was:" >&5
13668 cat conftest.
$ac_ext >&5
13670 eval "ac_cv_lib_$ac_lib_var=no"
13673 LIBS
="$ac_save_LIBS"
13676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13677 echo "$ac_t""yes" 1>&6
13678 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13680 cat >> confdefs.h
<<EOF
13681 #define $ac_tr_lib 1
13687 echo "$ac_t""no" 1>&6
13690 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13691 echo "configure:13692: checking for ACL support" >&5
13692 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13693 echo $ac_n "(cached) $ac_c" 1>&6
13696 cat > conftest.
$ac_ext <<EOF
13697 #line 13698 "configure"
13698 #include "confdefs.h"
13699 #include <sys/types.h>
13700 #include <sys/acl.h>
13702 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13705 if { (eval echo configure
:13706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13707 samba_cv_HAVE_POSIX_ACLS
=yes
13709 echo "configure: failed program was:" >&5
13710 cat conftest.
$ac_ext >&5
13712 samba_cv_HAVE_POSIX_ACLS
=no
13717 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13718 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13719 echo "$ac_t""Using posix ACLs" 1>&6
13720 cat >> confdefs.h
<<\EOF
13721 #define HAVE_POSIX_ACLS 1
13724 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13725 echo "configure:13726: checking for acl_get_perm_np" >&5
13726 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13727 echo $ac_n "(cached) $ac_c" 1>&6
13730 cat > conftest.
$ac_ext <<EOF
13731 #line 13732 "configure"
13732 #include "confdefs.h"
13733 #include <sys/types.h>
13734 #include <sys/acl.h>
13736 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13739 if { (eval echo configure
:13740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13741 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13743 echo "configure: failed program was:" >&5
13744 cat conftest.
$ac_ext >&5
13746 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13751 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13752 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13753 cat >> confdefs.h
<<\EOF
13754 #define HAVE_ACL_GET_PERM_NP 1
13763 echo "$ac_t""no" 1>&6
13764 cat >> confdefs.h
<<\EOF
13765 #define HAVE_NO_ACLS 1
13771 cat >> confdefs.h
<<\EOF
13772 #define HAVE_NO_ACLS 1
13775 echo "$ac_t""no" 1>&6
13780 #################################################
13781 # Check whether winbind is supported on this platform. If so we need to
13782 # build and install client programs (WINBIND_TARGETS), sbin programs
13783 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13785 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13786 echo "configure:13787: checking whether to build winbind" >&5
13788 # Initially, the value of $host_os decides whether winbind is supported
13796 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13797 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13801 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13805 winbind_no_reason
=", unsupported on $host_os"
13809 # Check the setting of --with-winbindd
13811 # Check whether --with-winbind or --without-winbind was given.
13812 if test "${with_winbind+set}" = set; then
13813 withval
="$with_winbind"
13827 # We need unix domain sockets for winbind
13829 if test x
"$HAVE_WINBIND" = x
"yes"; then
13830 if test x
"$samba_cv_unixsocket" = x
"no"; then
13831 winbind_no_reason
=", no unix domain socket support on $host_os"
13836 # Display test results
13839 WINBIND_STARGETS
=""
13840 WINBIND_LTARGETS
=""
13841 WINBIND_PAM_PROGS
=""
13843 if test x
"$HAVE_WINBIND" = x
"yes"; then
13844 echo "$ac_t""yes" 1>&6
13846 WINBIND_TARGETS
="bin/wbinfo"
13847 WINBIND_STARGETS
="bin/winbindd"
13848 if test x
"$BLDSHARED" = x
"true"; then
13849 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13850 if test x
"$with_pam" = x
"yes"; then
13851 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13855 echo "$ac_t""no$winbind_no_reason" 1>&6
13858 # Substitution time!
13867 # Solaris has some extra fields in struct passwd that need to be
13868 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13869 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13872 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13873 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13874 # [#include <pwd.h>])
13876 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13877 echo "configure:13878: checking whether struct passwd has pw_comment" >&5
13878 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13879 echo $ac_n "(cached) $ac_c" 1>&6
13882 cat > conftest.
$ac_ext <<EOF
13883 #line 13884 "configure"
13884 #include "confdefs.h"
13887 struct passwd p; p.pw_comment;
13890 if { (eval echo configure
:13891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13892 samba_cv_passwd_pw_comment
=yes
13894 echo "configure: failed program was:" >&5
13895 cat conftest.
$ac_ext >&5
13897 samba_cv_passwd_pw_comment
=no
13902 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13903 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
13904 cat >> confdefs.h
<<\EOF
13905 #define HAVE_PASSWD_PW_COMMENT 1
13910 #AC_CHECK_MEMBER(struct passwd.pw_age,
13911 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13912 # [#include <pwd.h>])
13914 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13915 echo "configure:13916: checking whether struct passwd has pw_age" >&5
13916 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13917 echo $ac_n "(cached) $ac_c" 1>&6
13920 cat > conftest.
$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13925 struct passwd p; p.pw_age;
13928 if { (eval echo configure
:13929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13930 samba_cv_passwd_pw_age
=yes
13932 echo "configure: failed program was:" >&5
13933 cat conftest.
$ac_ext >&5
13935 samba_cv_passwd_pw_age
=no
13940 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13941 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
13942 cat >> confdefs.h
<<\EOF
13943 #define HAVE_PASSWD_PW_AGE 1
13948 #################################################
13949 # Check to see if we should use the included popt
13951 # Check whether --with-included-popt or --without-included-popt was given.
13952 if test "${with_included_popt+set}" = set; then
13953 withval
="$with_included_popt"
13965 if test x
"$INCLUDED_POPT" != x
"yes"; then
13966 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13967 echo "configure:13968: checking for poptGetContext in -lpopt" >&5
13968 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13972 ac_save_LIBS
="$LIBS"
13973 LIBS
="-lpopt $LIBS"
13974 cat > conftest.
$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13977 /* Override any gcc2 internal prototype to avoid an error. */
13978 /* We use char because int might match the return type of a gcc2
13979 builtin and then its argument prototype would still apply. */
13980 char poptGetContext();
13986 if { (eval echo configure
:13987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13988 eval "ac_cv_lib_$ac_lib_var=yes"
13990 echo "configure: failed program was:" >&5
13991 cat conftest.
$ac_ext >&5
13993 eval "ac_cv_lib_$ac_lib_var=no"
13996 LIBS
="$ac_save_LIBS"
13999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14000 echo "$ac_t""yes" 1>&6
14003 echo "$ac_t""no" 1>&6
14009 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14010 echo "configure:14011: checking whether to use included popt" >&5
14011 if test x
"$INCLUDED_POPT" = x
"yes"; then
14012 echo "$ac_t""$srcdir/popt" 1>&6
14013 BUILD_POPT
='$(POPT_OBJS)'
14014 FLAGS1
="-I$srcdir/popt"
14016 echo "$ac_t""no" 1>&6
14017 LIBS
="$LIBS -lpopt"
14022 #################################################
14023 # do extra things if we are running insure
14025 if test "${ac_cv_prog_CC}" = "insure"; then
14026 CPPFLAGS
="$CPPFLAGS -D__INSURE__"
14029 #################################################
14030 # final configure stuff
14032 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14033 echo "configure:14034: checking configure summary" >&5
14034 if test "$cross_compiling" = yes; then
14035 echo "configure: warning: cannot run when cross-compiling" 1>&2
14037 cat > conftest.
$ac_ext <<EOF
14038 #line 14039 "configure"
14039 #include "confdefs.h"
14040 #include "${srcdir-.}/tests/summary.c"
14042 if { (eval echo configure
:14043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14044 echo "$ac_t""yes" 1>&6
14046 echo "configure: failed program was:" >&5
14047 cat conftest.
$ac_ext >&5
14049 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14059 cat > confcache
<<\EOF
14060 # This file is a shell script that caches the results of configure
14061 # tests run on this system so they can be shared between configure
14062 # scripts and configure runs. It is not useful on other systems.
14063 # If it contains results you don't want to keep, you may remove or edit it.
14065 # By default, configure uses ./config.cache as the cache file,
14066 # creating it if it does not exist already. You can give configure
14067 # the --cache-file=FILE option to use a different cache file; that is
14068 # what configure does when it calls configure scripts in
14069 # subdirectories, so they share the cache.
14070 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14071 # config.status only pays attention to the cache file if you give it the
14072 # --recheck option to rerun configure.
14075 # The following way of writing the cache mishandles newlines in values,
14076 # but we know of no workaround that is simple, portable, and efficient.
14077 # So, don't put newlines in cache variables' values.
14078 # Ultrix sh set writes to stderr and can't be redirected directly,
14079 # and sets the high bit in the cache file unless we assign to the vars.
14081 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14083 # `set' does not quote correctly, so add quotes (double-quote substitution
14084 # turns \\\\ into \\, and sed turns \\ into \).
14086 -e "s/'/'\\\\''/g" \
14087 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14090 # `set' quotes correctly as required by POSIX, so do not add quotes.
14091 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14094 if cmp -s $cache_file confcache
; then
14097 if test -w $cache_file; then
14098 echo "updating cache $cache_file"
14099 cat confcache
> $cache_file
14101 echo "not updating unwritable cache $cache_file"
14106 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14108 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14109 # Let make expand exec_prefix.
14110 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14112 # Any assignment to VPATH causes Sun make to only execute
14113 # the first set of double-colon rules, so remove it if not needed.
14114 # If there is a colon in the path, we need to keep it.
14115 if test "x$srcdir" = x.
; then
14116 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
14119 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14121 DEFS
=-DHAVE_CONFIG_H
14123 # Without the "./", some shells look in PATH for config.status.
14124 : ${CONFIG_STATUS=./config.status}
14126 echo creating
$CONFIG_STATUS
14127 rm -f $CONFIG_STATUS
14128 cat > $CONFIG_STATUS <<EOF
14130 # Generated automatically by configure.
14131 # Run this file to recreate the current configuration.
14132 # This directory was configured as follows,
14133 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14135 # $0 $ac_configure_args
14137 # Compiler output produced by configure, useful for debugging
14138 # configure, is in ./config.log if it exists.
14140 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14143 case "\$ac_option" in
14144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14145 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14146 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14147 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14148 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14150 -help | --help | --hel | --he | --h)
14151 echo "\$ac_cs_usage"; exit 0 ;;
14152 *) echo "\$ac_cs_usage"; exit 1 ;;
14156 ac_given_srcdir=$srcdir
14157 ac_given_INSTALL="$INSTALL"
14159 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14161 cat >> $CONFIG_STATUS <<EOF
14163 # Protect against being on the right side of a sed subst in config.status.
14164 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14165 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14169 s%@CFLAGS@%$CFLAGS%g
14170 s%@CPPFLAGS@%$CPPFLAGS%g
14171 s%@CXXFLAGS@%$CXXFLAGS%g
14172 s%@FFLAGS@%$FFLAGS%g
14174 s%@LDFLAGS@%$LDFLAGS%g
14176 s%@exec_prefix@%$exec_prefix%g
14177 s%@prefix@%$prefix%g
14178 s%@program_transform_name@%$program_transform_name%g
14179 s%@bindir@%$bindir%g
14180 s%@sbindir@%$sbindir%g
14181 s%@libexecdir@%$libexecdir%g
14182 s%@datadir@%$datadir%g
14183 s%@sysconfdir@%$sysconfdir%g
14184 s%@sharedstatedir@%$sharedstatedir%g
14185 s%@localstatedir@%$localstatedir%g
14186 s%@libdir@%$libdir%g
14187 s%@includedir@%$includedir%g
14188 s%@oldincludedir@%$oldincludedir%g
14189 s%@infodir@%$infodir%g
14190 s%@mandir@%$mandir%g
14191 s%@codepagedir@%$codepagedir%g
14192 s%@configdir@%$configdir%g
14193 s%@lockdir@%$lockdir%g
14194 s%@piddir@%$piddir%g
14195 s%@logfilebase@%$logfilebase%g
14196 s%@privatedir@%$privatedir%g
14197 s%@swatdir@%$swatdir%g
14198 s%@RUNPROG@%$RUNPROG%g
14199 s%@MPROGS@%$MPROGS%g
14200 s%@LDSHFLAGS@%$LDSHFLAGS%g
14202 s%@HOST_OS@%$HOST_OS%g
14203 s%@PAM_MOD@%$PAM_MOD%g
14205 s%@WRAP32@%$WRAP32%g
14206 s%@PICFLAG@%$PICFLAG%g
14207 s%@PICSUFFIX@%$PICSUFFIX%g
14208 s%@POBAD_CC@%$POBAD_CC%g
14209 s%@SHLIBEXT@%$SHLIBEXT%g
14210 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14212 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14213 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14214 s%@INSTALL_DATA@%$INSTALL_DATA%g
14216 s%@BROKEN_CC@%$BROKEN_CC%g
14218 s%@host_alias@%$host_alias%g
14219 s%@host_cpu@%$host_cpu%g
14220 s%@host_vendor@%$host_vendor%g
14221 s%@host_os@%$host_os%g
14222 s%@target@%$target%g
14223 s%@target_alias@%$target_alias%g
14224 s%@target_cpu@%$target_cpu%g
14225 s%@target_vendor@%$target_vendor%g
14226 s%@target_os@%$target_os%g
14228 s%@build_alias@%$build_alias%g
14229 s%@build_cpu@%$build_cpu%g
14230 s%@build_vendor@%$build_vendor%g
14231 s%@build_os@%$build_os%g
14233 s%@LIBOBJS@%$LIBOBJS%g
14234 s%@TERMLIBS@%$TERMLIBS%g
14235 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14237 s%@DYNEXP@%$DYNEXP%g
14238 s%@QUOTAOBJS@%$QUOTAOBJS%g
14239 s%@manlangs@%$manlangs%g
14240 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14241 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14242 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14243 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14244 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14245 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14246 s%@BUILD_POPT@%$BUILD_POPT%g
14247 s%@FLAGS1@%$FLAGS1%g
14248 s%@builddir@%$builddir%g
14253 cat >> $CONFIG_STATUS <<\EOF
14255 # Split the substitutions into bite-sized pieces for seds with
14256 # small command number limits, like on Digital OSF/1 and HP-UX.
14257 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
14258 ac_file
=1 # Number of current file.
14259 ac_beg
=1 # First line for current file.
14260 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
14263 while $ac_more_lines; do
14264 if test $ac_beg -gt 1; then
14265 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
14267 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
14269 if test ! -s conftest.s
$ac_file; then
14270 ac_more_lines
=false
14271 rm -f conftest.s
$ac_file
14273 if test -z "$ac_sed_cmds"; then
14274 ac_sed_cmds
="sed -f conftest.s$ac_file"
14276 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
14278 ac_file
=`expr $ac_file + 1`
14280 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
14283 if test -z "$ac_sed_cmds"; then
14288 cat >> $CONFIG_STATUS <<EOF
14290 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14292 cat >> $CONFIG_STATUS <<\EOF
14293 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
14294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14296 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14297 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14298 *) ac_file_in
="${ac_file}.in" ;;
14301 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14303 # Remove last slash and all that follows it. Not all systems have dirname.
14304 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14305 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14306 # The file is in a subdirectory.
14307 test ! -d "$ac_dir" && mkdir
"$ac_dir"
14308 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
14309 # A "../" for each directory in $ac_dir_suffix.
14310 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14312 ac_dir_suffix
= ac_dots
=
14315 case "$ac_given_srcdir" in
14317 if test -z "$ac_dots"; then top_srcdir
=.
14318 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14319 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
14320 *) # Relative path.
14321 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14322 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14325 case "$ac_given_INSTALL" in
14326 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
14327 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
14330 echo creating
"$ac_file"
14332 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14334 *Makefile
*) ac_comsub
="1i\\
14335 # $configure_input" ;;
14339 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14341 s%@configure_input@%$configure_input%g
14342 s%@srcdir@%$srcdir%g
14343 s%@top_srcdir@%$top_srcdir%g
14344 s%@INSTALL@%$INSTALL%g
14345 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
14349 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14350 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14352 # ac_d sets the value in "#define NAME VALUE" lines.
14353 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14354 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
14357 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14358 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14359 ac_uB
='\([ ]\)%\1#\2define\3'
14362 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14363 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14364 ac_eB
='$%\1#\2define\3'
14368 if test "${CONFIG_HEADERS+set}" != set; then
14370 cat >> $CONFIG_STATUS <<EOF
14371 CONFIG_HEADERS="include/config.h"
14373 cat >> $CONFIG_STATUS <<\EOF
14375 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
14376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14378 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14379 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14380 *) ac_file_in
="${ac_file}.in" ;;
14383 echo creating
$ac_file
14385 rm -f conftest.frag conftest.
in conftest.out
14386 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14387 cat $ac_file_inputs > conftest.
in
14391 # Transform confdefs.h into a sed script conftest.vals that substitutes
14392 # the proper values into config.h.in to produce config.h. And first:
14393 # Protect against being on the right side of a sed subst in config.status.
14394 # Protect against being in an unquoted here document in config.status.
14395 rm -f conftest.vals
14396 cat > conftest.hdr
<<\EOF
14399 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14403 sed -n -f conftest.hdr confdefs.h > conftest.vals
14406 # This sed command replaces #undef with comments. This is necessary, for
14407 # example, in the case of _POSIX_SOURCE, which is predefined and required
14408 # on some systems where configure will not decide to define it.
14409 cat >> conftest.vals <<\EOF
14410 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14413 # Break up conftest.vals because some shells have a limit on
14414 # the size of here documents, and old seds have small limits too.
14416 rm -f conftest.tail
14419 ac_lines=`grep -c . conftest.vals
`
14420 # grep -c gives empty output for an empty file on some AIX systems.
14421 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14422 # Write a limited-size here document to conftest.frag.
14423 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14424 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14426 sed -f conftest.frag conftest.in > conftest.out
14428 mv conftest.out conftest.in
14429 ' >> $CONFIG_STATUS
14430 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14431 rm -f conftest.vals
14432 mv conftest.tail conftest.vals
14434 rm -f conftest.vals
14436 cat >> $CONFIG_STATUS <<\EOF
14437 rm -f conftest.frag conftest.h
14438 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14439 cat conftest.in >> conftest.h
14441 if cmp -s $ac_file conftest.h 2>/dev/null; then
14442 echo "$ac_file is unchanged"
14445 # Remove last slash and all that follows it. Not all systems have dirname.
14446 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14447 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14448 # The file is in a subdirectory.
14449 test ! -d "$ac_dir" && mkdir "$ac_dir"
14452 mv conftest.h $ac_file
14457 cat >> $CONFIG_STATUS <<EOF
14460 cat >> $CONFIG_STATUS <<\EOF
14464 chmod +x $CONFIG_STATUS
14465 rm -fr confdefs* $ac_clean_files
14466 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14469 #################################################
14470 # Print very concise instructions on building/use
14471 if test "x$enable_dmalloc" = xyes
14473 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14474 echo "$ac_t"" \$ eval \`dmalloc samba\
`." 1>&6