3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-cups Turn on CUPS support (default=auto)"
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
38 --with-smbwrapper Include SMB wrapper support (default=no)"
40 --with-afs Include AFS support (default=no)"
42 --with-dce-dfs Include DCE/DFS support (default=no)"
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
48 --with-automount Include AUTOMOUNT support (default=no)"
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
52 --with-pam Include PAM password database support (default=no)"
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-msdfs Include MS Dfs support (default=no)"
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
82 --with-acl-support Include ACL support (default=no)"
84 --with-sendfile-support Check for sendfile support (default=no)"
86 --with-winbind Build winbind (default, if supported by OS)"
88 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
90 --with-winbind-ldap-hack Enable winbindd_ldap_hack() functionality (default no)"
92 --with-included-popt use bundled popt library, not from system"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=include
/includes.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
605 #################################################
606 # Directory handling stuff to support both the
607 # legacy SAMBA directories and FHS compliant
611 # Check whether --with-fhs or --without-fhs was given.
612 if test "${with_fhs+set}" = set; then
614 codepagedir
="\$(DATADIR)/samba/codepages"
615 configdir
="${sysconfdir}/samba"
616 lockdir
="\${VARDIR}/cache/samba"
617 piddir
="\$(VARDIR)/run/samba"
618 logfilebase
="\${VARDIR}/log/samba"
619 privatedir
="\${CONFIGDIR}/private"
620 swatdir
="\${DATADIR}/samba/swat"
622 codepagedir
="\$(LIBDIR)/codepages"
623 configdir
="\$(LIBDIR)"
624 logfilebase
="\$(VARDIR)"
625 lockdir
="\${VARDIR}/locks"
626 piddir
="\$(VARDIR)/locks"
627 privatedir
="\${prefix}/private"
628 swatdir
="\${prefix}/swat"
632 #################################################
633 # set private directory location
634 # Check whether --with-privatedir or --without-privatedir was given.
635 if test "${with_privatedir+set}" = set; then
636 withval
="$with_privatedir"
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
645 privatedir
="$withval"
651 #################################################
652 # set lock directory location
653 # Check whether --with-lockdir or --without-lockdir was given.
654 if test "${with_lockdir+set}" = set; then
655 withval
="$with_lockdir"
659 # Just in case anybody calls it without argument
661 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
670 #################################################
671 # set pid directory location
672 # Check whether --with-piddir or --without-piddir was given.
673 if test "${with_piddir+set}" = set; then
674 withval
="$with_piddir"
678 # Just in case anybody calls it without argument
680 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
689 #################################################
690 # set SWAT directory location
691 # Check whether --with-swatdir or --without-swatdir was given.
692 if test "${with_swatdir+set}" = set; then
693 withval
="$with_swatdir"
697 # Just in case anybody does it
699 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
708 #################################################
709 # set configuration directory location
710 # Check whether --with-configdir or --without-configdir was given.
711 if test "${with_configdir+set}" = set; then
712 withval
="$with_configdir"
716 # Just in case anybody does it
718 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
727 #################################################
728 # set codepage directory location
729 # Check whether --with-codepagedir or --without-codepagedir was given.
730 if test "${with_codepagedir+set}" = set; then
731 withval
="$with_codepagedir"
735 # Just in case anybody does it
737 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
740 codepagedir
="$withval"
746 #################################################
747 # set log directory location
748 # Check whether --with-logfilebase or --without-logfilebase was given.
749 if test "${with_logfilebase+set}" = set; then
750 withval
="$with_logfilebase"
754 # Just in case anybody does it
756 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
759 logfilebase
="$withval"
796 # compile with optimization and without debugging by default
797 CFLAGS
="-O ${CFLAGS}"
799 # Check whether --enable-debug or --disable-debug was given.
800 if test "${enable_debug+set}" = set; then
801 enableval
="$enable_debug"
802 if eval "test x$enable_debug = xyes"; then
803 CFLAGS
="${CFLAGS} -g"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc
; ac_word
=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC
="$CC" # Let the user override the test.
820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
822 for ac_dir
in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir
=.
824 if test -f $ac_dir/$ac_word; then
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc
; ac_word
=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 if test -n "$CC"; then
848 ac_cv_prog_CC
="$CC" # Let the user override the test.
850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
853 for ac_dir
in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir
=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy
$ac_cv_prog_CC
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
874 set dummy
"$ac_dir/$ac_word" "$@"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl
; ac_word
=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CC"; then
899 ac_cv_prog_CC
="$CC" # Let the user override the test.
901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
903 for ac_dir
in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir
=.
905 if test -f $ac_dir/$ac_word; then
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp
='$CPP $CPPFLAGS'
931 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling
=$ac_cv_prog_cc_cross
935 cat > conftest.
$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 if { (eval echo configure
:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
943 ac_cv_prog_cc_works
=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (.
/conftest
; exit) 2>/dev
/null
; then
946 ac_cv_prog_cc_cross
=no
948 ac_cv_prog_cc_cross
=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.
$ac_ext >&5
953 ac_cv_prog_cc_works
=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp
='$CPP $CPPFLAGS'
959 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling
=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no
; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling
=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.c
<<EOF
982 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
997 ac_test_CFLAGS
="${CFLAGS+set}"
998 ac_save_CFLAGS
="$CFLAGS"
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS
="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1025 if test "$GCC" = yes; then
1033 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1034 if test -f $ac_dir/install-sh
; then
1036 ac_install_sh
="$ac_aux_dir/install-sh -c"
1038 elif test -f $ac_dir/install.sh
; then
1040 ac_install_sh
="$ac_aux_dir/install.sh -c"
1044 if test -z "$ac_aux_dir"; then
1045 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1047 ac_config_guess
=$ac_aux_dir/config.guess
1048 ac_config_sub
=$ac_aux_dir/config.sub
1049 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1051 # Find a good install program. We prefer a C program (faster),
1052 # so one script is as good as another. But avoid the broken or
1053 # incompatible versions:
1054 # SysV /etc/install, /usr/sbin/install
1055 # SunOS /usr/etc/install
1056 # IRIX /sbin/install
1058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1061 # ./install, which can be erroneously created by make from ./install.sh.
1062 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1063 echo "configure:1064: checking for a BSD compatible install" >&5
1064 if test -z "$INSTALL"; then
1065 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1069 for ac_dir
in $PATH; do
1070 # Account for people who put trailing slashes in PATH elements.
1072 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1074 # OSF1 and SCO ODT 3.0 have their own names for install.
1075 # Don't use installbsd from OSF since it installs stuff as root
1077 for ac_prog
in ginstall scoinst
install; do
1078 if test -f $ac_dir/$ac_prog; then
1079 if test $ac_prog = install &&
1080 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1081 # AIX install. It has an incompatible calling convention.
1084 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1095 if test "${ac_cv_path_install+set}" = set; then
1096 INSTALL
="$ac_cv_path_install"
1098 # As a last resort, use the slow shell script. We don't cache a
1099 # path for INSTALL within a source directory, because that will
1100 # break other packages using the cache if that directory is
1101 # removed, or if the path is relative.
1102 INSTALL
="$ac_install_sh"
1105 echo "$ac_t""$INSTALL" 1>&6
1107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1108 # It thinks the first close brace ends the variable substitution.
1109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1113 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1115 for ac_prog
in gawk mawk nawk
awk
1117 # Extract the first word of "$ac_prog", so it can be a program name with args.
1118 set dummy
$ac_prog; ac_word
=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$AWK"; then
1125 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1129 for ac_dir
in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir
=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_AWK
="$ac_prog"
1139 AWK
="$ac_cv_prog_AWK"
1140 if test -n "$AWK"; then
1141 echo "$ac_t""$AWK" 1>&6
1143 echo "$ac_t""no" 1>&6
1146 test -n "$AWK" && break
1150 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1151 echo "configure:1152: checking if the linker ($LD) is GNU ld" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1156 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1157 ac_cv_prog_gnu_ld
=yes
1159 ac_cv_prog_gnu_ld
=no
1163 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1165 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1166 echo "configure:1167: checking for Cygwin environment" >&5
1167 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 cat > conftest.
$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1177 #define __CYGWIN__ __CYGWIN32__
1182 if { (eval echo configure
:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1186 echo "configure: failed program was:" >&5
1187 cat conftest.
$ac_ext >&5
1195 echo "$ac_t""$ac_cv_cygwin" 1>&6
1197 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1198 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1199 echo "configure:1200: checking for mingw32 environment" >&5
1200 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 cat > conftest.
$ac_ext <<EOF
1204 #line 1205 "configure"
1205 #include "confdefs.h"
1211 if { (eval echo configure
:1212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1215 echo "configure: failed program was:" >&5
1216 cat conftest.
$ac_ext >&5
1224 echo "$ac_t""$ac_cv_mingw32" 1>&6
1226 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1229 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1230 echo "configure:1231: checking for executable suffix" >&5
1231 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1238 echo 'int main () { return 0; }' > conftest.
$ac_ext
1240 if { (eval echo configure
:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1241 for file in conftest.
*; do
1243 *.c |
*.o |
*.obj
) ;;
1244 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1248 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1251 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1256 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1257 echo "$ac_t""${ac_cv_exeext}" 1>&6
1260 # Extract the first word of "passwd", so it can be a program name with args.
1261 set dummy passwd
; ac_word
=$2
1262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_word" >&5
1264 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 case "$passwd_program" in
1269 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1272 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1275 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1277 for ac_dir
in $ac_dummy; do
1278 test -z "$ac_dir" && ac_dir
=.
1279 if test -f $ac_dir/$ac_word; then
1280 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1285 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1289 passwd_program
="$ac_cv_path_passwd_program"
1290 if test -n "$passwd_program"; then
1291 echo "$ac_t""$passwd_program" 1>&6
1293 echo "$ac_t""no" 1>&6
1298 if test "x$CC" != xcc
; then
1299 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether $CC and cc understand -c and -o together" >&5
1302 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1303 echo "configure:1304: checking whether cc understands -c and -o together" >&5
1305 set dummy
$CC; ac_cc
="`echo $2 |
1306 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1307 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 echo 'foo(){}' > conftest.c
1311 # Make sure it works both with $CC and with simple cc.
1312 # We do the test twice because some compilers refuse to overwrite an
1313 # existing .o file with -o, though they will create one.
1314 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1315 if { (eval echo configure
:1316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1316 test -f conftest.o
&& { (eval echo configure
:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1318 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1319 if test "x$CC" != xcc
; then
1320 # Test first that cc exists at all.
1321 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1322 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1323 if { (eval echo configure
:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1324 test -f conftest.o
&& { (eval echo configure
:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1329 # cc exists but doesn't like -o.
1330 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1335 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1340 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1343 echo "$ac_t""no" 1>&6
1344 cat >> confdefs.h
<<\EOF
1345 #define NO_MINUS_C_MINUS_O 1
1350 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1357 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1358 echo "configure:1359: checking that the C compiler understands volatile" >&5
1359 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1363 cat > conftest.
$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1366 #include <sys/types.h>
1371 if { (eval echo configure
:1372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1373 samba_cv_volatile
=yes
1375 echo "configure: failed program was:" >&5
1376 cat conftest.
$ac_ext >&5
1378 samba_cv_volatile
=no
1383 echo "$ac_t""$samba_cv_volatile" 1>&6
1384 if test x
"$samba_cv_volatile" = x
"yes"; then
1385 cat >> confdefs.h
<<\EOF
1386 #define HAVE_VOLATILE 1
1394 # Do some error checking and defaulting for the host and target type.
1396 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1399 # 1. You are not allowed to specify --host, --target, and nonopt at the
1401 # 2. Host defaults to nonopt.
1402 # 3. If nonopt is not specified, then host defaults to the current host,
1403 # as determined by config.guess.
1404 # 4. Target and build default to nonopt.
1405 # 5. If nonopt is not specified, then target and build default to host.
1407 # The aliases save the names the user supplied, while $host etc.
1408 # will get canonicalized.
1409 case $host---$target---$nonopt in
1410 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1411 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1415 # Make sure we can run config.sub.
1416 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1417 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1420 echo $ac_n "checking host system type""... $ac_c" 1>&6
1421 echo "configure:1422: checking host system type" >&5
1424 case "$host_alias" in
1428 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1429 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1431 *) host_alias
=$nonopt ;;
1435 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1436 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439 echo "$ac_t""$host" 1>&6
1441 echo $ac_n "checking target system type""... $ac_c" 1>&6
1442 echo "configure:1443: checking target system type" >&5
1444 target_alias
=$target
1445 case "$target_alias" in
1448 NONE
) target_alias
=$host_alias ;;
1449 *) target_alias
=$nonopt ;;
1453 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1454 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457 echo "$ac_t""$target" 1>&6
1459 echo $ac_n "checking build system type""... $ac_c" 1>&6
1460 echo "configure:1461: checking build system type" >&5
1463 case "$build_alias" in
1466 NONE
) build_alias
=$host_alias ;;
1467 *) build_alias
=$nonopt ;;
1471 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1472 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1473 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1474 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475 echo "$ac_t""$build" 1>&6
1477 test "$host_alias" != "$target_alias" &&
1478 test "$program_prefix$program_suffix$program_transform_name" = \
1480 program_prefix
=${target_alias}-
1484 *irix6
*) cat >> confdefs.h
<<\EOF
1485 #include <standards.h>
1493 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1494 echo "configure:1495: checking config.cache system type" >&5
1495 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1496 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1497 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1498 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1499 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1500 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1501 echo "$ac_t""different" 1>&6
1502 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1504 echo "$ac_t""same" 1>&6
1506 ac_cv_host_system_type
="$host"
1507 ac_cv_build_system_type
="$build"
1508 ac_cv_target_system_type
="$target"
1514 # Config CPPFLAG settings for strange OS's that must be set
1515 # before other tests.
1518 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1520 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1521 echo "configure:1522: checking whether ${CC-cc} accepts -Ae" >&5
1522 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 echo 'void f(){}' > conftest.c
1526 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1527 ac_cv_prog_cc_Ae
=yes
1535 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1536 # mmap on HPUX is completely broken...
1537 cat >> confdefs.h
<<\EOF
1538 #define MMAP_BLACKLIST 1
1541 if test $ac_cv_prog_cc_Ae = yes; then
1542 CPPFLAGS
="$CPPFLAGS -Ae"
1545 # Defines needed for HPUX support.
1546 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1547 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1551 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1552 cat >> confdefs.h
<<\EOF
1553 #define USE_BOTH_CRYPT_CALLS 1
1556 cat >> confdefs.h
<<\EOF
1557 #define _HPUX_SOURCE 1
1560 cat >> confdefs.h
<<\EOF
1561 #define _POSIX_SOURCE 1
1564 cat >> confdefs.h
<<\EOF
1565 #define _ALIGNMENT_REQUIRED 1
1568 cat >> confdefs.h
<<\EOF
1569 #define _MAX_ALIGNMENT 4
1574 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1575 cat >> confdefs.h
<<\EOF
1576 #define _HPUX_SOURCE 1
1579 cat >> confdefs.h
<<\EOF
1580 #define _POSIX_SOURCE 1
1583 cat >> confdefs.h
<<\EOF
1584 #define _LARGEFILE64_SOURCE 1
1587 cat >> confdefs.h
<<\EOF
1588 #define POSIX_ACL_NEEDS_MASK 1
1591 cat >> confdefs.h
<<\EOF
1592 #define _ALIGNMENT_REQUIRED 1
1595 cat >> confdefs.h
<<\EOF
1596 #define _MAX_ALIGNMENT 4
1599 cat >> confdefs.h
<<\EOF
1600 #define USE_BOTH_CRYPT_CALLS 1
1610 # CRAY Unicos has broken const handling
1612 echo "$ac_t""disabling const" 1>&6
1613 CPPFLAGS
="$CPPFLAGS -Dconst="
1617 # AIX4.x doesn't even admit to having large
1618 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1621 echo "$ac_t""enabling large file support" 1>&6
1622 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1623 cat >> confdefs.h
<<\EOF
1624 #define _LARGE_FILES 1
1629 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1630 # to the existance of large files..
1631 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1632 # recommendations on large file support, however it makes the
1633 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1634 # recommendation makes the compile fail on gcc2.7. JRA.
1638 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1639 echo "$ac_t""no large file support" 1>&6
1642 echo "$ac_t""enabling large file support" 1>&6
1643 if test "$ac_cv_prog_gcc" = yes; then
1644 ${CC-cc} -v >conftest.c
2>&1
1645 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1647 case "$ac_cv_gcc_compiler_version_number" in
1648 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1649 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1650 cat >> confdefs.h
<<\EOF
1651 #define _LARGEFILE64_SOURCE 1
1656 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1657 cat >> confdefs.h
<<\EOF
1658 #define _LARGEFILE64_SOURCE 1
1661 cat >> confdefs.h
<<\EOF
1662 #define _FILE_OFFSET_BITS 64
1668 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1669 cat >> confdefs.h
<<\EOF
1670 #define _LARGEFILE64_SOURCE 1
1673 cat >> confdefs.h
<<\EOF
1674 #define _FILE_OFFSET_BITS 64
1682 # VOS may need to have POSIX support and System V compatibility enabled.
1686 *-D_POSIX_C_SOURCE*)
1689 CPPFLAGS
="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
1690 cat >> confdefs.h
<<\EOF
1691 #define _POSIX_C_SOURCE 199506L
1697 *-D_SYSV*|
*-D_SVID_SOURCE*)
1700 CPPFLAGS
="$CPPFLAGS -D_SYSV"
1701 cat >> confdefs.h
<<\EOF
1708 # Tests needed for SINIX large file support.
1711 if test $host = mips-sni-sysv4
; then
1712 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1713 echo "configure:1714: checking for LFS support" >&5
1714 old_CPPFLAGS
="$CPPFLAGS"
1715 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1716 if test "$cross_compiling" = yes; then
1717 SINIX_LFS_SUPPORT
=cross
1719 cat > conftest.
$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1725 #if _LFS64_LARGEFILE == 1
1732 if { (eval echo configure
:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1734 SINIX_LFS_SUPPORT
=yes
1736 echo "configure: failed program was:" >&5
1737 cat conftest.
$ac_ext >&5
1739 SINIX_LFS_SUPPORT
=no
1744 CPPFLAGS
="$old_CPPFLAGS"
1745 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1746 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1747 cat >> confdefs.h
<<\EOF
1748 #define _LARGEFILE64_SOURCE 1
1751 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1752 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1753 LIBS
="`getconf LFS64_LIBS` $LIBS"
1755 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1759 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1762 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1763 echo "configure:1764: checking for LFS support" >&5
1764 old_CPPFLAGS
="$CPPFLAGS"
1765 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1766 if test "$cross_compiling" = yes; then
1767 LINUX_LFS_SUPPORT
=cross
1769 cat > conftest.
$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1774 #include <sys/utsname.h>
1776 #if _LFS64_LARGEFILE == 1
1781 /* Ensure this is glibc 2.2 or higher */
1782 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1783 int libc_major = __GLIBC__;
1784 int libc_minor = __GLIBC_MINOR__;
1792 /* Ensure this is kernel 2.4 or higher */
1795 release = uts.release;
1796 major = atoi(strsep(&release, "."));
1797 minor = atoi(strsep(&release, "."));
1799 if (major > 2 || (major == 2 && minor > 3))
1808 if { (eval echo configure
:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1810 LINUX_LFS_SUPPORT
=yes
1812 echo "configure: failed program was:" >&5
1813 cat conftest.
$ac_ext >&5
1815 LINUX_LFS_SUPPORT
=no
1820 CPPFLAGS
="$old_CPPFLAGS"
1821 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1822 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1823 cat >> confdefs.h
<<\EOF
1824 #define _LARGEFILE64_SOURCE 1
1827 cat >> confdefs.h
<<\EOF
1828 #define _FILE_OFFSET_BITS 64
1831 cat >> confdefs.h
<<\EOF
1832 #define _GNU_SOURCE 1
1836 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1840 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1841 echo "configure:1842: checking for LFS support" >&5
1842 old_CPPFLAGS
="$CPPFLAGS"
1843 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1844 if test "$cross_compiling" = yes; then
1845 GLIBC_LFS_SUPPORT
=cross
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1853 #if _LFS64_LARGEFILE == 1
1860 if { (eval echo configure
:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1862 GLIBC_LFS_SUPPORT
=yes
1864 echo "configure: failed program was:" >&5
1865 cat conftest.
$ac_ext >&5
1867 GLIBC_LFS_SUPPORT
=no
1872 CPPFLAGS
="$old_CPPFLAGS"
1873 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1874 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1875 cat >> confdefs.h
<<\EOF
1876 #define _LARGEFILE64_SOURCE 1
1879 cat >> confdefs.h
<<\EOF
1880 #define _GNU_SOURCE 1
1884 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1889 echo $ac_n "checking for inline""... $ac_c" 1>&6
1890 echo "configure:1891: checking for inline" >&5
1891 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1895 for ac_kw
in inline __inline__ __inline
; do
1896 cat > conftest.
$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1904 if { (eval echo configure
:1905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1906 ac_cv_c_inline
=$ac_kw; break
1908 echo "configure: failed program was:" >&5
1909 cat conftest.
$ac_ext >&5
1916 echo "$ac_t""$ac_cv_c_inline" 1>&6
1917 case "$ac_cv_c_inline" in
1919 no
) cat >> confdefs.h
<<\EOF
1923 *) cat >> confdefs.h
<<EOF
1924 #define inline $ac_cv_c_inline
1929 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1930 echo "configure:1931: checking how to run the C preprocessor" >&5
1931 # On Suns, sometimes $CPP names a directory.
1932 if test -n "$CPP" && test -d "$CPP"; then
1935 if test -z "$CPP"; then
1936 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 # This must be in double quotes, not single quotes, because CPP may get
1940 # substituted into the Makefile and "${CC-cc}" will confuse make.
1942 # On the NeXT, cc -E runs the code through the compiler's parser,
1943 # not just through cpp.
1944 cat > conftest.
$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1950 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1951 { (eval echo configure
:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1952 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1953 if test -z "$ac_err"; then
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1960 CPP
="${CC-cc} -E -traditional-cpp"
1961 cat > conftest.
$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1967 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1968 { (eval echo configure
:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1969 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1970 if test -z "$ac_err"; then
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 CPP
="${CC-cc} -nologo -E"
1978 cat > conftest.
$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1984 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure
:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1987 if test -z "$ac_err"; then
1991 echo "configure: failed program was:" >&5
1992 cat conftest.
$ac_ext >&5
2001 ac_cv_prog_CPP
="$CPP"
2003 CPP
="$ac_cv_prog_CPP"
2005 ac_cv_prog_CPP
="$CPP"
2007 echo "$ac_t""$CPP" 1>&6
2009 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2010 echo "configure:2011: checking for ANSI C header files" >&5
2011 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.
$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2022 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2023 { (eval echo configure
:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2024 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2025 if test -z "$ac_err"; then
2027 ac_cv_header_stdc
=yes
2030 echo "configure: failed program was:" >&5
2031 cat conftest.
$ac_ext >&5
2033 ac_cv_header_stdc
=no
2037 if test $ac_cv_header_stdc = yes; then
2038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2039 cat > conftest.
$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2045 egrep "memchr" >/dev
/null
2>&1; then
2049 ac_cv_header_stdc
=no
2055 if test $ac_cv_header_stdc = yes; then
2056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2057 cat > conftest.
$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2063 egrep "free" >/dev
/null
2>&1; then
2067 ac_cv_header_stdc
=no
2073 if test $ac_cv_header_stdc = yes; then
2074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2075 if test "$cross_compiling" = yes; then
2078 cat > conftest.
$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2082 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2083 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2085 int main () { int i; for (i = 0; i < 256; i++)
2086 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2090 if { (eval echo configure
:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2094 echo "configure: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2097 ac_cv_header_stdc
=no
2105 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2106 if test $ac_cv_header_stdc = yes; then
2107 cat >> confdefs.h
<<\EOF
2108 #define STDC_HEADERS 1
2114 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2116 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2117 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_hdr that defines DIR" >&5
2119 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 #include <sys/types.h>
2131 if { (eval echo configure
:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2133 eval "ac_cv_header_dirent_$ac_safe=yes"
2135 echo "configure: failed program was:" >&5
2136 cat conftest.
$ac_ext >&5
2138 eval "ac_cv_header_dirent_$ac_safe=no"
2142 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2143 echo "$ac_t""yes" 1>&6
2144 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2145 cat >> confdefs.h
<<EOF
2146 #define $ac_tr_hdr 1
2148 ac_header_dirent
=$ac_hdr; break
2150 echo "$ac_t""no" 1>&6
2153 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2154 if test $ac_header_dirent = dirent.h
; then
2155 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2156 echo "configure:2157: checking for opendir in -ldir" >&5
2157 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2161 ac_save_LIBS
="$LIBS"
2163 cat > conftest.
$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 /* Override any gcc2 internal prototype to avoid an error. */
2167 /* We use char because int might match the return type of a gcc2
2168 builtin and then its argument prototype would still apply. */
2175 if { (eval echo configure
:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2177 eval "ac_cv_lib_$ac_lib_var=yes"
2179 echo "configure: failed program was:" >&5
2180 cat conftest.
$ac_ext >&5
2182 eval "ac_cv_lib_$ac_lib_var=no"
2185 LIBS
="$ac_save_LIBS"
2188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2189 echo "$ac_t""yes" 1>&6
2192 echo "$ac_t""no" 1>&6
2196 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2197 echo "configure:2198: checking for opendir in -lx" >&5
2198 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 ac_save_LIBS
="$LIBS"
2204 cat > conftest.
$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 /* Override any gcc2 internal prototype to avoid an error. */
2208 /* We use char because int might match the return type of a gcc2
2209 builtin and then its argument prototype would still apply. */
2216 if { (eval echo configure
:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2218 eval "ac_cv_lib_$ac_lib_var=yes"
2220 echo "configure: failed program was:" >&5
2221 cat conftest.
$ac_ext >&5
2223 eval "ac_cv_lib_$ac_lib_var=no"
2226 LIBS
="$ac_save_LIBS"
2229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2233 echo "$ac_t""no" 1>&6
2238 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2239 echo "configure:2240: checking whether time.h and sys/time.h may both be included" >&5
2240 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <sys/types.h>
2247 #include <sys/time.h>
2253 if { (eval echo configure
:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2255 ac_cv_header_time
=yes
2257 echo "configure: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2260 ac_cv_header_time
=no
2265 echo "$ac_t""$ac_cv_header_time" 1>&6
2266 if test $ac_cv_header_time = yes; then
2267 cat >> confdefs.h
<<\EOF
2268 #define TIME_WITH_SYS_TIME 1
2273 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2274 echo "configure:2275: checking for sys/wait.h that is POSIX.1 compatible" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.
$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 #include <sys/types.h>
2282 #include <sys/wait.h>
2284 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2287 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2292 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2295 if { (eval echo configure
:2296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2297 ac_cv_header_sys_wait_h
=yes
2299 echo "configure: failed program was:" >&5
2300 cat conftest.
$ac_ext >&5
2302 ac_cv_header_sys_wait_h
=no
2307 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2308 if test $ac_cv_header_sys_wait_h = yes; then
2309 cat >> confdefs.h
<<\EOF
2310 #define HAVE_SYS_WAIT_H 1
2315 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2317 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2319 echo "configure:2320: checking for $ac_hdr" >&5
2320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 cat > conftest.
$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2328 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329 { (eval echo configure
:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2331 if test -z "$ac_err"; then
2333 eval "ac_cv_header_$ac_safe=yes"
2336 echo "configure: failed program was:" >&5
2337 cat conftest.
$ac_ext >&5
2339 eval "ac_cv_header_$ac_safe=no"
2343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2344 echo "$ac_t""yes" 1>&6
2345 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2346 cat >> confdefs.h
<<EOF
2347 #define $ac_tr_hdr 1
2351 echo "$ac_t""no" 1>&6
2355 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2357 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_hdr" >&5
2360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 cat > conftest.
$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2368 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2369 { (eval echo configure
:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2370 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2371 if test -z "$ac_err"; then
2373 eval "ac_cv_header_$ac_safe=yes"
2376 echo "configure: failed program was:" >&5
2377 cat conftest.
$ac_ext >&5
2379 eval "ac_cv_header_$ac_safe=no"
2383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2386 cat >> confdefs.h
<<EOF
2387 #define $ac_tr_hdr 1
2391 echo "$ac_t""no" 1>&6
2395 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2397 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2399 echo "configure:2400: checking for $ac_hdr" >&5
2400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.
$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2408 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2409 { (eval echo configure
:2410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2410 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2411 if test -z "$ac_err"; then
2413 eval "ac_cv_header_$ac_safe=yes"
2416 echo "configure: failed program was:" >&5
2417 cat conftest.
$ac_ext >&5
2419 eval "ac_cv_header_$ac_safe=no"
2423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2426 cat >> confdefs.h
<<EOF
2427 #define $ac_tr_hdr 1
2431 echo "$ac_t""no" 1>&6
2435 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2437 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_hdr" >&5
2440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 cat > conftest.
$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2448 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2449 { (eval echo configure
:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2450 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2451 if test -z "$ac_err"; then
2453 eval "ac_cv_header_$ac_safe=yes"
2456 echo "configure: failed program was:" >&5
2457 cat conftest.
$ac_ext >&5
2459 eval "ac_cv_header_$ac_safe=no"
2463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2466 cat >> confdefs.h
<<EOF
2467 #define $ac_tr_hdr 1
2471 echo "$ac_t""no" 1>&6
2475 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2477 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_hdr" >&5
2480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2488 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure
:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2493 eval "ac_cv_header_$ac_safe=yes"
2496 echo "configure: failed program was:" >&5
2497 cat conftest.
$ac_ext >&5
2499 eval "ac_cv_header_$ac_safe=no"
2503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2506 cat >> confdefs.h
<<EOF
2507 #define $ac_tr_hdr 1
2511 echo "$ac_t""no" 1>&6
2515 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.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
2555 for ac_hdr
in syslog.h sys
/syslog.h sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2557 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2559 echo "configure:2560: checking for $ac_hdr" >&5
2560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 cat > conftest.
$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2568 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2569 { (eval echo configure
:2570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2570 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2571 if test -z "$ac_err"; then
2573 eval "ac_cv_header_$ac_safe=yes"
2576 echo "configure: failed program was:" >&5
2577 cat conftest.
$ac_ext >&5
2579 eval "ac_cv_header_$ac_safe=no"
2583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2586 cat >> confdefs.h
<<EOF
2587 #define $ac_tr_hdr 1
2591 echo "$ac_t""no" 1>&6
2595 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2597 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2599 echo "configure:2600: checking for $ac_hdr" >&5
2600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 cat > conftest.
$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2608 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2609 { (eval echo configure
:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2610 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2611 if test -z "$ac_err"; then
2613 eval "ac_cv_header_$ac_safe=yes"
2616 echo "configure: failed program was:" >&5
2617 cat conftest.
$ac_ext >&5
2619 eval "ac_cv_header_$ac_safe=no"
2623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2625 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2626 cat >> confdefs.h
<<EOF
2627 #define $ac_tr_hdr 1
2631 echo "$ac_t""no" 1>&6
2635 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2637 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2639 echo "configure:2640: checking for $ac_hdr" >&5
2640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 cat > conftest.
$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2648 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649 { (eval echo configure
:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2650 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2651 if test -z "$ac_err"; then
2653 eval "ac_cv_header_$ac_safe=yes"
2656 echo "configure: failed program was:" >&5
2657 cat conftest.
$ac_ext >&5
2659 eval "ac_cv_header_$ac_safe=no"
2663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2664 echo "$ac_t""yes" 1>&6
2665 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2666 cat >> confdefs.h
<<EOF
2667 #define $ac_tr_hdr 1
2671 echo "$ac_t""no" 1>&6
2677 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2678 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2682 cat > conftest.
$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2690 if { (eval echo configure
:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2692 ac_cv_header_shadow_h
=yes
2694 echo "configure: failed program was:" >&5
2695 cat conftest.
$ac_ext >&5
2697 ac_cv_header_shadow_h
=no
2700 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2701 cat >> confdefs.h
<<\EOF
2702 #define HAVE_SHADOW_H 1
2708 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2710 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_hdr" >&5
2713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure
:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724 if test -z "$ac_err"; then
2726 eval "ac_cv_header_$ac_safe=yes"
2729 echo "configure: failed program was:" >&5
2730 cat conftest.
$ac_ext >&5
2732 eval "ac_cv_header_$ac_safe=no"
2736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2739 cat >> confdefs.h
<<EOF
2740 #define $ac_tr_hdr 1
2744 echo "$ac_t""no" 1>&6
2748 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2750 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2752 echo "configure:2753: checking for $ac_hdr" >&5
2753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2761 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure
:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2766 eval "ac_cv_header_$ac_safe=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.
$ac_ext >&5
2772 eval "ac_cv_header_$ac_safe=no"
2776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2778 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2779 cat >> confdefs.h
<<EOF
2780 #define $ac_tr_hdr 1
2784 echo "$ac_t""no" 1>&6
2788 for ac_hdr
in stropts.h poll.h
2790 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_hdr" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.
$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2801 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2802 { (eval echo configure
:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2803 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2804 if test -z "$ac_err"; then
2806 eval "ac_cv_header_$ac_safe=yes"
2809 echo "configure: failed program was:" >&5
2810 cat conftest.
$ac_ext >&5
2812 eval "ac_cv_header_$ac_safe=no"
2816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2819 cat >> confdefs.h
<<EOF
2820 #define $ac_tr_hdr 1
2824 echo "$ac_t""no" 1>&6
2828 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2830 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2832 echo "configure:2833: checking for $ac_hdr" >&5
2833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 cat > conftest.
$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2841 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2842 { (eval echo configure
:2843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2843 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2844 if test -z "$ac_err"; then
2846 eval "ac_cv_header_$ac_safe=yes"
2849 echo "configure: failed program was:" >&5
2850 cat conftest.
$ac_ext >&5
2852 eval "ac_cv_header_$ac_safe=no"
2856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2859 cat >> confdefs.h
<<EOF
2860 #define $ac_tr_hdr 1
2864 echo "$ac_t""no" 1>&6
2868 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2870 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_hdr" >&5
2873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 cat > conftest.
$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2881 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2882 { (eval echo configure
:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2883 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2884 if test -z "$ac_err"; then
2886 eval "ac_cv_header_$ac_safe=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 eval "ac_cv_header_$ac_safe=no"
2896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2897 echo "$ac_t""yes" 1>&6
2898 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2899 cat >> confdefs.h
<<EOF
2900 #define $ac_tr_hdr 1
2904 echo "$ac_t""no" 1>&6
2909 # For experimental utmp support (lastlog on some BSD-like systems)
2910 for ac_hdr
in utmp.h utmpx.h lastlog.h
2912 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure
:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2928 eval "ac_cv_header_$ac_safe=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 eval "ac_cv_header_$ac_safe=no"
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h
<<EOF
2942 #define $ac_tr_hdr 1
2946 echo "$ac_t""no" 1>&6
2951 # For quotas on Veritas VxFS filesystems
2952 for ac_hdr
in sys
/fs
/vx_quota.h
2954 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_hdr" >&5
2957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2965 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2966 { (eval echo configure
:2967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2967 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2968 if test -z "$ac_err"; then
2970 eval "ac_cv_header_$ac_safe=yes"
2973 echo "configure: failed program was:" >&5
2974 cat conftest.
$ac_ext >&5
2976 eval "ac_cv_header_$ac_safe=no"
2980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2981 echo "$ac_t""yes" 1>&6
2982 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2983 cat >> confdefs.h
<<EOF
2984 #define $ac_tr_hdr 1
2988 echo "$ac_t""no" 1>&6
2993 # For quotas on Linux XFS filesystems
2994 for ac_hdr
in linux
/xqm.h
2996 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2998 echo "configure:2999: checking for $ac_hdr" >&5
2999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 cat > conftest.
$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3008 { (eval echo configure
:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3010 if test -z "$ac_err"; then
3012 eval "ac_cv_header_$ac_safe=yes"
3015 echo "configure: failed program was:" >&5
3016 cat conftest.
$ac_ext >&5
3018 eval "ac_cv_header_$ac_safe=no"
3022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3024 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3025 cat >> confdefs.h
<<EOF
3026 #define $ac_tr_hdr 1
3030 echo "$ac_t""no" 1>&6
3035 echo $ac_n "checking size of int""... $ac_c" 1>&6
3036 echo "configure:3037: checking size of int" >&5
3037 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 if test "$cross_compiling" = yes; then
3041 ac_cv_sizeof_int
=cross
3043 cat > conftest.
$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3049 FILE *f=fopen("conftestval", "w");
3051 fprintf(f, "%d\n", sizeof(int));
3055 if { (eval echo configure
:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3057 ac_cv_sizeof_int
=`cat conftestval`
3059 echo "configure: failed program was:" >&5
3060 cat conftest.
$ac_ext >&5
3068 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3069 cat >> confdefs.h
<<EOF
3070 #define SIZEOF_INT $ac_cv_sizeof_int
3074 echo $ac_n "checking size of long""... $ac_c" 1>&6
3075 echo "configure:3076: checking size of long" >&5
3076 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 if test "$cross_compiling" = yes; then
3080 ac_cv_sizeof_long
=cross
3082 cat > conftest.
$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3088 FILE *f=fopen("conftestval", "w");
3090 fprintf(f, "%d\n", sizeof(long));
3094 if { (eval echo configure
:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3096 ac_cv_sizeof_long
=`cat conftestval`
3098 echo "configure: failed program was:" >&5
3099 cat conftest.
$ac_ext >&5
3107 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3108 cat >> confdefs.h
<<EOF
3109 #define SIZEOF_LONG $ac_cv_sizeof_long
3113 echo $ac_n "checking size of short""... $ac_c" 1>&6
3114 echo "configure:3115: checking size of short" >&5
3115 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 if test "$cross_compiling" = yes; then
3119 ac_cv_sizeof_short
=cross
3121 cat > conftest.
$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3127 FILE *f=fopen("conftestval", "w");
3129 fprintf(f, "%d\n", sizeof(short));
3133 if { (eval echo configure
:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3135 ac_cv_sizeof_short
=`cat conftestval`
3137 echo "configure: failed program was:" >&5
3138 cat conftest.
$ac_ext >&5
3140 ac_cv_sizeof_short
=0
3146 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3147 cat >> confdefs.h
<<EOF
3148 #define SIZEOF_SHORT $ac_cv_sizeof_short
3153 echo $ac_n "checking for working const""... $ac_c" 1>&6
3154 echo "configure:3155: checking for working const" >&5
3155 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.
$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3164 /* Ultrix mips cc rejects this. */
3165 typedef int charset[2]; const charset x;
3166 /* SunOS 4.1.1 cc rejects this. */
3167 char const *const *ccp;
3169 /* NEC SVR4.0.2 mips cc rejects this. */
3170 struct point {int x, y;};
3171 static struct point const zero = {0,0};
3172 /* AIX XL C 1.02.0.0 rejects this.
3173 It does not let you subtract one const X* pointer from another in an arm
3174 of an if-expression whose if-part is not a constant expression */
3175 const char *g = "string";
3176 ccp = &g + (g ? g-g : 0);
3177 /* HPUX 7.0 cc rejects these. */
3180 ccp = (char const *const *) p;
3181 { /* SCO 3.2v4 cc rejects this. */
3183 char const *s = 0 ? (char *) 0 : (char const *) 0;
3187 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3189 const int *foo = &x[0];
3192 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3193 typedef const int *iptr;
3197 { /* AIX XL C 1.02.0.0 rejects this saying
3198 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3199 struct s { int j; const int *ap[3]; };
3200 struct s *b; b->j = 5;
3202 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3208 if { (eval echo configure
:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 echo "configure: failed program was:" >&5
3213 cat conftest.
$ac_ext >&5
3220 echo "$ac_t""$ac_cv_c_const" 1>&6
3221 if test $ac_cv_c_const = no
; then
3222 cat >> confdefs.h
<<\EOF
3228 echo $ac_n "checking for inline""... $ac_c" 1>&6
3229 echo "configure:3230: checking for inline" >&5
3230 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3234 for ac_kw
in inline __inline__ __inline
; do
3235 cat > conftest.
$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3243 if { (eval echo configure
:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245 ac_cv_c_inline
=$ac_kw; break
3247 echo "configure: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3255 echo "$ac_t""$ac_cv_c_inline" 1>&6
3256 case "$ac_cv_c_inline" in
3258 no
) cat >> confdefs.h
<<\EOF
3262 *) cat >> confdefs.h
<<EOF
3263 #define inline $ac_cv_c_inline
3268 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3269 echo "configure:3270: checking whether byte ordering is bigendian" >&5
3270 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 ac_cv_c_bigendian
=unknown
3274 # See if sys/param.h defines the BYTE_ORDER macro.
3275 cat > conftest.
$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 #include <sys/types.h>
3279 #include <sys/param.h>
3282 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3287 if { (eval echo configure
:3288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289 # It does; now see whether it defined to BIG_ENDIAN or not.
3290 cat > conftest.
$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 #include <sys/types.h>
3294 #include <sys/param.h>
3297 #if BYTE_ORDER != BIG_ENDIAN
3302 if { (eval echo configure
:3303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304 ac_cv_c_bigendian
=yes
3306 echo "configure: failed program was:" >&5
3307 cat conftest.
$ac_ext >&5
3309 ac_cv_c_bigendian
=no
3313 echo "configure: failed program was:" >&5
3314 cat conftest.
$ac_ext >&5
3317 if test $ac_cv_c_bigendian = unknown
; then
3318 if test "$cross_compiling" = yes; then
3319 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3321 cat > conftest.
$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3325 /* Are we little or big endian? From Harbison&Steele. */
3329 char c[sizeof (long)];
3332 exit (u.c[sizeof (long) - 1] == 1);
3335 if { (eval echo configure
:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3337 ac_cv_c_bigendian
=no
3339 echo "configure: failed program was:" >&5
3340 cat conftest.
$ac_ext >&5
3342 ac_cv_c_bigendian
=yes
3350 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3351 if test $ac_cv_c_bigendian = yes; then
3352 cat >> confdefs.h
<<\EOF
3353 #define WORDS_BIGENDIAN 1
3358 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3359 echo "configure:3360: checking whether char is unsigned" >&5
3360 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 if test "$GCC" = yes; then
3364 # GCC predefines this symbol on systems where it applies.
3365 cat > conftest.
$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #ifdef __CHAR_UNSIGNED__
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "yes" >/dev
/null
2>&1; then
3376 ac_cv_c_char_unsigned
=yes
3379 ac_cv_c_char_unsigned
=no
3384 if test "$cross_compiling" = yes; then
3385 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3387 cat > conftest.
$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3391 #if !defined(__STDC__) || __STDC__ != 1
3395 volatile char c = 255; exit(c < 0);
3398 if { (eval echo configure
:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3400 ac_cv_c_char_unsigned
=yes
3402 echo "configure: failed program was:" >&5
3403 cat conftest.
$ac_ext >&5
3405 ac_cv_c_char_unsigned
=no
3413 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3414 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3415 cat >> confdefs.h
<<\EOF
3416 #define __CHAR_UNSIGNED__ 1
3422 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3423 echo "configure:3424: checking return type of signal handlers" >&5
3424 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 cat > conftest.
$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 #include <sys/types.h>
3436 extern "C" void (*signal (int, void (*)(int)))(int);
3438 void (*signal ()) ();
3445 if { (eval echo configure
:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447 ac_cv_type_signal
=void
3449 echo "configure: failed program was:" >&5
3450 cat conftest.
$ac_ext >&5
3452 ac_cv_type_signal
=int
3457 echo "$ac_t""$ac_cv_type_signal" 1>&6
3458 cat >> confdefs.h
<<EOF
3459 #define RETSIGTYPE $ac_cv_type_signal
3463 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3464 echo "configure:3465: checking for uid_t in sys/types.h" >&5
3465 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftest.
$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 #include <sys/types.h>
3473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3474 egrep "uid_t" >/dev
/null
2>&1; then
3476 ac_cv_type_uid_t
=yes
3485 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3486 if test $ac_cv_type_uid_t = no
; then
3487 cat >> confdefs.h
<<\EOF
3491 cat >> confdefs.h
<<\EOF
3497 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3498 echo "configure:3499: checking for mode_t" >&5
3499 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 cat > conftest.
$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <sys/types.h>
3511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3512 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3514 ac_cv_type_mode_t
=yes
3517 ac_cv_type_mode_t
=no
3522 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3523 if test $ac_cv_type_mode_t = no
; then
3524 cat >> confdefs.h
<<\EOF
3530 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3531 echo "configure:3532: checking for off_t" >&5
3532 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3535 cat > conftest.
$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 #include <sys/types.h>
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3547 ac_cv_type_off_t
=yes
3555 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3556 if test $ac_cv_type_off_t = no
; then
3557 cat >> confdefs.h
<<\EOF
3563 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3564 echo "configure:3565: checking for size_t" >&5
3565 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 cat > conftest.
$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 #include <sys/types.h>
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3580 ac_cv_type_size_t
=yes
3583 ac_cv_type_size_t
=no
3588 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3589 if test $ac_cv_type_size_t = no
; then
3590 cat >> confdefs.h
<<\EOF
3591 #define size_t unsigned
3596 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3597 echo "configure:3598: checking for pid_t" >&5
3598 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 cat > conftest.
$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 #include <sys/types.h>
3610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3611 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3613 ac_cv_type_pid_t
=yes
3621 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3622 if test $ac_cv_type_pid_t = no
; then
3623 cat >> confdefs.h
<<\EOF
3629 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3630 echo "configure:3631: checking for st_rdev in struct stat" >&5
3631 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 cat > conftest.
$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <sys/types.h>
3638 #include <sys/stat.h>
3640 struct stat s; s.st_rdev;
3643 if { (eval echo configure
:3644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3645 ac_cv_struct_st_rdev
=yes
3647 echo "configure: failed program was:" >&5
3648 cat conftest.
$ac_ext >&5
3650 ac_cv_struct_st_rdev
=no
3655 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3656 if test $ac_cv_struct_st_rdev = yes; then
3657 cat >> confdefs.h
<<\EOF
3658 #define HAVE_ST_RDEV 1
3663 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3664 echo "configure:3665: checking for d_off in dirent" >&5
3665 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 cat > conftest.
$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3673 #include <sys/types.h>
3676 struct dirent d; d.d_off;
3679 if { (eval echo configure
:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3681 ac_cv_dirent_d_off
=yes
3683 echo "configure: failed program was:" >&5
3684 cat conftest.
$ac_ext >&5
3686 ac_cv_dirent_d_off
=no
3691 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3692 if test $ac_cv_dirent_d_off = yes; then
3693 cat >> confdefs.h
<<\EOF
3694 #define HAVE_DIRENT_D_OFF 1
3699 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3700 echo "configure:3701: checking for ino_t" >&5
3701 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 cat > conftest.
$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3716 ac_cv_type_ino_t
=yes
3724 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3725 if test $ac_cv_type_ino_t = no
; then
3726 cat >> confdefs.h
<<\EOF
3727 #define ino_t unsigned
3732 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3733 echo "configure:3734: checking for loff_t" >&5
3734 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.
$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 #include <sys/types.h>
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3749 ac_cv_type_loff_t
=yes
3752 ac_cv_type_loff_t
=no
3757 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3758 if test $ac_cv_type_loff_t = no
; then
3759 cat >> confdefs.h
<<\EOF
3760 #define loff_t off_t
3765 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3766 echo "configure:3767: checking for offset_t" >&5
3767 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 cat > conftest.
$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 #include <sys/types.h>
3779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3780 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3782 ac_cv_type_offset_t
=yes
3785 ac_cv_type_offset_t
=no
3790 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3791 if test $ac_cv_type_offset_t = no
; then
3792 cat >> confdefs.h
<<\EOF
3793 #define offset_t loff_t
3798 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3799 echo "configure:3800: checking for ssize_t" >&5
3800 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.
$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 #include <sys/types.h>
3812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3815 ac_cv_type_ssize_t
=yes
3818 ac_cv_type_ssize_t
=no
3823 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3824 if test $ac_cv_type_ssize_t = no
; then
3825 cat >> confdefs.h
<<\EOF
3831 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3832 echo "configure:3833: checking for wchar_t" >&5
3833 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 cat > conftest.
$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <sys/types.h>
3845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3846 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3848 ac_cv_type_wchar_t
=yes
3851 ac_cv_type_wchar_t
=no
3856 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3857 if test $ac_cv_type_wchar_t = no
; then
3858 cat >> confdefs.h
<<\EOF
3859 #define wchar_t unsigned short
3865 ############################################
3866 # for cups support we need libcups, and a handful of header files
3868 # Check whether --enable-cups or --disable-cups was given.
3869 if test "${enable_cups+set}" = set; then
3870 enableval
="$enable_cups"
3875 if test x
$enable_cups != xno
; then
3876 # Extract the first word of "cups-config", so it can be a program name with args.
3877 set dummy cups-config
; ac_word
=$2
3878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3879 echo "configure:3880: checking for $ac_word" >&5
3880 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3883 case "$CUPS_CONFIG" in
3885 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3888 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3891 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3893 for ac_dir
in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir
=.
3895 if test -f $ac_dir/$ac_word; then
3896 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3904 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3905 if test -n "$CUPS_CONFIG"; then
3906 echo "$ac_t""$CUPS_CONFIG" 1>&6
3908 echo "$ac_t""no" 1>&6
3912 if test "x$CUPS_CONFIG" != x
; then
3913 cat >> confdefs.h
<<\EOF
3917 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3918 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3919 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3923 ############################################
3924 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3925 for ac_func
in dlopen
3927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_func" >&5
3929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 cat > conftest.
$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 /* System header to define __stub macros and hopefully few prototypes,
3936 which can conflict with char $ac_func(); below. */
3938 /* Override any gcc2 internal prototype to avoid an error. */
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3945 /* The GNU C library defines this for functions which it implements
3946 to always fail with ENOSYS. Some functions are actually named
3947 something starting with __ and the normal name is an alias. */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3956 if { (eval echo configure
:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3958 eval "ac_cv_func_$ac_func=yes"
3960 echo "configure: failed program was:" >&5
3961 cat conftest.
$ac_ext >&5
3963 eval "ac_cv_func_$ac_func=no"
3968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3969 echo "$ac_t""yes" 1>&6
3970 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3971 cat >> confdefs.h
<<EOF
3972 #define $ac_tr_func 1
3976 echo "$ac_t""no" 1>&6
3980 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3981 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3982 echo "configure:3983: checking for dlopen in -ldl" >&5
3983 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 ac_save_LIBS
="$LIBS"
3989 cat > conftest.
$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992 /* Override any gcc2 internal prototype to avoid an error. */
3993 /* We use char because int might match the return type of a gcc2
3994 builtin and then its argument prototype would still apply. */
4001 if { (eval echo configure
:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4003 eval "ac_cv_lib_$ac_lib_var=yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4008 eval "ac_cv_lib_$ac_lib_var=no"
4011 LIBS
="$ac_save_LIBS"
4014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4017 cat >> confdefs.h
<<\EOF
4018 #define HAVE_DLOPEN 1
4022 echo "$ac_t""no" 1>&6
4026 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4028 ############################################
4029 # check if the compiler can do immediate structures
4030 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4031 echo "configure:4032: checking for immediate structures" >&5
4032 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4036 cat > conftest.
$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4043 typedef struct {unsigned x;} FOOBAR;
4044 #define X_FOOBAR(x) ((FOOBAR) { x })
4045 #define FOO_ONE X_FOOBAR(1)
4055 if { (eval echo configure
:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 samba_cv_immediate_structures
=yes
4059 echo "configure: failed program was:" >&5
4060 cat conftest.
$ac_ext >&5
4062 samba_cv_immediate_structures
=no
4067 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4068 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
4069 cat >> confdefs.h
<<\EOF
4070 #define HAVE_IMMEDIATE_STRUCTURES 1
4075 ############################################
4076 # check for unix domain sockets
4077 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4078 echo "configure:4079: checking for unix domain sockets" >&5
4079 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4083 cat > conftest.
$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4087 #include <sys/types.h>
4090 #include <sys/socket.h>
4094 struct sockaddr_un sunaddr;
4095 sunaddr.sun_family = AF_UNIX;
4099 if { (eval echo configure
:4100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4101 samba_cv_unixsocket
=yes
4103 echo "configure: failed program was:" >&5
4104 cat conftest.
$ac_ext >&5
4106 samba_cv_unixsocket
=no
4111 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4112 if test x
"$samba_cv_unixsocket" = x
"yes"; then
4113 cat >> confdefs.h
<<\EOF
4114 #define HAVE_UNIXSOCKET 1
4119 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4120 echo "configure:4121: checking for socklen_t type" >&5
4121 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4125 cat > conftest.
$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4129 #include <sys/types.h>
4134 #include <sys/socket.h>
4139 if { (eval echo configure
:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4141 samba_cv_socklen_t
=yes
4143 echo "configure: failed program was:" >&5
4144 cat conftest.
$ac_ext >&5
4146 samba_cv_socklen_t
=no
4151 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4152 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4153 cat >> confdefs.h
<<\EOF
4154 #define HAVE_SOCKLEN_T_TYPE 1
4159 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4160 echo "configure:4161: checking for sig_atomic_t type" >&5
4161 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4169 #include <sys/types.h>
4179 if { (eval echo configure
:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4181 samba_cv_sig_atomic_t
=yes
4183 echo "configure: failed program was:" >&5
4184 cat conftest.
$ac_ext >&5
4186 samba_cv_sig_atomic_t
=no
4191 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4192 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4193 cat >> confdefs.h
<<\EOF
4194 #define HAVE_SIG_ATOMIC_T_TYPE 1
4199 # stupid headers have the functions but no declaration. grrrr.
4201 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4202 echo "configure:4203: checking for errno declaration" >&5
4203 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4207 cat > conftest.
$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4215 if { (eval echo configure
:4216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4217 ac_cv_have_errno_decl
=yes
4219 echo "configure: failed program was:" >&5
4220 cat conftest.
$ac_ext >&5
4222 ac_cv_have_errno_decl
=no
4227 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4228 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4229 cat >> confdefs.h
<<\EOF
4230 #define HAVE_ERRNO_DECL 1
4236 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4237 echo "configure:4238: checking for setresuid declaration" >&5
4238 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4242 cat > conftest.
$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4247 int i = (int)setresuid
4250 if { (eval echo configure
:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4252 ac_cv_have_setresuid_decl
=yes
4254 echo "configure: failed program was:" >&5
4255 cat conftest.
$ac_ext >&5
4257 ac_cv_have_setresuid_decl
=no
4262 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4263 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4264 cat >> confdefs.h
<<\EOF
4265 #define HAVE_SETRESUID_DECL 1
4271 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4272 echo "configure:4273: checking for setresgid declaration" >&5
4273 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4277 cat > conftest.
$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4282 int i = (int)setresgid
4285 if { (eval echo configure
:4286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4287 ac_cv_have_setresgid_decl
=yes
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4292 ac_cv_have_setresgid_decl
=no
4297 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4298 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4299 cat >> confdefs.h
<<\EOF
4300 #define HAVE_SETRESGID_DECL 1
4306 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4307 echo "configure:4308: checking for asprintf declaration" >&5
4308 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4312 cat > conftest.
$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4317 int i = (int)asprintf
4320 if { (eval echo configure
:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322 ac_cv_have_asprintf_decl
=yes
4324 echo "configure: failed program was:" >&5
4325 cat conftest.
$ac_ext >&5
4327 ac_cv_have_asprintf_decl
=no
4332 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4333 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4334 cat >> confdefs.h
<<\EOF
4335 #define HAVE_ASPRINTF_DECL 1
4341 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4342 echo "configure:4343: checking for vasprintf declaration" >&5
4343 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4352 int i = (int)vasprintf
4355 if { (eval echo configure
:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4357 ac_cv_have_vasprintf_decl
=yes
4359 echo "configure: failed program was:" >&5
4360 cat conftest.
$ac_ext >&5
4362 ac_cv_have_vasprintf_decl
=no
4367 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4368 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4369 cat >> confdefs.h
<<\EOF
4370 #define HAVE_VASPRINTF_DECL 1
4376 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4377 echo "configure:4378: checking for vsnprintf declaration" >&5
4378 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4382 cat > conftest.
$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4387 int i = (int)vsnprintf
4390 if { (eval echo configure
:4391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4392 ac_cv_have_vsnprintf_decl
=yes
4394 echo "configure: failed program was:" >&5
4395 cat conftest.
$ac_ext >&5
4397 ac_cv_have_vsnprintf_decl
=no
4402 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4403 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4404 cat >> confdefs.h
<<\EOF
4405 #define HAVE_VSNPRINTF_DECL 1
4411 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4412 echo "configure:4413: checking for snprintf declaration" >&5
4413 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4417 cat > conftest.
$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4422 int i = (int)snprintf
4425 if { (eval echo configure
:4426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4427 ac_cv_have_snprintf_decl
=yes
4429 echo "configure: failed program was:" >&5
4430 cat conftest.
$ac_ext >&5
4432 ac_cv_have_snprintf_decl
=no
4437 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4438 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4439 cat >> confdefs.h
<<\EOF
4440 #define HAVE_SNPRINTF_DECL 1
4446 # and glibc has setresuid under linux but the function does
4447 # nothing until kernel 2.1.44! very dumb.
4448 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4449 echo "configure:4450: checking for real setresuid" >&5
4450 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4454 if test "$cross_compiling" = yes; then
4455 samba_cv_have_setresuid
=cross
4457 cat > conftest.
$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4461 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4463 if { (eval echo configure
:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4465 samba_cv_have_setresuid
=yes
4467 echo "configure: failed program was:" >&5
4468 cat conftest.
$ac_ext >&5
4470 samba_cv_have_setresuid
=no
4477 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4478 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4479 cat >> confdefs.h
<<\EOF
4480 #define HAVE_SETRESUID 1
4485 # Do the same check for setresguid...
4487 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4488 echo "configure:4489: checking for real setresgid" >&5
4489 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4493 if test "$cross_compiling" = yes; then
4494 samba_cv_have_setresgid
=cross
4496 cat > conftest.
$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4501 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4503 if { (eval echo configure
:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4505 samba_cv_have_setresgid
=yes
4507 echo "configure: failed program was:" >&5
4508 cat conftest.
$ac_ext >&5
4510 samba_cv_have_setresgid
=no
4517 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4518 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4519 cat >> confdefs.h
<<\EOF
4520 #define HAVE_SETRESGID 1
4525 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4526 echo "configure:4527: checking for 8-bit clean memcmp" >&5
4527 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 if test "$cross_compiling" = yes; then
4531 ac_cv_func_memcmp_clean
=no
4533 cat > conftest.
$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4539 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4540 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4544 if { (eval echo configure
:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4546 ac_cv_func_memcmp_clean
=yes
4548 echo "configure: failed program was:" >&5
4549 cat conftest.
$ac_ext >&5
4551 ac_cv_func_memcmp_clean
=no
4558 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4559 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4562 ###############################################
4563 # Readline included by default unless explicitly asked not to
4564 test "${with_readline+set}" != "set" && with_readline
=yes
4566 # test for where we get readline() from
4567 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4568 echo "configure:4569: checking whether to use readline" >&5
4569 # Check whether --with-readline or --without-readline was given.
4570 if test "${with_readline+set}" = set; then
4571 withval
="$with_readline"
4572 case "$with_readline" in
4574 echo "$ac_t""yes" 1>&6
4576 for ac_hdr
in readline.h
history.h readline
/readline.h
4578 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_hdr" >&5
4581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 cat > conftest.
$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4589 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4590 { (eval echo configure
:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4591 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4592 if test -z "$ac_err"; then
4594 eval "ac_cv_header_$ac_safe=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.
$ac_ext >&5
4600 eval "ac_cv_header_$ac_safe=no"
4604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4607 cat >> confdefs.h
<<EOF
4608 #define $ac_tr_hdr 1
4612 echo "$ac_t""no" 1>&6
4616 for ac_hdr
in readline
/history.h
4618 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_hdr" >&5
4621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.
$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4629 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4630 { (eval echo configure
:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4631 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4632 if test -z "$ac_err"; then
4634 eval "ac_cv_header_$ac_safe=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.
$ac_ext >&5
4640 eval "ac_cv_header_$ac_safe=no"
4644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4647 cat >> confdefs.h
<<EOF
4648 #define $ac_tr_hdr 1
4652 echo "$ac_t""no" 1>&6
4657 for ac_hdr
in readline.h readline
/readline.h
4659 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4661 echo "configure:4662: checking for $ac_hdr" >&5
4662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 cat > conftest.
$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4670 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4671 { (eval echo configure
:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4672 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4673 if test -z "$ac_err"; then
4675 eval "ac_cv_header_$ac_safe=yes"
4678 echo "configure: failed program was:" >&5
4679 cat conftest.
$ac_ext >&5
4681 eval "ac_cv_header_$ac_safe=no"
4685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4688 cat >> confdefs.h
<<EOF
4689 #define $ac_tr_hdr 1
4692 for termlib
in ncurses curses termcap terminfo termlib
; do
4693 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4694 echo "configure:4695: checking for tgetent in -l${termlib}" >&5
4695 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 ac_save_LIBS
="$LIBS"
4700 LIBS
="-l${termlib} $LIBS"
4701 cat > conftest.
$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 /* Override any gcc2 internal prototype to avoid an error. */
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4713 if { (eval echo configure
:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4715 eval "ac_cv_lib_$ac_lib_var=yes"
4717 echo "configure: failed program was:" >&5
4718 cat conftest.
$ac_ext >&5
4720 eval "ac_cv_lib_$ac_lib_var=no"
4723 LIBS
="$ac_save_LIBS"
4726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4727 echo "$ac_t""yes" 1>&6
4728 TERMLIBS
="-l${termlib}"; break
4730 echo "$ac_t""no" 1>&6
4734 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4735 echo "configure:4736: checking for rl_callback_handler_install in -lreadline" >&5
4736 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 ac_save_LIBS
="$LIBS"
4741 LIBS
="-lreadline $TERMLIBS $LIBS"
4742 cat > conftest.
$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4745 /* Override any gcc2 internal prototype to avoid an error. */
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4748 char rl_callback_handler_install();
4751 rl_callback_handler_install()
4754 if { (eval echo configure
:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4756 eval "ac_cv_lib_$ac_lib_var=yes"
4758 echo "configure: failed program was:" >&5
4759 cat conftest.
$ac_ext >&5
4761 eval "ac_cv_lib_$ac_lib_var=no"
4764 LIBS
="$ac_save_LIBS"
4767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4768 echo "$ac_t""yes" 1>&6
4769 TERMLIBS
="-lreadline $TERMLIBS"
4770 cat >> confdefs.h
<<\EOF
4771 #define HAVE_LIBREADLINE 1
4776 echo "$ac_t""no" 1>&6
4781 echo "$ac_t""no" 1>&6
4787 echo "$ac_t""no" 1>&6
4790 echo "$ac_t""yes" 1>&6
4792 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4793 # alternate readline path
4795 _cppflags
=${CPPFLAGS}
4797 # Add additional search path
4798 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4799 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4801 for ac_hdr
in readline.h
history.h readline
/readline.h
4803 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4805 echo "configure:4806: checking for $ac_hdr" >&5
4806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4809 cat > conftest.
$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4814 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4815 { (eval echo configure
:4816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4816 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4817 if test -z "$ac_err"; then
4819 eval "ac_cv_header_$ac_safe=yes"
4822 echo "configure: failed program was:" >&5
4823 cat conftest.
$ac_ext >&5
4825 eval "ac_cv_header_$ac_safe=no"
4829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4831 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4832 cat >> confdefs.h
<<EOF
4833 #define $ac_tr_hdr 1
4837 echo "$ac_t""no" 1>&6
4841 for ac_hdr
in readline
/history.h
4843 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_hdr" >&5
4846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 cat > conftest.
$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4855 { (eval echo configure
:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4857 if test -z "$ac_err"; then
4859 eval "ac_cv_header_$ac_safe=yes"
4862 echo "configure: failed program was:" >&5
4863 cat conftest.
$ac_ext >&5
4865 eval "ac_cv_header_$ac_safe=no"
4869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4872 cat >> confdefs.h
<<EOF
4873 #define $ac_tr_hdr 1
4877 echo "$ac_t""no" 1>&6
4882 for ac_hdr
in readline.h readline
/readline.h
4884 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_hdr" >&5
4887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.
$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4895 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4896 { (eval echo configure
:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4897 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4898 if test -z "$ac_err"; then
4900 eval "ac_cv_header_$ac_safe=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.
$ac_ext >&5
4906 eval "ac_cv_header_$ac_safe=no"
4910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4913 cat >> confdefs.h
<<EOF
4914 #define $ac_tr_hdr 1
4917 for termlib
in ncurses curses termcap terminfo termlib
; do
4918 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4919 echo "configure:4920: checking for tgetent in -l${termlib}" >&5
4920 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 ac_save_LIBS
="$LIBS"
4925 LIBS
="-l${termlib} $LIBS"
4926 cat > conftest.
$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4938 if { (eval echo configure
:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4940 eval "ac_cv_lib_$ac_lib_var=yes"
4942 echo "configure: failed program was:" >&5
4943 cat conftest.
$ac_ext >&5
4945 eval "ac_cv_lib_$ac_lib_var=no"
4948 LIBS
="$ac_save_LIBS"
4951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 TERMLIBS
="-l${termlib}"; break
4955 echo "$ac_t""no" 1>&6
4959 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4960 echo "configure:4961: checking for rl_callback_handler_install in -lreadline" >&5
4961 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 ac_save_LIBS
="$LIBS"
4966 LIBS
="-lreadline $TERMLIBS $LIBS"
4967 cat > conftest.
$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4973 char rl_callback_handler_install();
4976 rl_callback_handler_install()
4979 if { (eval echo configure
:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4981 eval "ac_cv_lib_$ac_lib_var=yes"
4983 echo "configure: failed program was:" >&5
4984 cat conftest.
$ac_ext >&5
4986 eval "ac_cv_lib_$ac_lib_var=no"
4989 LIBS
="$ac_save_LIBS"
4992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4993 echo "$ac_t""yes" 1>&6
4994 TERMLDFLAGS
="-L$with_readline/lib"
4995 TERMCPPFLAGS
="-I$with_readline/include"
4996 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4997 TERMLIBS
="-lreadline $TERMLIBS"
4998 cat >> confdefs.h
<<\EOF
4999 #define HAVE_LIBREADLINE 1
5004 echo "$ac_t""no" 1>&6
5005 TERMLIBS
= CPPFLAGS
=$_cppflags
5009 echo "$ac_t""no" 1>&6
5018 echo "$ac_t""no" 1>&6
5025 # The following test taken from the cvs sources
5026 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5027 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5028 # libsocket.so which has a bad implementation of gethostbyname (it
5029 # only looks in /etc/hosts), so we only look for -lsocket if we need
5031 for ac_func
in connect
5033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5034 echo "configure:5035: checking for $ac_func" >&5
5035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 cat > conftest.
$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 /* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char $ac_func(); below. */
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5051 /* The GNU C library defines this for functions which it implements
5052 to always fail with ENOSYS. Some functions are actually named
5053 something starting with __ and the normal name is an alias. */
5054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5062 if { (eval echo configure
:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5064 eval "ac_cv_func_$ac_func=yes"
5066 echo "configure: failed program was:" >&5
5067 cat conftest.
$ac_ext >&5
5069 eval "ac_cv_func_$ac_func=no"
5074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5076 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5077 cat >> confdefs.h
<<EOF
5078 #define $ac_tr_func 1
5082 echo "$ac_t""no" 1>&6
5086 if test x
"$ac_cv_func_connect" = x
"no"; then
5089 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5090 echo "configure:5091: checking for printf in -lnsl_s" >&5
5091 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5095 ac_save_LIBS
="$LIBS"
5096 LIBS
="-lnsl_s $LIBS"
5097 cat > conftest.
$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5100 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5109 if { (eval echo configure
:5110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5111 eval "ac_cv_lib_$ac_lib_var=yes"
5113 echo "configure: failed program was:" >&5
5114 cat conftest.
$ac_ext >&5
5116 eval "ac_cv_lib_$ac_lib_var=no"
5119 LIBS
="$ac_save_LIBS"
5122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5123 echo "$ac_t""yes" 1>&6
5124 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5126 cat >> confdefs.h
<<EOF
5127 #define $ac_tr_lib 1
5130 LIBS
="-lnsl_s $LIBS"
5133 echo "$ac_t""no" 1>&6
5139 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5140 echo "configure:5141: checking for printf in -lnsl" >&5
5141 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 ac_save_LIBS
="$LIBS"
5147 cat > conftest.
$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150 /* Override any gcc2 internal prototype to avoid an error. */
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5159 if { (eval echo configure
:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5161 eval "ac_cv_lib_$ac_lib_var=yes"
5163 echo "configure: failed program was:" >&5
5164 cat conftest.
$ac_ext >&5
5166 eval "ac_cv_lib_$ac_lib_var=no"
5169 LIBS
="$ac_save_LIBS"
5172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5173 echo "$ac_t""yes" 1>&6
5174 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5176 cat >> confdefs.h
<<EOF
5177 #define $ac_tr_lib 1
5183 echo "$ac_t""no" 1>&6
5189 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5190 echo "configure:5191: checking for connect in -lsocket" >&5
5191 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 ac_save_LIBS
="$LIBS"
5196 LIBS
="-lsocket $LIBS"
5197 cat > conftest.
$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5209 if { (eval echo configure
:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5211 eval "ac_cv_lib_$ac_lib_var=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.
$ac_ext >&5
5216 eval "ac_cv_lib_$ac_lib_var=no"
5219 LIBS
="$ac_save_LIBS"
5222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5226 cat >> confdefs.h
<<EOF
5227 #define $ac_tr_lib 1
5230 LIBS
="-lsocket $LIBS"
5233 echo "$ac_t""no" 1>&6
5239 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5240 echo "configure:5241: checking for connect in -linet" >&5
5241 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 ac_save_LIBS
="$LIBS"
5247 cat > conftest.
$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5259 if { (eval echo configure
:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5261 eval "ac_cv_lib_$ac_lib_var=yes"
5263 echo "configure: failed program was:" >&5
5264 cat conftest.
$ac_ext >&5
5266 eval "ac_cv_lib_$ac_lib_var=no"
5269 LIBS
="$ac_save_LIBS"
5272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5273 echo "$ac_t""yes" 1>&6
5274 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5276 cat >> confdefs.h
<<EOF
5277 #define $ac_tr_lib 1
5283 echo "$ac_t""no" 1>&6
5287 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5288 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5289 # ac_cv_func_connect=yes
5290 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5291 cat >> confdefs.h
<<\EOF
5292 #define HAVE_CONNECT 1
5298 ###############################################
5299 # test for where we get get_yp_default_domain() from
5300 for ac_func
in yp_get_default_domain
5302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5303 echo "configure:5304: checking for $ac_func" >&5
5304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 cat > conftest.
$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5310 /* System header to define __stub macros and hopefully few prototypes,
5311 which can conflict with char $ac_func(); below. */
5313 /* Override any gcc2 internal prototype to avoid an error. */
5314 /* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5320 /* The GNU C library defines this for functions which it implements
5321 to always fail with ENOSYS. Some functions are actually named
5322 something starting with __ and the normal name is an alias. */
5323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5331 if { (eval echo configure
:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5333 eval "ac_cv_func_$ac_func=yes"
5335 echo "configure: failed program was:" >&5
5336 cat conftest.
$ac_ext >&5
5338 eval "ac_cv_func_$ac_func=no"
5343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5344 echo "$ac_t""yes" 1>&6
5345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5346 cat >> confdefs.h
<<EOF
5347 #define $ac_tr_func 1
5351 echo "$ac_t""no" 1>&6
5355 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5356 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5357 echo "configure:5358: checking for yp_get_default_domain in -lnsl" >&5
5358 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5362 ac_save_LIBS
="$LIBS"
5364 cat > conftest.
$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5367 /* Override any gcc2 internal prototype to avoid an error. */
5368 /* We use char because int might match the return type of a gcc2
5369 builtin and then its argument prototype would still apply. */
5370 char yp_get_default_domain();
5373 yp_get_default_domain()
5376 if { (eval echo configure
:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5378 eval "ac_cv_lib_$ac_lib_var=yes"
5380 echo "configure: failed program was:" >&5
5381 cat conftest.
$ac_ext >&5
5383 eval "ac_cv_lib_$ac_lib_var=no"
5386 LIBS
="$ac_save_LIBS"
5389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5392 cat >> confdefs.h
<<\EOF
5393 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5397 echo "$ac_t""no" 1>&6
5402 # Check if we have execl, if not we need to compile smbrun.
5403 for ac_func
in execl
5405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5406 echo "configure:5407: checking for $ac_func" >&5
5407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 cat > conftest.
$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char $ac_func(); below. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5423 /* The GNU C library defines this for functions which it implements
5424 to always fail with ENOSYS. Some functions are actually named
5425 something starting with __ and the normal name is an alias. */
5426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5434 if { (eval echo configure
:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5436 eval "ac_cv_func_$ac_func=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.
$ac_ext >&5
5441 eval "ac_cv_func_$ac_func=no"
5446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5449 cat >> confdefs.h
<<EOF
5450 #define $ac_tr_func 1
5454 echo "$ac_t""no" 1>&6
5458 if test x
"$ac_cv_func_execl" = x
"no"; then
5459 RUNPROG
="bin/smbrun\$(EXEEXT)"
5464 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5467 echo "configure:5468: checking for $ac_func" >&5
5468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 cat > conftest.
$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char $ac_func(); below. */
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5484 /* The GNU C library defines this for functions which it implements
5485 to always fail with ENOSYS. Some functions are actually named
5486 something starting with __ and the normal name is an alias. */
5487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5495 if { (eval echo configure
:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5497 eval "ac_cv_func_$ac_func=yes"
5499 echo "configure: failed program was:" >&5
5500 cat conftest.
$ac_ext >&5
5502 eval "ac_cv_func_$ac_func=no"
5507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5510 cat >> confdefs.h
<<EOF
5511 #define $ac_tr_func 1
5515 echo "$ac_t""no" 1>&6
5519 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5522 echo "configure:5523: checking for $ac_func" >&5
5523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 cat > conftest.
$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 /* System header to define __stub macros and hopefully few prototypes,
5530 which can conflict with char $ac_func(); below. */
5532 /* Override any gcc2 internal prototype to avoid an error. */
5533 /* We use char because int might match the return type of a gcc2
5534 builtin and then its argument prototype would still apply. */
5539 /* The GNU C library defines this for functions which it implements
5540 to always fail with ENOSYS. Some functions are actually named
5541 something starting with __ and the normal name is an alias. */
5542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5550 if { (eval echo configure
:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5552 eval "ac_cv_func_$ac_func=yes"
5554 echo "configure: failed program was:" >&5
5555 cat conftest.
$ac_ext >&5
5557 eval "ac_cv_func_$ac_func=no"
5562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5563 echo "$ac_t""yes" 1>&6
5564 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5565 cat >> confdefs.h
<<EOF
5566 #define $ac_tr_func 1
5570 echo "$ac_t""no" 1>&6
5574 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5577 echo "configure:5578: checking for $ac_func" >&5
5578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5581 cat > conftest.
$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 /* System header to define __stub macros and hopefully few prototypes,
5585 which can conflict with char $ac_func(); below. */
5587 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5605 if { (eval echo configure
:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5607 eval "ac_cv_func_$ac_func=yes"
5609 echo "configure: failed program was:" >&5
5610 cat conftest.
$ac_ext >&5
5612 eval "ac_cv_func_$ac_func=no"
5617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5620 cat >> confdefs.h
<<EOF
5621 #define $ac_tr_func 1
5625 echo "$ac_t""no" 1>&6
5629 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5632 echo "configure:5633: checking for $ac_func" >&5
5633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5636 cat > conftest.
$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 /* System header to define __stub macros and hopefully few prototypes,
5640 which can conflict with char $ac_func(); below. */
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5649 /* The GNU C library defines this for functions which it implements
5650 to always fail with ENOSYS. Some functions are actually named
5651 something starting with __ and the normal name is an alias. */
5652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5660 if { (eval echo configure
:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5662 eval "ac_cv_func_$ac_func=yes"
5664 echo "configure: failed program was:" >&5
5665 cat conftest.
$ac_ext >&5
5667 eval "ac_cv_func_$ac_func=no"
5672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5673 echo "$ac_t""yes" 1>&6
5674 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5675 cat >> confdefs.h
<<EOF
5676 #define $ac_tr_func 1
5680 echo "$ac_t""no" 1>&6
5684 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5687 echo "configure:5688: checking for $ac_func" >&5
5688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 cat > conftest.
$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 /* System header to define __stub macros and hopefully few prototypes,
5695 which can conflict with char $ac_func(); below. */
5697 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5704 /* The GNU C library defines this for functions which it implements
5705 to always fail with ENOSYS. Some functions are actually named
5706 something starting with __ and the normal name is an alias. */
5707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5715 if { (eval echo configure
:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5717 eval "ac_cv_func_$ac_func=yes"
5719 echo "configure: failed program was:" >&5
5720 cat conftest.
$ac_ext >&5
5722 eval "ac_cv_func_$ac_func=no"
5727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5728 echo "$ac_t""yes" 1>&6
5729 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5730 cat >> confdefs.h
<<EOF
5731 #define $ac_tr_func 1
5735 echo "$ac_t""no" 1>&6
5739 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5742 echo "configure:5743: checking for $ac_func" >&5
5743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5746 cat > conftest.
$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5749 /* System header to define __stub macros and hopefully few prototypes,
5750 which can conflict with char $ac_func(); below. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5759 /* The GNU C library defines this for functions which it implements
5760 to always fail with ENOSYS. Some functions are actually named
5761 something starting with __ and the normal name is an alias. */
5762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5770 if { (eval echo configure
:5771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5772 eval "ac_cv_func_$ac_func=yes"
5774 echo "configure: failed program was:" >&5
5775 cat conftest.
$ac_ext >&5
5777 eval "ac_cv_func_$ac_func=no"
5782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5783 echo "$ac_t""yes" 1>&6
5784 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5785 cat >> confdefs.h
<<EOF
5786 #define $ac_tr_func 1
5790 echo "$ac_t""no" 1>&6
5794 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_func" >&5
5798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 cat > conftest.
$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5804 /* System header to define __stub macros and hopefully few prototypes,
5805 which can conflict with char $ac_func(); below. */
5807 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5814 /* The GNU C library defines this for functions which it implements
5815 to always fail with ENOSYS. Some functions are actually named
5816 something starting with __ and the normal name is an alias. */
5817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5825 if { (eval echo configure
:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5827 eval "ac_cv_func_$ac_func=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.
$ac_ext >&5
5832 eval "ac_cv_func_$ac_func=no"
5837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5840 cat >> confdefs.h
<<EOF
5841 #define $ac_tr_func 1
5845 echo "$ac_t""no" 1>&6
5849 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5852 echo "configure:5853: checking for $ac_func" >&5
5853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 cat > conftest.
$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 /* System header to define __stub macros and hopefully few prototypes,
5860 which can conflict with char $ac_func(); below. */
5862 /* Override any gcc2 internal prototype to avoid an error. */
5863 /* We use char because int might match the return type of a gcc2
5864 builtin and then its argument prototype would still apply. */
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5880 if { (eval echo configure
:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5882 eval "ac_cv_func_$ac_func=yes"
5884 echo "configure: failed program was:" >&5
5885 cat conftest.
$ac_ext >&5
5887 eval "ac_cv_func_$ac_func=no"
5892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5893 echo "$ac_t""yes" 1>&6
5894 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5895 cat >> confdefs.h
<<EOF
5896 #define $ac_tr_func 1
5900 echo "$ac_t""no" 1>&6
5904 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5907 echo "configure:5908: checking for $ac_func" >&5
5908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5911 cat > conftest.
$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 /* System header to define __stub macros and hopefully few prototypes,
5915 which can conflict with char $ac_func(); below. */
5917 /* Override any gcc2 internal prototype to avoid an error. */
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5924 /* The GNU C library defines this for functions which it implements
5925 to always fail with ENOSYS. Some functions are actually named
5926 something starting with __ and the normal name is an alias. */
5927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5935 if { (eval echo configure
:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5937 eval "ac_cv_func_$ac_func=yes"
5939 echo "configure: failed program was:" >&5
5940 cat conftest.
$ac_ext >&5
5942 eval "ac_cv_func_$ac_func=no"
5947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5948 echo "$ac_t""yes" 1>&6
5949 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5950 cat >> confdefs.h
<<EOF
5951 #define $ac_tr_func 1
5955 echo "$ac_t""no" 1>&6
5959 for ac_func
in syslog vsyslog
5961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5962 echo "configure:5963: checking for $ac_func" >&5
5963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5966 cat > conftest.
$ac_ext <<EOF
5967 #line 5968 "configure"
5968 #include "confdefs.h"
5969 /* System header to define __stub macros and hopefully few prototypes,
5970 which can conflict with char $ac_func(); below. */
5972 /* Override any gcc2 internal prototype to avoid an error. */
5973 /* We use char because int might match the return type of a gcc2
5974 builtin and then its argument prototype would still apply. */
5979 /* The GNU C library defines this for functions which it implements
5980 to always fail with ENOSYS. Some functions are actually named
5981 something starting with __ and the normal name is an alias. */
5982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5990 if { (eval echo configure
:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5992 eval "ac_cv_func_$ac_func=yes"
5994 echo "configure: failed program was:" >&5
5995 cat conftest.
$ac_ext >&5
5997 eval "ac_cv_func_$ac_func=no"
6002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6005 cat >> confdefs.h
<<EOF
6006 #define $ac_tr_func 1
6010 echo "$ac_t""no" 1>&6
6015 # syscall() is needed for smbwrapper.
6016 for ac_func
in syscall
6018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6019 echo "configure:6020: checking for $ac_func" >&5
6020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6023 cat > conftest.
$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char $ac_func(); below. */
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6047 if { (eval echo configure
:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6049 eval "ac_cv_func_$ac_func=yes"
6051 echo "configure: failed program was:" >&5
6052 cat conftest.
$ac_ext >&5
6054 eval "ac_cv_func_$ac_func=no"
6059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6062 cat >> confdefs.h
<<EOF
6063 #define $ac_tr_func 1
6067 echo "$ac_t""no" 1>&6
6072 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6075 echo "configure:6076: checking for $ac_func" >&5
6076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6079 cat > conftest.
$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6082 /* System header to define __stub macros and hopefully few prototypes,
6083 which can conflict with char $ac_func(); below. */
6085 /* Override any gcc2 internal prototype to avoid an error. */
6086 /* We use char because int might match the return type of a gcc2
6087 builtin and then its argument prototype would still apply. */
6092 /* The GNU C library defines this for functions which it implements
6093 to always fail with ENOSYS. Some functions are actually named
6094 something starting with __ and the normal name is an alias. */
6095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6103 if { (eval echo configure
:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6105 eval "ac_cv_func_$ac_func=yes"
6107 echo "configure: failed program was:" >&5
6108 cat conftest.
$ac_ext >&5
6110 eval "ac_cv_func_$ac_func=no"
6115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6116 echo "$ac_t""yes" 1>&6
6117 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6118 cat >> confdefs.h
<<EOF
6119 #define $ac_tr_func 1
6123 echo "$ac_t""no" 1>&6
6127 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_func" >&5
6131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.
$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func(); below. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6147 /* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6158 if { (eval echo configure
:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6160 eval "ac_cv_func_$ac_func=yes"
6162 echo "configure: failed program was:" >&5
6163 cat conftest.
$ac_ext >&5
6165 eval "ac_cv_func_$ac_func=no"
6170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6172 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6173 cat >> confdefs.h
<<EOF
6174 #define $ac_tr_func 1
6178 echo "$ac_t""no" 1>&6
6182 for ac_func
in __getcwd _getcwd
6184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6185 echo "configure:6186: checking for $ac_func" >&5
6186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6189 cat > conftest.
$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char $ac_func(); below. */
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */
6202 /* The GNU C library defines this for functions which it implements
6203 to always fail with ENOSYS. Some functions are actually named
6204 something starting with __ and the normal name is an alias. */
6205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6213 if { (eval echo configure
:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6215 eval "ac_cv_func_$ac_func=yes"
6217 echo "configure: failed program was:" >&5
6218 cat conftest.
$ac_ext >&5
6220 eval "ac_cv_func_$ac_func=no"
6225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6226 echo "$ac_t""yes" 1>&6
6227 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6228 cat >> confdefs.h
<<EOF
6229 #define $ac_tr_func 1
6233 echo "$ac_t""no" 1>&6
6237 for ac_func
in __xstat __fxstat __lxstat
6239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6240 echo "configure:6241: checking for $ac_func" >&5
6241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6244 cat > conftest.
$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char $ac_func(); below. */
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6257 /* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6268 if { (eval echo configure
:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6270 eval "ac_cv_func_$ac_func=yes"
6272 echo "configure: failed program was:" >&5
6273 cat conftest.
$ac_ext >&5
6275 eval "ac_cv_func_$ac_func=no"
6280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6282 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6283 cat >> confdefs.h
<<EOF
6284 #define $ac_tr_func 1
6288 echo "$ac_t""no" 1>&6
6292 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_func" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 cat > conftest.
$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char $ac_func(); below. */
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6323 if { (eval echo configure
:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6325 eval "ac_cv_func_$ac_func=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.
$ac_ext >&5
6330 eval "ac_cv_func_$ac_func=no"
6335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6338 cat >> confdefs.h
<<EOF
6339 #define $ac_tr_func 1
6343 echo "$ac_t""no" 1>&6
6347 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6350 echo "configure:6351: checking for $ac_func" >&5
6351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6354 cat > conftest.
$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func(); below. */
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6367 /* The GNU C library defines this for functions which it implements
6368 to always fail with ENOSYS. Some functions are actually named
6369 something starting with __ and the normal name is an alias. */
6370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6378 if { (eval echo configure
:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6380 eval "ac_cv_func_$ac_func=yes"
6382 echo "configure: failed program was:" >&5
6383 cat conftest.
$ac_ext >&5
6385 eval "ac_cv_func_$ac_func=no"
6390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6391 echo "$ac_t""yes" 1>&6
6392 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6393 cat >> confdefs.h
<<EOF
6394 #define $ac_tr_func 1
6398 echo "$ac_t""no" 1>&6
6402 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6405 echo "configure:6406: checking for $ac_func" >&5
6406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6407 echo $ac_n "(cached) $ac_c" 1>&6
6409 cat > conftest.
$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* System header to define __stub macros and hopefully few prototypes,
6413 which can conflict with char $ac_func(); below. */
6415 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6422 /* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6433 if { (eval echo configure
:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6435 eval "ac_cv_func_$ac_func=yes"
6437 echo "configure: failed program was:" >&5
6438 cat conftest.
$ac_ext >&5
6440 eval "ac_cv_func_$ac_func=no"
6445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6446 echo "$ac_t""yes" 1>&6
6447 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6448 cat >> confdefs.h
<<EOF
6449 #define $ac_tr_func 1
6453 echo "$ac_t""no" 1>&6
6457 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6460 echo "configure:6461: checking for $ac_func" >&5
6461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6464 cat > conftest.
$ac_ext <<EOF
6465 #line 6466 "configure"
6466 #include "confdefs.h"
6467 /* System header to define __stub macros and hopefully few prototypes,
6468 which can conflict with char $ac_func(); below. */
6470 /* Override any gcc2 internal prototype to avoid an error. */
6471 /* We use char because int might match the return type of a gcc2
6472 builtin and then its argument prototype would still apply. */
6477 /* The GNU C library defines this for functions which it implements
6478 to always fail with ENOSYS. Some functions are actually named
6479 something starting with __ and the normal name is an alias. */
6480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6488 if { (eval echo configure
:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6490 eval "ac_cv_func_$ac_func=yes"
6492 echo "configure: failed program was:" >&5
6493 cat conftest.
$ac_ext >&5
6495 eval "ac_cv_func_$ac_func=no"
6500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6501 echo "$ac_t""yes" 1>&6
6502 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6503 cat >> confdefs.h
<<EOF
6504 #define $ac_tr_func 1
6508 echo "$ac_t""no" 1>&6
6512 for ac_func
in _write __write _fork __fork
6514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6515 echo "configure:6516: checking for $ac_func" >&5
6516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6517 echo $ac_n "(cached) $ac_c" 1>&6
6519 cat > conftest.
$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6522 /* System header to define __stub macros and hopefully few prototypes,
6523 which can conflict with char $ac_func(); below. */
6525 /* Override any gcc2 internal prototype to avoid an error. */
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6532 /* The GNU C library defines this for functions which it implements
6533 to always fail with ENOSYS. Some functions are actually named
6534 something starting with __ and the normal name is an alias. */
6535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6543 if { (eval echo configure
:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6545 eval "ac_cv_func_$ac_func=yes"
6547 echo "configure: failed program was:" >&5
6548 cat conftest.
$ac_ext >&5
6550 eval "ac_cv_func_$ac_func=no"
6555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6557 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6558 cat >> confdefs.h
<<EOF
6559 #define $ac_tr_func 1
6563 echo "$ac_t""no" 1>&6
6567 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6570 echo "configure:6571: checking for $ac_func" >&5
6571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 cat > conftest.
$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 /* System header to define __stub macros and hopefully few prototypes,
6578 which can conflict with char $ac_func(); below. */
6580 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6587 /* The GNU C library defines this for functions which it implements
6588 to always fail with ENOSYS. Some functions are actually named
6589 something starting with __ and the normal name is an alias. */
6590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6598 if { (eval echo configure
:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6600 eval "ac_cv_func_$ac_func=yes"
6602 echo "configure: failed program was:" >&5
6603 cat conftest.
$ac_ext >&5
6605 eval "ac_cv_func_$ac_func=no"
6610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6613 cat >> confdefs.h
<<EOF
6614 #define $ac_tr_func 1
6618 echo "$ac_t""no" 1>&6
6622 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6625 echo "configure:6626: checking for $ac_func" >&5
6626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6629 cat > conftest.
$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6632 /* System header to define __stub macros and hopefully few prototypes,
6633 which can conflict with char $ac_func(); below. */
6635 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6642 /* The GNU C library defines this for functions which it implements
6643 to always fail with ENOSYS. Some functions are actually named
6644 something starting with __ and the normal name is an alias. */
6645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6653 if { (eval echo configure
:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6655 eval "ac_cv_func_$ac_func=yes"
6657 echo "configure: failed program was:" >&5
6658 cat conftest.
$ac_ext >&5
6660 eval "ac_cv_func_$ac_func=no"
6665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6666 echo "$ac_t""yes" 1>&6
6667 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6668 cat >> confdefs.h
<<EOF
6669 #define $ac_tr_func 1
6673 echo "$ac_t""no" 1>&6
6677 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6680 echo "configure:6681: checking for $ac_func" >&5
6681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 cat > conftest.
$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func(); below. */
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6708 if { (eval echo configure
:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6710 eval "ac_cv_func_$ac_func=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.
$ac_ext >&5
6715 eval "ac_cv_func_$ac_func=no"
6720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6723 cat >> confdefs.h
<<EOF
6724 #define $ac_tr_func 1
6728 echo "$ac_t""no" 1>&6
6732 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6735 echo "configure:6736: checking for $ac_func" >&5
6736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6739 cat > conftest.
$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6742 /* System header to define __stub macros and hopefully few prototypes,
6743 which can conflict with char $ac_func(); below. */
6745 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6752 /* The GNU C library defines this for functions which it implements
6753 to always fail with ENOSYS. Some functions are actually named
6754 something starting with __ and the normal name is an alias. */
6755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6763 if { (eval echo configure
:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6765 eval "ac_cv_func_$ac_func=yes"
6767 echo "configure: failed program was:" >&5
6768 cat conftest.
$ac_ext >&5
6770 eval "ac_cv_func_$ac_func=no"
6775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6776 echo "$ac_t""yes" 1>&6
6777 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6778 cat >> confdefs.h
<<EOF
6779 #define $ac_tr_func 1
6783 echo "$ac_t""no" 1>&6
6787 for ac_func
in open64 _open64 __open64 creat64
6789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6790 echo "configure:6791: checking for $ac_func" >&5
6791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6794 cat > conftest.
$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* System header to define __stub macros and hopefully few prototypes,
6798 which can conflict with char $ac_func(); below. */
6800 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6807 /* The GNU C library defines this for functions which it implements
6808 to always fail with ENOSYS. Some functions are actually named
6809 something starting with __ and the normal name is an alias. */
6810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6818 if { (eval echo configure
:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6820 eval "ac_cv_func_$ac_func=yes"
6822 echo "configure: failed program was:" >&5
6823 cat conftest.
$ac_ext >&5
6825 eval "ac_cv_func_$ac_func=no"
6830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6831 echo "$ac_t""yes" 1>&6
6832 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6833 cat >> confdefs.h
<<EOF
6834 #define $ac_tr_func 1
6838 echo "$ac_t""no" 1>&6
6844 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6847 if test x
$ac_cv_func_stat64 = xno
; then
6848 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6849 echo "configure:6850: checking for stat64 in <sys/stat.h>" >&5
6850 cat > conftest.
$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6854 #if defined(HAVE_UNISTD_H)
6857 #include <sys/stat.h>
6860 struct stat64 st64; exit(stat64(".",&st64));
6863 if { (eval echo configure
:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6865 ac_cv_func_stat64
=yes
6867 echo "configure: failed program was:" >&5
6868 cat conftest.
$ac_ext >&5
6871 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6872 if test x
$ac_cv_func_stat64 = xyes
; then
6873 cat >> confdefs.h
<<\EOF
6874 #define HAVE_STAT64 1
6880 if test x
$ac_cv_func_lstat64 = xno
; then
6881 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6882 echo "configure:6883: checking for lstat64 in <sys/stat.h>" >&5
6883 cat > conftest.
$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6887 #if defined(HAVE_UNISTD_H)
6890 #include <sys/stat.h>
6893 struct stat64 st64; exit(lstat64(".",&st64));
6896 if { (eval echo configure
:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6898 ac_cv_func_lstat64
=yes
6900 echo "configure: failed program was:" >&5
6901 cat conftest.
$ac_ext >&5
6904 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6905 if test x
$ac_cv_func_lstat64 = xyes
; then
6906 cat >> confdefs.h
<<\EOF
6907 #define HAVE_LSTAT64 1
6913 if test x
$ac_cv_func_fstat64 = xno
; then
6914 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6915 echo "configure:6916: checking for fstat64 in <sys/stat.h>" >&5
6916 cat > conftest.
$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6920 #if defined(HAVE_UNISTD_H)
6923 #include <sys/stat.h>
6926 struct stat64 st64; exit(fstat64(0,&st64));
6929 if { (eval echo configure
:6930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6931 ac_cv_func_fstat64
=yes
6933 echo "configure: failed program was:" >&5
6934 cat conftest.
$ac_ext >&5
6937 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6938 if test x
$ac_cv_func_fstat64 = xyes
; then
6939 cat >> confdefs.h
<<\EOF
6940 #define HAVE_FSTAT64 1
6947 # If no strcasecmp, check for it in some known places
6948 # It is in -lresolv on ReliantUNIX and UnixWare
6949 # -lresolve *must* follow -lnsl for name resolution to work properly
6952 if test x
$ac_cv_func_strcasecmp = xno
; then
6953 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6954 echo "configure:6955: checking for strcasecmp in -lresolv" >&5
6955 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 ac_save_LIBS
="$LIBS"
6960 LIBS
="-lresolv $LIBS"
6961 cat > conftest.
$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6973 if { (eval echo configure
:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6975 eval "ac_cv_lib_$ac_lib_var=yes"
6977 echo "configure: failed program was:" >&5
6978 cat conftest.
$ac_ext >&5
6980 eval "ac_cv_lib_$ac_lib_var=no"
6983 LIBS
="$ac_save_LIBS"
6986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 LIBS
="$LIBS -lresolv"
6989 cat >> confdefs.h
<<\EOF
6990 #define HAVE_STRCASECMP 1
6994 echo "$ac_t""no" 1>&6
7000 # Check for the functions putprpwnam, set_auth_parameters,
7001 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7002 # Needed for OSF1 and HPUX.
7006 *-lsecurity*) for ac_func
in putprpwnam
7008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7009 echo "configure:7010: checking for $ac_func" >&5
7010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7013 cat > conftest.
$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* System header to define __stub macros and hopefully few prototypes,
7017 which can conflict with char $ac_func(); below. */
7019 /* Override any gcc2 internal prototype to avoid an error. */
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7026 /* The GNU C library defines this for functions which it implements
7027 to always fail with ENOSYS. Some functions are actually named
7028 something starting with __ and the normal name is an alias. */
7029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7037 if { (eval echo configure
:7038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7039 eval "ac_cv_func_$ac_func=yes"
7041 echo "configure: failed program was:" >&5
7042 cat conftest.
$ac_ext >&5
7044 eval "ac_cv_func_$ac_func=no"
7049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7050 echo "$ac_t""yes" 1>&6
7051 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7052 cat >> confdefs.h
<<EOF
7053 #define $ac_tr_func 1
7057 echo "$ac_t""no" 1>&6
7061 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7062 echo "configure:7063: checking for putprpwnam in -lsecurity" >&5
7063 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 ac_save_LIBS
="$LIBS"
7068 LIBS
="-lsecurity $LIBS"
7069 cat > conftest.
$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7072 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7081 if { (eval echo configure
:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7083 eval "ac_cv_lib_$ac_lib_var=yes"
7085 echo "configure: failed program was:" >&5
7086 cat conftest.
$ac_ext >&5
7088 eval "ac_cv_lib_$ac_lib_var=no"
7091 LIBS
="$ac_save_LIBS"
7094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7095 echo "$ac_t""yes" 1>&6
7096 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7097 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7098 cat >> confdefs.h
<<EOF
7099 #define $ac_tr_lib 1
7102 LIBS
="-lsecurity $LIBS"
7105 echo "$ac_t""no" 1>&6
7108 for ac_func
in putprpwnam
7110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7111 echo "configure:7112: checking for $ac_func" >&5
7112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7113 echo $ac_n "(cached) $ac_c" 1>&6
7115 cat > conftest.
$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7118 /* System header to define __stub macros and hopefully few prototypes,
7119 which can conflict with char $ac_func(); below. */
7121 /* Override any gcc2 internal prototype to avoid an error. */
7122 /* We use char because int might match the return type of a gcc2
7123 builtin and then its argument prototype would still apply. */
7128 /* The GNU C library defines this for functions which it implements
7129 to always fail with ENOSYS. Some functions are actually named
7130 something starting with __ and the normal name is an alias. */
7131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7139 if { (eval echo configure
:7140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7141 eval "ac_cv_func_$ac_func=yes"
7143 echo "configure: failed program was:" >&5
7144 cat conftest.
$ac_ext >&5
7146 eval "ac_cv_func_$ac_func=no"
7151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7152 echo "$ac_t""yes" 1>&6
7153 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7154 cat >> confdefs.h
<<EOF
7155 #define $ac_tr_func 1
7159 echo "$ac_t""no" 1>&6
7167 *-lsec*) for ac_func
in putprpwnam
7169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7170 echo "configure:7171: checking for $ac_func" >&5
7171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7174 cat > conftest.
$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7177 /* System header to define __stub macros and hopefully few prototypes,
7178 which can conflict with char $ac_func(); below. */
7180 /* Override any gcc2 internal prototype to avoid an error. */
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7187 /* The GNU C library defines this for functions which it implements
7188 to always fail with ENOSYS. Some functions are actually named
7189 something starting with __ and the normal name is an alias. */
7190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7198 if { (eval echo configure
:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7200 eval "ac_cv_func_$ac_func=yes"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.
$ac_ext >&5
7205 eval "ac_cv_func_$ac_func=no"
7210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7211 echo "$ac_t""yes" 1>&6
7212 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7213 cat >> confdefs.h
<<EOF
7214 #define $ac_tr_func 1
7218 echo "$ac_t""no" 1>&6
7222 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7223 echo "configure:7224: checking for putprpwnam in -lsec" >&5
7224 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 ac_save_LIBS
="$LIBS"
7230 cat > conftest.
$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error. */
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7242 if { (eval echo configure
:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7244 eval "ac_cv_lib_$ac_lib_var=yes"
7246 echo "configure: failed program was:" >&5
7247 cat conftest.
$ac_ext >&5
7249 eval "ac_cv_lib_$ac_lib_var=no"
7252 LIBS
="$ac_save_LIBS"
7255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7256 echo "$ac_t""yes" 1>&6
7257 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7259 cat >> confdefs.h
<<EOF
7260 #define $ac_tr_lib 1
7266 echo "$ac_t""no" 1>&6
7269 for ac_func
in putprpwnam
7271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7272 echo "configure:7273: checking for $ac_func" >&5
7273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 cat > conftest.
$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 /* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char $ac_func(); below. */
7282 /* Override any gcc2 internal prototype to avoid an error. */
7283 /* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7289 /* The GNU C library defines this for functions which it implements
7290 to always fail with ENOSYS. Some functions are actually named
7291 something starting with __ and the normal name is an alias. */
7292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7300 if { (eval echo configure
:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7302 eval "ac_cv_func_$ac_func=yes"
7304 echo "configure: failed program was:" >&5
7305 cat conftest.
$ac_ext >&5
7307 eval "ac_cv_func_$ac_func=no"
7312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7313 echo "$ac_t""yes" 1>&6
7314 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7315 cat >> confdefs.h
<<EOF
7316 #define $ac_tr_func 1
7320 echo "$ac_t""no" 1>&6
7329 *-lsecurity*) for ac_func
in set_auth_parameters
7331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7332 echo "configure:7333: checking for $ac_func" >&5
7333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7334 echo $ac_n "(cached) $ac_c" 1>&6
7336 cat > conftest.
$ac_ext <<EOF
7337 #line 7338 "configure"
7338 #include "confdefs.h"
7339 /* System header to define __stub macros and hopefully few prototypes,
7340 which can conflict with char $ac_func(); below. */
7342 /* Override any gcc2 internal prototype to avoid an error. */
7343 /* We use char because int might match the return type of a gcc2
7344 builtin and then its argument prototype would still apply. */
7349 /* The GNU C library defines this for functions which it implements
7350 to always fail with ENOSYS. Some functions are actually named
7351 something starting with __ and the normal name is an alias. */
7352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7360 if { (eval echo configure
:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7362 eval "ac_cv_func_$ac_func=yes"
7364 echo "configure: failed program was:" >&5
7365 cat conftest.
$ac_ext >&5
7367 eval "ac_cv_func_$ac_func=no"
7372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7373 echo "$ac_t""yes" 1>&6
7374 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7375 cat >> confdefs.h
<<EOF
7376 #define $ac_tr_func 1
7380 echo "$ac_t""no" 1>&6
7384 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7385 echo "configure:7386: checking for set_auth_parameters in -lsecurity" >&5
7386 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7390 ac_save_LIBS
="$LIBS"
7391 LIBS
="-lsecurity $LIBS"
7392 cat > conftest.
$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7395 /* Override any gcc2 internal prototype to avoid an error. */
7396 /* We use char because int might match the return type of a gcc2
7397 builtin and then its argument prototype would still apply. */
7398 char set_auth_parameters();
7401 set_auth_parameters()
7404 if { (eval echo configure
:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7406 eval "ac_cv_lib_$ac_lib_var=yes"
7408 echo "configure: failed program was:" >&5
7409 cat conftest.
$ac_ext >&5
7411 eval "ac_cv_lib_$ac_lib_var=no"
7414 LIBS
="$ac_save_LIBS"
7417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7418 echo "$ac_t""yes" 1>&6
7419 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7420 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7421 cat >> confdefs.h
<<EOF
7422 #define $ac_tr_lib 1
7425 LIBS
="-lsecurity $LIBS"
7428 echo "$ac_t""no" 1>&6
7431 for ac_func
in set_auth_parameters
7433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7434 echo "configure:7435: checking for $ac_func" >&5
7435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 cat > conftest.
$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* System header to define __stub macros and hopefully few prototypes,
7442 which can conflict with char $ac_func(); below. */
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7462 if { (eval echo configure
:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7464 eval "ac_cv_func_$ac_func=yes"
7466 echo "configure: failed program was:" >&5
7467 cat conftest.
$ac_ext >&5
7469 eval "ac_cv_func_$ac_func=no"
7474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7476 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7477 cat >> confdefs.h
<<EOF
7478 #define $ac_tr_func 1
7482 echo "$ac_t""no" 1>&6
7490 *-lsec*) for ac_func
in set_auth_parameters
7492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7493 echo "configure:7494: checking for $ac_func" >&5
7494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7497 cat > conftest.
$ac_ext <<EOF
7498 #line 7499 "configure"
7499 #include "confdefs.h"
7500 /* System header to define __stub macros and hopefully few prototypes,
7501 which can conflict with char $ac_func(); below. */
7503 /* Override any gcc2 internal prototype to avoid an error. */
7504 /* We use char because int might match the return type of a gcc2
7505 builtin and then its argument prototype would still apply. */
7510 /* The GNU C library defines this for functions which it implements
7511 to always fail with ENOSYS. Some functions are actually named
7512 something starting with __ and the normal name is an alias. */
7513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7521 if { (eval echo configure
:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7523 eval "ac_cv_func_$ac_func=yes"
7525 echo "configure: failed program was:" >&5
7526 cat conftest.
$ac_ext >&5
7528 eval "ac_cv_func_$ac_func=no"
7533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7534 echo "$ac_t""yes" 1>&6
7535 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7536 cat >> confdefs.h
<<EOF
7537 #define $ac_tr_func 1
7541 echo "$ac_t""no" 1>&6
7545 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7546 echo "configure:7547: checking for set_auth_parameters in -lsec" >&5
7547 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7551 ac_save_LIBS
="$LIBS"
7553 cat > conftest.
$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7559 char set_auth_parameters();
7562 set_auth_parameters()
7565 if { (eval echo configure
:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7567 eval "ac_cv_lib_$ac_lib_var=yes"
7569 echo "configure: failed program was:" >&5
7570 cat conftest.
$ac_ext >&5
7572 eval "ac_cv_lib_$ac_lib_var=no"
7575 LIBS
="$ac_save_LIBS"
7578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7579 echo "$ac_t""yes" 1>&6
7580 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7582 cat >> confdefs.h
<<EOF
7583 #define $ac_tr_lib 1
7589 echo "$ac_t""no" 1>&6
7592 for ac_func
in set_auth_parameters
7594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7595 echo "configure:7596: checking for $ac_func" >&5
7596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7599 cat > conftest.
$ac_ext <<EOF
7600 #line 7601 "configure"
7601 #include "confdefs.h"
7602 /* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char $ac_func(); below. */
7605 /* Override any gcc2 internal prototype to avoid an error. */
7606 /* We use char because int might match the return type of a gcc2
7607 builtin and then its argument prototype would still apply. */
7612 /* The GNU C library defines this for functions which it implements
7613 to always fail with ENOSYS. Some functions are actually named
7614 something starting with __ and the normal name is an alias. */
7615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7623 if { (eval echo configure
:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7625 eval "ac_cv_func_$ac_func=yes"
7627 echo "configure: failed program was:" >&5
7628 cat conftest.
$ac_ext >&5
7630 eval "ac_cv_func_$ac_func=no"
7635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7636 echo "$ac_t""yes" 1>&6
7637 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7638 cat >> confdefs.h
<<EOF
7639 #define $ac_tr_func 1
7643 echo "$ac_t""no" 1>&6
7651 # UnixWare 7.x has its getspnam in -lgen
7653 *-lgen*) for ac_func
in getspnam
7655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7656 echo "configure:7657: checking for $ac_func" >&5
7657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 cat > conftest.
$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char $ac_func(); below. */
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7673 /* The GNU C library defines this for functions which it implements
7674 to always fail with ENOSYS. Some functions are actually named
7675 something starting with __ and the normal name is an alias. */
7676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7684 if { (eval echo configure
:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7686 eval "ac_cv_func_$ac_func=yes"
7688 echo "configure: failed program was:" >&5
7689 cat conftest.
$ac_ext >&5
7691 eval "ac_cv_func_$ac_func=no"
7696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7697 echo "$ac_t""yes" 1>&6
7698 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7699 cat >> confdefs.h
<<EOF
7700 #define $ac_tr_func 1
7704 echo "$ac_t""no" 1>&6
7708 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7709 echo "configure:7710: checking for getspnam in -lgen" >&5
7710 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7714 ac_save_LIBS
="$LIBS"
7716 cat > conftest.
$ac_ext <<EOF
7717 #line 7718 "configure"
7718 #include "confdefs.h"
7719 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7728 if { (eval echo configure
:7729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7730 eval "ac_cv_lib_$ac_lib_var=yes"
7732 echo "configure: failed program was:" >&5
7733 cat conftest.
$ac_ext >&5
7735 eval "ac_cv_lib_$ac_lib_var=no"
7738 LIBS
="$ac_save_LIBS"
7741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7742 echo "$ac_t""yes" 1>&6
7743 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7745 cat >> confdefs.h
<<EOF
7746 #define $ac_tr_lib 1
7752 echo "$ac_t""no" 1>&6
7755 for ac_func
in getspnam
7757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7758 echo "configure:7759: checking for $ac_func" >&5
7759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6
7762 cat > conftest.
$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 /* System header to define __stub macros and hopefully few prototypes,
7766 which can conflict with char $ac_func(); below. */
7768 /* Override any gcc2 internal prototype to avoid an error. */
7769 /* We use char because int might match the return type of a gcc2
7770 builtin and then its argument prototype would still apply. */
7775 /* The GNU C library defines this for functions which it implements
7776 to always fail with ENOSYS. Some functions are actually named
7777 something starting with __ and the normal name is an alias. */
7778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7786 if { (eval echo configure
:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7788 eval "ac_cv_func_$ac_func=yes"
7790 echo "configure: failed program was:" >&5
7791 cat conftest.
$ac_ext >&5
7793 eval "ac_cv_func_$ac_func=no"
7798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7799 echo "$ac_t""yes" 1>&6
7800 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7801 cat >> confdefs.h
<<EOF
7802 #define $ac_tr_func 1
7806 echo "$ac_t""no" 1>&6
7815 *-lsecurity*) for ac_func
in getspnam
7817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7818 echo "configure:7819: checking for $ac_func" >&5
7819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7822 cat > conftest.
$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* System header to define __stub macros and hopefully few prototypes,
7826 which can conflict with char $ac_func(); below. */
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 /* We use char because int might match the return type of a gcc2
7830 builtin and then its argument prototype would still apply. */
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7846 if { (eval echo configure
:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7848 eval "ac_cv_func_$ac_func=yes"
7850 echo "configure: failed program was:" >&5
7851 cat conftest.
$ac_ext >&5
7853 eval "ac_cv_func_$ac_func=no"
7858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7860 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7861 cat >> confdefs.h
<<EOF
7862 #define $ac_tr_func 1
7866 echo "$ac_t""no" 1>&6
7870 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7871 echo "configure:7872: checking for getspnam in -lsecurity" >&5
7872 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7876 ac_save_LIBS
="$LIBS"
7877 LIBS
="-lsecurity $LIBS"
7878 cat > conftest.
$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7890 if { (eval echo configure
:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7892 eval "ac_cv_lib_$ac_lib_var=yes"
7894 echo "configure: failed program was:" >&5
7895 cat conftest.
$ac_ext >&5
7897 eval "ac_cv_lib_$ac_lib_var=no"
7900 LIBS
="$ac_save_LIBS"
7903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7904 echo "$ac_t""yes" 1>&6
7905 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7906 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7907 cat >> confdefs.h
<<EOF
7908 #define $ac_tr_lib 1
7911 LIBS
="-lsecurity $LIBS"
7914 echo "$ac_t""no" 1>&6
7917 for ac_func
in getspnam
7919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7920 echo "configure:7921: checking for $ac_func" >&5
7921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7924 cat > conftest.
$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 /* System header to define __stub macros and hopefully few prototypes,
7928 which can conflict with char $ac_func(); below. */
7930 /* Override any gcc2 internal prototype to avoid an error. */
7931 /* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7937 /* The GNU C library defines this for functions which it implements
7938 to always fail with ENOSYS. Some functions are actually named
7939 something starting with __ and the normal name is an alias. */
7940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7948 if { (eval echo configure
:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7950 eval "ac_cv_func_$ac_func=yes"
7952 echo "configure: failed program was:" >&5
7953 cat conftest.
$ac_ext >&5
7955 eval "ac_cv_func_$ac_func=no"
7960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7961 echo "$ac_t""yes" 1>&6
7962 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7963 cat >> confdefs.h
<<EOF
7964 #define $ac_tr_func 1
7968 echo "$ac_t""no" 1>&6
7976 *-lsec*) for ac_func
in getspnam
7978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7979 echo "configure:7980: checking for $ac_func" >&5
7980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7983 cat > conftest.
$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* System header to define __stub macros and hopefully few prototypes,
7987 which can conflict with char $ac_func(); below. */
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7996 /* The GNU C library defines this for functions which it implements
7997 to always fail with ENOSYS. Some functions are actually named
7998 something starting with __ and the normal name is an alias. */
7999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8007 if { (eval echo configure
:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8009 eval "ac_cv_func_$ac_func=yes"
8011 echo "configure: failed program was:" >&5
8012 cat conftest.
$ac_ext >&5
8014 eval "ac_cv_func_$ac_func=no"
8019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8020 echo "$ac_t""yes" 1>&6
8021 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8022 cat >> confdefs.h
<<EOF
8023 #define $ac_tr_func 1
8027 echo "$ac_t""no" 1>&6
8031 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8032 echo "configure:8033: checking for getspnam in -lsec" >&5
8033 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8035 echo $ac_n "(cached) $ac_c" 1>&6
8037 ac_save_LIBS
="$LIBS"
8039 cat > conftest.
$ac_ext <<EOF
8040 #line 8041 "configure"
8041 #include "confdefs.h"
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 /* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8051 if { (eval echo configure
:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8053 eval "ac_cv_lib_$ac_lib_var=yes"
8055 echo "configure: failed program was:" >&5
8056 cat conftest.
$ac_ext >&5
8058 eval "ac_cv_lib_$ac_lib_var=no"
8061 LIBS
="$ac_save_LIBS"
8064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8065 echo "$ac_t""yes" 1>&6
8066 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8067 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8068 cat >> confdefs.h
<<EOF
8069 #define $ac_tr_lib 1
8075 echo "$ac_t""no" 1>&6
8078 for ac_func
in getspnam
8080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8081 echo "configure:8082: checking for $ac_func" >&5
8082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8085 cat > conftest.
$ac_ext <<EOF
8086 #line 8087 "configure"
8087 #include "confdefs.h"
8088 /* System header to define __stub macros and hopefully few prototypes,
8089 which can conflict with char $ac_func(); below. */
8091 /* Override any gcc2 internal prototype to avoid an error. */
8092 /* We use char because int might match the return type of a gcc2
8093 builtin and then its argument prototype would still apply. */
8098 /* The GNU C library defines this for functions which it implements
8099 to always fail with ENOSYS. Some functions are actually named
8100 something starting with __ and the normal name is an alias. */
8101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8109 if { (eval echo configure
:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8111 eval "ac_cv_func_$ac_func=yes"
8113 echo "configure: failed program was:" >&5
8114 cat conftest.
$ac_ext >&5
8116 eval "ac_cv_func_$ac_func=no"
8121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8122 echo "$ac_t""yes" 1>&6
8123 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8124 cat >> confdefs.h
<<EOF
8125 #define $ac_tr_func 1
8129 echo "$ac_t""no" 1>&6
8138 *-lsecurity*) for ac_func
in bigcrypt
8140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8141 echo "configure:8142: checking for $ac_func" >&5
8142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8145 cat > conftest.
$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* System header to define __stub macros and hopefully few prototypes,
8149 which can conflict with char $ac_func(); below. */
8151 /* Override any gcc2 internal prototype to avoid an error. */
8152 /* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8158 /* The GNU C library defines this for functions which it implements
8159 to always fail with ENOSYS. Some functions are actually named
8160 something starting with __ and the normal name is an alias. */
8161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8169 if { (eval echo configure
:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8171 eval "ac_cv_func_$ac_func=yes"
8173 echo "configure: failed program was:" >&5
8174 cat conftest.
$ac_ext >&5
8176 eval "ac_cv_func_$ac_func=no"
8181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8182 echo "$ac_t""yes" 1>&6
8183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8184 cat >> confdefs.h
<<EOF
8185 #define $ac_tr_func 1
8189 echo "$ac_t""no" 1>&6
8193 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8194 echo "configure:8195: checking for bigcrypt in -lsecurity" >&5
8195 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8199 ac_save_LIBS
="$LIBS"
8200 LIBS
="-lsecurity $LIBS"
8201 cat > conftest.
$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8204 /* Override any gcc2 internal prototype to avoid an error. */
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8213 if { (eval echo configure
:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8215 eval "ac_cv_lib_$ac_lib_var=yes"
8217 echo "configure: failed program was:" >&5
8218 cat conftest.
$ac_ext >&5
8220 eval "ac_cv_lib_$ac_lib_var=no"
8223 LIBS
="$ac_save_LIBS"
8226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8227 echo "$ac_t""yes" 1>&6
8228 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8230 cat >> confdefs.h
<<EOF
8231 #define $ac_tr_lib 1
8234 LIBS
="-lsecurity $LIBS"
8237 echo "$ac_t""no" 1>&6
8240 for ac_func
in bigcrypt
8242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8243 echo "configure:8244: checking for $ac_func" >&5
8244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8247 cat > conftest.
$ac_ext <<EOF
8248 #line 8249 "configure"
8249 #include "confdefs.h"
8250 /* System header to define __stub macros and hopefully few prototypes,
8251 which can conflict with char $ac_func(); below. */
8253 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8260 /* The GNU C library defines this for functions which it implements
8261 to always fail with ENOSYS. Some functions are actually named
8262 something starting with __ and the normal name is an alias. */
8263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8271 if { (eval echo configure
:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8273 eval "ac_cv_func_$ac_func=yes"
8275 echo "configure: failed program was:" >&5
8276 cat conftest.
$ac_ext >&5
8278 eval "ac_cv_func_$ac_func=no"
8283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8284 echo "$ac_t""yes" 1>&6
8285 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8286 cat >> confdefs.h
<<EOF
8287 #define $ac_tr_func 1
8291 echo "$ac_t""no" 1>&6
8299 *-lsec*) for ac_func
in bigcrypt
8301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8302 echo "configure:8303: checking for $ac_func" >&5
8303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8306 cat > conftest.
$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 /* System header to define __stub macros and hopefully few prototypes,
8310 which can conflict with char $ac_func(); below. */
8312 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8319 /* The GNU C library defines this for functions which it implements
8320 to always fail with ENOSYS. Some functions are actually named
8321 something starting with __ and the normal name is an alias. */
8322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8330 if { (eval echo configure
:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8332 eval "ac_cv_func_$ac_func=yes"
8334 echo "configure: failed program was:" >&5
8335 cat conftest.
$ac_ext >&5
8337 eval "ac_cv_func_$ac_func=no"
8342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8343 echo "$ac_t""yes" 1>&6
8344 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8345 cat >> confdefs.h
<<EOF
8346 #define $ac_tr_func 1
8350 echo "$ac_t""no" 1>&6
8354 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8355 echo "configure:8356: checking for bigcrypt in -lsec" >&5
8356 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 ac_save_LIBS
="$LIBS"
8362 cat > conftest.
$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 /* Override any gcc2 internal prototype to avoid an error. */
8366 /* We use char because int might match the return type of a gcc2
8367 builtin and then its argument prototype would still apply. */
8374 if { (eval echo configure
:8375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8376 eval "ac_cv_lib_$ac_lib_var=yes"
8378 echo "configure: failed program was:" >&5
8379 cat conftest.
$ac_ext >&5
8381 eval "ac_cv_lib_$ac_lib_var=no"
8384 LIBS
="$ac_save_LIBS"
8387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8388 echo "$ac_t""yes" 1>&6
8389 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8391 cat >> confdefs.h
<<EOF
8392 #define $ac_tr_lib 1
8398 echo "$ac_t""no" 1>&6
8401 for ac_func
in bigcrypt
8403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8404 echo "configure:8405: checking for $ac_func" >&5
8405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8408 cat > conftest.
$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char $ac_func(); below. */
8414 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8432 if { (eval echo configure
:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8434 eval "ac_cv_func_$ac_func=yes"
8436 echo "configure: failed program was:" >&5
8437 cat conftest.
$ac_ext >&5
8439 eval "ac_cv_func_$ac_func=no"
8444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8445 echo "$ac_t""yes" 1>&6
8446 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8447 cat >> confdefs.h
<<EOF
8448 #define $ac_tr_func 1
8452 echo "$ac_t""no" 1>&6
8461 *-lsecurity*) for ac_func
in getprpwnam
8463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8464 echo "configure:8465: checking for $ac_func" >&5
8465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8468 cat > conftest.
$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 /* System header to define __stub macros and hopefully few prototypes,
8472 which can conflict with char $ac_func(); below. */
8474 /* Override any gcc2 internal prototype to avoid an error. */
8475 /* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8492 if { (eval echo configure
:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8494 eval "ac_cv_func_$ac_func=yes"
8496 echo "configure: failed program was:" >&5
8497 cat conftest.
$ac_ext >&5
8499 eval "ac_cv_func_$ac_func=no"
8504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8506 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8507 cat >> confdefs.h
<<EOF
8508 #define $ac_tr_func 1
8512 echo "$ac_t""no" 1>&6
8516 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8517 echo "configure:8518: checking for getprpwnam in -lsecurity" >&5
8518 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8520 echo $ac_n "(cached) $ac_c" 1>&6
8522 ac_save_LIBS
="$LIBS"
8523 LIBS
="-lsecurity $LIBS"
8524 cat > conftest.
$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8527 /* Override any gcc2 internal prototype to avoid an error. */
8528 /* We use char because int might match the return type of a gcc2
8529 builtin and then its argument prototype would still apply. */
8536 if { (eval echo configure
:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8538 eval "ac_cv_lib_$ac_lib_var=yes"
8540 echo "configure: failed program was:" >&5
8541 cat conftest.
$ac_ext >&5
8543 eval "ac_cv_lib_$ac_lib_var=no"
8546 LIBS
="$ac_save_LIBS"
8549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8550 echo "$ac_t""yes" 1>&6
8551 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8552 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8553 cat >> confdefs.h
<<EOF
8554 #define $ac_tr_lib 1
8557 LIBS
="-lsecurity $LIBS"
8560 echo "$ac_t""no" 1>&6
8563 for ac_func
in getprpwnam
8565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8566 echo "configure:8567: checking for $ac_func" >&5
8567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8568 echo $ac_n "(cached) $ac_c" 1>&6
8570 cat > conftest.
$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8573 /* System header to define __stub macros and hopefully few prototypes,
8574 which can conflict with char $ac_func(); below. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8583 /* The GNU C library defines this for functions which it implements
8584 to always fail with ENOSYS. Some functions are actually named
8585 something starting with __ and the normal name is an alias. */
8586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8594 if { (eval echo configure
:8595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8596 eval "ac_cv_func_$ac_func=yes"
8598 echo "configure: failed program was:" >&5
8599 cat conftest.
$ac_ext >&5
8601 eval "ac_cv_func_$ac_func=no"
8606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8607 echo "$ac_t""yes" 1>&6
8608 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8609 cat >> confdefs.h
<<EOF
8610 #define $ac_tr_func 1
8614 echo "$ac_t""no" 1>&6
8622 *-lsec*) for ac_func
in getprpwnam
8624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8625 echo "configure:8626: checking for $ac_func" >&5
8626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8629 cat > conftest.
$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 /* System header to define __stub macros and hopefully few prototypes,
8633 which can conflict with char $ac_func(); below. */
8635 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8642 /* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8653 if { (eval echo configure
:8654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8655 eval "ac_cv_func_$ac_func=yes"
8657 echo "configure: failed program was:" >&5
8658 cat conftest.
$ac_ext >&5
8660 eval "ac_cv_func_$ac_func=no"
8665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8667 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8668 cat >> confdefs.h
<<EOF
8669 #define $ac_tr_func 1
8673 echo "$ac_t""no" 1>&6
8677 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8678 echo "configure:8679: checking for getprpwnam in -lsec" >&5
8679 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8683 ac_save_LIBS
="$LIBS"
8685 cat > conftest.
$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 /* Override any gcc2 internal prototype to avoid an error. */
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8697 if { (eval echo configure
:8698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8699 eval "ac_cv_lib_$ac_lib_var=yes"
8701 echo "configure: failed program was:" >&5
8702 cat conftest.
$ac_ext >&5
8704 eval "ac_cv_lib_$ac_lib_var=no"
8707 LIBS
="$ac_save_LIBS"
8710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8711 echo "$ac_t""yes" 1>&6
8712 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8714 cat >> confdefs.h
<<EOF
8715 #define $ac_tr_lib 1
8721 echo "$ac_t""no" 1>&6
8724 for ac_func
in getprpwnam
8726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8727 echo "configure:8728: checking for $ac_func" >&5
8728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
8731 cat > conftest.
$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8734 /* System header to define __stub macros and hopefully few prototypes,
8735 which can conflict with char $ac_func(); below. */
8737 /* Override any gcc2 internal prototype to avoid an error. */
8738 /* We use char because int might match the return type of a gcc2
8739 builtin and then its argument prototype would still apply. */
8744 /* The GNU C library defines this for functions which it implements
8745 to always fail with ENOSYS. Some functions are actually named
8746 something starting with __ and the normal name is an alias. */
8747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8755 if { (eval echo configure
:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8757 eval "ac_cv_func_$ac_func=yes"
8759 echo "configure: failed program was:" >&5
8760 cat conftest.
$ac_ext >&5
8762 eval "ac_cv_func_$ac_func=no"
8767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8768 echo "$ac_t""yes" 1>&6
8769 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8770 cat >> confdefs.h
<<EOF
8771 #define $ac_tr_func 1
8775 echo "$ac_t""no" 1>&6
8783 # this bit needs to be modified for each OS that is suported by
8784 # smbwrapper. You need to specify how to created a shared library and
8785 # how to compile C code to produce PIC object files
8787 # these are the defaults, good for lots of systems
8795 # Assume non-shared by default and override below
8797 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8798 echo "configure:8799: checking ability to build shared libraries" >&5
8800 # and these are for particular systems
8802 *linux
*) cat >> confdefs.h
<<\EOF
8808 DYNEXP
="-Wl,--export-dynamic"
8810 SONAMEFLAG
="-Wl,-soname="
8811 cat >> confdefs.h
<<\EOF
8812 #define STAT_ST_BLOCKSIZE 512
8816 *solaris
*) cat >> confdefs.h
<<\EOF
8823 if test "${GCC}" = "yes"; then
8825 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8830 ## ${CFLAGS} added for building 64-bit shared
8831 ## libs using Sun's Compiler
8832 LDSHFLAGS
="-G \${CFLAGS}"
8836 cat >> confdefs.h
<<\EOF
8837 #define STAT_ST_BLOCKSIZE 512
8840 cat >> confdefs.h
<<\EOF
8841 #define BROKEN_GETGRNAM 1
8845 *sunos
*) cat >> confdefs.h
<<\EOF
8851 SONAMEFLAG
="-Wl,-h,"
8852 PICFLAG
="-KPIC" # Is this correct for SunOS
8853 cat >> confdefs.h
<<\EOF
8854 #define STAT_ST_BLOCKSIZE 512
8857 cat >> confdefs.h
<<\EOF
8858 #define BROKEN_GETGRNAM 1
8862 *freebsd
*) BLDSHARED
="true"
8864 DYNEXP
="-Wl,--export-dynamic"
8865 SONAMEFLAG
="-Wl,-soname,"
8866 PICFLAG
="-fPIC -DPIC"
8867 cat >> confdefs.h
<<\EOF
8868 #define STAT_ST_BLOCKSIZE 512
8871 cat >> confdefs.h
<<\EOF
8872 #define BROKEN_GETGRNAM 1
8876 *openbsd
*) BLDSHARED
="true"
8878 DYNEXP
="-Wl,-Bdynamic"
8879 SONAMEFLAG
="-Wl,-soname,"
8881 cat >> confdefs.h
<<\EOF
8882 #define STAT_ST_BLOCKSIZE 512
8885 cat >> confdefs.h
<<\EOF
8886 #define BROKEN_GETGRNAM 1
8890 *irix
*) cat >> confdefs.h
<<\EOF
8895 *irix6
*) cat >> confdefs.h
<<\EOF
8901 ATTEMPT_WRAP32_BUILD
=yes
8903 LDSHFLAGS
="-set_version sgi1.0 -shared"
8904 SONAMEFLAG
="-soname "
8906 if test "${GCC}" = "yes"; then
8911 cat >> confdefs.h
<<\EOF
8912 #define STAT_ST_BLOCKSIZE 512
8916 *aix
*) cat >> confdefs.h
<<\EOF
8921 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8922 DYNEXP
="-Wl,-brtl,-bexpall"
8924 if test "${GCC}" != "yes"; then
8925 ## for funky AIX compiler using strncpy()
8926 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8929 cat >> confdefs.h
<<\EOF
8930 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8934 *hpux
*) cat >> confdefs.h
<<\EOF
8939 # Use special PIC flags for the native HP-UX compiler.
8940 if test $ac_cv_prog_cc_Ae = yes; then
8943 LDSHFLAGS
="-B symbolic -b -z"
8948 cat >> confdefs.h
<<\EOF
8949 #define STAT_ST_BLOCKSIZE 8192
8952 cat >> confdefs.h
<<\EOF
8953 #define POSIX_ACL_NEEDS_MASK 1
8957 *qnx
*) cat >> confdefs.h
<<\EOF
8961 cat >> confdefs.h
<<\EOF
8962 #define STAT_ST_BLOCKSIZE 512
8966 *osf
*) cat >> confdefs.h
<<\EOF
8972 SONAMEFLAG
="-Wl,-soname,"
8974 cat >> confdefs.h
<<\EOF
8975 #define STAT_ST_BLOCKSIZE 512
8978 cat >> confdefs.h
<<\EOF
8979 #define BROKEN_GETGRNAM 1
8983 *sco
*) cat >> confdefs.h
<<\EOF
8987 cat >> confdefs.h
<<\EOF
8988 #define STAT_ST_BLOCKSIZE 512
8992 *unixware
*) cat >> confdefs.h
<<\EOF
8998 SONAMEFLAG
="-Wl,-soname,"
9000 cat >> confdefs.h
<<\EOF
9001 #define STAT_ST_BLOCKSIZE 512
9005 *next2
*) cat >> confdefs.h
<<\EOF
9009 cat >> confdefs.h
<<\EOF
9010 #define STAT_ST_BLOCKSIZE 512
9014 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
9015 set dummy
groff; ac_word
=$2
9016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9017 echo "configure:9018: checking for $ac_word" >&5
9018 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9019 echo $ac_n "(cached) $ac_c" 1>&6
9021 if test -n "$ROFF"; then
9022 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
9024 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
9026 for ac_dir
in $ac_dummy; do
9027 test -z "$ac_dir" && ac_dir
=.
9028 if test -f $ac_dir/$ac_word; then
9029 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
9036 ROFF
="$ac_cv_prog_ROFF"
9037 if test -n "$ROFF"; then
9038 echo "$ac_t""$ROFF" 1>&6
9040 echo "$ac_t""no" 1>&6
9043 cat >> confdefs.h
<<\EOF
9044 #define STAT_ST_BLOCKSIZE 512
9050 *-univel-*) if test "$GCC" != yes ; then
9051 cat >> confdefs.h
<<\EOF
9052 #define HAVE_MEMSET 1
9059 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
9060 #define RELIANTUNIX 1
9064 cat >> confdefs.h
<<\EOF
9065 #define STAT_ST_BLOCKSIZE 512
9070 if test "$GCC" != yes ; then
9071 cat >> confdefs.h
<<\EOF
9072 #define HAVE_MEMSET 1
9077 cat >> confdefs.h
<<\EOF
9078 #define STAT_ST_BLOCKSIZE 512
9082 *vos
*) cat >> confdefs.h
<<\EOF
9083 #define STAT_ST_BLOCKSIZE 4096
9090 cat >> confdefs.h
<<\EOF
9091 #define STAT_ST_BLOCKSIZE 512
9097 echo "$ac_t""$BLDSHARED" 1>&6
9098 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9099 echo "configure:9100: checking linker flags for shared libraries" >&5
9100 echo "$ac_t""$LDSHFLAGS" 1>&6
9101 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9102 echo "configure:9103: checking compiler flags for position-independent code" >&5
9103 echo "$ac_t""$PICFLAGS" 1>&6
9105 # try to work out how to produce pic code with this compiler
9106 if test x
$PICFLAG = x
; then
9107 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
9108 echo "configure:9109: checking whether ${CC-cc} accepts -fpic" >&5
9109 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9112 echo 'void f(){}' > conftest.c
9113 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
9114 ac_cv_prog_cc_fpic
=yes
9116 ac_cv_prog_cc_fpic
=no
9122 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
9123 if test $ac_cv_prog_cc_fpic = yes; then
9127 if test x
$PICFLAG = x
; then
9128 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
9129 echo "configure:9130: checking whether ${CC-cc} accepts -KPIC" >&5
9130 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9133 echo 'void f(){}' > conftest.c
9134 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
9135 ac_cv_prog_cc_KPIC
=yes
9137 ac_cv_prog_cc_KPIC
=no
9143 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
9144 if test $ac_cv_prog_cc_KPIC = yes; then
9148 if test x
$PICFLAG = x
; then
9149 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
9150 echo "configure:9151: checking whether ${CC-cc} accepts -Kpic" >&5
9151 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9154 echo 'void f(){}' > conftest.c
9155 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
9156 ac_cv_prog_cc_Kpic
=yes
9158 ac_cv_prog_cc_Kpic
=no
9164 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
9165 if test $ac_cv_prog_cc_Kpic = yes; then
9172 echo $ac_n "checking for long long""... $ac_c" 1>&6
9173 echo "configure:9174: checking for long long" >&5
9174 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9178 if test "$cross_compiling" = yes; then
9179 samba_cv_have_longlong
=cross
9181 cat > conftest.
$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9185 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9187 if { (eval echo configure
:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9189 samba_cv_have_longlong
=yes
9191 echo "configure: failed program was:" >&5
9192 cat conftest.
$ac_ext >&5
9194 samba_cv_have_longlong
=no
9201 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9202 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9203 cat >> confdefs.h
<<\EOF
9204 #define HAVE_LONGLONG 1
9210 # Check if the compiler supports the LL prefix on long long integers.
9213 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9214 echo "configure:9215: checking for LL suffix on long long integers" >&5
9215 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+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"
9224 long long i = 0x8000000000LL
9227 if { (eval echo configure
:9228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9229 samba_cv_compiler_supports_ll
=yes
9231 echo "configure: failed program was:" >&5
9232 cat conftest.
$ac_ext >&5
9234 samba_cv_compiler_supports_ll
=no
9239 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9240 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9241 cat >> confdefs.h
<<\EOF
9242 #define COMPILER_SUPPORTS_LL 1
9248 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9249 echo "configure:9250: checking for 64 bit off_t" >&5
9250 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9254 if test "$cross_compiling" = yes; then
9255 samba_cv_SIZEOF_OFF_T
=cross
9257 cat > conftest.
$ac_ext <<EOF
9258 #line 9259 "configure"
9259 #include "confdefs.h"
9261 #include <sys/stat.h>
9262 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9264 if { (eval echo configure
:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9266 samba_cv_SIZEOF_OFF_T
=yes
9268 echo "configure: failed program was:" >&5
9269 cat conftest.
$ac_ext >&5
9271 samba_cv_SIZEOF_OFF_T
=no
9278 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9279 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9280 cat >> confdefs.h
<<\EOF
9281 #define SIZEOF_OFF_T 8
9286 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9287 echo "configure:9288: checking for off64_t" >&5
9288 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9292 if test "$cross_compiling" = yes; then
9293 samba_cv_HAVE_OFF64_T
=cross
9295 cat > conftest.
$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9299 #if defined(HAVE_UNISTD_H)
9303 #include <sys/stat.h>
9304 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9306 if { (eval echo configure
:9307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9308 samba_cv_HAVE_OFF64_T
=yes
9310 echo "configure: failed program was:" >&5
9311 cat conftest.
$ac_ext >&5
9313 samba_cv_HAVE_OFF64_T
=no
9320 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9321 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9322 cat >> confdefs.h
<<\EOF
9323 #define HAVE_OFF64_T 1
9328 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9329 echo "configure:9330: checking for 64 bit ino_t" >&5
9330 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9334 if test "$cross_compiling" = yes; then
9335 samba_cv_SIZEOF_INO_T
=cross
9337 cat > conftest.
$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9341 #include <sys/stat.h>
9342 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9344 if { (eval echo configure
:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9346 samba_cv_SIZEOF_INO_T
=yes
9348 echo "configure: failed program was:" >&5
9349 cat conftest.
$ac_ext >&5
9351 samba_cv_SIZEOF_INO_T
=no
9358 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9359 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9360 cat >> confdefs.h
<<\EOF
9361 #define SIZEOF_INO_T 8
9366 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9367 echo "configure:9368: checking for ino64_t" >&5
9368 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9372 if test "$cross_compiling" = yes; then
9373 samba_cv_HAVE_INO64_T
=cross
9375 cat > conftest.
$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9379 #if defined(HAVE_UNISTD_H)
9383 #include <sys/stat.h>
9384 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9386 if { (eval echo configure
:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9388 samba_cv_HAVE_INO64_T
=yes
9390 echo "configure: failed program was:" >&5
9391 cat conftest.
$ac_ext >&5
9393 samba_cv_HAVE_INO64_T
=no
9400 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9401 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9402 cat >> confdefs.h
<<\EOF
9403 #define HAVE_INO64_T 1
9408 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9409 echo "configure:9410: checking for dev64_t" >&5
9410 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9414 if test "$cross_compiling" = yes; then
9415 samba_cv_HAVE_DEV64_T
=cross
9417 cat > conftest.
$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9421 #if defined(HAVE_UNISTD_H)
9425 #include <sys/stat.h>
9426 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9428 if { (eval echo configure
:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9430 samba_cv_HAVE_DEV64_T
=yes
9432 echo "configure: failed program was:" >&5
9433 cat conftest.
$ac_ext >&5
9435 samba_cv_HAVE_DEV64_T
=no
9442 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9443 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9444 cat >> confdefs.h
<<\EOF
9445 #define HAVE_DEV64_T 1
9450 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9451 echo "configure:9452: checking for struct dirent64" >&5
9452 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9456 cat > conftest.
$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9460 #if defined(HAVE_UNISTD_H)
9463 #include <sys/types.h>
9469 if { (eval echo configure
:9470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9471 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9473 echo "configure: failed program was:" >&5
9474 cat conftest.
$ac_ext >&5
9476 samba_cv_HAVE_STRUCT_DIRENT64
=no
9481 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9482 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9483 cat >> confdefs.h
<<\EOF
9484 #define HAVE_STRUCT_DIRENT64 1
9489 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9490 echo "configure:9491: checking for major macro" >&5
9491 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9495 if test "$cross_compiling" = yes; then
9496 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9498 cat > conftest.
$ac_ext <<EOF
9499 #line 9500 "configure"
9500 #include "confdefs.h"
9502 #if defined(HAVE_UNISTD_H)
9505 #include <sys/types.h>
9506 main() { dev_t dev; int i = major(dev); return 0; }
9508 if { (eval echo configure
:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9510 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9512 echo "configure: failed program was:" >&5
9513 cat conftest.
$ac_ext >&5
9515 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9522 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9523 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9524 cat >> confdefs.h
<<\EOF
9525 #define HAVE_DEVICE_MAJOR_FN 1
9530 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9531 echo "configure:9532: checking for minor macro" >&5
9532 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9536 if test "$cross_compiling" = yes; then
9537 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9539 cat > conftest.
$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9543 #if defined(HAVE_UNISTD_H)
9546 #include <sys/types.h>
9547 main() { dev_t dev; int i = minor(dev); return 0; }
9549 if { (eval echo configure
:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9551 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9553 echo "configure: failed program was:" >&5
9554 cat conftest.
$ac_ext >&5
9556 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9563 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9564 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9565 cat >> confdefs.h
<<\EOF
9566 #define HAVE_DEVICE_MINOR_FN 1
9571 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9572 echo "configure:9573: checking for makedev macro" >&5
9573 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9577 if test "$cross_compiling" = yes; then
9578 samba_cv_HAVE_MAKEDEV_FN
=cross
9580 cat > conftest.
$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9584 #if defined(HAVE_UNISTD_H)
9587 #include <sys/types.h>
9588 main() { dev_t dev = makedev(1,2); return 0; }
9590 if { (eval echo configure
:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9592 samba_cv_HAVE_MAKEDEV_FN
=yes
9594 echo "configure: failed program was:" >&5
9595 cat conftest.
$ac_ext >&5
9597 samba_cv_HAVE_MAKEDEV_FN
=no
9604 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9605 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9606 cat >> confdefs.h
<<\EOF
9607 #define MAKEDEV_FN 1
9612 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9613 echo "configure:9614: checking for unsigned char" >&5
9614 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9618 if test "$cross_compiling" = yes; then
9619 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9621 cat > conftest.
$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9625 main() { char c; c=250; exit((c > 0)?0:1); }
9627 if { (eval echo configure
:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9629 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9631 echo "configure: failed program was:" >&5
9632 cat conftest.
$ac_ext >&5
9634 samba_cv_HAVE_UNSIGNED_CHAR
=no
9641 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9642 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9643 cat >> confdefs.h
<<\EOF
9644 #define HAVE_UNSIGNED_CHAR 1
9649 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9650 echo "configure:9651: checking for sin_len in sock" >&5
9651 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9655 cat > conftest.
$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 #include <sys/types.h>
9659 #include <sys/socket.h>
9660 #include <netinet/in.h>
9662 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9665 if { (eval echo configure
:9666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9667 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9669 echo "configure: failed program was:" >&5
9670 cat conftest.
$ac_ext >&5
9672 samba_cv_HAVE_SOCK_SIN_LEN
=no
9677 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9678 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9679 cat >> confdefs.h
<<\EOF
9680 #define HAVE_SOCK_SIN_LEN 1
9685 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9686 echo "configure:9687: checking whether seekdir returns void" >&5
9687 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9688 echo $ac_n "(cached) $ac_c" 1>&6
9691 cat > conftest.
$ac_ext <<EOF
9692 #line 9693 "configure"
9693 #include "confdefs.h"
9694 #include <sys/types.h>
9696 void seekdir(DIR *d, long loc) { return; }
9701 if { (eval echo configure
:9702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9703 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9705 echo "configure: failed program was:" >&5
9706 cat conftest.
$ac_ext >&5
9708 samba_cv_SEEKDIR_RETURNS_VOID
=no
9713 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9714 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9715 cat >> confdefs.h
<<\EOF
9716 #define SEEKDIR_RETURNS_VOID 1
9721 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9722 echo "configure:9723: checking for __FILE__ macro" >&5
9723 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9724 echo $ac_n "(cached) $ac_c" 1>&6
9727 cat > conftest.
$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9732 printf("%s\n", __FILE__);
9735 if { (eval echo configure
:9736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9737 samba_cv_HAVE_FILE_MACRO
=yes
9739 echo "configure: failed program was:" >&5
9740 cat conftest.
$ac_ext >&5
9742 samba_cv_HAVE_FILE_MACRO
=no
9747 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9748 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9749 cat >> confdefs.h
<<\EOF
9750 #define HAVE_FILE_MACRO 1
9755 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9756 echo "configure:9757: checking for __FUNCTION__ macro" >&5
9757 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9758 echo $ac_n "(cached) $ac_c" 1>&6
9761 cat > conftest.
$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9766 printf("%s\n", __FUNCTION__);
9769 if { (eval echo configure
:9770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9771 samba_cv_HAVE_FUNCTION_MACRO
=yes
9773 echo "configure: failed program was:" >&5
9774 cat conftest.
$ac_ext >&5
9776 samba_cv_HAVE_FUNCTION_MACRO
=no
9781 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9782 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9783 cat >> confdefs.h
<<\EOF
9784 #define HAVE_FUNCTION_MACRO 1
9789 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9790 echo "configure:9791: checking if gettimeofday takes tz argument" >&5
9791 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9795 if test "$cross_compiling" = yes; then
9796 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9798 cat > conftest.
$ac_ext <<EOF
9799 #line 9800 "configure"
9800 #include "confdefs.h"
9802 #include <sys/time.h>
9804 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9806 if { (eval echo configure
:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9808 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9810 echo "configure: failed program was:" >&5
9811 cat conftest.
$ac_ext >&5
9813 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9820 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9821 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9822 cat >> confdefs.h
<<\EOF
9823 #define HAVE_GETTIMEOFDAY_TZ 1
9828 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9829 echo "configure:9830: checking for __va_copy" >&5
9830 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9831 echo $ac_n "(cached) $ac_c" 1>&6
9834 cat > conftest.
$ac_ext <<EOF
9835 #line 9836 "configure"
9836 #include "confdefs.h"
9843 if { (eval echo configure
:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9845 samba_cv_HAVE_VA_COPY
=yes
9847 echo "configure: failed program was:" >&5
9848 cat conftest.
$ac_ext >&5
9850 samba_cv_HAVE_VA_COPY
=no
9855 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9856 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9857 cat >> confdefs.h
<<\EOF
9858 #define HAVE_VA_COPY 1
9863 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9864 echo "configure:9865: checking for C99 vsnprintf" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9869 if test "$cross_compiling" = yes; then
9870 samba_cv_HAVE_C99_VSNPRINTF
=cross
9872 cat > conftest.
$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9876 #include <sys/types.h>
9878 void foo(const char *format, ...) {
9883 va_start(ap, format);
9884 len = vsnprintf(buf, 0, format, ap);
9886 if (len != 5) exit(1);
9888 va_start(ap, format);
9889 len = vsnprintf(0, 0, format, ap);
9891 if (len != 5) exit(1);
9893 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9897 main() { foo("hello"); }
9900 if { (eval echo configure
:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9902 samba_cv_HAVE_C99_VSNPRINTF
=yes
9904 echo "configure: failed program was:" >&5
9905 cat conftest.
$ac_ext >&5
9907 samba_cv_HAVE_C99_VSNPRINTF
=no
9914 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9915 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9916 cat >> confdefs.h
<<\EOF
9917 #define HAVE_C99_VSNPRINTF 1
9922 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9923 echo "configure:9924: checking for broken readdir" >&5
9924 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9928 if test "$cross_compiling" = yes; then
9929 samba_cv_HAVE_BROKEN_READDIR
=cross
9931 cat > conftest.
$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 #include <sys/types.h>
9936 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9937 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9938 di->d_name[0] == 0) exit(0); exit(1);}
9940 if { (eval echo configure
:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9942 samba_cv_HAVE_BROKEN_READDIR
=yes
9944 echo "configure: failed program was:" >&5
9945 cat conftest.
$ac_ext >&5
9947 samba_cv_HAVE_BROKEN_READDIR
=no
9954 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9955 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9956 cat >> confdefs.h
<<\EOF
9957 #define HAVE_BROKEN_READDIR 1
9962 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9963 echo "configure:9964: checking for utimbuf" >&5
9964 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9968 cat > conftest.
$ac_ext <<EOF
9969 #line 9970 "configure"
9970 #include "confdefs.h"
9971 #include <sys/types.h>
9974 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9977 if { (eval echo configure
:9978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9979 samba_cv_HAVE_UTIMBUF
=yes
9981 echo "configure: failed program was:" >&5
9982 cat conftest.
$ac_ext >&5
9984 samba_cv_HAVE_UTIMBUF
=no
9989 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9990 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9991 cat >> confdefs.h
<<\EOF
9992 #define HAVE_UTIMBUF 1
9998 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
10000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10001 echo "configure:10002: checking for $ac_func" >&5
10002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10005 cat > conftest.
$ac_ext <<EOF
10006 #line 10007 "configure"
10007 #include "confdefs.h"
10008 /* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char $ac_func(); below. */
10010 #include <assert.h>
10011 /* Override any gcc2 internal prototype to avoid an error. */
10012 /* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
10018 /* The GNU C library defines this for functions which it implements
10019 to always fail with ENOSYS. Some functions are actually named
10020 something starting with __ and the normal name is an alias. */
10021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10029 if { (eval echo configure
:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10031 eval "ac_cv_func_$ac_func=yes"
10033 echo "configure: failed program was:" >&5
10034 cat conftest.
$ac_ext >&5
10036 eval "ac_cv_func_$ac_func=no"
10041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10042 echo "$ac_t""yes" 1>&6
10043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10044 cat >> confdefs.h
<<EOF
10045 #define $ac_tr_func 1
10049 echo "$ac_t""no" 1>&6
10054 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10055 echo "configure:10056: checking for ut_name in utmp" >&5
10056 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10060 cat > conftest.
$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 #include <sys/types.h>
10066 struct utmp ut; ut.ut_name[0] = 'a';
10069 if { (eval echo configure
:10070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10071 samba_cv_HAVE_UT_UT_NAME
=yes
10073 echo "configure: failed program was:" >&5
10074 cat conftest.
$ac_ext >&5
10076 samba_cv_HAVE_UT_UT_NAME
=no
10081 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10082 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
10083 cat >> confdefs.h
<<\EOF
10084 #define HAVE_UT_UT_NAME 1
10089 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10090 echo "configure:10091: checking for ut_user in utmp" >&5
10091 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10095 cat > conftest.
$ac_ext <<EOF
10096 #line 10097 "configure"
10097 #include "confdefs.h"
10098 #include <sys/types.h>
10101 struct utmp ut; ut.ut_user[0] = 'a';
10104 if { (eval echo configure
:10105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10106 samba_cv_HAVE_UT_UT_USER
=yes
10108 echo "configure: failed program was:" >&5
10109 cat conftest.
$ac_ext >&5
10111 samba_cv_HAVE_UT_UT_USER
=no
10116 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10117 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
10118 cat >> confdefs.h
<<\EOF
10119 #define HAVE_UT_UT_USER 1
10124 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10125 echo "configure:10126: checking for ut_id in utmp" >&5
10126 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10130 cat > conftest.
$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10133 #include <sys/types.h>
10136 struct utmp ut; ut.ut_id[0] = 'a';
10139 if { (eval echo configure
:10140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10141 samba_cv_HAVE_UT_UT_ID
=yes
10143 echo "configure: failed program was:" >&5
10144 cat conftest.
$ac_ext >&5
10146 samba_cv_HAVE_UT_UT_ID
=no
10151 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10152 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10153 cat >> confdefs.h
<<\EOF
10154 #define HAVE_UT_UT_ID 1
10159 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10160 echo "configure:10161: checking for ut_host in utmp" >&5
10161 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10165 cat > conftest.
$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 #include <sys/types.h>
10171 struct utmp ut; ut.ut_host[0] = 'a';
10174 if { (eval echo configure
:10175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10176 samba_cv_HAVE_UT_UT_HOST
=yes
10178 echo "configure: failed program was:" >&5
10179 cat conftest.
$ac_ext >&5
10181 samba_cv_HAVE_UT_UT_HOST
=no
10186 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10187 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10188 cat >> confdefs.h
<<\EOF
10189 #define HAVE_UT_UT_HOST 1
10194 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10195 echo "configure:10196: checking for ut_time in utmp" >&5
10196 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10200 cat > conftest.
$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <sys/types.h>
10206 struct utmp ut; time_t t; ut.ut_time = t;
10209 if { (eval echo configure
:10210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10211 samba_cv_HAVE_UT_UT_TIME
=yes
10213 echo "configure: failed program was:" >&5
10214 cat conftest.
$ac_ext >&5
10216 samba_cv_HAVE_UT_UT_TIME
=no
10221 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10222 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10223 cat >> confdefs.h
<<\EOF
10224 #define HAVE_UT_UT_TIME 1
10229 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10230 echo "configure:10231: checking for ut_tv in utmp" >&5
10231 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10235 cat > conftest.
$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 #include <sys/types.h>
10241 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10244 if { (eval echo configure
:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10246 samba_cv_HAVE_UT_UT_TV
=yes
10248 echo "configure: failed program was:" >&5
10249 cat conftest.
$ac_ext >&5
10251 samba_cv_HAVE_UT_UT_TV
=no
10256 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10257 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10258 cat >> confdefs.h
<<\EOF
10259 #define HAVE_UT_UT_TV 1
10264 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10265 echo "configure:10266: checking for ut_type in utmp" >&5
10266 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10270 cat > conftest.
$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 #include <sys/types.h>
10276 struct utmp ut; ut.ut_type = 0;
10279 if { (eval echo configure
:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10281 samba_cv_HAVE_UT_UT_TYPE
=yes
10283 echo "configure: failed program was:" >&5
10284 cat conftest.
$ac_ext >&5
10286 samba_cv_HAVE_UT_UT_TYPE
=no
10291 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10292 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10293 cat >> confdefs.h
<<\EOF
10294 #define HAVE_UT_UT_TYPE 1
10299 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10300 echo "configure:10301: checking for ut_pid in utmp" >&5
10301 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10305 cat > conftest.
$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <sys/types.h>
10311 struct utmp ut; ut.ut_pid = 0;
10314 if { (eval echo configure
:10315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10316 samba_cv_HAVE_UT_UT_PID
=yes
10318 echo "configure: failed program was:" >&5
10319 cat conftest.
$ac_ext >&5
10321 samba_cv_HAVE_UT_UT_PID
=no
10326 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10327 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10328 cat >> confdefs.h
<<\EOF
10329 #define HAVE_UT_UT_PID 1
10334 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10335 echo "configure:10336: checking for ut_exit in utmp" >&5
10336 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10340 cat > conftest.
$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343 #include <sys/types.h>
10346 struct utmp ut; ut.ut_exit.e_exit = 0;
10349 if { (eval echo configure
:10350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10351 samba_cv_HAVE_UT_UT_EXIT
=yes
10353 echo "configure: failed program was:" >&5
10354 cat conftest.
$ac_ext >&5
10356 samba_cv_HAVE_UT_UT_EXIT
=no
10361 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10362 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10363 cat >> confdefs.h
<<\EOF
10364 #define HAVE_UT_UT_EXIT 1
10369 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10370 echo "configure:10371: checking for ut_addr in utmp" >&5
10371 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10372 echo $ac_n "(cached) $ac_c" 1>&6
10375 cat > conftest.
$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 #include <sys/types.h>
10381 struct utmp ut; ut.ut_addr = 0;
10384 if { (eval echo configure
:10385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10386 samba_cv_HAVE_UT_UT_ADDR
=yes
10388 echo "configure: failed program was:" >&5
10389 cat conftest.
$ac_ext >&5
10391 samba_cv_HAVE_UT_UT_ADDR
=no
10396 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10397 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10398 cat >> confdefs.h
<<\EOF
10399 #define HAVE_UT_UT_ADDR 1
10404 if test x
$ac_cv_func_pututline = xyes
; then
10405 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10406 echo "configure:10407: checking whether pututline returns pointer" >&5
10407 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10408 echo $ac_n "(cached) $ac_c" 1>&6
10411 cat > conftest.
$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 #include <sys/types.h>
10417 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10420 if { (eval echo configure
:10421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10422 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10424 echo "configure: failed program was:" >&5
10425 cat conftest.
$ac_ext >&5
10427 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10432 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10433 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10434 cat >> confdefs.h
<<\EOF
10435 #define PUTUTLINE_RETURNS_UTMP 1
10441 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10442 echo "configure:10443: checking for ut_syslen in utmpx" >&5
10443 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10447 cat > conftest.
$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 #include <sys/types.h>
10453 struct utmpx ux; ux.ut_syslen = 0;
10456 if { (eval echo configure
:10457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10458 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10460 echo "configure: failed program was:" >&5
10461 cat conftest.
$ac_ext >&5
10463 samba_cv_HAVE_UX_UT_SYSLEN
=no
10468 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10469 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10470 cat >> confdefs.h
<<\EOF
10471 #define HAVE_UX_UT_SYSLEN 1
10476 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10477 echo "configure:10478: checking for Linux kernel oplocks" >&5
10478 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10479 echo $ac_n "(cached) $ac_c" 1>&6
10482 if test "$cross_compiling" = yes; then
10483 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10485 cat > conftest.
$ac_ext <<EOF
10486 #line 10487 "configure"
10487 #include "confdefs.h"
10489 #include <sys/types.h>
10492 #define F_GETLEASE 1025
10495 int fd = open("/dev/null", O_RDONLY);
10496 return fcntl(fd, F_GETLEASE, 0) == -1;
10500 if { (eval echo configure
:10501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10502 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10504 echo "configure: failed program was:" >&5
10505 cat conftest.
$ac_ext >&5
10507 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10514 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10515 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10516 cat >> confdefs.h
<<\EOF
10517 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10522 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10523 echo "configure:10524: checking for kernel change notify support" >&5
10524 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10525 echo $ac_n "(cached) $ac_c" 1>&6
10528 if test "$cross_compiling" = yes; then
10529 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10531 cat > conftest.
$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10535 #include <sys/types.h>
10537 #include <signal.h>
10539 #define F_NOTIFY 1026
10542 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10546 if { (eval echo configure
:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10548 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10550 echo "configure: failed program was:" >&5
10551 cat conftest.
$ac_ext >&5
10553 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10560 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10561 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10562 cat >> confdefs.h
<<\EOF
10563 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10568 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10569 echo "configure:10570: checking for kernel share modes" >&5
10570 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10571 echo $ac_n "(cached) $ac_c" 1>&6
10574 if test "$cross_compiling" = yes; then
10575 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10577 cat > conftest.
$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10581 #include <sys/types.h>
10583 #include <signal.h>
10584 #include <sys/file.h>
10586 #define LOCK_MAND 32
10587 #define LOCK_READ 64
10590 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10594 if { (eval echo configure
:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10596 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10598 echo "configure: failed program was:" >&5
10599 cat conftest.
$ac_ext >&5
10601 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10608 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10609 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10610 cat >> confdefs.h
<<\EOF
10611 #define HAVE_KERNEL_SHARE_MODES 1
10619 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10620 echo "configure:10621: checking for IRIX kernel oplock type definitions" >&5
10621 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10625 cat > conftest.
$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10628 #include <sys/types.h>
10631 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10634 if { (eval echo configure
:10635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10636 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10638 echo "configure: failed program was:" >&5
10639 cat conftest.
$ac_ext >&5
10641 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10646 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10647 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10648 cat >> confdefs.h
<<\EOF
10649 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10654 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10655 echo "configure:10656: checking for irix specific capabilities" >&5
10656 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10660 if test "$cross_compiling" = yes; then
10661 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10663 cat > conftest.
$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include <sys/types.h>
10667 #include <sys/capability.h>
10670 if ((cap = cap_get_proc()) == NULL)
10672 cap->cap_effective |= CAP_NETWORK_MGT;
10673 cap->cap_inheritable |= CAP_NETWORK_MGT;
10679 if { (eval echo configure
:10680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10681 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10683 echo "configure: failed program was:" >&5
10684 cat conftest.
$ac_ext >&5
10686 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10693 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10694 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10695 cat >> confdefs.h
<<\EOF
10696 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10702 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10703 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10706 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10707 echo "configure:10708: checking for int16 typedef included by rpc/rpc.h" >&5
10708 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10712 cat > conftest.
$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10715 #include <sys/types.h>
10716 #if defined(HAVE_RPC_RPC_H)
10717 #include <rpc/rpc.h>
10723 if { (eval echo configure
:10724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10725 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10727 echo "configure: failed program was:" >&5
10728 cat conftest.
$ac_ext >&5
10730 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10735 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10736 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10737 cat >> confdefs.h
<<\EOF
10738 #define HAVE_INT16_FROM_RPC_RPC_H 1
10743 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10744 echo "configure:10745: checking for uint16 typedef included by rpc/rpc.h" >&5
10745 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10749 cat > conftest.
$ac_ext <<EOF
10750 #line 10751 "configure"
10751 #include "confdefs.h"
10752 #include <sys/types.h>
10753 #if defined(HAVE_RPC_RPC_H)
10754 #include <rpc/rpc.h>
10760 if { (eval echo configure
:10761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10762 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10764 echo "configure: failed program was:" >&5
10765 cat conftest.
$ac_ext >&5
10767 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10772 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10773 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10774 cat >> confdefs.h
<<\EOF
10775 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10780 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10781 echo "configure:10782: checking for int32 typedef included by rpc/rpc.h" >&5
10782 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10786 cat > conftest.
$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 #include <sys/types.h>
10790 #if defined(HAVE_RPC_RPC_H)
10791 #include <rpc/rpc.h>
10797 if { (eval echo configure
:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10799 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10801 echo "configure: failed program was:" >&5
10802 cat conftest.
$ac_ext >&5
10804 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10809 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10810 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10811 cat >> confdefs.h
<<\EOF
10812 #define HAVE_INT32_FROM_RPC_RPC_H 1
10817 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10818 echo "configure:10819: checking for uint32 typedef included by rpc/rpc.h" >&5
10819 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10823 cat > conftest.
$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10826 #include <sys/types.h>
10827 #if defined(HAVE_RPC_RPC_H)
10828 #include <rpc/rpc.h>
10834 if { (eval echo configure
:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10836 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10838 echo "configure: failed program was:" >&5
10839 cat conftest.
$ac_ext >&5
10841 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10846 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10847 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10848 cat >> confdefs.h
<<\EOF
10849 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10855 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10856 echo "configure:10857: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10857 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10861 cat > conftest.
$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 #include <sys/types.h>
10865 #ifdef HAVE_SYS_SECURITY_H
10866 #include <sys/security.h>
10868 #endif /* HAVE_SYS_SECURITY_H */
10869 #if defined(HAVE_RPC_RPC_H)
10870 #include <rpc/rpc.h>
10876 if { (eval echo configure
:10877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10878 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10880 echo "configure: failed program was:" >&5
10881 cat conftest.
$ac_ext >&5
10883 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10888 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10889 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10890 cat >> confdefs.h
<<\EOF
10891 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10896 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10897 echo "configure:10898: checking for test routines" >&5
10898 if test "$cross_compiling" = yes; then
10899 echo "configure: warning: cannot run when cross-compiling" 1>&2
10901 cat > conftest.
$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 #include "${srcdir-.}/tests/trivial.c"
10906 if { (eval echo configure
:10907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10908 echo "$ac_t""yes" 1>&6
10910 echo "configure: failed program was:" >&5
10911 cat conftest.
$ac_ext >&5
10913 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10919 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10920 echo "configure:10921: checking for ftruncate extend" >&5
10921 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10925 if test "$cross_compiling" = yes; then
10926 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10928 cat > conftest.
$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 #include "${srcdir-.}/tests/ftruncate.c"
10933 if { (eval echo configure
:10934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10935 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10937 echo "configure: failed program was:" >&5
10938 cat conftest.
$ac_ext >&5
10940 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10947 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10948 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10949 cat >> confdefs.h
<<\EOF
10950 #define HAVE_FTRUNCATE_EXTEND 1
10955 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10956 echo "configure:10957: checking for broken getgroups" >&5
10957 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10958 echo $ac_n "(cached) $ac_c" 1>&6
10961 if test "$cross_compiling" = yes; then
10962 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10964 cat > conftest.
$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 #include "${srcdir-.}/tests/getgroups.c"
10969 if { (eval echo configure
:10970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10971 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10973 echo "configure: failed program was:" >&5
10974 cat conftest.
$ac_ext >&5
10976 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10983 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10984 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10985 cat >> confdefs.h
<<\EOF
10986 #define HAVE_BROKEN_GETGROUPS 1
10991 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10992 echo "configure:10993: checking whether getpass should be replaced" >&5
10993 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10997 SAVE_CPPFLAGS
="$CPPFLAGS"
10998 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10999 cat > conftest.
$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11003 #define REPLACE_GETPASS 1
11004 #define NO_CONFIG_H 1
11005 #define main dont_declare_main
11006 #include "${srcdir-.}/lib/getsmbpass.c"
11013 if { (eval echo configure
:11014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11015 samba_cv_REPLACE_GETPASS
=yes
11017 echo "configure: failed program was:" >&5
11018 cat conftest.
$ac_ext >&5
11020 samba_cv_REPLACE_GETPASS
=no
11023 CPPFLAGS
="$SAVE_CPPFLAGS"
11027 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11028 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
11029 cat >> confdefs.h
<<\EOF
11030 #define REPLACE_GETPASS 1
11035 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11036 echo "configure:11037: checking for broken inet_ntoa" >&5
11037 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11041 if test "$cross_compiling" = yes; then
11042 samba_cv_REPLACE_INET_NTOA
=cross
11044 cat > conftest.
$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11049 #include <sys/types.h>
11050 #include <netinet/in.h>
11051 #ifdef HAVE_ARPA_INET_H
11052 #include <arpa/inet.h>
11054 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11055 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11056 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11059 if { (eval echo configure
:11060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11061 samba_cv_REPLACE_INET_NTOA
=yes
11063 echo "configure: failed program was:" >&5
11064 cat conftest.
$ac_ext >&5
11066 samba_cv_REPLACE_INET_NTOA
=no
11073 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11074 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
11075 cat >> confdefs.h
<<\EOF
11076 #define REPLACE_INET_NTOA 1
11081 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11082 echo "configure:11083: checking for secure mkstemp" >&5
11083 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11087 if test "$cross_compiling" = yes; then
11088 samba_cv_HAVE_SECURE_MKSTEMP
=cross
11090 cat > conftest.
$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 #include <stdlib.h>
11094 #include <sys/types.h>
11095 #include <sys/stat.h>
11096 #include <unistd.h>
11099 char tpl[20]="/tmp/test.XXXXXX";
11100 int fd = mkstemp(tpl);
11101 if (fd == -1) exit(1);
11103 if (fstat(fd, &st) != 0) exit(1);
11104 if ((st.st_mode & 0777) != 0600) exit(1);
11108 if { (eval echo configure
:11109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11110 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11112 echo "configure: failed program was:" >&5
11113 cat conftest.
$ac_ext >&5
11115 samba_cv_HAVE_SECURE_MKSTEMP
=no
11122 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11123 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11124 cat >> confdefs.h
<<\EOF
11125 #define HAVE_SECURE_MKSTEMP 1
11130 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11131 echo "configure:11132: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11132 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11133 echo $ac_n "(cached) $ac_c" 1>&6
11136 if test "$cross_compiling" = yes; then
11137 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11139 cat > conftest.
$ac_ext <<EOF
11140 #line 11141 "configure"
11141 #include "confdefs.h"
11142 #include <unistd.h>
11143 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11145 if { (eval echo configure
:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11147 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11149 echo "configure: failed program was:" >&5
11150 cat conftest.
$ac_ext >&5
11152 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11159 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11160 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11161 cat >> confdefs.h
<<\EOF
11162 #define SYSCONF_SC_NGROUPS_MAX 1
11167 echo $ac_n "checking for root""... $ac_c" 1>&6
11168 echo "configure:11169: checking for root" >&5
11169 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11170 echo $ac_n "(cached) $ac_c" 1>&6
11173 if test "$cross_compiling" = yes; then
11174 samba_cv_HAVE_ROOT
=cross
11176 cat > conftest.
$ac_ext <<EOF
11177 #line 11178 "configure"
11178 #include "confdefs.h"
11179 main() { exit(getuid() != 0); }
11181 if { (eval echo configure
:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11183 samba_cv_HAVE_ROOT
=yes
11185 echo "configure: failed program was:" >&5
11186 cat conftest.
$ac_ext >&5
11188 samba_cv_HAVE_ROOT
=no
11195 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11196 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11197 cat >> confdefs.h
<<\EOF
11198 #define HAVE_ROOT 1
11202 echo "configure: warning: running as non-root will disable some tests" 1>&2
11206 # look for a method of finding the list of network interfaces
11208 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11209 echo "configure:11210: checking for iface AIX" >&5
11210 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11214 if test "$cross_compiling" = yes; then
11215 samba_cv_HAVE_IFACE_AIX
=cross
11217 cat > conftest.
$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11221 #define HAVE_IFACE_AIX 1
11222 #define AUTOCONF_TEST 1
11223 #include "confdefs.h"
11224 #include "${srcdir-.}/lib/interfaces.c"
11226 if { (eval echo configure
:11227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11228 samba_cv_HAVE_IFACE_AIX
=yes
11230 echo "configure: failed program was:" >&5
11231 cat conftest.
$ac_ext >&5
11233 samba_cv_HAVE_IFACE_AIX
=no
11240 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11241 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11242 iface
=yes;cat >> confdefs.h
<<\EOF
11243 #define HAVE_IFACE_AIX 1
11248 if test $iface = no
; then
11249 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11250 echo "configure:11251: checking for iface ifconf" >&5
11251 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11255 if test "$cross_compiling" = yes; then
11256 samba_cv_HAVE_IFACE_IFCONF
=cross
11258 cat > conftest.
$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11262 #define HAVE_IFACE_IFCONF 1
11263 #define AUTOCONF_TEST 1
11264 #include "confdefs.h"
11265 #include "${srcdir-.}/lib/interfaces.c"
11267 if { (eval echo configure
:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11269 samba_cv_HAVE_IFACE_IFCONF
=yes
11271 echo "configure: failed program was:" >&5
11272 cat conftest.
$ac_ext >&5
11274 samba_cv_HAVE_IFACE_IFCONF
=no
11281 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11282 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11283 iface
=yes;cat >> confdefs.h
<<\EOF
11284 #define HAVE_IFACE_IFCONF 1
11290 if test $iface = no
; then
11291 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11292 echo "configure:11293: checking for iface ifreq" >&5
11293 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11294 echo $ac_n "(cached) $ac_c" 1>&6
11297 if test "$cross_compiling" = yes; then
11298 samba_cv_HAVE_IFACE_IFREQ
=cross
11300 cat > conftest.
$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11304 #define HAVE_IFACE_IFREQ 1
11305 #define AUTOCONF_TEST 1
11306 #include "confdefs.h"
11307 #include "${srcdir-.}/lib/interfaces.c"
11309 if { (eval echo configure
:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11311 samba_cv_HAVE_IFACE_IFREQ
=yes
11313 echo "configure: failed program was:" >&5
11314 cat conftest.
$ac_ext >&5
11316 samba_cv_HAVE_IFACE_IFREQ
=no
11323 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11324 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11325 iface
=yes;cat >> confdefs.h
<<\EOF
11326 #define HAVE_IFACE_IFREQ 1
11333 ################################################
11334 # look for a method of setting the effective uid
11336 if test $seteuid = no
; then
11337 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11338 echo "configure:11339: checking for setresuid" >&5
11339 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11343 if test "$cross_compiling" = yes; then
11344 samba_cv_USE_SETRESUID
=cross
11346 cat > conftest.
$ac_ext <<EOF
11347 #line 11348 "configure"
11348 #include "confdefs.h"
11350 #define AUTOCONF_TEST 1
11351 #define USE_SETRESUID 1
11352 #include "confdefs.h"
11353 #include "${srcdir-.}/lib/util_sec.c"
11355 if { (eval echo configure
:11356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11357 samba_cv_USE_SETRESUID
=yes
11359 echo "configure: failed program was:" >&5
11360 cat conftest.
$ac_ext >&5
11362 samba_cv_USE_SETRESUID
=no
11369 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11370 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11371 seteuid
=yes;cat >> confdefs.h
<<\EOF
11372 #define USE_SETRESUID 1
11379 if test $seteuid = no
; then
11380 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11381 echo "configure:11382: checking for setreuid" >&5
11382 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11386 if test "$cross_compiling" = yes; then
11387 samba_cv_USE_SETREUID
=cross
11389 cat > conftest.
$ac_ext <<EOF
11390 #line 11391 "configure"
11391 #include "confdefs.h"
11393 #define AUTOCONF_TEST 1
11394 #define USE_SETREUID 1
11395 #include "confdefs.h"
11396 #include "${srcdir-.}/lib/util_sec.c"
11398 if { (eval echo configure
:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11400 samba_cv_USE_SETREUID
=yes
11402 echo "configure: failed program was:" >&5
11403 cat conftest.
$ac_ext >&5
11405 samba_cv_USE_SETREUID
=no
11412 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11413 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11414 seteuid
=yes;cat >> confdefs.h
<<\EOF
11415 #define USE_SETREUID 1
11421 if test $seteuid = no
; then
11422 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11423 echo "configure:11424: checking for seteuid" >&5
11424 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11425 echo $ac_n "(cached) $ac_c" 1>&6
11428 if test "$cross_compiling" = yes; then
11429 samba_cv_USE_SETEUID
=cross
11431 cat > conftest.
$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11435 #define AUTOCONF_TEST 1
11436 #define USE_SETEUID 1
11437 #include "confdefs.h"
11438 #include "${srcdir-.}/lib/util_sec.c"
11440 if { (eval echo configure
:11441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11442 samba_cv_USE_SETEUID
=yes
11444 echo "configure: failed program was:" >&5
11445 cat conftest.
$ac_ext >&5
11447 samba_cv_USE_SETEUID
=no
11454 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11455 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11456 seteuid
=yes;cat >> confdefs.h
<<\EOF
11457 #define USE_SETEUID 1
11463 if test $seteuid = no
; then
11464 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11465 echo "configure:11466: checking for setuidx" >&5
11466 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11467 echo $ac_n "(cached) $ac_c" 1>&6
11470 if test "$cross_compiling" = yes; then
11471 samba_cv_USE_SETUIDX
=cross
11473 cat > conftest.
$ac_ext <<EOF
11474 #line 11475 "configure"
11475 #include "confdefs.h"
11477 #define AUTOCONF_TEST 1
11478 #define USE_SETUIDX 1
11479 #include "confdefs.h"
11480 #include "${srcdir-.}/lib/util_sec.c"
11482 if { (eval echo configure
:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11484 samba_cv_USE_SETUIDX
=yes
11486 echo "configure: failed program was:" >&5
11487 cat conftest.
$ac_ext >&5
11489 samba_cv_USE_SETUIDX
=no
11496 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11497 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11498 seteuid
=yes;cat >> confdefs.h
<<\EOF
11499 #define USE_SETUIDX 1
11506 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11507 echo "configure:11508: checking for working mmap" >&5
11508 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11509 echo $ac_n "(cached) $ac_c" 1>&6
11512 if test "$cross_compiling" = yes; then
11513 samba_cv_HAVE_MMAP
=cross
11515 cat > conftest.
$ac_ext <<EOF
11516 #line 11517 "configure"
11517 #include "confdefs.h"
11518 #include "${srcdir-.}/tests/shared_mmap.c"
11520 if { (eval echo configure
:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11522 samba_cv_HAVE_MMAP
=yes
11524 echo "configure: failed program was:" >&5
11525 cat conftest.
$ac_ext >&5
11527 samba_cv_HAVE_MMAP
=no
11534 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11535 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11536 cat >> confdefs.h
<<\EOF
11537 #define HAVE_MMAP 1
11542 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11543 echo "configure:11544: checking for ftruncate needs root" >&5
11544 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
11548 if test "$cross_compiling" = yes; then
11549 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11551 cat > conftest.
$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 #include "${srcdir-.}/tests/ftruncroot.c"
11556 if { (eval echo configure
:11557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11558 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11560 echo "configure: failed program was:" >&5
11561 cat conftest.
$ac_ext >&5
11563 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11570 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11571 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11572 cat >> confdefs.h
<<\EOF
11573 #define FTRUNCATE_NEEDS_ROOT 1
11578 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11579 echo "configure:11580: checking for fcntl locking" >&5
11580 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11581 echo $ac_n "(cached) $ac_c" 1>&6
11584 if test "$cross_compiling" = yes; then
11585 samba_cv_HAVE_FCNTL_LOCK
=cross
11587 cat > conftest.
$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11590 #include "${srcdir-.}/tests/fcntl_lock.c"
11592 if { (eval echo configure
:11593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11594 samba_cv_HAVE_FCNTL_LOCK
=yes
11596 echo "configure: failed program was:" >&5
11597 cat conftest.
$ac_ext >&5
11599 samba_cv_HAVE_FCNTL_LOCK
=no
11606 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11607 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11608 cat >> confdefs.h
<<\EOF
11609 #define HAVE_FCNTL_LOCK 1
11614 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11615 echo "configure:11616: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11616 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11620 if test "$cross_compiling" = yes; then
11621 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11623 cat > conftest.
$ac_ext <<EOF
11624 #line 11625 "configure"
11625 #include "confdefs.h"
11626 #include "${srcdir-.}/tests/fcntl_lock64.c"
11628 if { (eval echo configure
:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11630 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11632 echo "configure: failed program was:" >&5
11633 cat conftest.
$ac_ext >&5
11635 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11642 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11643 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11644 cat >> confdefs.h
<<\EOF
11645 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11652 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11653 echo "configure:11654: checking for 64 bit fcntl locking" >&5
11654 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11655 echo $ac_n "(cached) $ac_c" 1>&6
11658 if test "$cross_compiling" = yes; then
11659 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11661 cat > conftest.
$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11665 #if defined(HAVE_UNISTD_H)
11666 #include <unistd.h>
11669 #include <stdlib.h>
11671 #ifdef HAVE_FCNTL_H
11675 #ifdef HAVE_SYS_FCNTL_H
11676 #include <sys/fcntl.h>
11678 main() { struct flock64 fl64;
11679 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11686 if { (eval echo configure
:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11688 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11690 echo "configure: failed program was:" >&5
11691 cat conftest.
$ac_ext >&5
11693 samba_cv_HAVE_STRUCT_FLOCK64
=no
11700 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11702 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11703 cat >> confdefs.h
<<\EOF
11704 #define HAVE_STRUCT_FLOCK64 1
11710 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11711 echo "configure:11712: checking for st_blocks in struct stat" >&5
11712 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11713 echo $ac_n "(cached) $ac_c" 1>&6
11716 cat > conftest.
$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11719 #include <sys/types.h>
11720 #include <sys/stat.h>
11721 #include <unistd.h>
11723 struct stat st; st.st_blocks = 0;
11726 if { (eval echo configure
:11727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11728 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11730 echo "configure: failed program was:" >&5
11731 cat conftest.
$ac_ext >&5
11733 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11738 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11739 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11740 cat >> confdefs.h
<<\EOF
11741 #define HAVE_STAT_ST_BLOCKS 1
11746 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11747 echo "configure:11748: checking for st_blksize in struct stat" >&5
11748 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11749 echo $ac_n "(cached) $ac_c" 1>&6
11752 cat > conftest.
$ac_ext <<EOF
11753 #line 11754 "configure"
11754 #include "confdefs.h"
11755 #include <sys/types.h>
11756 #include <sys/stat.h>
11757 #include <unistd.h>
11759 struct stat st; st.st_blksize = 0;
11762 if { (eval echo configure
:11763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11764 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
11766 echo "configure: failed program was:" >&5
11767 cat conftest.
$ac_ext >&5
11769 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
11774 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11775 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
11776 cat >> confdefs.h
<<\EOF
11777 #define HAVE_STAT_ST_BLKSIZE 1
11784 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11785 echo "configure:11786: checking for broken RedHat 7.2 system header files" >&5
11786 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11787 echo $ac_n "(cached) $ac_c" 1>&6
11790 cat > conftest.
$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11794 #ifdef HAVE_SYS_VFS_H
11795 #include <sys/vfs.h>
11797 #ifdef HAVE_SYS_CAPABILITY_H
11798 #include <sys/capability.h>
11805 if { (eval echo configure
:11806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11807 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11809 echo "configure: failed program was:" >&5
11810 cat conftest.
$ac_ext >&5
11812 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11817 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11818 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11819 cat >> confdefs.h
<<\EOF
11820 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11827 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11828 echo "configure:11829: checking for broken nisplus include files" >&5
11829 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11833 cat > conftest.
$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 #include <sys/acl.h>
11837 #if defined(HAVE_RPCSVC_NIS_H)
11838 #include <rpcsvc/nis.h>
11844 if { (eval echo configure
:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11846 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11848 echo "configure: failed program was:" >&5
11849 cat conftest.
$ac_ext >&5
11851 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11856 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11857 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11858 cat >> confdefs.h
<<\EOF
11859 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11865 #################################################
11866 # check for smbwrapper support
11867 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11868 echo "configure:11869: checking whether to use smbwrapper" >&5
11869 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11870 if test "${with_smbwrapper+set}" = set; then
11871 withval
="$with_smbwrapper"
11874 echo "$ac_t""yes" 1>&6
11875 cat >> confdefs.h
<<\EOF
11876 #define WITH_SMBWRAPPER 1
11879 WRAPPROG
="bin/smbsh\$(EXEEXT)"
11880 WRAP
="bin/smbwrapper.$SHLIBEXT"
11882 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11885 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11888 # Conditions under which smbwrapper should not be built.
11890 if test x
$PICFLAG = x
; then
11891 echo No support
for PIC code
- disabling smbwrapper and smbsh
11895 elif test x
$ac_cv_func_syscall = xno
; then
11896 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11903 echo "$ac_t""no" 1>&6
11907 echo "$ac_t""no" 1>&6
11912 #################################################
11913 # check for the AFS filesystem
11914 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11915 echo "configure:11916: checking whether to use AFS" >&5
11916 # Check whether --with-afs or --without-afs was given.
11917 if test "${with_afs+set}" = set; then
11918 withval
="$with_afs"
11921 echo "$ac_t""yes" 1>&6
11922 cat >> confdefs.h
<<\EOF
11928 echo "$ac_t""no" 1>&6
11932 echo "$ac_t""no" 1>&6
11938 #################################################
11939 # check for the DFS auth system
11940 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11941 echo "configure:11942: checking whether to use DCE/DFS auth" >&5
11942 # Check whether --with-dfs or --without-dfs was given.
11943 if test "${with_dfs+set}" = set; then
11944 withval
="$with_dfs"
11947 echo "$ac_t""yes" 1>&6
11948 cat >> confdefs.h
<<\EOF
11954 echo "$ac_t""no" 1>&6
11958 echo "$ac_t""no" 1>&6
11963 #################################################
11964 # check for Kerberos IV auth system
11965 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11966 echo "configure:11967: checking whether to use Kerberos IV" >&5
11967 # Check whether --with-krb4 or --without-krb4 was given.
11968 if test "${with_krb4+set}" = set; then
11969 withval
="$with_krb4"
11972 echo "$ac_t""yes" 1>&6
11973 cat >> confdefs.h
<<\EOF
11974 #define KRB4_AUTH 1
11977 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11978 echo "configure:11979: checking for dn_expand in -lresolv" >&5
11979 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
11983 ac_save_LIBS
="$LIBS"
11984 LIBS
="-lresolv $LIBS"
11985 cat > conftest.
$ac_ext <<EOF
11986 #line 11987 "configure"
11987 #include "confdefs.h"
11988 /* Override any gcc2 internal prototype to avoid an error. */
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11997 if { (eval echo configure
:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11999 eval "ac_cv_lib_$ac_lib_var=yes"
12001 echo "configure: failed program was:" >&5
12002 cat conftest.
$ac_ext >&5
12004 eval "ac_cv_lib_$ac_lib_var=no"
12007 LIBS
="$ac_save_LIBS"
12010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
12012 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12014 cat >> confdefs.h
<<EOF
12015 #define $ac_tr_lib 1
12018 LIBS
="-lresolv $LIBS"
12021 echo "$ac_t""no" 1>&6
12024 LIBS
="$LIBS -lkrb -ldes"
12025 CFLAGS
="$CFLAGS -I$withval/include"
12026 LDFLAGS
="$LDFLAGS -L$withval/lib"
12029 echo "$ac_t""no" 1>&6
12033 echo "$ac_t""no" 1>&6
12038 #################################################
12039 # check for Kerberos 5 auth system
12040 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
12041 echo "configure:12042: checking whether to use Kerberos 5" >&5
12042 # Check whether --with-krb5 or --without-krb5 was given.
12043 if test "${with_krb5+set}" = set; then
12044 withval
="$with_krb5"
12047 echo "$ac_t""yes" 1>&6
12048 cat >> confdefs.h
<<\EOF
12049 #define KRB5_AUTH 1
12052 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
12053 CFLAGS
="$CFLAGS -I$withval/include"
12054 LDFLAGS
="$LDFLAGS -L$withval/lib"
12057 echo "$ac_t""no" 1>&6
12061 echo "$ac_t""no" 1>&6
12066 #################################################
12067 # check for automount support
12068 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12069 echo "configure:12070: checking whether to use AUTOMOUNT" >&5
12070 # Check whether --with-automount or --without-automount was given.
12071 if test "${with_automount+set}" = set; then
12072 withval
="$with_automount"
12075 echo "$ac_t""yes" 1>&6
12076 cat >> confdefs.h
<<\EOF
12077 #define WITH_AUTOMOUNT 1
12082 echo "$ac_t""no" 1>&6
12086 echo "$ac_t""no" 1>&6
12091 #################################################
12092 # check for smbmount support
12093 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12094 echo "configure:12095: checking whether to use SMBMOUNT" >&5
12095 # Check whether --with-smbmount or --without-smbmount was given.
12096 if test "${with_smbmount+set}" = set; then
12097 withval
="$with_smbmount"
12102 echo "$ac_t""yes" 1>&6
12103 cat >> confdefs.h
<<\EOF
12104 #define WITH_SMBMOUNT 1
12107 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
12110 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12115 echo "$ac_t""no" 1>&6
12120 echo "$ac_t""no" 1>&6
12127 #################################################
12128 # check for a PAM password database
12129 with_pam_for_crypt
=no
12130 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
12131 echo "configure:12132: checking whether to use PAM password database" >&5
12132 # Check whether --with-pam or --without-pam was given.
12133 if test "${with_pam+set}" = set; then
12134 withval
="$with_pam"
12137 echo "$ac_t""yes" 1>&6
12138 cat >> confdefs.h
<<\EOF
12143 with_pam_for_crypt
=yes
12146 echo "$ac_t""no" 1>&6
12150 echo "$ac_t""no" 1>&6
12155 # we can't build a pam module if we don't have pam.
12156 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12157 echo "configure:12158: checking for pam_get_data in -lpam" >&5
12158 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12162 ac_save_LIBS
="$LIBS"
12164 cat > conftest.
$ac_ext <<EOF
12165 #line 12166 "configure"
12166 #include "confdefs.h"
12167 /* Override any gcc2 internal prototype to avoid an error. */
12168 /* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12170 char pam_get_data();
12176 if { (eval echo configure
:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12178 eval "ac_cv_lib_$ac_lib_var=yes"
12180 echo "configure: failed program was:" >&5
12181 cat conftest.
$ac_ext >&5
12183 eval "ac_cv_lib_$ac_lib_var=no"
12186 LIBS
="$ac_save_LIBS"
12189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12190 echo "$ac_t""yes" 1>&6
12191 cat >> confdefs.h
<<\EOF
12192 #define HAVE_LIBPAM 1
12196 echo "$ac_t""no" 1>&6
12200 #################################################
12201 # check for pam_smbpass support
12202 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12203 echo "configure:12204: checking whether to use pam_smbpass" >&5
12204 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12205 if test "${with_pam_smbpass+set}" = set; then
12206 withval
="$with_pam_smbpass"
12209 echo "$ac_t""yes" 1>&6
12211 # Conditions under which pam_smbpass should not be built.
12213 if test x
$PICFLAG = x
; then
12214 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12216 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
12217 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12220 cat >> confdefs.h
<<\EOF
12221 #define WITH_PAM_SMBPASS 1
12224 PAM_MOD
="bin/pam_smbpass.so"
12228 echo "$ac_t""no" 1>&6
12232 echo "$ac_t""no" 1>&6
12238 ###############################################
12239 # test for where we get crypt() from, but only
12241 if test $with_pam_for_crypt = no
; then
12242 for ac_func
in crypt
12244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12245 echo "configure:12246: checking for $ac_func" >&5
12246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12249 cat > conftest.
$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 /* System header to define __stub macros and hopefully few prototypes,
12253 which can conflict with char $ac_func(); below. */
12254 #include <assert.h>
12255 /* Override any gcc2 internal prototype to avoid an error. */
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12262 /* The GNU C library defines this for functions which it implements
12263 to always fail with ENOSYS. Some functions are actually named
12264 something starting with __ and the normal name is an alias. */
12265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12273 if { (eval echo configure
:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12275 eval "ac_cv_func_$ac_func=yes"
12277 echo "configure: failed program was:" >&5
12278 cat conftest.
$ac_ext >&5
12280 eval "ac_cv_func_$ac_func=no"
12285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12286 echo "$ac_t""yes" 1>&6
12287 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12288 cat >> confdefs.h
<<EOF
12289 #define $ac_tr_func 1
12293 echo "$ac_t""no" 1>&6
12297 if test x
"$ac_cv_func_crypt" = x
"no"; then
12298 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12299 echo "configure:12300: checking for crypt in -lcrypt" >&5
12300 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12302 echo $ac_n "(cached) $ac_c" 1>&6
12304 ac_save_LIBS
="$LIBS"
12305 LIBS
="-lcrypt $LIBS"
12306 cat > conftest.
$ac_ext <<EOF
12307 #line 12308 "configure"
12308 #include "confdefs.h"
12309 /* Override any gcc2 internal prototype to avoid an error. */
12310 /* We use char because int might match the return type of a gcc2
12311 builtin and then its argument prototype would still apply. */
12318 if { (eval echo configure
:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12320 eval "ac_cv_lib_$ac_lib_var=yes"
12322 echo "configure: failed program was:" >&5
12323 cat conftest.
$ac_ext >&5
12325 eval "ac_cv_lib_$ac_lib_var=no"
12328 LIBS
="$ac_save_LIBS"
12331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12332 echo "$ac_t""yes" 1>&6
12333 LIBS
="$LIBS -lcrypt";
12334 cat >> confdefs.h
<<\EOF
12335 #define HAVE_CRYPT 1
12339 echo "$ac_t""no" 1>&6
12346 ## moved after the check for -lcrypt in order to
12347 ## ensure that the necessary libraries are included
12348 ## check checking for truncated salt. Wrapped by the
12349 ## $with_pam_for_crypt variable as above --jerry
12351 if test $with_pam_for_crypt = no
; then
12352 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12353 echo "configure:12354: checking for a crypt that needs truncated salt" >&5
12354 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12358 if test "$cross_compiling" = yes; then
12359 samba_cv_HAVE_TRUNCATED_SALT
=cross
12361 cat > conftest.
$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12364 #include "${srcdir-.}/tests/crypttest.c"
12366 if { (eval echo configure
:12367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12368 samba_cv_HAVE_TRUNCATED_SALT
=no
12370 echo "configure: failed program was:" >&5
12371 cat conftest.
$ac_ext >&5
12373 samba_cv_HAVE_TRUNCATED_SALT
=yes
12380 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12381 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12382 cat >> confdefs.h
<<\EOF
12383 #define HAVE_TRUNCATED_SALT 1
12390 ########################################################################################
12392 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12394 ########################################################################################
12396 ## set the with_smbpasswd_sam as the default
12397 with_smbpasswd_sam
=yes
12401 #################################################
12402 # check for a TDB password database
12403 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12404 echo "configure:12405: checking whether to use TDB SAM database" >&5
12405 # Check whether --with-tdbsam or --without-tdbsam was given.
12406 if test "${with_tdbsam+set}" = set; then
12407 withval
="$with_tdbsam"
12410 echo "$ac_t""yes" 1>&6
12411 cat >> confdefs.h
<<\EOF
12412 #define WITH_TDB_SAM 1
12415 with_smbpasswd_sam
=no
12418 echo "$ac_t""no" 1>&6
12422 echo "$ac_t""no" 1>&6
12427 #################################################
12428 # check for a LDAP password database
12429 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12430 echo "configure:12431: checking whether to use LDAP SAM database" >&5
12431 # Check whether --with-ldapsam or --without-ldapsam was given.
12432 if test "${with_ldapsam+set}" = set; then
12433 withval
="$with_ldapsam"
12436 echo "$ac_t""yes" 1>&6
12437 cat >> confdefs.h
<<\EOF
12438 #define WITH_LDAP_SAM 1
12442 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12443 echo "configure:12444: checking for ber_bvfree in -llber" >&5
12444 ac_lib_var
=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12448 ac_save_LIBS
="$LIBS"
12449 LIBS
="-llber $LIBS"
12450 cat > conftest.
$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12462 if { (eval echo configure
:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12464 eval "ac_cv_lib_$ac_lib_var=yes"
12466 echo "configure: failed program was:" >&5
12467 cat conftest.
$ac_ext >&5
12469 eval "ac_cv_lib_$ac_lib_var=no"
12472 LIBS
="$ac_save_LIBS"
12475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12477 LDAPLIBS
="$LDAPLIBS -llber"
12479 echo "$ac_t""no" 1>&6
12482 ## remove -lresolv as this should be included by the -lsasl dependency
12483 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12484 ## issues on platforms that don't have it
12485 LDAPLIBS
="$LDAPLIBS"
12486 old_LDFLAGS
="$LDFLAGS"
12487 LDFLAGS
="$LDFLAGS $LDAPLIBS"
12488 for ac_func
in ldap_start_tls_s
12490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12491 echo "configure:12492: checking for $ac_func" >&5
12492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12493 echo $ac_n "(cached) $ac_c" 1>&6
12495 cat > conftest.
$ac_ext <<EOF
12496 #line 12497 "configure"
12497 #include "confdefs.h"
12498 /* System header to define __stub macros and hopefully few prototypes,
12499 which can conflict with char $ac_func(); below. */
12500 #include <assert.h>
12501 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12508 /* The GNU C library defines this for functions which it implements
12509 to always fail with ENOSYS. Some functions are actually named
12510 something starting with __ and the normal name is an alias. */
12511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12519 if { (eval echo configure
:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12521 eval "ac_cv_func_$ac_func=yes"
12523 echo "configure: failed program was:" >&5
12524 cat conftest.
$ac_ext >&5
12526 eval "ac_cv_func_$ac_func=no"
12531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12532 echo "$ac_t""yes" 1>&6
12533 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12534 cat >> confdefs.h
<<EOF
12535 #define $ac_tr_func 1
12539 echo "$ac_t""no" 1>&6
12543 LDFLAGS
="$old_LDFLAGS"
12544 with_smbpasswd_sam
=no
12546 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12547 echo "configure:12548: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12548 if eval "test \"`echo '$''{'samba_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12549 echo $ac_n "(cached) $ac_c" 1>&6
12552 cat > conftest.
$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12559 ldap_set_rebind_proc(0, 0, 0);
12562 if { (eval echo configure
:12563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12564 samba_cv_ldap_set_rebind_proc
=3
12566 echo "configure: failed program was:" >&5
12567 cat conftest.
$ac_ext >&5
12569 samba_cv_ldap_set_rebind_proc
=2
12574 echo "$ac_t""$samba_cv_ldap_set_rebind_proc" 1>&6
12575 if test x
"$samba_cv_ldap_set_rebind_proc" = x
"3"; then
12576 cat >> confdefs.h
<<\EOF
12577 #define LDAP_SET_REBIND_PROC_ARGS 3
12581 cat >> confdefs.h
<<\EOF
12582 #define LDAP_SET_REBIND_PROC_ARGS 2
12588 echo "$ac_t""no" 1>&6
12592 echo "$ac_t""no" 1>&6
12598 #################################################
12599 # check for a NISPLUS password database
12600 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12601 echo "configure:12602: checking whether to use NISPLUS SAM database" >&5
12602 # Check whether --with-nisplussam or --without-nisplussam was given.
12603 if test "${with_nisplussam+set}" = set; then
12604 withval
="$with_nisplussam"
12607 echo "$ac_t""yes" 1>&6
12608 cat >> confdefs.h
<<\EOF
12609 #define WITH_NISPLUS_SAM 1
12612 with_smbpasswd_sam
=no
12615 echo "$ac_t""no" 1>&6
12619 echo "$ac_t""no" 1>&6
12624 ################################################
12625 # This test should come last because the
12626 # smbpasswd SAM is only used if another format
12627 # has not been defined
12628 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12629 echo "configure:12630: checking whether to use traditional smbpasswd file" >&5
12630 if test $with_smbpasswd_sam = yes; then
12631 echo "$ac_t""yes" 1>&6
12632 cat >> confdefs.h
<<\EOF
12633 #define WITH_SMBPASSWD_SAM 1
12638 echo "$ac_t""no" 1>&6
12639 PDBEDIT
="bin/pdbedit\$(EXEEXT)"
12642 ########################################################################################
12644 ## END OF TESTS FOR SAM BACKENDS.
12646 ########################################################################################
12648 #################################################
12649 # check for a NISPLUS_HOME support
12650 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12651 echo "configure:12652: checking whether to use NISPLUS_HOME" >&5
12652 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12653 if test "${with_nisplus_home+set}" = set; then
12654 withval
="$with_nisplus_home"
12657 echo "$ac_t""yes" 1>&6
12658 cat >> confdefs.h
<<\EOF
12659 #define WITH_NISPLUS_HOME 1
12664 echo "$ac_t""no" 1>&6
12668 echo "$ac_t""no" 1>&6
12673 #################################################
12674 # check for the secure socket layer
12675 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12676 echo "configure:12677: checking whether to use SSL" >&5
12677 # Check whether --with-ssl or --without-ssl was given.
12678 if test "${with_ssl+set}" = set; then
12679 withval
="$with_ssl"
12682 echo "$ac_t""yes" 1>&6
12683 cat >> confdefs.h
<<\EOF
12687 withval
="/usr/local/ssl" # default
12689 if test "${with_sslinc+set}" = set; then
12691 withval
="$with_sslinc"
12694 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12695 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12698 CFLAGS
="-I${withval} $CFLAGS"
12704 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12708 if test "${with_ssllib+set}" = set; then
12710 withval
="$with_ssllib"
12713 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12714 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12717 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12723 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12727 LIBS
="-lssl -lcrypto $LIBS"
12729 # if test ! -d ${withval}; then
12730 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12734 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12738 echo "$ac_t""no" 1>&6
12742 echo "$ac_t""no" 1>&6
12747 #################################################
12748 # check for syslog logging
12749 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12750 echo "configure:12751: checking whether to use syslog logging" >&5
12751 # Check whether --with-syslog or --without-syslog was given.
12752 if test "${with_syslog+set}" = set; then
12753 withval
="$with_syslog"
12756 echo "$ac_t""yes" 1>&6
12757 cat >> confdefs.h
<<\EOF
12758 #define WITH_SYSLOG 1
12763 echo "$ac_t""no" 1>&6
12767 echo "$ac_t""no" 1>&6
12772 #################################################
12773 # check for a shared memory profiling support
12774 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12775 echo "configure:12776: checking whether to use profiling" >&5
12776 # Check whether --with-profiling-data or --without-profiling-data was given.
12777 if test "${with_profiling_data+set}" = set; then
12778 withval
="$with_profiling_data"
12781 echo "$ac_t""yes" 1>&6
12782 cat >> confdefs.h
<<\EOF
12783 #define WITH_PROFILE 1
12788 echo "$ac_t""no" 1>&6
12792 echo "$ac_t""no" 1>&6
12798 #################################################
12799 # check for experimental disk-quotas support
12800 QUOTAOBJS
=smbd
/noquotas.o
12802 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12803 echo "configure:12804: checking whether to support disk-quotas" >&5
12804 # Check whether --with-quotas or --without-quotas was given.
12805 if test "${with_quotas+set}" = set; then
12806 withval
="$with_quotas"
12809 echo "$ac_t""yes" 1>&6
12810 QUOTAOBJS
=smbd
/quotas.o
12813 echo "$ac_t""no" 1>&6
12817 echo "$ac_t""no" 1>&6
12823 #################################################
12824 # check for experimental utmp accounting
12826 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12827 echo "configure:12828: checking whether to support utmp accounting" >&5
12828 # Check whether --with-utmp or --without-utmp was given.
12829 if test "${with_utmp+set}" = set; then
12830 withval
="$with_utmp"
12833 echo "$ac_t""yes" 1>&6
12834 cat >> confdefs.h
<<\EOF
12835 #define WITH_UTMP 1
12840 echo "$ac_t""no" 1>&6
12844 echo "$ac_t""no" 1>&6
12849 #################################################
12850 # check for MS Dfs support
12852 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12853 echo "configure:12854: checking whether to support Microsoft Dfs" >&5
12854 # Check whether --with-msdfs or --without-msdfs was given.
12855 if test "${with_msdfs+set}" = set; then
12856 withval
="$with_msdfs"
12859 echo "$ac_t""yes" 1>&6
12860 cat >> confdefs.h
<<\EOF
12861 #define WITH_MSDFS 1
12866 echo "$ac_t""no" 1>&6
12870 echo "$ac_t""no" 1>&6
12875 #################################################
12876 # should we build libsmbclient?
12878 INSTALLCLIENTCMD_SH
=:
12879 INSTALLCLIENTCMD_A
=:
12880 LIBSMBCLIENT_SHARED
=
12882 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12883 echo "configure:12884: checking whether to build the libsmbclient shared library" >&5
12884 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12885 if test "${with_libsmbclient+set}" = set; then
12886 withval
="$with_libsmbclient"
12889 if test $BLDSHARED = true
; then
12890 INSTALLCLIENTCMD_SH
="\$(INSTALLCMD)"
12891 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12892 LIBSMBCLIENT
=libsmbclient
12893 echo "$ac_t""yes" 1>&6
12895 INSTALLCLIENTCMD_A
="\$(INSTALLCMD)"
12896 LIBSMBCLIENT
=libsmbclient
12897 echo "$ac_t""no shared library support -- will supply static library" 1>&6
12901 echo "$ac_t""no" 1>&6
12905 echo "$ac_t""no" 1>&6
12910 #################################################
12911 # these tests are taken from the GNU fileutils package
12912 echo "checking how to get filesystem space usage" 1>&6
12913 echo "configure:12914: checking how to get filesystem space usage" >&5
12916 # Test for statvfs64.
12917 if test $space = no
; then
12919 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12920 echo "configure:12921: checking statvfs64 function (SVR4)" >&5
12921 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12922 echo $ac_n "(cached) $ac_c" 1>&6
12924 if test "$cross_compiling" = yes; then
12925 fu_cv_sys_stat_statvfs64
=cross
12927 cat > conftest.
$ac_ext <<EOF
12928 #line 12929 "configure"
12929 #include "confdefs.h"
12931 #if defined(HAVE_UNISTD_H)
12932 #include <unistd.h>
12934 #include <sys/types.h>
12935 #include <sys/statvfs.h>
12938 struct statvfs64 fsd;
12939 exit (statvfs64 (".", &fsd));
12942 if { (eval echo configure
:12943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12944 fu_cv_sys_stat_statvfs64
=yes
12946 echo "configure: failed program was:" >&5
12947 cat conftest.
$ac_ext >&5
12949 fu_cv_sys_stat_statvfs64
=no
12956 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12957 if test $fu_cv_sys_stat_statvfs64 = yes; then
12959 cat >> confdefs.h
<<\EOF
12960 #define STAT_STATVFS64 1
12966 # Perform only the link test since it seems there are no variants of the
12967 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12968 # because that got a false positive on SCO OSR5. Adding the declaration
12969 # of a `struct statvfs' causes this test to fail (as it should) on such
12970 # systems. That system is reported to work fine with STAT_STATFS4 which
12971 # is what it gets when this test fails.
12972 if test $space = no
; then
12974 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12975 echo "configure:12976: checking statvfs function (SVR4)" >&5
12976 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12977 echo $ac_n "(cached) $ac_c" 1>&6
12979 cat > conftest.
$ac_ext <<EOF
12980 #line 12981 "configure"
12981 #include "confdefs.h"
12982 #include <sys/types.h>
12983 #include <sys/statvfs.h>
12985 struct statvfs fsd; statvfs (0, &fsd);
12988 if { (eval echo configure
:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12990 fu_cv_sys_stat_statvfs
=yes
12992 echo "configure: failed program was:" >&5
12993 cat conftest.
$ac_ext >&5
12995 fu_cv_sys_stat_statvfs
=no
13000 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13001 if test $fu_cv_sys_stat_statvfs = yes; then
13003 cat >> confdefs.h
<<\EOF
13004 #define STAT_STATVFS 1
13010 if test $space = no
; then
13011 # DEC Alpha running OSF/1
13012 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13013 echo "configure:13014: checking for 3-argument statfs function (DEC OSF/1)" >&5
13014 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13015 echo $ac_n "(cached) $ac_c" 1>&6
13017 if test "$cross_compiling" = yes; then
13018 fu_cv_sys_stat_statfs3_osf1
=no
13020 cat > conftest.
$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13024 #include <sys/param.h>
13025 #include <sys/types.h>
13026 #include <sys/mount.h>
13031 exit (statfs (".", &fsd, sizeof (struct statfs)));
13034 if { (eval echo configure
:13035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13036 fu_cv_sys_stat_statfs3_osf1
=yes
13038 echo "configure: failed program was:" >&5
13039 cat conftest.
$ac_ext >&5
13041 fu_cv_sys_stat_statfs3_osf1
=no
13048 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13049 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13051 cat >> confdefs.h
<<\EOF
13052 #define STAT_STATFS3_OSF1 1
13058 if test $space = no
; then
13060 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13061 echo "configure:13062: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13062 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13065 if test "$cross_compiling" = yes; then
13066 fu_cv_sys_stat_statfs2_bsize
=no
13068 cat > conftest.
$ac_ext <<EOF
13069 #line 13070 "configure"
13070 #include "confdefs.h"
13072 #ifdef HAVE_SYS_PARAM_H
13073 #include <sys/param.h>
13075 #ifdef HAVE_SYS_MOUNT_H
13076 #include <sys/mount.h>
13078 #ifdef HAVE_SYS_VFS_H
13079 #include <sys/vfs.h>
13085 exit (statfs (".", &fsd));
13088 if { (eval echo configure
:13089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13090 fu_cv_sys_stat_statfs2_bsize
=yes
13092 echo "configure: failed program was:" >&5
13093 cat conftest.
$ac_ext >&5
13095 fu_cv_sys_stat_statfs2_bsize
=no
13102 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13103 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13105 cat >> confdefs.h
<<\EOF
13106 #define STAT_STATFS2_BSIZE 1
13112 if test $space = no
; then
13114 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13115 echo "configure:13116: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13116 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13117 echo $ac_n "(cached) $ac_c" 1>&6
13119 if test "$cross_compiling" = yes; then
13120 fu_cv_sys_stat_statfs4
=no
13122 cat > conftest.
$ac_ext <<EOF
13123 #line 13124 "configure"
13124 #include "confdefs.h"
13125 #include <sys/types.h>
13126 #include <sys/statfs.h>
13130 exit (statfs (".", &fsd, sizeof fsd, 0));
13133 if { (eval echo configure
:13134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13135 fu_cv_sys_stat_statfs4
=yes
13137 echo "configure: failed program was:" >&5
13138 cat conftest.
$ac_ext >&5
13140 fu_cv_sys_stat_statfs4
=no
13147 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13148 if test $fu_cv_sys_stat_statfs4 = yes; then
13150 cat >> confdefs.h
<<\EOF
13151 #define STAT_STATFS4 1
13157 if test $space = no
; then
13158 # 4.4BSD and NetBSD
13159 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13160 echo "configure:13161: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13161 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13162 echo $ac_n "(cached) $ac_c" 1>&6
13164 if test "$cross_compiling" = yes; then
13165 fu_cv_sys_stat_statfs2_fsize
=no
13167 cat > conftest.
$ac_ext <<EOF
13168 #line 13169 "configure"
13169 #include "confdefs.h"
13170 #include <sys/types.h>
13171 #ifdef HAVE_SYS_PARAM_H
13172 #include <sys/param.h>
13174 #ifdef HAVE_SYS_MOUNT_H
13175 #include <sys/mount.h>
13181 exit (statfs (".", &fsd));
13184 if { (eval echo configure
:13185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13186 fu_cv_sys_stat_statfs2_fsize
=yes
13188 echo "configure: failed program was:" >&5
13189 cat conftest.
$ac_ext >&5
13191 fu_cv_sys_stat_statfs2_fsize
=no
13198 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13199 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13201 cat >> confdefs.h
<<\EOF
13202 #define STAT_STATFS2_FSIZE 1
13208 if test $space = no
; then
13210 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13211 echo "configure:13212: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13212 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13215 if test "$cross_compiling" = yes; then
13216 fu_cv_sys_stat_fs_data
=no
13218 cat > conftest.
$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 #include <sys/types.h>
13222 #ifdef HAVE_SYS_PARAM_H
13223 #include <sys/param.h>
13225 #ifdef HAVE_SYS_MOUNT_H
13226 #include <sys/mount.h>
13228 #ifdef HAVE_SYS_FS_TYPES_H
13229 #include <sys/fs_types.h>
13233 struct fs_data fsd;
13234 /* Ultrix's statfs returns 1 for success,
13235 0 for not mounted, -1 for failure. */
13236 exit (statfs (".", &fsd) != 1);
13239 if { (eval echo configure
:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13241 fu_cv_sys_stat_fs_data
=yes
13243 echo "configure: failed program was:" >&5
13244 cat conftest.
$ac_ext >&5
13246 fu_cv_sys_stat_fs_data
=no
13253 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13254 if test $fu_cv_sys_stat_fs_data = yes; then
13256 cat >> confdefs.h
<<\EOF
13257 #define STAT_STATFS2_FS_DATA 1
13264 # As a gating factor for large file support, in order to
13265 # use <4GB files we must have the following minimal support
13267 # long long, and a 64 bit off_t or off64_t.
13268 # If we don't have all of these then disable large
13271 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13272 echo "configure:13273: checking if large file support can be enabled" >&5
13273 cat > conftest.
$ac_ext <<EOF
13274 #line 13275 "configure"
13275 #include "confdefs.h"
13277 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13278 #include <sys/types.h>
13287 if { (eval echo configure
:13288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13289 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13291 echo "configure: failed program was:" >&5
13292 cat conftest.
$ac_ext >&5
13294 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13297 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13298 echo "$ac_t""yes" 1>&6
13299 cat >> confdefs.h
<<\EOF
13300 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13304 echo "$ac_t""no" 1>&6
13307 # Check whether --with-spinlocks or --without-spinlocks was given.
13308 if test "${with_spinlocks+set}" = set; then
13309 withval
="$with_spinlocks"
13313 if test "x$with_spinlocks" = "xyes"; then
13314 cat >> confdefs.h
<<\EOF
13315 #define USE_SPINLOCKS 1
13319 case "$host_cpu" in
13321 cat >> confdefs.h
<<\EOF
13322 #define SPARC_SPINLOCKS 1
13327 i386|i486|i586|i686
)
13328 cat >> confdefs.h
<<\EOF
13329 #define INTEL_SPINLOCKS 1
13335 cat >> confdefs.h
<<\EOF
13336 #define MIPS_SPINLOCKS 1
13342 cat >> confdefs.h
<<\EOF
13343 #define POWERPC_SPINLOCKS 1
13350 #################################################
13351 # check for ACL support
13353 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13354 echo "configure:13355: checking whether to support ACLs" >&5
13355 # Check whether --with-acl-support or --without-acl-support was given.
13356 if test "${with_acl_support+set}" = set; then
13357 withval
="$with_acl_support"
13363 echo "$ac_t""Using UnixWare ACLs" 1>&6
13364 cat >> confdefs.h
<<\EOF
13365 #define HAVE_UNIXWARE_ACLS 1
13370 echo "$ac_t""Using solaris ACLs" 1>&6
13371 cat >> confdefs.h
<<\EOF
13372 #define HAVE_SOLARIS_ACLS 1
13377 echo "$ac_t""Using HPUX ACLs" 1>&6
13378 cat >> confdefs.h
<<\EOF
13379 #define HAVE_HPUX_ACLS 1
13384 echo "$ac_t""Using IRIX ACLs" 1>&6
13385 cat >> confdefs.h
<<\EOF
13386 #define HAVE_IRIX_ACLS 1
13391 echo "$ac_t""Using AIX ACLs" 1>&6
13392 cat >> confdefs.h
<<\EOF
13393 #define HAVE_AIX_ACLS 1
13398 echo "$ac_t""Using Tru64 ACLs" 1>&6
13399 cat >> confdefs.h
<<\EOF
13400 #define HAVE_TRU64_ACLS 1
13403 LIBS
="$LIBS -lpacl"
13406 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13407 echo "configure:13408: checking for acl_get_file in -lacl" >&5
13408 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13410 echo $ac_n "(cached) $ac_c" 1>&6
13412 ac_save_LIBS
="$LIBS"
13414 cat > conftest.
$ac_ext <<EOF
13415 #line 13416 "configure"
13416 #include "confdefs.h"
13417 /* Override any gcc2 internal prototype to avoid an error. */
13418 /* We use char because int might match the return type of a gcc2
13419 builtin and then its argument prototype would still apply. */
13420 char acl_get_file();
13426 if { (eval echo configure
:13427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13428 eval "ac_cv_lib_$ac_lib_var=yes"
13430 echo "configure: failed program was:" >&5
13431 cat conftest.
$ac_ext >&5
13433 eval "ac_cv_lib_$ac_lib_var=no"
13436 LIBS
="$ac_save_LIBS"
13439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13440 echo "$ac_t""yes" 1>&6
13441 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13443 cat >> confdefs.h
<<EOF
13444 #define $ac_tr_lib 1
13450 echo "$ac_t""no" 1>&6
13453 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13454 echo "configure:13455: checking for ACL support" >&5
13455 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13456 echo $ac_n "(cached) $ac_c" 1>&6
13459 cat > conftest.
$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13462 #include <sys/types.h>
13463 #include <sys/acl.h>
13465 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13468 if { (eval echo configure
:13469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13470 samba_cv_HAVE_POSIX_ACLS
=yes
13472 echo "configure: failed program was:" >&5
13473 cat conftest.
$ac_ext >&5
13475 samba_cv_HAVE_POSIX_ACLS
=no
13480 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13481 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13482 echo "$ac_t""Using posix ACLs" 1>&6
13483 cat >> confdefs.h
<<\EOF
13484 #define HAVE_POSIX_ACLS 1
13487 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13488 echo "configure:13489: checking for acl_get_perm_np" >&5
13489 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13490 echo $ac_n "(cached) $ac_c" 1>&6
13493 cat > conftest.
$ac_ext <<EOF
13494 #line 13495 "configure"
13495 #include "confdefs.h"
13496 #include <sys/types.h>
13497 #include <sys/acl.h>
13499 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13502 if { (eval echo configure
:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13504 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13506 echo "configure: failed program was:" >&5
13507 cat conftest.
$ac_ext >&5
13509 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13514 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13515 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13516 cat >> confdefs.h
<<\EOF
13517 #define HAVE_ACL_GET_PERM_NP 1
13526 echo "$ac_t""no" 1>&6
13527 cat >> confdefs.h
<<\EOF
13528 #define HAVE_NO_ACLS 1
13534 cat >> confdefs.h
<<\EOF
13535 #define HAVE_NO_ACLS 1
13538 echo "$ac_t""no" 1>&6
13543 #################################################
13544 # check for the historical SAMBA installation
13546 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13547 # Put all binaries under the /usr/local/samba/bin directory.
13551 #################################################
13552 # check for sendfile support
13554 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13555 echo "configure:13556: checking whether to check for support sendfile" >&5
13556 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13557 if test "${with_sendfile_support+set}" = set; then
13558 withval
="$with_sendfile_support"
13562 echo "$ac_t""yes" 1>&6;
13566 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13567 echo "configure:13568: checking for linux sendfile64 support" >&5
13568 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13569 echo $ac_n "(cached) $ac_c" 1>&6
13572 cat > conftest.
$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 #include <sys/sendfile.h>
13581 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13585 if { (eval echo configure
:13586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13587 samba_cv_HAVE_SENDFILE64
=yes
13589 echo "configure: failed program was:" >&5
13590 cat conftest.
$ac_ext >&5
13592 samba_cv_HAVE_SENDFILE64
=no
13597 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13599 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13600 echo "configure:13601: checking for linux sendfile support" >&5
13601 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13602 echo $ac_n "(cached) $ac_c" 1>&6
13605 cat > conftest.
$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 #include <sys/sendfile.h>
13614 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13618 if { (eval echo configure
:13619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13620 samba_cv_HAVE_SENDFILE
=yes
13622 echo "configure: failed program was:" >&5
13623 cat conftest.
$ac_ext >&5
13625 samba_cv_HAVE_SENDFILE
=no
13630 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13632 # Try and cope with broken Linux sendfile....
13633 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13634 echo "configure:13635: checking for broken linux sendfile support" >&5
13635 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13636 echo $ac_n "(cached) $ac_c" 1>&6
13639 cat > conftest.
$ac_ext <<EOF
13640 #line 13641 "configure"
13641 #include "confdefs.h"
13643 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13644 #undef _FILE_OFFSET_BITS
13646 #include <sys/sendfile.h>
13652 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13656 if { (eval echo configure
:13657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13658 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
13660 echo "configure: failed program was:" >&5
13661 cat conftest.
$ac_ext >&5
13663 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
13668 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13670 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
13671 cat >> confdefs.h
<<\EOF
13672 #define HAVE_SENDFILE64 1
13675 cat >> confdefs.h
<<\EOF
13676 #define LINUX_SENDFILE_API 1
13679 cat >> confdefs.h
<<\EOF
13680 #define WITH_SENDFILE 1
13683 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13684 cat >> confdefs.h
<<\EOF
13685 #define HAVE_SENDFILE 1
13688 cat >> confdefs.h
<<\EOF
13689 #define LINUX_SENDFILE_API 1
13692 cat >> confdefs.h
<<\EOF
13693 #define WITH_SENDFILE 1
13696 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
13697 cat >> confdefs.h
<<\EOF
13698 #define LINUX_BROKEN_SENDFILE_API 1
13701 cat >> confdefs.h
<<\EOF
13702 #define WITH_SENDFILE 1
13706 echo "$ac_t""no" 1>&6;
13711 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13712 echo "configure:13713: checking for freebsd sendfile support" >&5
13713 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13714 echo $ac_n "(cached) $ac_c" 1>&6
13717 cat > conftest.
$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13721 #include <sys/types.h>
13722 #include <sys/socket.h>
13723 #include <sys/uio.h>
13726 #define NULL (void *)0
13727 int fromfd, tofd, ret, total;
13728 off_t offset, nwritten;
13730 struct iovec *headers;
13732 struct iovec *trailers;
13735 struct iovec hdtrl;
13736 hdr.headers = &hdtrl;
13738 hdr.trailers = NULL;
13740 hdtrl.iov_base = NULL;
13742 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13746 if { (eval echo configure
:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13748 samba_cv_HAVE_SENDFILE
=yes
13750 echo "configure: failed program was:" >&5
13751 cat conftest.
$ac_ext >&5
13753 samba_cv_HAVE_SENDFILE
=no
13758 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13760 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13761 cat >> confdefs.h
<<\EOF
13762 #define HAVE_SENDFILE 1
13765 cat >> confdefs.h
<<\EOF
13766 #define FREEBSD_SENDFILE_API 1
13769 cat >> confdefs.h
<<\EOF
13770 #define WITH_SENDFILE 1
13774 echo "$ac_t""no" 1>&6;
13779 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
13780 echo "configure:13781: checking for hpux sendfile64 support" >&5
13781 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13782 echo $ac_n "(cached) $ac_c" 1>&6
13785 cat > conftest.
$ac_ext <<EOF
13786 #line 13787 "configure"
13787 #include "confdefs.h"
13789 #include <sys/socket.h>
13790 #include <sys/uio.h>
13795 struct iovec hdtrl[2];
13799 hdtrl[0].iov_base = 0;
13800 hdtrl[0].iov_len = 0;
13802 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
13806 if { (eval echo configure
:13807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13808 samba_cv_HAVE_SENDFILE64
=yes
13810 echo "configure: failed program was:" >&5
13811 cat conftest.
$ac_ext >&5
13813 samba_cv_HAVE_SENDFILE64
=no
13818 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13819 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
13820 cat >> confdefs.h
<<\EOF
13821 #define HAVE_SENDFILE64 1
13824 cat >> confdefs.h
<<\EOF
13825 #define HPUX_SENDFILE_API 1
13828 cat >> confdefs.h
<<\EOF
13829 #define WITH_SENDFILE 1
13833 echo "$ac_t""no" 1>&6;
13836 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
13837 echo "configure:13838: checking for hpux sendfile support" >&5
13838 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13842 cat > conftest.
$ac_ext <<EOF
13843 #line 13844 "configure"
13844 #include "confdefs.h"
13846 #include <sys/socket.h>
13847 #include <sys/uio.h>
13852 struct iovec hdtrl[2];
13856 hdtrl[0].iov_base = 0;
13857 hdtrl[0].iov_len = 0;
13859 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
13863 if { (eval echo configure
:13864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13865 samba_cv_HAVE_SENDFILE
=yes
13867 echo "configure: failed program was:" >&5
13868 cat conftest.
$ac_ext >&5
13870 samba_cv_HAVE_SENDFILE
=no
13875 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13876 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13877 cat >> confdefs.h
<<\EOF
13878 #define HAVE_SENDFILE 1
13881 cat >> confdefs.h
<<\EOF
13882 #define HPUX_SENDFILE_API 1
13885 cat >> confdefs.h
<<\EOF
13886 #define WITH_SENDFILE 1
13890 echo "$ac_t""no" 1>&6;
13895 LIBS
="$LIBS -lsendfile"
13896 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
13897 echo "configure:13898: checking for solaris sendfilev64 support" >&5
13898 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
13899 echo $ac_n "(cached) $ac_c" 1>&6
13902 cat > conftest.
$ac_ext <<EOF
13903 #line 13904 "configure"
13904 #include "confdefs.h"
13906 #include <sys/sendfile.h>
13911 struct sendfilevec vec[2];
13917 vec[0].sfv_fd = SFV_FD_SELF;
13918 vec[0].sfv_flag = 0;
13919 vec[0].sfv_off = 0;
13920 vec[0].sfv_len = 0;
13923 vec[1].sfv_flag = 0;
13924 vec[1].sfv_off = 0;
13925 vec[1].sfv_len = 0;
13926 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
13930 if { (eval echo configure
:13931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13932 samba_cv_HAVE_SENDFILEV64
=yes
13934 echo "configure: failed program was:" >&5
13935 cat conftest.
$ac_ext >&5
13937 samba_cv_HAVE_SENDFILEV64
=no
13942 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
13944 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
13945 cat >> confdefs.h
<<\EOF
13946 #define HAVE_SENDFILEV64 1
13949 cat >> confdefs.h
<<\EOF
13950 #define SOLARIS_SENDFILE_API 1
13953 cat >> confdefs.h
<<\EOF
13954 #define WITH_SENDFILE 1
13958 echo "$ac_t""no" 1>&6;
13961 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
13962 echo "configure:13963: checking for solaris sendfilev support" >&5
13963 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13967 cat > conftest.
$ac_ext <<EOF
13968 #line 13969 "configure"
13969 #include "confdefs.h"
13971 #include <sys/sendfile.h>
13976 struct sendfilevec vec[2];
13982 vec[0].sfv_fd = SFV_FD_SELF;
13983 vec[0].sfv_flag = 0;
13984 vec[0].sfv_off = 0;
13985 vec[0].sfv_len = 0;
13988 vec[1].sfv_flag = 0;
13989 vec[1].sfv_off = 0;
13990 vec[1].sfv_len = 0;
13991 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
13995 if { (eval echo configure
:13996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13997 samba_cv_HAVE_SENDFILEV
=yes
13999 echo "configure: failed program was:" >&5
14000 cat conftest.
$ac_ext >&5
14002 samba_cv_HAVE_SENDFILEV
=no
14007 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
14009 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
14010 cat >> confdefs.h
<<\EOF
14011 #define HAVE_SENDFILEV 1
14014 cat >> confdefs.h
<<\EOF
14015 #define SOLARIS_SENDFILE_API 1
14018 cat >> confdefs.h
<<\EOF
14019 #define WITH_SENDFILE 1
14023 echo "$ac_t""no" 1>&6;
14032 echo "$ac_t""no" 1>&6
14036 echo "$ac_t""no" 1>&6
14041 #################################################
14042 # Check whether winbind is supported on this platform. If so we need to
14043 # build and install client programs (WINBIND_TARGETS), sbin programs
14044 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
14046 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
14047 echo "configure:14048: checking whether to build winbind" >&5
14049 # Initially, the value of $host_os decides whether winbind is supported
14057 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
14058 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
14062 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
14069 winbind_no_reason
=", unsupported on $host_os"
14073 # Check the setting of --with-winbindd
14075 # Check whether --with-winbind or --without-winbind was given.
14076 if test "${with_winbind+set}" = set; then
14077 withval
="$with_winbind"
14091 # We need unix domain sockets for winbind
14093 if test x
"$HAVE_WINBIND" = x
"yes"; then
14094 if test x
"$samba_cv_unixsocket" = x
"no"; then
14095 winbind_no_reason
=", no unix domain socket support on $host_os"
14100 # Display test results
14102 if test x
"$HAVE_WINBIND" = x
"yes"; then
14104 echo "$ac_t""yes" 1>&6
14106 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
14107 echo "configure:14108: checking whether to enable winbind auth challenge/response code" >&5
14108 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
14109 if test "${with_winbind_auth_challenge+set}" = set; then
14110 withval
="$with_winbind_auth_challenge"
14114 cat >> confdefs.h
<<\EOF
14115 #define WITH_WINBIND_AUTH_CRAP 1
14118 echo "$ac_t""yes" 1>&6
14121 echo "$ac_t""no" 1>&6
14125 echo "$ac_t""no" 1>&6
14130 # Check for FreeBSD problem with getgroups
14132 WINBIND_TARGETS
="bin/wbinfo\$(EXEEXT)"
14133 WINBIND_STARGETS
="bin/winbindd\$(EXEEXT)"
14136 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
14139 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
14144 case "$with_pam" in
14146 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
14150 # Check for Horrible winbindd ldap hack.
14152 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
14153 echo "configure:14154: checking whether to enable winbind ldap hack" >&5
14154 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
14155 if test "${with_winbind_ldap_hack+set}" = set; then
14156 withval
="$with_winbind_ldap_hack"
14160 cat >> confdefs.h
<<\EOF
14161 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
14164 LIBS
="$LIBS -lldap";
14165 echo "$ac_t""yes" 1>&6
14168 echo "$ac_t""no" 1>&6
14172 echo "$ac_t""no" 1>&6
14178 echo "$ac_t""no$winbind_no_reason" 1>&6
14181 WINBIND_STARGETS
=""
14182 WINBIND_LTARGETS
=""
14183 WINBIND_PAM_TARGETS
=""
14187 # Check for FreeBSD problem with getgroups
14188 # It returns EGID too many times in the list of groups
14189 # and causes a security problem
14190 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
14191 echo "configure:14192: checking whether or not getgroups returns EGID too many times" >&5
14192 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
14193 echo $ac_n "(cached) $ac_c" 1>&6
14195 if test "$cross_compiling" = yes; then
14196 samba_cv_have_getgroups_too_many_egids
=cross
14198 cat > conftest.
$ac_ext <<EOF
14199 #line 14200 "configure"
14200 #include "confdefs.h"
14202 #include <sys/types.h>
14205 int main(int argc, char *argv[])
14210 n = getgroups(n, &groups);
14211 /* Could actually pass back the number of EGIDs there ... */
14212 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
14215 if { (eval echo configure
:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14217 samba_cv_have_getgroups_too_many_egids
=no
14219 echo "configure: failed program was:" >&5
14220 cat conftest.
$ac_ext >&5
14222 samba_cv_have_getgroups_too_many_egids
=yes
14229 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
14230 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
14231 cat >> confdefs.h
<<\EOF
14232 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
14237 # Substitution time!
14246 # Solaris has some extra fields in struct passwd that need to be
14247 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14248 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14251 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14252 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14253 # [#include <pwd.h>])
14255 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14256 echo "configure:14257: checking whether struct passwd has pw_comment" >&5
14257 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14258 echo $ac_n "(cached) $ac_c" 1>&6
14261 cat > conftest.
$ac_ext <<EOF
14262 #line 14263 "configure"
14263 #include "confdefs.h"
14266 struct passwd p; p.pw_comment;
14269 if { (eval echo configure
:14270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14271 samba_cv_passwd_pw_comment
=yes
14273 echo "configure: failed program was:" >&5
14274 cat conftest.
$ac_ext >&5
14276 samba_cv_passwd_pw_comment
=no
14281 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14282 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
14283 cat >> confdefs.h
<<\EOF
14284 #define HAVE_PASSWD_PW_COMMENT 1
14289 #AC_CHECK_MEMBER(struct passwd.pw_age,
14290 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14291 # [#include <pwd.h>])
14293 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14294 echo "configure:14295: checking whether struct passwd has pw_age" >&5
14295 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14299 cat > conftest.
$ac_ext <<EOF
14300 #line 14301 "configure"
14301 #include "confdefs.h"
14304 struct passwd p; p.pw_age;
14307 if { (eval echo configure
:14308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14309 samba_cv_passwd_pw_age
=yes
14311 echo "configure: failed program was:" >&5
14312 cat conftest.
$ac_ext >&5
14314 samba_cv_passwd_pw_age
=no
14319 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14320 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
14321 cat >> confdefs.h
<<\EOF
14322 #define HAVE_PASSWD_PW_AGE 1
14327 #################################################
14328 # Check to see if we should use the included popt
14330 # Check whether --with-included-popt or --without-included-popt was given.
14331 if test "${with_included_popt+set}" = set; then
14332 withval
="$with_included_popt"
14344 if test x
"$INCLUDED_POPT" != x
"yes"; then
14345 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14346 echo "configure:14347: checking for poptGetContext in -lpopt" >&5
14347 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14349 echo $ac_n "(cached) $ac_c" 1>&6
14351 ac_save_LIBS
="$LIBS"
14352 LIBS
="-lpopt $LIBS"
14353 cat > conftest.
$ac_ext <<EOF
14354 #line 14355 "configure"
14355 #include "confdefs.h"
14356 /* Override any gcc2 internal prototype to avoid an error. */
14357 /* We use char because int might match the return type of a gcc2
14358 builtin and then its argument prototype would still apply. */
14359 char poptGetContext();
14365 if { (eval echo configure
:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14367 eval "ac_cv_lib_$ac_lib_var=yes"
14369 echo "configure: failed program was:" >&5
14370 cat conftest.
$ac_ext >&5
14372 eval "ac_cv_lib_$ac_lib_var=no"
14375 LIBS
="$ac_save_LIBS"
14378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14379 echo "$ac_t""yes" 1>&6
14382 echo "$ac_t""no" 1>&6
14388 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14389 echo "configure:14390: checking whether to use included popt" >&5
14390 if test x
"$INCLUDED_POPT" = x
"yes"; then
14391 echo "$ac_t""$srcdir/popt" 1>&6
14392 BUILD_POPT
='$(POPT_OBJS)'
14393 FLAGS1
="-I$srcdir/popt"
14395 echo "$ac_t""no" 1>&6
14396 LIBS
="$LIBS -lpopt"
14401 #################################################
14402 # final configure stuff
14403 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14404 echo "configure:14405: checking configure summary" >&5
14405 if test "$cross_compiling" = yes; then
14406 echo "configure: warning: cannot run when cross-compiling" 1>&2
14408 cat > conftest.
$ac_ext <<EOF
14409 #line 14410 "configure"
14410 #include "confdefs.h"
14411 #include "${srcdir-.}/tests/summary.c"
14413 if { (eval echo configure
:14414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14415 echo "$ac_t""yes" 1>&6
14417 echo "configure: failed program was:" >&5
14418 cat conftest.
$ac_ext >&5
14420 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14430 cat > confcache
<<\EOF
14431 # This file is a shell script that caches the results of configure
14432 # tests run on this system so they can be shared between configure
14433 # scripts and configure runs. It is not useful on other systems.
14434 # If it contains results you don't want to keep, you may remove or edit it.
14436 # By default, configure uses ./config.cache as the cache file,
14437 # creating it if it does not exist already. You can give configure
14438 # the --cache-file=FILE option to use a different cache file; that is
14439 # what configure does when it calls configure scripts in
14440 # subdirectories, so they share the cache.
14441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14442 # config.status only pays attention to the cache file if you give it the
14443 # --recheck option to rerun configure.
14446 # The following way of writing the cache mishandles newlines in values,
14447 # but we know of no workaround that is simple, portable, and efficient.
14448 # So, don't put newlines in cache variables' values.
14449 # Ultrix sh set writes to stderr and can't be redirected directly,
14450 # and sets the high bit in the cache file unless we assign to the vars.
14452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14454 # `set' does not quote correctly, so add quotes (double-quote substitution
14455 # turns \\\\ into \\, and sed turns \\ into \).
14457 -e "s/'/'\\\\''/g" \
14458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14461 # `set' quotes correctly as required by POSIX, so do not add quotes.
14462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14465 if cmp -s $cache_file confcache
; then
14468 if test -w $cache_file; then
14469 echo "updating cache $cache_file"
14470 cat confcache
> $cache_file
14472 echo "not updating unwritable cache $cache_file"
14477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14479 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14480 # Let make expand exec_prefix.
14481 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14483 # Any assignment to VPATH causes Sun make to only execute
14484 # the first set of double-colon rules, so remove it if not needed.
14485 # If there is a colon in the path, we need to keep it.
14486 if test "x$srcdir" = x.
; then
14487 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
14490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14492 DEFS
=-DHAVE_CONFIG_H
14494 # Without the "./", some shells look in PATH for config.status.
14495 : ${CONFIG_STATUS=./config.status}
14497 echo creating
$CONFIG_STATUS
14498 rm -f $CONFIG_STATUS
14499 cat > $CONFIG_STATUS <<EOF
14501 # Generated automatically by configure.
14502 # Run this file to recreate the current configuration.
14503 # This directory was configured as follows,
14504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14506 # $0 $ac_configure_args
14508 # Compiler output produced by configure, useful for debugging
14509 # configure, is in ./config.log if it exists.
14511 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14514 case "\$ac_option" in
14515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14516 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14519 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14521 -help | --help | --hel | --he | --h)
14522 echo "\$ac_cs_usage"; exit 0 ;;
14523 *) echo "\$ac_cs_usage"; exit 1 ;;
14527 ac_given_srcdir=$srcdir
14528 ac_given_INSTALL="$INSTALL"
14530 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14532 cat >> $CONFIG_STATUS <<EOF
14534 # Protect against being on the right side of a sed subst in config.status.
14535 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14540 s%@CFLAGS@%$CFLAGS%g
14541 s%@CPPFLAGS@%$CPPFLAGS%g
14542 s%@CXXFLAGS@%$CXXFLAGS%g
14543 s%@FFLAGS@%$FFLAGS%g
14545 s%@LDFLAGS@%$LDFLAGS%g
14547 s%@exec_prefix@%$exec_prefix%g
14548 s%@prefix@%$prefix%g
14549 s%@program_transform_name@%$program_transform_name%g
14550 s%@bindir@%$bindir%g
14551 s%@sbindir@%$sbindir%g
14552 s%@libexecdir@%$libexecdir%g
14553 s%@datadir@%$datadir%g
14554 s%@sysconfdir@%$sysconfdir%g
14555 s%@sharedstatedir@%$sharedstatedir%g
14556 s%@localstatedir@%$localstatedir%g
14557 s%@libdir@%$libdir%g
14558 s%@includedir@%$includedir%g
14559 s%@oldincludedir@%$oldincludedir%g
14560 s%@infodir@%$infodir%g
14561 s%@mandir@%$mandir%g
14562 s%@codepagedir@%$codepagedir%g
14563 s%@configdir@%$configdir%g
14564 s%@lockdir@%$lockdir%g
14565 s%@piddir@%$piddir%g
14566 s%@logfilebase@%$logfilebase%g
14567 s%@privatedir@%$privatedir%g
14568 s%@swatdir@%$swatdir%g
14569 s%@RUNPROG@%$RUNPROG%g
14570 s%@MPROGS@%$MPROGS%g
14571 s%@LDSHFLAGS@%$LDSHFLAGS%g
14572 s%@SONAMEFLAG@%$SONAMEFLAG%g
14574 s%@HOST_OS@%$HOST_OS%g
14575 s%@PAM_MOD@%$PAM_MOD%g
14576 s%@PDBEDIT@%$PDBEDIT%g
14578 s%@WRAP32@%$WRAP32%g
14579 s%@WRAPPROG@%$WRAPPROG%g
14580 s%@PICFLAG@%$PICFLAG%g
14581 s%@PICSUFFIX@%$PICSUFFIX%g
14582 s%@SHLIBEXT@%$SHLIBEXT%g
14583 s%@BLDSHARED@%$BLDSHARED%g
14584 s%@INSTALLCLIENTCMD_SH@%$INSTALLCLIENTCMD_SH%g
14585 s%@INSTALLCLIENTCMD_A@%$INSTALLCLIENTCMD_A%g
14586 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14587 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14589 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14590 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14591 s%@INSTALL_DATA@%$INSTALL_DATA%g
14593 s%@EXEEXT@%$EXEEXT%g
14594 s%@passwd_program@%$passwd_program%g
14595 s%@BROKEN_CC@%$BROKEN_CC%g
14597 s%@host_alias@%$host_alias%g
14598 s%@host_cpu@%$host_cpu%g
14599 s%@host_vendor@%$host_vendor%g
14600 s%@host_os@%$host_os%g
14601 s%@target@%$target%g
14602 s%@target_alias@%$target_alias%g
14603 s%@target_cpu@%$target_cpu%g
14604 s%@target_vendor@%$target_vendor%g
14605 s%@target_os@%$target_os%g
14607 s%@build_alias@%$build_alias%g
14608 s%@build_cpu@%$build_cpu%g
14609 s%@build_vendor@%$build_vendor%g
14610 s%@build_os@%$build_os%g
14612 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14613 s%@LIBOBJS@%$LIBOBJS%g
14614 s%@TERMLIBS@%$TERMLIBS%g
14615 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14617 s%@DYNEXP@%$DYNEXP%g
14618 s%@LDAPLIBS@%$LDAPLIBS%g
14619 s%@QUOTAOBJS@%$QUOTAOBJS%g
14620 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14621 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14622 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14623 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14624 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14625 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14626 s%@BUILD_POPT@%$BUILD_POPT%g
14627 s%@FLAGS1@%$FLAGS1%g
14628 s%@builddir@%$builddir%g
14633 cat >> $CONFIG_STATUS <<\EOF
14635 # Split the substitutions into bite-sized pieces for seds with
14636 # small command number limits, like on Digital OSF/1 and HP-UX.
14637 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
14638 ac_file
=1 # Number of current file.
14639 ac_beg
=1 # First line for current file.
14640 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
14643 while $ac_more_lines; do
14644 if test $ac_beg -gt 1; then
14645 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
14647 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
14649 if test ! -s conftest.s
$ac_file; then
14650 ac_more_lines
=false
14651 rm -f conftest.s
$ac_file
14653 if test -z "$ac_sed_cmds"; then
14654 ac_sed_cmds
="sed -f conftest.s$ac_file"
14656 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
14658 ac_file
=`expr $ac_file + 1`
14660 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
14663 if test -z "$ac_sed_cmds"; then
14668 cat >> $CONFIG_STATUS <<EOF
14670 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14672 cat >> $CONFIG_STATUS <<\EOF
14673 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
14674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14676 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14677 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14678 *) ac_file_in
="${ac_file}.in" ;;
14681 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14683 # Remove last slash and all that follows it. Not all systems have dirname.
14684 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14686 # The file is in a subdirectory.
14687 test ! -d "$ac_dir" && mkdir
"$ac_dir"
14688 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
14689 # A "../" for each directory in $ac_dir_suffix.
14690 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14692 ac_dir_suffix
= ac_dots
=
14695 case "$ac_given_srcdir" in
14697 if test -z "$ac_dots"; then top_srcdir
=.
14698 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14699 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
14700 *) # Relative path.
14701 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14702 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14705 case "$ac_given_INSTALL" in
14706 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
14707 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
14710 echo creating
"$ac_file"
14712 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14714 *Makefile
*) ac_comsub
="1i\\
14715 # $configure_input" ;;
14719 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14721 s%@configure_input@%$configure_input%g
14722 s%@srcdir@%$srcdir%g
14723 s%@top_srcdir@%$top_srcdir%g
14724 s%@INSTALL@%$INSTALL%g
14725 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
14729 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14730 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14732 # ac_d sets the value in "#define NAME VALUE" lines.
14733 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14734 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
14737 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14738 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14739 ac_uB
='\([ ]\)%\1#\2define\3'
14742 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14743 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14744 ac_eB
='$%\1#\2define\3'
14748 if test "${CONFIG_HEADERS+set}" != set; then
14750 cat >> $CONFIG_STATUS <<EOF
14751 CONFIG_HEADERS="include/config.h"
14753 cat >> $CONFIG_STATUS <<\EOF
14755 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
14756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14758 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14759 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14760 *) ac_file_in
="${ac_file}.in" ;;
14763 echo creating
$ac_file
14765 rm -f conftest.frag conftest.
in conftest.out
14766 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14767 cat $ac_file_inputs > conftest.
in
14771 # Transform confdefs.h into a sed script conftest.vals that substitutes
14772 # the proper values into config.h.in to produce config.h. And first:
14773 # Protect against being on the right side of a sed subst in config.status.
14774 # Protect against being in an unquoted here document in config.status.
14775 rm -f conftest.vals
14776 cat > conftest.hdr
<<\EOF
14779 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14783 sed -n -f conftest.hdr confdefs.h > conftest.vals
14786 # This sed command replaces #undef with comments. This is necessary, for
14787 # example, in the case of _POSIX_SOURCE, which is predefined and required
14788 # on some systems where configure will not decide to define it.
14789 cat >> conftest.vals <<\EOF
14790 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14793 # Break up conftest.vals because some shells have a limit on
14794 # the size of here documents, and old seds have small limits too.
14796 rm -f conftest.tail
14799 ac_lines=`grep -c . conftest.vals
`
14800 # grep -c gives empty output for an empty file on some AIX systems.
14801 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14802 # Write a limited-size here document to conftest.frag.
14803 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14804 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14806 sed -f conftest.frag conftest.in > conftest.out
14808 mv conftest.out conftest.in
14809 ' >> $CONFIG_STATUS
14810 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14811 rm -f conftest.vals
14812 mv conftest.tail conftest.vals
14814 rm -f conftest.vals
14816 cat >> $CONFIG_STATUS <<\EOF
14817 rm -f conftest.frag conftest.h
14818 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14819 cat conftest.in >> conftest.h
14821 if cmp -s $ac_file conftest.h 2>/dev/null; then
14822 echo "$ac_file is unchanged"
14825 # Remove last slash and all that follows it. Not all systems have dirname.
14826 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14827 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14828 # The file is in a subdirectory.
14829 test ! -d "$ac_dir" && mkdir "$ac_dir"
14832 mv conftest.h $ac_file
14837 cat >> $CONFIG_STATUS <<EOF
14840 cat >> $CONFIG_STATUS <<\EOF
14844 chmod +x $CONFIG_STATUS
14845 rm -fr confdefs* $ac_clean_files
14846 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1