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 --enable-debug turn on debugging [default=no]"
18 --enable-developer turn on developer warnings and debugging [default=no]"
20 --enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
22 --enable-dmalloc enable heap debugging [default=no]"
24 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
26 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
28 --with-smbwrapper Include SMB wrapper support (default=no) "
30 --with-afs Include AFS clear-text auth support (default=no) "
32 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
34 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
36 --with-automount Include AUTOMOUNT support (default=no)"
38 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
40 --with-pam Include PAM support (default=no)"
42 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
44 --with-tdbsam Include experimental TDB SAM support (default=no)"
46 --with-ldapsam Include experimental LDAP SAM support (default=no)"
48 --with-nisplussam Include NISPLUS SAM support (default=no)"
50 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
52 --with-ssl Include SSL support (default=no)
53 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
54 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
56 --with-syslog Include experimental SYSLOG support (default=no)"
58 --with-profiling-data Include gathering source code profile information (default=no)"
60 --with-quotas Include experimental disk-quota support (default=no)"
62 --with-utmp Include experimental utmp accounting (default=no)"
64 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
66 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
68 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
70 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
72 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
74 --with-acl-support Include ACL support (default=no)"
76 --with-winbind Build winbind (default, if supported by OS)"
78 --with-included-popt use bundled popt library, not from system"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
84 cache_file
=.
/config.cache
93 program_transform_name
=s
,x
,x
,
101 bindir
='${exec_prefix}/bin'
102 sbindir
='${exec_prefix}/sbin'
103 libexecdir
='${exec_prefix}/libexec'
104 datadir
='${prefix}/share'
105 sysconfdir
='${prefix}/etc'
106 sharedstatedir
='${prefix}/com'
107 localstatedir
='${prefix}/var'
108 libdir
='${exec_prefix}/lib'
109 includedir
='${prefix}/include'
110 oldincludedir
='/usr/include'
111 infodir
='${prefix}/info'
112 mandir
='${prefix}/man'
114 # Initialize some other variables.
117 SHELL
=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
143 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
144 bindir
="$ac_optarg" ;;
146 -build |
--build |
--buil |
--bui |
--bu)
148 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
149 build
="$ac_optarg" ;;
151 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
152 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
153 ac_prev
=cache_file
;;
154 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
155 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
156 cache_file
="$ac_optarg" ;;
158 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
160 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
162 datadir
="$ac_optarg" ;;
164 -disable-* |
--disable-*)
165 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* |
--enable-*)
174 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
187 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
188 |
--exec |
--exe |
--ex)
189 ac_prev
=exec_prefix
;;
190 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
191 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
192 |
--exec=* |
--exe=* |
--ex=*)
193 exec_prefix
="$ac_optarg" ;;
195 -gas |
--gas |
--ga |
--g)
196 # Obsolete; use --with-gas.
199 -help |
--help |
--hel |
--he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host |
--host |
--hos |
--ho)
256 -host=* |
--host=* |
--hos=* |
--ho=*)
259 -includedir |
--includedir |
--includedi |
--included |
--include \
260 |
--includ |
--inclu |
--incl |
--inc)
261 ac_prev
=includedir
;;
262 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
263 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
264 includedir
="$ac_optarg" ;;
266 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
268 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
269 infodir
="$ac_optarg" ;;
271 -libdir |
--libdir |
--libdi |
--libd)
273 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
274 libdir
="$ac_optarg" ;;
276 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
277 |
--libexe |
--libex |
--libe)
278 ac_prev
=libexecdir
;;
279 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
280 |
--libexe=* |
--libex=* |
--libe=*)
281 libexecdir
="$ac_optarg" ;;
283 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
284 |
--localstate |
--localstat |
--localsta |
--localst \
285 |
--locals |
--local |
--loca |
--loc |
--lo)
286 ac_prev
=localstatedir
;;
287 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
288 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
289 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
290 localstatedir
="$ac_optarg" ;;
292 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
294 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
295 mandir
="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
305 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
306 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
309 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
310 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
311 |
--oldin |
--oldi |
--old |
--ol |
--o)
312 ac_prev
=oldincludedir
;;
313 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
314 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
315 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
316 oldincludedir
="$ac_optarg" ;;
318 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
320 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
321 prefix
="$ac_optarg" ;;
323 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
324 |
--program-pre |
--program-pr |
--program-p)
325 ac_prev
=program_prefix
;;
326 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
327 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
328 program_prefix
="$ac_optarg" ;;
330 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
331 |
--program-suf |
--program-su |
--program-s)
332 ac_prev
=program_suffix
;;
333 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
334 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
335 program_suffix
="$ac_optarg" ;;
337 -program-transform-name |
--program-transform-name \
338 |
--program-transform-nam |
--program-transform-na \
339 |
--program-transform-n |
--program-transform- \
340 |
--program-transform |
--program-transfor \
341 |
--program-transfo |
--program-transf \
342 |
--program-trans |
--program-tran \
343 |
--progr-tra |
--program-tr |
--program-t)
344 ac_prev
=program_transform_name
;;
345 -program-transform-name=* |
--program-transform-name=* \
346 |
--program-transform-nam=* |
--program-transform-na=* \
347 |
--program-transform-n=* |
--program-transform-=* \
348 |
--program-transform=* |
--program-transfor=* \
349 |
--program-transfo=* |
--program-transf=* \
350 |
--program-trans=* |
--program-tran=* \
351 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
352 program_transform_name
="$ac_optarg" ;;
354 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
355 |
-silent |
--silent |
--silen |
--sile |
--sil)
358 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
360 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
362 sbindir
="$ac_optarg" ;;
364 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
365 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
366 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
368 ac_prev
=sharedstatedir
;;
369 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
370 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
371 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
373 sharedstatedir
="$ac_optarg" ;;
375 -site |
--site |
--sit)
377 -site=* |
--site=* |
--sit=*)
380 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
382 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
383 srcdir
="$ac_optarg" ;;
385 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
386 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
387 ac_prev
=sysconfdir
;;
388 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
389 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
390 sysconfdir
="$ac_optarg" ;;
392 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
394 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
395 target
="$ac_optarg" ;;
397 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
400 -version |
--version |
--versio |
--versi |
--vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package
=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* |
--without-*)
418 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package
=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
431 |
--x-incl |
--x-inc |
--x-in |
--x-i)
432 ac_prev
=x_includes
;;
433 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
434 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
435 x_includes
="$ac_optarg" ;;
437 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
438 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
439 ac_prev
=x_libraries
;;
440 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
441 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
442 x_libraries
="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE
; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
493 |
--no-cr |
--no-c) ;;
494 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
495 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
496 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest
* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file
=include
/includes.h
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted
=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted
=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE
; then
547 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
549 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file
in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp
='$CPP $CPPFLAGS'
570 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling
=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
585 ac_n
= ac_c
='\c' ac_t
=
590 # we want to be compatible with older versions of Samba
608 # compile with optimisation and without debugging by default
609 CFLAGS
="-O ${CFLAGS}"
611 # Check whether --enable-debug or --disable-debug was given.
612 if test "${enable_debug+set}" = set; then
613 enableval
="$enable_debug"
614 if eval "test x$enable_debug = xyes"; then
615 CFLAGS
="${CFLAGS} -g"
620 # Check whether --enable-developer or --disable-developer was given.
621 if test "${enable_developer+set}" = set; then
622 enableval
="$enable_developer"
623 if eval "test x$enable_developer = xyes"; then
624 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
629 # Check whether --enable-krb5developer or --disable-krb5developer was given.
630 if test "${enable_krb5developer+set}" = set; then
631 enableval
="$enable_krb5developer"
632 if eval "test x$enable_krb5developer = xyes"; then
633 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
638 # Check whether --enable-dmalloc or --disable-dmalloc was given.
639 if test "${enable_dmalloc+set}" = set; then
640 enableval
="$enable_dmalloc"
645 if test "x$enable_dmalloc" = xyes
647 cat >> confdefs.h
<<\EOF
648 #define ENABLE_DMALLOC 1
651 cat >> confdefs.h
<<\EOF
652 #define DMALLOC_FUNC_CHECK 1
655 LIBS
="$LIBS -ldmalloc"
658 # Extract the first word of "gcc", so it can be a program name with args.
659 set dummy gcc
; ac_word
=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 if test -n "$CC"; then
666 ac_cv_prog_CC
="$CC" # Let the user override the test.
668 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
670 for ac_dir
in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir
=.
672 if test -f $ac_dir/$ac_word; then
681 if test -n "$CC"; then
682 echo "$ac_t""$CC" 1>&6
684 echo "$ac_t""no" 1>&6
687 if test -z "$CC"; then
688 # Extract the first word of "cc", so it can be a program name with args.
689 set dummy cc
; ac_word
=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 if test -n "$CC"; then
696 ac_cv_prog_CC
="$CC" # Let the user override the test.
698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
701 for ac_dir
in $ac_dummy; do
702 test -z "$ac_dir" && ac_dir
=.
703 if test -f $ac_dir/$ac_word; then
704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
713 if test $ac_prog_rejected = yes; then
714 # We found a bogon in the path, so make sure we never use it.
715 set dummy
$ac_cv_prog_CC
717 if test $# -gt 0; then
718 # We chose a different compiler from the bogus one.
719 # However, it has the same basename, so the bogon will be chosen
720 # first if we set CC to just the basename; use the full file name.
722 set dummy
"$ac_dir/$ac_word" "$@"
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
733 echo "$ac_t""no" 1>&6
736 if test -z "$CC"; then
739 # Extract the first word of "cl", so it can be a program name with args.
740 set dummy cl
; ac_word
=$2
741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742 echo "configure:743: checking for $ac_word" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 if test -n "$CC"; then
747 ac_cv_prog_CC
="$CC" # Let the user override the test.
749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
751 for ac_dir
in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir
=.
753 if test -f $ac_dir/$ac_word; then
762 if test -n "$CC"; then
763 echo "$ac_t""$CC" 1>&6
765 echo "$ac_t""no" 1>&6
770 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
774 echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778 ac_cpp
='$CPP $CPPFLAGS'
779 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781 cross_compiling
=$ac_cv_prog_cc_cross
783 cat > conftest.
$ac_ext << EOF
785 #line 786 "configure"
786 #include "confdefs.h"
790 if { (eval echo configure
:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
791 ac_cv_prog_cc_works
=yes
792 # If we can't run a trivial program, we are probably using a cross compiler.
793 if (.
/conftest
; exit) 2>/dev
/null
; then
794 ac_cv_prog_cc_cross
=no
796 ac_cv_prog_cc_cross
=yes
799 echo "configure: failed program was:" >&5
800 cat conftest.
$ac_ext >&5
801 ac_cv_prog_cc_works
=no
805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806 ac_cpp
='$CPP $CPPFLAGS'
807 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809 cross_compiling
=$ac_cv_prog_cc_cross
811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812 if test $ac_cv_prog_cc_works = no
; then
813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818 cross_compiling
=$ac_cv_prog_cc_cross
820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821 echo "configure:822: checking whether we are using GNU C" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftest.c
<<EOF
830 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839 if test $ac_cv_prog_gcc = yes; then
845 ac_test_CFLAGS
="${CFLAGS+set}"
846 ac_save_CFLAGS
="$CFLAGS"
848 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${CC-cc} accepts -g" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 echo 'void f(){}' > conftest.c
854 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
864 if test "$ac_test_CFLAGS" = set; then
865 CFLAGS
="$ac_save_CFLAGS"
866 elif test $ac_cv_prog_cc_g = yes; then
867 if test "$GCC" = yes; then
873 if test "$GCC" = yes; then
881 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
882 if test -f $ac_dir/install-sh
; then
884 ac_install_sh
="$ac_aux_dir/install-sh -c"
886 elif test -f $ac_dir/install.sh
; then
888 ac_install_sh
="$ac_aux_dir/install.sh -c"
892 if test -z "$ac_aux_dir"; then
893 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
895 ac_config_guess
=$ac_aux_dir/config.guess
896 ac_config_sub
=$ac_aux_dir/config.sub
897 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
899 # Find a good install program. We prefer a C program (faster),
900 # so one script is as good as another. But avoid the broken or
901 # incompatible versions:
902 # SysV /etc/install, /usr/sbin/install
903 # SunOS /usr/etc/install
906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
909 # ./install, which can be erroneously created by make from ./install.sh.
910 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
911 echo "configure:912: checking for a BSD compatible install" >&5
912 if test -z "$INSTALL"; then
913 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
917 for ac_dir
in $PATH; do
918 # Account for people who put trailing slashes in PATH elements.
920 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
922 # OSF1 and SCO ODT 3.0 have their own names for install.
923 # Don't use installbsd from OSF since it installs stuff as root
925 for ac_prog
in ginstall scoinst
install; do
926 if test -f $ac_dir/$ac_prog; then
927 if test $ac_prog = install &&
928 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
929 # AIX install. It has an incompatible calling convention.
932 ac_cv_path_install
="$ac_dir/$ac_prog -c"
943 if test "${ac_cv_path_install+set}" = set; then
944 INSTALL
="$ac_cv_path_install"
946 # As a last resort, use the slow shell script. We don't cache a
947 # path for INSTALL within a source directory, because that will
948 # break other packages using the cache if that directory is
949 # removed, or if the path is relative.
950 INSTALL
="$ac_install_sh"
953 echo "$ac_t""$INSTALL" 1>&6
955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
956 # It thinks the first close brace ends the variable substitution.
957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
961 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
963 for ac_prog
in mawk gawk nawk
awk
965 # Extract the first word of "$ac_prog", so it can be a program name with args.
966 set dummy
$ac_prog; ac_word
=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$AWK"; then
973 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
975 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
977 for ac_dir
in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir
=.
979 if test -f $ac_dir/$ac_word; then
980 ac_cv_prog_AWK
="$ac_prog"
987 AWK
="$ac_cv_prog_AWK"
988 if test -n "$AWK"; then
989 echo "$ac_t""$AWK" 1>&6
991 echo "$ac_t""no" 1>&6
994 test -n "$AWK" && break
998 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
999 echo "configure:1000: checking for POSIXized ISC" >&5
1000 if test -d /etc
/conf
/kconfig.d
&&
1001 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1003 echo "$ac_t""yes" 1>&6
1004 ISC
=yes # If later tests want to check for ISC.
1005 cat >> confdefs.h
<<\EOF
1006 #define _POSIX_SOURCE 1
1009 if test "$GCC" = yes; then
1015 echo "$ac_t""no" 1>&6
1020 if test "x$CC" != xcc
; then
1021 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether $CC and cc understand -c and -o together" >&5
1024 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether cc understands -c and -o together" >&5
1027 set dummy
$CC; ac_cc
="`echo $2 |
1028 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1029 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 echo 'foo(){}' > conftest.c
1033 # Make sure it works both with $CC and with simple cc.
1034 # We do the test twice because some compilers refuse to overwrite an
1035 # existing .o file with -o, though they will create one.
1036 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1037 if { (eval echo configure
:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1038 test -f conftest.o
&& { (eval echo configure
:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1040 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1041 if test "x$CC" != xcc
; then
1042 # Test first that cc exists at all.
1043 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1044 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1045 if { (eval echo configure
:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1046 test -f conftest.o
&& { (eval echo configure
:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1051 # cc exists but doesn't like -o.
1052 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1057 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1062 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1063 echo "$ac_t""yes" 1>&6
1065 echo "$ac_t""no" 1>&6
1066 cat >> confdefs.h
<<\EOF
1067 #define NO_MINUS_C_MINUS_O 1
1072 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1079 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1080 echo "configure:1081: checking that the C compiler understands volatile" >&5
1081 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1085 cat > conftest.
$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1088 #include <sys/types.h>
1093 if { (eval echo configure
:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1095 samba_cv_volatile
=yes
1097 echo "configure: failed program was:" >&5
1098 cat conftest.
$ac_ext >&5
1100 samba_cv_volatile
=no
1105 echo "$ac_t""$samba_cv_volatile" 1>&6
1106 if test x
"$samba_cv_volatile" = x
"yes"; then
1107 cat >> confdefs.h
<<\EOF
1108 #define HAVE_VOLATILE 1
1115 # Do some error checking and defaulting for the host and target type.
1117 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1120 # 1. You are not allowed to specify --host, --target, and nonopt at the
1122 # 2. Host defaults to nonopt.
1123 # 3. If nonopt is not specified, then host defaults to the current host,
1124 # as determined by config.guess.
1125 # 4. Target and build default to nonopt.
1126 # 5. If nonopt is not specified, then target and build default to host.
1128 # The aliases save the names the user supplied, while $host etc.
1129 # will get canonicalized.
1130 case $host---$target---$nonopt in
1131 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1132 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1136 # Make sure we can run config.sub.
1137 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1138 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1141 echo $ac_n "checking host system type""... $ac_c" 1>&6
1142 echo "configure:1143: checking host system type" >&5
1145 case "$host_alias" in
1149 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1150 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1152 *) host_alias
=$nonopt ;;
1156 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1157 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1158 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1159 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1160 echo "$ac_t""$host" 1>&6
1162 echo $ac_n "checking target system type""... $ac_c" 1>&6
1163 echo "configure:1164: checking target system type" >&5
1165 target_alias
=$target
1166 case "$target_alias" in
1169 NONE
) target_alias
=$host_alias ;;
1170 *) target_alias
=$nonopt ;;
1174 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1175 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1176 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1177 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1178 echo "$ac_t""$target" 1>&6
1180 echo $ac_n "checking build system type""... $ac_c" 1>&6
1181 echo "configure:1182: checking build system type" >&5
1184 case "$build_alias" in
1187 NONE
) build_alias
=$host_alias ;;
1188 *) build_alias
=$nonopt ;;
1192 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1193 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1194 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1195 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1196 echo "$ac_t""$build" 1>&6
1198 test "$host_alias" != "$target_alias" &&
1199 test "$program_prefix$program_suffix$program_transform_name" = \
1201 program_prefix
=${target_alias}-
1205 *irix6
*) cat >> confdefs.h
<<\EOF
1206 #include <standards.h>
1214 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1215 echo "configure:1216: checking config.cache system type" >&5
1216 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1217 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1218 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1219 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1220 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1221 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1222 echo "$ac_t""different" 1>&6
1223 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1225 echo "$ac_t""same" 1>&6
1227 ac_cv_host_system_type
="$host"
1228 ac_cv_build_system_type
="$build"
1229 ac_cv_target_system_type
="$target"
1233 # Config CPPFLAG settings for strange OS's that must be set
1234 # before other tests.
1237 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1239 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${CC-cc} accepts -Ae" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 echo 'void f(){}' > conftest.c
1245 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1246 ac_cv_prog_cc_Ae
=yes
1254 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1255 # mmap on HPUX is completely broken...
1256 cat >> confdefs.h
<<\EOF
1257 #define MMAP_BLACKLIST 1
1260 if test $ac_cv_prog_cc_Ae = yes; then
1261 CPPFLAGS
="$CPPFLAGS -Ae"
1264 # Defines needed for HPUX support.
1265 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1266 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1270 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1271 cat >> confdefs.h
<<\EOF
1272 #define USE_BOTH_CRYPT_CALLS 1
1277 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1278 cat >> confdefs.h
<<\EOF
1279 #define USE_BOTH_CRYPT_CALLS 1
1287 # CRAY Unicos has broken const handling
1289 echo "$ac_t""disabling const" 1>&6
1290 CPPFLAGS
="$CPPFLAGS -Dconst="
1294 # AIX4.x doesn't even admit to having large
1295 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1298 echo "$ac_t""enabling large file support" 1>&6
1299 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1302 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1303 # to the existance of large files..
1304 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1305 # recommendations on large file support, however it makes the
1306 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1307 # recommendation makes the compile fail on gcc2.7. JRA.
1311 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1312 echo "$ac_t""no large file support" 1>&6
1315 echo "$ac_t""enabling large file support" 1>&6
1316 if test "$ac_cv_prog_gcc" = yes; then
1317 ${CC-cc} -v >conftest.c
2>&1
1318 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1320 case "$ac_cv_gcc_compiler_version_number" in
1321 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1322 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1325 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1329 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1335 # Tests needed for SINIX large file support.
1338 if test $host = mips-sni-sysv4
; then
1339 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1340 echo "configure:1341: checking for LFS support" >&5
1341 old_CPPFLAGS
="$CPPFLAGS"
1342 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1343 if test "$cross_compiling" = yes; then
1344 SINIX_LFS_SUPPORT
=cross
1346 cat > conftest.
$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1352 #if _LFS64_LARGEFILE == 1
1359 if { (eval echo configure
:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1361 SINIX_LFS_SUPPORT
=yes
1363 echo "configure: failed program was:" >&5
1364 cat conftest.
$ac_ext >&5
1366 SINIX_LFS_SUPPORT
=no
1371 CPPFLAGS
="$old_CPPFLAGS"
1372 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1373 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1374 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1375 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1376 LIBS
="`getconf LFS64_LIBS` $LIBS"
1378 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1382 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1385 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1386 echo "configure:1387: checking for LFS support" >&5
1387 old_CPPFLAGS
="$CPPFLAGS"
1388 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1389 if test "$cross_compiling" = yes; then
1390 LINUX_LFS_SUPPORT
=cross
1392 cat > conftest.
$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1397 #include <sys/utsname.h>
1399 #if _LFS64_LARGEFILE == 1
1404 /* Ensure this is glibc 2.2 or higher */
1405 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1406 int libc_major = __GLIBC__;
1407 int libc_minor = __GLIBC_MINOR__;
1415 /* Ensure this is kernel 2.4 or higher */
1418 release = uts.release;
1419 major = atoi(strsep(&release, "."));
1420 minor = atoi(strsep(&release, "."));
1422 if (major > 2 || (major == 2 && minor > 3))
1431 if { (eval echo configure
:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1433 LINUX_LFS_SUPPORT
=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.
$ac_ext >&5
1438 LINUX_LFS_SUPPORT
=no
1443 CPPFLAGS
="$old_CPPFLAGS"
1444 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1445 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1447 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1451 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1452 echo "configure:1453: checking for LFS support" >&5
1453 old_CPPFLAGS
="$CPPFLAGS"
1454 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1455 if test "$cross_compiling" = yes; then
1456 GLIBC_LFS_SUPPORT
=cross
1458 cat > conftest.
$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1464 #if _LFS64_LARGEFILE == 1
1471 if { (eval echo configure
:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1473 GLIBC_LFS_SUPPORT
=yes
1475 echo "configure: failed program was:" >&5
1476 cat conftest.
$ac_ext >&5
1478 GLIBC_LFS_SUPPORT
=no
1483 CPPFLAGS
="$old_CPPFLAGS"
1484 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1485 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1487 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1492 echo $ac_n "checking for inline""... $ac_c" 1>&6
1493 echo "configure:1494: checking for inline" >&5
1494 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1498 for ac_kw
in inline __inline__ __inline
; do
1499 cat > conftest.
$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1507 if { (eval echo configure
:1508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1509 ac_cv_c_inline
=$ac_kw; break
1511 echo "configure: failed program was:" >&5
1512 cat conftest.
$ac_ext >&5
1519 echo "$ac_t""$ac_cv_c_inline" 1>&6
1520 case "$ac_cv_c_inline" in
1522 no
) cat >> confdefs.h
<<\EOF
1526 *) cat >> confdefs.h
<<EOF
1527 #define inline $ac_cv_c_inline
1532 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1533 echo "configure:1534: checking how to run the C preprocessor" >&5
1534 # On Suns, sometimes $CPP names a directory.
1535 if test -n "$CPP" && test -d "$CPP"; then
1538 if test -z "$CPP"; then
1539 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 # This must be in double quotes, not single quotes, because CPP may get
1543 # substituted into the Makefile and "${CC-cc}" will confuse make.
1545 # On the NeXT, cc -E runs the code through the compiler's parser,
1546 # not just through cpp.
1547 cat > conftest.
$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure
:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1560 echo "configure: failed program was:" >&5
1561 cat conftest.
$ac_ext >&5
1563 CPP
="${CC-cc} -E -traditional-cpp"
1564 cat > conftest.
$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1570 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1571 { (eval echo configure
:1572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1572 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1573 if test -z "$ac_err"; then
1577 echo "configure: failed program was:" >&5
1578 cat conftest.
$ac_ext >&5
1580 CPP
="${CC-cc} -nologo -E"
1581 cat > conftest.
$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1587 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588 { (eval echo configure
:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1590 if test -z "$ac_err"; then
1594 echo "configure: failed program was:" >&5
1595 cat conftest.
$ac_ext >&5
1604 ac_cv_prog_CPP
="$CPP"
1606 CPP
="$ac_cv_prog_CPP"
1608 ac_cv_prog_CPP
="$CPP"
1610 echo "$ac_t""$CPP" 1>&6
1612 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1613 echo "configure:1614: checking for ANSI C header files" >&5
1614 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1625 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1626 { (eval echo configure
:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1627 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1628 if test -z "$ac_err"; then
1630 ac_cv_header_stdc
=yes
1633 echo "configure: failed program was:" >&5
1634 cat conftest.
$ac_ext >&5
1636 ac_cv_header_stdc
=no
1640 if test $ac_cv_header_stdc = yes; then
1641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "memchr" >/dev
/null
2>&1; then
1652 ac_cv_header_stdc
=no
1658 if test $ac_cv_header_stdc = yes; then
1659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1660 cat > conftest.
$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1666 egrep "free" >/dev
/null
2>&1; then
1670 ac_cv_header_stdc
=no
1676 if test $ac_cv_header_stdc = yes; then
1677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1678 if test "$cross_compiling" = yes; then
1681 cat > conftest.
$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1685 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1686 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1688 int main () { int i; for (i = 0; i < 256; i++)
1689 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1693 if { (eval echo configure
:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1697 echo "configure: failed program was:" >&5
1698 cat conftest.
$ac_ext >&5
1700 ac_cv_header_stdc
=no
1708 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1709 if test $ac_cv_header_stdc = yes; then
1710 cat >> confdefs.h
<<\EOF
1711 #define STDC_HEADERS 1
1717 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1719 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1720 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1721 echo "configure:1722: checking for $ac_hdr that defines DIR" >&5
1722 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 cat > conftest.
$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 #include <sys/types.h>
1734 if { (eval echo configure
:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1736 eval "ac_cv_header_dirent_$ac_safe=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.
$ac_ext >&5
1741 eval "ac_cv_header_dirent_$ac_safe=no"
1745 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1746 echo "$ac_t""yes" 1>&6
1747 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1748 cat >> confdefs.h
<<EOF
1749 #define $ac_tr_hdr 1
1751 ac_header_dirent
=$ac_hdr; break
1753 echo "$ac_t""no" 1>&6
1756 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1757 if test $ac_header_dirent = dirent.h
; then
1758 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1759 echo "configure:1760: checking for opendir in -ldir" >&5
1760 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS
="$LIBS"
1766 cat > conftest.
$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1778 if { (eval echo configure
:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.
$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS
="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1795 echo "$ac_t""no" 1>&6
1799 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1800 echo "configure:1801: checking for opendir in -lx" >&5
1801 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 ac_save_LIBS
="$LIBS"
1807 cat > conftest.
$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 /* Override any gcc2 internal prototype to avoid an error. */
1811 /* We use char because int might match the return type of a gcc2
1812 builtin and then its argument prototype would still apply. */
1819 if { (eval echo configure
:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1821 eval "ac_cv_lib_$ac_lib_var=yes"
1823 echo "configure: failed program was:" >&5
1824 cat conftest.
$ac_ext >&5
1826 eval "ac_cv_lib_$ac_lib_var=no"
1829 LIBS
="$ac_save_LIBS"
1832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1833 echo "$ac_t""yes" 1>&6
1836 echo "$ac_t""no" 1>&6
1841 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether time.h and sys/time.h may both be included" >&5
1843 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.
$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 #include <sys/types.h>
1850 #include <sys/time.h>
1856 if { (eval echo configure
:1857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1858 ac_cv_header_time
=yes
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1863 ac_cv_header_time
=no
1868 echo "$ac_t""$ac_cv_header_time" 1>&6
1869 if test $ac_cv_header_time = yes; then
1870 cat >> confdefs.h
<<\EOF
1871 #define TIME_WITH_SYS_TIME 1
1876 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1877 echo "configure:1878: checking for sys/wait.h that is POSIX.1 compatible" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <sys/types.h>
1885 #include <sys/wait.h>
1887 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1890 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1895 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1898 if { (eval echo configure
:1899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1900 ac_cv_header_sys_wait_h
=yes
1902 echo "configure: failed program was:" >&5
1903 cat conftest.
$ac_ext >&5
1905 ac_cv_header_sys_wait_h
=no
1910 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1911 if test $ac_cv_header_sys_wait_h = yes; then
1912 cat >> confdefs.h
<<\EOF
1913 #define HAVE_SYS_WAIT_H 1
1918 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1920 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1922 echo "configure:1923: checking for $ac_hdr" >&5
1923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 cat > conftest.
$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1931 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure
:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1936 eval "ac_cv_header_$ac_safe=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.
$ac_ext >&5
1942 eval "ac_cv_header_$ac_safe=no"
1946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1949 cat >> confdefs.h
<<EOF
1950 #define $ac_tr_hdr 1
1954 echo "$ac_t""no" 1>&6
1958 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
1960 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_hdr" >&5
1963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 cat > conftest.
$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1972 { (eval echo configure
:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1974 if test -z "$ac_err"; then
1976 eval "ac_cv_header_$ac_safe=yes"
1979 echo "configure: failed program was:" >&5
1980 cat conftest.
$ac_ext >&5
1982 eval "ac_cv_header_$ac_safe=no"
1986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1989 cat >> confdefs.h
<<EOF
1990 #define $ac_tr_hdr 1
1994 echo "$ac_t""no" 1>&6
1998 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2000 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002 echo "configure:2003: checking for $ac_hdr" >&5
2003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 cat > conftest.
$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2011 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2012 { (eval echo configure
:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2013 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2014 if test -z "$ac_err"; then
2016 eval "ac_cv_header_$ac_safe=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.
$ac_ext >&5
2022 eval "ac_cv_header_$ac_safe=no"
2026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2029 cat >> confdefs.h
<<EOF
2030 #define $ac_tr_hdr 1
2034 echo "$ac_t""no" 1>&6
2038 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2040 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_hdr" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.
$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2051 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 { (eval echo configure
:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054 if test -z "$ac_err"; then
2056 eval "ac_cv_header_$ac_safe=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 eval "ac_cv_header_$ac_safe=no"
2066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069 cat >> confdefs.h
<<EOF
2070 #define $ac_tr_hdr 1
2074 echo "$ac_t""no" 1>&6
2078 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
2080 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2082 echo "configure:2083: checking for $ac_hdr" >&5
2083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 cat > conftest.
$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2091 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2092 { (eval echo configure
:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2093 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2094 if test -z "$ac_err"; then
2096 eval "ac_cv_header_$ac_safe=yes"
2099 echo "configure: failed program was:" >&5
2100 cat conftest.
$ac_ext >&5
2102 eval "ac_cv_header_$ac_safe=no"
2106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2109 cat >> confdefs.h
<<EOF
2110 #define $ac_tr_hdr 1
2114 echo "$ac_t""no" 1>&6
2118 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2120 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2122 echo "configure:2123: checking for $ac_hdr" >&5
2123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 cat > conftest.
$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2131 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2132 { (eval echo configure
:2133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2133 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2134 if test -z "$ac_err"; then
2136 eval "ac_cv_header_$ac_safe=yes"
2139 echo "configure: failed program was:" >&5
2140 cat conftest.
$ac_ext >&5
2142 eval "ac_cv_header_$ac_safe=no"
2146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2149 cat >> confdefs.h
<<EOF
2150 #define $ac_tr_hdr 1
2154 echo "$ac_t""no" 1>&6
2158 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2160 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_hdr" >&5
2163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.
$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2171 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2172 { (eval echo configure
:2173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2173 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2174 if test -z "$ac_err"; then
2176 eval "ac_cv_header_$ac_safe=yes"
2179 echo "configure: failed program was:" >&5
2180 cat conftest.
$ac_ext >&5
2182 eval "ac_cv_header_$ac_safe=no"
2186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2189 cat >> confdefs.h
<<EOF
2190 #define $ac_tr_hdr 1
2194 echo "$ac_t""no" 1>&6
2198 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h ldap.h lber.h
2200 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2202 echo "configure:2203: checking for $ac_hdr" >&5
2203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 cat > conftest.
$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2211 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2212 { (eval echo configure
:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2213 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2214 if test -z "$ac_err"; then
2216 eval "ac_cv_header_$ac_safe=yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.
$ac_ext >&5
2222 eval "ac_cv_header_$ac_safe=no"
2226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2229 cat >> confdefs.h
<<EOF
2230 #define $ac_tr_hdr 1
2234 echo "$ac_t""no" 1>&6
2240 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2241 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2253 if { (eval echo configure
:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2255 ac_cv_header_shadow_h
=yes
2257 echo "configure: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2260 ac_cv_header_shadow_h
=no
2263 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2264 cat >> confdefs.h
<<\EOF
2265 #define HAVE_SHADOW_H 1
2271 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2273 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_hdr" >&5
2276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.
$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2284 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285 { (eval echo configure
:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287 if test -z "$ac_err"; then
2289 eval "ac_cv_header_$ac_safe=yes"
2292 echo "configure: failed program was:" >&5
2293 cat conftest.
$ac_ext >&5
2295 eval "ac_cv_header_$ac_safe=no"
2299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2302 cat >> confdefs.h
<<EOF
2303 #define $ac_tr_hdr 1
2307 echo "$ac_t""no" 1>&6
2311 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2313 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_hdr" >&5
2316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.
$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2324 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2325 { (eval echo configure
:2326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2326 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2327 if test -z "$ac_err"; then
2329 eval "ac_cv_header_$ac_safe=yes"
2332 echo "configure: failed program was:" >&5
2333 cat conftest.
$ac_ext >&5
2335 eval "ac_cv_header_$ac_safe=no"
2339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2342 cat >> confdefs.h
<<EOF
2343 #define $ac_tr_hdr 1
2347 echo "$ac_t""no" 1>&6
2351 for ac_hdr
in stropts.h poll.h
2353 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_hdr" >&5
2356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.
$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2364 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2365 { (eval echo configure
:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2366 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2367 if test -z "$ac_err"; then
2369 eval "ac_cv_header_$ac_safe=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.
$ac_ext >&5
2375 eval "ac_cv_header_$ac_safe=no"
2379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2382 cat >> confdefs.h
<<EOF
2383 #define $ac_tr_hdr 1
2387 echo "$ac_t""no" 1>&6
2391 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2393 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_hdr" >&5
2396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.
$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2404 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2405 { (eval echo configure
:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2406 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2407 if test -z "$ac_err"; then
2409 eval "ac_cv_header_$ac_safe=yes"
2412 echo "configure: failed program was:" >&5
2413 cat conftest.
$ac_ext >&5
2415 eval "ac_cv_header_$ac_safe=no"
2419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2422 cat >> confdefs.h
<<EOF
2423 #define $ac_tr_hdr 1
2427 echo "$ac_t""no" 1>&6
2431 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2433 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_hdr" >&5
2436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.
$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2444 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2445 { (eval echo configure
:2446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2446 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2447 if test -z "$ac_err"; then
2449 eval "ac_cv_header_$ac_safe=yes"
2452 echo "configure: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2455 eval "ac_cv_header_$ac_safe=no"
2459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2461 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2462 cat >> confdefs.h
<<EOF
2463 #define $ac_tr_hdr 1
2467 echo "$ac_t""no" 1>&6
2472 # For experimental utmp support (lastlog on some BSD-like systems)
2473 for ac_hdr
in utmp.h utmpx.h lastlog.h
2475 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_hdr" >&5
2478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.
$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2486 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2487 { (eval echo configure
:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2488 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2489 if test -z "$ac_err"; then
2491 eval "ac_cv_header_$ac_safe=yes"
2494 echo "configure: failed program was:" >&5
2495 cat conftest.
$ac_ext >&5
2497 eval "ac_cv_header_$ac_safe=no"
2501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2503 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2504 cat >> confdefs.h
<<EOF
2505 #define $ac_tr_hdr 1
2509 echo "$ac_t""no" 1>&6
2514 # For quotas on Veritas VxFS filesystems
2515 for ac_hdr
in sys
/fs
/vx_quota.h
2517 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_hdr" >&5
2520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.
$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2528 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2529 { (eval echo configure
:2530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2530 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2531 if test -z "$ac_err"; then
2533 eval "ac_cv_header_$ac_safe=yes"
2536 echo "configure: failed program was:" >&5
2537 cat conftest.
$ac_ext >&5
2539 eval "ac_cv_header_$ac_safe=no"
2543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2544 echo "$ac_t""yes" 1>&6
2545 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2546 cat >> confdefs.h
<<EOF
2547 #define $ac_tr_hdr 1
2551 echo "$ac_t""no" 1>&6
2556 # For quotas on Linux XFS filesystems
2557 for ac_hdr
in linux
/xqm.h
2559 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_hdr" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2570 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2571 { (eval echo configure
:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2573 if test -z "$ac_err"; then
2575 eval "ac_cv_header_$ac_safe=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2581 eval "ac_cv_header_$ac_safe=no"
2585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2588 cat >> confdefs.h
<<EOF
2589 #define $ac_tr_hdr 1
2593 echo "$ac_t""no" 1>&6
2598 echo $ac_n "checking size of int""... $ac_c" 1>&6
2599 echo "configure:2600: checking size of int" >&5
2600 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 if test "$cross_compiling" = yes; then
2604 ac_cv_sizeof_int
=cross
2606 cat > conftest.
$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2612 FILE *f=fopen("conftestval", "w");
2614 fprintf(f, "%d\n", sizeof(int));
2618 if { (eval echo configure
:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2620 ac_cv_sizeof_int
=`cat conftestval`
2622 echo "configure: failed program was:" >&5
2623 cat conftest.
$ac_ext >&5
2631 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2632 cat >> confdefs.h
<<EOF
2633 #define SIZEOF_INT $ac_cv_sizeof_int
2637 echo $ac_n "checking size of long""... $ac_c" 1>&6
2638 echo "configure:2639: checking size of long" >&5
2639 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 if test "$cross_compiling" = yes; then
2643 ac_cv_sizeof_long
=cross
2645 cat > conftest.
$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2651 FILE *f=fopen("conftestval", "w");
2653 fprintf(f, "%d\n", sizeof(long));
2657 if { (eval echo configure
:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2659 ac_cv_sizeof_long
=`cat conftestval`
2661 echo "configure: failed program was:" >&5
2662 cat conftest.
$ac_ext >&5
2670 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2671 cat >> confdefs.h
<<EOF
2672 #define SIZEOF_LONG $ac_cv_sizeof_long
2676 echo $ac_n "checking size of short""... $ac_c" 1>&6
2677 echo "configure:2678: checking size of short" >&5
2678 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 if test "$cross_compiling" = yes; then
2682 ac_cv_sizeof_short
=cross
2684 cat > conftest.
$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2690 FILE *f=fopen("conftestval", "w");
2692 fprintf(f, "%d\n", sizeof(short));
2696 if { (eval echo configure
:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2698 ac_cv_sizeof_short
=`cat conftestval`
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2703 ac_cv_sizeof_short
=0
2709 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2710 cat >> confdefs.h
<<EOF
2711 #define SIZEOF_SHORT $ac_cv_sizeof_short
2716 echo $ac_n "checking for working const""... $ac_c" 1>&6
2717 echo "configure:2718: checking for working const" >&5
2718 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.
$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2727 /* Ultrix mips cc rejects this. */
2728 typedef int charset[2]; const charset x;
2729 /* SunOS 4.1.1 cc rejects this. */
2730 char const *const *ccp;
2732 /* NEC SVR4.0.2 mips cc rejects this. */
2733 struct point {int x, y;};
2734 static struct point const zero = {0,0};
2735 /* AIX XL C 1.02.0.0 rejects this.
2736 It does not let you subtract one const X* pointer from another in an arm
2737 of an if-expression whose if-part is not a constant expression */
2738 const char *g = "string";
2739 ccp = &g + (g ? g-g : 0);
2740 /* HPUX 7.0 cc rejects these. */
2743 ccp = (char const *const *) p;
2744 { /* SCO 3.2v4 cc rejects this. */
2746 char const *s = 0 ? (char *) 0 : (char const *) 0;
2750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2752 const int *foo = &x[0];
2755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2756 typedef const int *iptr;
2760 { /* AIX XL C 1.02.0.0 rejects this saying
2761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2762 struct s { int j; const int *ap[3]; };
2763 struct s *b; b->j = 5;
2765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2771 if { (eval echo configure
:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2775 echo "configure: failed program was:" >&5
2776 cat conftest.
$ac_ext >&5
2783 echo "$ac_t""$ac_cv_c_const" 1>&6
2784 if test $ac_cv_c_const = no
; then
2785 cat >> confdefs.h
<<\EOF
2791 echo $ac_n "checking for inline""... $ac_c" 1>&6
2792 echo "configure:2793: checking for inline" >&5
2793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2797 for ac_kw
in inline __inline__ __inline
; do
2798 cat > conftest.
$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2806 if { (eval echo configure
:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2808 ac_cv_c_inline
=$ac_kw; break
2810 echo "configure: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2818 echo "$ac_t""$ac_cv_c_inline" 1>&6
2819 case "$ac_cv_c_inline" in
2821 no
) cat >> confdefs.h
<<\EOF
2825 *) cat >> confdefs.h
<<EOF
2826 #define inline $ac_cv_c_inline
2831 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2832 echo "configure:2833: checking whether byte ordering is bigendian" >&5
2833 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 ac_cv_c_bigendian
=unknown
2837 # See if sys/param.h defines the BYTE_ORDER macro.
2838 cat > conftest.
$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2842 #include <sys/param.h>
2845 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2850 if { (eval echo configure
:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2852 # It does; now see whether it defined to BIG_ENDIAN or not.
2853 cat > conftest.
$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 #include <sys/types.h>
2857 #include <sys/param.h>
2860 #if BYTE_ORDER != BIG_ENDIAN
2865 if { (eval echo configure
:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2867 ac_cv_c_bigendian
=yes
2869 echo "configure: failed program was:" >&5
2870 cat conftest.
$ac_ext >&5
2872 ac_cv_c_bigendian
=no
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2880 if test $ac_cv_c_bigendian = unknown
; then
2881 if test "$cross_compiling" = yes; then
2882 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2884 cat > conftest.
$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2888 /* Are we little or big endian? From Harbison&Steele. */
2892 char c[sizeof (long)];
2895 exit (u.c[sizeof (long) - 1] == 1);
2898 if { (eval echo configure
:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2900 ac_cv_c_bigendian
=no
2902 echo "configure: failed program was:" >&5
2903 cat conftest.
$ac_ext >&5
2905 ac_cv_c_bigendian
=yes
2913 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2914 if test $ac_cv_c_bigendian = yes; then
2915 cat >> confdefs.h
<<\EOF
2916 #define WORDS_BIGENDIAN 1
2921 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2922 echo "configure:2923: checking whether char is unsigned" >&5
2923 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 if test "$GCC" = yes; then
2927 # GCC predefines this symbol on systems where it applies.
2928 cat > conftest.
$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 #ifdef __CHAR_UNSIGNED__
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "yes" >/dev
/null
2>&1; then
2939 ac_cv_c_char_unsigned
=yes
2942 ac_cv_c_char_unsigned
=no
2947 if test "$cross_compiling" = yes; then
2948 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2954 #if !defined(__STDC__) || __STDC__ != 1
2958 volatile char c = 255; exit(c < 0);
2961 if { (eval echo configure
:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2963 ac_cv_c_char_unsigned
=yes
2965 echo "configure: failed program was:" >&5
2966 cat conftest.
$ac_ext >&5
2968 ac_cv_c_char_unsigned
=no
2976 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2977 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2978 cat >> confdefs.h
<<\EOF
2979 #define __CHAR_UNSIGNED__ 1
2985 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2986 echo "configure:2987: checking return type of signal handlers" >&5
2987 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.
$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2999 extern "C" void (*signal (int, void (*)(int)))(int);
3001 void (*signal ()) ();
3008 if { (eval echo configure
:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3010 ac_cv_type_signal
=void
3012 echo "configure: failed program was:" >&5
3013 cat conftest.
$ac_ext >&5
3015 ac_cv_type_signal
=int
3020 echo "$ac_t""$ac_cv_type_signal" 1>&6
3021 cat >> confdefs.h
<<EOF
3022 #define RETSIGTYPE $ac_cv_type_signal
3026 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3027 echo "configure:3028: checking for uid_t in sys/types.h" >&5
3028 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 egrep "uid_t" >/dev
/null
2>&1; then
3039 ac_cv_type_uid_t
=yes
3048 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3049 if test $ac_cv_type_uid_t = no
; then
3050 cat >> confdefs.h
<<\EOF
3054 cat >> confdefs.h
<<\EOF
3060 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3061 echo "configure:3062: checking for mode_t" >&5
3062 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 cat > conftest.
$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 #include <sys/types.h>
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3077 ac_cv_type_mode_t
=yes
3080 ac_cv_type_mode_t
=no
3085 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3086 if test $ac_cv_type_mode_t = no
; then
3087 cat >> confdefs.h
<<\EOF
3093 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3094 echo "configure:3095: checking for off_t" >&5
3095 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 cat > conftest.
$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <sys/types.h>
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3110 ac_cv_type_off_t
=yes
3118 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3119 if test $ac_cv_type_off_t = no
; then
3120 cat >> confdefs.h
<<\EOF
3126 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3127 echo "configure:3128: checking for size_t" >&5
3128 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <sys/types.h>
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3143 ac_cv_type_size_t
=yes
3146 ac_cv_type_size_t
=no
3151 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3152 if test $ac_cv_type_size_t = no
; then
3153 cat >> confdefs.h
<<\EOF
3154 #define size_t unsigned
3159 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3160 echo "configure:3161: checking for pid_t" >&5
3161 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.
$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 #include <sys/types.h>
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3176 ac_cv_type_pid_t
=yes
3184 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3185 if test $ac_cv_type_pid_t = no
; then
3186 cat >> confdefs.h
<<\EOF
3192 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3193 echo "configure:3194: checking for st_rdev in struct stat" >&5
3194 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 cat > conftest.
$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3203 struct stat s; s.st_rdev;
3206 if { (eval echo configure
:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3208 ac_cv_struct_st_rdev
=yes
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3213 ac_cv_struct_st_rdev
=no
3218 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3219 if test $ac_cv_struct_st_rdev = yes; then
3220 cat >> confdefs.h
<<\EOF
3221 #define HAVE_ST_RDEV 1
3226 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3227 echo "configure:3228: checking for d_off in dirent" >&5
3228 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3236 #include <sys/types.h>
3239 struct dirent d; d.d_off;
3242 if { (eval echo configure
:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3244 ac_cv_dirent_d_off
=yes
3246 echo "configure: failed program was:" >&5
3247 cat conftest.
$ac_ext >&5
3249 ac_cv_dirent_d_off
=no
3254 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3255 if test $ac_cv_dirent_d_off = yes; then
3256 cat >> confdefs.h
<<\EOF
3257 #define HAVE_DIRENT_D_OFF 1
3262 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3263 echo "configure:3264: checking for ino_t" >&5
3264 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.
$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <sys/types.h>
3276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3277 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3279 ac_cv_type_ino_t
=yes
3287 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3288 if test $ac_cv_type_ino_t = no
; then
3289 cat >> confdefs.h
<<\EOF
3290 #define ino_t unsigned
3295 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3296 echo "configure:3297: checking for loff_t" >&5
3297 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3310 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3312 ac_cv_type_loff_t
=yes
3315 ac_cv_type_loff_t
=no
3320 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3321 if test $ac_cv_type_loff_t = no
; then
3322 cat >> confdefs.h
<<\EOF
3323 #define loff_t off_t
3328 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3329 echo "configure:3330: checking for offset_t" >&5
3330 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 #include <sys/types.h>
3342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3343 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3345 ac_cv_type_offset_t
=yes
3348 ac_cv_type_offset_t
=no
3353 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3354 if test $ac_cv_type_offset_t = no
; then
3355 cat >> confdefs.h
<<\EOF
3356 #define offset_t loff_t
3361 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3362 echo "configure:3363: checking for ssize_t" >&5
3363 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.
$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <sys/types.h>
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3378 ac_cv_type_ssize_t
=yes
3381 ac_cv_type_ssize_t
=no
3386 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3387 if test $ac_cv_type_ssize_t = no
; then
3388 cat >> confdefs.h
<<\EOF
3394 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3395 echo "configure:3396: checking for wchar_t" >&5
3396 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 cat > conftest.
$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3411 ac_cv_type_wchar_t
=yes
3414 ac_cv_type_wchar_t
=no
3419 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3420 if test $ac_cv_type_wchar_t = no
; then
3421 cat >> confdefs.h
<<\EOF
3422 #define wchar_t unsigned short
3428 ############################################
3429 # for cups support we need libcups, and a handful of header files
3431 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3432 echo "configure:3433: checking for httpConnect in -lcups" >&5
3433 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 ac_save_LIBS
="$LIBS"
3439 cat > conftest.
$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* Override any gcc2 internal prototype to avoid an error. */
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3451 if { (eval echo configure
:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3453 eval "ac_cv_lib_$ac_lib_var=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.
$ac_ext >&5
3458 eval "ac_cv_lib_$ac_lib_var=no"
3461 LIBS
="$ac_save_LIBS"
3464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3466 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3467 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3468 cat >> confdefs.h
<<EOF
3469 #define $ac_tr_lib 1
3475 echo "$ac_t""no" 1>&6
3479 # I wonder if there is a nicer way of doing this?
3481 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3482 for ac_hdr
in cups
/cups.h cups
/language.h
3484 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_hdr" >&5
3487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.
$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3495 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3496 { (eval echo configure
:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3497 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3498 if test -z "$ac_err"; then
3500 eval "ac_cv_header_$ac_safe=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.
$ac_ext >&5
3506 eval "ac_cv_header_$ac_safe=no"
3510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3513 cat >> confdefs.h
<<EOF
3514 #define $ac_tr_hdr 1
3518 echo "$ac_t""no" 1>&6
3522 if test x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3523 if test x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3524 cat >> confdefs.h
<<\EOF
3532 ############################################
3533 # we need libdl for PAM and the new VFS code
3534 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3535 echo "configure:3536: checking for dlopen in -ldl" >&5
3536 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 ac_save_LIBS
="$LIBS"
3542 cat > conftest.
$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 /* Override any gcc2 internal prototype to avoid an error. */
3546 /* We use char because int might match the return type of a gcc2
3547 builtin and then its argument prototype would still apply. */
3554 if { (eval echo configure
:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3556 eval "ac_cv_lib_$ac_lib_var=yes"
3558 echo "configure: failed program was:" >&5
3559 cat conftest.
$ac_ext >&5
3561 eval "ac_cv_lib_$ac_lib_var=no"
3564 LIBS
="$ac_save_LIBS"
3567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3570 cat >> confdefs.h
<<\EOF
3571 #define HAVE_LIBDL 1
3575 echo "$ac_t""no" 1>&6
3579 ############################################
3580 # check if the compiler can do immediate structures
3581 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3582 echo "configure:3583: checking for immediate structures" >&5
3583 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3587 cat > conftest.
$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3594 #define X_FOOBAR(x) ((FOOBAR) { x })
3595 typedef struct {unsigned x;} FOOBAR;
3596 FOOBAR f = X_FOOBAR(1);
3600 if { (eval echo configure
:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 samba_cv_immediate_structures
=yes
3604 echo "configure: failed program was:" >&5
3605 cat conftest.
$ac_ext >&5
3607 samba_cv_immediate_structures
=no
3612 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3613 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3614 cat >> confdefs.h
<<\EOF
3615 #define HAVE_IMMEDIATE_STRUCTURES 1
3620 ############################################
3621 # check for unix domain sockets
3622 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3623 echo "configure:3624: checking for unix domain sockets" >&5
3624 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3628 cat > conftest.
$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3632 #include <sys/types.h>
3635 #include <sys/socket.h>
3639 struct sockaddr_un sunaddr;
3640 sunaddr.sun_family = AF_UNIX;
3644 if { (eval echo configure
:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 samba_cv_unixsocket
=yes
3648 echo "configure: failed program was:" >&5
3649 cat conftest.
$ac_ext >&5
3651 samba_cv_unixsocket
=no
3656 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3657 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3658 cat >> confdefs.h
<<\EOF
3659 #define HAVE_UNIXSOCKET 1
3665 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3666 echo "configure:3667: checking for socklen_t type" >&5
3667 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.
$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3675 #include <sys/types.h>
3680 #include <sys/socket.h>
3685 if { (eval echo configure
:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3687 samba_cv_socklen_t
=yes
3689 echo "configure: failed program was:" >&5
3690 cat conftest.
$ac_ext >&5
3692 samba_cv_socklen_t
=no
3697 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3698 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3699 cat >> confdefs.h
<<\EOF
3700 #define HAVE_SOCKLEN_T_TYPE 1
3705 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3706 echo "configure:3707: checking for sig_atomic_t type" >&5
3707 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3711 cat > conftest.
$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3715 #include <sys/types.h>
3725 if { (eval echo configure
:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727 samba_cv_sig_atomic_t
=yes
3729 echo "configure: failed program was:" >&5
3730 cat conftest.
$ac_ext >&5
3732 samba_cv_sig_atomic_t
=no
3737 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3738 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3739 cat >> confdefs.h
<<\EOF
3740 #define HAVE_SIG_ATOMIC_T_TYPE 1
3745 # stupid headers have the functions but no declaration. grrrr.
3747 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3748 echo "configure:3749: checking for errno declaration" >&5
3749 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3753 cat > conftest.
$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3761 if { (eval echo configure
:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3763 ac_cv_have_errno_decl
=yes
3765 echo "configure: failed program was:" >&5
3766 cat conftest.
$ac_ext >&5
3768 ac_cv_have_errno_decl
=no
3773 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3774 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3775 cat >> confdefs.h
<<\EOF
3776 #define HAVE_ERRNO_DECL 1
3782 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3783 echo "configure:3784: checking for setresuid declaration" >&5
3784 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.
$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3793 int i = (int)setresuid
3796 if { (eval echo configure
:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3798 ac_cv_have_setresuid_decl
=yes
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 ac_cv_have_setresuid_decl
=no
3808 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3809 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3810 cat >> confdefs.h
<<\EOF
3811 #define HAVE_SETRESUID_DECL 1
3817 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3818 echo "configure:3819: checking for setresgid declaration" >&5
3819 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3823 cat > conftest.
$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3828 int i = (int)setresgid
3831 if { (eval echo configure
:3832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3833 ac_cv_have_setresgid_decl
=yes
3835 echo "configure: failed program was:" >&5
3836 cat conftest.
$ac_ext >&5
3838 ac_cv_have_setresgid_decl
=no
3843 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3844 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3845 cat >> confdefs.h
<<\EOF
3846 #define HAVE_SETRESGID_DECL 1
3852 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3853 echo "configure:3854: checking for asprintf declaration" >&5
3854 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.
$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3863 int i = (int)asprintf
3866 if { (eval echo configure
:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868 ac_cv_have_asprintf_decl
=yes
3870 echo "configure: failed program was:" >&5
3871 cat conftest.
$ac_ext >&5
3873 ac_cv_have_asprintf_decl
=no
3878 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3879 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3880 cat >> confdefs.h
<<\EOF
3881 #define HAVE_ASPRINTF_DECL 1
3887 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3888 echo "configure:3889: checking for vasprintf declaration" >&5
3889 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3893 cat > conftest.
$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3898 int i = (int)vasprintf
3901 if { (eval echo configure
:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3903 ac_cv_have_vasprintf_decl
=yes
3905 echo "configure: failed program was:" >&5
3906 cat conftest.
$ac_ext >&5
3908 ac_cv_have_vasprintf_decl
=no
3913 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3914 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3915 cat >> confdefs.h
<<\EOF
3916 #define HAVE_VASPRINTF_DECL 1
3922 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3923 echo "configure:3924: checking for vsnprintf declaration" >&5
3924 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.
$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3933 int i = (int)vsnprintf
3936 if { (eval echo configure
:3937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3938 ac_cv_have_vsnprintf_decl
=yes
3940 echo "configure: failed program was:" >&5
3941 cat conftest.
$ac_ext >&5
3943 ac_cv_have_vsnprintf_decl
=no
3948 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3949 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
3950 cat >> confdefs.h
<<\EOF
3951 #define HAVE_VSNPRINTF_DECL 1
3957 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3958 echo "configure:3959: checking for snprintf declaration" >&5
3959 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3963 cat > conftest.
$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3968 int i = (int)snprintf
3971 if { (eval echo configure
:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3973 ac_cv_have_snprintf_decl
=yes
3975 echo "configure: failed program was:" >&5
3976 cat conftest.
$ac_ext >&5
3978 ac_cv_have_snprintf_decl
=no
3983 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3984 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
3985 cat >> confdefs.h
<<\EOF
3986 #define HAVE_SNPRINTF_DECL 1
3992 # and glibc has setresuid under linux but the function does
3993 # nothing until kernel 2.1.44! very dumb.
3994 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3995 echo "configure:3996: checking for real setresuid" >&5
3996 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
4000 if test "$cross_compiling" = yes; then
4001 samba_cv_have_setresuid
=cross
4003 cat > conftest.
$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4007 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4009 if { (eval echo configure
:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4011 samba_cv_have_setresuid
=yes
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 samba_cv_have_setresuid
=no
4023 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4024 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4025 cat >> confdefs.h
<<\EOF
4026 #define HAVE_SETRESUID 1
4031 # Do the same check for setresguid...
4033 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4034 echo "configure:4035: checking for real setresgid" >&5
4035 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4039 if test "$cross_compiling" = yes; then
4040 samba_cv_have_setresgid
=cross
4042 cat > conftest.
$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4047 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4049 if { (eval echo configure
:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4051 samba_cv_have_setresgid
=yes
4053 echo "configure: failed program was:" >&5
4054 cat conftest.
$ac_ext >&5
4056 samba_cv_have_setresgid
=no
4063 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4064 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4065 cat >> confdefs.h
<<\EOF
4066 #define HAVE_SETRESGID 1
4071 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4072 echo "configure:4073: checking for 8-bit clean memcmp" >&5
4073 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 if test "$cross_compiling" = yes; then
4077 ac_cv_func_memcmp_clean
=no
4079 cat > conftest.
$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4085 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4086 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4090 if { (eval echo configure
:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4092 ac_cv_func_memcmp_clean
=yes
4094 echo "configure: failed program was:" >&5
4095 cat conftest.
$ac_ext >&5
4097 ac_cv_func_memcmp_clean
=no
4104 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4105 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4108 ###############################################
4109 # test for where we get crypt() from
4110 for ac_func
in crypt
4112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4113 echo "configure:4114: checking for $ac_func" >&5
4114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.
$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* System header to define __stub macros and hopefully few prototypes,
4121 which can conflict with char $ac_func(); below. */
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4141 if { (eval echo configure
:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4143 eval "ac_cv_func_$ac_func=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4148 eval "ac_cv_func_$ac_func=no"
4153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4155 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4156 cat >> confdefs.h
<<EOF
4157 #define $ac_tr_func 1
4161 echo "$ac_t""no" 1>&6
4165 if test x
"$ac_cv_func_crypt" = x
"no"; then
4166 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4167 echo "configure:4168: checking for crypt in -lcrypt" >&5
4168 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 ac_save_LIBS
="$LIBS"
4173 LIBS
="-lcrypt $LIBS"
4174 cat > conftest.
$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4186 if { (eval echo configure
:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4188 eval "ac_cv_lib_$ac_lib_var=yes"
4190 echo "configure: failed program was:" >&5
4191 cat conftest.
$ac_ext >&5
4193 eval "ac_cv_lib_$ac_lib_var=no"
4196 LIBS
="$ac_save_LIBS"
4199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4200 echo "$ac_t""yes" 1>&6
4201 LIBS
="$LIBS -lcrypt";
4202 cat >> confdefs.h
<<\EOF
4203 #define HAVE_CRYPT 1
4207 echo "$ac_t""no" 1>&6
4213 ###############################################
4214 # Readline included by default unless explicitly asked not to
4215 test "${with_readline+set}" != "set" && with_readline
=yes
4217 # test for where we get readline() from
4218 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4219 echo "configure:4220: checking whether to use readline" >&5
4220 # Check whether --with-readline or --without-readline was given.
4221 if test "${with_readline+set}" = set; then
4222 withval
="$with_readline"
4223 case "$with_readline" in
4225 echo "$ac_t""yes" 1>&6
4227 for ac_hdr
in readline.h
history.h readline
/readline.h
4229 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4231 echo "configure:4232: checking for $ac_hdr" >&5
4232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 cat > conftest.
$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4240 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4241 { (eval echo configure
:4242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4242 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4243 if test -z "$ac_err"; then
4245 eval "ac_cv_header_$ac_safe=yes"
4248 echo "configure: failed program was:" >&5
4249 cat conftest.
$ac_ext >&5
4251 eval "ac_cv_header_$ac_safe=no"
4255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4258 cat >> confdefs.h
<<EOF
4259 #define $ac_tr_hdr 1
4263 echo "$ac_t""no" 1>&6
4267 for ac_hdr
in readline
/history.h
4269 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4271 echo "configure:4272: checking for $ac_hdr" >&5
4272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 cat > conftest.
$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4280 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281 { (eval echo configure
:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4283 if test -z "$ac_err"; then
4285 eval "ac_cv_header_$ac_safe=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.
$ac_ext >&5
4291 eval "ac_cv_header_$ac_safe=no"
4295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4298 cat >> confdefs.h
<<EOF
4299 #define $ac_tr_hdr 1
4303 echo "$ac_t""no" 1>&6
4308 for ac_hdr
in readline.h readline
/readline.h
4310 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_hdr" >&5
4313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 cat > conftest.
$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4321 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4322 { (eval echo configure
:4323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4323 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4324 if test -z "$ac_err"; then
4326 eval "ac_cv_header_$ac_safe=yes"
4329 echo "configure: failed program was:" >&5
4330 cat conftest.
$ac_ext >&5
4332 eval "ac_cv_header_$ac_safe=no"
4336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4339 cat >> confdefs.h
<<EOF
4340 #define $ac_tr_hdr 1
4343 for termlib
in ncurses curses termcap terminfo termlib
; do
4344 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4345 echo "configure:4346: checking for tgetent in -l${termlib}" >&5
4346 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 ac_save_LIBS
="$LIBS"
4351 LIBS
="-l${termlib} $LIBS"
4352 cat > conftest.
$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4364 if { (eval echo configure
:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4366 eval "ac_cv_lib_$ac_lib_var=yes"
4368 echo "configure: failed program was:" >&5
4369 cat conftest.
$ac_ext >&5
4371 eval "ac_cv_lib_$ac_lib_var=no"
4374 LIBS
="$ac_save_LIBS"
4377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4379 TERMLIBS
="-l${termlib}"; break
4381 echo "$ac_t""no" 1>&6
4385 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4386 echo "configure:4387: checking for rl_callback_handler_install in -lreadline" >&5
4387 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4391 ac_save_LIBS
="$LIBS"
4392 LIBS
="-lreadline $TERMLIBS $LIBS"
4393 cat > conftest.
$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4399 char rl_callback_handler_install();
4402 rl_callback_handler_install()
4405 if { (eval echo configure
:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4407 eval "ac_cv_lib_$ac_lib_var=yes"
4409 echo "configure: failed program was:" >&5
4410 cat conftest.
$ac_ext >&5
4412 eval "ac_cv_lib_$ac_lib_var=no"
4415 LIBS
="$ac_save_LIBS"
4418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6
4420 TERMLIBS
="-lreadline $TERMLIBS"
4421 cat >> confdefs.h
<<\EOF
4422 #define HAVE_LIBREADLINE 1
4427 echo "$ac_t""no" 1>&6
4432 echo "$ac_t""no" 1>&6
4438 echo "$ac_t""no" 1>&6
4441 echo "$ac_t""yes" 1>&6
4443 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4444 # alternate readline path
4446 _cppflags
=${CPPFLAGS}
4448 # Add additional search path
4449 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4450 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4452 for ac_hdr
in readline.h
history.h readline
/readline.h
4454 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_hdr" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.
$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4465 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure
:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4470 eval "ac_cv_header_$ac_safe=yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.
$ac_ext >&5
4476 eval "ac_cv_header_$ac_safe=no"
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4483 cat >> confdefs.h
<<EOF
4484 #define $ac_tr_hdr 1
4488 echo "$ac_t""no" 1>&6
4492 for ac_hdr
in readline
/history.h
4494 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_hdr" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.
$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure
:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4510 eval "ac_cv_header_$ac_safe=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.
$ac_ext >&5
4516 eval "ac_cv_header_$ac_safe=no"
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4523 cat >> confdefs.h
<<EOF
4524 #define $ac_tr_hdr 1
4528 echo "$ac_t""no" 1>&6
4533 for ac_hdr
in readline.h readline
/readline.h
4535 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4537 echo "configure:4538: checking for $ac_hdr" >&5
4538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4541 cat > conftest.
$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4546 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4547 { (eval echo configure
:4548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4548 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4549 if test -z "$ac_err"; then
4551 eval "ac_cv_header_$ac_safe=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4557 eval "ac_cv_header_$ac_safe=no"
4561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4564 cat >> confdefs.h
<<EOF
4565 #define $ac_tr_hdr 1
4568 for termlib
in ncurses curses termcap terminfo termlib
; do
4569 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4570 echo "configure:4571: checking for tgetent in -l${termlib}" >&5
4571 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 ac_save_LIBS
="$LIBS"
4576 LIBS
="-l${termlib} $LIBS"
4577 cat > conftest.
$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 /* Override any gcc2 internal prototype to avoid an error. */
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4589 if { (eval echo configure
:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4591 eval "ac_cv_lib_$ac_lib_var=yes"
4593 echo "configure: failed program was:" >&5
4594 cat conftest.
$ac_ext >&5
4596 eval "ac_cv_lib_$ac_lib_var=no"
4599 LIBS
="$ac_save_LIBS"
4602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 TERMLIBS
="-l${termlib}"; break
4606 echo "$ac_t""no" 1>&6
4610 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4611 echo "configure:4612: checking for rl_callback_handler_install in -lreadline" >&5
4612 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 ac_save_LIBS
="$LIBS"
4617 LIBS
="-lreadline $TERMLIBS $LIBS"
4618 cat > conftest.
$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4624 char rl_callback_handler_install();
4627 rl_callback_handler_install()
4630 if { (eval echo configure
:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4632 eval "ac_cv_lib_$ac_lib_var=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.
$ac_ext >&5
4637 eval "ac_cv_lib_$ac_lib_var=no"
4640 LIBS
="$ac_save_LIBS"
4643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 TERMLDFLAGS
="-L$with_readline/lib"
4646 TERMCPPFLAGS
="-I$with_readline/include"
4647 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4648 TERMLIBS
="-lreadline $TERMLIBS"
4649 cat >> confdefs.h
<<\EOF
4650 #define HAVE_LIBREADLINE 1
4655 echo "$ac_t""no" 1>&6
4656 TERMLIBS
= CPPFLAGS
=$_cppflags
4660 echo "$ac_t""no" 1>&6
4669 echo "$ac_t""no" 1>&6
4676 # The readline API changed slightly from readline3 to readline4, so
4677 # code will generate warnings on one of them unless we have a few
4679 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4680 echo "configure:4681: checking for rl_completion_matches in -lreadline" >&5
4681 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 ac_save_LIBS
="$LIBS"
4686 LIBS
="-lreadline $TERMLIBS $LIBS"
4687 cat > conftest.
$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4690 /* Override any gcc2 internal prototype to avoid an error. */
4691 /* We use char because int might match the return type of a gcc2
4692 builtin and then its argument prototype would still apply. */
4693 char rl_completion_matches();
4696 rl_completion_matches()
4699 if { (eval echo configure
:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4701 eval "ac_cv_lib_$ac_lib_var=yes"
4703 echo "configure: failed program was:" >&5
4704 cat conftest.
$ac_ext >&5
4706 eval "ac_cv_lib_$ac_lib_var=no"
4709 LIBS
="$ac_save_LIBS"
4712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4714 cat >> confdefs.h
<<\EOF
4715 #define HAVE_NEW_LIBREADLINE 1
4719 echo "$ac_t""no" 1>&6
4723 # The following test taken from the cvs sources
4724 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4725 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4726 # libsocket.so which has a bad implementation of gethostbyname (it
4727 # only looks in /etc/hosts), so we only look for -lsocket if we need
4729 for ac_func
in connect
4731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4732 echo "configure:4733: checking for $ac_func" >&5
4733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4736 cat > conftest.
$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* System header to define __stub macros and hopefully few prototypes,
4740 which can conflict with char $ac_func(); below. */
4742 /* Override any gcc2 internal prototype to avoid an error. */
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4749 /* The GNU C library defines this for functions which it implements
4750 to always fail with ENOSYS. Some functions are actually named
4751 something starting with __ and the normal name is an alias. */
4752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4760 if { (eval echo configure
:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4762 eval "ac_cv_func_$ac_func=yes"
4764 echo "configure: failed program was:" >&5
4765 cat conftest.
$ac_ext >&5
4767 eval "ac_cv_func_$ac_func=no"
4772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6
4774 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4775 cat >> confdefs.h
<<EOF
4776 #define $ac_tr_func 1
4780 echo "$ac_t""no" 1>&6
4784 if test x
"$ac_cv_func_connect" = x
"no"; then
4787 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4788 echo "configure:4789: checking for printf in -lnsl_s" >&5
4789 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 ac_save_LIBS
="$LIBS"
4794 LIBS
="-lnsl_s $LIBS"
4795 cat > conftest.
$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4807 if { (eval echo configure
:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4809 eval "ac_cv_lib_$ac_lib_var=yes"
4811 echo "configure: failed program was:" >&5
4812 cat conftest.
$ac_ext >&5
4814 eval "ac_cv_lib_$ac_lib_var=no"
4817 LIBS
="$ac_save_LIBS"
4820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4823 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4824 cat >> confdefs.h
<<EOF
4825 #define $ac_tr_lib 1
4828 LIBS
="-lnsl_s $LIBS"
4831 echo "$ac_t""no" 1>&6
4837 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4838 echo "configure:4839: checking for printf in -lnsl" >&5
4839 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4841 echo $ac_n "(cached) $ac_c" 1>&6
4843 ac_save_LIBS
="$LIBS"
4845 cat > conftest.
$ac_ext <<EOF
4846 #line 4847 "configure"
4847 #include "confdefs.h"
4848 /* Override any gcc2 internal prototype to avoid an error. */
4849 /* We use char because int might match the return type of a gcc2
4850 builtin and then its argument prototype would still apply. */
4857 if { (eval echo configure
:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4859 eval "ac_cv_lib_$ac_lib_var=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.
$ac_ext >&5
4864 eval "ac_cv_lib_$ac_lib_var=no"
4867 LIBS
="$ac_save_LIBS"
4870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4871 echo "$ac_t""yes" 1>&6
4872 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4874 cat >> confdefs.h
<<EOF
4875 #define $ac_tr_lib 1
4881 echo "$ac_t""no" 1>&6
4887 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4888 echo "configure:4889: checking for connect in -lsocket" >&5
4889 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4893 ac_save_LIBS
="$LIBS"
4894 LIBS
="-lsocket $LIBS"
4895 cat > conftest.
$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4898 /* Override any gcc2 internal prototype to avoid an error. */
4899 /* We use char because int might match the return type of a gcc2
4900 builtin and then its argument prototype would still apply. */
4907 if { (eval echo configure
:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4909 eval "ac_cv_lib_$ac_lib_var=yes"
4911 echo "configure: failed program was:" >&5
4912 cat conftest.
$ac_ext >&5
4914 eval "ac_cv_lib_$ac_lib_var=no"
4917 LIBS
="$ac_save_LIBS"
4920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4921 echo "$ac_t""yes" 1>&6
4922 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4923 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4924 cat >> confdefs.h
<<EOF
4925 #define $ac_tr_lib 1
4928 LIBS
="-lsocket $LIBS"
4931 echo "$ac_t""no" 1>&6
4937 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4938 echo "configure:4939: checking for connect in -linet" >&5
4939 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 ac_save_LIBS
="$LIBS"
4945 cat > conftest.
$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4957 if { (eval echo configure
:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4959 eval "ac_cv_lib_$ac_lib_var=yes"
4961 echo "configure: failed program was:" >&5
4962 cat conftest.
$ac_ext >&5
4964 eval "ac_cv_lib_$ac_lib_var=no"
4967 LIBS
="$ac_save_LIBS"
4970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4974 cat >> confdefs.h
<<EOF
4975 #define $ac_tr_lib 1
4981 echo "$ac_t""no" 1>&6
4985 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4986 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4987 # ac_cv_func_connect=yes
4988 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4989 cat >> confdefs.h
<<\EOF
4990 #define HAVE_CONNECT 1
4996 ###############################################
4997 # test for where we get get_yp_default_domain() from
4998 for ac_func
in yp_get_default_domain
5000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5001 echo "configure:5002: checking for $ac_func" >&5
5002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5005 cat > conftest.
$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5008 /* System header to define __stub macros and hopefully few prototypes,
5009 which can conflict with char $ac_func(); below. */
5011 /* Override any gcc2 internal prototype to avoid an error. */
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5018 /* The GNU C library defines this for functions which it implements
5019 to always fail with ENOSYS. Some functions are actually named
5020 something starting with __ and the normal name is an alias. */
5021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.
$ac_ext >&5
5036 eval "ac_cv_func_$ac_func=no"
5041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5044 cat >> confdefs.h
<<EOF
5045 #define $ac_tr_func 1
5049 echo "$ac_t""no" 1>&6
5053 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5054 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5055 echo "configure:5056: checking for yp_get_default_domain in -lnsl" >&5
5056 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 ac_save_LIBS
="$LIBS"
5062 cat > conftest.
$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5065 /* Override any gcc2 internal prototype to avoid an error. */
5066 /* We use char because int might match the return type of a gcc2
5067 builtin and then its argument prototype would still apply. */
5068 char yp_get_default_domain();
5071 yp_get_default_domain()
5074 if { (eval echo configure
:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5076 eval "ac_cv_lib_$ac_lib_var=yes"
5078 echo "configure: failed program was:" >&5
5079 cat conftest.
$ac_ext >&5
5081 eval "ac_cv_lib_$ac_lib_var=no"
5084 LIBS
="$ac_save_LIBS"
5087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5088 echo "$ac_t""yes" 1>&6
5090 cat >> confdefs.h
<<\EOF
5091 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5095 echo "$ac_t""no" 1>&6
5100 # Check if we have execl, if not we need to compile smbrun.
5101 for ac_func
in execl
5103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5104 echo "configure:5105: checking for $ac_func" >&5
5105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6
5108 cat > conftest.
$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 /* System header to define __stub macros and hopefully few prototypes,
5112 which can conflict with char $ac_func(); below. */
5114 /* Override any gcc2 internal prototype to avoid an error. */
5115 /* We use char because int might match the return type of a gcc2
5116 builtin and then its argument prototype would still apply. */
5121 /* The GNU C library defines this for functions which it implements
5122 to always fail with ENOSYS. Some functions are actually named
5123 something starting with __ and the normal name is an alias. */
5124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5132 if { (eval echo configure
:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5134 eval "ac_cv_func_$ac_func=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.
$ac_ext >&5
5139 eval "ac_cv_func_$ac_func=no"
5144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5147 cat >> confdefs.h
<<EOF
5148 #define $ac_tr_func 1
5152 echo "$ac_t""no" 1>&6
5156 if test x
"$ac_cv_func_execl" = x
"no"; then
5157 RUNPROG
="bin/smbrun"
5162 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
5164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5165 echo "configure:5166: checking for $ac_func" >&5
5166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 cat > conftest.
$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 /* System header to define __stub macros and hopefully few prototypes,
5173 which can conflict with char $ac_func(); below. */
5175 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5182 /* The GNU C library defines this for functions which it implements
5183 to always fail with ENOSYS. Some functions are actually named
5184 something starting with __ and the normal name is an alias. */
5185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5193 if { (eval echo configure
:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5195 eval "ac_cv_func_$ac_func=yes"
5197 echo "configure: failed program was:" >&5
5198 cat conftest.
$ac_ext >&5
5200 eval "ac_cv_func_$ac_func=no"
5205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5208 cat >> confdefs.h
<<EOF
5209 #define $ac_tr_func 1
5213 echo "$ac_t""no" 1>&6
5217 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5220 echo "configure:5221: checking for $ac_func" >&5
5221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5224 cat > conftest.
$ac_ext <<EOF
5225 #line 5226 "configure"
5226 #include "confdefs.h"
5227 /* System header to define __stub macros and hopefully few prototypes,
5228 which can conflict with char $ac_func(); below. */
5230 /* Override any gcc2 internal prototype to avoid an error. */
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5237 /* The GNU C library defines this for functions which it implements
5238 to always fail with ENOSYS. Some functions are actually named
5239 something starting with __ and the normal name is an alias. */
5240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5248 if { (eval echo configure
:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5250 eval "ac_cv_func_$ac_func=yes"
5252 echo "configure: failed program was:" >&5
5253 cat conftest.
$ac_ext >&5
5255 eval "ac_cv_func_$ac_func=no"
5260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5263 cat >> confdefs.h
<<EOF
5264 #define $ac_tr_func 1
5268 echo "$ac_t""no" 1>&6
5272 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5275 echo "configure:5276: checking for $ac_func" >&5
5276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5279 cat > conftest.
$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 /* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func(); below. */
5285 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5292 /* The GNU C library defines this for functions which it implements
5293 to always fail with ENOSYS. Some functions are actually named
5294 something starting with __ and the normal name is an alias. */
5295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5303 if { (eval echo configure
:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5305 eval "ac_cv_func_$ac_func=yes"
5307 echo "configure: failed program was:" >&5
5308 cat conftest.
$ac_ext >&5
5310 eval "ac_cv_func_$ac_func=no"
5315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5316 echo "$ac_t""yes" 1>&6
5317 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5318 cat >> confdefs.h
<<EOF
5319 #define $ac_tr_func 1
5323 echo "$ac_t""no" 1>&6
5327 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5330 echo "configure:5331: checking for $ac_func" >&5
5331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5334 cat > conftest.
$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5337 /* System header to define __stub macros and hopefully few prototypes,
5338 which can conflict with char $ac_func(); below. */
5340 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */
5347 /* The GNU C library defines this for functions which it implements
5348 to always fail with ENOSYS. Some functions are actually named
5349 something starting with __ and the normal name is an alias. */
5350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5358 if { (eval echo configure
:5359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5360 eval "ac_cv_func_$ac_func=yes"
5362 echo "configure: failed program was:" >&5
5363 cat conftest.
$ac_ext >&5
5365 eval "ac_cv_func_$ac_func=no"
5370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5371 echo "$ac_t""yes" 1>&6
5372 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5373 cat >> confdefs.h
<<EOF
5374 #define $ac_tr_func 1
5378 echo "$ac_t""no" 1>&6
5382 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5385 echo "configure:5386: checking for $ac_func" >&5
5386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5389 cat > conftest.
$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 /* System header to define __stub macros and hopefully few prototypes,
5393 which can conflict with char $ac_func(); below. */
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. */
5402 /* The GNU C library defines this for functions which it implements
5403 to always fail with ENOSYS. Some functions are actually named
5404 something starting with __ and the normal name is an alias. */
5405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5413 if { (eval echo configure
:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5415 eval "ac_cv_func_$ac_func=yes"
5417 echo "configure: failed program was:" >&5
5418 cat conftest.
$ac_ext >&5
5420 eval "ac_cv_func_$ac_func=no"
5425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5426 echo "$ac_t""yes" 1>&6
5427 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5428 cat >> confdefs.h
<<EOF
5429 #define $ac_tr_func 1
5433 echo "$ac_t""no" 1>&6
5437 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5440 echo "configure:5441: checking for $ac_func" >&5
5441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6
5444 cat > conftest.
$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5447 /* System header to define __stub macros and hopefully few prototypes,
5448 which can conflict with char $ac_func(); below. */
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 /* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5457 /* The GNU C library defines this for functions which it implements
5458 to always fail with ENOSYS. Some functions are actually named
5459 something starting with __ and the normal name is an alias. */
5460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5468 if { (eval echo configure
:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5470 eval "ac_cv_func_$ac_func=yes"
5472 echo "configure: failed program was:" >&5
5473 cat conftest.
$ac_ext >&5
5475 eval "ac_cv_func_$ac_func=no"
5480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5481 echo "$ac_t""yes" 1>&6
5482 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5483 cat >> confdefs.h
<<EOF
5484 #define $ac_tr_func 1
5488 echo "$ac_t""no" 1>&6
5492 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
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 fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
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 srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
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 syslog vsyslog
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 # setbuffer is needed for smbtorture
5713 for ac_func
in setbuffer
5715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5716 echo "configure:5717: checking for $ac_func" >&5
5717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5720 cat > conftest.
$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5723 /* System header to define __stub macros and hopefully few prototypes,
5724 which can conflict with char $ac_func(); below. */
5726 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5733 /* The GNU C library defines this for functions which it implements
5734 to always fail with ENOSYS. Some functions are actually named
5735 something starting with __ and the normal name is an alias. */
5736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5744 if { (eval echo configure
:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5746 eval "ac_cv_func_$ac_func=yes"
5748 echo "configure: failed program was:" >&5
5749 cat conftest.
$ac_ext >&5
5751 eval "ac_cv_func_$ac_func=no"
5756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5757 echo "$ac_t""yes" 1>&6
5758 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5759 cat >> confdefs.h
<<EOF
5760 #define $ac_tr_func 1
5764 echo "$ac_t""no" 1>&6
5769 # syscall() is needed for smbwrapper.
5770 for ac_func
in syscall
5772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5773 echo "configure:5774: checking for $ac_func" >&5
5774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.
$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 /* System header to define __stub macros and hopefully few prototypes,
5781 which can conflict with char $ac_func(); below. */
5783 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5790 /* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5801 if { (eval echo configure
:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5803 eval "ac_cv_func_$ac_func=yes"
5805 echo "configure: failed program was:" >&5
5806 cat conftest.
$ac_ext >&5
5808 eval "ac_cv_func_$ac_func=no"
5813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5814 echo "$ac_t""yes" 1>&6
5815 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5816 cat >> confdefs.h
<<EOF
5817 #define $ac_tr_func 1
5821 echo "$ac_t""no" 1>&6
5826 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5829 echo "configure:5830: checking for $ac_func" >&5
5830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 cat > conftest.
$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 /* System header to define __stub macros and hopefully few prototypes,
5837 which can conflict with char $ac_func(); below. */
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5846 /* The GNU C library defines this for functions which it implements
5847 to always fail with ENOSYS. Some functions are actually named
5848 something starting with __ and the normal name is an alias. */
5849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5857 if { (eval echo configure
:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5859 eval "ac_cv_func_$ac_func=yes"
5861 echo "configure: failed program was:" >&5
5862 cat conftest.
$ac_ext >&5
5864 eval "ac_cv_func_$ac_func=no"
5869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5870 echo "$ac_t""yes" 1>&6
5871 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5872 cat >> confdefs.h
<<EOF
5873 #define $ac_tr_func 1
5877 echo "$ac_t""no" 1>&6
5881 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5884 echo "configure:5885: checking for $ac_func" >&5
5885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5888 cat > conftest.
$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 /* System header to define __stub macros and hopefully few prototypes,
5892 which can conflict with char $ac_func(); below. */
5894 /* Override any gcc2 internal prototype to avoid an error. */
5895 /* We use char because int might match the return type of a gcc2
5896 builtin and then its argument prototype would still apply. */
5901 /* The GNU C library defines this for functions which it implements
5902 to always fail with ENOSYS. Some functions are actually named
5903 something starting with __ and the normal name is an alias. */
5904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5912 if { (eval echo configure
:5913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5914 eval "ac_cv_func_$ac_func=yes"
5916 echo "configure: failed program was:" >&5
5917 cat conftest.
$ac_ext >&5
5919 eval "ac_cv_func_$ac_func=no"
5924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5925 echo "$ac_t""yes" 1>&6
5926 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5927 cat >> confdefs.h
<<EOF
5928 #define $ac_tr_func 1
5932 echo "$ac_t""no" 1>&6
5936 for ac_func
in __getcwd _getcwd
5938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5939 echo "configure:5940: checking for $ac_func" >&5
5940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5943 cat > conftest.
$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 /* System header to define __stub macros and hopefully few prototypes,
5947 which can conflict with char $ac_func(); below. */
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5956 /* The GNU C library defines this for functions which it implements
5957 to always fail with ENOSYS. Some functions are actually named
5958 something starting with __ and the normal name is an alias. */
5959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5967 if { (eval echo configure
:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5969 eval "ac_cv_func_$ac_func=yes"
5971 echo "configure: failed program was:" >&5
5972 cat conftest.
$ac_ext >&5
5974 eval "ac_cv_func_$ac_func=no"
5979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5981 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5982 cat >> confdefs.h
<<EOF
5983 #define $ac_tr_func 1
5987 echo "$ac_t""no" 1>&6
5991 for ac_func
in __xstat __fxstat __lxstat
5993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5994 echo "configure:5995: checking for $ac_func" >&5
5995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5998 cat > conftest.
$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 /* System header to define __stub macros and hopefully few prototypes,
6002 which can conflict with char $ac_func(); below. */
6004 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6011 /* The GNU C library defines this for functions which it implements
6012 to always fail with ENOSYS. Some functions are actually named
6013 something starting with __ and the normal name is an alias. */
6014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6022 if { (eval echo configure
:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6024 eval "ac_cv_func_$ac_func=yes"
6026 echo "configure: failed program was:" >&5
6027 cat conftest.
$ac_ext >&5
6029 eval "ac_cv_func_$ac_func=no"
6034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6035 echo "$ac_t""yes" 1>&6
6036 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6037 cat >> confdefs.h
<<EOF
6038 #define $ac_tr_func 1
6042 echo "$ac_t""no" 1>&6
6046 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6049 echo "configure:6050: checking for $ac_func" >&5
6050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6053 cat > conftest.
$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6056 /* System header to define __stub macros and hopefully few prototypes,
6057 which can conflict with char $ac_func(); below. */
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6066 /* The GNU C library defines this for functions which it implements
6067 to always fail with ENOSYS. Some functions are actually named
6068 something starting with __ and the normal name is an alias. */
6069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6077 if { (eval echo configure
:6078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6079 eval "ac_cv_func_$ac_func=yes"
6081 echo "configure: failed program was:" >&5
6082 cat conftest.
$ac_ext >&5
6084 eval "ac_cv_func_$ac_func=no"
6089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6091 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6092 cat >> confdefs.h
<<EOF
6093 #define $ac_tr_func 1
6097 echo "$ac_t""no" 1>&6
6101 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6104 echo "configure:6105: checking for $ac_func" >&5
6105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.
$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 /* System header to define __stub macros and hopefully few prototypes,
6112 which can conflict with char $ac_func(); below. */
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6121 /* The GNU C library defines this for functions which it implements
6122 to always fail with ENOSYS. Some functions are actually named
6123 something starting with __ and the normal name is an alias. */
6124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6132 if { (eval echo configure
:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6134 eval "ac_cv_func_$ac_func=yes"
6136 echo "configure: failed program was:" >&5
6137 cat conftest.
$ac_ext >&5
6139 eval "ac_cv_func_$ac_func=no"
6144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6145 echo "$ac_t""yes" 1>&6
6146 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6147 cat >> confdefs.h
<<EOF
6148 #define $ac_tr_func 1
6152 echo "$ac_t""no" 1>&6
6156 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
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 getdents _getdents __getdents _lseek __lseek _read __read
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 _write __write _fork __fork
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 _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
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 __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
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 pread _pread __pread pread64 _pread64 __pread64
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 pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
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 open64 _open64 __open64 creat64
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
6598 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6601 if test x
$ac_cv_func_stat64 = xno
; then
6602 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6603 echo "configure:6604: checking for stat64 in <sys/stat.h>" >&5
6604 cat > conftest.
$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6608 #if defined(HAVE_UNISTD_H)
6611 #include <sys/stat.h>
6614 struct stat64 st64; exit(stat64(".",&st64));
6617 if { (eval echo configure
:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6619 ac_cv_func_stat64
=yes
6621 echo "configure: failed program was:" >&5
6622 cat conftest.
$ac_ext >&5
6625 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6626 if test x
$ac_cv_func_stat64 = xyes
; then
6627 cat >> confdefs.h
<<\EOF
6628 #define HAVE_STAT64 1
6634 if test x
$ac_cv_func_lstat64 = xno
; then
6635 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6636 echo "configure:6637: checking for lstat64 in <sys/stat.h>" >&5
6637 cat > conftest.
$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6641 #if defined(HAVE_UNISTD_H)
6644 #include <sys/stat.h>
6647 struct stat64 st64; exit(lstat64(".",&st64));
6650 if { (eval echo configure
:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6652 ac_cv_func_lstat64
=yes
6654 echo "configure: failed program was:" >&5
6655 cat conftest.
$ac_ext >&5
6658 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6659 if test x
$ac_cv_func_lstat64 = xyes
; then
6660 cat >> confdefs.h
<<\EOF
6661 #define HAVE_LSTAT64 1
6667 if test x
$ac_cv_func_fstat64 = xno
; then
6668 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6669 echo "configure:6670: checking for fstat64 in <sys/stat.h>" >&5
6670 cat > conftest.
$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6674 #if defined(HAVE_UNISTD_H)
6677 #include <sys/stat.h>
6680 struct stat64 st64; exit(fstat64(0,&st64));
6683 if { (eval echo configure
:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6685 ac_cv_func_fstat64
=yes
6687 echo "configure: failed program was:" >&5
6688 cat conftest.
$ac_ext >&5
6691 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6692 if test x
$ac_cv_func_fstat64 = xyes
; then
6693 cat >> confdefs.h
<<\EOF
6694 #define HAVE_FSTAT64 1
6700 #####################################
6701 # we might need the resolv library on some systems
6702 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6703 echo "configure:6704: checking for dn_expand in -lresolv" >&5
6704 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 ac_save_LIBS
="$LIBS"
6709 LIBS
="-lresolv $LIBS"
6710 cat > conftest.
$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6713 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6722 if { (eval echo configure
:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6724 eval "ac_cv_lib_$ac_lib_var=yes"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.
$ac_ext >&5
6729 eval "ac_cv_lib_$ac_lib_var=no"
6732 LIBS
="$ac_save_LIBS"
6735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6738 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6739 cat >> confdefs.h
<<EOF
6740 #define $ac_tr_lib 1
6743 LIBS
="-lresolv $LIBS"
6746 echo "$ac_t""no" 1>&6
6751 # Check for the functions putprpwnam, set_auth_parameters,
6752 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6753 # Needed for OSF1 and HPUX.
6757 *-lsecurity*) for ac_func
in putprpwnam
6759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_func" >&5
6761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 cat > conftest.
$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 /* System header to define __stub macros and hopefully few prototypes,
6768 which can conflict with char $ac_func(); below. */
6770 /* Override any gcc2 internal prototype to avoid an error. */
6771 /* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6777 /* The GNU C library defines this for functions which it implements
6778 to always fail with ENOSYS. Some functions are actually named
6779 something starting with __ and the normal name is an alias. */
6780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6788 if { (eval echo configure
:6789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6790 eval "ac_cv_func_$ac_func=yes"
6792 echo "configure: failed program was:" >&5
6793 cat conftest.
$ac_ext >&5
6795 eval "ac_cv_func_$ac_func=no"
6800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6801 echo "$ac_t""yes" 1>&6
6802 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6803 cat >> confdefs.h
<<EOF
6804 #define $ac_tr_func 1
6808 echo "$ac_t""no" 1>&6
6812 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6813 echo "configure:6814: checking for putprpwnam in -lsecurity" >&5
6814 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6818 ac_save_LIBS
="$LIBS"
6819 LIBS
="-lsecurity $LIBS"
6820 cat > conftest.
$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6823 /* Override any gcc2 internal prototype to avoid an error. */
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6832 if { (eval echo configure
:6833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6834 eval "ac_cv_lib_$ac_lib_var=yes"
6836 echo "configure: failed program was:" >&5
6837 cat conftest.
$ac_ext >&5
6839 eval "ac_cv_lib_$ac_lib_var=no"
6842 LIBS
="$ac_save_LIBS"
6845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6847 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6848 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6849 cat >> confdefs.h
<<EOF
6850 #define $ac_tr_lib 1
6853 LIBS
="-lsecurity $LIBS"
6856 echo "$ac_t""no" 1>&6
6859 for ac_func
in putprpwnam
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_func" >&5
6863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 cat > conftest.
$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* System header to define __stub macros and hopefully few prototypes,
6870 which can conflict with char $ac_func(); below. */
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6879 /* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6890 if { (eval echo configure
:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6892 eval "ac_cv_func_$ac_func=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.
$ac_ext >&5
6897 eval "ac_cv_func_$ac_func=no"
6902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6905 cat >> confdefs.h
<<EOF
6906 #define $ac_tr_func 1
6910 echo "$ac_t""no" 1>&6
6918 *-lsec*) for ac_func
in putprpwnam
6920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6921 echo "configure:6922: checking for $ac_func" >&5
6922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6923 echo $ac_n "(cached) $ac_c" 1>&6
6925 cat > conftest.
$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 /* System header to define __stub macros and hopefully few prototypes,
6929 which can conflict with char $ac_func(); below. */
6931 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6938 /* The GNU C library defines this for functions which it implements
6939 to always fail with ENOSYS. Some functions are actually named
6940 something starting with __ and the normal name is an alias. */
6941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6949 if { (eval echo configure
:6950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6951 eval "ac_cv_func_$ac_func=yes"
6953 echo "configure: failed program was:" >&5
6954 cat conftest.
$ac_ext >&5
6956 eval "ac_cv_func_$ac_func=no"
6961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6964 cat >> confdefs.h
<<EOF
6965 #define $ac_tr_func 1
6969 echo "$ac_t""no" 1>&6
6973 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6974 echo "configure:6975: checking for putprpwnam in -lsec" >&5
6975 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 ac_save_LIBS
="$LIBS"
6981 cat > conftest.
$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6984 /* Override any gcc2 internal prototype to avoid an error. */
6985 /* We use char because int might match the return type of a gcc2
6986 builtin and then its argument prototype would still apply. */
6993 if { (eval echo configure
:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6995 eval "ac_cv_lib_$ac_lib_var=yes"
6997 echo "configure: failed program was:" >&5
6998 cat conftest.
$ac_ext >&5
7000 eval "ac_cv_lib_$ac_lib_var=no"
7003 LIBS
="$ac_save_LIBS"
7006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7008 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7009 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7010 cat >> confdefs.h
<<EOF
7011 #define $ac_tr_lib 1
7017 echo "$ac_t""no" 1>&6
7020 for ac_func
in putprpwnam
7022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7023 echo "configure:7024: checking for $ac_func" >&5
7024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7027 cat > conftest.
$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* System header to define __stub macros and hopefully few prototypes,
7031 which can conflict with char $ac_func(); below. */
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7040 /* The GNU C library defines this for functions which it implements
7041 to always fail with ENOSYS. Some functions are actually named
7042 something starting with __ and the normal name is an alias. */
7043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7051 if { (eval echo configure
:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7053 eval "ac_cv_func_$ac_func=yes"
7055 echo "configure: failed program was:" >&5
7056 cat conftest.
$ac_ext >&5
7058 eval "ac_cv_func_$ac_func=no"
7063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7064 echo "$ac_t""yes" 1>&6
7065 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7066 cat >> confdefs.h
<<EOF
7067 #define $ac_tr_func 1
7071 echo "$ac_t""no" 1>&6
7080 *-lsecurity*) for ac_func
in set_auth_parameters
7082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7083 echo "configure:7084: checking for $ac_func" >&5
7084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 cat > conftest.
$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 /* System header to define __stub macros and hopefully few prototypes,
7091 which can conflict with char $ac_func(); below. */
7093 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7100 /* The GNU C library defines this for functions which it implements
7101 to always fail with ENOSYS. Some functions are actually named
7102 something starting with __ and the normal name is an alias. */
7103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7111 if { (eval echo configure
:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7113 eval "ac_cv_func_$ac_func=yes"
7115 echo "configure: failed program was:" >&5
7116 cat conftest.
$ac_ext >&5
7118 eval "ac_cv_func_$ac_func=no"
7123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7124 echo "$ac_t""yes" 1>&6
7125 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7126 cat >> confdefs.h
<<EOF
7127 #define $ac_tr_func 1
7131 echo "$ac_t""no" 1>&6
7135 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7136 echo "configure:7137: checking for set_auth_parameters in -lsecurity" >&5
7137 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7141 ac_save_LIBS
="$LIBS"
7142 LIBS
="-lsecurity $LIBS"
7143 cat > conftest.
$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 /* Override any gcc2 internal prototype to avoid an error. */
7147 /* We use char because int might match the return type of a gcc2
7148 builtin and then its argument prototype would still apply. */
7149 char set_auth_parameters();
7152 set_auth_parameters()
7155 if { (eval echo configure
:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7157 eval "ac_cv_lib_$ac_lib_var=yes"
7159 echo "configure: failed program was:" >&5
7160 cat conftest.
$ac_ext >&5
7162 eval "ac_cv_lib_$ac_lib_var=no"
7165 LIBS
="$ac_save_LIBS"
7168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7170 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7172 cat >> confdefs.h
<<EOF
7173 #define $ac_tr_lib 1
7176 LIBS
="-lsecurity $LIBS"
7179 echo "$ac_t""no" 1>&6
7182 for ac_func
in set_auth_parameters
7184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7185 echo "configure:7186: checking for $ac_func" >&5
7186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7189 cat > conftest.
$ac_ext <<EOF
7190 #line 7191 "configure"
7191 #include "confdefs.h"
7192 /* System header to define __stub macros and hopefully few prototypes,
7193 which can conflict with char $ac_func(); below. */
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 /* We use char because int might match the return type of a gcc2
7197 builtin and then its argument prototype would still apply. */
7202 /* The GNU C library defines this for functions which it implements
7203 to always fail with ENOSYS. Some functions are actually named
7204 something starting with __ and the normal name is an alias. */
7205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7213 if { (eval echo configure
:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7215 eval "ac_cv_func_$ac_func=yes"
7217 echo "configure: failed program was:" >&5
7218 cat conftest.
$ac_ext >&5
7220 eval "ac_cv_func_$ac_func=no"
7225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7226 echo "$ac_t""yes" 1>&6
7227 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7228 cat >> confdefs.h
<<EOF
7229 #define $ac_tr_func 1
7233 echo "$ac_t""no" 1>&6
7241 *-lsec*) for ac_func
in set_auth_parameters
7243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7244 echo "configure:7245: checking for $ac_func" >&5
7245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7246 echo $ac_n "(cached) $ac_c" 1>&6
7248 cat > conftest.
$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 /* System header to define __stub macros and hopefully few prototypes,
7252 which can conflict with char $ac_func(); below. */
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7261 /* The GNU C library defines this for functions which it implements
7262 to always fail with ENOSYS. Some functions are actually named
7263 something starting with __ and the normal name is an alias. */
7264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7272 if { (eval echo configure
:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7274 eval "ac_cv_func_$ac_func=yes"
7276 echo "configure: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7279 eval "ac_cv_func_$ac_func=no"
7284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7287 cat >> confdefs.h
<<EOF
7288 #define $ac_tr_func 1
7292 echo "$ac_t""no" 1>&6
7296 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7297 echo "configure:7298: checking for set_auth_parameters in -lsec" >&5
7298 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7302 ac_save_LIBS
="$LIBS"
7304 cat > conftest.
$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7310 char set_auth_parameters();
7313 set_auth_parameters()
7316 if { (eval echo configure
:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7318 eval "ac_cv_lib_$ac_lib_var=yes"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.
$ac_ext >&5
7323 eval "ac_cv_lib_$ac_lib_var=no"
7326 LIBS
="$ac_save_LIBS"
7329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7332 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7333 cat >> confdefs.h
<<EOF
7334 #define $ac_tr_lib 1
7340 echo "$ac_t""no" 1>&6
7343 for ac_func
in set_auth_parameters
7345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7346 echo "configure:7347: checking for $ac_func" >&5
7347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7350 cat > conftest.
$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* System header to define __stub macros and hopefully few prototypes,
7354 which can conflict with char $ac_func(); below. */
7356 /* Override any gcc2 internal prototype to avoid an error. */
7357 /* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7374 if { (eval echo configure
:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7376 eval "ac_cv_func_$ac_func=yes"
7378 echo "configure: failed program was:" >&5
7379 cat conftest.
$ac_ext >&5
7381 eval "ac_cv_func_$ac_func=no"
7386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7387 echo "$ac_t""yes" 1>&6
7388 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7389 cat >> confdefs.h
<<EOF
7390 #define $ac_tr_func 1
7394 echo "$ac_t""no" 1>&6
7402 # UnixWare 7.x has its getspnam in -lgen
7404 *-lgen*) for ac_func
in getspnam
7406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7407 echo "configure:7408: checking for $ac_func" >&5
7408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7411 cat > conftest.
$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7414 /* System header to define __stub macros and hopefully few prototypes,
7415 which can conflict with char $ac_func(); below. */
7417 /* Override any gcc2 internal prototype to avoid an error. */
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7424 /* The GNU C library defines this for functions which it implements
7425 to always fail with ENOSYS. Some functions are actually named
7426 something starting with __ and the normal name is an alias. */
7427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7435 if { (eval echo configure
:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7437 eval "ac_cv_func_$ac_func=yes"
7439 echo "configure: failed program was:" >&5
7440 cat conftest.
$ac_ext >&5
7442 eval "ac_cv_func_$ac_func=no"
7447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7448 echo "$ac_t""yes" 1>&6
7449 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7450 cat >> confdefs.h
<<EOF
7451 #define $ac_tr_func 1
7455 echo "$ac_t""no" 1>&6
7459 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7460 echo "configure:7461: checking for getspnam in -lgen" >&5
7461 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7465 ac_save_LIBS
="$LIBS"
7467 cat > conftest.
$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 /* Override any gcc2 internal prototype to avoid an error. */
7471 /* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */
7479 if { (eval echo configure
:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7481 eval "ac_cv_lib_$ac_lib_var=yes"
7483 echo "configure: failed program was:" >&5
7484 cat conftest.
$ac_ext >&5
7486 eval "ac_cv_lib_$ac_lib_var=no"
7489 LIBS
="$ac_save_LIBS"
7492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7493 echo "$ac_t""yes" 1>&6
7494 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7496 cat >> confdefs.h
<<EOF
7497 #define $ac_tr_lib 1
7503 echo "$ac_t""no" 1>&6
7506 for ac_func
in getspnam
7508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_func" >&5
7510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7513 cat > conftest.
$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 /* System header to define __stub macros and hopefully few prototypes,
7517 which can conflict with char $ac_func(); below. */
7519 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7537 if { (eval echo configure
:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7539 eval "ac_cv_func_$ac_func=yes"
7541 echo "configure: failed program was:" >&5
7542 cat conftest.
$ac_ext >&5
7544 eval "ac_cv_func_$ac_func=no"
7549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7552 cat >> confdefs.h
<<EOF
7553 #define $ac_tr_func 1
7557 echo "$ac_t""no" 1>&6
7566 *-lsecurity*) for ac_func
in getspnam
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7573 cat > conftest.
$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7597 if { (eval echo configure
:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7599 eval "ac_cv_func_$ac_func=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 eval "ac_cv_func_$ac_func=no"
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h
<<EOF
7613 #define $ac_tr_func 1
7617 echo "$ac_t""no" 1>&6
7621 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7622 echo "configure:7623: checking for getspnam in -lsecurity" >&5
7623 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 ac_save_LIBS
="$LIBS"
7628 LIBS
="-lsecurity $LIBS"
7629 cat > conftest.
$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7641 if { (eval echo configure
:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7643 eval "ac_cv_lib_$ac_lib_var=yes"
7645 echo "configure: failed program was:" >&5
7646 cat conftest.
$ac_ext >&5
7648 eval "ac_cv_lib_$ac_lib_var=no"
7651 LIBS
="$ac_save_LIBS"
7654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7658 cat >> confdefs.h
<<EOF
7659 #define $ac_tr_lib 1
7662 LIBS
="-lsecurity $LIBS"
7665 echo "$ac_t""no" 1>&6
7668 for ac_func
in getspnam
7670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7671 echo "configure:7672: checking for $ac_func" >&5
7672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 cat > conftest.
$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func(); below. */
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7699 if { (eval echo configure
:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7701 eval "ac_cv_func_$ac_func=yes"
7703 echo "configure: failed program was:" >&5
7704 cat conftest.
$ac_ext >&5
7706 eval "ac_cv_func_$ac_func=no"
7711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7714 cat >> confdefs.h
<<EOF
7715 #define $ac_tr_func 1
7719 echo "$ac_t""no" 1>&6
7727 *-lsec*) for ac_func
in getspnam
7729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7730 echo "configure:7731: checking for $ac_func" >&5
7731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7734 cat > conftest.
$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7737 /* System header to define __stub macros and hopefully few prototypes,
7738 which can conflict with char $ac_func(); below. */
7740 /* Override any gcc2 internal prototype to avoid an error. */
7741 /* We use char because int might match the return type of a gcc2
7742 builtin and then its argument prototype would still apply. */
7747 /* The GNU C library defines this for functions which it implements
7748 to always fail with ENOSYS. Some functions are actually named
7749 something starting with __ and the normal name is an alias. */
7750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7758 if { (eval echo configure
:7759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7760 eval "ac_cv_func_$ac_func=yes"
7762 echo "configure: failed program was:" >&5
7763 cat conftest.
$ac_ext >&5
7765 eval "ac_cv_func_$ac_func=no"
7770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7771 echo "$ac_t""yes" 1>&6
7772 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7773 cat >> confdefs.h
<<EOF
7774 #define $ac_tr_func 1
7778 echo "$ac_t""no" 1>&6
7782 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7783 echo "configure:7784: checking for getspnam in -lsec" >&5
7784 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7786 echo $ac_n "(cached) $ac_c" 1>&6
7788 ac_save_LIBS
="$LIBS"
7790 cat > conftest.
$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 /* Override any gcc2 internal prototype to avoid an error. */
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7802 if { (eval echo configure
:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7804 eval "ac_cv_lib_$ac_lib_var=yes"
7806 echo "configure: failed program was:" >&5
7807 cat conftest.
$ac_ext >&5
7809 eval "ac_cv_lib_$ac_lib_var=no"
7812 LIBS
="$ac_save_LIBS"
7815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7817 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7818 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7819 cat >> confdefs.h
<<EOF
7820 #define $ac_tr_lib 1
7826 echo "$ac_t""no" 1>&6
7829 for ac_func
in getspnam
7831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7832 echo "configure:7833: checking for $ac_func" >&5
7833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7836 cat > conftest.
$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char $ac_func(); below. */
7842 /* Override any gcc2 internal prototype to avoid an error. */
7843 /* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7849 /* The GNU C library defines this for functions which it implements
7850 to always fail with ENOSYS. Some functions are actually named
7851 something starting with __ and the normal name is an alias. */
7852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7860 if { (eval echo configure
:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7862 eval "ac_cv_func_$ac_func=yes"
7864 echo "configure: failed program was:" >&5
7865 cat conftest.
$ac_ext >&5
7867 eval "ac_cv_func_$ac_func=no"
7872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7875 cat >> confdefs.h
<<EOF
7876 #define $ac_tr_func 1
7880 echo "$ac_t""no" 1>&6
7889 *-lsecurity*) for ac_func
in bigcrypt
7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7892 echo "configure:7893: checking for $ac_func" >&5
7893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7896 cat > conftest.
$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char $ac_func(); below. */
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7920 if { (eval echo configure
:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7922 eval "ac_cv_func_$ac_func=yes"
7924 echo "configure: failed program was:" >&5
7925 cat conftest.
$ac_ext >&5
7927 eval "ac_cv_func_$ac_func=no"
7932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7933 echo "$ac_t""yes" 1>&6
7934 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7935 cat >> confdefs.h
<<EOF
7936 #define $ac_tr_func 1
7940 echo "$ac_t""no" 1>&6
7944 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7945 echo "configure:7946: checking for bigcrypt in -lsecurity" >&5
7946 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7950 ac_save_LIBS
="$LIBS"
7951 LIBS
="-lsecurity $LIBS"
7952 cat > conftest.
$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7964 if { (eval echo configure
:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7966 eval "ac_cv_lib_$ac_lib_var=yes"
7968 echo "configure: failed program was:" >&5
7969 cat conftest.
$ac_ext >&5
7971 eval "ac_cv_lib_$ac_lib_var=no"
7974 LIBS
="$ac_save_LIBS"
7977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7981 cat >> confdefs.h
<<EOF
7982 #define $ac_tr_lib 1
7985 LIBS
="-lsecurity $LIBS"
7988 echo "$ac_t""no" 1>&6
7991 for ac_func
in bigcrypt
7993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7994 echo "configure:7995: checking for $ac_func" >&5
7995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7998 cat > conftest.
$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 /* System header to define __stub macros and hopefully few prototypes,
8002 which can conflict with char $ac_func(); below. */
8004 /* Override any gcc2 internal prototype to avoid an error. */
8005 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8022 if { (eval echo configure
:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8024 eval "ac_cv_func_$ac_func=yes"
8026 echo "configure: failed program was:" >&5
8027 cat conftest.
$ac_ext >&5
8029 eval "ac_cv_func_$ac_func=no"
8034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8035 echo "$ac_t""yes" 1>&6
8036 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8037 cat >> confdefs.h
<<EOF
8038 #define $ac_tr_func 1
8042 echo "$ac_t""no" 1>&6
8050 *-lsec*) for ac_func
in bigcrypt
8052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8053 echo "configure:8054: checking for $ac_func" >&5
8054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8055 echo $ac_n "(cached) $ac_c" 1>&6
8057 cat > conftest.
$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 /* System header to define __stub macros and hopefully few prototypes,
8061 which can conflict with char $ac_func(); below. */
8063 /* Override any gcc2 internal prototype to avoid an error. */
8064 /* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8070 /* The GNU C library defines this for functions which it implements
8071 to always fail with ENOSYS. Some functions are actually named
8072 something starting with __ and the normal name is an alias. */
8073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8081 if { (eval echo configure
:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8083 eval "ac_cv_func_$ac_func=yes"
8085 echo "configure: failed program was:" >&5
8086 cat conftest.
$ac_ext >&5
8088 eval "ac_cv_func_$ac_func=no"
8093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8096 cat >> confdefs.h
<<EOF
8097 #define $ac_tr_func 1
8101 echo "$ac_t""no" 1>&6
8105 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8106 echo "configure:8107: checking for bigcrypt in -lsec" >&5
8107 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8111 ac_save_LIBS
="$LIBS"
8113 cat > conftest.
$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8116 /* Override any gcc2 internal prototype to avoid an error. */
8117 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8125 if { (eval echo configure
:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8127 eval "ac_cv_lib_$ac_lib_var=yes"
8129 echo "configure: failed program was:" >&5
8130 cat conftest.
$ac_ext >&5
8132 eval "ac_cv_lib_$ac_lib_var=no"
8135 LIBS
="$ac_save_LIBS"
8138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8139 echo "$ac_t""yes" 1>&6
8140 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8142 cat >> confdefs.h
<<EOF
8143 #define $ac_tr_lib 1
8149 echo "$ac_t""no" 1>&6
8152 for ac_func
in bigcrypt
8154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8155 echo "configure:8156: checking for $ac_func" >&5
8156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8159 cat > conftest.
$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char $ac_func(); below. */
8165 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8183 if { (eval echo configure
:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8185 eval "ac_cv_func_$ac_func=yes"
8187 echo "configure: failed program was:" >&5
8188 cat conftest.
$ac_ext >&5
8190 eval "ac_cv_func_$ac_func=no"
8195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8196 echo "$ac_t""yes" 1>&6
8197 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8198 cat >> confdefs.h
<<EOF
8199 #define $ac_tr_func 1
8203 echo "$ac_t""no" 1>&6
8212 *-lsecurity*) for ac_func
in getprpwnam
8214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8215 echo "configure:8216: checking for $ac_func" >&5
8216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8219 cat > conftest.
$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8222 /* System header to define __stub macros and hopefully few prototypes,
8223 which can conflict with char $ac_func(); below. */
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8232 /* The GNU C library defines this for functions which it implements
8233 to always fail with ENOSYS. Some functions are actually named
8234 something starting with __ and the normal name is an alias. */
8235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8243 if { (eval echo configure
:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8245 eval "ac_cv_func_$ac_func=yes"
8247 echo "configure: failed program was:" >&5
8248 cat conftest.
$ac_ext >&5
8250 eval "ac_cv_func_$ac_func=no"
8255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8258 cat >> confdefs.h
<<EOF
8259 #define $ac_tr_func 1
8263 echo "$ac_t""no" 1>&6
8267 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8268 echo "configure:8269: checking for getprpwnam in -lsecurity" >&5
8269 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8271 echo $ac_n "(cached) $ac_c" 1>&6
8273 ac_save_LIBS
="$LIBS"
8274 LIBS
="-lsecurity $LIBS"
8275 cat > conftest.
$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 /* Override any gcc2 internal prototype to avoid an error. */
8279 /* We use char because int might match the return type of a gcc2
8280 builtin and then its argument prototype would still apply. */
8287 if { (eval echo configure
:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8289 eval "ac_cv_lib_$ac_lib_var=yes"
8291 echo "configure: failed program was:" >&5
8292 cat conftest.
$ac_ext >&5
8294 eval "ac_cv_lib_$ac_lib_var=no"
8297 LIBS
="$ac_save_LIBS"
8300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8301 echo "$ac_t""yes" 1>&6
8302 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8304 cat >> confdefs.h
<<EOF
8305 #define $ac_tr_lib 1
8308 LIBS
="-lsecurity $LIBS"
8311 echo "$ac_t""no" 1>&6
8314 for ac_func
in getprpwnam
8316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8317 echo "configure:8318: checking for $ac_func" >&5
8318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 cat > conftest.
$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* System header to define __stub macros and hopefully few prototypes,
8325 which can conflict with char $ac_func(); below. */
8327 /* Override any gcc2 internal prototype to avoid an error. */
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8334 /* The GNU C library defines this for functions which it implements
8335 to always fail with ENOSYS. Some functions are actually named
8336 something starting with __ and the normal name is an alias. */
8337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8345 if { (eval echo configure
:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8347 eval "ac_cv_func_$ac_func=yes"
8349 echo "configure: failed program was:" >&5
8350 cat conftest.
$ac_ext >&5
8352 eval "ac_cv_func_$ac_func=no"
8357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8360 cat >> confdefs.h
<<EOF
8361 #define $ac_tr_func 1
8365 echo "$ac_t""no" 1>&6
8373 *-lsec*) for ac_func
in getprpwnam
8375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8376 echo "configure:8377: checking for $ac_func" >&5
8377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8378 echo $ac_n "(cached) $ac_c" 1>&6
8380 cat > conftest.
$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 /* System header to define __stub macros and hopefully few prototypes,
8384 which can conflict with char $ac_func(); below. */
8386 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8393 /* The GNU C library defines this for functions which it implements
8394 to always fail with ENOSYS. Some functions are actually named
8395 something starting with __ and the normal name is an alias. */
8396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8404 if { (eval echo configure
:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8406 eval "ac_cv_func_$ac_func=yes"
8408 echo "configure: failed program was:" >&5
8409 cat conftest.
$ac_ext >&5
8411 eval "ac_cv_func_$ac_func=no"
8416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8419 cat >> confdefs.h
<<EOF
8420 #define $ac_tr_func 1
8424 echo "$ac_t""no" 1>&6
8428 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8429 echo "configure:8430: checking for getprpwnam in -lsec" >&5
8430 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8434 ac_save_LIBS
="$LIBS"
8436 cat > conftest.
$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8448 if { (eval echo configure
:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8450 eval "ac_cv_lib_$ac_lib_var=yes"
8452 echo "configure: failed program was:" >&5
8453 cat conftest.
$ac_ext >&5
8455 eval "ac_cv_lib_$ac_lib_var=no"
8458 LIBS
="$ac_save_LIBS"
8461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8462 echo "$ac_t""yes" 1>&6
8463 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8465 cat >> confdefs.h
<<EOF
8466 #define $ac_tr_lib 1
8472 echo "$ac_t""no" 1>&6
8475 for ac_func
in getprpwnam
8477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8478 echo "configure:8479: checking for $ac_func" >&5
8479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8480 echo $ac_n "(cached) $ac_c" 1>&6
8482 cat > conftest.
$ac_ext <<EOF
8483 #line 8484 "configure"
8484 #include "confdefs.h"
8485 /* System header to define __stub macros and hopefully few prototypes,
8486 which can conflict with char $ac_func(); below. */
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 /* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8506 if { (eval echo configure
:8507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8508 eval "ac_cv_func_$ac_func=yes"
8510 echo "configure: failed program was:" >&5
8511 cat conftest.
$ac_ext >&5
8513 eval "ac_cv_func_$ac_func=no"
8518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8521 cat >> confdefs.h
<<EOF
8522 #define $ac_tr_func 1
8526 echo "$ac_t""no" 1>&6
8534 # this bit needs to be modified for each OS that is suported by
8535 # smbwrapper. You need to specify how to created a shared library and
8536 # how to compile C code to produce PIC object files
8538 # these are the defaults, good for lots of systems
8546 # Assume non-shared by default and override below
8548 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8549 echo "configure:8550: checking ability to build shared libraries" >&5
8551 # and these are for particular systems
8553 *linux
*) cat >> confdefs.h
<<\EOF
8560 cat >> confdefs.h
<<\EOF
8561 #define STAT_ST_BLOCKSIZE 512
8565 *solaris
*) cat >> confdefs.h
<<\EOF
8570 LDSHFLAGS
="-h \$@ -G"
8571 if test "${ac_cv_prog_CC}" = "gcc"; then
8578 cat >> confdefs.h
<<\EOF
8579 #define STAT_ST_BLOCKSIZE 512
8583 *sunos
*) cat >> confdefs.h
<<\EOF
8588 LDSHFLAGS
="-Wl,-h,\$@ -G"
8589 PICFLAG
="-KPIC" # Is this correct for SunOS
8591 *bsd
*) BLDSHARED
="true"
8592 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8594 cat >> confdefs.h
<<\EOF
8595 #define STAT_ST_BLOCKSIZE 512
8599 *irix
*) cat >> confdefs.h
<<\EOF
8604 *irix6
*) cat >> confdefs.h
<<\EOF
8610 ATTEMPT_WRAP32_BUILD
=yes
8612 LDSHFLAGS
="-soname \$@ -shared"
8614 if test "${ac_cv_prog_CC}" = "gcc"; then
8619 cat >> confdefs.h
<<\EOF
8620 #define STAT_ST_BLOCKSIZE 512
8624 *aix
*) cat >> confdefs.h
<<\EOF
8629 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8630 PICFLAG
="-O2 -qmaxmem=6000"
8631 cat >> confdefs.h
<<\EOF
8632 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8636 *hpux
*) cat >> confdefs.h
<<\EOF
8641 # Use special PIC flags for the native HP-UX compiler.
8642 if test $ac_cv_prog_cc_Ae = yes; then
8644 LDSHFLAGS
="-b -z +h \$@"
8647 cat >> confdefs.h
<<\EOF
8648 #define STAT_ST_BLOCKSIZE 8192
8652 *qnx
*) cat >> confdefs.h
<<\EOF
8656 *osf
*) cat >> confdefs.h
<<\EOF
8661 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8664 *sco
*) cat >> confdefs.h
<<\EOF
8668 *unixware
*) cat >> confdefs.h
<<\EOF
8673 LDSHFLAGS
="-Wl,-soname,\$@ -shared"
8676 *next2
*) cat >> confdefs.h
<<\EOF
8680 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8681 set dummy
groff; ac_word
=$2
8682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8683 echo "configure:8684: checking for $ac_word" >&5
8684 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8687 if test -n "$ROFF"; then
8688 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8692 for ac_dir
in $ac_dummy; do
8693 test -z "$ac_dir" && ac_dir
=.
8694 if test -f $ac_dir/$ac_word; then
8695 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8702 ROFF
="$ac_cv_prog_ROFF"
8703 if test -n "$ROFF"; then
8704 echo "$ac_t""$ROFF" 1>&6
8706 echo "$ac_t""no" 1>&6
8711 *-univel-*) if test "$GCC" != yes ; then
8712 cat >> confdefs.h
<<\EOF
8713 #define HAVE_MEMSET 1
8719 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8720 #define RELIANTUNIX 1
8726 if test "$GCC" != yes ; then
8727 cat >> confdefs.h
<<\EOF
8728 #define HAVE_MEMSET 1
8735 echo "$ac_t""$BLDSHARED" 1>&6
8736 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8737 echo "configure:8738: checking linker flags for shared libraries" >&5
8738 echo "$ac_t""$LDSHFLAGS" 1>&6
8739 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8740 echo "configure:8741: checking compiler flags for position-independent code" >&5
8741 echo "$ac_t""$PICFLAGS" 1>&6
8743 #######################################################
8744 # test whether building a shared library actually works
8745 if test $BLDSHARED = true
; then
8746 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
8747 echo "configure:8748: checking whether building shared libraries actually works" >&5
8748 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8752 ac_cv_shlib_works
=no
8753 # try building a trivial shared library
8754 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
8755 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po
&&
8756 ac_cv_shlib_works
=yes
8757 rm -f shlib.so shlib.po
8761 echo "$ac_t""$ac_cv_shlib_works" 1>&6
8762 if test $ac_cv_shlib_works = no
; then
8768 # this updates our target list if we can build shared libs
8769 if test $BLDSHARED = true
; then
8770 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
8772 LIBSMBCLIENT_SHARED
=
8777 echo $ac_n "checking for long long""... $ac_c" 1>&6
8778 echo "configure:8779: checking for long long" >&5
8779 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8783 if test "$cross_compiling" = yes; then
8784 samba_cv_have_longlong
=cross
8786 cat > conftest.
$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8790 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8792 if { (eval echo configure
:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8794 samba_cv_have_longlong
=yes
8796 echo "configure: failed program was:" >&5
8797 cat conftest.
$ac_ext >&5
8799 samba_cv_have_longlong
=no
8806 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8807 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8808 cat >> confdefs.h
<<\EOF
8809 #define HAVE_LONGLONG 1
8815 # Check if the compiler supports the LL prefix on long long integers.
8818 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8819 echo "configure:8820: checking for LL suffix on long long integers" >&5
8820 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8824 cat > conftest.
$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8829 long long i = 0x8000000000LL
8832 if { (eval echo configure
:8833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8834 samba_cv_compiler_supports_ll
=yes
8836 echo "configure: failed program was:" >&5
8837 cat conftest.
$ac_ext >&5
8839 samba_cv_compiler_supports_ll
=no
8844 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8845 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8846 cat >> confdefs.h
<<\EOF
8847 #define COMPILER_SUPPORTS_LL 1
8853 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8854 echo "configure:8855: checking for 64 bit off_t" >&5
8855 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8859 if test "$cross_compiling" = yes; then
8860 samba_cv_SIZEOF_OFF_T
=cross
8862 cat > conftest.
$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8866 #include <sys/stat.h>
8867 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8869 if { (eval echo configure
:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8871 samba_cv_SIZEOF_OFF_T
=yes
8873 echo "configure: failed program was:" >&5
8874 cat conftest.
$ac_ext >&5
8876 samba_cv_SIZEOF_OFF_T
=no
8883 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8884 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8885 cat >> confdefs.h
<<\EOF
8886 #define SIZEOF_OFF_T 8
8891 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8892 echo "configure:8893: checking for off64_t" >&5
8893 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8897 if test "$cross_compiling" = yes; then
8898 samba_cv_HAVE_OFF64_T
=cross
8900 cat > conftest.
$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8904 #if defined(HAVE_UNISTD_H)
8908 #include <sys/stat.h>
8909 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8911 if { (eval echo configure
:8912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8913 samba_cv_HAVE_OFF64_T
=yes
8915 echo "configure: failed program was:" >&5
8916 cat conftest.
$ac_ext >&5
8918 samba_cv_HAVE_OFF64_T
=no
8925 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8926 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8927 cat >> confdefs.h
<<\EOF
8928 #define HAVE_OFF64_T 1
8933 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8934 echo "configure:8935: checking for 64 bit ino_t" >&5
8935 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8939 if test "$cross_compiling" = yes; then
8940 samba_cv_SIZEOF_INO_T
=cross
8942 cat > conftest.
$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8946 #include <sys/stat.h>
8947 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8949 if { (eval echo configure
:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8951 samba_cv_SIZEOF_INO_T
=yes
8953 echo "configure: failed program was:" >&5
8954 cat conftest.
$ac_ext >&5
8956 samba_cv_SIZEOF_INO_T
=no
8963 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8964 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8965 cat >> confdefs.h
<<\EOF
8966 #define SIZEOF_INO_T 8
8971 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8972 echo "configure:8973: checking for ino64_t" >&5
8973 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8977 if test "$cross_compiling" = yes; then
8978 samba_cv_HAVE_INO64_T
=cross
8980 cat > conftest.
$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8984 #if defined(HAVE_UNISTD_H)
8988 #include <sys/stat.h>
8989 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8991 if { (eval echo configure
:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8993 samba_cv_HAVE_INO64_T
=yes
8995 echo "configure: failed program was:" >&5
8996 cat conftest.
$ac_ext >&5
8998 samba_cv_HAVE_INO64_T
=no
9005 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9006 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9007 cat >> confdefs.h
<<\EOF
9008 #define HAVE_INO64_T 1
9013 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9014 echo "configure:9015: checking for dev64_t" >&5
9015 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9019 if test "$cross_compiling" = yes; then
9020 samba_cv_HAVE_DEV64_T
=cross
9022 cat > conftest.
$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9026 #if defined(HAVE_UNISTD_H)
9030 #include <sys/stat.h>
9031 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9033 if { (eval echo configure
:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9035 samba_cv_HAVE_DEV64_T
=yes
9037 echo "configure: failed program was:" >&5
9038 cat conftest.
$ac_ext >&5
9040 samba_cv_HAVE_DEV64_T
=no
9047 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9048 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9049 cat >> confdefs.h
<<\EOF
9050 #define HAVE_DEV64_T 1
9055 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9056 echo "configure:9057: checking for struct dirent64" >&5
9057 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9061 cat > conftest.
$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9065 #if defined(HAVE_UNISTD_H)
9068 #include <sys/types.h>
9074 if { (eval echo configure
:9075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9076 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9078 echo "configure: failed program was:" >&5
9079 cat conftest.
$ac_ext >&5
9081 samba_cv_HAVE_STRUCT_DIRENT64
=no
9086 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9087 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
9088 cat >> confdefs.h
<<\EOF
9089 #define HAVE_STRUCT_DIRENT64 1
9094 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9095 echo "configure:9096: checking for major macro" >&5
9096 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9100 if test "$cross_compiling" = yes; then
9101 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9103 cat > conftest.
$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9107 #if defined(HAVE_UNISTD_H)
9110 #include <sys/types.h>
9111 main() { dev_t dev; int i = major(dev); return 0; }
9113 if { (eval echo configure
:9114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9115 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9117 echo "configure: failed program was:" >&5
9118 cat conftest.
$ac_ext >&5
9120 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9127 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9128 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9129 cat >> confdefs.h
<<\EOF
9130 #define HAVE_DEVICE_MAJOR_FN 1
9135 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9136 echo "configure:9137: checking for minor macro" >&5
9137 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9141 if test "$cross_compiling" = yes; then
9142 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9144 cat > conftest.
$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9148 #if defined(HAVE_UNISTD_H)
9151 #include <sys/types.h>
9152 main() { dev_t dev; int i = minor(dev); return 0; }
9154 if { (eval echo configure
:9155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9156 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9158 echo "configure: failed program was:" >&5
9159 cat conftest.
$ac_ext >&5
9161 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9168 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9169 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9170 cat >> confdefs.h
<<\EOF
9171 #define HAVE_DEVICE_MINOR_FN 1
9176 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9177 echo "configure:9178: checking for unsigned char" >&5
9178 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9179 echo $ac_n "(cached) $ac_c" 1>&6
9182 if test "$cross_compiling" = yes; then
9183 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9185 cat > conftest.
$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9189 main() { char c; c=250; exit((c > 0)?0:1); }
9191 if { (eval echo configure
:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9193 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9195 echo "configure: failed program was:" >&5
9196 cat conftest.
$ac_ext >&5
9198 samba_cv_HAVE_UNSIGNED_CHAR
=no
9205 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9206 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9207 cat >> confdefs.h
<<\EOF
9208 #define HAVE_UNSIGNED_CHAR 1
9213 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9214 echo "configure:9215: checking for sin_len in sock" >&5
9215 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9219 cat > conftest.
$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9222 #include <sys/types.h>
9223 #include <sys/socket.h>
9224 #include <netinet/in.h>
9226 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9229 if { (eval echo configure
:9230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9231 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9233 echo "configure: failed program was:" >&5
9234 cat conftest.
$ac_ext >&5
9236 samba_cv_HAVE_SOCK_SIN_LEN
=no
9241 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9242 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9243 cat >> confdefs.h
<<\EOF
9244 #define HAVE_SOCK_SIN_LEN 1
9249 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9250 echo "configure:9251: checking whether seekdir returns void" >&5
9251 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9255 cat > conftest.
$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9258 #include <sys/types.h>
9260 void seekdir(DIR *d, long loc) { return; }
9265 if { (eval echo configure
:9266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9267 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9269 echo "configure: failed program was:" >&5
9270 cat conftest.
$ac_ext >&5
9272 samba_cv_SEEKDIR_RETURNS_VOID
=no
9277 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9278 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9279 cat >> confdefs.h
<<\EOF
9280 #define SEEKDIR_RETURNS_VOID 1
9285 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9286 echo "configure:9287: checking for __FILE__ macro" >&5
9287 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9288 echo $ac_n "(cached) $ac_c" 1>&6
9291 cat > conftest.
$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9296 printf("%s\n", __FILE__);
9299 if { (eval echo configure
:9300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9301 samba_cv_HAVE_FILE_MACRO
=yes
9303 echo "configure: failed program was:" >&5
9304 cat conftest.
$ac_ext >&5
9306 samba_cv_HAVE_FILE_MACRO
=no
9311 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9312 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9313 cat >> confdefs.h
<<\EOF
9314 #define HAVE_FILE_MACRO 1
9319 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9320 echo "configure:9321: checking for __FUNCTION__ macro" >&5
9321 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9325 cat > conftest.
$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9330 printf("%s\n", __FUNCTION__);
9333 if { (eval echo configure
:9334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9335 samba_cv_HAVE_FUNCTION_MACRO
=yes
9337 echo "configure: failed program was:" >&5
9338 cat conftest.
$ac_ext >&5
9340 samba_cv_HAVE_FUNCTION_MACRO
=no
9345 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9346 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9347 cat >> confdefs.h
<<\EOF
9348 #define HAVE_FUNCTION_MACRO 1
9353 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9354 echo "configure:9355: checking if gettimeofday takes tz argument" >&5
9355 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9359 if test "$cross_compiling" = yes; then
9360 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9362 cat > conftest.
$ac_ext <<EOF
9363 #line 9364 "configure"
9364 #include "confdefs.h"
9366 #include <sys/time.h>
9368 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9370 if { (eval echo configure
:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9372 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9374 echo "configure: failed program was:" >&5
9375 cat conftest.
$ac_ext >&5
9377 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9384 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9385 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9386 cat >> confdefs.h
<<\EOF
9387 #define HAVE_GETTIMEOFDAY_TZ 1
9392 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9393 echo "configure:9394: checking for C99 vsnprintf" >&5
9394 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9398 if test "$cross_compiling" = yes; then
9399 samba_cv_HAVE_C99_VSNPRINTF
=cross
9401 cat > conftest.
$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9405 #include <sys/types.h>
9407 void foo(const char *format, ...) {
9412 va_start(ap, format);
9413 len = vsnprintf(0, 0, format, ap);
9415 if (len != 5) exit(1);
9417 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9421 main() { foo("hello"); }
9424 if { (eval echo configure
:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9426 samba_cv_HAVE_C99_VSNPRINTF
=yes
9428 echo "configure: failed program was:" >&5
9429 cat conftest.
$ac_ext >&5
9431 samba_cv_HAVE_C99_VSNPRINTF
=no
9438 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9439 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9440 cat >> confdefs.h
<<\EOF
9441 #define HAVE_C99_VSNPRINTF 1
9446 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9447 echo "configure:9448: checking for broken readdir" >&5
9448 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
9452 if test "$cross_compiling" = yes; then
9453 samba_cv_HAVE_BROKEN_READDIR
=cross
9455 cat > conftest.
$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 #include <sys/types.h>
9460 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9461 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9462 di->d_name[0] == 0) exit(0); exit(1);}
9464 if { (eval echo configure
:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9466 samba_cv_HAVE_BROKEN_READDIR
=yes
9468 echo "configure: failed program was:" >&5
9469 cat conftest.
$ac_ext >&5
9471 samba_cv_HAVE_BROKEN_READDIR
=no
9478 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9479 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9480 cat >> confdefs.h
<<\EOF
9481 #define HAVE_BROKEN_READDIR 1
9486 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9487 echo "configure:9488: checking for utimbuf" >&5
9488 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9492 cat > conftest.
$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 #include <sys/types.h>
9498 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9501 if { (eval echo configure
:9502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9503 samba_cv_HAVE_UTIMBUF
=yes
9505 echo "configure: failed program was:" >&5
9506 cat conftest.
$ac_ext >&5
9508 samba_cv_HAVE_UTIMBUF
=no
9513 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9514 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9515 cat >> confdefs.h
<<\EOF
9516 #define HAVE_UTIMBUF 1
9522 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9525 echo "configure:9526: checking for $ac_func" >&5
9526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9529 cat > conftest.
$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 /* System header to define __stub macros and hopefully few prototypes,
9533 which can conflict with char $ac_func(); below. */
9535 /* Override any gcc2 internal prototype to avoid an error. */
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9542 /* The GNU C library defines this for functions which it implements
9543 to always fail with ENOSYS. Some functions are actually named
9544 something starting with __ and the normal name is an alias. */
9545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9553 if { (eval echo configure
:9554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9555 eval "ac_cv_func_$ac_func=yes"
9557 echo "configure: failed program was:" >&5
9558 cat conftest.
$ac_ext >&5
9560 eval "ac_cv_func_$ac_func=no"
9565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9567 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9568 cat >> confdefs.h
<<EOF
9569 #define $ac_tr_func 1
9573 echo "$ac_t""no" 1>&6
9578 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9579 echo "configure:9580: checking for ut_name in utmp" >&5
9580 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9584 cat > conftest.
$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 #include <sys/types.h>
9590 struct utmp ut; ut.ut_name[0] = 'a';
9593 if { (eval echo configure
:9594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9595 samba_cv_HAVE_UT_UT_NAME
=yes
9597 echo "configure: failed program was:" >&5
9598 cat conftest.
$ac_ext >&5
9600 samba_cv_HAVE_UT_UT_NAME
=no
9605 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9606 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9607 cat >> confdefs.h
<<\EOF
9608 #define HAVE_UT_UT_NAME 1
9613 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9614 echo "configure:9615: checking for ut_user in utmp" >&5
9615 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9619 cat > conftest.
$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9622 #include <sys/types.h>
9625 struct utmp ut; ut.ut_user[0] = 'a';
9628 if { (eval echo configure
:9629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9630 samba_cv_HAVE_UT_UT_USER
=yes
9632 echo "configure: failed program was:" >&5
9633 cat conftest.
$ac_ext >&5
9635 samba_cv_HAVE_UT_UT_USER
=no
9640 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9641 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9642 cat >> confdefs.h
<<\EOF
9643 #define HAVE_UT_UT_USER 1
9648 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9649 echo "configure:9650: checking for ut_id in utmp" >&5
9650 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9654 cat > conftest.
$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9657 #include <sys/types.h>
9660 struct utmp ut; ut.ut_id[0] = 'a';
9663 if { (eval echo configure
:9664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9665 samba_cv_HAVE_UT_UT_ID
=yes
9667 echo "configure: failed program was:" >&5
9668 cat conftest.
$ac_ext >&5
9670 samba_cv_HAVE_UT_UT_ID
=no
9675 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9676 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9677 cat >> confdefs.h
<<\EOF
9678 #define HAVE_UT_UT_ID 1
9683 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9684 echo "configure:9685: checking for ut_host in utmp" >&5
9685 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9689 cat > conftest.
$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 #include <sys/types.h>
9695 struct utmp ut; ut.ut_host[0] = 'a';
9698 if { (eval echo configure
:9699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9700 samba_cv_HAVE_UT_UT_HOST
=yes
9702 echo "configure: failed program was:" >&5
9703 cat conftest.
$ac_ext >&5
9705 samba_cv_HAVE_UT_UT_HOST
=no
9710 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9711 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9712 cat >> confdefs.h
<<\EOF
9713 #define HAVE_UT_UT_HOST 1
9718 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9719 echo "configure:9720: checking for ut_time in utmp" >&5
9720 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9721 echo $ac_n "(cached) $ac_c" 1>&6
9724 cat > conftest.
$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9730 struct utmp ut; time_t t; ut.ut_time = t;
9733 if { (eval echo configure
:9734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9735 samba_cv_HAVE_UT_UT_TIME
=yes
9737 echo "configure: failed program was:" >&5
9738 cat conftest.
$ac_ext >&5
9740 samba_cv_HAVE_UT_UT_TIME
=no
9745 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9746 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9747 cat >> confdefs.h
<<\EOF
9748 #define HAVE_UT_UT_TIME 1
9753 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9754 echo "configure:9755: checking for ut_tv in utmp" >&5
9755 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9759 cat > conftest.
$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9762 #include <sys/types.h>
9765 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9768 if { (eval echo configure
:9769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9770 samba_cv_HAVE_UT_UT_TV
=yes
9772 echo "configure: failed program was:" >&5
9773 cat conftest.
$ac_ext >&5
9775 samba_cv_HAVE_UT_UT_TV
=no
9780 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9781 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9782 cat >> confdefs.h
<<\EOF
9783 #define HAVE_UT_UT_TV 1
9788 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9789 echo "configure:9790: checking for ut_type in utmp" >&5
9790 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9794 cat > conftest.
$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <sys/types.h>
9800 struct utmp ut; ut.ut_type = 0;
9803 if { (eval echo configure
:9804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9805 samba_cv_HAVE_UT_UT_TYPE
=yes
9807 echo "configure: failed program was:" >&5
9808 cat conftest.
$ac_ext >&5
9810 samba_cv_HAVE_UT_UT_TYPE
=no
9815 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9816 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9817 cat >> confdefs.h
<<\EOF
9818 #define HAVE_UT_UT_TYPE 1
9823 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9824 echo "configure:9825: checking for ut_pid in utmp" >&5
9825 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9829 cat > conftest.
$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 #include <sys/types.h>
9835 struct utmp ut; ut.ut_pid = 0;
9838 if { (eval echo configure
:9839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9840 samba_cv_HAVE_UT_UT_PID
=yes
9842 echo "configure: failed program was:" >&5
9843 cat conftest.
$ac_ext >&5
9845 samba_cv_HAVE_UT_UT_PID
=no
9850 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9851 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9852 cat >> confdefs.h
<<\EOF
9853 #define HAVE_UT_UT_PID 1
9858 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9859 echo "configure:9860: checking for ut_exit in utmp" >&5
9860 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9864 cat > conftest.
$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 #include <sys/types.h>
9870 struct utmp ut; ut.ut_exit.e_exit = 0;
9873 if { (eval echo configure
:9874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9875 samba_cv_HAVE_UT_UT_EXIT
=yes
9877 echo "configure: failed program was:" >&5
9878 cat conftest.
$ac_ext >&5
9880 samba_cv_HAVE_UT_UT_EXIT
=no
9885 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9886 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9887 cat >> confdefs.h
<<\EOF
9888 #define HAVE_UT_UT_EXIT 1
9893 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9894 echo "configure:9895: checking for ut_addr in utmp" >&5
9895 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9899 cat > conftest.
$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 #include <sys/types.h>
9905 struct utmp ut; ut.ut_addr = 0;
9908 if { (eval echo configure
:9909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9910 samba_cv_HAVE_UT_UT_ADDR
=yes
9912 echo "configure: failed program was:" >&5
9913 cat conftest.
$ac_ext >&5
9915 samba_cv_HAVE_UT_UT_ADDR
=no
9920 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9921 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9922 cat >> confdefs.h
<<\EOF
9923 #define HAVE_UT_UT_ADDR 1
9928 if test x
$ac_cv_func_pututline = xyes
; then
9929 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9930 echo "configure:9931: checking whether pututline returns pointer" >&5
9931 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9935 cat > conftest.
$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 #include <sys/types.h>
9941 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9944 if { (eval echo configure
:9945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9946 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9948 echo "configure: failed program was:" >&5
9949 cat conftest.
$ac_ext >&5
9951 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9956 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9957 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9958 cat >> confdefs.h
<<\EOF
9959 #define PUTUTLINE_RETURNS_UTMP 1
9965 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9966 echo "configure:9967: checking for ut_syslen in utmpx" >&5
9967 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9971 cat > conftest.
$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 #include <sys/types.h>
9977 struct utmpx ux; ux.ut_syslen = 0;
9980 if { (eval echo configure
:9981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9982 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9984 echo "configure: failed program was:" >&5
9985 cat conftest.
$ac_ext >&5
9987 samba_cv_HAVE_UX_UT_SYSLEN
=no
9992 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9993 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9994 cat >> confdefs.h
<<\EOF
9995 #define HAVE_UX_UT_SYSLEN 1
10001 #################################################
10002 # check for libiconv support
10003 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10004 echo "configure:10005: checking whether to use libiconv" >&5
10005 # Check whether --with-libiconv or --without-libiconv was given.
10006 if test "${with_libiconv+set}" = set; then
10007 withval
="$with_libiconv"
10010 echo "$ac_t""no" 1>&6
10013 echo "$ac_t""yes" 1>&6
10014 CFLAGS
="$CFLAGS -I$withval/include"
10015 LDFLAGS
="$LDFLAGS -L$withval/lib"
10016 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10017 echo "configure:10018: checking for iconv_open in -liconv" >&5
10018 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10022 ac_save_LIBS
="$LIBS"
10023 LIBS
="-liconv $LIBS"
10024 cat > conftest.
$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10036 if { (eval echo configure
:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10038 eval "ac_cv_lib_$ac_lib_var=yes"
10040 echo "configure: failed program was:" >&5
10041 cat conftest.
$ac_ext >&5
10043 eval "ac_cv_lib_$ac_lib_var=no"
10046 LIBS
="$ac_save_LIBS"
10049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10051 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10052 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10053 cat >> confdefs.h
<<EOF
10054 #define $ac_tr_lib 1
10057 LIBS
="-liconv $LIBS"
10060 echo "$ac_t""no" 1>&6
10063 cat >> confdefs.h
<<EOF
10064 #define WITH_LIBICONV "${withval}"
10070 echo "$ac_t""no" 1>&6
10077 # check for iconv in libc
10078 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10079 echo "configure:10080: checking for working iconv" >&5
10080 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10084 if test "$cross_compiling" = yes; then
10085 samba_cv_HAVE_NATIVE_ICONV
=cross
10087 cat > conftest.
$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10093 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10094 if (cd == 0 || cd == (iconv_t)-1) return -1;
10099 if { (eval echo configure
:10100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10101 samba_cv_HAVE_NATIVE_ICONV
=yes
10103 echo "configure: failed program was:" >&5
10104 cat conftest.
$ac_ext >&5
10106 samba_cv_HAVE_NATIVE_ICONV
=no
10113 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10114 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
10115 cat >> confdefs.h
<<\EOF
10116 #define HAVE_NATIVE_ICONV 1
10122 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10123 echo "configure:10124: checking for Linux kernel oplocks" >&5
10124 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10128 if test "$cross_compiling" = yes; then
10129 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10131 cat > conftest.
$ac_ext <<EOF
10132 #line 10133 "configure"
10133 #include "confdefs.h"
10135 #include <sys/types.h>
10138 #define F_GETLEASE 1025
10141 int fd = open("/dev/null", O_RDONLY);
10142 return fcntl(fd, F_GETLEASE, 0) == -1;
10146 if { (eval echo configure
:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10148 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10150 echo "configure: failed program was:" >&5
10151 cat conftest.
$ac_ext >&5
10153 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10160 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10161 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10162 cat >> confdefs.h
<<\EOF
10163 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10168 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10169 echo "configure:10170: checking for kernel change notify support" >&5
10170 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
10174 if test "$cross_compiling" = yes; then
10175 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10177 cat > conftest.
$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10181 #include <sys/types.h>
10183 #include <signal.h>
10185 #define F_NOTIFY 1026
10188 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10192 if { (eval echo configure
:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10194 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10196 echo "configure: failed program was:" >&5
10197 cat conftest.
$ac_ext >&5
10199 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10206 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10207 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10208 cat >> confdefs.h
<<\EOF
10209 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10214 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10215 echo "configure:10216: checking for kernel share modes" >&5
10216 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10217 echo $ac_n "(cached) $ac_c" 1>&6
10220 if test "$cross_compiling" = yes; then
10221 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10223 cat > conftest.
$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10227 #include <sys/types.h>
10229 #include <signal.h>
10230 #include <sys/file.h>
10232 #define LOCK_MAND 32
10233 #define LOCK_READ 64
10236 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10240 if { (eval echo configure
:10241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10242 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10244 echo "configure: failed program was:" >&5
10245 cat conftest.
$ac_ext >&5
10247 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10254 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10255 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10256 cat >> confdefs.h
<<\EOF
10257 #define HAVE_KERNEL_SHARE_MODES 1
10265 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10266 echo "configure:10267: checking for IRIX kernel oplock type definitions" >&5
10267 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10268 echo $ac_n "(cached) $ac_c" 1>&6
10271 cat > conftest.
$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 #include <sys/types.h>
10277 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10280 if { (eval echo configure
:10281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10282 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10284 echo "configure: failed program was:" >&5
10285 cat conftest.
$ac_ext >&5
10287 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10292 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10293 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10294 cat >> confdefs.h
<<\EOF
10295 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10300 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10301 echo "configure:10302: checking for irix specific capabilities" >&5
10302 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10306 if test "$cross_compiling" = yes; then
10307 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10309 cat > conftest.
$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10312 #include <sys/types.h>
10313 #include <sys/capability.h>
10316 if ((cap = cap_get_proc()) == NULL)
10318 cap->cap_effective |= CAP_NETWORK_MGT;
10319 cap->cap_inheritable |= CAP_NETWORK_MGT;
10325 if { (eval echo configure
:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10327 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10329 echo "configure: failed program was:" >&5
10330 cat conftest.
$ac_ext >&5
10332 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10339 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10340 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10341 cat >> confdefs.h
<<\EOF
10342 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10348 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10349 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10352 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10353 echo "configure:10354: checking for int16 typedef included by rpc/rpc.h" >&5
10354 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10358 cat > conftest.
$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 #include <sys/types.h>
10362 #if defined(HAVE_RPC_RPC_H)
10363 #include <rpc/rpc.h>
10369 if { (eval echo configure
:10370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10371 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10373 echo "configure: failed program was:" >&5
10374 cat conftest.
$ac_ext >&5
10376 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10381 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10382 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10383 cat >> confdefs.h
<<\EOF
10384 #define HAVE_INT16_FROM_RPC_RPC_H 1
10389 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10390 echo "configure:10391: checking for uint16 typedef included by rpc/rpc.h" >&5
10391 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10392 echo $ac_n "(cached) $ac_c" 1>&6
10395 cat > conftest.
$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 #include <sys/types.h>
10399 #if defined(HAVE_RPC_RPC_H)
10400 #include <rpc/rpc.h>
10406 if { (eval echo configure
:10407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10408 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10410 echo "configure: failed program was:" >&5
10411 cat conftest.
$ac_ext >&5
10413 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10418 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10419 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10420 cat >> confdefs.h
<<\EOF
10421 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10426 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10427 echo "configure:10428: checking for int32 typedef included by rpc/rpc.h" >&5
10428 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10429 echo $ac_n "(cached) $ac_c" 1>&6
10432 cat > conftest.
$ac_ext <<EOF
10433 #line 10434 "configure"
10434 #include "confdefs.h"
10435 #include <sys/types.h>
10436 #if defined(HAVE_RPC_RPC_H)
10437 #include <rpc/rpc.h>
10443 if { (eval echo configure
:10444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10445 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10447 echo "configure: failed program was:" >&5
10448 cat conftest.
$ac_ext >&5
10450 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10455 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10456 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10457 cat >> confdefs.h
<<\EOF
10458 #define HAVE_INT32_FROM_RPC_RPC_H 1
10463 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10464 echo "configure:10465: checking for uint32 typedef included by rpc/rpc.h" >&5
10465 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10469 cat > conftest.
$ac_ext <<EOF
10470 #line 10471 "configure"
10471 #include "confdefs.h"
10472 #include <sys/types.h>
10473 #if defined(HAVE_RPC_RPC_H)
10474 #include <rpc/rpc.h>
10480 if { (eval echo configure
:10481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10482 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10484 echo "configure: failed program was:" >&5
10485 cat conftest.
$ac_ext >&5
10487 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10492 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10493 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10494 cat >> confdefs.h
<<\EOF
10495 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10501 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10502 echo "configure:10503: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10503 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10504 echo $ac_n "(cached) $ac_c" 1>&6
10507 cat > conftest.
$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10510 #include <sys/types.h>
10511 #ifdef HAVE_SYS_SECURITY_H
10512 #include <sys/security.h>
10514 #endif /* HAVE_SYS_SECURITY_H */
10515 #if defined(HAVE_RPC_RPC_H)
10516 #include <rpc/rpc.h>
10522 if { (eval echo configure
:10523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10524 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10526 echo "configure: failed program was:" >&5
10527 cat conftest.
$ac_ext >&5
10529 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10534 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10535 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10536 cat >> confdefs.h
<<\EOF
10537 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10542 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10543 echo "configure:10544: checking for test routines" >&5
10544 if test "$cross_compiling" = yes; then
10545 echo "configure: warning: cannot run when cross-compiling" 1>&2
10547 cat > conftest.
$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10550 #include "${srcdir-.}/tests/trivial.c"
10552 if { (eval echo configure
:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10554 echo "$ac_t""yes" 1>&6
10556 echo "configure: failed program was:" >&5
10557 cat conftest.
$ac_ext >&5
10559 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10565 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10566 echo "configure:10567: checking for ftruncate extend" >&5
10567 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10571 if test "$cross_compiling" = yes; then
10572 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10574 cat > conftest.
$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10577 #include "${srcdir-.}/tests/ftruncate.c"
10579 if { (eval echo configure
:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10581 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10583 echo "configure: failed program was:" >&5
10584 cat conftest.
$ac_ext >&5
10586 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10593 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10594 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10595 cat >> confdefs.h
<<\EOF
10596 #define HAVE_FTRUNCATE_EXTEND 1
10601 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10602 echo "configure:10603: checking for AF_LOCAL socket support" >&5
10603 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10607 if test "$cross_compiling" = yes; then
10608 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
10610 cat > conftest.
$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10613 #include "${srcdir-.}/tests/unixsock.c"
10615 if { (eval echo configure
:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10617 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
10619 echo "configure: failed program was:" >&5
10620 cat conftest.
$ac_ext >&5
10622 samba_cv_HAVE_WORKING_AF_LOCAL
=no
10629 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10630 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10632 cat >> confdefs.h
<<\EOF
10633 #define HAVE_WORKING_AF_LOCAL 1
10638 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10639 echo "configure:10640: checking for broken getgroups" >&5
10640 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10644 if test "$cross_compiling" = yes; then
10645 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10647 cat > conftest.
$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 #include "${srcdir-.}/tests/getgroups.c"
10652 if { (eval echo configure
:10653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10654 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10656 echo "configure: failed program was:" >&5
10657 cat conftest.
$ac_ext >&5
10659 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10666 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10667 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10668 cat >> confdefs.h
<<\EOF
10669 #define HAVE_BROKEN_GETGROUPS 1
10674 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10675 echo "configure:10676: checking whether getpass should be replaced" >&5
10676 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10680 SAVE_CPPFLAGS
="$CPPFLAGS"
10681 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10682 cat > conftest.
$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10686 #define REPLACE_GETPASS 1
10687 #define NO_CONFIG_H 1
10688 #define main dont_declare_main
10689 #include "${srcdir-.}/lib/getsmbpass.c"
10696 if { (eval echo configure
:10697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10698 samba_cv_REPLACE_GETPASS
=yes
10700 echo "configure: failed program was:" >&5
10701 cat conftest.
$ac_ext >&5
10703 samba_cv_REPLACE_GETPASS
=no
10706 CPPFLAGS
="$SAVE_CPPFLAGS"
10710 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10711 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10712 cat >> confdefs.h
<<\EOF
10713 #define REPLACE_GETPASS 1
10718 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10719 echo "configure:10720: checking for broken inet_ntoa" >&5
10720 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10724 if test "$cross_compiling" = yes; then
10725 samba_cv_REPLACE_INET_NTOA
=cross
10727 cat > conftest.
$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10732 #include <sys/types.h>
10733 #include <netinet/in.h>
10734 #ifdef HAVE_ARPA_INET_H
10735 #include <arpa/inet.h>
10737 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10738 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10739 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10742 if { (eval echo configure
:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10744 samba_cv_REPLACE_INET_NTOA
=yes
10746 echo "configure: failed program was:" >&5
10747 cat conftest.
$ac_ext >&5
10749 samba_cv_REPLACE_INET_NTOA
=no
10756 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10757 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10758 cat >> confdefs.h
<<\EOF
10759 #define REPLACE_INET_NTOA 1
10764 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10765 echo "configure:10766: checking for secure mkstemp" >&5
10766 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10770 if test "$cross_compiling" = yes; then
10771 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10773 cat > conftest.
$ac_ext <<EOF
10774 #line 10775 "configure"
10775 #include "confdefs.h"
10776 #include <stdlib.h>
10777 #include <sys/types.h>
10778 #include <sys/stat.h>
10779 #include <unistd.h>
10782 char tpl[20]="/tmp/test.XXXXXX";
10783 int fd = mkstemp(tpl);
10784 if (fd == -1) exit(1);
10786 if (fstat(fd, &st) != 0) exit(1);
10787 if ((st.st_mode & 0777) != 0600) exit(1);
10791 if { (eval echo configure
:10792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10793 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10795 echo "configure: failed program was:" >&5
10796 cat conftest.
$ac_ext >&5
10798 samba_cv_HAVE_SECURE_MKSTEMP
=no
10805 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10806 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10807 cat >> confdefs.h
<<\EOF
10808 #define HAVE_SECURE_MKSTEMP 1
10813 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10814 echo "configure:10815: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10815 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10819 if test "$cross_compiling" = yes; then
10820 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10822 cat > conftest.
$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10825 #include <unistd.h>
10826 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10828 if { (eval echo configure
:10829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10830 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10832 echo "configure: failed program was:" >&5
10833 cat conftest.
$ac_ext >&5
10835 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10842 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10843 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10844 cat >> confdefs.h
<<\EOF
10845 #define SYSCONF_SC_NGROUPS_MAX 1
10850 echo $ac_n "checking for root""... $ac_c" 1>&6
10851 echo "configure:10852: checking for root" >&5
10852 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10856 if test "$cross_compiling" = yes; then
10857 samba_cv_HAVE_ROOT
=cross
10859 cat > conftest.
$ac_ext <<EOF
10860 #line 10861 "configure"
10861 #include "confdefs.h"
10862 main() { exit(getuid() != 0); }
10864 if { (eval echo configure
:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10866 samba_cv_HAVE_ROOT
=yes
10868 echo "configure: failed program was:" >&5
10869 cat conftest.
$ac_ext >&5
10871 samba_cv_HAVE_ROOT
=no
10878 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10879 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10880 cat >> confdefs.h
<<\EOF
10881 #define HAVE_ROOT 1
10885 echo "configure: warning: running as non-root will disable some tests" 1>&2
10889 # look for a method of finding the list of network interfaces
10891 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10892 echo "configure:10893: checking for iface AIX" >&5
10893 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10894 echo $ac_n "(cached) $ac_c" 1>&6
10897 if test "$cross_compiling" = yes; then
10898 samba_cv_HAVE_IFACE_AIX
=cross
10900 cat > conftest.
$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10904 #define HAVE_IFACE_AIX 1
10905 #define AUTOCONF_TEST 1
10906 #include "confdefs.h"
10907 #include "${srcdir-.}/lib/interfaces.c"
10909 if { (eval echo configure
:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10911 samba_cv_HAVE_IFACE_AIX
=yes
10913 echo "configure: failed program was:" >&5
10914 cat conftest.
$ac_ext >&5
10916 samba_cv_HAVE_IFACE_AIX
=no
10923 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10924 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10925 iface
=yes;cat >> confdefs.h
<<\EOF
10926 #define HAVE_IFACE_AIX 1
10931 if test $iface = no
; then
10932 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10933 echo "configure:10934: checking for iface ifconf" >&5
10934 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10938 if test "$cross_compiling" = yes; then
10939 samba_cv_HAVE_IFACE_IFCONF
=cross
10941 cat > conftest.
$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10945 #define HAVE_IFACE_IFCONF 1
10946 #define AUTOCONF_TEST 1
10947 #include "confdefs.h"
10948 #include "${srcdir-.}/lib/interfaces.c"
10950 if { (eval echo configure
:10951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10952 samba_cv_HAVE_IFACE_IFCONF
=yes
10954 echo "configure: failed program was:" >&5
10955 cat conftest.
$ac_ext >&5
10957 samba_cv_HAVE_IFACE_IFCONF
=no
10964 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10965 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10966 iface
=yes;cat >> confdefs.h
<<\EOF
10967 #define HAVE_IFACE_IFCONF 1
10973 if test $iface = no
; then
10974 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10975 echo "configure:10976: checking for iface ifreq" >&5
10976 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10980 if test "$cross_compiling" = yes; then
10981 samba_cv_HAVE_IFACE_IFREQ
=cross
10983 cat > conftest.
$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10987 #define HAVE_IFACE_IFREQ 1
10988 #define AUTOCONF_TEST 1
10989 #include "confdefs.h"
10990 #include "${srcdir-.}/lib/interfaces.c"
10992 if { (eval echo configure
:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10994 samba_cv_HAVE_IFACE_IFREQ
=yes
10996 echo "configure: failed program was:" >&5
10997 cat conftest.
$ac_ext >&5
10999 samba_cv_HAVE_IFACE_IFREQ
=no
11006 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11007 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11008 iface
=yes;cat >> confdefs.h
<<\EOF
11009 #define HAVE_IFACE_IFREQ 1
11016 ################################################
11017 # look for a method of setting the effective uid
11019 if test $seteuid = no
; then
11020 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11021 echo "configure:11022: checking for setresuid" >&5
11022 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11023 echo $ac_n "(cached) $ac_c" 1>&6
11026 if test "$cross_compiling" = yes; then
11027 samba_cv_USE_SETRESUID
=cross
11029 cat > conftest.
$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11033 #define AUTOCONF_TEST 1
11034 #define USE_SETRESUID 1
11035 #include "confdefs.h"
11036 #include "${srcdir-.}/lib/util_sec.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_USE_SETRESUID
=yes
11042 echo "configure: failed program was:" >&5
11043 cat conftest.
$ac_ext >&5
11045 samba_cv_USE_SETRESUID
=no
11052 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11053 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11054 seteuid
=yes;cat >> confdefs.h
<<\EOF
11055 #define USE_SETRESUID 1
11062 if test $seteuid = no
; then
11063 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11064 echo "configure:11065: checking for setreuid" >&5
11065 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11069 if test "$cross_compiling" = yes; then
11070 samba_cv_USE_SETREUID
=cross
11072 cat > conftest.
$ac_ext <<EOF
11073 #line 11074 "configure"
11074 #include "confdefs.h"
11076 #define AUTOCONF_TEST 1
11077 #define USE_SETREUID 1
11078 #include "confdefs.h"
11079 #include "${srcdir-.}/lib/util_sec.c"
11081 if { (eval echo configure
:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11083 samba_cv_USE_SETREUID
=yes
11085 echo "configure: failed program was:" >&5
11086 cat conftest.
$ac_ext >&5
11088 samba_cv_USE_SETREUID
=no
11095 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11096 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11097 seteuid
=yes;cat >> confdefs.h
<<\EOF
11098 #define USE_SETREUID 1
11104 if test $seteuid = no
; then
11105 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11106 echo "configure:11107: checking for seteuid" >&5
11107 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11108 echo $ac_n "(cached) $ac_c" 1>&6
11111 if test "$cross_compiling" = yes; then
11112 samba_cv_USE_SETEUID
=cross
11114 cat > conftest.
$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11118 #define AUTOCONF_TEST 1
11119 #define USE_SETEUID 1
11120 #include "confdefs.h"
11121 #include "${srcdir-.}/lib/util_sec.c"
11123 if { (eval echo configure
:11124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11125 samba_cv_USE_SETEUID
=yes
11127 echo "configure: failed program was:" >&5
11128 cat conftest.
$ac_ext >&5
11130 samba_cv_USE_SETEUID
=no
11137 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11138 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11139 seteuid
=yes;cat >> confdefs.h
<<\EOF
11140 #define USE_SETEUID 1
11146 if test $seteuid = no
; then
11147 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11148 echo "configure:11149: checking for setuidx" >&5
11149 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11153 if test "$cross_compiling" = yes; then
11154 samba_cv_USE_SETUIDX
=cross
11156 cat > conftest.
$ac_ext <<EOF
11157 #line 11158 "configure"
11158 #include "confdefs.h"
11160 #define AUTOCONF_TEST 1
11161 #define USE_SETUIDX 1
11162 #include "confdefs.h"
11163 #include "${srcdir-.}/lib/util_sec.c"
11165 if { (eval echo configure
:11166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11167 samba_cv_USE_SETUIDX
=yes
11169 echo "configure: failed program was:" >&5
11170 cat conftest.
$ac_ext >&5
11172 samba_cv_USE_SETUIDX
=no
11179 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11180 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11181 seteuid
=yes;cat >> confdefs.h
<<\EOF
11182 #define USE_SETUIDX 1
11189 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11190 echo "configure:11191: checking for working mmap" >&5
11191 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11192 echo $ac_n "(cached) $ac_c" 1>&6
11195 if test "$cross_compiling" = yes; then
11196 samba_cv_HAVE_MMAP
=cross
11198 cat > conftest.
$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 #include "${srcdir-.}/tests/shared_mmap.c"
11203 if { (eval echo configure
:11204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11205 samba_cv_HAVE_MMAP
=yes
11207 echo "configure: failed program was:" >&5
11208 cat conftest.
$ac_ext >&5
11210 samba_cv_HAVE_MMAP
=no
11217 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11218 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11219 cat >> confdefs.h
<<\EOF
11220 #define HAVE_MMAP 1
11225 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11226 echo "configure:11227: checking for ftruncate needs root" >&5
11227 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11231 if test "$cross_compiling" = yes; then
11232 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11234 cat > conftest.
$ac_ext <<EOF
11235 #line 11236 "configure"
11236 #include "confdefs.h"
11237 #include "${srcdir-.}/tests/ftruncroot.c"
11239 if { (eval echo configure
:11240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11241 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11243 echo "configure: failed program was:" >&5
11244 cat conftest.
$ac_ext >&5
11246 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11253 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11254 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11255 cat >> confdefs.h
<<\EOF
11256 #define FTRUNCATE_NEEDS_ROOT 1
11261 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11262 echo "configure:11263: checking for fcntl locking" >&5
11263 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11267 if test "$cross_compiling" = yes; then
11268 samba_cv_HAVE_FCNTL_LOCK
=cross
11270 cat > conftest.
$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11273 #include "${srcdir-.}/tests/fcntl_lock.c"
11275 if { (eval echo configure
:11276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11277 samba_cv_HAVE_FCNTL_LOCK
=yes
11279 echo "configure: failed program was:" >&5
11280 cat conftest.
$ac_ext >&5
11282 samba_cv_HAVE_FCNTL_LOCK
=no
11289 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11290 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11291 cat >> confdefs.h
<<\EOF
11292 #define HAVE_FCNTL_LOCK 1
11297 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11298 echo "configure:11299: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11299 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11300 echo $ac_n "(cached) $ac_c" 1>&6
11303 if test "$cross_compiling" = yes; then
11304 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11306 cat > conftest.
$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 #include "${srcdir-.}/tests/fcntl_lock64.c"
11311 if { (eval echo configure
:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11313 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11315 echo "configure: failed program was:" >&5
11316 cat conftest.
$ac_ext >&5
11318 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11325 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11326 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11327 cat >> confdefs.h
<<\EOF
11328 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11335 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11336 echo "configure:11337: checking for 64 bit fcntl locking" >&5
11337 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11338 echo $ac_n "(cached) $ac_c" 1>&6
11341 if test "$cross_compiling" = yes; then
11342 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11344 cat > conftest.
$ac_ext <<EOF
11345 #line 11346 "configure"
11346 #include "confdefs.h"
11348 #if defined(HAVE_UNISTD_H)
11349 #include <unistd.h>
11352 #include <stdlib.h>
11354 #ifdef HAVE_FCNTL_H
11358 #ifdef HAVE_SYS_FCNTL_H
11359 #include <sys/fcntl.h>
11361 main() { struct flock64 fl64;
11362 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11369 if { (eval echo configure
:11370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11371 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11373 echo "configure: failed program was:" >&5
11374 cat conftest.
$ac_ext >&5
11376 samba_cv_HAVE_STRUCT_FLOCK64
=no
11383 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11385 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11386 cat >> confdefs.h
<<\EOF
11387 #define HAVE_STRUCT_FLOCK64 1
11393 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11394 echo "configure:11395: checking for st_blocks in struct stat" >&5
11395 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11399 cat > conftest.
$ac_ext <<EOF
11400 #line 11401 "configure"
11401 #include "confdefs.h"
11402 #include <sys/types.h>
11403 #include <sys/stat.h>
11404 #include <unistd.h>
11406 struct stat st; st.st_blocks = 0;
11409 if { (eval echo configure
:11410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11411 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11413 echo "configure: failed program was:" >&5
11414 cat conftest.
$ac_ext >&5
11416 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11421 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11422 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11423 cat >> confdefs.h
<<\EOF
11424 #define HAVE_STAT_ST_BLOCKS 1
11431 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11432 echo "configure:11433: checking for broken RedHat 7.2 system header files" >&5
11433 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11434 echo $ac_n "(cached) $ac_c" 1>&6
11437 cat > conftest.
$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11441 #ifdef HAVE_SYS_VFS_H
11442 #include <sys/vfs.h>
11444 #ifdef HAVE_SYS_CAPABILITY_H
11445 #include <sys/capability.h>
11452 if { (eval echo configure
:11453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11454 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11456 echo "configure: failed program was:" >&5
11457 cat conftest.
$ac_ext >&5
11459 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11464 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11465 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11466 cat >> confdefs.h
<<\EOF
11467 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11474 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11475 echo "configure:11476: checking for broken nisplus include files" >&5
11476 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11477 echo $ac_n "(cached) $ac_c" 1>&6
11480 cat > conftest.
$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <sys/acl.h>
11484 #if defined(HAVE_RPCSVC_NIS_H)
11485 #include <rpcsvc/nis.h>
11491 if { (eval echo configure
:11492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11493 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11495 echo "configure: failed program was:" >&5
11496 cat conftest.
$ac_ext >&5
11498 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11503 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11504 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11505 cat >> confdefs.h
<<\EOF
11506 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11512 #################################################
11513 # check for smbwrapper support
11514 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11515 echo "configure:11516: checking whether to use smbwrapper" >&5
11516 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11517 if test "${with_smbwrapper+set}" = set; then
11518 withval
="$with_smbwrapper"
11521 echo "$ac_t""yes" 1>&6
11522 cat >> confdefs.h
<<\EOF
11523 #define WITH_SMBWRAPPER 1
11526 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11528 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11531 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11534 # Conditions under which smbwrapper should not be built.
11536 if test x
$PICFLAG = x
; then
11537 echo No support
for PIC code
- disabling smbwrapper and smbsh
11540 elif test x
$ac_cv_func_syscall = xno
; then
11541 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11547 echo "$ac_t""no" 1>&6
11551 echo "$ac_t""no" 1>&6
11556 #################################################
11557 # check for AFS clear-text auth support
11558 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11559 echo "configure:11560: checking whether to use AFS clear-text auth" >&5
11560 # Check whether --with-afs or --without-afs was given.
11561 if test "${with_afs+set}" = set; then
11562 withval
="$with_afs"
11565 echo "$ac_t""yes" 1>&6
11566 cat >> confdefs.h
<<\EOF
11572 echo "$ac_t""no" 1>&6
11576 echo "$ac_t""no" 1>&6
11582 #################################################
11583 # check for the DFS clear-text auth system
11584 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11585 echo "configure:11586: checking whether to use DFS clear-text auth" >&5
11586 # Check whether --with-dfs or --without-dfs was given.
11587 if test "${with_dfs+set}" = set; then
11588 withval
="$with_dfs"
11591 echo "$ac_t""yes" 1>&6
11592 cat >> confdefs.h
<<\EOF
11598 echo "$ac_t""no" 1>&6
11602 echo "$ac_t""no" 1>&6
11608 #################################################
11609 # see if this box has the RedHat location for kerberos
11610 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11611 echo "configure:11612: checking for /usr/kerberos" >&5
11612 if test -d /usr
/kerberos
; then
11613 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
11614 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
11615 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
11616 echo "$ac_t""yes" 1>&6
11618 echo "$ac_t""no" 1>&6
11621 #################################################
11622 # check for location of Kerberos 5 install
11623 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11624 echo "configure:11625: checking for kerberos 5 install path" >&5
11625 # Check whether --with-krb5 or --without-krb5 was given.
11626 if test "${with_krb5+set}" = set; then
11627 withval
="$with_krb5"
11630 echo "$ac_t""no" 1>&6
11633 echo "$ac_t""yes" 1>&6
11634 LIBS
="$LIBS -lkrb5"
11635 CFLAGS
="$CFLAGS -I$withval/include"
11636 CPPFLAGS
="$CPPFLAGS -I$withval/include"
11637 LDFLAGS
="$LDFLAGS -L$withval/lib"
11641 echo "$ac_t""no" 1>&6
11646 # now check for krb5.h. Some systems have the libraries without the headers!
11647 # note that this check is done here to allow for different kerberos
11649 for ac_hdr
in krb5.h
11651 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11653 echo "configure:11654: checking for $ac_hdr" >&5
11654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11655 echo $ac_n "(cached) $ac_c" 1>&6
11657 cat > conftest.
$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11662 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11663 { (eval echo configure
:11664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11664 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11665 if test -z "$ac_err"; then
11667 eval "ac_cv_header_$ac_safe=yes"
11670 echo "configure: failed program was:" >&5
11671 cat conftest.
$ac_ext >&5
11673 eval "ac_cv_header_$ac_safe=no"
11677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11678 echo "$ac_t""yes" 1>&6
11679 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11680 cat >> confdefs.h
<<EOF
11681 #define $ac_tr_hdr 1
11685 echo "$ac_t""no" 1>&6
11690 # now check for gssapi headers. This is also done here to allow for
11691 # different kerberos include paths
11692 for ac_hdr
in gssapi
/gssapi_generic.h gssapi
/gssapi.h
11694 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11696 echo "configure:11697: checking for $ac_hdr" >&5
11697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11698 echo $ac_n "(cached) $ac_c" 1>&6
11700 cat > conftest.
$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11705 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11706 { (eval echo configure
:11707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11707 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11708 if test -z "$ac_err"; then
11710 eval "ac_cv_header_$ac_safe=yes"
11713 echo "configure: failed program was:" >&5
11714 cat conftest.
$ac_ext >&5
11716 eval "ac_cv_header_$ac_safe=no"
11720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11721 echo "$ac_t""yes" 1>&6
11722 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11723 cat >> confdefs.h
<<EOF
11724 #define $ac_tr_hdr 1
11728 echo "$ac_t""no" 1>&6
11733 ##################################################################
11734 # we might need the k5crypto and com_err libraries on some systems
11735 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11736 echo "configure:11737: checking for _et_list in -lcom_err" >&5
11737 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11739 echo $ac_n "(cached) $ac_c" 1>&6
11741 ac_save_LIBS
="$LIBS"
11742 LIBS
="-lcom_err $LIBS"
11743 cat > conftest.
$ac_ext <<EOF
11744 #line 11745 "configure"
11745 #include "confdefs.h"
11746 /* Override any gcc2 internal prototype to avoid an error. */
11747 /* We use char because int might match the return type of a gcc2
11748 builtin and then its argument prototype would still apply. */
11755 if { (eval echo configure
:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11757 eval "ac_cv_lib_$ac_lib_var=yes"
11759 echo "configure: failed program was:" >&5
11760 cat conftest.
$ac_ext >&5
11762 eval "ac_cv_lib_$ac_lib_var=no"
11765 LIBS
="$ac_save_LIBS"
11768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11769 echo "$ac_t""yes" 1>&6
11770 LIBS
="$LIBS -lcom_err"
11772 echo "$ac_t""no" 1>&6
11775 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11776 echo "configure:11777: checking for krb5_encrypt_data in -lk5crypto" >&5
11777 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11781 ac_save_LIBS
="$LIBS"
11782 LIBS
="-lk5crypto $LIBS"
11783 cat > conftest.
$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11786 /* Override any gcc2 internal prototype to avoid an error. */
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11789 char krb5_encrypt_data();
11792 krb5_encrypt_data()
11795 if { (eval echo configure
:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11797 eval "ac_cv_lib_$ac_lib_var=yes"
11799 echo "configure: failed program was:" >&5
11800 cat conftest.
$ac_ext >&5
11802 eval "ac_cv_lib_$ac_lib_var=no"
11805 LIBS
="$ac_save_LIBS"
11808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11809 echo "$ac_t""yes" 1>&6
11810 LIBS
="$LIBS -lk5crypto"
11812 echo "$ac_t""no" 1>&6
11815 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11816 echo "configure:11817: checking for gss_display_status in -lgssapi_krb5" >&5
11817 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11819 echo $ac_n "(cached) $ac_c" 1>&6
11821 ac_save_LIBS
="$LIBS"
11822 LIBS
="-lgssapi_krb5 $LIBS"
11823 cat > conftest.
$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11826 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829 char gss_display_status();
11832 gss_display_status()
11835 if { (eval echo configure
:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11837 eval "ac_cv_lib_$ac_lib_var=yes"
11839 echo "configure: failed program was:" >&5
11840 cat conftest.
$ac_ext >&5
11842 eval "ac_cv_lib_$ac_lib_var=no"
11845 LIBS
="$ac_save_LIBS"
11848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11849 echo "$ac_t""yes" 1>&6
11850 LIBS
="$LIBS -lgssapi_krb5"
11852 echo "$ac_t""no" 1>&6
11857 ########################################################
11858 # now see if we can find the krb5 libs in standard paths
11859 # or as specified above
11860 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11861 echo "configure:11862: checking for krb5_mk_req_extended in -lkrb5" >&5
11862 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
11866 ac_save_LIBS
="$LIBS"
11867 LIBS
="-lkrb5 $LIBS"
11868 cat > conftest.
$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11871 /* Override any gcc2 internal prototype to avoid an error. */
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874 char krb5_mk_req_extended();
11877 krb5_mk_req_extended()
11880 if { (eval echo configure
:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11882 eval "ac_cv_lib_$ac_lib_var=yes"
11884 echo "configure: failed program was:" >&5
11885 cat conftest.
$ac_ext >&5
11887 eval "ac_cv_lib_$ac_lib_var=no"
11890 LIBS
="$ac_save_LIBS"
11893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11894 echo "$ac_t""yes" 1>&6
11895 LIBS
="$LIBS -lkrb5";
11896 cat >> confdefs.h
<<\EOF
11897 #define HAVE_KRB5 1
11901 echo "$ac_t""no" 1>&6
11905 ########################################################
11906 # now see if we can find the gssapi libs in standard paths
11907 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11908 echo "configure:11909: checking for gss_display_status in -lgssapi_krb5" >&5
11909 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11911 echo $ac_n "(cached) $ac_c" 1>&6
11913 ac_save_LIBS
="$LIBS"
11914 LIBS
="-lgssapi_krb5 $LIBS"
11915 cat > conftest.
$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 /* Override any gcc2 internal prototype to avoid an error. */
11919 /* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11921 char gss_display_status();
11924 gss_display_status()
11927 if { (eval echo configure
:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11929 eval "ac_cv_lib_$ac_lib_var=yes"
11931 echo "configure: failed program was:" >&5
11932 cat conftest.
$ac_ext >&5
11934 eval "ac_cv_lib_$ac_lib_var=no"
11937 LIBS
="$ac_save_LIBS"
11940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11941 echo "$ac_t""yes" 1>&6
11942 cat >> confdefs.h
<<\EOF
11943 #define HAVE_GSSAPI 1
11947 echo "$ac_t""no" 1>&6
11952 ##################################################################
11953 # we might need the lber lib on some systems. To avoid link errors
11954 # this test must be before the libldap test
11955 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11956 echo "configure:11957: checking for ber_scanf in -llber" >&5
11957 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11959 echo $ac_n "(cached) $ac_c" 1>&6
11961 ac_save_LIBS
="$LIBS"
11962 LIBS
="-llber $LIBS"
11963 cat > conftest.
$ac_ext <<EOF
11964 #line 11965 "configure"
11965 #include "confdefs.h"
11966 /* Override any gcc2 internal prototype to avoid an error. */
11967 /* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11975 if { (eval echo configure
:11976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11977 eval "ac_cv_lib_$ac_lib_var=yes"
11979 echo "configure: failed program was:" >&5
11980 cat conftest.
$ac_ext >&5
11982 eval "ac_cv_lib_$ac_lib_var=no"
11985 LIBS
="$ac_save_LIBS"
11988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11989 echo "$ac_t""yes" 1>&6
11990 LIBS
="$LIBS -llber"
11992 echo "$ac_t""no" 1>&6
11996 ########################################################
11997 # now see if we can find the ldap libs in standard paths
11998 if test x
$have_ldap != xyes
; then
11999 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12000 echo "configure:12001: checking for ldap_domain2hostlist in -lldap" >&5
12001 ac_lib_var
=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12003 echo $ac_n "(cached) $ac_c" 1>&6
12005 ac_save_LIBS
="$LIBS"
12006 LIBS
="-lldap $LIBS"
12007 cat > conftest.
$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12010 /* Override any gcc2 internal prototype to avoid an error. */
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12013 char ldap_domain2hostlist();
12016 ldap_domain2hostlist()
12019 if { (eval echo configure
:12020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12021 eval "ac_cv_lib_$ac_lib_var=yes"
12023 echo "configure: failed program was:" >&5
12024 cat conftest.
$ac_ext >&5
12026 eval "ac_cv_lib_$ac_lib_var=no"
12029 LIBS
="$ac_save_LIBS"
12032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12033 echo "$ac_t""yes" 1>&6
12034 LIBS
="$LIBS -lldap";
12035 cat >> confdefs.h
<<\EOF
12036 #define HAVE_LDAP 1
12040 echo "$ac_t""no" 1>&6
12045 #################################################
12046 # check for automount support
12047 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12048 echo "configure:12049: checking whether to use AUTOMOUNT" >&5
12049 # Check whether --with-automount or --without-automount was given.
12050 if test "${with_automount+set}" = set; then
12051 withval
="$with_automount"
12054 echo "$ac_t""yes" 1>&6
12055 cat >> confdefs.h
<<\EOF
12056 #define WITH_AUTOMOUNT 1
12061 echo "$ac_t""no" 1>&6
12065 echo "$ac_t""no" 1>&6
12070 #################################################
12071 # check for smbmount support
12072 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12073 echo "configure:12074: checking whether to use SMBMOUNT" >&5
12074 # Check whether --with-smbmount or --without-smbmount was given.
12075 if test "${with_smbmount+set}" = set; then
12076 withval
="$with_smbmount"
12081 echo "$ac_t""yes" 1>&6
12082 cat >> confdefs.h
<<\EOF
12083 #define WITH_SMBMOUNT 1
12086 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
12089 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12094 echo "$ac_t""no" 1>&6
12099 echo "$ac_t""no" 1>&6
12106 #################################################
12107 # check for a PAM clear-text auth, accounts, password and session support
12108 with_pam_for_crypt
=no
12109 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12110 echo "configure:12111: checking whether to use PAM" >&5
12111 # Check whether --with-pam or --without-pam was given.
12112 if test "${with_pam+set}" = set; then
12113 withval
="$with_pam"
12116 echo "$ac_t""yes" 1>&6
12117 cat >> confdefs.h
<<\EOF
12122 with_pam_for_crypt
=yes
12125 echo "$ac_t""no" 1>&6
12129 echo "$ac_t""no" 1>&6
12134 # we can't build a pam module if we don't have pam.
12135 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12136 echo "configure:12137: checking for pam_get_data in -lpam" >&5
12137 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12141 ac_save_LIBS
="$LIBS"
12143 cat > conftest.
$ac_ext <<EOF
12144 #line 12145 "configure"
12145 #include "confdefs.h"
12146 /* Override any gcc2 internal prototype to avoid an error. */
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149 char pam_get_data();
12155 if { (eval echo configure
:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12157 eval "ac_cv_lib_$ac_lib_var=yes"
12159 echo "configure: failed program was:" >&5
12160 cat conftest.
$ac_ext >&5
12162 eval "ac_cv_lib_$ac_lib_var=no"
12165 LIBS
="$ac_save_LIBS"
12168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12169 echo "$ac_t""yes" 1>&6
12170 cat >> confdefs.h
<<\EOF
12171 #define HAVE_LIBPAM 1
12175 echo "$ac_t""no" 1>&6
12179 #################################################
12180 # check for pam_smbpass support
12181 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12182 echo "configure:12183: checking whether to use pam_smbpass" >&5
12183 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12184 if test "${with_pam_smbpass+set}" = set; then
12185 withval
="$with_pam_smbpass"
12188 echo "$ac_t""yes" 1>&6
12190 # Conditions under which pam_smbpass should not be built.
12192 if test x
$PICFLAG = x
; then
12193 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12195 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
12196 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12199 PAM_MOD
="bin/pam_smbpass.so"
12203 echo "$ac_t""no" 1>&6
12207 echo "$ac_t""no" 1>&6
12213 ###############################################
12214 # test for where we get crypt() from, but only
12216 if test $with_pam_for_crypt = no
; then
12217 for ac_func
in crypt
12219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12220 echo "configure:12221: checking for $ac_func" >&5
12221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12222 echo $ac_n "(cached) $ac_c" 1>&6
12224 cat > conftest.
$ac_ext <<EOF
12225 #line 12226 "configure"
12226 #include "confdefs.h"
12227 /* System header to define __stub macros and hopefully few prototypes,
12228 which can conflict with char $ac_func(); below. */
12229 #include <assert.h>
12230 /* Override any gcc2 internal prototype to avoid an error. */
12231 /* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12237 /* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
12240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12248 if { (eval echo configure
:12249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12250 eval "ac_cv_func_$ac_func=yes"
12252 echo "configure: failed program was:" >&5
12253 cat conftest.
$ac_ext >&5
12255 eval "ac_cv_func_$ac_func=no"
12260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12261 echo "$ac_t""yes" 1>&6
12262 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12263 cat >> confdefs.h
<<EOF
12264 #define $ac_tr_func 1
12268 echo "$ac_t""no" 1>&6
12272 if test x
"$ac_cv_func_crypt" = x
"no"; then
12273 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12274 echo "configure:12275: checking for crypt in -lcrypt" >&5
12275 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12277 echo $ac_n "(cached) $ac_c" 1>&6
12279 ac_save_LIBS
="$LIBS"
12280 LIBS
="-lcrypt $LIBS"
12281 cat > conftest.
$ac_ext <<EOF
12282 #line 12283 "configure"
12283 #include "confdefs.h"
12284 /* Override any gcc2 internal prototype to avoid an error. */
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12293 if { (eval echo configure
:12294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12295 eval "ac_cv_lib_$ac_lib_var=yes"
12297 echo "configure: failed program was:" >&5
12298 cat conftest.
$ac_ext >&5
12300 eval "ac_cv_lib_$ac_lib_var=no"
12303 LIBS
="$ac_save_LIBS"
12306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12307 echo "$ac_t""yes" 1>&6
12308 LIBS
="$LIBS -lcrypt";
12309 cat >> confdefs.h
<<\EOF
12310 #define HAVE_CRYPT 1
12314 echo "$ac_t""no" 1>&6
12321 ## moved after the check for -lcrypt in order to
12322 ## ensure that the necessary libraries are included
12323 ## check checking for truncated salt. Wrapped by the
12324 ## $with_pam_for_crypt variable as above --jerry
12326 if test $with_pam_for_crypt = no
; then
12327 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12328 echo "configure:12329: checking for a crypt that needs truncated salt" >&5
12329 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12330 echo $ac_n "(cached) $ac_c" 1>&6
12333 if test "$cross_compiling" = yes; then
12334 samba_cv_HAVE_TRUNCATED_SALT
=cross
12336 cat > conftest.
$ac_ext <<EOF
12337 #line 12338 "configure"
12338 #include "confdefs.h"
12339 #include "${srcdir-.}/tests/crypttest.c"
12341 if { (eval echo configure
:12342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12343 samba_cv_HAVE_TRUNCATED_SALT
=no
12345 echo "configure: failed program was:" >&5
12346 cat conftest.
$ac_ext >&5
12348 samba_cv_HAVE_TRUNCATED_SALT
=yes
12355 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12356 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12357 cat >> confdefs.h
<<\EOF
12358 #define HAVE_TRUNCATED_SALT 1
12366 ########################################################################################
12368 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12370 ########################################################################################
12372 #################################################
12373 # check for a TDB password database
12374 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12375 echo "configure:12376: checking whether to use TDB SAM database" >&5
12376 # Check whether --with-tdbsam or --without-tdbsam was given.
12377 if test "${with_tdbsam+set}" = set; then
12378 withval
="$with_tdbsam"
12381 echo "$ac_t""yes" 1>&6
12382 cat >> confdefs.h
<<\EOF
12383 #define WITH_TDB_SAM 1
12388 echo "$ac_t""no" 1>&6
12392 echo "$ac_t""no" 1>&6
12397 #################################################
12398 # check for a LDAP password database
12399 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12400 echo "configure:12401: checking whether to use LDAP SAM database" >&5
12401 # Check whether --with-ldapsam or --without-ldapsam was given.
12402 if test "${with_ldapsam+set}" = set; then
12403 withval
="$with_ldapsam"
12406 echo "$ac_t""yes" 1>&6
12407 cat >> confdefs.h
<<\EOF
12408 #define WITH_LDAP_SAM 1
12411 LIBS
="-lldap -llber $LIBS"
12414 echo "$ac_t""no" 1>&6
12418 echo "$ac_t""no" 1>&6
12423 #################################################
12424 # check for a NISPLUS password database
12425 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12426 echo "configure:12427: checking whether to use NISPLUS SAM database" >&5
12427 # Check whether --with-nisplussam or --without-nisplussam was given.
12428 if test "${with_nisplussam+set}" = set; then
12429 withval
="$with_nisplussam"
12432 echo "$ac_t""yes" 1>&6
12433 cat >> confdefs.h
<<\EOF
12434 #define WITH_NISPLUS_SAM 1
12439 echo "$ac_t""no" 1>&6
12443 echo "$ac_t""no" 1>&6
12448 ########################################################################################
12450 ## END OF TESTS FOR SAM BACKENDS.
12452 ########################################################################################
12454 #################################################
12455 # check for a NISPLUS_HOME support
12456 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12457 echo "configure:12458: checking whether to use NISPLUS_HOME" >&5
12458 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12459 if test "${with_nisplus_home+set}" = set; then
12460 withval
="$with_nisplus_home"
12463 echo "$ac_t""yes" 1>&6
12464 cat >> confdefs.h
<<\EOF
12465 #define WITH_NISPLUS_HOME 1
12470 echo "$ac_t""no" 1>&6
12474 echo "$ac_t""no" 1>&6
12479 #################################################
12480 # check for the secure socket layer
12481 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12482 echo "configure:12483: checking whether to use SSL" >&5
12483 # Check whether --with-ssl or --without-ssl was given.
12484 if test "${with_ssl+set}" = set; then
12485 withval
="$with_ssl"
12488 echo "$ac_t""yes" 1>&6
12489 cat >> confdefs.h
<<\EOF
12493 withval
="/usr/local/ssl" # default
12495 if test "${with_sslinc+set}" = set; then
12497 withval
="$with_sslinc"
12500 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12501 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12504 CFLAGS
="-I${withval} $CFLAGS"
12510 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12514 if test "${with_ssllib+set}" = set; then
12516 withval
="$with_ssllib"
12519 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12520 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12523 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12529 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12533 LIBS
="-lssl -lcrypto $LIBS"
12535 # if test ! -d ${withval}; then
12536 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12540 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12544 echo "$ac_t""no" 1>&6
12548 echo "$ac_t""no" 1>&6
12553 #################################################
12554 # check for syslog logging
12555 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12556 echo "configure:12557: checking whether to use syslog logging" >&5
12557 # Check whether --with-syslog or --without-syslog was given.
12558 if test "${with_syslog+set}" = set; then
12559 withval
="$with_syslog"
12562 echo "$ac_t""yes" 1>&6
12563 cat >> confdefs.h
<<\EOF
12564 #define WITH_SYSLOG 1
12569 echo "$ac_t""no" 1>&6
12573 echo "$ac_t""no" 1>&6
12578 #################################################
12579 # check for a shared memory profiling support
12580 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12581 echo "configure:12582: checking whether to use profiling" >&5
12582 # Check whether --with-profiling-data or --without-profiling-data was given.
12583 if test "${with_profiling_data+set}" = set; then
12584 withval
="$with_profiling_data"
12587 echo "$ac_t""yes" 1>&6
12588 cat >> confdefs.h
<<\EOF
12589 #define WITH_PROFILE 1
12594 echo "$ac_t""no" 1>&6
12598 echo "$ac_t""no" 1>&6
12604 #################################################
12605 # check for experimental disk-quotas support
12606 QUOTAOBJS
=smbd
/noquotas.o
12608 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12609 echo "configure:12610: checking whether to support disk-quotas" >&5
12610 # Check whether --with-quotas or --without-quotas was given.
12611 if test "${with_quotas+set}" = set; then
12612 withval
="$with_quotas"
12615 echo "$ac_t""yes" 1>&6
12618 # Check for kernel 2.4.x quota braindamage...
12619 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12620 echo "configure:12621: checking for linux 2.4.x quota braindamage.." >&5
12621 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12622 echo $ac_n "(cached) $ac_c" 1>&6
12625 cat > conftest.
$ac_ext <<EOF
12626 #line 12627 "configure"
12627 #include "confdefs.h"
12629 #include <sys/types.h>
12630 #include <asm/types.h>
12631 #include <linux/quota.h>
12632 #include <mntent.h>
12633 #include <linux/unistd.h>
12635 struct mem_dqblk D;
12638 if { (eval echo configure
:12639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12640 samba_cv_linux_2_4_quota_braindamage
=yes
12642 echo "configure: failed program was:" >&5
12643 cat conftest.
$ac_ext >&5
12645 samba_cv_linux_2_4_quota_braindamage
=no
12650 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12651 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
12652 cat >> confdefs.h
<<\EOF
12653 #define LINUX_QUOTAS_2 1
12657 cat >> confdefs.h
<<\EOF
12658 #define LINUX_QUOTAS_1 1
12666 QUOTAOBJS
=smbd
/quotas.o
12667 cat >> confdefs.h
<<\EOF
12668 #define WITH_QUOTAS 1
12673 echo "$ac_t""no" 1>&6
12677 echo "$ac_t""no" 1>&6
12683 #################################################
12684 # check for experimental utmp accounting
12686 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12687 echo "configure:12688: checking whether to support utmp accounting" >&5
12688 # Check whether --with-utmp or --without-utmp was given.
12689 if test "${with_utmp+set}" = set; then
12690 withval
="$with_utmp"
12693 echo "$ac_t""yes" 1>&6
12694 cat >> confdefs.h
<<\EOF
12695 #define WITH_UTMP 1
12700 echo "$ac_t""no" 1>&6
12704 echo "$ac_t""no" 1>&6
12709 #################################################
12710 # set private directory location
12711 # Check whether --with-privatedir or --without-privatedir was given.
12712 if test "${with_privatedir+set}" = set; then
12713 withval
="$with_privatedir"
12717 # Just in case anybody calls it without argument
12719 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12720 privatedir
='${prefix}/private'
12723 privatedir
="$withval"
12728 privatedir
='${prefix}/private'
12734 #################################################
12735 # set lock directory location
12736 # Check whether --with-lockdir or --without-lockdir was given.
12737 if test "${with_lockdir+set}" = set; then
12738 withval
="$with_lockdir"
12742 # Just in case anybody calls it without argument
12744 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12745 lockdir
='$(VARDIR)/locks'
12753 lockdir
='$(VARDIR)/locks'
12759 #################################################
12760 # set SWAT directory location
12761 # Check whether --with-swatdir or --without-swatdir was given.
12762 if test "${with_swatdir+set}" = set; then
12763 withval
="$with_swatdir"
12767 # Just in case anybody does it
12769 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12770 swatdir
='${prefix}/swat'
12778 swatdir
='${prefix}/swat'
12784 #################################################
12785 # choose native language(s) of man pages
12786 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12787 echo "configure:12788: checking chosen man pages' language(s)" >&5
12788 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12789 if test "${with_manpages_langs+set}" = set; then
12790 withval
="$with_manpages_langs"
12793 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12797 manlangs
="$withval"
12801 echo "$ac_t""$manlangs" 1>&6
12802 manlangs
=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12806 echo "$ac_t""$manlangs" 1>&6
12812 #################################################
12813 # these tests are taken from the GNU fileutils package
12814 echo "checking how to get filesystem space usage" 1>&6
12815 echo "configure:12816: checking how to get filesystem space usage" >&5
12818 # Test for statvfs64.
12819 if test $space = no
; then
12821 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12822 echo "configure:12823: checking statvfs64 function (SVR4)" >&5
12823 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12824 echo $ac_n "(cached) $ac_c" 1>&6
12826 if test "$cross_compiling" = yes; then
12827 fu_cv_sys_stat_statvfs64
=cross
12829 cat > conftest.
$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12833 #if defined(HAVE_UNISTD_H)
12834 #include <unistd.h>
12836 #include <sys/types.h>
12837 #include <sys/statvfs.h>
12840 struct statvfs64 fsd;
12841 exit (statvfs64 (".", &fsd));
12844 if { (eval echo configure
:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12846 fu_cv_sys_stat_statvfs64
=yes
12848 echo "configure: failed program was:" >&5
12849 cat conftest.
$ac_ext >&5
12851 fu_cv_sys_stat_statvfs64
=no
12858 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12859 if test $fu_cv_sys_stat_statvfs64 = yes; then
12861 cat >> confdefs.h
<<\EOF
12862 #define STAT_STATVFS64 1
12868 # Perform only the link test since it seems there are no variants of the
12869 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12870 # because that got a false positive on SCO OSR5. Adding the declaration
12871 # of a `struct statvfs' causes this test to fail (as it should) on such
12872 # systems. That system is reported to work fine with STAT_STATFS4 which
12873 # is what it gets when this test fails.
12874 if test $space = no
; then
12876 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12877 echo "configure:12878: checking statvfs function (SVR4)" >&5
12878 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12881 cat > conftest.
$ac_ext <<EOF
12882 #line 12883 "configure"
12883 #include "confdefs.h"
12884 #include <sys/types.h>
12885 #include <sys/statvfs.h>
12887 struct statvfs fsd; statvfs (0, &fsd);
12890 if { (eval echo configure
:12891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12892 fu_cv_sys_stat_statvfs
=yes
12894 echo "configure: failed program was:" >&5
12895 cat conftest.
$ac_ext >&5
12897 fu_cv_sys_stat_statvfs
=no
12902 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12903 if test $fu_cv_sys_stat_statvfs = yes; then
12905 cat >> confdefs.h
<<\EOF
12906 #define STAT_STATVFS 1
12912 if test $space = no
; then
12913 # DEC Alpha running OSF/1
12914 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12915 echo "configure:12916: checking for 3-argument statfs function (DEC OSF/1)" >&5
12916 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
12919 if test "$cross_compiling" = yes; then
12920 fu_cv_sys_stat_statfs3_osf1
=no
12922 cat > conftest.
$ac_ext <<EOF
12923 #line 12924 "configure"
12924 #include "confdefs.h"
12926 #include <sys/param.h>
12927 #include <sys/types.h>
12928 #include <sys/mount.h>
12933 exit (statfs (".", &fsd, sizeof (struct statfs)));
12936 if { (eval echo configure
:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12938 fu_cv_sys_stat_statfs3_osf1
=yes
12940 echo "configure: failed program was:" >&5
12941 cat conftest.
$ac_ext >&5
12943 fu_cv_sys_stat_statfs3_osf1
=no
12950 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12951 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12953 cat >> confdefs.h
<<\EOF
12954 #define STAT_STATFS3_OSF1 1
12960 if test $space = no
; then
12962 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12963 echo "configure:12964: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12964 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12965 echo $ac_n "(cached) $ac_c" 1>&6
12967 if test "$cross_compiling" = yes; then
12968 fu_cv_sys_stat_statfs2_bsize
=no
12970 cat > conftest.
$ac_ext <<EOF
12971 #line 12972 "configure"
12972 #include "confdefs.h"
12974 #ifdef HAVE_SYS_PARAM_H
12975 #include <sys/param.h>
12977 #ifdef HAVE_SYS_MOUNT_H
12978 #include <sys/mount.h>
12980 #ifdef HAVE_SYS_VFS_H
12981 #include <sys/vfs.h>
12987 exit (statfs (".", &fsd));
12990 if { (eval echo configure
:12991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12992 fu_cv_sys_stat_statfs2_bsize
=yes
12994 echo "configure: failed program was:" >&5
12995 cat conftest.
$ac_ext >&5
12997 fu_cv_sys_stat_statfs2_bsize
=no
13004 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13005 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13007 cat >> confdefs.h
<<\EOF
13008 #define STAT_STATFS2_BSIZE 1
13014 if test $space = no
; then
13016 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13017 echo "configure:13018: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13018 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13019 echo $ac_n "(cached) $ac_c" 1>&6
13021 if test "$cross_compiling" = yes; then
13022 fu_cv_sys_stat_statfs4
=no
13024 cat > conftest.
$ac_ext <<EOF
13025 #line 13026 "configure"
13026 #include "confdefs.h"
13027 #include <sys/types.h>
13028 #include <sys/statfs.h>
13032 exit (statfs (".", &fsd, sizeof fsd, 0));
13035 if { (eval echo configure
:13036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13037 fu_cv_sys_stat_statfs4
=yes
13039 echo "configure: failed program was:" >&5
13040 cat conftest.
$ac_ext >&5
13042 fu_cv_sys_stat_statfs4
=no
13049 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13050 if test $fu_cv_sys_stat_statfs4 = yes; then
13052 cat >> confdefs.h
<<\EOF
13053 #define STAT_STATFS4 1
13059 if test $space = no
; then
13060 # 4.4BSD and NetBSD
13061 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13062 echo "configure:13063: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13063 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13064 echo $ac_n "(cached) $ac_c" 1>&6
13066 if test "$cross_compiling" = yes; then
13067 fu_cv_sys_stat_statfs2_fsize
=no
13069 cat > conftest.
$ac_ext <<EOF
13070 #line 13071 "configure"
13071 #include "confdefs.h"
13072 #include <sys/types.h>
13073 #ifdef HAVE_SYS_PARAM_H
13074 #include <sys/param.h>
13076 #ifdef HAVE_SYS_MOUNT_H
13077 #include <sys/mount.h>
13083 exit (statfs (".", &fsd));
13086 if { (eval echo configure
:13087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13088 fu_cv_sys_stat_statfs2_fsize
=yes
13090 echo "configure: failed program was:" >&5
13091 cat conftest.
$ac_ext >&5
13093 fu_cv_sys_stat_statfs2_fsize
=no
13100 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13101 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13103 cat >> confdefs.h
<<\EOF
13104 #define STAT_STATFS2_FSIZE 1
13110 if test $space = no
; then
13112 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13113 echo "configure:13114: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13114 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13117 if test "$cross_compiling" = yes; then
13118 fu_cv_sys_stat_fs_data
=no
13120 cat > conftest.
$ac_ext <<EOF
13121 #line 13122 "configure"
13122 #include "confdefs.h"
13123 #include <sys/types.h>
13124 #ifdef HAVE_SYS_PARAM_H
13125 #include <sys/param.h>
13127 #ifdef HAVE_SYS_MOUNT_H
13128 #include <sys/mount.h>
13130 #ifdef HAVE_SYS_FS_TYPES_H
13131 #include <sys/fs_types.h>
13135 struct fs_data fsd;
13136 /* Ultrix's statfs returns 1 for success,
13137 0 for not mounted, -1 for failure. */
13138 exit (statfs (".", &fsd) != 1);
13141 if { (eval echo configure
:13142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13143 fu_cv_sys_stat_fs_data
=yes
13145 echo "configure: failed program was:" >&5
13146 cat conftest.
$ac_ext >&5
13148 fu_cv_sys_stat_fs_data
=no
13155 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13156 if test $fu_cv_sys_stat_fs_data = yes; then
13158 cat >> confdefs.h
<<\EOF
13159 #define STAT_STATFS2_FS_DATA 1
13166 # As a gating factor for large file support, in order to
13167 # use <4GB files we must have the following minimal support
13169 # long long, and a 64 bit off_t or off64_t.
13170 # If we don't have all of these then disable large
13173 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13174 echo "configure:13175: checking if large file support can be enabled" >&5
13175 cat > conftest.
$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13179 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13180 #include <sys/types.h>
13189 if { (eval echo configure
:13190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13191 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13193 echo "configure: failed program was:" >&5
13194 cat conftest.
$ac_ext >&5
13196 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13199 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13200 cat >> confdefs.h
<<\EOF
13201 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13205 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13207 # Check whether --with-spinlocks or --without-spinlocks was given.
13208 if test "${with_spinlocks+set}" = set; then
13209 withval
="$with_spinlocks"
13213 if test "x$with_spinlocks" = "xyes"; then
13214 cat >> confdefs.h
<<\EOF
13215 #define USE_SPINLOCKS 1
13219 case "$host_cpu" in
13221 cat >> confdefs.h
<<\EOF
13222 #define SPARC_SPINLOCKS 1
13227 i386|i486|i586|i686
)
13228 cat >> confdefs.h
<<\EOF
13229 #define INTEL_SPINLOCKS 1
13235 cat >> confdefs.h
<<\EOF
13236 #define MIPS_SPINLOCKS 1
13242 cat >> confdefs.h
<<\EOF
13243 #define POWERPC_SPINLOCKS 1
13250 #################################################
13251 # check for ACL support
13253 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13254 echo "configure:13255: checking whether to support ACLs" >&5
13255 # Check whether --with-acl-support or --without-acl-support was given.
13256 if test "${with_acl_support+set}" = set; then
13257 withval
="$with_acl_support"
13263 echo "$ac_t""Using UnixWare ACLs" 1>&6
13264 cat >> confdefs.h
<<\EOF
13265 #define HAVE_UNIXWARE_ACLS 1
13270 echo "$ac_t""Using solaris ACLs" 1>&6
13271 cat >> confdefs.h
<<\EOF
13272 #define HAVE_SOLARIS_ACLS 1
13277 echo "$ac_t""Using HPUX ACLs" 1>&6
13278 cat >> confdefs.h
<<\EOF
13279 #define HAVE_HPUX_ACLS 1
13284 echo "$ac_t""Using IRIX ACLs" 1>&6
13285 cat >> confdefs.h
<<\EOF
13286 #define HAVE_IRIX_ACLS 1
13291 echo "$ac_t""Using AIX ACLs" 1>&6
13292 cat >> confdefs.h
<<\EOF
13293 #define HAVE_AIX_ACLS 1
13298 echo "$ac_t""Using Tru64 ACLs" 1>&6
13299 cat >> confdefs.h
<<\EOF
13300 #define HAVE_TRU64_ACLS 1
13303 LIBS
="$LIBS -lpacl"
13306 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13307 echo "configure:13308: checking for acl_get_file in -lacl" >&5
13308 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13310 echo $ac_n "(cached) $ac_c" 1>&6
13312 ac_save_LIBS
="$LIBS"
13314 cat > conftest.
$ac_ext <<EOF
13315 #line 13316 "configure"
13316 #include "confdefs.h"
13317 /* Override any gcc2 internal prototype to avoid an error. */
13318 /* We use char because int might match the return type of a gcc2
13319 builtin and then its argument prototype would still apply. */
13320 char acl_get_file();
13326 if { (eval echo configure
:13327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13328 eval "ac_cv_lib_$ac_lib_var=yes"
13330 echo "configure: failed program was:" >&5
13331 cat conftest.
$ac_ext >&5
13333 eval "ac_cv_lib_$ac_lib_var=no"
13336 LIBS
="$ac_save_LIBS"
13339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13340 echo "$ac_t""yes" 1>&6
13341 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13342 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13343 cat >> confdefs.h
<<EOF
13344 #define $ac_tr_lib 1
13350 echo "$ac_t""no" 1>&6
13353 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13354 echo "configure:13355: checking for ACL support" >&5
13355 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13359 cat > conftest.
$ac_ext <<EOF
13360 #line 13361 "configure"
13361 #include "confdefs.h"
13362 #include <sys/types.h>
13363 #include <sys/acl.h>
13365 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13368 if { (eval echo configure
:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13370 samba_cv_HAVE_POSIX_ACLS
=yes
13372 echo "configure: failed program was:" >&5
13373 cat conftest.
$ac_ext >&5
13375 samba_cv_HAVE_POSIX_ACLS
=no
13380 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13381 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13382 echo "$ac_t""Using posix ACLs" 1>&6
13383 cat >> confdefs.h
<<\EOF
13384 #define HAVE_POSIX_ACLS 1
13387 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13388 echo "configure:13389: checking for acl_get_perm_np" >&5
13389 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13390 echo $ac_n "(cached) $ac_c" 1>&6
13393 cat > conftest.
$ac_ext <<EOF
13394 #line 13395 "configure"
13395 #include "confdefs.h"
13396 #include <sys/types.h>
13397 #include <sys/acl.h>
13399 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13402 if { (eval echo configure
:13403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13404 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13406 echo "configure: failed program was:" >&5
13407 cat conftest.
$ac_ext >&5
13409 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13414 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13415 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13416 cat >> confdefs.h
<<\EOF
13417 #define HAVE_ACL_GET_PERM_NP 1
13426 echo "$ac_t""no" 1>&6
13427 cat >> confdefs.h
<<\EOF
13428 #define HAVE_NO_ACLS 1
13434 cat >> confdefs.h
<<\EOF
13435 #define HAVE_NO_ACLS 1
13438 echo "$ac_t""no" 1>&6
13443 #################################################
13444 # Check whether winbind is supported on this platform. If so we need to
13445 # build and install client programs (WINBIND_TARGETS), sbin programs
13446 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13448 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13449 echo "configure:13450: checking whether to build winbind" >&5
13451 # Initially, the value of $host_os decides whether winbind is supported
13454 *linux
*|
*solaris
*|
*irix
*)
13459 winbind_no_reason
=", unsupported on $host_os"
13463 # Check the setting of --with-winbindd
13465 # Check whether --with-winbind or --without-winbind was given.
13466 if test "${with_winbind+set}" = set; then
13467 withval
="$with_winbind"
13481 # We need unix domain sockets for winbind
13483 if test x
"$HAVE_WINBIND" = x
"yes"; then
13484 if test x
"$samba_cv_unixsocket" = x
"no"; then
13485 winbind_no_reason
=", no unix domain socket support on $host_os"
13490 # Display test results
13493 WINBIND_STARGETS
=""
13494 WINBIND_LTARGETS
=""
13495 WINBIND_PAM_PROGS
=""
13497 if test x
"$HAVE_WINBIND" = x
"yes"; then
13498 echo "$ac_t""yes" 1>&6
13500 WINBIND_TARGETS
="bin/wbinfo"
13501 WINBIND_STARGETS
="bin/winbindd"
13502 if test x
"$BLDSHARED" = x
"true"; then
13503 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13504 if test x
"$with_pam" = x
"yes"; then
13505 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13509 echo "$ac_t""no$winbind_no_reason" 1>&6
13512 # Substitution time!
13519 #################################################
13520 # Check to see if we should use the included popt
13522 # Check whether --with-included-popt or --without-included-popt was given.
13523 if test "${with_included_popt+set}" = set; then
13524 withval
="$with_included_popt"
13536 if test x
"$INCLUDED_POPT" != x
"yes"; then
13537 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13538 echo "configure:13539: checking for poptGetContext in -lpopt" >&5
13539 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13541 echo $ac_n "(cached) $ac_c" 1>&6
13543 ac_save_LIBS
="$LIBS"
13544 LIBS
="-lpopt $LIBS"
13545 cat > conftest.
$ac_ext <<EOF
13546 #line 13547 "configure"
13547 #include "confdefs.h"
13548 /* Override any gcc2 internal prototype to avoid an error. */
13549 /* We use char because int might match the return type of a gcc2
13550 builtin and then its argument prototype would still apply. */
13551 char poptGetContext();
13557 if { (eval echo configure
:13558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13559 eval "ac_cv_lib_$ac_lib_var=yes"
13561 echo "configure: failed program was:" >&5
13562 cat conftest.
$ac_ext >&5
13564 eval "ac_cv_lib_$ac_lib_var=no"
13567 LIBS
="$ac_save_LIBS"
13570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13571 echo "$ac_t""yes" 1>&6
13574 echo "$ac_t""no" 1>&6
13580 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13581 echo "configure:13582: checking whether to use included popt" >&5
13582 if test x
"$INCLUDED_POPT" = x
"yes"; then
13583 echo "$ac_t""$srcdir/popt" 1>&6
13584 BUILD_POPT
='$(POPT_OBJS)'
13585 FLAGS1
="-I$srcdir/popt"
13587 echo "$ac_t""no" 1>&6
13588 LIBS
="$LIBS -lpopt"
13593 #################################################
13594 # final configure stuff
13596 echo "checking configure summary"
13597 if test "$cross_compiling" = yes; then
13600 cat > conftest.
$ac_ext <<EOF
13601 #line 13602 "configure"
13602 #include "confdefs.h"
13603 #include "${srcdir-.}/tests/summary.c"
13605 if { (eval echo configure
:13606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13607 echo "configure OK";
13609 echo "configure: failed program was:" >&5
13610 cat conftest.
$ac_ext >&5
13612 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13622 cat > confcache
<<\EOF
13623 # This file is a shell script that caches the results of configure
13624 # tests run on this system so they can be shared between configure
13625 # scripts and configure runs. It is not useful on other systems.
13626 # If it contains results you don't want to keep, you may remove or edit it.
13628 # By default, configure uses ./config.cache as the cache file,
13629 # creating it if it does not exist already. You can give configure
13630 # the --cache-file=FILE option to use a different cache file; that is
13631 # what configure does when it calls configure scripts in
13632 # subdirectories, so they share the cache.
13633 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13634 # config.status only pays attention to the cache file if you give it the
13635 # --recheck option to rerun configure.
13638 # The following way of writing the cache mishandles newlines in values,
13639 # but we know of no workaround that is simple, portable, and efficient.
13640 # So, don't put newlines in cache variables' values.
13641 # Ultrix sh set writes to stderr and can't be redirected directly,
13642 # and sets the high bit in the cache file unless we assign to the vars.
13644 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13646 # `set' does not quote correctly, so add quotes (double-quote substitution
13647 # turns \\\\ into \\, and sed turns \\ into \).
13649 -e "s/'/'\\\\''/g" \
13650 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13653 # `set' quotes correctly as required by POSIX, so do not add quotes.
13654 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13657 if cmp -s $cache_file confcache
; then
13660 if test -w $cache_file; then
13661 echo "updating cache $cache_file"
13662 cat confcache
> $cache_file
13664 echo "not updating unwritable cache $cache_file"
13669 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13671 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13672 # Let make expand exec_prefix.
13673 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13675 # Any assignment to VPATH causes Sun make to only execute
13676 # the first set of double-colon rules, so remove it if not needed.
13677 # If there is a colon in the path, we need to keep it.
13678 if test "x$srcdir" = x.
; then
13679 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13682 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13684 DEFS
=-DHAVE_CONFIG_H
13686 # Without the "./", some shells look in PATH for config.status.
13687 : ${CONFIG_STATUS=./config.status}
13689 echo creating
$CONFIG_STATUS
13690 rm -f $CONFIG_STATUS
13691 cat > $CONFIG_STATUS <<EOF
13693 # Generated automatically by configure.
13694 # Run this file to recreate the current configuration.
13695 # This directory was configured as follows,
13696 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13698 # $0 $ac_configure_args
13700 # Compiler output produced by configure, useful for debugging
13701 # configure, is in ./config.log if it exists.
13703 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13706 case "\$ac_option" in
13707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13708 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13709 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13710 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13711 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13713 -help | --help | --hel | --he | --h)
13714 echo "\$ac_cs_usage"; exit 0 ;;
13715 *) echo "\$ac_cs_usage"; exit 1 ;;
13719 ac_given_srcdir=$srcdir
13720 ac_given_INSTALL="$INSTALL"
13722 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13724 cat >> $CONFIG_STATUS <<EOF
13726 # Protect against being on the right side of a sed subst in config.status.
13727 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13728 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13732 s%@CFLAGS@%$CFLAGS%g
13733 s%@CPPFLAGS@%$CPPFLAGS%g
13734 s%@CXXFLAGS@%$CXXFLAGS%g
13735 s%@FFLAGS@%$FFLAGS%g
13737 s%@LDFLAGS@%$LDFLAGS%g
13739 s%@exec_prefix@%$exec_prefix%g
13740 s%@prefix@%$prefix%g
13741 s%@program_transform_name@%$program_transform_name%g
13742 s%@bindir@%$bindir%g
13743 s%@sbindir@%$sbindir%g
13744 s%@libexecdir@%$libexecdir%g
13745 s%@datadir@%$datadir%g
13746 s%@sysconfdir@%$sysconfdir%g
13747 s%@sharedstatedir@%$sharedstatedir%g
13748 s%@localstatedir@%$localstatedir%g
13749 s%@libdir@%$libdir%g
13750 s%@includedir@%$includedir%g
13751 s%@oldincludedir@%$oldincludedir%g
13752 s%@infodir@%$infodir%g
13753 s%@mandir@%$mandir%g
13754 s%@RUNPROG@%$RUNPROG%g
13755 s%@MPROGS@%$MPROGS%g
13756 s%@LDSHFLAGS@%$LDSHFLAGS%g
13758 s%@HOST_OS@%$HOST_OS%g
13759 s%@PAM_MOD@%$PAM_MOD%g
13761 s%@WRAP32@%$WRAP32%g
13762 s%@PICFLAG@%$PICFLAG%g
13763 s%@PICSUFFIX@%$PICSUFFIX%g
13764 s%@POBAD_CC@%$POBAD_CC%g
13765 s%@SHLIBEXT@%$SHLIBEXT%g
13766 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13768 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13769 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13770 s%@INSTALL_DATA@%$INSTALL_DATA%g
13772 s%@BROKEN_CC@%$BROKEN_CC%g
13774 s%@host_alias@%$host_alias%g
13775 s%@host_cpu@%$host_cpu%g
13776 s%@host_vendor@%$host_vendor%g
13777 s%@host_os@%$host_os%g
13778 s%@target@%$target%g
13779 s%@target_alias@%$target_alias%g
13780 s%@target_cpu@%$target_cpu%g
13781 s%@target_vendor@%$target_vendor%g
13782 s%@target_os@%$target_os%g
13784 s%@build_alias@%$build_alias%g
13785 s%@build_cpu@%$build_cpu%g
13786 s%@build_vendor@%$build_vendor%g
13787 s%@build_os@%$build_os%g
13789 s%@LIBOBJS@%$LIBOBJS%g
13790 s%@TERMLIBS@%$TERMLIBS%g
13791 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13793 s%@QUOTAOBJS@%$QUOTAOBJS%g
13794 s%@privatedir@%$privatedir%g
13795 s%@lockdir@%$lockdir%g
13796 s%@swatdir@%$swatdir%g
13797 s%@manlangs@%$manlangs%g
13798 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13799 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13800 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13801 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13802 s%@BUILD_POPT@%$BUILD_POPT%g
13803 s%@FLAGS1@%$FLAGS1%g
13804 s%@builddir@%$builddir%g
13809 cat >> $CONFIG_STATUS <<\EOF
13811 # Split the substitutions into bite-sized pieces for seds with
13812 # small command number limits, like on Digital OSF/1 and HP-UX.
13813 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13814 ac_file
=1 # Number of current file.
13815 ac_beg
=1 # First line for current file.
13816 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13819 while $ac_more_lines; do
13820 if test $ac_beg -gt 1; then
13821 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13823 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13825 if test ! -s conftest.s
$ac_file; then
13826 ac_more_lines
=false
13827 rm -f conftest.s
$ac_file
13829 if test -z "$ac_sed_cmds"; then
13830 ac_sed_cmds
="sed -f conftest.s$ac_file"
13832 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13834 ac_file
=`expr $ac_file + 1`
13836 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13839 if test -z "$ac_sed_cmds"; then
13844 cat >> $CONFIG_STATUS <<EOF
13846 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13848 cat >> $CONFIG_STATUS <<\EOF
13849 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13852 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13853 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13854 *) ac_file_in
="${ac_file}.in" ;;
13857 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13859 # Remove last slash and all that follows it. Not all systems have dirname.
13860 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13862 # The file is in a subdirectory.
13863 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13864 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13865 # A "../" for each directory in $ac_dir_suffix.
13866 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13868 ac_dir_suffix
= ac_dots
=
13871 case "$ac_given_srcdir" in
13873 if test -z "$ac_dots"; then top_srcdir
=.
13874 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13875 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13876 *) # Relative path.
13877 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13878 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13881 case "$ac_given_INSTALL" in
13882 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13883 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13886 echo creating
"$ac_file"
13888 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13890 *Makefile
*) ac_comsub
="1i\\
13891 # $configure_input" ;;
13895 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13897 s%@configure_input@%$configure_input%g
13898 s%@srcdir@%$srcdir%g
13899 s%@top_srcdir@%$top_srcdir%g
13900 s%@INSTALL@%$INSTALL%g
13901 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13908 # ac_d sets the value in "#define NAME VALUE" lines.
13909 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13910 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13913 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13914 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13915 ac_uB
='\([ ]\)%\1#\2define\3'
13918 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13919 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13920 ac_eB
='$%\1#\2define\3'
13924 if test "${CONFIG_HEADERS+set}" != set; then
13926 cat >> $CONFIG_STATUS <<EOF
13927 CONFIG_HEADERS="include/config.h"
13929 cat >> $CONFIG_STATUS <<\EOF
13931 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13934 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13935 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13936 *) ac_file_in
="${ac_file}.in" ;;
13939 echo creating
$ac_file
13941 rm -f conftest.frag conftest.
in conftest.out
13942 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13943 cat $ac_file_inputs > conftest.
in
13947 # Transform confdefs.h into a sed script conftest.vals that substitutes
13948 # the proper values into config.h.in to produce config.h. And first:
13949 # Protect against being on the right side of a sed subst in config.status.
13950 # Protect against being in an unquoted here document in config.status.
13951 rm -f conftest.vals
13952 cat > conftest.hdr
<<\EOF
13955 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13959 sed -n -f conftest.hdr confdefs.h > conftest.vals
13962 # This sed command replaces #undef with comments. This is necessary, for
13963 # example, in the case of _POSIX_SOURCE, which is predefined and required
13964 # on some systems where configure will not decide to define it.
13965 cat >> conftest.vals <<\EOF
13966 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13969 # Break up conftest.vals because some shells have a limit on
13970 # the size of here documents, and old seds have small limits too.
13972 rm -f conftest.tail
13975 ac_lines=`grep -c . conftest.vals
`
13976 # grep -c gives empty output for an empty file on some AIX systems.
13977 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13978 # Write a limited-size here document to conftest.frag.
13979 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13980 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13982 sed -f conftest.frag conftest.in > conftest.out
13984 mv conftest.out conftest.in
13985 ' >> $CONFIG_STATUS
13986 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13987 rm -f conftest.vals
13988 mv conftest.tail conftest.vals
13990 rm -f conftest.vals
13992 cat >> $CONFIG_STATUS <<\EOF
13993 rm -f conftest.frag conftest.h
13994 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13995 cat conftest.in >> conftest.h
13997 if cmp -s $ac_file conftest.h 2>/dev/null; then
13998 echo "$ac_file is unchanged"
14001 # Remove last slash and all that follows it. Not all systems have dirname.
14002 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14004 # The file is in a subdirectory.
14005 test ! -d "$ac_dir" && mkdir "$ac_dir"
14008 mv conftest.h $ac_file
14013 cat >> $CONFIG_STATUS <<EOF
14016 cat >> $CONFIG_STATUS <<\EOF
14020 chmod +x $CONFIG_STATUS
14021 rm -fr confdefs* $ac_clean_files
14022 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14025 #################################################
14026 # Print very concise instructions on building/use
14027 if test "x$enable_dmalloc" = xyes
14029 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14030 echo "$ac_t"" \$ eval \`dmalloc samba\
`." 1>&6