3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
28 --enable-debug Turn on compiler debugging information (default=no)"
30 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
32 --with-smbwrapper Include SMB wrapper support (default=no)"
34 --with-afs Include AFS support (default=no)"
36 --with-dce-dfs Include DCE/DFS support (default=no)"
38 --with-krb4=base-dir Include Kerberos IV support (default=no)"
40 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
42 --with-automount Include AUTOMOUNT support (default=no)"
44 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
46 --with-pam Include PAM password database support (default=no)"
48 --with-pam_smbpass Include the smbpass PAM module (default=no)"
50 --with-tdbsam Include experimental TDB SAM support (default=no)"
52 --with-ldapsam Include experimental LDAP SAM support (default=no)"
54 --with-nisplussam Include NISPLUS SAM support (default=no)"
56 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
58 --with-ssl Include SSL support (default=no)
59 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
60 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
62 --with-syslog Include experimental SYSLOG support (default=no)"
64 --with-profiling-data Include gathering source code profile information (default=no)"
66 --with-quotas Include experimental disk-quota support (default=no)"
68 --with-utmp Include experimental utmp accounting (default=no)"
70 --with-msdfs Include MS Dfs support (default=no)"
72 --with-vfs Include Samba vfs support (default=no)"
74 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
76 --with-acl-support Include ACL support (default=no)"
78 --with-winbind Build winbind (default, if supported by OS)"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
84 cache_file
=.
/config.cache
93 program_transform_name
=s
,x
,x
,
101 bindir
='${exec_prefix}/bin'
102 sbindir
='${exec_prefix}/sbin'
103 libexecdir
='${exec_prefix}/libexec'
104 datadir
='${prefix}/share'
105 sysconfdir
='${prefix}/etc'
106 sharedstatedir
='${prefix}/com'
107 localstatedir
='${prefix}/var'
108 libdir
='${exec_prefix}/lib'
109 includedir
='${prefix}/include'
110 oldincludedir
='/usr/include'
111 infodir
='${prefix}/info'
112 mandir
='${prefix}/man'
114 # Initialize some other variables.
117 SHELL
=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
143 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
144 bindir
="$ac_optarg" ;;
146 -build |
--build |
--buil |
--bui |
--bu)
148 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
149 build
="$ac_optarg" ;;
151 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
152 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
153 ac_prev
=cache_file
;;
154 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
155 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
156 cache_file
="$ac_optarg" ;;
158 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
160 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
162 datadir
="$ac_optarg" ;;
164 -disable-* |
--disable-*)
165 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* |
--enable-*)
174 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
187 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
188 |
--exec |
--exe |
--ex)
189 ac_prev
=exec_prefix
;;
190 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
191 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
192 |
--exec=* |
--exe=* |
--ex=*)
193 exec_prefix
="$ac_optarg" ;;
195 -gas |
--gas |
--ga |
--g)
196 # Obsolete; use --with-gas.
199 -help |
--help |
--hel |
--he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host |
--host |
--hos |
--ho)
256 -host=* |
--host=* |
--hos=* |
--ho=*)
259 -includedir |
--includedir |
--includedi |
--included |
--include \
260 |
--includ |
--inclu |
--incl |
--inc)
261 ac_prev
=includedir
;;
262 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
263 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
264 includedir
="$ac_optarg" ;;
266 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
268 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
269 infodir
="$ac_optarg" ;;
271 -libdir |
--libdir |
--libdi |
--libd)
273 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
274 libdir
="$ac_optarg" ;;
276 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
277 |
--libexe |
--libex |
--libe)
278 ac_prev
=libexecdir
;;
279 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
280 |
--libexe=* |
--libex=* |
--libe=*)
281 libexecdir
="$ac_optarg" ;;
283 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
284 |
--localstate |
--localstat |
--localsta |
--localst \
285 |
--locals |
--local |
--loca |
--loc |
--lo)
286 ac_prev
=localstatedir
;;
287 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
288 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
289 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
290 localstatedir
="$ac_optarg" ;;
292 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
294 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
295 mandir
="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
305 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
306 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
309 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
310 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
311 |
--oldin |
--oldi |
--old |
--ol |
--o)
312 ac_prev
=oldincludedir
;;
313 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
314 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
315 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
316 oldincludedir
="$ac_optarg" ;;
318 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
320 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
321 prefix
="$ac_optarg" ;;
323 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
324 |
--program-pre |
--program-pr |
--program-p)
325 ac_prev
=program_prefix
;;
326 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
327 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
328 program_prefix
="$ac_optarg" ;;
330 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
331 |
--program-suf |
--program-su |
--program-s)
332 ac_prev
=program_suffix
;;
333 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
334 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
335 program_suffix
="$ac_optarg" ;;
337 -program-transform-name |
--program-transform-name \
338 |
--program-transform-nam |
--program-transform-na \
339 |
--program-transform-n |
--program-transform- \
340 |
--program-transform |
--program-transfor \
341 |
--program-transfo |
--program-transf \
342 |
--program-trans |
--program-tran \
343 |
--progr-tra |
--program-tr |
--program-t)
344 ac_prev
=program_transform_name
;;
345 -program-transform-name=* |
--program-transform-name=* \
346 |
--program-transform-nam=* |
--program-transform-na=* \
347 |
--program-transform-n=* |
--program-transform-=* \
348 |
--program-transform=* |
--program-transfor=* \
349 |
--program-transfo=* |
--program-transf=* \
350 |
--program-trans=* |
--program-tran=* \
351 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
352 program_transform_name
="$ac_optarg" ;;
354 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
355 |
-silent |
--silent |
--silen |
--sile |
--sil)
358 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
360 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
362 sbindir
="$ac_optarg" ;;
364 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
365 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
366 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
368 ac_prev
=sharedstatedir
;;
369 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
370 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
371 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
373 sharedstatedir
="$ac_optarg" ;;
375 -site |
--site |
--sit)
377 -site=* |
--site=* |
--sit=*)
380 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
382 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
383 srcdir
="$ac_optarg" ;;
385 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
386 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
387 ac_prev
=sysconfdir
;;
388 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
389 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
390 sysconfdir
="$ac_optarg" ;;
392 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
394 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
395 target
="$ac_optarg" ;;
397 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
400 -version |
--version |
--versio |
--versi |
--vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package
=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* |
--without-*)
418 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package
=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
431 |
--x-incl |
--x-inc |
--x-in |
--x-i)
432 ac_prev
=x_includes
;;
433 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
434 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
435 x_includes
="$ac_optarg" ;;
437 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
438 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
439 ac_prev
=x_libraries
;;
440 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
441 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
442 x_libraries
="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE
; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
493 |
--no-cr |
--no-c) ;;
494 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
495 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
496 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest
* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file
=include
/includes.h
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted
=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted
=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE
; then
547 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
549 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file
in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp
='$CPP $CPPFLAGS'
570 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling
=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
585 ac_n
= ac_c
='\c' ac_t
=
591 #################################################
592 # Directory handling stuff to support both the
593 # legacy SAMBA directories and FHS compliant
597 # Check whether --with-fhs or --without-fhs was given.
598 if test "${with_fhs+set}" = set; then
600 codepagedir
="\$(DATADIR)/samba/codepages"
601 configdir
="${sysconfdir}/samba"
602 lockdir
="\${VARDIR}/cache/samba"
603 logfilebase
="\${VARDIR}/log/samba"
604 privatedir
="\${CONFIGDIR}/private"
605 swatdir
="\${DATADIR}/samba/swat"
607 codepagedir
="\$(LIBDIR)/codepages"
608 configdir
="\$(LIBDIR)"
609 lockdir
="\$(VARDIR)/locks"
610 logfilebase
="\$(VARDIR)"
611 privatedir
="\${prefix}/private"
612 swatdir
="\${prefix}/swat"
616 #################################################
617 # set private directory location
618 # Check whether --with-privatedir or --without-privatedir was given.
619 if test "${with_privatedir+set}" = set; then
620 withval
="$with_privatedir"
624 # Just in case anybody calls it without argument
626 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
629 privatedir
="$withval"
635 #################################################
636 # set lock directory location
637 # Check whether --with-lockdir or --without-lockdir was given.
638 if test "${with_lockdir+set}" = set; then
639 withval
="$with_lockdir"
643 # Just in case anybody calls it without argument
645 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
654 #################################################
655 # set SWAT directory location
656 # Check whether --with-swatdir or --without-swatdir was given.
657 if test "${with_swatdir+set}" = set; then
658 withval
="$with_swatdir"
662 # Just in case anybody does it
664 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
673 #################################################
674 # set configuration directory location
675 # Check whether --with-configdir or --without-configdir was given.
676 if test "${with_configdir+set}" = set; then
677 withval
="$with_configdir"
681 # Just in case anybody does it
683 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
692 #################################################
693 # set codepage directory location
694 # Check whether --with-codepagedir or --without-codepagedir was given.
695 if test "${with_codepagedir+set}" = set; then
696 withval
="$with_codepagedir"
700 # Just in case anybody does it
702 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
705 codepagedir
="$withval"
734 # compile with optimization and without debugging by default
735 CFLAGS
="-O ${CFLAGS}"
737 # Check whether --enable-debug or --disable-debug was given.
738 if test "${enable_debug+set}" = set; then
739 enableval
="$enable_debug"
740 if eval "test x$enable_debug = xyes"; then
741 CFLAGS
="${CFLAGS} -g"
748 # Extract the first word of "gcc", so it can be a program name with args.
749 set dummy gcc
; ac_word
=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 if test -n "$CC"; then
756 ac_cv_prog_CC
="$CC" # Let the user override the test.
758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
760 for ac_dir
in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir
=.
762 if test -f $ac_dir/$ac_word; then
771 if test -n "$CC"; then
772 echo "$ac_t""$CC" 1>&6
774 echo "$ac_t""no" 1>&6
777 if test -z "$CC"; then
778 # Extract the first word of "cc", so it can be a program name with args.
779 set dummy cc
; ac_word
=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 if test -n "$CC"; then
786 ac_cv_prog_CC
="$CC" # Let the user override the test.
788 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
791 for ac_dir
in $ac_dummy; do
792 test -z "$ac_dir" && ac_dir
=.
793 if test -f $ac_dir/$ac_word; then
794 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
803 if test $ac_prog_rejected = yes; then
804 # We found a bogon in the path, so make sure we never use it.
805 set dummy
$ac_cv_prog_CC
807 if test $# -gt 0; then
808 # We chose a different compiler from the bogus one.
809 # However, it has the same basename, so the bogon will be chosen
810 # first if we set CC to just the basename; use the full file name.
812 set dummy
"$ac_dir/$ac_word" "$@"
820 if test -n "$CC"; then
821 echo "$ac_t""$CC" 1>&6
823 echo "$ac_t""no" 1>&6
826 if test -z "$CC"; then
829 # Extract the first word of "cl", so it can be a program name with args.
830 set dummy cl
; ac_word
=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 if test -n "$CC"; then
837 ac_cv_prog_CC
="$CC" # Let the user override the test.
839 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
841 for ac_dir
in $ac_dummy; do
842 test -z "$ac_dir" && ac_dir
=.
843 if test -f $ac_dir/$ac_word; then
852 if test -n "$CC"; then
853 echo "$ac_t""$CC" 1>&6
855 echo "$ac_t""no" 1>&6
860 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
863 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
864 echo "configure:865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
868 ac_cpp
='$CPP $CPPFLAGS'
869 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871 cross_compiling
=$ac_cv_prog_cc_cross
873 cat > conftest.
$ac_ext << EOF
875 #line 876 "configure"
876 #include "confdefs.h"
880 if { (eval echo configure
:881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
881 ac_cv_prog_cc_works
=yes
882 # If we can't run a trivial program, we are probably using a cross compiler.
883 if (.
/conftest
; exit) 2>/dev
/null
; then
884 ac_cv_prog_cc_cross
=no
886 ac_cv_prog_cc_cross
=yes
889 echo "configure: failed program was:" >&5
890 cat conftest.
$ac_ext >&5
891 ac_cv_prog_cc_works
=no
895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
896 ac_cpp
='$CPP $CPPFLAGS'
897 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
898 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
899 cross_compiling
=$ac_cv_prog_cc_cross
901 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
902 if test $ac_cv_prog_cc_works = no
; then
903 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
906 echo "configure:907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
907 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
908 cross_compiling
=$ac_cv_prog_cc_cross
910 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
911 echo "configure:912: checking whether we are using GNU C" >&5
912 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
915 cat > conftest.c
<<EOF
920 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
927 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
929 if test $ac_cv_prog_gcc = yes; then
935 ac_test_CFLAGS
="${CFLAGS+set}"
936 ac_save_CFLAGS
="$CFLAGS"
938 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
939 echo "configure:940: checking whether ${CC-cc} accepts -g" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 echo 'void f(){}' > conftest.c
944 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
953 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
954 if test "$ac_test_CFLAGS" = set; then
955 CFLAGS
="$ac_save_CFLAGS"
956 elif test $ac_cv_prog_cc_g = yes; then
957 if test "$GCC" = yes; then
963 if test "$GCC" = yes; then
971 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
972 if test -f $ac_dir/install-sh
; then
974 ac_install_sh
="$ac_aux_dir/install-sh -c"
976 elif test -f $ac_dir/install.sh
; then
978 ac_install_sh
="$ac_aux_dir/install.sh -c"
982 if test -z "$ac_aux_dir"; then
983 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
985 ac_config_guess
=$ac_aux_dir/config.guess
986 ac_config_sub
=$ac_aux_dir/config.sub
987 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
989 # Find a good install program. We prefer a C program (faster),
990 # so one script is as good as another. But avoid the broken or
991 # incompatible versions:
992 # SysV /etc/install, /usr/sbin/install
993 # SunOS /usr/etc/install
996 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
997 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
998 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
999 # ./install, which can be erroneously created by make from ./install.sh.
1000 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1001 echo "configure:1002: checking for a BSD compatible install" >&5
1002 if test -z "$INSTALL"; then
1003 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1007 for ac_dir
in $PATH; do
1008 # Account for people who put trailing slashes in PATH elements.
1010 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1012 # OSF1 and SCO ODT 3.0 have their own names for install.
1013 # Don't use installbsd from OSF since it installs stuff as root
1015 for ac_prog
in ginstall scoinst
install; do
1016 if test -f $ac_dir/$ac_prog; then
1017 if test $ac_prog = install &&
1018 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1019 # AIX install. It has an incompatible calling convention.
1022 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1033 if test "${ac_cv_path_install+set}" = set; then
1034 INSTALL
="$ac_cv_path_install"
1036 # As a last resort, use the slow shell script. We don't cache a
1037 # path for INSTALL within a source directory, because that will
1038 # break other packages using the cache if that directory is
1039 # removed, or if the path is relative.
1040 INSTALL
="$ac_install_sh"
1043 echo "$ac_t""$INSTALL" 1>&6
1045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1046 # It thinks the first close brace ends the variable substitution.
1047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1051 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1053 for ac_prog
in mawk gawk nawk
awk
1055 # Extract the first word of "$ac_prog", so it can be a program name with args.
1056 set dummy
$ac_prog; ac_word
=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -n "$AWK"; then
1063 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1065 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1067 for ac_dir
in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir
=.
1069 if test -f $ac_dir/$ac_word; then
1070 ac_cv_prog_AWK
="$ac_prog"
1077 AWK
="$ac_cv_prog_AWK"
1078 if test -n "$AWK"; then
1079 echo "$ac_t""$AWK" 1>&6
1081 echo "$ac_t""no" 1>&6
1084 test -n "$AWK" && break
1088 if test "x$CC" != xcc
; then
1089 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether $CC and cc understand -c and -o together" >&5
1092 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether cc understands -c and -o together" >&5
1095 set dummy
$CC; ac_cc
="`echo $2 |
1096 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1097 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 echo 'foo(){}' > conftest.c
1101 # Make sure it works both with $CC and with simple cc.
1102 # We do the test twice because some compilers refuse to overwrite an
1103 # existing .o file with -o, though they will create one.
1104 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1105 if { (eval echo configure
:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1106 test -f conftest.o
&& { (eval echo configure
:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1108 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1109 if test "x$CC" != xcc
; then
1110 # Test first that cc exists at all.
1111 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1112 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1113 if { (eval echo configure
:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1114 test -f conftest.o
&& { (eval echo configure
:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1119 # cc exists but doesn't like -o.
1120 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1125 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1130 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1131 echo "$ac_t""yes" 1>&6
1133 echo "$ac_t""no" 1>&6
1134 cat >> confdefs.h
<<\EOF
1135 #define NO_MINUS_C_MINUS_O 1
1140 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1147 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1148 echo "configure:1149: checking that the C compiler understands volatile" >&5
1149 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1153 cat > conftest.
$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1156 #include <sys/types.h>
1161 if { (eval echo configure
:1162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1163 samba_cv_volatile
=yes
1165 echo "configure: failed program was:" >&5
1166 cat conftest.
$ac_ext >&5
1168 samba_cv_volatile
=no
1173 echo "$ac_t""$samba_cv_volatile" 1>&6
1174 if test x
"$samba_cv_volatile" = x
"yes"; then
1175 cat >> confdefs.h
<<\EOF
1176 #define HAVE_VOLATILE 1
1184 # Do some error checking and defaulting for the host and target type.
1186 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1189 # 1. You are not allowed to specify --host, --target, and nonopt at the
1191 # 2. Host defaults to nonopt.
1192 # 3. If nonopt is not specified, then host defaults to the current host,
1193 # as determined by config.guess.
1194 # 4. Target and build default to nonopt.
1195 # 5. If nonopt is not specified, then target and build default to host.
1197 # The aliases save the names the user supplied, while $host etc.
1198 # will get canonicalized.
1199 case $host---$target---$nonopt in
1200 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1201 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1205 # Make sure we can run config.sub.
1206 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1207 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1210 echo $ac_n "checking host system type""... $ac_c" 1>&6
1211 echo "configure:1212: checking host system type" >&5
1214 case "$host_alias" in
1218 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1219 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1221 *) host_alias
=$nonopt ;;
1225 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1226 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1227 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1228 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1229 echo "$ac_t""$host" 1>&6
1231 echo $ac_n "checking target system type""... $ac_c" 1>&6
1232 echo "configure:1233: checking target system type" >&5
1234 target_alias
=$target
1235 case "$target_alias" in
1238 NONE
) target_alias
=$host_alias ;;
1239 *) target_alias
=$nonopt ;;
1243 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1244 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1245 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1246 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1247 echo "$ac_t""$target" 1>&6
1249 echo $ac_n "checking build system type""... $ac_c" 1>&6
1250 echo "configure:1251: checking build system type" >&5
1253 case "$build_alias" in
1256 NONE
) build_alias
=$host_alias ;;
1257 *) build_alias
=$nonopt ;;
1261 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1262 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1263 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1264 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1265 echo "$ac_t""$build" 1>&6
1267 test "$host_alias" != "$target_alias" &&
1268 test "$program_prefix$program_suffix$program_transform_name" = \
1270 program_prefix
=${target_alias}-
1274 *irix6
*) cat >> confdefs.h
<<\EOF
1275 #include <standards.h>
1283 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1284 echo "configure:1285: checking config.cache system type" >&5
1285 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1286 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1287 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1288 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1289 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1290 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1291 echo "$ac_t""different" 1>&6
1292 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1294 echo "$ac_t""same" 1>&6
1296 ac_cv_host_system_type
="$host"
1297 ac_cv_build_system_type
="$build"
1298 ac_cv_target_system_type
="$target"
1302 # Config CPPFLAG settings for strange OS's that must be set
1303 # before other tests.
1306 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1308 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether ${CC-cc} accepts -Ae" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 echo 'void f(){}' > conftest.c
1314 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1315 ac_cv_prog_cc_Ae
=yes
1323 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1324 # mmap on HPUX is completely broken...
1325 cat >> confdefs.h
<<\EOF
1326 #define MMAP_BLACKLIST 1
1329 if test $ac_cv_prog_cc_Ae = yes; then
1330 CPPFLAGS
="$CPPFLAGS -Ae"
1333 # Defines needed for HPUX support.
1334 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1335 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1339 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1340 cat >> confdefs.h
<<\EOF
1341 #define USE_BOTH_CRYPT_CALLS 1
1346 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1347 cat >> confdefs.h
<<\EOF
1348 #define USE_BOTH_CRYPT_CALLS 1
1355 # AIX4.x doesn't even admit to having large
1356 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1359 echo "$ac_t""enabling large file support" 1>&6
1360 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1363 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1364 # to the existance of large files..
1365 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1366 # recommendations on large file support, however it makes the
1367 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1368 # recommendation makes the compile fail on gcc2.7. JRA.
1372 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1373 echo "$ac_t""no large file support" 1>&6
1376 echo "$ac_t""enabling large file support" 1>&6
1377 if test "$ac_cv_prog_gcc" = yes; then
1378 ${CC-cc} -v >conftest.c
2>&1
1379 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1381 case "$ac_cv_gcc_compiler_version_number" in
1382 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1383 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1386 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1390 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1396 # Tests needed for SINIX large file support.
1399 if test $host = mips-sni-sysv4
; then
1400 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1401 echo "configure:1402: checking for LFS support" >&5
1402 old_CPPFLAGS
="$CPPFLAGS"
1403 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1404 if test "$cross_compiling" = yes; then
1405 SINIX_LFS_SUPPORT
=cross
1407 cat > conftest.
$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1413 #if _LFS64_LARGEFILE == 1
1420 if { (eval echo configure
:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1422 SINIX_LFS_SUPPORT
=yes
1424 echo "configure: failed program was:" >&5
1425 cat conftest.
$ac_ext >&5
1427 SINIX_LFS_SUPPORT
=no
1432 CPPFLAGS
="$old_CPPFLAGS"
1433 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1434 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1435 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1436 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1437 LIBS
="`getconf LFS64_LIBS` $LIBS"
1439 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1443 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1446 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1447 echo "configure:1448: checking for LFS support" >&5
1448 old_CPPFLAGS
="$CPPFLAGS"
1449 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1450 if test "$cross_compiling" = yes; then
1451 LINUX_LFS_SUPPORT
=cross
1453 cat > conftest.
$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1458 #include <sys/utsname.h>
1460 #if _LFS64_LARGEFILE == 1
1465 /* Ensure this is glibc 2.2 or higher */
1466 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1467 int libc_major = __GLIBC__;
1468 int libc_minor = __GLIBC_MINOR__;
1476 /* Ensure this is kernel 2.4 or higher */
1479 release = uts.release;
1480 major = atoi(strsep(&release, "."));
1481 minor = atoi(strsep(&release, "."));
1483 if (major > 2 || (major == 2 && minor > 3))
1492 if { (eval echo configure
:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1494 LINUX_LFS_SUPPORT
=yes
1496 echo "configure: failed program was:" >&5
1497 cat conftest.
$ac_ext >&5
1499 LINUX_LFS_SUPPORT
=no
1504 CPPFLAGS
="$old_CPPFLAGS"
1505 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1506 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1508 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1512 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1513 echo "configure:1514: checking for LFS support" >&5
1514 old_CPPFLAGS
="$CPPFLAGS"
1515 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1516 if test "$cross_compiling" = yes; then
1517 GLIBC_LFS_SUPPORT
=cross
1519 cat > conftest.
$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1525 #if _LFS64_LARGEFILE == 1
1532 if { (eval echo configure
:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1534 GLIBC_LFS_SUPPORT
=yes
1536 echo "configure: failed program was:" >&5
1537 cat conftest.
$ac_ext >&5
1539 GLIBC_LFS_SUPPORT
=no
1544 CPPFLAGS
="$old_CPPFLAGS"
1545 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1546 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1548 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1553 echo $ac_n "checking for inline""... $ac_c" 1>&6
1554 echo "configure:1555: checking for inline" >&5
1555 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1559 for ac_kw
in inline __inline__ __inline
; do
1560 cat > conftest.
$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1568 if { (eval echo configure
:1569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1570 ac_cv_c_inline
=$ac_kw; break
1572 echo "configure: failed program was:" >&5
1573 cat conftest.
$ac_ext >&5
1580 echo "$ac_t""$ac_cv_c_inline" 1>&6
1581 case "$ac_cv_c_inline" in
1583 no
) cat >> confdefs.h
<<\EOF
1587 *) cat >> confdefs.h
<<EOF
1588 #define inline $ac_cv_c_inline
1593 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1594 echo "configure:1595: checking how to run the C preprocessor" >&5
1595 # On Suns, sometimes $CPP names a directory.
1596 if test -n "$CPP" && test -d "$CPP"; then
1599 if test -z "$CPP"; then
1600 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 # This must be in double quotes, not single quotes, because CPP may get
1604 # substituted into the Makefile and "${CC-cc}" will confuse make.
1606 # On the NeXT, cc -E runs the code through the compiler's parser,
1607 # not just through cpp.
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1614 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1615 { (eval echo configure
:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1616 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1617 if test -z "$ac_err"; then
1621 echo "configure: failed program was:" >&5
1622 cat conftest.
$ac_ext >&5
1624 CPP
="${CC-cc} -E -traditional-cpp"
1625 cat > conftest.
$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1631 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1632 { (eval echo configure
:1633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1633 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1634 if test -z "$ac_err"; then
1638 echo "configure: failed program was:" >&5
1639 cat conftest.
$ac_ext >&5
1641 CPP
="${CC-cc} -nologo -E"
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1648 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1649 { (eval echo configure
:1650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1650 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1651 if test -z "$ac_err"; then
1655 echo "configure: failed program was:" >&5
1656 cat conftest.
$ac_ext >&5
1665 ac_cv_prog_CPP
="$CPP"
1667 CPP
="$ac_cv_prog_CPP"
1669 ac_cv_prog_CPP
="$CPP"
1671 echo "$ac_t""$CPP" 1>&6
1673 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1674 echo "configure:1675: checking for ANSI C header files" >&5
1675 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 cat > conftest.
$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1686 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1687 { (eval echo configure
:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1688 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1689 if test -z "$ac_err"; then
1691 ac_cv_header_stdc
=yes
1694 echo "configure: failed program was:" >&5
1695 cat conftest.
$ac_ext >&5
1697 ac_cv_header_stdc
=no
1701 if test $ac_cv_header_stdc = yes; then
1702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1703 cat > conftest.
$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1709 egrep "memchr" >/dev
/null
2>&1; then
1713 ac_cv_header_stdc
=no
1719 if test $ac_cv_header_stdc = yes; then
1720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1721 cat > conftest.
$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1727 egrep "free" >/dev
/null
2>&1; then
1731 ac_cv_header_stdc
=no
1737 if test $ac_cv_header_stdc = yes; then
1738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1739 if test "$cross_compiling" = yes; then
1742 cat > conftest.
$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1746 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1747 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1749 int main () { int i; for (i = 0; i < 256; i++)
1750 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1754 if { (eval echo configure
:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1758 echo "configure: failed program was:" >&5
1759 cat conftest.
$ac_ext >&5
1761 ac_cv_header_stdc
=no
1769 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1770 if test $ac_cv_header_stdc = yes; then
1771 cat >> confdefs.h
<<\EOF
1772 #define STDC_HEADERS 1
1778 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1780 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1781 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1782 echo "configure:1783: checking for $ac_hdr that defines DIR" >&5
1783 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 cat > conftest.
$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 #include <sys/types.h>
1795 if { (eval echo configure
:1796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1797 eval "ac_cv_header_dirent_$ac_safe=yes"
1799 echo "configure: failed program was:" >&5
1800 cat conftest.
$ac_ext >&5
1802 eval "ac_cv_header_dirent_$ac_safe=no"
1806 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1807 echo "$ac_t""yes" 1>&6
1808 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1809 cat >> confdefs.h
<<EOF
1810 #define $ac_tr_hdr 1
1812 ac_header_dirent
=$ac_hdr; break
1814 echo "$ac_t""no" 1>&6
1817 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1818 if test $ac_header_dirent = dirent.h
; then
1819 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1820 echo "configure:1821: checking for opendir in -ldir" >&5
1821 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 ac_save_LIBS
="$LIBS"
1827 cat > conftest.
$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1830 /* Override any gcc2 internal prototype to avoid an error. */
1831 /* We use char because int might match the return type of a gcc2
1832 builtin and then its argument prototype would still apply. */
1839 if { (eval echo configure
:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1841 eval "ac_cv_lib_$ac_lib_var=yes"
1843 echo "configure: failed program was:" >&5
1844 cat conftest.
$ac_ext >&5
1846 eval "ac_cv_lib_$ac_lib_var=no"
1849 LIBS
="$ac_save_LIBS"
1852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1853 echo "$ac_t""yes" 1>&6
1856 echo "$ac_t""no" 1>&6
1860 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1861 echo "configure:1862: checking for opendir in -lx" >&5
1862 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 ac_save_LIBS
="$LIBS"
1868 cat > conftest.
$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1871 /* Override any gcc2 internal prototype to avoid an error. */
1872 /* We use char because int might match the return type of a gcc2
1873 builtin and then its argument prototype would still apply. */
1880 if { (eval echo configure
:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1882 eval "ac_cv_lib_$ac_lib_var=yes"
1884 echo "configure: failed program was:" >&5
1885 cat conftest.
$ac_ext >&5
1887 eval "ac_cv_lib_$ac_lib_var=no"
1890 LIBS
="$ac_save_LIBS"
1893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1894 echo "$ac_t""yes" 1>&6
1897 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether time.h and sys/time.h may both be included" >&5
1904 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 cat > conftest.
$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1910 #include <sys/types.h>
1911 #include <sys/time.h>
1917 if { (eval echo configure
:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1919 ac_cv_header_time
=yes
1921 echo "configure: failed program was:" >&5
1922 cat conftest.
$ac_ext >&5
1924 ac_cv_header_time
=no
1929 echo "$ac_t""$ac_cv_header_time" 1>&6
1930 if test $ac_cv_header_time = yes; then
1931 cat >> confdefs.h
<<\EOF
1932 #define TIME_WITH_SYS_TIME 1
1937 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1938 echo "configure:1939: checking for sys/wait.h that is POSIX.1 compatible" >&5
1939 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 cat > conftest.
$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 #include <sys/types.h>
1946 #include <sys/wait.h>
1948 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1951 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1956 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1959 if { (eval echo configure
:1960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1961 ac_cv_header_sys_wait_h
=yes
1963 echo "configure: failed program was:" >&5
1964 cat conftest.
$ac_ext >&5
1966 ac_cv_header_sys_wait_h
=no
1971 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1972 if test $ac_cv_header_sys_wait_h = yes; then
1973 cat >> confdefs.h
<<\EOF
1974 #define HAVE_SYS_WAIT_H 1
1979 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1981 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_hdr" >&5
1984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.
$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1993 { (eval echo configure
:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1995 if test -z "$ac_err"; then
1997 eval "ac_cv_header_$ac_safe=yes"
2000 echo "configure: failed program was:" >&5
2001 cat conftest.
$ac_ext >&5
2003 eval "ac_cv_header_$ac_safe=no"
2007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2009 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2010 cat >> confdefs.h
<<EOF
2011 #define $ac_tr_hdr 1
2015 echo "$ac_t""no" 1>&6
2019 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2021 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2023 echo "configure:2024: checking for $ac_hdr" >&5
2024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.
$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2032 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2033 { (eval echo configure
:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2034 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2035 if test -z "$ac_err"; then
2037 eval "ac_cv_header_$ac_safe=yes"
2040 echo "configure: failed program was:" >&5
2041 cat conftest.
$ac_ext >&5
2043 eval "ac_cv_header_$ac_safe=no"
2047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2050 cat >> confdefs.h
<<EOF
2051 #define $ac_tr_hdr 1
2055 echo "$ac_t""no" 1>&6
2059 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2061 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_hdr" >&5
2064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2072 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2073 { (eval echo configure
:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2074 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2075 if test -z "$ac_err"; then
2077 eval "ac_cv_header_$ac_safe=yes"
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2083 eval "ac_cv_header_$ac_safe=no"
2087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2090 cat >> confdefs.h
<<EOF
2091 #define $ac_tr_hdr 1
2095 echo "$ac_t""no" 1>&6
2099 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2101 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_hdr" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2112 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2113 { (eval echo configure
:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2114 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2115 if test -z "$ac_err"; then
2117 eval "ac_cv_header_$ac_safe=yes"
2120 echo "configure: failed program was:" >&5
2121 cat conftest.
$ac_ext >&5
2123 eval "ac_cv_header_$ac_safe=no"
2127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2130 cat >> confdefs.h
<<EOF
2131 #define $ac_tr_hdr 1
2135 echo "$ac_t""no" 1>&6
2139 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2141 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_hdr" >&5
2144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2152 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2153 { (eval echo configure
:2154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2154 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2155 if test -z "$ac_err"; then
2157 eval "ac_cv_header_$ac_safe=yes"
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 eval "ac_cv_header_$ac_safe=no"
2167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2168 echo "$ac_t""yes" 1>&6
2169 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2170 cat >> confdefs.h
<<EOF
2171 #define $ac_tr_hdr 1
2175 echo "$ac_t""no" 1>&6
2179 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2181 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2183 echo "configure:2184: checking for $ac_hdr" >&5
2184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 cat > conftest.
$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2192 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2193 { (eval echo configure
:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2194 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2195 if test -z "$ac_err"; then
2197 eval "ac_cv_header_$ac_safe=yes"
2200 echo "configure: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2203 eval "ac_cv_header_$ac_safe=no"
2207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2210 cat >> confdefs.h
<<EOF
2211 #define $ac_tr_hdr 1
2215 echo "$ac_t""no" 1>&6
2219 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2221 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2223 echo "configure:2224: checking for $ac_hdr" >&5
2224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2232 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2233 { (eval echo configure
:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2234 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2235 if test -z "$ac_err"; then
2237 eval "ac_cv_header_$ac_safe=yes"
2240 echo "configure: failed program was:" >&5
2241 cat conftest.
$ac_ext >&5
2243 eval "ac_cv_header_$ac_safe=no"
2247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2248 echo "$ac_t""yes" 1>&6
2249 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2250 cat >> confdefs.h
<<EOF
2251 #define $ac_tr_hdr 1
2255 echo "$ac_t""no" 1>&6
2259 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h
2261 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_hdr" >&5
2264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.
$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2272 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2273 { (eval echo configure
:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2274 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2275 if test -z "$ac_err"; then
2277 eval "ac_cv_header_$ac_safe=yes"
2280 echo "configure: failed program was:" >&5
2281 cat conftest.
$ac_ext >&5
2283 eval "ac_cv_header_$ac_safe=no"
2287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2290 cat >> confdefs.h
<<EOF
2291 #define $ac_tr_hdr 1
2295 echo "$ac_t""no" 1>&6
2301 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2302 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2314 if { (eval echo configure
:2315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2316 ac_cv_header_shadow_h
=yes
2318 echo "configure: failed program was:" >&5
2319 cat conftest.
$ac_ext >&5
2321 ac_cv_header_shadow_h
=no
2324 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2325 cat >> confdefs.h
<<\EOF
2326 #define HAVE_SHADOW_H 1
2332 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2334 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2336 echo "configure:2337: checking for $ac_hdr" >&5
2337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2345 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2346 { (eval echo configure
:2347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2347 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2348 if test -z "$ac_err"; then
2350 eval "ac_cv_header_$ac_safe=yes"
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2356 eval "ac_cv_header_$ac_safe=no"
2360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2363 cat >> confdefs.h
<<EOF
2364 #define $ac_tr_hdr 1
2368 echo "$ac_t""no" 1>&6
2372 for ac_hdr
in nss.h nss_common.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2374 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2376 echo "configure:2377: checking for $ac_hdr" >&5
2377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 cat > conftest.
$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2385 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2386 { (eval echo configure
:2387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2387 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2388 if test -z "$ac_err"; then
2390 eval "ac_cv_header_$ac_safe=yes"
2393 echo "configure: failed program was:" >&5
2394 cat conftest.
$ac_ext >&5
2396 eval "ac_cv_header_$ac_safe=no"
2400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2403 cat >> confdefs.h
<<EOF
2404 #define $ac_tr_hdr 1
2408 echo "$ac_t""no" 1>&6
2412 for ac_hdr
in stropts.h poll.h
2414 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2416 echo "configure:2417: checking for $ac_hdr" >&5
2417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 cat > conftest.
$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2425 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2426 { (eval echo configure
:2427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2427 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2428 if test -z "$ac_err"; then
2430 eval "ac_cv_header_$ac_safe=yes"
2433 echo "configure: failed program was:" >&5
2434 cat conftest.
$ac_ext >&5
2436 eval "ac_cv_header_$ac_safe=no"
2440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2441 echo "$ac_t""yes" 1>&6
2442 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2443 cat >> confdefs.h
<<EOF
2444 #define $ac_tr_hdr 1
2448 echo "$ac_t""no" 1>&6
2452 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2454 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2456 echo "configure:2457: checking for $ac_hdr" >&5
2457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2465 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2466 { (eval echo configure
:2467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2467 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2468 if test -z "$ac_err"; then
2470 eval "ac_cv_header_$ac_safe=yes"
2473 echo "configure: failed program was:" >&5
2474 cat conftest.
$ac_ext >&5
2476 eval "ac_cv_header_$ac_safe=no"
2480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2483 cat >> confdefs.h
<<EOF
2484 #define $ac_tr_hdr 1
2488 echo "$ac_t""no" 1>&6
2492 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2494 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_hdr" >&5
2497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 cat > conftest.
$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure
:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2510 eval "ac_cv_header_$ac_safe=yes"
2513 echo "configure: failed program was:" >&5
2514 cat conftest.
$ac_ext >&5
2516 eval "ac_cv_header_$ac_safe=no"
2520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2523 cat >> confdefs.h
<<EOF
2524 #define $ac_tr_hdr 1
2528 echo "$ac_t""no" 1>&6
2533 # For experimental utmp support (lastlog on some BSD-like systems)
2534 for ac_hdr
in utmp.h utmpx.h lastlog.h
2536 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_hdr" >&5
2539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 cat > conftest.
$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2547 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2548 { (eval echo configure
:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2549 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2550 if test -z "$ac_err"; then
2552 eval "ac_cv_header_$ac_safe=yes"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.
$ac_ext >&5
2558 eval "ac_cv_header_$ac_safe=no"
2562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2565 cat >> confdefs.h
<<EOF
2566 #define $ac_tr_hdr 1
2570 echo "$ac_t""no" 1>&6
2575 # For quotas on Veritas VxFS filesystems
2576 for ac_hdr
in sys
/fs
/vx_quota.h
2578 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_hdr" >&5
2581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.
$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2589 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2590 { (eval echo configure
:2591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2591 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2592 if test -z "$ac_err"; then
2594 eval "ac_cv_header_$ac_safe=yes"
2597 echo "configure: failed program was:" >&5
2598 cat conftest.
$ac_ext >&5
2600 eval "ac_cv_header_$ac_safe=no"
2604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2605 echo "$ac_t""yes" 1>&6
2606 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2607 cat >> confdefs.h
<<EOF
2608 #define $ac_tr_hdr 1
2612 echo "$ac_t""no" 1>&6
2617 echo $ac_n "checking size of int""... $ac_c" 1>&6
2618 echo "configure:2619: checking size of int" >&5
2619 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 if test "$cross_compiling" = yes; then
2623 ac_cv_sizeof_int
=cross
2625 cat > conftest.
$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2631 FILE *f=fopen("conftestval", "w");
2633 fprintf(f, "%d\n", sizeof(int));
2637 if { (eval echo configure
:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2639 ac_cv_sizeof_int
=`cat conftestval`
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2650 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2651 cat >> confdefs.h
<<EOF
2652 #define SIZEOF_INT $ac_cv_sizeof_int
2656 echo $ac_n "checking size of long""... $ac_c" 1>&6
2657 echo "configure:2658: checking size of long" >&5
2658 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 if test "$cross_compiling" = yes; then
2662 ac_cv_sizeof_long
=cross
2664 cat > conftest.
$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2670 FILE *f=fopen("conftestval", "w");
2672 fprintf(f, "%d\n", sizeof(long));
2676 if { (eval echo configure
:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2678 ac_cv_sizeof_long
=`cat conftestval`
2680 echo "configure: failed program was:" >&5
2681 cat conftest.
$ac_ext >&5
2689 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2690 cat >> confdefs.h
<<EOF
2691 #define SIZEOF_LONG $ac_cv_sizeof_long
2695 echo $ac_n "checking size of short""... $ac_c" 1>&6
2696 echo "configure:2697: checking size of short" >&5
2697 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 if test "$cross_compiling" = yes; then
2701 ac_cv_sizeof_short
=cross
2703 cat > conftest.
$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2709 FILE *f=fopen("conftestval", "w");
2711 fprintf(f, "%d\n", sizeof(short));
2715 if { (eval echo configure
:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2717 ac_cv_sizeof_short
=`cat conftestval`
2719 echo "configure: failed program was:" >&5
2720 cat conftest.
$ac_ext >&5
2722 ac_cv_sizeof_short
=0
2728 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2729 cat >> confdefs.h
<<EOF
2730 #define SIZEOF_SHORT $ac_cv_sizeof_short
2735 echo $ac_n "checking for working const""... $ac_c" 1>&6
2736 echo "configure:2737: checking for working const" >&5
2737 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 cat > conftest.
$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2746 /* Ultrix mips cc rejects this. */
2747 typedef int charset[2]; const charset x;
2748 /* SunOS 4.1.1 cc rejects this. */
2749 char const *const *ccp;
2751 /* NEC SVR4.0.2 mips cc rejects this. */
2752 struct point {int x, y;};
2753 static struct point const zero = {0,0};
2754 /* AIX XL C 1.02.0.0 rejects this.
2755 It does not let you subtract one const X* pointer from another in an arm
2756 of an if-expression whose if-part is not a constant expression */
2757 const char *g = "string";
2758 ccp = &g + (g ? g-g : 0);
2759 /* HPUX 7.0 cc rejects these. */
2762 ccp = (char const *const *) p;
2763 { /* SCO 3.2v4 cc rejects this. */
2765 char const *s = 0 ? (char *) 0 : (char const *) 0;
2769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2771 const int *foo = &x[0];
2774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2775 typedef const int *iptr;
2779 { /* AIX XL C 1.02.0.0 rejects this saying
2780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2781 struct s { int j; const int *ap[3]; };
2782 struct s *b; b->j = 5;
2784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2790 if { (eval echo configure
:2791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2794 echo "configure: failed program was:" >&5
2795 cat conftest.
$ac_ext >&5
2802 echo "$ac_t""$ac_cv_c_const" 1>&6
2803 if test $ac_cv_c_const = no
; then
2804 cat >> confdefs.h
<<\EOF
2810 echo $ac_n "checking for inline""... $ac_c" 1>&6
2811 echo "configure:2812: checking for inline" >&5
2812 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2816 for ac_kw
in inline __inline__ __inline
; do
2817 cat > conftest.
$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2825 if { (eval echo configure
:2826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2827 ac_cv_c_inline
=$ac_kw; break
2829 echo "configure: failed program was:" >&5
2830 cat conftest.
$ac_ext >&5
2837 echo "$ac_t""$ac_cv_c_inline" 1>&6
2838 case "$ac_cv_c_inline" in
2840 no
) cat >> confdefs.h
<<\EOF
2844 *) cat >> confdefs.h
<<EOF
2845 #define inline $ac_cv_c_inline
2850 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2851 echo "configure:2852: checking whether byte ordering is bigendian" >&5
2852 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 ac_cv_c_bigendian
=unknown
2856 # See if sys/param.h defines the BYTE_ORDER macro.
2857 cat > conftest.
$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2860 #include <sys/types.h>
2861 #include <sys/param.h>
2864 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2869 if { (eval echo configure
:2870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2871 # It does; now see whether it defined to BIG_ENDIAN or not.
2872 cat > conftest.
$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 #include <sys/types.h>
2876 #include <sys/param.h>
2879 #if BYTE_ORDER != BIG_ENDIAN
2884 if { (eval echo configure
:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2886 ac_cv_c_bigendian
=yes
2888 echo "configure: failed program was:" >&5
2889 cat conftest.
$ac_ext >&5
2891 ac_cv_c_bigendian
=no
2895 echo "configure: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2899 if test $ac_cv_c_bigendian = unknown
; then
2900 if test "$cross_compiling" = yes; then
2901 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2903 cat > conftest.
$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2907 /* Are we little or big endian? From Harbison&Steele. */
2911 char c[sizeof (long)];
2914 exit (u.c[sizeof (long) - 1] == 1);
2917 if { (eval echo configure
:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2919 ac_cv_c_bigendian
=no
2921 echo "configure: failed program was:" >&5
2922 cat conftest.
$ac_ext >&5
2924 ac_cv_c_bigendian
=yes
2932 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2933 if test $ac_cv_c_bigendian = yes; then
2934 cat >> confdefs.h
<<\EOF
2935 #define WORDS_BIGENDIAN 1
2940 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2941 echo "configure:2942: checking whether char is unsigned" >&5
2942 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 if test "$GCC" = yes; then
2946 # GCC predefines this symbol on systems where it applies.
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #ifdef __CHAR_UNSIGNED__
2955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2956 egrep "yes" >/dev
/null
2>&1; then
2958 ac_cv_c_char_unsigned
=yes
2961 ac_cv_c_char_unsigned
=no
2966 if test "$cross_compiling" = yes; then
2967 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2969 cat > conftest.
$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2972 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2973 #if !defined(__STDC__) || __STDC__ != 1
2977 volatile char c = 255; exit(c < 0);
2980 if { (eval echo configure
:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2982 ac_cv_c_char_unsigned
=yes
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2987 ac_cv_c_char_unsigned
=no
2995 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2996 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2997 cat >> confdefs.h
<<\EOF
2998 #define __CHAR_UNSIGNED__ 1
3004 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3005 echo "configure:3006: checking return type of signal handlers" >&5
3006 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.
$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <sys/types.h>
3018 extern "C" void (*signal (int, void (*)(int)))(int);
3020 void (*signal ()) ();
3027 if { (eval echo configure
:3028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029 ac_cv_type_signal
=void
3031 echo "configure: failed program was:" >&5
3032 cat conftest.
$ac_ext >&5
3034 ac_cv_type_signal
=int
3039 echo "$ac_t""$ac_cv_type_signal" 1>&6
3040 cat >> confdefs.h
<<EOF
3041 #define RETSIGTYPE $ac_cv_type_signal
3045 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3046 echo "configure:3047: checking for uid_t in sys/types.h" >&5
3047 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.
$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <sys/types.h>
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 egrep "uid_t" >/dev
/null
2>&1; then
3058 ac_cv_type_uid_t
=yes
3067 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3068 if test $ac_cv_type_uid_t = no
; then
3069 cat >> confdefs.h
<<\EOF
3073 cat >> confdefs.h
<<\EOF
3079 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3080 echo "configure:3081: checking for mode_t" >&5
3081 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.
$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <sys/types.h>
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3096 ac_cv_type_mode_t
=yes
3099 ac_cv_type_mode_t
=no
3104 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3105 if test $ac_cv_type_mode_t = no
; then
3106 cat >> confdefs.h
<<\EOF
3112 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3113 echo "configure:3114: checking for off_t" >&5
3114 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 cat > conftest.
$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <sys/types.h>
3126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3127 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3129 ac_cv_type_off_t
=yes
3137 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3138 if test $ac_cv_type_off_t = no
; then
3139 cat >> confdefs.h
<<\EOF
3145 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3146 echo "configure:3147: checking for size_t" >&5
3147 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.
$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 #include <sys/types.h>
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3162 ac_cv_type_size_t
=yes
3165 ac_cv_type_size_t
=no
3170 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3171 if test $ac_cv_type_size_t = no
; then
3172 cat >> confdefs.h
<<\EOF
3173 #define size_t unsigned
3178 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3179 echo "configure:3180: checking for pid_t" >&5
3180 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 #include <sys/types.h>
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3195 ac_cv_type_pid_t
=yes
3203 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3204 if test $ac_cv_type_pid_t = no
; then
3205 cat >> confdefs.h
<<\EOF
3211 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3212 echo "configure:3213: checking for st_rdev in struct stat" >&5
3213 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 cat > conftest.
$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 #include <sys/types.h>
3220 #include <sys/stat.h>
3222 struct stat s; s.st_rdev;
3225 if { (eval echo configure
:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3227 ac_cv_struct_st_rdev
=yes
3229 echo "configure: failed program was:" >&5
3230 cat conftest.
$ac_ext >&5
3232 ac_cv_struct_st_rdev
=no
3237 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3238 if test $ac_cv_struct_st_rdev = yes; then
3239 cat >> confdefs.h
<<\EOF
3240 #define HAVE_ST_RDEV 1
3245 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3246 echo "configure:3247: checking for d_off in dirent" >&5
3247 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 cat > conftest.
$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3255 #include <sys/types.h>
3258 struct dirent d; d.d_off;
3261 if { (eval echo configure
:3262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263 ac_cv_dirent_d_off
=yes
3265 echo "configure: failed program was:" >&5
3266 cat conftest.
$ac_ext >&5
3268 ac_cv_dirent_d_off
=no
3273 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3274 if test $ac_cv_dirent_d_off = yes; then
3275 cat >> confdefs.h
<<\EOF
3276 #define HAVE_DIRENT_D_OFF 1
3281 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3282 echo "configure:3283: checking for ino_t" >&5
3283 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.
$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3298 ac_cv_type_ino_t
=yes
3306 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3307 if test $ac_cv_type_ino_t = no
; then
3308 cat >> confdefs.h
<<\EOF
3309 #define ino_t unsigned
3314 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3315 echo "configure:3316: checking for loff_t" >&5
3316 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.
$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3331 ac_cv_type_loff_t
=yes
3334 ac_cv_type_loff_t
=no
3339 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3340 if test $ac_cv_type_loff_t = no
; then
3341 cat >> confdefs.h
<<\EOF
3342 #define loff_t off_t
3347 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3348 echo "configure:3349: checking for offset_t" >&5
3349 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.
$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <sys/types.h>
3361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3362 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3364 ac_cv_type_offset_t
=yes
3367 ac_cv_type_offset_t
=no
3372 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3373 if test $ac_cv_type_offset_t = no
; then
3374 cat >> confdefs.h
<<\EOF
3375 #define offset_t loff_t
3380 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3381 echo "configure:3382: checking for ssize_t" >&5
3382 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3385 cat > conftest.
$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 #include <sys/types.h>
3394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3395 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3397 ac_cv_type_ssize_t
=yes
3400 ac_cv_type_ssize_t
=no
3405 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3406 if test $ac_cv_type_ssize_t = no
; then
3407 cat >> confdefs.h
<<\EOF
3413 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3414 echo "configure:3415: checking for wchar_t" >&5
3415 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 cat > conftest.
$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 #include <sys/types.h>
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3430 ac_cv_type_wchar_t
=yes
3433 ac_cv_type_wchar_t
=no
3438 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3439 if test $ac_cv_type_wchar_t = no
; then
3440 cat >> confdefs.h
<<\EOF
3441 #define wchar_t unsigned short
3447 ############################################
3448 # for cups support we need libcups, and a handful of header files
3450 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3451 echo "configure:3452: checking for httpConnect in -lcups" >&5
3452 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 ac_save_LIBS
="$LIBS"
3458 cat > conftest.
$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 /* Override any gcc2 internal prototype to avoid an error. */
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3470 if { (eval echo configure
:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3472 eval "ac_cv_lib_$ac_lib_var=yes"
3474 echo "configure: failed program was:" >&5
3475 cat conftest.
$ac_ext >&5
3477 eval "ac_cv_lib_$ac_lib_var=no"
3480 LIBS
="$ac_save_LIBS"
3483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3484 echo "$ac_t""yes" 1>&6
3485 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3487 cat >> confdefs.h
<<EOF
3488 #define $ac_tr_lib 1
3494 echo "$ac_t""no" 1>&6
3498 # I wonder if there is a nicer way of doing this?
3500 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3501 for ac_hdr
in cups
/cups.h cups
/language.h
3503 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3505 echo "configure:3506: checking for $ac_hdr" >&5
3506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3509 cat > conftest.
$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3515 { (eval echo configure
:3516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3517 if test -z "$ac_err"; then
3519 eval "ac_cv_header_$ac_safe=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.
$ac_ext >&5
3525 eval "ac_cv_header_$ac_safe=no"
3529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3530 echo "$ac_t""yes" 1>&6
3531 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3532 cat >> confdefs.h
<<EOF
3533 #define $ac_tr_hdr 1
3537 echo "$ac_t""no" 1>&6
3541 if x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3542 if x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3543 cat >> confdefs.h
<<\EOF
3551 ############################################
3552 # we need libdl for PAM and the new VFS code
3553 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3554 echo "configure:3555: checking for dlopen in -ldl" >&5
3555 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_save_LIBS
="$LIBS"
3561 cat > conftest.
$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3573 if { (eval echo configure
:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.
$ac_ext >&5
3580 eval "ac_cv_lib_$ac_lib_var=no"
3583 LIBS
="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3589 cat >> confdefs.h
<<\EOF
3590 #define HAVE_LIBDL 1
3594 echo "$ac_t""no" 1>&6
3598 ############################################
3599 # check for unix domain sockets
3600 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3601 echo "configure:3602: checking for unix domain sockets" >&5
3602 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3610 #include <sys/types.h>
3613 #include <sys/socket.h>
3617 struct sockaddr_un sunaddr;
3618 sunaddr.sun_family = AF_UNIX;
3622 if { (eval echo configure
:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3624 samba_cv_unixsocket
=yes
3626 echo "configure: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3629 samba_cv_unixsocket
=no
3634 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3635 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3636 cat >> confdefs.h
<<\EOF
3637 #define HAVE_UNIXSOCKET 1
3642 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3643 echo "configure:3644: checking for socklen_t type" >&5
3644 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.
$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3652 #include <sys/types.h>
3657 #include <sys/socket.h>
3662 if { (eval echo configure
:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3664 samba_cv_socklen_t
=yes
3666 echo "configure: failed program was:" >&5
3667 cat conftest.
$ac_ext >&5
3669 samba_cv_socklen_t
=no
3674 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3675 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3676 cat >> confdefs.h
<<\EOF
3677 #define HAVE_SOCKLEN_T_TYPE 1
3682 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3683 echo "configure:3684: checking for sig_atomic_t type" >&5
3684 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3688 cat > conftest.
$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3692 #include <sys/types.h>
3702 if { (eval echo configure
:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3704 samba_cv_sig_atomic_t
=yes
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3709 samba_cv_sig_atomic_t
=no
3714 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3715 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3716 cat >> confdefs.h
<<\EOF
3717 #define HAVE_SIG_ATOMIC_T_TYPE 1
3722 # stupid headers have the functions but no declaration. grrrr.
3724 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3725 echo "configure:3726: checking for errno declaration" >&5
3726 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3730 cat > conftest.
$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3738 if { (eval echo configure
:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740 ac_cv_have_errno_decl
=yes
3742 echo "configure: failed program was:" >&5
3743 cat conftest.
$ac_ext >&5
3745 ac_cv_have_errno_decl
=no
3750 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3751 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3752 cat >> confdefs.h
<<\EOF
3753 #define HAVE_ERRNO_DECL 1
3759 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3760 echo "configure:3761: checking for setresuid declaration" >&5
3761 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3770 int i = (int)setresuid
3773 if { (eval echo configure
:3774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3775 ac_cv_have_setresuid_decl
=yes
3777 echo "configure: failed program was:" >&5
3778 cat conftest.
$ac_ext >&5
3780 ac_cv_have_setresuid_decl
=no
3785 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3786 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3787 cat >> confdefs.h
<<\EOF
3788 #define HAVE_SETRESUID_DECL 1
3794 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3795 echo "configure:3796: checking for setresgid declaration" >&5
3796 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3800 cat > conftest.
$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3805 int i = (int)setresgid
3808 if { (eval echo configure
:3809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3810 ac_cv_have_setresgid_decl
=yes
3812 echo "configure: failed program was:" >&5
3813 cat conftest.
$ac_ext >&5
3815 ac_cv_have_setresgid_decl
=no
3820 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3821 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3822 cat >> confdefs.h
<<\EOF
3823 #define HAVE_SETRESGID_DECL 1
3829 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3830 echo "configure:3831: checking for asprintf declaration" >&5
3831 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3835 cat > conftest.
$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3840 int i = (int)asprintf
3843 if { (eval echo configure
:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3845 ac_cv_have_asprintf_decl
=yes
3847 echo "configure: failed program was:" >&5
3848 cat conftest.
$ac_ext >&5
3850 ac_cv_have_asprintf_decl
=no
3855 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3856 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3857 cat >> confdefs.h
<<\EOF
3858 #define HAVE_ASPRINTF_DECL 1
3864 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3865 echo "configure:3866: checking for vasprintf declaration" >&5
3866 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3870 cat > conftest.
$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3875 int i = (int)vasprintf
3878 if { (eval echo configure
:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3880 ac_cv_have_vasprintf_decl
=yes
3882 echo "configure: failed program was:" >&5
3883 cat conftest.
$ac_ext >&5
3885 ac_cv_have_vasprintf_decl
=no
3890 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3891 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3892 cat >> confdefs.h
<<\EOF
3893 #define HAVE_VASPRINTF_DECL 1
3899 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3900 echo "configure:3901: checking for vsnprintf declaration" >&5
3901 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3905 cat > conftest.
$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3910 int i = (int)vsnprintf
3913 if { (eval echo configure
:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3915 ac_cv_have_vsnprintf_decl
=yes
3917 echo "configure: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3920 ac_cv_have_vsnprintf_decl
=no
3925 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3926 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
3927 cat >> confdefs.h
<<\EOF
3928 #define HAVE_VSNPRINTF_DECL 1
3934 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3935 echo "configure:3936: checking for snprintf declaration" >&5
3936 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.
$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3945 int i = (int)snprintf
3948 if { (eval echo configure
:3949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3950 ac_cv_have_snprintf_decl
=yes
3952 echo "configure: failed program was:" >&5
3953 cat conftest.
$ac_ext >&5
3955 ac_cv_have_snprintf_decl
=no
3960 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3961 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
3962 cat >> confdefs.h
<<\EOF
3963 #define HAVE_SNPRINTF_DECL 1
3969 # and glibc has setresuid under linux but the function does
3970 # nothing until kernel 2.1.44! very dumb.
3971 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3972 echo "configure:3973: checking for real setresuid" >&5
3973 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3977 if test "$cross_compiling" = yes; then
3978 samba_cv_have_setresuid
=cross
3980 cat > conftest.
$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3984 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3986 if { (eval echo configure
:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3988 samba_cv_have_setresuid
=yes
3990 echo "configure: failed program was:" >&5
3991 cat conftest.
$ac_ext >&5
3993 samba_cv_have_setresuid
=no
4000 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4001 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4002 cat >> confdefs.h
<<\EOF
4003 #define HAVE_SETRESUID 1
4008 # Do the same check for setresguid...
4010 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4011 echo "configure:4012: checking for real setresgid" >&5
4012 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4016 if test "$cross_compiling" = yes; then
4017 samba_cv_have_setresgid
=cross
4019 cat > conftest.
$ac_ext <<EOF
4020 #line 4021 "configure"
4021 #include "confdefs.h"
4024 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4026 if { (eval echo configure
:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4028 samba_cv_have_setresgid
=yes
4030 echo "configure: failed program was:" >&5
4031 cat conftest.
$ac_ext >&5
4033 samba_cv_have_setresgid
=no
4040 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4041 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4042 cat >> confdefs.h
<<\EOF
4043 #define HAVE_SETRESGID 1
4048 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4049 echo "configure:4050: checking for 8-bit clean memcmp" >&5
4050 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 if test "$cross_compiling" = yes; then
4054 ac_cv_func_memcmp_clean
=no
4056 cat > conftest.
$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4062 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4063 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4067 if { (eval echo configure
:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4069 ac_cv_func_memcmp_clean
=yes
4071 echo "configure: failed program was:" >&5
4072 cat conftest.
$ac_ext >&5
4074 ac_cv_func_memcmp_clean
=no
4081 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4082 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4085 ###############################################
4086 # Readline included by default unless explicitly asked not to
4087 test "${with_readline+set}" != "set" && with_readline
=yes
4089 # test for where we get readline() from
4090 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4091 echo "configure:4092: checking whether to use readline" >&5
4092 # Check whether --with-readline or --without-readline was given.
4093 if test "${with_readline+set}" = set; then
4094 withval
="$with_readline"
4095 case "$with_readline" in
4097 echo "$ac_t""yes" 1>&6
4099 for ac_hdr
in readline.h
history.h readline
/readline.h
4101 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4103 echo "configure:4104: checking for $ac_hdr" >&5
4104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 cat > conftest.
$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4112 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4113 { (eval echo configure
:4114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4114 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4115 if test -z "$ac_err"; then
4117 eval "ac_cv_header_$ac_safe=yes"
4120 echo "configure: failed program was:" >&5
4121 cat conftest.
$ac_ext >&5
4123 eval "ac_cv_header_$ac_safe=no"
4127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4130 cat >> confdefs.h
<<EOF
4131 #define $ac_tr_hdr 1
4135 echo "$ac_t""no" 1>&6
4139 for ac_hdr
in readline
/history.h
4141 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4143 echo "configure:4144: checking for $ac_hdr" >&5
4144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4147 cat > conftest.
$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4152 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4153 { (eval echo configure
:4154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4154 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4155 if test -z "$ac_err"; then
4157 eval "ac_cv_header_$ac_safe=yes"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.
$ac_ext >&5
4163 eval "ac_cv_header_$ac_safe=no"
4167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4169 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4170 cat >> confdefs.h
<<EOF
4171 #define $ac_tr_hdr 1
4175 echo "$ac_t""no" 1>&6
4180 for ac_hdr
in readline.h readline
/readline.h
4182 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4184 echo "configure:4185: checking for $ac_hdr" >&5
4185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 cat > conftest.
$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4193 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4194 { (eval echo configure
:4195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4195 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4196 if test -z "$ac_err"; then
4198 eval "ac_cv_header_$ac_safe=yes"
4201 echo "configure: failed program was:" >&5
4202 cat conftest.
$ac_ext >&5
4204 eval "ac_cv_header_$ac_safe=no"
4208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4211 cat >> confdefs.h
<<EOF
4212 #define $ac_tr_hdr 1
4215 for termlib
in ncurses curses termcap terminfo termlib
; do
4216 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4217 echo "configure:4218: checking for tgetent in -l${termlib}" >&5
4218 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 ac_save_LIBS
="$LIBS"
4223 LIBS
="-l${termlib} $LIBS"
4224 cat > conftest.
$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4236 if { (eval echo configure
:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4238 eval "ac_cv_lib_$ac_lib_var=yes"
4240 echo "configure: failed program was:" >&5
4241 cat conftest.
$ac_ext >&5
4243 eval "ac_cv_lib_$ac_lib_var=no"
4246 LIBS
="$ac_save_LIBS"
4249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 TERMLIBS
="-l${termlib}"; break
4253 echo "$ac_t""no" 1>&6
4257 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4258 echo "configure:4259: checking for rl_callback_handler_install in -lreadline" >&5
4259 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS
="$LIBS"
4264 LIBS
="-lreadline $TERMLIBS $LIBS"
4265 cat > conftest.
$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char rl_callback_handler_install();
4274 rl_callback_handler_install()
4277 if { (eval echo configure
:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.
$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS
="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 TERMLIBS
="-lreadline $TERMLIBS"
4293 cat >> confdefs.h
<<\EOF
4294 #define HAVE_LIBREADLINE 1
4299 echo "$ac_t""no" 1>&6
4304 echo "$ac_t""no" 1>&6
4310 echo "$ac_t""no" 1>&6
4313 echo "$ac_t""yes" 1>&6
4315 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4316 # alternate readline path
4318 _cppflags
=${CPPFLAGS}
4320 # Add additional search path
4321 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4322 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4324 for ac_hdr
in readline.h
history.h readline
/readline.h
4326 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4328 echo "configure:4329: checking for $ac_hdr" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 cat > conftest.
$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4337 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4338 { (eval echo configure
:4339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4339 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4340 if test -z "$ac_err"; then
4342 eval "ac_cv_header_$ac_safe=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.
$ac_ext >&5
4348 eval "ac_cv_header_$ac_safe=no"
4352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4355 cat >> confdefs.h
<<EOF
4356 #define $ac_tr_hdr 1
4360 echo "$ac_t""no" 1>&6
4364 for ac_hdr
in readline
/history.h
4366 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_hdr" >&5
4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 cat > conftest.
$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4377 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure
:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then
4382 eval "ac_cv_header_$ac_safe=yes"
4385 echo "configure: failed program was:" >&5
4386 cat conftest.
$ac_ext >&5
4388 eval "ac_cv_header_$ac_safe=no"
4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4394 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4395 cat >> confdefs.h
<<EOF
4396 #define $ac_tr_hdr 1
4400 echo "$ac_t""no" 1>&6
4405 for ac_hdr
in readline.h readline
/readline.h
4407 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4409 echo "configure:4410: checking for $ac_hdr" >&5
4410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 cat > conftest.
$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4418 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4419 { (eval echo configure
:4420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4420 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4421 if test -z "$ac_err"; then
4423 eval "ac_cv_header_$ac_safe=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.
$ac_ext >&5
4429 eval "ac_cv_header_$ac_safe=no"
4433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4436 cat >> confdefs.h
<<EOF
4437 #define $ac_tr_hdr 1
4440 for termlib
in ncurses curses termcap terminfo termlib
; do
4441 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4442 echo "configure:4443: checking for tgetent in -l${termlib}" >&5
4443 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 ac_save_LIBS
="$LIBS"
4448 LIBS
="-l${termlib} $LIBS"
4449 cat > conftest.
$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4452 /* Override any gcc2 internal prototype to avoid an error. */
4453 /* We use char because int might match the return type of a gcc2
4454 builtin and then its argument prototype would still apply. */
4461 if { (eval echo configure
:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4463 eval "ac_cv_lib_$ac_lib_var=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4468 eval "ac_cv_lib_$ac_lib_var=no"
4471 LIBS
="$ac_save_LIBS"
4474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4475 echo "$ac_t""yes" 1>&6
4476 TERMLIBS
="-l${termlib}"; break
4478 echo "$ac_t""no" 1>&6
4482 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4483 echo "configure:4484: checking for rl_callback_handler_install in -lreadline" >&5
4484 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 ac_save_LIBS
="$LIBS"
4489 LIBS
="-lreadline $TERMLIBS $LIBS"
4490 cat > conftest.
$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 /* Override any gcc2 internal prototype to avoid an error. */
4494 /* We use char because int might match the return type of a gcc2
4495 builtin and then its argument prototype would still apply. */
4496 char rl_callback_handler_install();
4499 rl_callback_handler_install()
4502 if { (eval echo configure
:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4504 eval "ac_cv_lib_$ac_lib_var=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.
$ac_ext >&5
4509 eval "ac_cv_lib_$ac_lib_var=no"
4512 LIBS
="$ac_save_LIBS"
4515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 TERMLDFLAGS
="-L$with_readline/lib"
4518 TERMCPPFLAGS
="-I$with_readline/include"
4519 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4520 TERMLIBS
="-lreadline $TERMLIBS"
4521 cat >> confdefs.h
<<\EOF
4522 #define HAVE_LIBREADLINE 1
4527 echo "$ac_t""no" 1>&6
4528 TERMLIBS
= CPPFLAGS
=$_cppflags
4532 echo "$ac_t""no" 1>&6
4541 echo "$ac_t""no" 1>&6
4548 # The following test taken from the cvs sources
4549 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4550 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4551 # libsocket.so which has a bad implementation of gethostbyname (it
4552 # only looks in /etc/hosts), so we only look for -lsocket if we need
4554 for ac_func
in connect
4556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_func" >&5
4558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.
$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 /* System header to define __stub macros and hopefully few prototypes,
4565 which can conflict with char $ac_func(); below. */
4567 /* Override any gcc2 internal prototype to avoid an error. */
4568 /* We use char because int might match the return type of a gcc2
4569 builtin and then its argument prototype would still apply. */
4574 /* The GNU C library defines this for functions which it implements
4575 to always fail with ENOSYS. Some functions are actually named
4576 something starting with __ and the normal name is an alias. */
4577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4585 if { (eval echo configure
:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4587 eval "ac_cv_func_$ac_func=yes"
4589 echo "configure: failed program was:" >&5
4590 cat conftest.
$ac_ext >&5
4592 eval "ac_cv_func_$ac_func=no"
4597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4600 cat >> confdefs.h
<<EOF
4601 #define $ac_tr_func 1
4605 echo "$ac_t""no" 1>&6
4609 if test x
"$ac_cv_func_connect" = x
"no"; then
4612 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4613 echo "configure:4614: checking for printf in -lnsl_s" >&5
4614 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 ac_save_LIBS
="$LIBS"
4619 LIBS
="-lnsl_s $LIBS"
4620 cat > conftest.
$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4632 if { (eval echo configure
:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4634 eval "ac_cv_lib_$ac_lib_var=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.
$ac_ext >&5
4639 eval "ac_cv_lib_$ac_lib_var=no"
4642 LIBS
="$ac_save_LIBS"
4645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4648 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4649 cat >> confdefs.h
<<EOF
4650 #define $ac_tr_lib 1
4653 LIBS
="-lnsl_s $LIBS"
4656 echo "$ac_t""no" 1>&6
4662 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4663 echo "configure:4664: checking for printf in -lnsl" >&5
4664 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 ac_save_LIBS
="$LIBS"
4670 cat > conftest.
$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4682 if { (eval echo configure
:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4684 eval "ac_cv_lib_$ac_lib_var=yes"
4686 echo "configure: failed program was:" >&5
4687 cat conftest.
$ac_ext >&5
4689 eval "ac_cv_lib_$ac_lib_var=no"
4692 LIBS
="$ac_save_LIBS"
4695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4696 echo "$ac_t""yes" 1>&6
4697 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4698 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4699 cat >> confdefs.h
<<EOF
4700 #define $ac_tr_lib 1
4706 echo "$ac_t""no" 1>&6
4712 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4713 echo "configure:4714: checking for connect in -lsocket" >&5
4714 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 ac_save_LIBS
="$LIBS"
4719 LIBS
="-lsocket $LIBS"
4720 cat > conftest.
$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* Override any gcc2 internal prototype to avoid an error. */
4724 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */
4732 if { (eval echo configure
:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4734 eval "ac_cv_lib_$ac_lib_var=yes"
4736 echo "configure: failed program was:" >&5
4737 cat conftest.
$ac_ext >&5
4739 eval "ac_cv_lib_$ac_lib_var=no"
4742 LIBS
="$ac_save_LIBS"
4745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4746 echo "$ac_t""yes" 1>&6
4747 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4748 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4749 cat >> confdefs.h
<<EOF
4750 #define $ac_tr_lib 1
4753 LIBS
="-lsocket $LIBS"
4756 echo "$ac_t""no" 1>&6
4762 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4763 echo "configure:4764: checking for connect in -linet" >&5
4764 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 ac_save_LIBS
="$LIBS"
4770 cat > conftest.
$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 /* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */
4782 if { (eval echo configure
:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4784 eval "ac_cv_lib_$ac_lib_var=yes"
4786 echo "configure: failed program was:" >&5
4787 cat conftest.
$ac_ext >&5
4789 eval "ac_cv_lib_$ac_lib_var=no"
4792 LIBS
="$ac_save_LIBS"
4795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4796 echo "$ac_t""yes" 1>&6
4797 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4798 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4799 cat >> confdefs.h
<<EOF
4800 #define $ac_tr_lib 1
4806 echo "$ac_t""no" 1>&6
4810 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4811 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4812 # ac_cv_func_connect=yes
4813 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4814 cat >> confdefs.h
<<\EOF
4815 #define HAVE_CONNECT 1
4821 ###############################################
4822 # test for where we get get_yp_default_domain() from
4823 for ac_func
in yp_get_default_domain
4825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4826 echo "configure:4827: checking for $ac_func" >&5
4827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.
$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char $ac_func(); below. */
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4843 /* The GNU C library defines this for functions which it implements
4844 to always fail with ENOSYS. Some functions are actually named
4845 something starting with __ and the normal name is an alias. */
4846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4854 if { (eval echo configure
:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4856 eval "ac_cv_func_$ac_func=yes"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.
$ac_ext >&5
4861 eval "ac_cv_func_$ac_func=no"
4866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4869 cat >> confdefs.h
<<EOF
4870 #define $ac_tr_func 1
4874 echo "$ac_t""no" 1>&6
4878 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4879 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4880 echo "configure:4881: checking for yp_get_default_domain in -lnsl" >&5
4881 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4885 ac_save_LIBS
="$LIBS"
4887 cat > conftest.
$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 /* Override any gcc2 internal prototype to avoid an error. */
4891 /* We use char because int might match the return type of a gcc2
4892 builtin and then its argument prototype would still apply. */
4893 char yp_get_default_domain();
4896 yp_get_default_domain()
4899 if { (eval echo configure
:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4901 eval "ac_cv_lib_$ac_lib_var=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.
$ac_ext >&5
4906 eval "ac_cv_lib_$ac_lib_var=no"
4909 LIBS
="$ac_save_LIBS"
4912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4913 echo "$ac_t""yes" 1>&6
4915 cat >> confdefs.h
<<\EOF
4916 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4920 echo "$ac_t""no" 1>&6
4925 # Check if we have execl, if not we need to compile smbrun.
4926 for ac_func
in execl
4928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4929 echo "configure:4930: checking for $ac_func" >&5
4930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 cat > conftest.
$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4936 /* System header to define __stub macros and hopefully few prototypes,
4937 which can conflict with char $ac_func(); below. */
4939 /* Override any gcc2 internal prototype to avoid an error. */
4940 /* We use char because int might match the return type of a gcc2
4941 builtin and then its argument prototype would still apply. */
4946 /* The GNU C library defines this for functions which it implements
4947 to always fail with ENOSYS. Some functions are actually named
4948 something starting with __ and the normal name is an alias. */
4949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4957 if { (eval echo configure
:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4959 eval "ac_cv_func_$ac_func=yes"
4961 echo "configure: failed program was:" >&5
4962 cat conftest.
$ac_ext >&5
4964 eval "ac_cv_func_$ac_func=no"
4969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4972 cat >> confdefs.h
<<EOF
4973 #define $ac_tr_func 1
4977 echo "$ac_t""no" 1>&6
4981 if test x
"$ac_cv_func_execl" = x
"no"; then
4982 RUNPROG
="bin/smbrun"
4987 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
4989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4990 echo "configure:4991: checking for $ac_func" >&5
4991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 cat > conftest.
$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4997 /* System header to define __stub macros and hopefully few prototypes,
4998 which can conflict with char $ac_func(); below. */
5000 /* Override any gcc2 internal prototype to avoid an error. */
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5007 /* The GNU C library defines this for functions which it implements
5008 to always fail with ENOSYS. Some functions are actually named
5009 something starting with __ and the normal name is an alias. */
5010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5018 if { (eval echo configure
:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5020 eval "ac_cv_func_$ac_func=yes"
5022 echo "configure: failed program was:" >&5
5023 cat conftest.
$ac_ext >&5
5025 eval "ac_cv_func_$ac_func=no"
5030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5031 echo "$ac_t""yes" 1>&6
5032 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5033 cat >> confdefs.h
<<EOF
5034 #define $ac_tr_func 1
5038 echo "$ac_t""no" 1>&6
5042 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5045 echo "configure:5046: checking for $ac_func" >&5
5046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5049 cat > conftest.
$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5052 /* System header to define __stub macros and hopefully few prototypes,
5053 which can conflict with char $ac_func(); below. */
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5062 /* The GNU C library defines this for functions which it implements
5063 to always fail with ENOSYS. Some functions are actually named
5064 something starting with __ and the normal name is an alias. */
5065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5073 if { (eval echo configure
:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5075 eval "ac_cv_func_$ac_func=yes"
5077 echo "configure: failed program was:" >&5
5078 cat conftest.
$ac_ext >&5
5080 eval "ac_cv_func_$ac_func=no"
5085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5086 echo "$ac_t""yes" 1>&6
5087 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5088 cat >> confdefs.h
<<EOF
5089 #define $ac_tr_func 1
5093 echo "$ac_t""no" 1>&6
5097 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_func" >&5
5101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.
$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5107 /* System header to define __stub macros and hopefully few prototypes,
5108 which can conflict with char $ac_func(); below. */
5110 /* Override any gcc2 internal prototype to avoid an error. */
5111 /* We use char because int might match the return type of a gcc2
5112 builtin and then its argument prototype would still apply. */
5117 /* The GNU C library defines this for functions which it implements
5118 to always fail with ENOSYS. Some functions are actually named
5119 something starting with __ and the normal name is an alias. */
5120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5128 if { (eval echo configure
:5129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5130 eval "ac_cv_func_$ac_func=yes"
5132 echo "configure: failed program was:" >&5
5133 cat conftest.
$ac_ext >&5
5135 eval "ac_cv_func_$ac_func=no"
5140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5141 echo "$ac_t""yes" 1>&6
5142 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5143 cat >> confdefs.h
<<EOF
5144 #define $ac_tr_func 1
5148 echo "$ac_t""no" 1>&6
5152 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5155 echo "configure:5156: checking for $ac_func" >&5
5156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 cat > conftest.
$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5162 /* System header to define __stub macros and hopefully few prototypes,
5163 which can conflict with char $ac_func(); below. */
5165 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5172 /* The GNU C library defines this for functions which it implements
5173 to always fail with ENOSYS. Some functions are actually named
5174 something starting with __ and the normal name is an alias. */
5175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5183 if { (eval echo configure
:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5185 eval "ac_cv_func_$ac_func=yes"
5187 echo "configure: failed program was:" >&5
5188 cat conftest.
$ac_ext >&5
5190 eval "ac_cv_func_$ac_func=no"
5195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5198 cat >> confdefs.h
<<EOF
5199 #define $ac_tr_func 1
5203 echo "$ac_t""no" 1>&6
5207 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5210 echo "configure:5211: checking for $ac_func" >&5
5211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 cat > conftest.
$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5217 /* System header to define __stub macros and hopefully few prototypes,
5218 which can conflict with char $ac_func(); below. */
5220 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5238 if { (eval echo configure
:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5240 eval "ac_cv_func_$ac_func=yes"
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5245 eval "ac_cv_func_$ac_func=no"
5250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5251 echo "$ac_t""yes" 1>&6
5252 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5253 cat >> confdefs.h
<<EOF
5254 #define $ac_tr_func 1
5258 echo "$ac_t""no" 1>&6
5262 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5265 echo "configure:5266: checking for $ac_func" >&5
5266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.
$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 /* System header to define __stub macros and hopefully few prototypes,
5273 which can conflict with char $ac_func(); below. */
5275 /* Override any gcc2 internal prototype to avoid an error. */
5276 /* We use char because int might match the return type of a gcc2
5277 builtin and then its argument prototype would still apply. */
5282 /* The GNU C library defines this for functions which it implements
5283 to always fail with ENOSYS. Some functions are actually named
5284 something starting with __ and the normal name is an alias. */
5285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5293 if { (eval echo configure
:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5295 eval "ac_cv_func_$ac_func=yes"
5297 echo "configure: failed program was:" >&5
5298 cat conftest.
$ac_ext >&5
5300 eval "ac_cv_func_$ac_func=no"
5305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5306 echo "$ac_t""yes" 1>&6
5307 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5308 cat >> confdefs.h
<<EOF
5309 #define $ac_tr_func 1
5313 echo "$ac_t""no" 1>&6
5317 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5320 echo "configure:5321: checking for $ac_func" >&5
5321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 cat > conftest.
$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 /* System header to define __stub macros and hopefully few prototypes,
5328 which can conflict with char $ac_func(); below. */
5330 /* Override any gcc2 internal prototype to avoid an error. */
5331 /* We use char because int might match the return type of a gcc2
5332 builtin and then its argument prototype would still apply. */
5337 /* The GNU C library defines this for functions which it implements
5338 to always fail with ENOSYS. Some functions are actually named
5339 something starting with __ and the normal name is an alias. */
5340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5348 if { (eval echo configure
:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5350 eval "ac_cv_func_$ac_func=yes"
5352 echo "configure: failed program was:" >&5
5353 cat conftest.
$ac_ext >&5
5355 eval "ac_cv_func_$ac_func=no"
5360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5363 cat >> confdefs.h
<<EOF
5364 #define $ac_tr_func 1
5368 echo "$ac_t""no" 1>&6
5372 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5375 echo "configure:5376: checking for $ac_func" >&5
5376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.
$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 /* System header to define __stub macros and hopefully few prototypes,
5383 which can conflict with char $ac_func(); below. */
5385 /* Override any gcc2 internal prototype to avoid an error. */
5386 /* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5392 /* The GNU C library defines this for functions which it implements
5393 to always fail with ENOSYS. Some functions are actually named
5394 something starting with __ and the normal name is an alias. */
5395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5403 if { (eval echo configure
:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5405 eval "ac_cv_func_$ac_func=yes"
5407 echo "configure: failed program was:" >&5
5408 cat conftest.
$ac_ext >&5
5410 eval "ac_cv_func_$ac_func=no"
5415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5416 echo "$ac_t""yes" 1>&6
5417 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5418 cat >> confdefs.h
<<EOF
5419 #define $ac_tr_func 1
5423 echo "$ac_t""no" 1>&6
5427 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5430 echo "configure:5431: checking for $ac_func" >&5
5431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 cat > conftest.
$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 /* System header to define __stub macros and hopefully few prototypes,
5438 which can conflict with char $ac_func(); below. */
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5447 /* The GNU C library defines this for functions which it implements
5448 to always fail with ENOSYS. Some functions are actually named
5449 something starting with __ and the normal name is an alias. */
5450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5458 if { (eval echo configure
:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5460 eval "ac_cv_func_$ac_func=yes"
5462 echo "configure: failed program was:" >&5
5463 cat conftest.
$ac_ext >&5
5465 eval "ac_cv_func_$ac_func=no"
5470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5471 echo "$ac_t""yes" 1>&6
5472 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5473 cat >> confdefs.h
<<EOF
5474 #define $ac_tr_func 1
5478 echo "$ac_t""no" 1>&6
5483 # syscall() is needed for smbwrapper.
5484 for ac_func
in syscall
5486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5487 echo "configure:5488: checking for $ac_func" >&5
5488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5491 cat > conftest.
$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 /* System header to define __stub macros and hopefully few prototypes,
5495 which can conflict with char $ac_func(); below. */
5497 /* Override any gcc2 internal prototype to avoid an error. */
5498 /* We use char because int might match the return type of a gcc2
5499 builtin and then its argument prototype would still apply. */
5504 /* The GNU C library defines this for functions which it implements
5505 to always fail with ENOSYS. Some functions are actually named
5506 something starting with __ and the normal name is an alias. */
5507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5515 if { (eval echo configure
:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5517 eval "ac_cv_func_$ac_func=yes"
5519 echo "configure: failed program was:" >&5
5520 cat conftest.
$ac_ext >&5
5522 eval "ac_cv_func_$ac_func=no"
5527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5528 echo "$ac_t""yes" 1>&6
5529 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5530 cat >> confdefs.h
<<EOF
5531 #define $ac_tr_func 1
5535 echo "$ac_t""no" 1>&6
5540 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5543 echo "configure:5544: checking for $ac_func" >&5
5544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5547 cat > conftest.
$ac_ext <<EOF
5548 #line 5549 "configure"
5549 #include "confdefs.h"
5550 /* System header to define __stub macros and hopefully few prototypes,
5551 which can conflict with char $ac_func(); below. */
5553 /* Override any gcc2 internal prototype to avoid an error. */
5554 /* We use char because int might match the return type of a gcc2
5555 builtin and then its argument prototype would still apply. */
5560 /* The GNU C library defines this for functions which it implements
5561 to always fail with ENOSYS. Some functions are actually named
5562 something starting with __ and the normal name is an alias. */
5563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5571 if { (eval echo configure
:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5573 eval "ac_cv_func_$ac_func=yes"
5575 echo "configure: failed program was:" >&5
5576 cat conftest.
$ac_ext >&5
5578 eval "ac_cv_func_$ac_func=no"
5583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5584 echo "$ac_t""yes" 1>&6
5585 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5586 cat >> confdefs.h
<<EOF
5587 #define $ac_tr_func 1
5591 echo "$ac_t""no" 1>&6
5595 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5598 echo "configure:5599: checking for $ac_func" >&5
5599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5602 cat > conftest.
$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 /* System header to define __stub macros and hopefully few prototypes,
5606 which can conflict with char $ac_func(); below. */
5608 /* Override any gcc2 internal prototype to avoid an error. */
5609 /* We use char because int might match the return type of a gcc2
5610 builtin and then its argument prototype would still apply. */
5615 /* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5626 if { (eval echo configure
:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5628 eval "ac_cv_func_$ac_func=yes"
5630 echo "configure: failed program was:" >&5
5631 cat conftest.
$ac_ext >&5
5633 eval "ac_cv_func_$ac_func=no"
5638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5640 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5641 cat >> confdefs.h
<<EOF
5642 #define $ac_tr_func 1
5646 echo "$ac_t""no" 1>&6
5650 for ac_func
in __getcwd _getcwd
5652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5653 echo "configure:5654: checking for $ac_func" >&5
5654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5655 echo $ac_n "(cached) $ac_c" 1>&6
5657 cat > conftest.
$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 /* System header to define __stub macros and hopefully few prototypes,
5661 which can conflict with char $ac_func(); below. */
5663 /* Override any gcc2 internal prototype to avoid an error. */
5664 /* We use char because int might match the return type of a gcc2
5665 builtin and then its argument prototype would still apply. */
5670 /* The GNU C library defines this for functions which it implements
5671 to always fail with ENOSYS. Some functions are actually named
5672 something starting with __ and the normal name is an alias. */
5673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5681 if { (eval echo configure
:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5683 eval "ac_cv_func_$ac_func=yes"
5685 echo "configure: failed program was:" >&5
5686 cat conftest.
$ac_ext >&5
5688 eval "ac_cv_func_$ac_func=no"
5693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5694 echo "$ac_t""yes" 1>&6
5695 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5696 cat >> confdefs.h
<<EOF
5697 #define $ac_tr_func 1
5701 echo "$ac_t""no" 1>&6
5705 for ac_func
in __xstat __fxstat __lxstat
5707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5708 echo "configure:5709: checking for $ac_func" >&5
5709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5712 cat > conftest.
$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 /* System header to define __stub macros and hopefully few prototypes,
5716 which can conflict with char $ac_func(); below. */
5718 /* Override any gcc2 internal prototype to avoid an error. */
5719 /* We use char because int might match the return type of a gcc2
5720 builtin and then its argument prototype would still apply. */
5725 /* The GNU C library defines this for functions which it implements
5726 to always fail with ENOSYS. Some functions are actually named
5727 something starting with __ and the normal name is an alias. */
5728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5736 if { (eval echo configure
:5737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5738 eval "ac_cv_func_$ac_func=yes"
5740 echo "configure: failed program was:" >&5
5741 cat conftest.
$ac_ext >&5
5743 eval "ac_cv_func_$ac_func=no"
5748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5749 echo "$ac_t""yes" 1>&6
5750 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5751 cat >> confdefs.h
<<EOF
5752 #define $ac_tr_func 1
5756 echo "$ac_t""no" 1>&6
5760 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5763 echo "configure:5764: checking for $ac_func" >&5
5764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5767 cat > conftest.
$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5770 /* System header to define __stub macros and hopefully few prototypes,
5771 which can conflict with char $ac_func(); below. */
5773 /* Override any gcc2 internal prototype to avoid an error. */
5774 /* We use char because int might match the return type of a gcc2
5775 builtin and then its argument prototype would still apply. */
5780 /* The GNU C library defines this for functions which it implements
5781 to always fail with ENOSYS. Some functions are actually named
5782 something starting with __ and the normal name is an alias. */
5783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5791 if { (eval echo configure
:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5793 eval "ac_cv_func_$ac_func=yes"
5795 echo "configure: failed program was:" >&5
5796 cat conftest.
$ac_ext >&5
5798 eval "ac_cv_func_$ac_func=no"
5803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5806 cat >> confdefs.h
<<EOF
5807 #define $ac_tr_func 1
5811 echo "$ac_t""no" 1>&6
5815 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5818 echo "configure:5819: checking for $ac_func" >&5
5819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5822 cat > conftest.
$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 /* System header to define __stub macros and hopefully few prototypes,
5826 which can conflict with char $ac_func(); below. */
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5835 /* The GNU C library defines this for functions which it implements
5836 to always fail with ENOSYS. Some functions are actually named
5837 something starting with __ and the normal name is an alias. */
5838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5846 if { (eval echo configure
:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5848 eval "ac_cv_func_$ac_func=yes"
5850 echo "configure: failed program was:" >&5
5851 cat conftest.
$ac_ext >&5
5853 eval "ac_cv_func_$ac_func=no"
5858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5860 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5861 cat >> confdefs.h
<<EOF
5862 #define $ac_tr_func 1
5866 echo "$ac_t""no" 1>&6
5870 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5873 echo "configure:5874: checking for $ac_func" >&5
5874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 cat > conftest.
$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* System header to define __stub macros and hopefully few prototypes,
5881 which can conflict with char $ac_func(); below. */
5883 /* Override any gcc2 internal prototype to avoid an error. */
5884 /* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5890 /* The GNU C library defines this for functions which it implements
5891 to always fail with ENOSYS. Some functions are actually named
5892 something starting with __ and the normal name is an alias. */
5893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5901 if { (eval echo configure
:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5903 eval "ac_cv_func_$ac_func=yes"
5905 echo "configure: failed program was:" >&5
5906 cat conftest.
$ac_ext >&5
5908 eval "ac_cv_func_$ac_func=no"
5913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5914 echo "$ac_t""yes" 1>&6
5915 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5916 cat >> confdefs.h
<<EOF
5917 #define $ac_tr_func 1
5921 echo "$ac_t""no" 1>&6
5925 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5928 echo "configure:5929: checking for $ac_func" >&5
5929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5932 cat > conftest.
$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 /* System header to define __stub macros and hopefully few prototypes,
5936 which can conflict with char $ac_func(); below. */
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 /* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5945 /* The GNU C library defines this for functions which it implements
5946 to always fail with ENOSYS. Some functions are actually named
5947 something starting with __ and the normal name is an alias. */
5948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5956 if { (eval echo configure
:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5958 eval "ac_cv_func_$ac_func=yes"
5960 echo "configure: failed program was:" >&5
5961 cat conftest.
$ac_ext >&5
5963 eval "ac_cv_func_$ac_func=no"
5968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5969 echo "$ac_t""yes" 1>&6
5970 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5971 cat >> confdefs.h
<<EOF
5972 #define $ac_tr_func 1
5976 echo "$ac_t""no" 1>&6
5980 for ac_func
in _write __write _fork __fork
5982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5983 echo "configure:5984: checking for $ac_func" >&5
5984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5987 cat > conftest.
$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 /* System header to define __stub macros and hopefully few prototypes,
5991 which can conflict with char $ac_func(); below. */
5993 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
6000 /* The GNU C library defines this for functions which it implements
6001 to always fail with ENOSYS. Some functions are actually named
6002 something starting with __ and the normal name is an alias. */
6003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6011 if { (eval echo configure
:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6013 eval "ac_cv_func_$ac_func=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.
$ac_ext >&5
6018 eval "ac_cv_func_$ac_func=no"
6023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6024 echo "$ac_t""yes" 1>&6
6025 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6026 cat >> confdefs.h
<<EOF
6027 #define $ac_tr_func 1
6031 echo "$ac_t""no" 1>&6
6035 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6038 echo "configure:6039: checking for $ac_func" >&5
6039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 cat > conftest.
$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 /* System header to define __stub macros and hopefully few prototypes,
6046 which can conflict with char $ac_func(); below. */
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6055 /* The GNU C library defines this for functions which it implements
6056 to always fail with ENOSYS. Some functions are actually named
6057 something starting with __ and the normal name is an alias. */
6058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6066 if { (eval echo configure
:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6068 eval "ac_cv_func_$ac_func=yes"
6070 echo "configure: failed program was:" >&5
6071 cat conftest.
$ac_ext >&5
6073 eval "ac_cv_func_$ac_func=no"
6078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6081 cat >> confdefs.h
<<EOF
6082 #define $ac_tr_func 1
6086 echo "$ac_t""no" 1>&6
6090 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6093 echo "configure:6094: checking for $ac_func" >&5
6094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6097 cat > conftest.
$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char $ac_func(); below. */
6103 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6110 /* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6121 if { (eval echo configure
:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6123 eval "ac_cv_func_$ac_func=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.
$ac_ext >&5
6128 eval "ac_cv_func_$ac_func=no"
6133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6136 cat >> confdefs.h
<<EOF
6137 #define $ac_tr_func 1
6141 echo "$ac_t""no" 1>&6
6145 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6148 echo "configure:6149: checking for $ac_func" >&5
6149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6152 cat > conftest.
$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 /* System header to define __stub macros and hopefully few prototypes,
6156 which can conflict with char $ac_func(); below. */
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6165 /* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
6168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6176 if { (eval echo configure
:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6178 eval "ac_cv_func_$ac_func=yes"
6180 echo "configure: failed program was:" >&5
6181 cat conftest.
$ac_ext >&5
6183 eval "ac_cv_func_$ac_func=no"
6188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6191 cat >> confdefs.h
<<EOF
6192 #define $ac_tr_func 1
6196 echo "$ac_t""no" 1>&6
6200 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6203 echo "configure:6204: checking for $ac_func" >&5
6204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6207 cat > conftest.
$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func(); below. */
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6220 /* The GNU C library defines this for functions which it implements
6221 to always fail with ENOSYS. Some functions are actually named
6222 something starting with __ and the normal name is an alias. */
6223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6231 if { (eval echo configure
:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6233 eval "ac_cv_func_$ac_func=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.
$ac_ext >&5
6238 eval "ac_cv_func_$ac_func=no"
6243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6246 cat >> confdefs.h
<<EOF
6247 #define $ac_tr_func 1
6251 echo "$ac_t""no" 1>&6
6255 for ac_func
in open64 _open64 __open64 creat64
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6262 cat > conftest.
$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6286 if { (eval echo configure
:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6288 eval "ac_cv_func_$ac_func=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.
$ac_ext >&5
6293 eval "ac_cv_func_$ac_func=no"
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h
<<EOF
6302 #define $ac_tr_func 1
6306 echo "$ac_t""no" 1>&6
6312 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6315 if test x
$ac_cv_func_stat64 = xno
; then
6316 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6317 echo "configure:6318: checking for stat64 in <sys/stat.h>" >&5
6318 cat > conftest.
$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6322 #if defined(HAVE_UNISTD_H)
6325 #include <sys/stat.h>
6328 struct stat64 st64; exit(stat64(".",&st64));
6331 if { (eval echo configure
:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6333 ac_cv_func_stat64
=yes
6335 echo "configure: failed program was:" >&5
6336 cat conftest.
$ac_ext >&5
6339 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6340 if test x
$ac_cv_func_stat64 = xyes
; then
6341 cat >> confdefs.h
<<\EOF
6342 #define HAVE_STAT64 1
6348 if test x
$ac_cv_func_lstat64 = xno
; then
6349 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6350 echo "configure:6351: checking for lstat64 in <sys/stat.h>" >&5
6351 cat > conftest.
$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6355 #if defined(HAVE_UNISTD_H)
6358 #include <sys/stat.h>
6361 struct stat64 st64; exit(lstat64(".",&st64));
6364 if { (eval echo configure
:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6366 ac_cv_func_lstat64
=yes
6368 echo "configure: failed program was:" >&5
6369 cat conftest.
$ac_ext >&5
6372 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6373 if test x
$ac_cv_func_lstat64 = xyes
; then
6374 cat >> confdefs.h
<<\EOF
6375 #define HAVE_LSTAT64 1
6381 if test x
$ac_cv_func_fstat64 = xno
; then
6382 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6383 echo "configure:6384: checking for fstat64 in <sys/stat.h>" >&5
6384 cat > conftest.
$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6388 #if defined(HAVE_UNISTD_H)
6391 #include <sys/stat.h>
6394 struct stat64 st64; exit(fstat64(0,&st64));
6397 if { (eval echo configure
:6398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6399 ac_cv_func_fstat64
=yes
6401 echo "configure: failed program was:" >&5
6402 cat conftest.
$ac_ext >&5
6405 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6406 if test x
$ac_cv_func_fstat64 = xyes
; then
6407 cat >> confdefs.h
<<\EOF
6408 #define HAVE_FSTAT64 1
6415 # If no strcasecmp, check for it in some known places
6416 # It is in -lresolv on ReliantUNIX and UnixWare
6417 # -lresolve *must* follow -lnsl for name resolution to work properly
6420 if test x
$ac_cv_func_strcasecmp = xno
; then
6421 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6422 echo "configure:6423: checking for strcasecmp in -lresolv" >&5
6423 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 ac_save_LIBS
="$LIBS"
6428 LIBS
="-lresolv $LIBS"
6429 cat > conftest.
$ac_ext <<EOF
6430 #line 6431 "configure"
6431 #include "confdefs.h"
6432 /* Override any gcc2 internal prototype to avoid an error. */
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6441 if { (eval echo configure
:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6443 eval "ac_cv_lib_$ac_lib_var=yes"
6445 echo "configure: failed program was:" >&5
6446 cat conftest.
$ac_ext >&5
6448 eval "ac_cv_lib_$ac_lib_var=no"
6451 LIBS
="$ac_save_LIBS"
6454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6455 echo "$ac_t""yes" 1>&6
6456 LIBS
="$LIBS -lresolv"
6457 cat >> confdefs.h
<<\EOF
6458 #define HAVE_STRCASECMP 1
6462 echo "$ac_t""no" 1>&6
6468 # Check for the functions putprpwnam, set_auth_parameters,
6469 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6470 # Needed for OSF1 and HPUX.
6474 *-lsecurity*) for ac_func
in putprpwnam
6476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6477 echo "configure:6478: checking for $ac_func" >&5
6478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 cat > conftest.
$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6484 /* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char $ac_func(); below. */
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6494 /* The GNU C library defines this for functions which it implements
6495 to always fail with ENOSYS. Some functions are actually named
6496 something starting with __ and the normal name is an alias. */
6497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6505 if { (eval echo configure
:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6507 eval "ac_cv_func_$ac_func=yes"
6509 echo "configure: failed program was:" >&5
6510 cat conftest.
$ac_ext >&5
6512 eval "ac_cv_func_$ac_func=no"
6517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6518 echo "$ac_t""yes" 1>&6
6519 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6520 cat >> confdefs.h
<<EOF
6521 #define $ac_tr_func 1
6525 echo "$ac_t""no" 1>&6
6529 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6530 echo "configure:6531: checking for putprpwnam in -lsecurity" >&5
6531 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6535 ac_save_LIBS
="$LIBS"
6536 LIBS
="-lsecurity $LIBS"
6537 cat > conftest.
$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6549 if { (eval echo configure
:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6551 eval "ac_cv_lib_$ac_lib_var=yes"
6553 echo "configure: failed program was:" >&5
6554 cat conftest.
$ac_ext >&5
6556 eval "ac_cv_lib_$ac_lib_var=no"
6559 LIBS
="$ac_save_LIBS"
6562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6563 echo "$ac_t""yes" 1>&6
6564 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6566 cat >> confdefs.h
<<EOF
6567 #define $ac_tr_lib 1
6570 LIBS
="-lsecurity $LIBS"
6573 echo "$ac_t""no" 1>&6
6576 for ac_func
in putprpwnam
6578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_func" >&5
6580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 cat > conftest.
$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* System header to define __stub macros and hopefully few prototypes,
6587 which can conflict with char $ac_func(); below. */
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6607 if { (eval echo configure
:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6609 eval "ac_cv_func_$ac_func=yes"
6611 echo "configure: failed program was:" >&5
6612 cat conftest.
$ac_ext >&5
6614 eval "ac_cv_func_$ac_func=no"
6619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6620 echo "$ac_t""yes" 1>&6
6621 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6622 cat >> confdefs.h
<<EOF
6623 #define $ac_tr_func 1
6627 echo "$ac_t""no" 1>&6
6635 *-lsec*) for ac_func
in putprpwnam
6637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6638 echo "configure:6639: checking for $ac_func" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.
$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char $ac_func(); below. */
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6666 if { (eval echo configure
:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6668 eval "ac_cv_func_$ac_func=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.
$ac_ext >&5
6673 eval "ac_cv_func_$ac_func=no"
6678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6680 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6681 cat >> confdefs.h
<<EOF
6682 #define $ac_tr_func 1
6686 echo "$ac_t""no" 1>&6
6690 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6691 echo "configure:6692: checking for putprpwnam in -lsec" >&5
6692 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6696 ac_save_LIBS
="$LIBS"
6698 cat > conftest.
$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6710 if { (eval echo configure
:6711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6712 eval "ac_cv_lib_$ac_lib_var=yes"
6714 echo "configure: failed program was:" >&5
6715 cat conftest.
$ac_ext >&5
6717 eval "ac_cv_lib_$ac_lib_var=no"
6720 LIBS
="$ac_save_LIBS"
6723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6724 echo "$ac_t""yes" 1>&6
6725 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6726 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6727 cat >> confdefs.h
<<EOF
6728 #define $ac_tr_lib 1
6734 echo "$ac_t""no" 1>&6
6737 for ac_func
in putprpwnam
6739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6740 echo "configure:6741: checking for $ac_func" >&5
6741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6744 cat > conftest.
$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char $ac_func(); below. */
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6757 /* The GNU C library defines this for functions which it implements
6758 to always fail with ENOSYS. Some functions are actually named
6759 something starting with __ and the normal name is an alias. */
6760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6768 if { (eval echo configure
:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6770 eval "ac_cv_func_$ac_func=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.
$ac_ext >&5
6775 eval "ac_cv_func_$ac_func=no"
6780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6782 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6783 cat >> confdefs.h
<<EOF
6784 #define $ac_tr_func 1
6788 echo "$ac_t""no" 1>&6
6797 *-lsecurity*) for ac_func
in set_auth_parameters
6799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6800 echo "configure:6801: checking for $ac_func" >&5
6801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6804 cat > conftest.
$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 /* System header to define __stub macros and hopefully few prototypes,
6808 which can conflict with char $ac_func(); below. */
6810 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6817 /* The GNU C library defines this for functions which it implements
6818 to always fail with ENOSYS. Some functions are actually named
6819 something starting with __ and the normal name is an alias. */
6820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6828 if { (eval echo configure
:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6830 eval "ac_cv_func_$ac_func=yes"
6832 echo "configure: failed program was:" >&5
6833 cat conftest.
$ac_ext >&5
6835 eval "ac_cv_func_$ac_func=no"
6840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6841 echo "$ac_t""yes" 1>&6
6842 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6843 cat >> confdefs.h
<<EOF
6844 #define $ac_tr_func 1
6848 echo "$ac_t""no" 1>&6
6852 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6853 echo "configure:6854: checking for set_auth_parameters in -lsecurity" >&5
6854 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6858 ac_save_LIBS
="$LIBS"
6859 LIBS
="-lsecurity $LIBS"
6860 cat > conftest.
$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6866 char set_auth_parameters();
6869 set_auth_parameters()
6872 if { (eval echo configure
:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6874 eval "ac_cv_lib_$ac_lib_var=yes"
6876 echo "configure: failed program was:" >&5
6877 cat conftest.
$ac_ext >&5
6879 eval "ac_cv_lib_$ac_lib_var=no"
6882 LIBS
="$ac_save_LIBS"
6885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6886 echo "$ac_t""yes" 1>&6
6887 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6889 cat >> confdefs.h
<<EOF
6890 #define $ac_tr_lib 1
6893 LIBS
="-lsecurity $LIBS"
6896 echo "$ac_t""no" 1>&6
6899 for ac_func
in set_auth_parameters
6901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6902 echo "configure:6903: checking for $ac_func" >&5
6903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6906 cat > conftest.
$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 /* System header to define __stub macros and hopefully few prototypes,
6910 which can conflict with char $ac_func(); below. */
6912 /* Override any gcc2 internal prototype to avoid an error. */
6913 /* We use char because int might match the return type of a gcc2
6914 builtin and then its argument prototype would still apply. */
6919 /* The GNU C library defines this for functions which it implements
6920 to always fail with ENOSYS. Some functions are actually named
6921 something starting with __ and the normal name is an alias. */
6922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6930 if { (eval echo configure
:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6932 eval "ac_cv_func_$ac_func=yes"
6934 echo "configure: failed program was:" >&5
6935 cat conftest.
$ac_ext >&5
6937 eval "ac_cv_func_$ac_func=no"
6942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6943 echo "$ac_t""yes" 1>&6
6944 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6945 cat >> confdefs.h
<<EOF
6946 #define $ac_tr_func 1
6950 echo "$ac_t""no" 1>&6
6958 *-lsec*) for ac_func
in set_auth_parameters
6960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6961 echo "configure:6962: checking for $ac_func" >&5
6962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 cat > conftest.
$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char $ac_func(); below. */
6971 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6978 /* The GNU C library defines this for functions which it implements
6979 to always fail with ENOSYS. Some functions are actually named
6980 something starting with __ and the normal name is an alias. */
6981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6989 if { (eval echo configure
:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6991 eval "ac_cv_func_$ac_func=yes"
6993 echo "configure: failed program was:" >&5
6994 cat conftest.
$ac_ext >&5
6996 eval "ac_cv_func_$ac_func=no"
7001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7002 echo "$ac_t""yes" 1>&6
7003 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7004 cat >> confdefs.h
<<EOF
7005 #define $ac_tr_func 1
7009 echo "$ac_t""no" 1>&6
7013 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7014 echo "configure:7015: checking for set_auth_parameters in -lsec" >&5
7015 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7017 echo $ac_n "(cached) $ac_c" 1>&6
7019 ac_save_LIBS
="$LIBS"
7021 cat > conftest.
$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7024 /* Override any gcc2 internal prototype to avoid an error. */
7025 /* We use char because int might match the return type of a gcc2
7026 builtin and then its argument prototype would still apply. */
7027 char set_auth_parameters();
7030 set_auth_parameters()
7033 if { (eval echo configure
:7034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7035 eval "ac_cv_lib_$ac_lib_var=yes"
7037 echo "configure: failed program was:" >&5
7038 cat conftest.
$ac_ext >&5
7040 eval "ac_cv_lib_$ac_lib_var=no"
7043 LIBS
="$ac_save_LIBS"
7046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7047 echo "$ac_t""yes" 1>&6
7048 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7050 cat >> confdefs.h
<<EOF
7051 #define $ac_tr_lib 1
7057 echo "$ac_t""no" 1>&6
7060 for ac_func
in set_auth_parameters
7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7063 echo "configure:7064: checking for $ac_func" >&5
7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 cat > conftest.
$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func(); below. */
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7080 /* The GNU C library defines this for functions which it implements
7081 to always fail with ENOSYS. Some functions are actually named
7082 something starting with __ and the normal name is an alias. */
7083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 if { (eval echo configure
:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7093 eval "ac_cv_func_$ac_func=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.
$ac_ext >&5
7098 eval "ac_cv_func_$ac_func=no"
7103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7104 echo "$ac_t""yes" 1>&6
7105 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7106 cat >> confdefs.h
<<EOF
7107 #define $ac_tr_func 1
7111 echo "$ac_t""no" 1>&6
7119 # UnixWare 7.x has its getspnam in -lgen
7121 *-lgen*) for ac_func
in getspnam
7123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7124 echo "configure:7125: checking for $ac_func" >&5
7125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7128 cat > conftest.
$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131 /* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char $ac_func(); below. */
7134 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7141 /* The GNU C library defines this for functions which it implements
7142 to always fail with ENOSYS. Some functions are actually named
7143 something starting with __ and the normal name is an alias. */
7144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152 if { (eval echo configure
:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7154 eval "ac_cv_func_$ac_func=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.
$ac_ext >&5
7159 eval "ac_cv_func_$ac_func=no"
7164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7165 echo "$ac_t""yes" 1>&6
7166 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7167 cat >> confdefs.h
<<EOF
7168 #define $ac_tr_func 1
7172 echo "$ac_t""no" 1>&6
7176 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7177 echo "configure:7178: checking for getspnam in -lgen" >&5
7178 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7180 echo $ac_n "(cached) $ac_c" 1>&6
7182 ac_save_LIBS
="$LIBS"
7184 cat > conftest.
$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7196 if { (eval echo configure
:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7198 eval "ac_cv_lib_$ac_lib_var=yes"
7200 echo "configure: failed program was:" >&5
7201 cat conftest.
$ac_ext >&5
7203 eval "ac_cv_lib_$ac_lib_var=no"
7206 LIBS
="$ac_save_LIBS"
7209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7210 echo "$ac_t""yes" 1>&6
7211 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7213 cat >> confdefs.h
<<EOF
7214 #define $ac_tr_lib 1
7220 echo "$ac_t""no" 1>&6
7223 for ac_func
in getspnam
7225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7226 echo "configure:7227: checking for $ac_func" >&5
7227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7228 echo $ac_n "(cached) $ac_c" 1>&6
7230 cat > conftest.
$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* System header to define __stub macros and hopefully few prototypes,
7234 which can conflict with char $ac_func(); below. */
7236 /* Override any gcc2 internal prototype to avoid an error. */
7237 /* We use char because int might match the return type of a gcc2
7238 builtin and then its argument prototype would still apply. */
7243 /* The GNU C library defines this for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7254 if { (eval echo configure
:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7256 eval "ac_cv_func_$ac_func=yes"
7258 echo "configure: failed program was:" >&5
7259 cat conftest.
$ac_ext >&5
7261 eval "ac_cv_func_$ac_func=no"
7266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7267 echo "$ac_t""yes" 1>&6
7268 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7269 cat >> confdefs.h
<<EOF
7270 #define $ac_tr_func 1
7274 echo "$ac_t""no" 1>&6
7283 *-lsecurity*) for ac_func
in getspnam
7285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_func" >&5
7287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7290 cat > conftest.
$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 /* System header to define __stub macros and hopefully few prototypes,
7294 which can conflict with char $ac_func(); below. */
7296 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7303 /* The GNU C library defines this for functions which it implements
7304 to always fail with ENOSYS. Some functions are actually named
7305 something starting with __ and the normal name is an alias. */
7306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7314 if { (eval echo configure
:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7316 eval "ac_cv_func_$ac_func=yes"
7318 echo "configure: failed program was:" >&5
7319 cat conftest.
$ac_ext >&5
7321 eval "ac_cv_func_$ac_func=no"
7326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7327 echo "$ac_t""yes" 1>&6
7328 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7329 cat >> confdefs.h
<<EOF
7330 #define $ac_tr_func 1
7334 echo "$ac_t""no" 1>&6
7338 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7339 echo "configure:7340: checking for getspnam in -lsecurity" >&5
7340 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7344 ac_save_LIBS
="$LIBS"
7345 LIBS
="-lsecurity $LIBS"
7346 cat > conftest.
$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7358 if { (eval echo configure
:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7360 eval "ac_cv_lib_$ac_lib_var=yes"
7362 echo "configure: failed program was:" >&5
7363 cat conftest.
$ac_ext >&5
7365 eval "ac_cv_lib_$ac_lib_var=no"
7368 LIBS
="$ac_save_LIBS"
7371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7372 echo "$ac_t""yes" 1>&6
7373 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7375 cat >> confdefs.h
<<EOF
7376 #define $ac_tr_lib 1
7379 LIBS
="-lsecurity $LIBS"
7382 echo "$ac_t""no" 1>&6
7385 for ac_func
in getspnam
7387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7388 echo "configure:7389: checking for $ac_func" >&5
7389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7390 echo $ac_n "(cached) $ac_c" 1>&6
7392 cat > conftest.
$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7395 /* System header to define __stub macros and hopefully few prototypes,
7396 which can conflict with char $ac_func(); below. */
7398 /* Override any gcc2 internal prototype to avoid an error. */
7399 /* We use char because int might match the return type of a gcc2
7400 builtin and then its argument prototype would still apply. */
7405 /* The GNU C library defines this for functions which it implements
7406 to always fail with ENOSYS. Some functions are actually named
7407 something starting with __ and the normal name is an alias. */
7408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7416 if { (eval echo configure
:7417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7418 eval "ac_cv_func_$ac_func=yes"
7420 echo "configure: failed program was:" >&5
7421 cat conftest.
$ac_ext >&5
7423 eval "ac_cv_func_$ac_func=no"
7428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7429 echo "$ac_t""yes" 1>&6
7430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7431 cat >> confdefs.h
<<EOF
7432 #define $ac_tr_func 1
7436 echo "$ac_t""no" 1>&6
7444 *-lsec*) for ac_func
in getspnam
7446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7447 echo "configure:7448: checking for $ac_func" >&5
7448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 cat > conftest.
$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 /* System header to define __stub macros and hopefully few prototypes,
7455 which can conflict with char $ac_func(); below. */
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7464 /* The GNU C library defines this for functions which it implements
7465 to always fail with ENOSYS. Some functions are actually named
7466 something starting with __ and the normal name is an alias. */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7475 if { (eval echo configure
:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7477 eval "ac_cv_func_$ac_func=yes"
7479 echo "configure: failed program was:" >&5
7480 cat conftest.
$ac_ext >&5
7482 eval "ac_cv_func_$ac_func=no"
7487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7490 cat >> confdefs.h
<<EOF
7491 #define $ac_tr_func 1
7495 echo "$ac_t""no" 1>&6
7499 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7500 echo "configure:7501: checking for getspnam in -lsec" >&5
7501 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7505 ac_save_LIBS
="$LIBS"
7507 cat > conftest.
$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7519 if { (eval echo configure
:7520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7521 eval "ac_cv_lib_$ac_lib_var=yes"
7523 echo "configure: failed program was:" >&5
7524 cat conftest.
$ac_ext >&5
7526 eval "ac_cv_lib_$ac_lib_var=no"
7529 LIBS
="$ac_save_LIBS"
7532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7533 echo "$ac_t""yes" 1>&6
7534 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7535 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7536 cat >> confdefs.h
<<EOF
7537 #define $ac_tr_lib 1
7543 echo "$ac_t""no" 1>&6
7546 for ac_func
in getspnam
7548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_func" >&5
7550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 cat > conftest.
$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* System header to define __stub macros and hopefully few prototypes,
7557 which can conflict with char $ac_func(); below. */
7559 /* Override any gcc2 internal prototype to avoid an error. */
7560 /* We use char because int might match the return type of a gcc2
7561 builtin and then its argument prototype would still apply. */
7566 /* The GNU C library defines this for functions which it implements
7567 to always fail with ENOSYS. Some functions are actually named
7568 something starting with __ and the normal name is an alias. */
7569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7577 if { (eval echo configure
:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7579 eval "ac_cv_func_$ac_func=yes"
7581 echo "configure: failed program was:" >&5
7582 cat conftest.
$ac_ext >&5
7584 eval "ac_cv_func_$ac_func=no"
7589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7592 cat >> confdefs.h
<<EOF
7593 #define $ac_tr_func 1
7597 echo "$ac_t""no" 1>&6
7606 *-lsecurity*) for ac_func
in bigcrypt
7608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_func" >&5
7610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 cat > conftest.
$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char $ac_func(); below. */
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7626 /* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7637 if { (eval echo configure
:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7639 eval "ac_cv_func_$ac_func=yes"
7641 echo "configure: failed program was:" >&5
7642 cat conftest.
$ac_ext >&5
7644 eval "ac_cv_func_$ac_func=no"
7649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7652 cat >> confdefs.h
<<EOF
7653 #define $ac_tr_func 1
7657 echo "$ac_t""no" 1>&6
7661 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7662 echo "configure:7663: checking for bigcrypt in -lsecurity" >&5
7663 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7667 ac_save_LIBS
="$LIBS"
7668 LIBS
="-lsecurity $LIBS"
7669 cat > conftest.
$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 /* Override any gcc2 internal prototype to avoid an error. */
7673 /* We use char because int might match the return type of a gcc2
7674 builtin and then its argument prototype would still apply. */
7681 if { (eval echo configure
:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7683 eval "ac_cv_lib_$ac_lib_var=yes"
7685 echo "configure: failed program was:" >&5
7686 cat conftest.
$ac_ext >&5
7688 eval "ac_cv_lib_$ac_lib_var=no"
7691 LIBS
="$ac_save_LIBS"
7694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7695 echo "$ac_t""yes" 1>&6
7696 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7698 cat >> confdefs.h
<<EOF
7699 #define $ac_tr_lib 1
7702 LIBS
="-lsecurity $LIBS"
7705 echo "$ac_t""no" 1>&6
7708 for ac_func
in bigcrypt
7710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7711 echo "configure:7712: checking for $ac_func" >&5
7712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7715 cat > conftest.
$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char $ac_func(); below. */
7721 /* Override any gcc2 internal prototype to avoid an error. */
7722 /* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7728 /* The GNU C library defines this for functions which it implements
7729 to always fail with ENOSYS. Some functions are actually named
7730 something starting with __ and the normal name is an alias. */
7731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7739 if { (eval echo configure
:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7741 eval "ac_cv_func_$ac_func=yes"
7743 echo "configure: failed program was:" >&5
7744 cat conftest.
$ac_ext >&5
7746 eval "ac_cv_func_$ac_func=no"
7751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7752 echo "$ac_t""yes" 1>&6
7753 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7754 cat >> confdefs.h
<<EOF
7755 #define $ac_tr_func 1
7759 echo "$ac_t""no" 1>&6
7767 *-lsec*) for ac_func
in bigcrypt
7769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7770 echo "configure:7771: checking for $ac_func" >&5
7771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7774 cat > conftest.
$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 /* System header to define __stub macros and hopefully few prototypes,
7778 which can conflict with char $ac_func(); below. */
7780 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7787 /* The GNU C library defines this for functions which it implements
7788 to always fail with ENOSYS. Some functions are actually named
7789 something starting with __ and the normal name is an alias. */
7790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7798 if { (eval echo configure
:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7800 eval "ac_cv_func_$ac_func=yes"
7802 echo "configure: failed program was:" >&5
7803 cat conftest.
$ac_ext >&5
7805 eval "ac_cv_func_$ac_func=no"
7810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7812 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7813 cat >> confdefs.h
<<EOF
7814 #define $ac_tr_func 1
7818 echo "$ac_t""no" 1>&6
7822 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7823 echo "configure:7824: checking for bigcrypt in -lsec" >&5
7824 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7828 ac_save_LIBS
="$LIBS"
7830 cat > conftest.
$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */
7842 if { (eval echo configure
:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7844 eval "ac_cv_lib_$ac_lib_var=yes"
7846 echo "configure: failed program was:" >&5
7847 cat conftest.
$ac_ext >&5
7849 eval "ac_cv_lib_$ac_lib_var=no"
7852 LIBS
="$ac_save_LIBS"
7855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7856 echo "$ac_t""yes" 1>&6
7857 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7859 cat >> confdefs.h
<<EOF
7860 #define $ac_tr_lib 1
7866 echo "$ac_t""no" 1>&6
7869 for ac_func
in bigcrypt
7871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7872 echo "configure:7873: checking for $ac_func" >&5
7873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7876 cat > conftest.
$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 /* System header to define __stub macros and hopefully few prototypes,
7880 which can conflict with char $ac_func(); below. */
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 /* We use char because int might match the return type of a gcc2
7884 builtin and then its argument prototype would still apply. */
7889 /* The GNU C library defines this for functions which it implements
7890 to always fail with ENOSYS. Some functions are actually named
7891 something starting with __ and the normal name is an alias. */
7892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7900 if { (eval echo configure
:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7902 eval "ac_cv_func_$ac_func=yes"
7904 echo "configure: failed program was:" >&5
7905 cat conftest.
$ac_ext >&5
7907 eval "ac_cv_func_$ac_func=no"
7912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7913 echo "$ac_t""yes" 1>&6
7914 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7915 cat >> confdefs.h
<<EOF
7916 #define $ac_tr_func 1
7920 echo "$ac_t""no" 1>&6
7929 *-lsecurity*) for ac_func
in getprpwnam
7931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7932 echo "configure:7933: checking for $ac_func" >&5
7933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7936 cat > conftest.
$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 /* System header to define __stub macros and hopefully few prototypes,
7940 which can conflict with char $ac_func(); below. */
7942 /* Override any gcc2 internal prototype to avoid an error. */
7943 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7949 /* The GNU C library defines this for functions which it implements
7950 to always fail with ENOSYS. Some functions are actually named
7951 something starting with __ and the normal name is an alias. */
7952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7960 if { (eval echo configure
:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7962 eval "ac_cv_func_$ac_func=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.
$ac_ext >&5
7967 eval "ac_cv_func_$ac_func=no"
7972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7973 echo "$ac_t""yes" 1>&6
7974 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7975 cat >> confdefs.h
<<EOF
7976 #define $ac_tr_func 1
7980 echo "$ac_t""no" 1>&6
7984 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7985 echo "configure:7986: checking for getprpwnam in -lsecurity" >&5
7986 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7990 ac_save_LIBS
="$LIBS"
7991 LIBS
="-lsecurity $LIBS"
7992 cat > conftest.
$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7995 /* Override any gcc2 internal prototype to avoid an error. */
7996 /* We use char because int might match the return type of a gcc2
7997 builtin and then its argument prototype would still apply. */
8004 if { (eval echo configure
:8005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8006 eval "ac_cv_lib_$ac_lib_var=yes"
8008 echo "configure: failed program was:" >&5
8009 cat conftest.
$ac_ext >&5
8011 eval "ac_cv_lib_$ac_lib_var=no"
8014 LIBS
="$ac_save_LIBS"
8017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8018 echo "$ac_t""yes" 1>&6
8019 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8021 cat >> confdefs.h
<<EOF
8022 #define $ac_tr_lib 1
8025 LIBS
="-lsecurity $LIBS"
8028 echo "$ac_t""no" 1>&6
8031 for ac_func
in getprpwnam
8033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8034 echo "configure:8035: checking for $ac_func" >&5
8035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8036 echo $ac_n "(cached) $ac_c" 1>&6
8038 cat > conftest.
$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8041 /* System header to define __stub macros and hopefully few prototypes,
8042 which can conflict with char $ac_func(); below. */
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8051 /* The GNU C library defines this for functions which it implements
8052 to always fail with ENOSYS. Some functions are actually named
8053 something starting with __ and the normal name is an alias. */
8054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8062 if { (eval echo configure
:8063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8064 eval "ac_cv_func_$ac_func=yes"
8066 echo "configure: failed program was:" >&5
8067 cat conftest.
$ac_ext >&5
8069 eval "ac_cv_func_$ac_func=no"
8074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8075 echo "$ac_t""yes" 1>&6
8076 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8077 cat >> confdefs.h
<<EOF
8078 #define $ac_tr_func 1
8082 echo "$ac_t""no" 1>&6
8090 *-lsec*) for ac_func
in getprpwnam
8092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8093 echo "configure:8094: checking for $ac_func" >&5
8094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 cat > conftest.
$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100 /* System header to define __stub macros and hopefully few prototypes,
8101 which can conflict with char $ac_func(); below. */
8103 /* Override any gcc2 internal prototype to avoid an error. */
8104 /* We use char because int might match the return type of a gcc2
8105 builtin and then its argument prototype would still apply. */
8110 /* The GNU C library defines this for functions which it implements
8111 to always fail with ENOSYS. Some functions are actually named
8112 something starting with __ and the normal name is an alias. */
8113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8121 if { (eval echo configure
:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8123 eval "ac_cv_func_$ac_func=yes"
8125 echo "configure: failed program was:" >&5
8126 cat conftest.
$ac_ext >&5
8128 eval "ac_cv_func_$ac_func=no"
8133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8134 echo "$ac_t""yes" 1>&6
8135 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8136 cat >> confdefs.h
<<EOF
8137 #define $ac_tr_func 1
8141 echo "$ac_t""no" 1>&6
8145 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8146 echo "configure:8147: checking for getprpwnam in -lsec" >&5
8147 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8151 ac_save_LIBS
="$LIBS"
8153 cat > conftest.
$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8165 if { (eval echo configure
:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8167 eval "ac_cv_lib_$ac_lib_var=yes"
8169 echo "configure: failed program was:" >&5
8170 cat conftest.
$ac_ext >&5
8172 eval "ac_cv_lib_$ac_lib_var=no"
8175 LIBS
="$ac_save_LIBS"
8178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8179 echo "$ac_t""yes" 1>&6
8180 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8181 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8182 cat >> confdefs.h
<<EOF
8183 #define $ac_tr_lib 1
8189 echo "$ac_t""no" 1>&6
8192 for ac_func
in getprpwnam
8194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8195 echo "configure:8196: checking for $ac_func" >&5
8196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8199 cat > conftest.
$ac_ext <<EOF
8200 #line 8201 "configure"
8201 #include "confdefs.h"
8202 /* System header to define __stub macros and hopefully few prototypes,
8203 which can conflict with char $ac_func(); below. */
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8212 /* The GNU C library defines this for functions which it implements
8213 to always fail with ENOSYS. Some functions are actually named
8214 something starting with __ and the normal name is an alias. */
8215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8223 if { (eval echo configure
:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8225 eval "ac_cv_func_$ac_func=yes"
8227 echo "configure: failed program was:" >&5
8228 cat conftest.
$ac_ext >&5
8230 eval "ac_cv_func_$ac_func=no"
8235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8236 echo "$ac_t""yes" 1>&6
8237 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8238 cat >> confdefs.h
<<EOF
8239 #define $ac_tr_func 1
8243 echo "$ac_t""no" 1>&6
8251 # this bit needs to be modified for each OS that is suported by
8252 # smbwrapper. You need to specify how to created a shared library and
8253 # how to compile C code to produce PIC object files
8255 # these are the defaults, good for lots of systems
8261 # Assume non-shared by default and override below
8264 # and these are for particular systems
8266 *linux
*) cat >> confdefs.h
<<\EOF
8274 *solaris
*) cat >> confdefs.h
<<\EOF
8279 *sunos
*) cat >> confdefs.h
<<\EOF
8284 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8286 *irix
*) cat >> confdefs.h
<<\EOF
8291 *irix6
*) cat >> confdefs.h
<<\EOF
8297 ATTEMPT_WRAP32_BUILD
=yes
8299 *aix
*) cat >> confdefs.h
<<\EOF
8303 # AIX is too ugly for now
8305 *hpux
*) cat >> confdefs.h
<<\EOF
8310 # Use special PIC flags for the native HP-UX compiler.
8311 if test $ac_cv_prog_cc_Ae = yes; then
8316 *qnx
*) cat >> confdefs.h
<<\EOF
8320 *osf
*) cat >> confdefs.h
<<\EOF
8324 *sco
*) cat >> confdefs.h
<<\EOF
8328 *next2
*) cat >> confdefs.h
<<\EOF
8332 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8333 set dummy
groff; ac_word
=$2
8334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8335 echo "configure:8336: checking for $ac_word" >&5
8336 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8339 if test -n "$ROFF"; then
8340 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8342 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8344 for ac_dir
in $ac_dummy; do
8345 test -z "$ac_dir" && ac_dir
=.
8346 if test -f $ac_dir/$ac_word; then
8347 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8354 ROFF
="$ac_cv_prog_ROFF"
8355 if test -n "$ROFF"; then
8356 echo "$ac_t""$ROFF" 1>&6
8358 echo "$ac_t""no" 1>&6
8363 *-univel-*) if test "$GCC" != yes ; then
8364 cat >> confdefs.h
<<\EOF
8365 #define HAVE_MEMSET 1
8371 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8372 #define RELIANTUNIX 1
8378 if test "$GCC" != yes ; then
8379 cat >> confdefs.h
<<\EOF
8380 #define HAVE_MEMSET 1
8388 # try to work out how to produce pic code with this compiler
8389 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8390 echo "configure:8391: checking whether ${CC-cc} accepts -fpic" >&5
8391 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8392 echo $ac_n "(cached) $ac_c" 1>&6
8394 echo 'void f(){}' > conftest.c
8395 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8396 ac_cv_prog_cc_fpic
=yes
8398 ac_cv_prog_cc_fpic
=no
8404 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8405 if test $ac_cv_prog_cc_fpic = yes; then
8408 if test x
$PICFLAG = x
; then
8409 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8410 echo "configure:8411: checking whether ${CC-cc} accepts -KPIC" >&5
8411 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8412 echo $ac_n "(cached) $ac_c" 1>&6
8414 echo 'void f(){}' > conftest.c
8415 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8416 ac_cv_prog_cc_KPIC
=yes
8418 ac_cv_prog_cc_KPIC
=no
8424 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8425 if test $ac_cv_prog_cc_KPIC = yes; then
8429 if test x
$PICFLAG = x
; then
8430 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8431 echo "configure:8432: checking whether ${CC-cc} accepts -Kpic" >&5
8432 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8435 echo 'void f(){}' > conftest.c
8436 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8437 ac_cv_prog_cc_Kpic
=yes
8439 ac_cv_prog_cc_Kpic
=no
8445 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8446 if test $ac_cv_prog_cc_Kpic = yes; then
8453 echo $ac_n "checking for long long""... $ac_c" 1>&6
8454 echo "configure:8455: checking for long long" >&5
8455 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8459 if test "$cross_compiling" = yes; then
8460 samba_cv_have_longlong
=cross
8462 cat > conftest.
$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8466 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8468 if { (eval echo configure
:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8470 samba_cv_have_longlong
=yes
8472 echo "configure: failed program was:" >&5
8473 cat conftest.
$ac_ext >&5
8475 samba_cv_have_longlong
=no
8482 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8483 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8484 cat >> confdefs.h
<<\EOF
8485 #define HAVE_LONGLONG 1
8491 # Check if the compiler supports the LL prefix on long long integers.
8494 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8495 echo "configure:8496: checking for LL suffix on long long integers" >&5
8496 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8497 echo $ac_n "(cached) $ac_c" 1>&6
8500 cat > conftest.
$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8505 long long i = 0x8000000000LL
8508 if { (eval echo configure
:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8510 samba_cv_compiler_supports_ll
=yes
8512 echo "configure: failed program was:" >&5
8513 cat conftest.
$ac_ext >&5
8515 samba_cv_compiler_supports_ll
=no
8520 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8521 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8522 cat >> confdefs.h
<<\EOF
8523 #define COMPILER_SUPPORTS_LL 1
8529 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8530 echo "configure:8531: checking for 64 bit off_t" >&5
8531 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8535 if test "$cross_compiling" = yes; then
8536 samba_cv_SIZEOF_OFF_T
=cross
8538 cat > conftest.
$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8542 #include <sys/stat.h>
8543 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8545 if { (eval echo configure
:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8547 samba_cv_SIZEOF_OFF_T
=yes
8549 echo "configure: failed program was:" >&5
8550 cat conftest.
$ac_ext >&5
8552 samba_cv_SIZEOF_OFF_T
=no
8559 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8560 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8561 cat >> confdefs.h
<<\EOF
8562 #define SIZEOF_OFF_T 8
8567 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8568 echo "configure:8569: checking for off64_t" >&5
8569 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8570 echo $ac_n "(cached) $ac_c" 1>&6
8573 if test "$cross_compiling" = yes; then
8574 samba_cv_HAVE_OFF64_T
=cross
8576 cat > conftest.
$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8580 #if defined(HAVE_UNISTD_H)
8584 #include <sys/stat.h>
8585 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8587 if { (eval echo configure
:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8589 samba_cv_HAVE_OFF64_T
=yes
8591 echo "configure: failed program was:" >&5
8592 cat conftest.
$ac_ext >&5
8594 samba_cv_HAVE_OFF64_T
=no
8601 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8602 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8603 cat >> confdefs.h
<<\EOF
8604 #define HAVE_OFF64_T 1
8609 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8610 echo "configure:8611: checking for 64 bit ino_t" >&5
8611 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8615 if test "$cross_compiling" = yes; then
8616 samba_cv_SIZEOF_INO_T
=cross
8618 cat > conftest.
$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8622 #include <sys/stat.h>
8623 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8625 if { (eval echo configure
:8626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8627 samba_cv_SIZEOF_INO_T
=yes
8629 echo "configure: failed program was:" >&5
8630 cat conftest.
$ac_ext >&5
8632 samba_cv_SIZEOF_INO_T
=no
8639 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8640 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8641 cat >> confdefs.h
<<\EOF
8642 #define SIZEOF_INO_T 8
8647 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8648 echo "configure:8649: checking for ino64_t" >&5
8649 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
8653 if test "$cross_compiling" = yes; then
8654 samba_cv_HAVE_INO64_T
=cross
8656 cat > conftest.
$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8660 #if defined(HAVE_UNISTD_H)
8664 #include <sys/stat.h>
8665 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8667 if { (eval echo configure
:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8669 samba_cv_HAVE_INO64_T
=yes
8671 echo "configure: failed program was:" >&5
8672 cat conftest.
$ac_ext >&5
8674 samba_cv_HAVE_INO64_T
=no
8681 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8682 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8683 cat >> confdefs.h
<<\EOF
8684 #define HAVE_INO64_T 1
8689 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8690 echo "configure:8691: checking for struct dirent64" >&5
8691 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8692 echo $ac_n "(cached) $ac_c" 1>&6
8695 cat > conftest.
$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8699 #if defined(HAVE_UNISTD_H)
8702 #include <sys/types.h>
8708 if { (eval echo configure
:8709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8710 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8712 echo "configure: failed program was:" >&5
8713 cat conftest.
$ac_ext >&5
8715 samba_cv_HAVE_STRUCT_DIRENT64
=no
8720 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8721 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8722 cat >> confdefs.h
<<\EOF
8723 #define HAVE_STRUCT_DIRENT64 1
8728 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8729 echo "configure:8730: checking for unsigned char" >&5
8730 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8734 if test "$cross_compiling" = yes; then
8735 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8737 cat > conftest.
$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8741 main() { char c; c=250; exit((c > 0)?0:1); }
8743 if { (eval echo configure
:8744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8745 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8747 echo "configure: failed program was:" >&5
8748 cat conftest.
$ac_ext >&5
8750 samba_cv_HAVE_UNSIGNED_CHAR
=no
8757 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8758 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8759 cat >> confdefs.h
<<\EOF
8760 #define HAVE_UNSIGNED_CHAR 1
8765 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8766 echo "configure:8767: checking for sin_len in sock" >&5
8767 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8771 cat > conftest.
$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 #include <sys/types.h>
8775 #include <sys/socket.h>
8776 #include <netinet/in.h>
8778 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8781 if { (eval echo configure
:8782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8783 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8785 echo "configure: failed program was:" >&5
8786 cat conftest.
$ac_ext >&5
8788 samba_cv_HAVE_SOCK_SIN_LEN
=no
8793 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8794 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8795 cat >> confdefs.h
<<\EOF
8796 #define HAVE_SOCK_SIN_LEN 1
8801 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8802 echo "configure:8803: checking whether seekdir returns void" >&5
8803 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8807 cat > conftest.
$ac_ext <<EOF
8808 #line 8809 "configure"
8809 #include "confdefs.h"
8810 #include <sys/types.h>
8812 void seekdir(DIR *d, long loc) { return; }
8817 if { (eval echo configure
:8818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8819 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8821 echo "configure: failed program was:" >&5
8822 cat conftest.
$ac_ext >&5
8824 samba_cv_SEEKDIR_RETURNS_VOID
=no
8829 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8830 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8831 cat >> confdefs.h
<<\EOF
8832 #define SEEKDIR_RETURNS_VOID 1
8837 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8838 echo "configure:8839: checking for __FILE__ macro" >&5
8839 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8843 cat > conftest.
$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8848 printf("%s\n", __FILE__);
8851 if { (eval echo configure
:8852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8853 samba_cv_HAVE_FILE_MACRO
=yes
8855 echo "configure: failed program was:" >&5
8856 cat conftest.
$ac_ext >&5
8858 samba_cv_HAVE_FILE_MACRO
=no
8863 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8864 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8865 cat >> confdefs.h
<<\EOF
8866 #define HAVE_FILE_MACRO 1
8871 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8872 echo "configure:8873: checking for __FUNCTION__ macro" >&5
8873 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8877 cat > conftest.
$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8882 printf("%s\n", __FUNCTION__);
8885 if { (eval echo configure
:8886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8887 samba_cv_HAVE_FUNCTION_MACRO
=yes
8889 echo "configure: failed program was:" >&5
8890 cat conftest.
$ac_ext >&5
8892 samba_cv_HAVE_FUNCTION_MACRO
=no
8897 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8898 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8899 cat >> confdefs.h
<<\EOF
8900 #define HAVE_FUNCTION_MACRO 1
8905 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8906 echo "configure:8907: checking if gettimeofday takes tz argument" >&5
8907 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8911 if test "$cross_compiling" = yes; then
8912 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8914 cat > conftest.
$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8918 #include <sys/time.h>
8920 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8922 if { (eval echo configure
:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8924 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8926 echo "configure: failed program was:" >&5
8927 cat conftest.
$ac_ext >&5
8929 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8936 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8937 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8938 cat >> confdefs.h
<<\EOF
8939 #define HAVE_GETTIMEOFDAY_TZ 1
8944 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8945 echo "configure:8946: checking for C99 vsnprintf" >&5
8946 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8947 echo $ac_n "(cached) $ac_c" 1>&6
8950 if test "$cross_compiling" = yes; then
8951 samba_cv_HAVE_C99_VSNPRINTF
=cross
8953 cat > conftest.
$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8957 #include <sys/types.h>
8959 void foo(const char *format, ...) {
8964 va_start(ap, format);
8965 len = vsnprintf(0, 0, format, ap);
8967 if (len != 5) exit(1);
8969 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8973 main() { foo("hello"); }
8976 if { (eval echo configure
:8977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8978 samba_cv_HAVE_C99_VSNPRINTF
=yes
8980 echo "configure: failed program was:" >&5
8981 cat conftest.
$ac_ext >&5
8983 samba_cv_HAVE_C99_VSNPRINTF
=no
8990 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8991 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
8992 cat >> confdefs.h
<<\EOF
8993 #define HAVE_C99_VSNPRINTF 1
8998 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8999 echo "configure:9000: checking for broken readdir" >&5
9000 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9001 echo $ac_n "(cached) $ac_c" 1>&6
9004 if test "$cross_compiling" = yes; then
9005 samba_cv_HAVE_BROKEN_READDIR
=cross
9007 cat > conftest.
$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 #include <sys/types.h>
9012 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9013 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9014 di->d_name[0] == 0) exit(0); exit(1);}
9016 if { (eval echo configure
:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9018 samba_cv_HAVE_BROKEN_READDIR
=yes
9020 echo "configure: failed program was:" >&5
9021 cat conftest.
$ac_ext >&5
9023 samba_cv_HAVE_BROKEN_READDIR
=no
9030 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9031 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9032 cat >> confdefs.h
<<\EOF
9033 #define HAVE_BROKEN_READDIR 1
9038 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9039 echo "configure:9040: checking for utimbuf" >&5
9040 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9041 echo $ac_n "(cached) $ac_c" 1>&6
9044 cat > conftest.
$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 #include <sys/types.h>
9050 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9053 if { (eval echo configure
:9054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9055 samba_cv_HAVE_UTIMBUF
=yes
9057 echo "configure: failed program was:" >&5
9058 cat conftest.
$ac_ext >&5
9060 samba_cv_HAVE_UTIMBUF
=no
9065 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9066 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9067 cat >> confdefs.h
<<\EOF
9068 #define HAVE_UTIMBUF 1
9074 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9077 echo "configure:9078: checking for $ac_func" >&5
9078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9079 echo $ac_n "(cached) $ac_c" 1>&6
9081 cat > conftest.
$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 /* System header to define __stub macros and hopefully few prototypes,
9085 which can conflict with char $ac_func(); below. */
9087 /* Override any gcc2 internal prototype to avoid an error. */
9088 /* We use char because int might match the return type of a gcc2
9089 builtin and then its argument prototype would still apply. */
9094 /* The GNU C library defines this for functions which it implements
9095 to always fail with ENOSYS. Some functions are actually named
9096 something starting with __ and the normal name is an alias. */
9097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9105 if { (eval echo configure
:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9107 eval "ac_cv_func_$ac_func=yes"
9109 echo "configure: failed program was:" >&5
9110 cat conftest.
$ac_ext >&5
9112 eval "ac_cv_func_$ac_func=no"
9117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9118 echo "$ac_t""yes" 1>&6
9119 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9120 cat >> confdefs.h
<<EOF
9121 #define $ac_tr_func 1
9125 echo "$ac_t""no" 1>&6
9130 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9131 echo "configure:9132: checking for ut_name in utmp" >&5
9132 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9136 cat > conftest.
$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9139 #include <sys/types.h>
9142 struct utmp ut; ut.ut_name[0] = 'a';
9145 if { (eval echo configure
:9146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9147 samba_cv_HAVE_UT_UT_NAME
=yes
9149 echo "configure: failed program was:" >&5
9150 cat conftest.
$ac_ext >&5
9152 samba_cv_HAVE_UT_UT_NAME
=no
9157 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9158 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9159 cat >> confdefs.h
<<\EOF
9160 #define HAVE_UT_UT_NAME 1
9165 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9166 echo "configure:9167: checking for ut_user in utmp" >&5
9167 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9171 cat > conftest.
$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 #include <sys/types.h>
9177 struct utmp ut; ut.ut_user[0] = 'a';
9180 if { (eval echo configure
:9181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9182 samba_cv_HAVE_UT_UT_USER
=yes
9184 echo "configure: failed program was:" >&5
9185 cat conftest.
$ac_ext >&5
9187 samba_cv_HAVE_UT_UT_USER
=no
9192 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9193 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9194 cat >> confdefs.h
<<\EOF
9195 #define HAVE_UT_UT_USER 1
9200 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9201 echo "configure:9202: checking for ut_id in utmp" >&5
9202 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9206 cat > conftest.
$ac_ext <<EOF
9207 #line 9208 "configure"
9208 #include "confdefs.h"
9209 #include <sys/types.h>
9212 struct utmp ut; ut.ut_id[0] = 'a';
9215 if { (eval echo configure
:9216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9217 samba_cv_HAVE_UT_UT_ID
=yes
9219 echo "configure: failed program was:" >&5
9220 cat conftest.
$ac_ext >&5
9222 samba_cv_HAVE_UT_UT_ID
=no
9227 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9228 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9229 cat >> confdefs.h
<<\EOF
9230 #define HAVE_UT_UT_ID 1
9235 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9236 echo "configure:9237: checking for ut_host in utmp" >&5
9237 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9238 echo $ac_n "(cached) $ac_c" 1>&6
9241 cat > conftest.
$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9244 #include <sys/types.h>
9247 struct utmp ut; ut.ut_host[0] = 'a';
9250 if { (eval echo configure
:9251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9252 samba_cv_HAVE_UT_UT_HOST
=yes
9254 echo "configure: failed program was:" >&5
9255 cat conftest.
$ac_ext >&5
9257 samba_cv_HAVE_UT_UT_HOST
=no
9262 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9263 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9264 cat >> confdefs.h
<<\EOF
9265 #define HAVE_UT_UT_HOST 1
9270 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9271 echo "configure:9272: checking for ut_time in utmp" >&5
9272 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9276 cat > conftest.
$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9279 #include <sys/types.h>
9282 struct utmp ut; time_t t; ut.ut_time = t;
9285 if { (eval echo configure
:9286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9287 samba_cv_HAVE_UT_UT_TIME
=yes
9289 echo "configure: failed program was:" >&5
9290 cat conftest.
$ac_ext >&5
9292 samba_cv_HAVE_UT_UT_TIME
=no
9297 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9298 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9299 cat >> confdefs.h
<<\EOF
9300 #define HAVE_UT_UT_TIME 1
9305 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9306 echo "configure:9307: checking for ut_tv in utmp" >&5
9307 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9311 cat > conftest.
$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 #include <sys/types.h>
9317 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9320 if { (eval echo configure
:9321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9322 samba_cv_HAVE_UT_UT_TV
=yes
9324 echo "configure: failed program was:" >&5
9325 cat conftest.
$ac_ext >&5
9327 samba_cv_HAVE_UT_UT_TV
=no
9332 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9333 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9334 cat >> confdefs.h
<<\EOF
9335 #define HAVE_UT_UT_TV 1
9340 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9341 echo "configure:9342: checking for ut_type in utmp" >&5
9342 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9346 cat > conftest.
$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 #include <sys/types.h>
9352 struct utmp ut; ut.ut_type = 0;
9355 if { (eval echo configure
:9356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9357 samba_cv_HAVE_UT_UT_TYPE
=yes
9359 echo "configure: failed program was:" >&5
9360 cat conftest.
$ac_ext >&5
9362 samba_cv_HAVE_UT_UT_TYPE
=no
9367 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9368 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9369 cat >> confdefs.h
<<\EOF
9370 #define HAVE_UT_UT_TYPE 1
9375 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9376 echo "configure:9377: checking for ut_pid in utmp" >&5
9377 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9378 echo $ac_n "(cached) $ac_c" 1>&6
9381 cat > conftest.
$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9387 struct utmp ut; ut.ut_pid = 0;
9390 if { (eval echo configure
:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 samba_cv_HAVE_UT_UT_PID
=yes
9394 echo "configure: failed program was:" >&5
9395 cat conftest.
$ac_ext >&5
9397 samba_cv_HAVE_UT_UT_PID
=no
9402 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9403 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9404 cat >> confdefs.h
<<\EOF
9405 #define HAVE_UT_UT_PID 1
9410 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9411 echo "configure:9412: checking for ut_exit in utmp" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9416 cat > conftest.
$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 #include <sys/types.h>
9422 struct utmp ut; ut.ut_exit.e_exit = 0;
9425 if { (eval echo configure
:9426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9427 samba_cv_HAVE_UT_UT_EXIT
=yes
9429 echo "configure: failed program was:" >&5
9430 cat conftest.
$ac_ext >&5
9432 samba_cv_HAVE_UT_UT_EXIT
=no
9437 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9438 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9439 cat >> confdefs.h
<<\EOF
9440 #define HAVE_UT_UT_EXIT 1
9445 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9446 echo "configure:9447: checking for ut_addr in utmp" >&5
9447 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9451 cat > conftest.
$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <sys/types.h>
9457 struct utmp ut; ut.ut_addr = 0;
9460 if { (eval echo configure
:9461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9462 samba_cv_HAVE_UT_UT_ADDR
=yes
9464 echo "configure: failed program was:" >&5
9465 cat conftest.
$ac_ext >&5
9467 samba_cv_HAVE_UT_UT_ADDR
=no
9472 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9473 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9474 cat >> confdefs.h
<<\EOF
9475 #define HAVE_UT_UT_ADDR 1
9480 if test x
$ac_cv_func_pututline = xyes
; then
9481 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9482 echo "configure:9483: checking whether pututline returns pointer" >&5
9483 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9487 cat > conftest.
$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 #include <sys/types.h>
9493 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9496 if { (eval echo configure
:9497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9498 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9500 echo "configure: failed program was:" >&5
9501 cat conftest.
$ac_ext >&5
9503 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9508 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9509 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9510 cat >> confdefs.h
<<\EOF
9511 #define PUTUTLINE_RETURNS_UTMP 1
9517 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9518 echo "configure:9519: checking for ut_syslen in utmpx" >&5
9519 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9523 cat > conftest.
$ac_ext <<EOF
9524 #line 9525 "configure"
9525 #include "confdefs.h"
9526 #include <sys/types.h>
9529 struct utmpx ux; ux.ut_syslen = 0;
9532 if { (eval echo configure
:9533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9534 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9536 echo "configure: failed program was:" >&5
9537 cat conftest.
$ac_ext >&5
9539 samba_cv_HAVE_UX_UT_SYSLEN
=no
9544 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9545 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9546 cat >> confdefs.h
<<\EOF
9547 #define HAVE_UX_UT_SYSLEN 1
9552 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9553 echo "configure:9554: checking for Linux kernel oplocks" >&5
9554 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9555 echo $ac_n "(cached) $ac_c" 1>&6
9558 if test "$cross_compiling" = yes; then
9559 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9561 cat > conftest.
$ac_ext <<EOF
9562 #line 9563 "configure"
9563 #include "confdefs.h"
9565 #include <sys/types.h>
9568 #define F_GETLEASE 1025
9571 int fd = open("/dev/null", O_RDONLY);
9572 return fcntl(fd, F_GETLEASE, 0) == -1;
9576 if { (eval echo configure
:9577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9578 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9580 echo "configure: failed program was:" >&5
9581 cat conftest.
$ac_ext >&5
9583 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9590 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9591 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9592 cat >> confdefs.h
<<\EOF
9593 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9598 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9599 echo "configure:9600: checking for kernel change notify support" >&5
9600 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9604 if test "$cross_compiling" = yes; then
9605 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9607 cat > conftest.
$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9611 #include <sys/types.h>
9615 #define F_NOTIFY 1026
9618 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9622 if { (eval echo configure
:9623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9624 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9626 echo "configure: failed program was:" >&5
9627 cat conftest.
$ac_ext >&5
9629 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9636 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9637 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9638 cat >> confdefs.h
<<\EOF
9639 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9644 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9645 echo "configure:9646: checking for kernel share modes" >&5
9646 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9650 if test "$cross_compiling" = yes; then
9651 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9653 cat > conftest.
$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9657 #include <sys/types.h>
9660 #include <sys/file.h>
9662 #define LOCK_MAND 32
9663 #define LOCK_READ 64
9666 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9670 if { (eval echo configure
:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9672 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9674 echo "configure: failed program was:" >&5
9675 cat conftest.
$ac_ext >&5
9677 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9684 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9685 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9686 cat >> confdefs.h
<<\EOF
9687 #define HAVE_KERNEL_SHARE_MODES 1
9695 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9696 echo "configure:9697: checking for IRIX kernel oplock type definitions" >&5
9697 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9698 echo $ac_n "(cached) $ac_c" 1>&6
9701 cat > conftest.
$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9704 #include <sys/types.h>
9707 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9710 if { (eval echo configure
:9711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9712 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9714 echo "configure: failed program was:" >&5
9715 cat conftest.
$ac_ext >&5
9717 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9722 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9723 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9724 cat >> confdefs.h
<<\EOF
9725 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9730 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9731 echo "configure:9732: checking for irix specific capabilities" >&5
9732 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9736 if test "$cross_compiling" = yes; then
9737 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9739 cat > conftest.
$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 #include <sys/types.h>
9743 #include <sys/capability.h>
9746 if ((cap = cap_get_proc()) == NULL)
9748 cap->cap_effective |= CAP_NETWORK_MGT;
9749 cap->cap_inheritable |= CAP_NETWORK_MGT;
9755 if { (eval echo configure
:9756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9757 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9759 echo "configure: failed program was:" >&5
9760 cat conftest.
$ac_ext >&5
9762 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9769 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9770 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9771 cat >> confdefs.h
<<\EOF
9772 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9778 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9779 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9782 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9783 echo "configure:9784: checking for int16 typedef included by rpc/rpc.h" >&5
9784 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9785 echo $ac_n "(cached) $ac_c" 1>&6
9788 cat > conftest.
$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791 #include <sys/types.h>
9792 #if defined(HAVE_RPC_RPC_H)
9793 #include <rpc/rpc.h>
9799 if { (eval echo configure
:9800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9801 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9803 echo "configure: failed program was:" >&5
9804 cat conftest.
$ac_ext >&5
9806 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9811 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9812 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9813 cat >> confdefs.h
<<\EOF
9814 #define HAVE_INT16_FROM_RPC_RPC_H 1
9819 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9820 echo "configure:9821: checking for uint16 typedef included by rpc/rpc.h" >&5
9821 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9825 cat > conftest.
$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9828 #include <sys/types.h>
9829 #if defined(HAVE_RPC_RPC_H)
9830 #include <rpc/rpc.h>
9836 if { (eval echo configure
:9837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9838 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9840 echo "configure: failed program was:" >&5
9841 cat conftest.
$ac_ext >&5
9843 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9848 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9849 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9850 cat >> confdefs.h
<<\EOF
9851 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9856 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9857 echo "configure:9858: checking for int32 typedef included by rpc/rpc.h" >&5
9858 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9862 cat > conftest.
$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 #include <sys/types.h>
9866 #if defined(HAVE_RPC_RPC_H)
9867 #include <rpc/rpc.h>
9873 if { (eval echo configure
:9874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9875 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9877 echo "configure: failed program was:" >&5
9878 cat conftest.
$ac_ext >&5
9880 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9885 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9886 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9887 cat >> confdefs.h
<<\EOF
9888 #define HAVE_INT32_FROM_RPC_RPC_H 1
9893 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9894 echo "configure:9895: checking for uint32 typedef included by rpc/rpc.h" >&5
9895 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9899 cat > conftest.
$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 #include <sys/types.h>
9903 #if defined(HAVE_RPC_RPC_H)
9904 #include <rpc/rpc.h>
9910 if { (eval echo configure
:9911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9912 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9914 echo "configure: failed program was:" >&5
9915 cat conftest.
$ac_ext >&5
9917 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9922 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9923 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9924 cat >> confdefs.h
<<\EOF
9925 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9931 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9932 echo "configure:9933: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9933 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9937 cat > conftest.
$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <sys/types.h>
9941 #ifdef HAVE_SYS_SECURITY_H
9942 #include <sys/security.h>
9944 #endif /* HAVE_SYS_SECURITY_H */
9945 #if defined(HAVE_RPC_RPC_H)
9946 #include <rpc/rpc.h>
9952 if { (eval echo configure
:9953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9954 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9956 echo "configure: failed program was:" >&5
9957 cat conftest.
$ac_ext >&5
9959 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9964 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9965 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9966 cat >> confdefs.h
<<\EOF
9967 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9972 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9973 echo "configure:9974: checking for test routines" >&5
9974 if test "$cross_compiling" = yes; then
9975 echo "configure: warning: cannot run when cross-compiling" 1>&2
9977 cat > conftest.
$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9980 #include "${srcdir-.}/tests/trivial.c"
9982 if { (eval echo configure
:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9984 echo "$ac_t""yes" 1>&6
9986 echo "configure: failed program was:" >&5
9987 cat conftest.
$ac_ext >&5
9989 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9995 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9996 echo "configure:9997: checking for ftruncate extend" >&5
9997 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9998 echo $ac_n "(cached) $ac_c" 1>&6
10001 if test "$cross_compiling" = yes; then
10002 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10004 cat > conftest.
$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 #include "${srcdir-.}/tests/ftruncate.c"
10009 if { (eval echo configure
:10010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10011 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10013 echo "configure: failed program was:" >&5
10014 cat conftest.
$ac_ext >&5
10016 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10023 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10024 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10025 cat >> confdefs.h
<<\EOF
10026 #define HAVE_FTRUNCATE_EXTEND 1
10031 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10032 echo "configure:10033: checking for broken getgroups" >&5
10033 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10034 echo $ac_n "(cached) $ac_c" 1>&6
10037 if test "$cross_compiling" = yes; then
10038 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10040 cat > conftest.
$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043 #include "${srcdir-.}/tests/getgroups.c"
10045 if { (eval echo configure
:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10047 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10049 echo "configure: failed program was:" >&5
10050 cat conftest.
$ac_ext >&5
10052 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10059 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10060 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10061 cat >> confdefs.h
<<\EOF
10062 #define HAVE_BROKEN_GETGROUPS 1
10067 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10068 echo "configure:10069: checking whether getpass should be replaced" >&5
10069 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10073 SAVE_CPPFLAGS
="$CPPFLAGS"
10074 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10075 cat > conftest.
$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10079 #define REPLACE_GETPASS 1
10080 #define NO_CONFIG_H 1
10081 #define main dont_declare_main
10082 #include "${srcdir-.}/lib/getsmbpass.c"
10089 if { (eval echo configure
:10090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10091 samba_cv_REPLACE_GETPASS
=yes
10093 echo "configure: failed program was:" >&5
10094 cat conftest.
$ac_ext >&5
10096 samba_cv_REPLACE_GETPASS
=no
10099 CPPFLAGS
="$SAVE_CPPFLAGS"
10103 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10104 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10105 cat >> confdefs.h
<<\EOF
10106 #define REPLACE_GETPASS 1
10111 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10112 echo "configure:10113: checking for broken inet_ntoa" >&5
10113 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10117 if test "$cross_compiling" = yes; then
10118 samba_cv_REPLACE_INET_NTOA
=cross
10120 cat > conftest.
$ac_ext <<EOF
10121 #line 10122 "configure"
10122 #include "confdefs.h"
10125 #include <sys/types.h>
10126 #include <netinet/in.h>
10127 #ifdef HAVE_ARPA_INET_H
10128 #include <arpa/inet.h>
10130 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10131 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10132 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10135 if { (eval echo configure
:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10137 samba_cv_REPLACE_INET_NTOA
=yes
10139 echo "configure: failed program was:" >&5
10140 cat conftest.
$ac_ext >&5
10142 samba_cv_REPLACE_INET_NTOA
=no
10149 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10150 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10151 cat >> confdefs.h
<<\EOF
10152 #define REPLACE_INET_NTOA 1
10157 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10158 echo "configure:10159: checking for secure mkstemp" >&5
10159 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10163 if test "$cross_compiling" = yes; then
10164 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10166 cat > conftest.
$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 #include <stdlib.h>
10170 #include <sys/types.h>
10171 #include <sys/stat.h>
10172 #include <unistd.h>
10175 char tpl[20]="/tmp/test.XXXXXX";
10176 int fd = mkstemp(tpl);
10177 if (fd == -1) exit(1);
10179 if (fstat(fd, &st) != 0) exit(1);
10180 if ((st.st_mode & 0777) != 0600) exit(1);
10184 if { (eval echo configure
:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10186 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10188 echo "configure: failed program was:" >&5
10189 cat conftest.
$ac_ext >&5
10191 samba_cv_HAVE_SECURE_MKSTEMP
=no
10198 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10199 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10200 cat >> confdefs.h
<<\EOF
10201 #define HAVE_SECURE_MKSTEMP 1
10206 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10207 echo "configure:10208: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10208 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10212 if test "$cross_compiling" = yes; then
10213 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10215 cat > conftest.
$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include <unistd.h>
10219 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10221 if { (eval echo configure
:10222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10223 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10225 echo "configure: failed program was:" >&5
10226 cat conftest.
$ac_ext >&5
10228 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10235 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10236 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10237 cat >> confdefs.h
<<\EOF
10238 #define SYSCONF_SC_NGROUPS_MAX 1
10243 echo $ac_n "checking for root""... $ac_c" 1>&6
10244 echo "configure:10245: checking for root" >&5
10245 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10246 echo $ac_n "(cached) $ac_c" 1>&6
10249 if test "$cross_compiling" = yes; then
10250 samba_cv_HAVE_ROOT
=cross
10252 cat > conftest.
$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 main() { exit(getuid() != 0); }
10257 if { (eval echo configure
:10258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10259 samba_cv_HAVE_ROOT
=yes
10261 echo "configure: failed program was:" >&5
10262 cat conftest.
$ac_ext >&5
10264 samba_cv_HAVE_ROOT
=no
10271 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10272 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10273 cat >> confdefs.h
<<\EOF
10274 #define HAVE_ROOT 1
10278 echo "configure: warning: running as non-root will disable some tests" 1>&2
10282 # look for a method of finding the list of network interfaces
10284 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10285 echo "configure:10286: checking for iface AIX" >&5
10286 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10287 echo $ac_n "(cached) $ac_c" 1>&6
10290 if test "$cross_compiling" = yes; then
10291 samba_cv_HAVE_IFACE_AIX
=cross
10293 cat > conftest.
$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10297 #define HAVE_IFACE_AIX 1
10298 #define AUTOCONF_TEST 1
10299 #include "confdefs.h"
10300 #include "${srcdir-.}/lib/interfaces.c"
10302 if { (eval echo configure
:10303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10304 samba_cv_HAVE_IFACE_AIX
=yes
10306 echo "configure: failed program was:" >&5
10307 cat conftest.
$ac_ext >&5
10309 samba_cv_HAVE_IFACE_AIX
=no
10316 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10317 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10318 iface
=yes;cat >> confdefs.h
<<\EOF
10319 #define HAVE_IFACE_AIX 1
10324 if test $iface = no
; then
10325 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10326 echo "configure:10327: checking for iface ifconf" >&5
10327 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10328 echo $ac_n "(cached) $ac_c" 1>&6
10331 if test "$cross_compiling" = yes; then
10332 samba_cv_HAVE_IFACE_IFCONF
=cross
10334 cat > conftest.
$ac_ext <<EOF
10335 #line 10336 "configure"
10336 #include "confdefs.h"
10338 #define HAVE_IFACE_IFCONF 1
10339 #define AUTOCONF_TEST 1
10340 #include "confdefs.h"
10341 #include "${srcdir-.}/lib/interfaces.c"
10343 if { (eval echo configure
:10344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10345 samba_cv_HAVE_IFACE_IFCONF
=yes
10347 echo "configure: failed program was:" >&5
10348 cat conftest.
$ac_ext >&5
10350 samba_cv_HAVE_IFACE_IFCONF
=no
10357 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10358 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10359 iface
=yes;cat >> confdefs.h
<<\EOF
10360 #define HAVE_IFACE_IFCONF 1
10366 if test $iface = no
; then
10367 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10368 echo "configure:10369: checking for iface ifreq" >&5
10369 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10373 if test "$cross_compiling" = yes; then
10374 samba_cv_HAVE_IFACE_IFREQ
=cross
10376 cat > conftest.
$ac_ext <<EOF
10377 #line 10378 "configure"
10378 #include "confdefs.h"
10380 #define HAVE_IFACE_IFREQ 1
10381 #define AUTOCONF_TEST 1
10382 #include "confdefs.h"
10383 #include "${srcdir-.}/lib/interfaces.c"
10385 if { (eval echo configure
:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10387 samba_cv_HAVE_IFACE_IFREQ
=yes
10389 echo "configure: failed program was:" >&5
10390 cat conftest.
$ac_ext >&5
10392 samba_cv_HAVE_IFACE_IFREQ
=no
10399 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10400 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10401 iface
=yes;cat >> confdefs.h
<<\EOF
10402 #define HAVE_IFACE_IFREQ 1
10409 ################################################
10410 # look for a method of setting the effective uid
10412 if test $seteuid = no
; then
10413 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10414 echo "configure:10415: checking for setresuid" >&5
10415 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10419 if test "$cross_compiling" = yes; then
10420 samba_cv_USE_SETRESUID
=cross
10422 cat > conftest.
$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10426 #define AUTOCONF_TEST 1
10427 #define USE_SETRESUID 1
10428 #include "confdefs.h"
10429 #include "${srcdir-.}/lib/util_sec.c"
10431 if { (eval echo configure
:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10433 samba_cv_USE_SETRESUID
=yes
10435 echo "configure: failed program was:" >&5
10436 cat conftest.
$ac_ext >&5
10438 samba_cv_USE_SETRESUID
=no
10445 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10446 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10447 seteuid
=yes;cat >> confdefs.h
<<\EOF
10448 #define USE_SETRESUID 1
10455 if test $seteuid = no
; then
10456 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10457 echo "configure:10458: checking for setreuid" >&5
10458 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10459 echo $ac_n "(cached) $ac_c" 1>&6
10462 if test "$cross_compiling" = yes; then
10463 samba_cv_USE_SETREUID
=cross
10465 cat > conftest.
$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10469 #define AUTOCONF_TEST 1
10470 #define USE_SETREUID 1
10471 #include "confdefs.h"
10472 #include "${srcdir-.}/lib/util_sec.c"
10474 if { (eval echo configure
:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10476 samba_cv_USE_SETREUID
=yes
10478 echo "configure: failed program was:" >&5
10479 cat conftest.
$ac_ext >&5
10481 samba_cv_USE_SETREUID
=no
10488 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10489 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10490 seteuid
=yes;cat >> confdefs.h
<<\EOF
10491 #define USE_SETREUID 1
10497 if test $seteuid = no
; then
10498 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10499 echo "configure:10500: checking for seteuid" >&5
10500 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10501 echo $ac_n "(cached) $ac_c" 1>&6
10504 if test "$cross_compiling" = yes; then
10505 samba_cv_USE_SETEUID
=cross
10507 cat > conftest.
$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10511 #define AUTOCONF_TEST 1
10512 #define USE_SETEUID 1
10513 #include "confdefs.h"
10514 #include "${srcdir-.}/lib/util_sec.c"
10516 if { (eval echo configure
:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10518 samba_cv_USE_SETEUID
=yes
10520 echo "configure: failed program was:" >&5
10521 cat conftest.
$ac_ext >&5
10523 samba_cv_USE_SETEUID
=no
10530 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10531 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10532 seteuid
=yes;cat >> confdefs.h
<<\EOF
10533 #define USE_SETEUID 1
10539 if test $seteuid = no
; then
10540 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10541 echo "configure:10542: checking for setuidx" >&5
10542 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10543 echo $ac_n "(cached) $ac_c" 1>&6
10546 if test "$cross_compiling" = yes; then
10547 samba_cv_USE_SETUIDX
=cross
10549 cat > conftest.
$ac_ext <<EOF
10550 #line 10551 "configure"
10551 #include "confdefs.h"
10553 #define AUTOCONF_TEST 1
10554 #define USE_SETUIDX 1
10555 #include "confdefs.h"
10556 #include "${srcdir-.}/lib/util_sec.c"
10558 if { (eval echo configure
:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10560 samba_cv_USE_SETUIDX
=yes
10562 echo "configure: failed program was:" >&5
10563 cat conftest.
$ac_ext >&5
10565 samba_cv_USE_SETUIDX
=no
10572 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10573 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10574 seteuid
=yes;cat >> confdefs.h
<<\EOF
10575 #define USE_SETUIDX 1
10582 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10583 echo "configure:10584: checking for working mmap" >&5
10584 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10585 echo $ac_n "(cached) $ac_c" 1>&6
10588 if test "$cross_compiling" = yes; then
10589 samba_cv_HAVE_MMAP
=cross
10591 cat > conftest.
$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10594 #include "${srcdir-.}/tests/shared_mmap.c"
10596 if { (eval echo configure
:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10598 samba_cv_HAVE_MMAP
=yes
10600 echo "configure: failed program was:" >&5
10601 cat conftest.
$ac_ext >&5
10603 samba_cv_HAVE_MMAP
=no
10610 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10611 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10612 cat >> confdefs.h
<<\EOF
10613 #define HAVE_MMAP 1
10618 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10619 echo "configure:10620: checking for ftruncate needs root" >&5
10620 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10621 echo $ac_n "(cached) $ac_c" 1>&6
10624 if test "$cross_compiling" = yes; then
10625 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10627 cat > conftest.
$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include "${srcdir-.}/tests/ftruncroot.c"
10632 if { (eval echo configure
:10633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10634 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10636 echo "configure: failed program was:" >&5
10637 cat conftest.
$ac_ext >&5
10639 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10646 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10647 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10648 cat >> confdefs.h
<<\EOF
10649 #define FTRUNCATE_NEEDS_ROOT 1
10654 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10655 echo "configure:10656: checking for fcntl locking" >&5
10656 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10660 if test "$cross_compiling" = yes; then
10661 samba_cv_HAVE_FCNTL_LOCK
=cross
10663 cat > conftest.
$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include "${srcdir-.}/tests/fcntl_lock.c"
10668 if { (eval echo configure
:10669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10670 samba_cv_HAVE_FCNTL_LOCK
=yes
10672 echo "configure: failed program was:" >&5
10673 cat conftest.
$ac_ext >&5
10675 samba_cv_HAVE_FCNTL_LOCK
=no
10682 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10683 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10684 cat >> confdefs.h
<<\EOF
10685 #define HAVE_FCNTL_LOCK 1
10690 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10691 echo "configure:10692: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10692 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10693 echo $ac_n "(cached) $ac_c" 1>&6
10696 if test "$cross_compiling" = yes; then
10697 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10699 cat > conftest.
$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702 #include "${srcdir-.}/tests/fcntl_lock64.c"
10704 if { (eval echo configure
:10705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10706 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10708 echo "configure: failed program was:" >&5
10709 cat conftest.
$ac_ext >&5
10711 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10718 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10719 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10720 cat >> confdefs.h
<<\EOF
10721 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10728 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10729 echo "configure:10730: checking for 64 bit fcntl locking" >&5
10730 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10731 echo $ac_n "(cached) $ac_c" 1>&6
10734 if test "$cross_compiling" = yes; then
10735 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10737 cat > conftest.
$ac_ext <<EOF
10738 #line 10739 "configure"
10739 #include "confdefs.h"
10741 #if defined(HAVE_UNISTD_H)
10742 #include <unistd.h>
10745 #include <stdlib.h>
10747 #ifdef HAVE_FCNTL_H
10751 #ifdef HAVE_SYS_FCNTL_H
10752 #include <sys/fcntl.h>
10754 main() { struct flock64 fl64;
10755 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10762 if { (eval echo configure
:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10764 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10766 echo "configure: failed program was:" >&5
10767 cat conftest.
$ac_ext >&5
10769 samba_cv_HAVE_STRUCT_FLOCK64
=no
10776 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10778 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10779 cat >> confdefs.h
<<\EOF
10780 #define HAVE_STRUCT_FLOCK64 1
10786 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10787 echo "configure:10788: checking for broken nisplus include files" >&5
10788 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10792 cat > conftest.
$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10795 #include <sys/acl.h>
10796 #if defined(HAVE_RPCSVC_NIS_H)
10797 #include <rpcsvc/nis.h>
10803 if { (eval echo configure
:10804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10805 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10807 echo "configure: failed program was:" >&5
10808 cat conftest.
$ac_ext >&5
10810 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10815 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10816 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10817 cat >> confdefs.h
<<\EOF
10818 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10824 #################################################
10825 # check for smbwrapper support
10826 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10827 echo "configure:10828: checking whether to use smbwrapper" >&5
10828 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10829 if test "${with_smbwrapper+set}" = set; then
10830 withval
="$with_smbwrapper"
10833 echo "$ac_t""yes" 1>&6
10834 cat >> confdefs.h
<<\EOF
10835 #define WITH_SMBWRAPPER 1
10838 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10840 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10843 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10846 # Conditions under which smbwrapper should not be built.
10848 if test x
$PICFLAG = x
; then
10849 echo No support
for PIC code
- disabling smbwrapper and smbsh
10852 elif test x
$ac_cv_func_syscall = xno
; then
10853 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10859 echo "$ac_t""no" 1>&6
10863 echo "$ac_t""no" 1>&6
10868 #################################################
10869 # check for the AFS filesystem
10870 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10871 echo "configure:10872: checking whether to use AFS" >&5
10872 # Check whether --with-afs or --without-afs was given.
10873 if test "${with_afs+set}" = set; then
10874 withval
="$with_afs"
10877 echo "$ac_t""yes" 1>&6
10878 cat >> confdefs.h
<<\EOF
10884 echo "$ac_t""no" 1>&6
10888 echo "$ac_t""no" 1>&6
10894 #################################################
10895 # check for the DFS auth system
10896 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
10897 echo "configure:10898: checking whether to use DCE/DFS auth" >&5
10898 # Check whether --with-dfs or --without-dfs was given.
10899 if test "${with_dfs+set}" = set; then
10900 withval
="$with_dfs"
10903 echo "$ac_t""yes" 1>&6
10904 cat >> confdefs.h
<<\EOF
10910 echo "$ac_t""no" 1>&6
10914 echo "$ac_t""no" 1>&6
10919 #################################################
10920 # check for Kerberos IV auth system
10921 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10922 echo "configure:10923: checking whether to use Kerberos IV" >&5
10923 # Check whether --with-krb4 or --without-krb4 was given.
10924 if test "${with_krb4+set}" = set; then
10925 withval
="$with_krb4"
10928 echo "$ac_t""yes" 1>&6
10929 cat >> confdefs.h
<<\EOF
10930 #define KRB4_AUTH 1
10933 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10934 echo "configure:10935: checking for dn_expand in -lresolv" >&5
10935 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10939 ac_save_LIBS
="$LIBS"
10940 LIBS
="-lresolv $LIBS"
10941 cat > conftest.
$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10944 /* Override any gcc2 internal prototype to avoid an error. */
10945 /* We use char because int might match the return type of a gcc2
10946 builtin and then its argument prototype would still apply. */
10953 if { (eval echo configure
:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10955 eval "ac_cv_lib_$ac_lib_var=yes"
10957 echo "configure: failed program was:" >&5
10958 cat conftest.
$ac_ext >&5
10960 eval "ac_cv_lib_$ac_lib_var=no"
10963 LIBS
="$ac_save_LIBS"
10966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
10968 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10969 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10970 cat >> confdefs.h
<<EOF
10971 #define $ac_tr_lib 1
10974 LIBS
="-lresolv $LIBS"
10977 echo "$ac_t""no" 1>&6
10980 LIBS
="$LIBS -lkrb -ldes"
10981 CFLAGS
="$CFLAGS -I$withval/include"
10982 LDFLAGS
="$LDFLAGS -L$withval/lib"
10985 echo "$ac_t""no" 1>&6
10989 echo "$ac_t""no" 1>&6
10994 #################################################
10995 # check for Kerberos 5 auth system
10996 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10997 echo "configure:10998: checking whether to use Kerberos 5" >&5
10998 # Check whether --with-krb5 or --without-krb5 was given.
10999 if test "${with_krb5+set}" = set; then
11000 withval
="$with_krb5"
11003 echo "$ac_t""yes" 1>&6
11004 cat >> confdefs.h
<<\EOF
11005 #define KRB5_AUTH 1
11008 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11009 CFLAGS
="$CFLAGS -I$withval/include"
11010 LDFLAGS
="$LDFLAGS -L$withval/lib"
11013 echo "$ac_t""no" 1>&6
11017 echo "$ac_t""no" 1>&6
11022 #################################################
11023 # check for automount support
11024 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11025 echo "configure:11026: checking whether to use AUTOMOUNT" >&5
11026 # Check whether --with-automount or --without-automount was given.
11027 if test "${with_automount+set}" = set; then
11028 withval
="$with_automount"
11031 echo "$ac_t""yes" 1>&6
11032 cat >> confdefs.h
<<\EOF
11033 #define WITH_AUTOMOUNT 1
11038 echo "$ac_t""no" 1>&6
11042 echo "$ac_t""no" 1>&6
11047 #################################################
11048 # check for smbmount support
11049 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11050 echo "configure:11051: checking whether to use SMBMOUNT" >&5
11051 # Check whether --with-smbmount or --without-smbmount was given.
11052 if test "${with_smbmount+set}" = set; then
11053 withval
="$with_smbmount"
11058 echo "$ac_t""yes" 1>&6
11059 cat >> confdefs.h
<<\EOF
11060 #define WITH_SMBMOUNT 1
11063 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11066 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11071 echo "$ac_t""no" 1>&6
11076 echo "$ac_t""no" 1>&6
11083 #################################################
11084 # check for a PAM password database
11085 with_pam_for_crypt
=no
11086 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11087 echo "configure:11088: checking whether to use PAM password database" >&5
11088 # Check whether --with-pam or --without-pam was given.
11089 if test "${with_pam+set}" = set; then
11090 withval
="$with_pam"
11093 echo "$ac_t""yes" 1>&6
11094 cat >> confdefs.h
<<\EOF
11099 with_pam_for_crypt
=yes
11102 echo "$ac_t""no" 1>&6
11106 echo "$ac_t""no" 1>&6
11111 # we can't build a pam module if we don't have pam.
11112 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11113 echo "configure:11114: checking for pam_get_data in -lpam" >&5
11114 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11118 ac_save_LIBS
="$LIBS"
11120 cat > conftest.
$ac_ext <<EOF
11121 #line 11122 "configure"
11122 #include "confdefs.h"
11123 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11126 char pam_get_data();
11132 if { (eval echo configure
:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11134 eval "ac_cv_lib_$ac_lib_var=yes"
11136 echo "configure: failed program was:" >&5
11137 cat conftest.
$ac_ext >&5
11139 eval "ac_cv_lib_$ac_lib_var=no"
11142 LIBS
="$ac_save_LIBS"
11145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11147 cat >> confdefs.h
<<\EOF
11148 #define HAVE_LIBPAM 1
11152 echo "$ac_t""no" 1>&6
11156 #################################################
11157 # check for pam_smbpass support
11158 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11159 echo "configure:11160: checking whether to use pam_smbpass" >&5
11160 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11161 if test "${with_pam_smbpass+set}" = set; then
11162 withval
="$with_pam_smbpass"
11165 echo "$ac_t""yes" 1>&6
11167 # Conditions under which pam_smbpass should not be built.
11169 if test x
$PICFLAG = x
; then
11170 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11172 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11173 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11176 cat >> confdefs.h
<<\EOF
11177 #define WITH_PAM_SMBPASS 1
11180 PAM_MOD
="bin/pam_smbpass.so"
11184 echo "$ac_t""no" 1>&6
11188 echo "$ac_t""no" 1>&6
11194 ###############################################
11195 # test for where we get crypt() from, but only
11197 if test $with_pam_for_crypt = no
; then
11198 for ac_func
in crypt
11200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11201 echo "configure:11202: checking for $ac_func" >&5
11202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11203 echo $ac_n "(cached) $ac_c" 1>&6
11205 cat > conftest.
$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208 /* System header to define __stub macros and hopefully few prototypes,
11209 which can conflict with char $ac_func(); below. */
11210 #include <assert.h>
11211 /* Override any gcc2 internal prototype to avoid an error. */
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11218 /* The GNU C library defines this for functions which it implements
11219 to always fail with ENOSYS. Some functions are actually named
11220 something starting with __ and the normal name is an alias. */
11221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11229 if { (eval echo configure
:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11231 eval "ac_cv_func_$ac_func=yes"
11233 echo "configure: failed program was:" >&5
11234 cat conftest.
$ac_ext >&5
11236 eval "ac_cv_func_$ac_func=no"
11241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11242 echo "$ac_t""yes" 1>&6
11243 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11244 cat >> confdefs.h
<<EOF
11245 #define $ac_tr_func 1
11249 echo "$ac_t""no" 1>&6
11253 if test x
"$ac_cv_func_crypt" = x
"no"; then
11254 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11255 echo "configure:11256: checking for crypt in -lcrypt" >&5
11256 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11260 ac_save_LIBS
="$LIBS"
11261 LIBS
="-lcrypt $LIBS"
11262 cat > conftest.
$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11265 /* Override any gcc2 internal prototype to avoid an error. */
11266 /* We use char because int might match the return type of a gcc2
11267 builtin and then its argument prototype would still apply. */
11274 if { (eval echo configure
:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11276 eval "ac_cv_lib_$ac_lib_var=yes"
11278 echo "configure: failed program was:" >&5
11279 cat conftest.
$ac_ext >&5
11281 eval "ac_cv_lib_$ac_lib_var=no"
11284 LIBS
="$ac_save_LIBS"
11287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 LIBS
="$LIBS -lcrypt";
11290 cat >> confdefs.h
<<\EOF
11291 #define HAVE_CRYPT 1
11295 echo "$ac_t""no" 1>&6
11302 ## moved after the check for -lcrypt in order to
11303 ## ensure that the necessary libraries are included
11304 ## check checking for truncated salt. Wrapped by the
11305 ## $with_pam_for_crypt variable as above --jerry
11307 if test $with_pam_for_crypt = no
; then
11308 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11309 echo "configure:11310: checking for a crypt that needs truncated salt" >&5
11310 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11311 echo $ac_n "(cached) $ac_c" 1>&6
11314 if test "$cross_compiling" = yes; then
11315 samba_cv_HAVE_TRUNCATED_SALT
=cross
11317 cat > conftest.
$ac_ext <<EOF
11318 #line 11319 "configure"
11319 #include "confdefs.h"
11320 #include "${srcdir-.}/tests/crypttest.c"
11322 if { (eval echo configure
:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11324 samba_cv_HAVE_TRUNCATED_SALT
=no
11326 echo "configure: failed program was:" >&5
11327 cat conftest.
$ac_ext >&5
11329 samba_cv_HAVE_TRUNCATED_SALT
=yes
11336 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11337 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11338 cat >> confdefs.h
<<\EOF
11339 #define HAVE_TRUNCATED_SALT 1
11346 ########################################################################################
11348 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11350 ########################################################################################
11352 ## set the with_smbpasswd_sam as the default
11353 with_smbpasswd_sam
=yes
11357 #################################################
11358 # check for a TDB password database
11359 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11360 echo "configure:11361: checking whether to use TDB SAM database" >&5
11361 # Check whether --with-tdbsam or --without-tdbsam was given.
11362 if test "${with_tdbsam+set}" = set; then
11363 withval
="$with_tdbsam"
11366 echo "$ac_t""yes" 1>&6
11367 cat >> confdefs.h
<<\EOF
11368 #define WITH_TDB_SAM 1
11371 with_smbpasswd_sam
=no
11374 echo "$ac_t""no" 1>&6
11378 echo "$ac_t""no" 1>&6
11383 #################################################
11384 # check for a LDAP password database
11385 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11386 echo "configure:11387: checking whether to use LDAP SAM database" >&5
11387 # Check whether --with-ldapsam or --without-ldapsam was given.
11388 if test "${with_ldapsam+set}" = set; then
11389 withval
="$with_ldapsam"
11392 echo "$ac_t""yes" 1>&6
11393 cat >> confdefs.h
<<\EOF
11394 #define WITH_LDAP_SAM 1
11397 LIBS
="-lldap -llber -lresolv $LIBS"
11398 with_smbpasswd_sam
=no
11401 echo "$ac_t""no" 1>&6
11405 echo "$ac_t""no" 1>&6
11410 #################################################
11411 # check for a NISPLUS password database
11412 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11413 echo "configure:11414: checking whether to use NISPLUS SAM database" >&5
11414 # Check whether --with-nisplussam or --without-nisplussam was given.
11415 if test "${with_nisplussam+set}" = set; then
11416 withval
="$with_nisplussam"
11419 echo "$ac_t""yes" 1>&6
11420 cat >> confdefs.h
<<\EOF
11421 #define WITH_NISPLUS_SAM 1
11424 with_smbpasswd_sam
=no
11427 echo "$ac_t""no" 1>&6
11431 echo "$ac_t""no" 1>&6
11436 ################################################
11437 # This test should come last because the
11438 # smbpasswd SAM is only used if another format
11439 # has not been defined
11440 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11441 echo "configure:11442: checking whether to use traditional smbpasswd file" >&5
11442 if test $with_smbpasswd_sam = yes; then
11443 echo "$ac_t""yes" 1>&6
11444 cat >> confdefs.h
<<\EOF
11445 #define WITH_SMBPASSWD_SAM 1
11449 echo "$ac_t""no" 1>&6
11452 ########################################################################################
11454 ## END OF TESTS FOR SAM BACKENDS.
11456 ########################################################################################
11458 #################################################
11459 # check for a NISPLUS_HOME support
11460 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11461 echo "configure:11462: checking whether to use NISPLUS_HOME" >&5
11462 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11463 if test "${with_nisplus_home+set}" = set; then
11464 withval
="$with_nisplus_home"
11467 echo "$ac_t""yes" 1>&6
11468 cat >> confdefs.h
<<\EOF
11469 #define WITH_NISPLUS_HOME 1
11474 echo "$ac_t""no" 1>&6
11478 echo "$ac_t""no" 1>&6
11483 #################################################
11484 # check for the secure socket layer
11485 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11486 echo "configure:11487: checking whether to use SSL" >&5
11487 # Check whether --with-ssl or --without-ssl was given.
11488 if test "${with_ssl+set}" = set; then
11489 withval
="$with_ssl"
11492 echo "$ac_t""yes" 1>&6
11493 cat >> confdefs.h
<<\EOF
11497 withval
="/usr/local/ssl" # default
11499 if test "${with_sslinc+set}" = set; then
11501 withval
="$with_sslinc"
11504 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11505 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11508 CFLAGS
="-I${withval} $CFLAGS"
11514 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11518 if test "${with_ssllib+set}" = set; then
11520 withval
="$with_ssllib"
11523 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11524 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11527 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11533 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11537 LIBS
="-lssl -lcrypto $LIBS"
11539 # if test ! -d ${withval}; then
11540 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11544 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11548 echo "$ac_t""no" 1>&6
11552 echo "$ac_t""no" 1>&6
11557 #################################################
11558 # check for syslog logging
11559 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11560 echo "configure:11561: checking whether to use syslog logging" >&5
11561 # Check whether --with-syslog or --without-syslog was given.
11562 if test "${with_syslog+set}" = set; then
11563 withval
="$with_syslog"
11566 echo "$ac_t""yes" 1>&6
11567 cat >> confdefs.h
<<\EOF
11568 #define WITH_SYSLOG 1
11573 echo "$ac_t""no" 1>&6
11577 echo "$ac_t""no" 1>&6
11582 #################################################
11583 # check for a shared memory profiling support
11584 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11585 echo "configure:11586: checking whether to use profiling" >&5
11586 # Check whether --with-profiling-data or --without-profiling-data was given.
11587 if test "${with_profiling_data+set}" = set; then
11588 withval
="$with_profiling_data"
11591 echo "$ac_t""yes" 1>&6
11592 cat >> confdefs.h
<<\EOF
11593 #define WITH_PROFILE 1
11598 echo "$ac_t""no" 1>&6
11602 echo "$ac_t""no" 1>&6
11608 #################################################
11609 # check for experimental disk-quotas support
11610 QUOTAOBJS
=smbd
/noquotas.o
11612 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11613 echo "configure:11614: checking whether to support disk-quotas" >&5
11614 # Check whether --with-quotas or --without-quotas was given.
11615 if test "${with_quotas+set}" = set; then
11616 withval
="$with_quotas"
11619 echo "$ac_t""yes" 1>&6
11620 QUOTAOBJS
=smbd
/quotas.o
11623 # Check for kernel 2.4.x quota braindamage...
11624 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11625 echo "configure:11626: checking for linux 2.4.x quota braindamage.." >&5
11626 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11630 cat > conftest.
$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11634 #include <sys/types.h>
11635 #include <asm/types.h>
11636 #include <linux/quota.h>
11637 #include <mntent.h>
11638 #include <linux/unistd.h>
11640 struct mem_dqblk D;
11643 if { (eval echo configure
:11644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11645 samba_cv_linux_2_4_quota_braindamage
=yes
11647 echo "configure: failed program was:" >&5
11648 cat conftest.
$ac_ext >&5
11650 samba_cv_linux_2_4_quota_braindamage
=no
11655 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11656 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
11657 cat >> confdefs.h
<<\EOF
11658 #define LINUX_QUOTAS_2 1
11662 cat >> confdefs.h
<<\EOF
11663 #define LINUX_QUOTAS_1 1
11673 echo "$ac_t""no" 1>&6
11677 echo "$ac_t""no" 1>&6
11683 #################################################
11684 # check for experimental utmp accounting
11686 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11687 echo "configure:11688: checking whether to support utmp accounting" >&5
11688 # Check whether --with-utmp or --without-utmp was given.
11689 if test "${with_utmp+set}" = set; then
11690 withval
="$with_utmp"
11693 echo "$ac_t""yes" 1>&6
11694 cat >> confdefs.h
<<\EOF
11695 #define WITH_UTMP 1
11700 echo "$ac_t""no" 1>&6
11704 echo "$ac_t""no" 1>&6
11709 #################################################
11710 # check for MS Dfs support
11712 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11713 echo "configure:11714: checking whether to support Microsoft Dfs" >&5
11714 # Check whether --with-msdfs or --without-msdfs was given.
11715 if test "${with_msdfs+set}" = set; then
11716 withval
="$with_msdfs"
11719 echo "$ac_t""yes" 1>&6
11720 cat >> confdefs.h
<<\EOF
11721 #define WITH_MSDFS 1
11726 echo "$ac_t""no" 1>&6
11730 echo "$ac_t""no" 1>&6
11735 #################################################
11736 # check for Samba VFS support
11738 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11739 echo "configure:11740: checking whether to support the experimantal Samba vfs" >&5
11740 # Check whether --with-vfs or --without-vfs was given.
11741 if test "${with_vfs+set}" = set; then
11742 withval
="$with_vfs"
11745 echo "$ac_t""yes" 1>&6
11746 cat >> confdefs.h
<<\EOF
11752 echo "$ac_t""no" 1>&6
11756 echo "$ac_t""no" 1>&6
11761 #################################################
11762 # these tests are taken from the GNU fileutils package
11763 echo "checking how to get filesystem space usage" 1>&6
11764 echo "configure:11765: checking how to get filesystem space usage" >&5
11767 # Test for statvfs64.
11768 if test $space = no
; then
11770 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11771 echo "configure:11772: checking statvfs64 function (SVR4)" >&5
11772 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11775 if test "$cross_compiling" = yes; then
11776 fu_cv_sys_stat_statvfs64
=cross
11778 cat > conftest.
$ac_ext <<EOF
11779 #line 11780 "configure"
11780 #include "confdefs.h"
11782 #if defined(HAVE_UNISTD_H)
11783 #include <unistd.h>
11785 #include <sys/types.h>
11786 #include <sys/statvfs.h>
11789 struct statvfs64 fsd;
11790 exit (statvfs64 (".", &fsd));
11793 if { (eval echo configure
:11794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11795 fu_cv_sys_stat_statvfs64
=yes
11797 echo "configure: failed program was:" >&5
11798 cat conftest.
$ac_ext >&5
11800 fu_cv_sys_stat_statvfs64
=no
11807 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11808 if test $fu_cv_sys_stat_statvfs64 = yes; then
11810 cat >> confdefs.h
<<\EOF
11811 #define STAT_STATVFS64 1
11817 # Perform only the link test since it seems there are no variants of the
11818 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11819 # because that got a false positive on SCO OSR5. Adding the declaration
11820 # of a `struct statvfs' causes this test to fail (as it should) on such
11821 # systems. That system is reported to work fine with STAT_STATFS4 which
11822 # is what it gets when this test fails.
11823 if test $space = no
; then
11825 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11826 echo "configure:11827: checking statvfs function (SVR4)" >&5
11827 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11828 echo $ac_n "(cached) $ac_c" 1>&6
11830 cat > conftest.
$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 #include <sys/types.h>
11834 #include <sys/statvfs.h>
11836 struct statvfs fsd; statvfs (0, &fsd);
11839 if { (eval echo configure
:11840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11841 fu_cv_sys_stat_statvfs
=yes
11843 echo "configure: failed program was:" >&5
11844 cat conftest.
$ac_ext >&5
11846 fu_cv_sys_stat_statvfs
=no
11851 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11852 if test $fu_cv_sys_stat_statvfs = yes; then
11854 cat >> confdefs.h
<<\EOF
11855 #define STAT_STATVFS 1
11861 if test $space = no
; then
11862 # DEC Alpha running OSF/1
11863 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11864 echo "configure:11865: checking for 3-argument statfs function (DEC OSF/1)" >&5
11865 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11868 if test "$cross_compiling" = yes; then
11869 fu_cv_sys_stat_statfs3_osf1
=no
11871 cat > conftest.
$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11875 #include <sys/param.h>
11876 #include <sys/types.h>
11877 #include <sys/mount.h>
11882 exit (statfs (".", &fsd, sizeof (struct statfs)));
11885 if { (eval echo configure
:11886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11887 fu_cv_sys_stat_statfs3_osf1
=yes
11889 echo "configure: failed program was:" >&5
11890 cat conftest.
$ac_ext >&5
11892 fu_cv_sys_stat_statfs3_osf1
=no
11899 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11900 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11902 cat >> confdefs.h
<<\EOF
11903 #define STAT_STATFS3_OSF1 1
11909 if test $space = no
; then
11911 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11912 echo "configure:11913: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11913 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11914 echo $ac_n "(cached) $ac_c" 1>&6
11916 if test "$cross_compiling" = yes; then
11917 fu_cv_sys_stat_statfs2_bsize
=no
11919 cat > conftest.
$ac_ext <<EOF
11920 #line 11921 "configure"
11921 #include "confdefs.h"
11923 #ifdef HAVE_SYS_PARAM_H
11924 #include <sys/param.h>
11926 #ifdef HAVE_SYS_MOUNT_H
11927 #include <sys/mount.h>
11929 #ifdef HAVE_SYS_VFS_H
11930 #include <sys/vfs.h>
11936 exit (statfs (".", &fsd));
11939 if { (eval echo configure
:11940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11941 fu_cv_sys_stat_statfs2_bsize
=yes
11943 echo "configure: failed program was:" >&5
11944 cat conftest.
$ac_ext >&5
11946 fu_cv_sys_stat_statfs2_bsize
=no
11953 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11954 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11956 cat >> confdefs.h
<<\EOF
11957 #define STAT_STATFS2_BSIZE 1
11963 if test $space = no
; then
11965 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11966 echo "configure:11967: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11967 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11968 echo $ac_n "(cached) $ac_c" 1>&6
11970 if test "$cross_compiling" = yes; then
11971 fu_cv_sys_stat_statfs4
=no
11973 cat > conftest.
$ac_ext <<EOF
11974 #line 11975 "configure"
11975 #include "confdefs.h"
11976 #include <sys/types.h>
11977 #include <sys/statfs.h>
11981 exit (statfs (".", &fsd, sizeof fsd, 0));
11984 if { (eval echo configure
:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11986 fu_cv_sys_stat_statfs4
=yes
11988 echo "configure: failed program was:" >&5
11989 cat conftest.
$ac_ext >&5
11991 fu_cv_sys_stat_statfs4
=no
11998 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11999 if test $fu_cv_sys_stat_statfs4 = yes; then
12001 cat >> confdefs.h
<<\EOF
12002 #define STAT_STATFS4 1
12008 if test $space = no
; then
12009 # 4.4BSD and NetBSD
12010 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12011 echo "configure:12012: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12012 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12015 if test "$cross_compiling" = yes; then
12016 fu_cv_sys_stat_statfs2_fsize
=no
12018 cat > conftest.
$ac_ext <<EOF
12019 #line 12020 "configure"
12020 #include "confdefs.h"
12021 #include <sys/types.h>
12022 #ifdef HAVE_SYS_PARAM_H
12023 #include <sys/param.h>
12025 #ifdef HAVE_SYS_MOUNT_H
12026 #include <sys/mount.h>
12032 exit (statfs (".", &fsd));
12035 if { (eval echo configure
:12036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12037 fu_cv_sys_stat_statfs2_fsize
=yes
12039 echo "configure: failed program was:" >&5
12040 cat conftest.
$ac_ext >&5
12042 fu_cv_sys_stat_statfs2_fsize
=no
12049 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12050 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12052 cat >> confdefs.h
<<\EOF
12053 #define STAT_STATFS2_FSIZE 1
12059 if test $space = no
; then
12061 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12062 echo "configure:12063: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12063 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12066 if test "$cross_compiling" = yes; then
12067 fu_cv_sys_stat_fs_data
=no
12069 cat > conftest.
$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 #include <sys/types.h>
12073 #ifdef HAVE_SYS_PARAM_H
12074 #include <sys/param.h>
12076 #ifdef HAVE_SYS_MOUNT_H
12077 #include <sys/mount.h>
12079 #ifdef HAVE_SYS_FS_TYPES_H
12080 #include <sys/fs_types.h>
12084 struct fs_data fsd;
12085 /* Ultrix's statfs returns 1 for success,
12086 0 for not mounted, -1 for failure. */
12087 exit (statfs (".", &fsd) != 1);
12090 if { (eval echo configure
:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12092 fu_cv_sys_stat_fs_data
=yes
12094 echo "configure: failed program was:" >&5
12095 cat conftest.
$ac_ext >&5
12097 fu_cv_sys_stat_fs_data
=no
12104 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12105 if test $fu_cv_sys_stat_fs_data = yes; then
12107 cat >> confdefs.h
<<\EOF
12108 #define STAT_STATFS2_FS_DATA 1
12115 # As a gating factor for large file support, in order to
12116 # use <4GB files we must have the following minimal support
12118 # long long, and a 64 bit off_t or off64_t.
12119 # If we don't have all of these then disable large
12122 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12123 echo "configure:12124: checking checking if large file support can be enabled" >&5
12124 cat > conftest.
$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12128 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12129 #include <sys/types.h>
12138 if { (eval echo configure
:12139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12140 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12142 echo "configure: failed program was:" >&5
12143 cat conftest.
$ac_ext >&5
12145 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12148 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12149 echo "$ac_t""yes" 1>&6
12150 cat >> confdefs.h
<<\EOF
12151 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12155 echo "$ac_t""no" 1>&6
12158 # Check whether --with-spinlocks or --without-spinlocks was given.
12159 if test "${with_spinlocks+set}" = set; then
12160 withval
="$with_spinlocks"
12164 if test "x$with_spinlocks" = "xyes"; then
12165 cat >> confdefs.h
<<\EOF
12166 #define USE_SPINLOCKS 1
12170 case "$host_cpu" in
12172 cat >> confdefs.h
<<\EOF
12173 #define SPARC_SPINLOCKS 1
12178 i386|i486|i586|i686
)
12179 cat >> confdefs.h
<<\EOF
12180 #define INTEL_SPINLOCKS 1
12186 cat >> confdefs.h
<<\EOF
12187 #define MIPS_SPINLOCKS 1
12193 cat >> confdefs.h
<<\EOF
12194 #define POWERPC_SPINLOCKS 1
12201 #################################################
12202 # check for ACL support
12204 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12205 echo "configure:12206: checking whether to support ACLs" >&5
12206 # Check whether --with-acl-support or --without-acl-support was given.
12207 if test "${with_acl_support+set}" = set; then
12208 withval
="$with_acl_support"
12214 echo "$ac_t""Using UnixWare ACLs" 1>&6
12215 cat >> confdefs.h
<<\EOF
12216 #define HAVE_UNIXWARE_ACLS 1
12221 echo "$ac_t""Using solaris ACLs" 1>&6
12222 cat >> confdefs.h
<<\EOF
12223 #define HAVE_SOLARIS_ACLS 1
12228 echo "$ac_t""Using IRIX ACLs" 1>&6
12229 cat >> confdefs.h
<<\EOF
12230 #define HAVE_IRIX_ACLS 1
12235 echo "$ac_t""Using AIX ACLs" 1>&6
12236 cat >> confdefs.h
<<\EOF
12237 #define HAVE_AIX_ACLS 1
12242 echo "$ac_t""Using Tru64 ACLs" 1>&6
12243 cat >> confdefs.h
<<\EOF
12244 #define HAVE_TRU64_ACLS 1
12247 LIBS
="$LIBS -lpacl"
12250 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12251 echo "configure:12252: checking for acl_get_file in -lacl" >&5
12252 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12256 ac_save_LIBS
="$LIBS"
12258 cat > conftest.
$ac_ext <<EOF
12259 #line 12260 "configure"
12260 #include "confdefs.h"
12261 /* Override any gcc2 internal prototype to avoid an error. */
12262 /* We use char because int might match the return type of a gcc2
12263 builtin and then its argument prototype would still apply. */
12264 char acl_get_file();
12270 if { (eval echo configure
:12271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12272 eval "ac_cv_lib_$ac_lib_var=yes"
12274 echo "configure: failed program was:" >&5
12275 cat conftest.
$ac_ext >&5
12277 eval "ac_cv_lib_$ac_lib_var=no"
12280 LIBS
="$ac_save_LIBS"
12283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12284 echo "$ac_t""yes" 1>&6
12285 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12287 cat >> confdefs.h
<<EOF
12288 #define $ac_tr_lib 1
12294 echo "$ac_t""no" 1>&6
12297 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12298 echo "configure:12299: checking for ACL support" >&5
12299 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12300 echo $ac_n "(cached) $ac_c" 1>&6
12303 cat > conftest.
$ac_ext <<EOF
12304 #line 12305 "configure"
12305 #include "confdefs.h"
12306 #include <sys/types.h>
12307 #include <sys/acl.h>
12309 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12312 if { (eval echo configure
:12313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12314 samba_cv_HAVE_POSIX_ACLS
=yes
12316 echo "configure: failed program was:" >&5
12317 cat conftest.
$ac_ext >&5
12319 samba_cv_HAVE_POSIX_ACLS
=no
12324 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12325 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12326 echo "$ac_t""Using posix ACLs" 1>&6
12327 cat >> confdefs.h
<<\EOF
12328 #define HAVE_POSIX_ACLS 1
12331 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12332 echo "configure:12333: checking for acl_get_perm_np" >&5
12333 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12334 echo $ac_n "(cached) $ac_c" 1>&6
12337 cat > conftest.
$ac_ext <<EOF
12338 #line 12339 "configure"
12339 #include "confdefs.h"
12340 #include <sys/types.h>
12341 #include <sys/acl.h>
12343 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12346 if { (eval echo configure
:12347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12348 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12350 echo "configure: failed program was:" >&5
12351 cat conftest.
$ac_ext >&5
12353 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12358 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12359 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12360 cat >> confdefs.h
<<\EOF
12361 #define HAVE_ACL_GET_PERM_NP 1
12370 echo "$ac_t""no" 1>&6
12371 cat >> confdefs.h
<<\EOF
12372 #define HAVE_NO_ACLS 1
12378 cat >> confdefs.h
<<\EOF
12379 #define HAVE_NO_ACLS 1
12382 echo "$ac_t""no" 1>&6
12387 #################################################
12388 # check for the historical SAMBA installation
12390 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
12391 # Put all binaries under the /usr/local/samba/bin directory.
12395 #################################################
12396 # Check whether winbind is supported on this platform. If so we need to
12397 # build and install client programs (WINBIND_TARGETS), sbin programs
12398 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12400 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12401 echo "configure:12402: checking whether to build winbind" >&5
12403 # Initially, the value of $host_os decides whether winbind is supported
12411 winbind_no_reason
=", unsupported on $host_os"
12415 # Check the setting of --with-winbindd
12417 # Check whether --with-winbind or --without-winbind was given.
12418 if test "${with_winbind+set}" = set; then
12419 withval
="$with_winbind"
12433 # We need unix domain sockets for winbind
12435 if test x
"$HAVE_WINBIND" = x
"yes"; then
12436 if test x
"$samba_cv_unixsocket" = x
"no"; then
12437 winbind_no_reason
=", no unix domain socket support on $host_os"
12442 # Display test results
12444 if test x
"$HAVE_WINBIND" = x
"yes"; then
12446 echo "$ac_t""yes" 1>&6
12448 WINBIND_TARGETS
="\$(WINBIND_PROGS)"
12449 WINBIND_STARGETS
="\$(WINBIND_SPROGS)"
12450 WINBIND_LTARGETS
="\$(WINBIND_LPROGS)"
12452 case "$with_pam" in
12454 WINBIND_PAM_PROGS
="\$(WINBIND_PAM_PROGS)"
12458 echo "$ac_t""no$winbind_no_reason" 1>&6
12461 WINBIND_STARGETS
=""
12462 WINBIND_LTARGETS
=""
12463 WINBIND_PAM_PROGS
=""
12466 # Substitution time!
12473 #################################################
12474 # final configure stuff
12475 echo "checking configure summary"
12476 if test "$cross_compiling" = yes; then
12479 cat > conftest.
$ac_ext <<EOF
12480 #line 12481 "configure"
12481 #include "confdefs.h"
12482 #include "${srcdir-.}/tests/summary.c"
12484 if { (eval echo configure
:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12486 echo "configure OK";
12488 echo "configure: failed program was:" >&5
12489 cat conftest.
$ac_ext >&5
12491 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12501 cat > confcache
<<\EOF
12502 # This file is a shell script that caches the results of configure
12503 # tests run on this system so they can be shared between configure
12504 # scripts and configure runs. It is not useful on other systems.
12505 # If it contains results you don't want to keep, you may remove or edit it.
12507 # By default, configure uses ./config.cache as the cache file,
12508 # creating it if it does not exist already. You can give configure
12509 # the --cache-file=FILE option to use a different cache file; that is
12510 # what configure does when it calls configure scripts in
12511 # subdirectories, so they share the cache.
12512 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12513 # config.status only pays attention to the cache file if you give it the
12514 # --recheck option to rerun configure.
12517 # The following way of writing the cache mishandles newlines in values,
12518 # but we know of no workaround that is simple, portable, and efficient.
12519 # So, don't put newlines in cache variables' values.
12520 # Ultrix sh set writes to stderr and can't be redirected directly,
12521 # and sets the high bit in the cache file unless we assign to the vars.
12523 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12525 # `set' does not quote correctly, so add quotes (double-quote substitution
12526 # turns \\\\ into \\, and sed turns \\ into \).
12528 -e "s/'/'\\\\''/g" \
12529 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12532 # `set' quotes correctly as required by POSIX, so do not add quotes.
12533 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12536 if cmp -s $cache_file confcache
; then
12539 if test -w $cache_file; then
12540 echo "updating cache $cache_file"
12541 cat confcache
> $cache_file
12543 echo "not updating unwritable cache $cache_file"
12548 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12550 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12551 # Let make expand exec_prefix.
12552 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12554 # Any assignment to VPATH causes Sun make to only execute
12555 # the first set of double-colon rules, so remove it if not needed.
12556 # If there is a colon in the path, we need to keep it.
12557 if test "x$srcdir" = x.
; then
12558 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12561 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12563 DEFS
=-DHAVE_CONFIG_H
12565 # Without the "./", some shells look in PATH for config.status.
12566 : ${CONFIG_STATUS=./config.status}
12568 echo creating
$CONFIG_STATUS
12569 rm -f $CONFIG_STATUS
12570 cat > $CONFIG_STATUS <<EOF
12572 # Generated automatically by configure.
12573 # Run this file to recreate the current configuration.
12574 # This directory was configured as follows,
12575 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12577 # $0 $ac_configure_args
12579 # Compiler output produced by configure, useful for debugging
12580 # configure, is in ./config.log if it exists.
12582 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12585 case "\$ac_option" in
12586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12587 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12588 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12589 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12590 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12592 -help | --help | --hel | --he | --h)
12593 echo "\$ac_cs_usage"; exit 0 ;;
12594 *) echo "\$ac_cs_usage"; exit 1 ;;
12598 ac_given_srcdir=$srcdir
12599 ac_given_INSTALL="$INSTALL"
12601 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12603 cat >> $CONFIG_STATUS <<EOF
12605 # Protect against being on the right side of a sed subst in config.status.
12606 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12607 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12611 s%@CFLAGS@%$CFLAGS%g
12612 s%@CPPFLAGS@%$CPPFLAGS%g
12613 s%@CXXFLAGS@%$CXXFLAGS%g
12614 s%@FFLAGS@%$FFLAGS%g
12616 s%@LDFLAGS@%$LDFLAGS%g
12618 s%@exec_prefix@%$exec_prefix%g
12619 s%@prefix@%$prefix%g
12620 s%@program_transform_name@%$program_transform_name%g
12621 s%@bindir@%$bindir%g
12622 s%@sbindir@%$sbindir%g
12623 s%@libexecdir@%$libexecdir%g
12624 s%@datadir@%$datadir%g
12625 s%@sysconfdir@%$sysconfdir%g
12626 s%@sharedstatedir@%$sharedstatedir%g
12627 s%@localstatedir@%$localstatedir%g
12628 s%@libdir@%$libdir%g
12629 s%@includedir@%$includedir%g
12630 s%@oldincludedir@%$oldincludedir%g
12631 s%@infodir@%$infodir%g
12632 s%@mandir@%$mandir%g
12633 s%@codepagedir@%$codepagedir%g
12634 s%@configdir@%$configdir%g
12635 s%@lockdir@%$lockdir%g
12636 s%@logfilebase@%$logfilebase%g
12637 s%@privatedir@%$privatedir%g
12638 s%@swatdir@%$swatdir%g
12639 s%@RUNPROG@%$RUNPROG%g
12640 s%@MPROGS@%$MPROGS%g
12641 s%@LDSHFLAGS@%$LDSHFLAGS%g
12642 s%@HOST_OS@%$HOST_OS%g
12643 s%@PAM_MOD@%$PAM_MOD%g
12645 s%@WRAP32@%$WRAP32%g
12646 s%@PICFLAG@%$PICFLAG%g
12647 s%@PICSUFFIX@%$PICSUFFIX%g
12648 s%@SHLIBEXT@%$SHLIBEXT%g
12649 s%@BLDSHARED@%$BLDSHARED%g
12651 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12652 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12653 s%@INSTALL_DATA@%$INSTALL_DATA%g
12655 s%@BROKEN_CC@%$BROKEN_CC%g
12657 s%@host_alias@%$host_alias%g
12658 s%@host_cpu@%$host_cpu%g
12659 s%@host_vendor@%$host_vendor%g
12660 s%@host_os@%$host_os%g
12661 s%@target@%$target%g
12662 s%@target_alias@%$target_alias%g
12663 s%@target_cpu@%$target_cpu%g
12664 s%@target_vendor@%$target_vendor%g
12665 s%@target_os@%$target_os%g
12667 s%@build_alias@%$build_alias%g
12668 s%@build_cpu@%$build_cpu%g
12669 s%@build_vendor@%$build_vendor%g
12670 s%@build_os@%$build_os%g
12672 s%@LIBOBJS@%$LIBOBJS%g
12673 s%@TERMLIBS@%$TERMLIBS%g
12674 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12676 s%@QUOTAOBJS@%$QUOTAOBJS%g
12677 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12678 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12679 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12680 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12681 s%@builddir@%$builddir%g
12686 cat >> $CONFIG_STATUS <<\EOF
12688 # Split the substitutions into bite-sized pieces for seds with
12689 # small command number limits, like on Digital OSF/1 and HP-UX.
12690 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12691 ac_file
=1 # Number of current file.
12692 ac_beg
=1 # First line for current file.
12693 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12696 while $ac_more_lines; do
12697 if test $ac_beg -gt 1; then
12698 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12700 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12702 if test ! -s conftest.s
$ac_file; then
12703 ac_more_lines
=false
12704 rm -f conftest.s
$ac_file
12706 if test -z "$ac_sed_cmds"; then
12707 ac_sed_cmds
="sed -f conftest.s$ac_file"
12709 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12711 ac_file
=`expr $ac_file + 1`
12713 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12716 if test -z "$ac_sed_cmds"; then
12721 cat >> $CONFIG_STATUS <<EOF
12723 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12725 cat >> $CONFIG_STATUS <<\EOF
12726 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12729 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12730 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12731 *) ac_file_in
="${ac_file}.in" ;;
12734 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12736 # Remove last slash and all that follows it. Not all systems have dirname.
12737 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12738 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12739 # The file is in a subdirectory.
12740 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12741 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12742 # A "../" for each directory in $ac_dir_suffix.
12743 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12745 ac_dir_suffix
= ac_dots
=
12748 case "$ac_given_srcdir" in
12750 if test -z "$ac_dots"; then top_srcdir
=.
12751 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12752 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12753 *) # Relative path.
12754 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12755 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12758 case "$ac_given_INSTALL" in
12759 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12760 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12763 echo creating
"$ac_file"
12765 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12767 *Makefile
*) ac_comsub
="1i\\
12768 # $configure_input" ;;
12772 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12774 s%@configure_input@%$configure_input%g
12775 s%@srcdir@%$srcdir%g
12776 s%@top_srcdir@%$top_srcdir%g
12777 s%@INSTALL@%$INSTALL%g
12778 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12782 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12783 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12785 # ac_d sets the value in "#define NAME VALUE" lines.
12786 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12787 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12790 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12791 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12792 ac_uB
='\([ ]\)%\1#\2define\3'
12795 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12796 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12797 ac_eB
='$%\1#\2define\3'
12801 if test "${CONFIG_HEADERS+set}" != set; then
12803 cat >> $CONFIG_STATUS <<EOF
12804 CONFIG_HEADERS="include/config.h"
12806 cat >> $CONFIG_STATUS <<\EOF
12808 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12811 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12812 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12813 *) ac_file_in
="${ac_file}.in" ;;
12816 echo creating
$ac_file
12818 rm -f conftest.frag conftest.
in conftest.out
12819 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12820 cat $ac_file_inputs > conftest.
in
12824 # Transform confdefs.h into a sed script conftest.vals that substitutes
12825 # the proper values into config.h.in to produce config.h. And first:
12826 # Protect against being on the right side of a sed subst in config.status.
12827 # Protect against being in an unquoted here document in config.status.
12828 rm -f conftest.vals
12829 cat > conftest.hdr
<<\EOF
12832 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12836 sed -n -f conftest.hdr confdefs.h > conftest.vals
12839 # This sed command replaces #undef with comments. This is necessary, for
12840 # example, in the case of _POSIX_SOURCE, which is predefined and required
12841 # on some systems where configure will not decide to define it.
12842 cat >> conftest.vals <<\EOF
12843 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12846 # Break up conftest.vals because some shells have a limit on
12847 # the size of here documents, and old seds have small limits too.
12849 rm -f conftest.tail
12852 ac_lines=`grep -c . conftest.vals
`
12853 # grep -c gives empty output for an empty file on some AIX systems.
12854 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12855 # Write a limited-size here document to conftest.frag.
12856 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12857 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12859 sed -f conftest.frag conftest.in > conftest.out
12861 mv conftest.out conftest.in
12862 ' >> $CONFIG_STATUS
12863 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12864 rm -f conftest.vals
12865 mv conftest.tail conftest.vals
12867 rm -f conftest.vals
12869 cat >> $CONFIG_STATUS <<\EOF
12870 rm -f conftest.frag conftest.h
12871 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12872 cat conftest.in >> conftest.h
12874 if cmp -s $ac_file conftest.h 2>/dev/null; then
12875 echo "$ac_file is unchanged"
12878 # Remove last slash and all that follows it. Not all systems have dirname.
12879 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12880 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12881 # The file is in a subdirectory.
12882 test ! -d "$ac_dir" && mkdir "$ac_dir"
12885 mv conftest.h $ac_file
12890 cat >> $CONFIG_STATUS <<EOF
12893 cat >> $CONFIG_STATUS <<\EOF
12897 chmod +x $CONFIG_STATUS
12898 rm -fr confdefs* $ac_clean_files
12899 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1