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-libsmbclient Build the libsmbclient shared library (default=no)"
76 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
78 --with-acl-support Include ACL support (default=no)"
80 --with-winbind Build winbind (default, if supported by OS)"
82 # Initialize some variables set by options.
83 # The variables have the same names as the options, with
84 # dashes changed to underlines.
86 cache_file
=.
/config.cache
95 program_transform_name
=s
,x
,x
,
103 bindir
='${exec_prefix}/bin'
104 sbindir
='${exec_prefix}/sbin'
105 libexecdir
='${exec_prefix}/libexec'
106 datadir
='${prefix}/share'
107 sysconfdir
='${prefix}/etc'
108 sharedstatedir
='${prefix}/com'
109 localstatedir
='${prefix}/var'
110 libdir
='${exec_prefix}/lib'
111 includedir
='${prefix}/include'
112 oldincludedir
='/usr/include'
113 infodir
='${prefix}/info'
114 mandir
='${prefix}/man'
116 # Initialize some other variables.
119 SHELL
=${CONFIG_SHELL-/bin/sh}
120 # Maximum number of lines to put in a shell here document.
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
135 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 # Accept the important Cygnus configure options, so we can diagnose typos.
143 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
145 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
146 bindir
="$ac_optarg" ;;
148 -build |
--build |
--buil |
--bui |
--bu)
150 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
151 build
="$ac_optarg" ;;
153 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
154 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
155 ac_prev
=cache_file
;;
156 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
157 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
158 cache_file
="$ac_optarg" ;;
160 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
162 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
164 datadir
="$ac_optarg" ;;
166 -disable-* |
--disable-*)
167 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* |
--enable-*)
176 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
189 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
190 |
--exec |
--exe |
--ex)
191 ac_prev
=exec_prefix
;;
192 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
193 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
194 |
--exec=* |
--exe=* |
--ex=*)
195 exec_prefix
="$ac_optarg" ;;
197 -gas |
--gas |
--ga |
--g)
198 # Obsolete; use --with-gas.
201 -help |
--help |
--hel |
--he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --infodir=DIR info documentation in DIR [PREFIX/info]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
256 -host |
--host |
--hos |
--ho)
258 -host=* |
--host=* |
--hos=* |
--ho=*)
261 -includedir |
--includedir |
--includedi |
--included |
--include \
262 |
--includ |
--inclu |
--incl |
--inc)
263 ac_prev
=includedir
;;
264 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
265 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
266 includedir
="$ac_optarg" ;;
268 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
270 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
271 infodir
="$ac_optarg" ;;
273 -libdir |
--libdir |
--libdi |
--libd)
275 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
276 libdir
="$ac_optarg" ;;
278 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
279 |
--libexe |
--libex |
--libe)
280 ac_prev
=libexecdir
;;
281 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
282 |
--libexe=* |
--libex=* |
--libe=*)
283 libexecdir
="$ac_optarg" ;;
285 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
286 |
--localstate |
--localstat |
--localsta |
--localst \
287 |
--locals |
--local |
--loca |
--loc |
--lo)
288 ac_prev
=localstatedir
;;
289 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
290 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
291 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
292 localstatedir
="$ac_optarg" ;;
294 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
296 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
297 mandir
="$ac_optarg" ;;
300 # Obsolete; use --without-fp.
303 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
307 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
308 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
311 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
312 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
313 |
--oldin |
--oldi |
--old |
--ol |
--o)
314 ac_prev
=oldincludedir
;;
315 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
316 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
317 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
318 oldincludedir
="$ac_optarg" ;;
320 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
322 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
323 prefix
="$ac_optarg" ;;
325 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
326 |
--program-pre |
--program-pr |
--program-p)
327 ac_prev
=program_prefix
;;
328 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
329 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
330 program_prefix
="$ac_optarg" ;;
332 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
333 |
--program-suf |
--program-su |
--program-s)
334 ac_prev
=program_suffix
;;
335 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
336 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
337 program_suffix
="$ac_optarg" ;;
339 -program-transform-name |
--program-transform-name \
340 |
--program-transform-nam |
--program-transform-na \
341 |
--program-transform-n |
--program-transform- \
342 |
--program-transform |
--program-transfor \
343 |
--program-transfo |
--program-transf \
344 |
--program-trans |
--program-tran \
345 |
--progr-tra |
--program-tr |
--program-t)
346 ac_prev
=program_transform_name
;;
347 -program-transform-name=* |
--program-transform-name=* \
348 |
--program-transform-nam=* |
--program-transform-na=* \
349 |
--program-transform-n=* |
--program-transform-=* \
350 |
--program-transform=* |
--program-transfor=* \
351 |
--program-transfo=* |
--program-transf=* \
352 |
--program-trans=* |
--program-tran=* \
353 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
354 program_transform_name
="$ac_optarg" ;;
356 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
357 |
-silent |
--silent |
--silen |
--sile |
--sil)
360 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
362 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
364 sbindir
="$ac_optarg" ;;
366 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
367 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
368 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
370 ac_prev
=sharedstatedir
;;
371 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
372 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
373 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
375 sharedstatedir
="$ac_optarg" ;;
377 -site |
--site |
--sit)
379 -site=* |
--site=* |
--sit=*)
382 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
384 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
385 srcdir
="$ac_optarg" ;;
387 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
388 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
389 ac_prev
=sysconfdir
;;
390 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
391 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
392 sysconfdir
="$ac_optarg" ;;
394 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
396 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
397 target
="$ac_optarg" ;;
399 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
402 -version |
--version |
--versio |
--versi |
--vers)
403 echo "configure generated by autoconf version 2.13"
407 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* |
--without-*)
420 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package
=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}=no" ;;
429 # Obsolete; use --with-x.
432 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
433 |
--x-incl |
--x-inc |
--x-in |
--x-i)
434 ac_prev
=x_includes
;;
435 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
436 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
437 x_includes
="$ac_optarg" ;;
439 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
440 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
441 ac_prev
=x_libraries
;;
442 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
443 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
444 x_libraries
="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE
; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
494 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
495 |
--no-cr |
--no-c) ;;
496 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
497 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
498 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest
* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file
=include
/includes.h
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted
=yes
526 # Try the directory containing this script, then its parent.
528 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
531 if test ! -r $srcdir/$ac_unique_file; then
535 ac_srcdir_defaulted
=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE
; then
549 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
551 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file
in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
565 echo "creating cache $cache_file"
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp
='$CPP $CPPFLAGS'
572 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling
=$ac_cv_prog_cc_cross
578 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
579 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
580 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
587 ac_n
= ac_c
='\c' ac_t
=
593 #################################################
594 # Directory handling stuff to support both the
595 # legacy SAMBA directories and FHS compliant
599 # Check whether --with-fhs or --without-fhs was given.
600 if test "${with_fhs+set}" = set; then
602 codepagedir
="\$(DATADIR)/samba/codepages"
603 configdir
="${sysconfdir}/samba"
604 lockdir
="\${VARDIR}/cache/samba"
605 logfilebase
="\${VARDIR}/log/samba"
606 privatedir
="\${CONFIGDIR}/private"
607 swatdir
="\${DATADIR}/samba/swat"
609 codepagedir
="\$(LIBDIR)/codepages"
610 configdir
="\$(LIBDIR)"
611 lockdir
="\$(VARDIR)/locks"
612 logfilebase
="\$(VARDIR)"
613 privatedir
="\${prefix}/private"
614 swatdir
="\${prefix}/swat"
618 #################################################
619 # set private directory location
620 # Check whether --with-privatedir or --without-privatedir was given.
621 if test "${with_privatedir+set}" = set; then
622 withval
="$with_privatedir"
626 # Just in case anybody calls it without argument
628 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
631 privatedir
="$withval"
637 #################################################
638 # set lock directory location
639 # Check whether --with-lockdir or --without-lockdir was given.
640 if test "${with_lockdir+set}" = set; then
641 withval
="$with_lockdir"
645 # Just in case anybody calls it without argument
647 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
656 #################################################
657 # set SWAT directory location
658 # Check whether --with-swatdir or --without-swatdir was given.
659 if test "${with_swatdir+set}" = set; then
660 withval
="$with_swatdir"
664 # Just in case anybody does it
666 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
675 #################################################
676 # set configuration directory location
677 # Check whether --with-configdir or --without-configdir was given.
678 if test "${with_configdir+set}" = set; then
679 withval
="$with_configdir"
683 # Just in case anybody does it
685 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
694 #################################################
695 # set codepage directory location
696 # Check whether --with-codepagedir or --without-codepagedir was given.
697 if test "${with_codepagedir+set}" = set; then
698 withval
="$with_codepagedir"
702 # Just in case anybody does it
704 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
707 codepagedir
="$withval"
740 # compile with optimization and without debugging by default
741 CFLAGS
="-O ${CFLAGS}"
743 # Check whether --enable-debug or --disable-debug was given.
744 if test "${enable_debug+set}" = set; then
745 enableval
="$enable_debug"
746 if eval "test x$enable_debug = xyes"; then
747 CFLAGS
="${CFLAGS} -g"
754 # Extract the first word of "gcc", so it can be a program name with args.
755 set dummy gcc
; ac_word
=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC
="$CC" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
766 for ac_dir
in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir
=.
768 if test -f $ac_dir/$ac_word; then
777 if test -n "$CC"; then
778 echo "$ac_t""$CC" 1>&6
780 echo "$ac_t""no" 1>&6
783 if test -z "$CC"; then
784 # Extract the first word of "cc", so it can be a program name with args.
785 set dummy cc
; ac_word
=$2
786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787 echo "configure:788: checking for $ac_word" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 if test -n "$CC"; then
792 ac_cv_prog_CC
="$CC" # Let the user override the test.
794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
797 for ac_dir
in $ac_dummy; do
798 test -z "$ac_dir" && ac_dir
=.
799 if test -f $ac_dir/$ac_word; then
800 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
809 if test $ac_prog_rejected = yes; then
810 # We found a bogon in the path, so make sure we never use it.
811 set dummy
$ac_cv_prog_CC
813 if test $# -gt 0; then
814 # We chose a different compiler from the bogus one.
815 # However, it has the same basename, so the bogon will be chosen
816 # first if we set CC to just the basename; use the full file name.
818 set dummy
"$ac_dir/$ac_word" "$@"
826 if test -n "$CC"; then
827 echo "$ac_t""$CC" 1>&6
829 echo "$ac_t""no" 1>&6
832 if test -z "$CC"; then
835 # Extract the first word of "cl", so it can be a program name with args.
836 set dummy cl
; ac_word
=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$CC"; then
843 ac_cv_prog_CC
="$CC" # Let the user override the test.
845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
847 for ac_dir
in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir
=.
849 if test -f $ac_dir/$ac_word; then
858 if test -n "$CC"; then
859 echo "$ac_t""$CC" 1>&6
861 echo "$ac_t""no" 1>&6
866 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
869 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
870 echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874 ac_cpp
='$CPP $CPPFLAGS'
875 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877 cross_compiling
=$ac_cv_prog_cc_cross
879 cat > conftest.
$ac_ext << EOF
881 #line 882 "configure"
882 #include "confdefs.h"
886 if { (eval echo configure
:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
887 ac_cv_prog_cc_works
=yes
888 # If we can't run a trivial program, we are probably using a cross compiler.
889 if (.
/conftest
; exit) 2>/dev
/null
; then
890 ac_cv_prog_cc_cross
=no
892 ac_cv_prog_cc_cross
=yes
895 echo "configure: failed program was:" >&5
896 cat conftest.
$ac_ext >&5
897 ac_cv_prog_cc_works
=no
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp
='$CPP $CPPFLAGS'
903 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling
=$ac_cv_prog_cc_cross
907 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
908 if test $ac_cv_prog_cc_works = no
; then
909 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
911 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
912 echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
913 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
914 cross_compiling
=$ac_cv_prog_cc_cross
916 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
917 echo "configure:918: checking whether we are using GNU C" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 cat > conftest.c
<<EOF
926 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
933 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
935 if test $ac_cv_prog_gcc = yes; then
941 ac_test_CFLAGS
="${CFLAGS+set}"
942 ac_save_CFLAGS
="$CFLAGS"
944 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
945 echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 echo 'void f(){}' > conftest.c
950 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
959 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
960 if test "$ac_test_CFLAGS" = set; then
961 CFLAGS
="$ac_save_CFLAGS"
962 elif test $ac_cv_prog_cc_g = yes; then
963 if test "$GCC" = yes; then
969 if test "$GCC" = yes; then
977 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
978 if test -f $ac_dir/install-sh
; then
980 ac_install_sh
="$ac_aux_dir/install-sh -c"
982 elif test -f $ac_dir/install.sh
; then
984 ac_install_sh
="$ac_aux_dir/install.sh -c"
988 if test -z "$ac_aux_dir"; then
989 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
991 ac_config_guess
=$ac_aux_dir/config.guess
992 ac_config_sub
=$ac_aux_dir/config.sub
993 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
995 # Find a good install program. We prefer a C program (faster),
996 # so one script is as good as another. But avoid the broken or
997 # incompatible versions:
998 # SysV /etc/install, /usr/sbin/install
999 # SunOS /usr/etc/install
1000 # IRIX /sbin/install
1002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1005 # ./install, which can be erroneously created by make from ./install.sh.
1006 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1007 echo "configure:1008: checking for a BSD compatible install" >&5
1008 if test -z "$INSTALL"; then
1009 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1013 for ac_dir
in $PATH; do
1014 # Account for people who put trailing slashes in PATH elements.
1016 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1018 # OSF1 and SCO ODT 3.0 have their own names for install.
1019 # Don't use installbsd from OSF since it installs stuff as root
1021 for ac_prog
in ginstall scoinst
install; do
1022 if test -f $ac_dir/$ac_prog; then
1023 if test $ac_prog = install &&
1024 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1025 # AIX install. It has an incompatible calling convention.
1028 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1039 if test "${ac_cv_path_install+set}" = set; then
1040 INSTALL
="$ac_cv_path_install"
1042 # As a last resort, use the slow shell script. We don't cache a
1043 # path for INSTALL within a source directory, because that will
1044 # break other packages using the cache if that directory is
1045 # removed, or if the path is relative.
1046 INSTALL
="$ac_install_sh"
1049 echo "$ac_t""$INSTALL" 1>&6
1051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1052 # It thinks the first close brace ends the variable substitution.
1053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1057 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1059 for ac_prog
in mawk gawk nawk
awk
1061 # Extract the first word of "$ac_prog", so it can be a program name with args.
1062 set dummy
$ac_prog; ac_word
=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$AWK"; then
1069 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1073 for ac_dir
in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir
=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_AWK
="$ac_prog"
1083 AWK
="$ac_cv_prog_AWK"
1084 if test -n "$AWK"; then
1085 echo "$ac_t""$AWK" 1>&6
1087 echo "$ac_t""no" 1>&6
1090 test -n "$AWK" && break
1094 if test "x$CC" != xcc
; then
1095 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1096 echo "configure:1097: checking whether $CC and cc understand -c and -o together" >&5
1098 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether cc understands -c and -o together" >&5
1101 set dummy
$CC; ac_cc
="`echo $2 |
1102 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1103 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 echo 'foo(){}' > conftest.c
1107 # Make sure it works both with $CC and with simple cc.
1108 # We do the test twice because some compilers refuse to overwrite an
1109 # existing .o file with -o, though they will create one.
1110 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1111 if { (eval echo configure
:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1112 test -f conftest.o
&& { (eval echo configure
:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1114 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1115 if test "x$CC" != xcc
; then
1116 # Test first that cc exists at all.
1117 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1118 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1119 if { (eval echo configure
:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1120 test -f conftest.o
&& { (eval echo configure
:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1125 # cc exists but doesn't like -o.
1126 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1131 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1136 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1137 echo "$ac_t""yes" 1>&6
1139 echo "$ac_t""no" 1>&6
1140 cat >> confdefs.h
<<\EOF
1141 #define NO_MINUS_C_MINUS_O 1
1146 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1153 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1154 echo "configure:1155: checking that the C compiler understands volatile" >&5
1155 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1159 cat > conftest.
$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1162 #include <sys/types.h>
1167 if { (eval echo configure
:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1169 samba_cv_volatile
=yes
1171 echo "configure: failed program was:" >&5
1172 cat conftest.
$ac_ext >&5
1174 samba_cv_volatile
=no
1179 echo "$ac_t""$samba_cv_volatile" 1>&6
1180 if test x
"$samba_cv_volatile" = x
"yes"; then
1181 cat >> confdefs.h
<<\EOF
1182 #define HAVE_VOLATILE 1
1190 # Do some error checking and defaulting for the host and target type.
1192 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1195 # 1. You are not allowed to specify --host, --target, and nonopt at the
1197 # 2. Host defaults to nonopt.
1198 # 3. If nonopt is not specified, then host defaults to the current host,
1199 # as determined by config.guess.
1200 # 4. Target and build default to nonopt.
1201 # 5. If nonopt is not specified, then target and build default to host.
1203 # The aliases save the names the user supplied, while $host etc.
1204 # will get canonicalized.
1205 case $host---$target---$nonopt in
1206 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1207 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1211 # Make sure we can run config.sub.
1212 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1213 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1216 echo $ac_n "checking host system type""... $ac_c" 1>&6
1217 echo "configure:1218: checking host system type" >&5
1220 case "$host_alias" in
1224 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1225 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1227 *) host_alias
=$nonopt ;;
1231 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1232 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1233 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1234 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1235 echo "$ac_t""$host" 1>&6
1237 echo $ac_n "checking target system type""... $ac_c" 1>&6
1238 echo "configure:1239: checking target system type" >&5
1240 target_alias
=$target
1241 case "$target_alias" in
1244 NONE
) target_alias
=$host_alias ;;
1245 *) target_alias
=$nonopt ;;
1249 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1250 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1251 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1252 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1253 echo "$ac_t""$target" 1>&6
1255 echo $ac_n "checking build system type""... $ac_c" 1>&6
1256 echo "configure:1257: checking build system type" >&5
1259 case "$build_alias" in
1262 NONE
) build_alias
=$host_alias ;;
1263 *) build_alias
=$nonopt ;;
1267 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1268 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$ac_t""$build" 1>&6
1273 test "$host_alias" != "$target_alias" &&
1274 test "$program_prefix$program_suffix$program_transform_name" = \
1276 program_prefix
=${target_alias}-
1280 *irix6
*) cat >> confdefs.h
<<\EOF
1281 #include <standards.h>
1289 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1290 echo "configure:1291: checking config.cache system type" >&5
1291 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1292 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1293 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1294 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1295 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1296 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1297 echo "$ac_t""different" 1>&6
1298 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1300 echo "$ac_t""same" 1>&6
1302 ac_cv_host_system_type
="$host"
1303 ac_cv_build_system_type
="$build"
1304 ac_cv_target_system_type
="$target"
1308 # Config CPPFLAG settings for strange OS's that must be set
1309 # before other tests.
1312 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1314 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1315 echo "configure:1316: checking whether ${CC-cc} accepts -Ae" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 echo 'void f(){}' > conftest.c
1320 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1321 ac_cv_prog_cc_Ae
=yes
1329 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1330 # mmap on HPUX is completely broken...
1331 cat >> confdefs.h
<<\EOF
1332 #define MMAP_BLACKLIST 1
1335 if test $ac_cv_prog_cc_Ae = yes; then
1336 CPPFLAGS
="$CPPFLAGS -Ae"
1339 # Defines needed for HPUX support.
1340 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1341 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1345 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1346 cat >> confdefs.h
<<\EOF
1347 #define USE_BOTH_CRYPT_CALLS 1
1352 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1353 cat >> confdefs.h
<<\EOF
1354 #define USE_BOTH_CRYPT_CALLS 1
1361 # AIX4.x doesn't even admit to having large
1362 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1365 echo "$ac_t""enabling large file support" 1>&6
1366 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1369 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1370 # to the existance of large files..
1371 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1372 # recommendations on large file support, however it makes the
1373 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1374 # recommendation makes the compile fail on gcc2.7. JRA.
1378 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1379 echo "$ac_t""no large file support" 1>&6
1382 echo "$ac_t""enabling large file support" 1>&6
1383 if test "$ac_cv_prog_gcc" = yes; then
1384 ${CC-cc} -v >conftest.c
2>&1
1385 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1387 case "$ac_cv_gcc_compiler_version_number" in
1388 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1389 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1392 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1396 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1402 # Tests needed for SINIX large file support.
1405 if test $host = mips-sni-sysv4
; then
1406 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1407 echo "configure:1408: checking for LFS support" >&5
1408 old_CPPFLAGS
="$CPPFLAGS"
1409 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1410 if test "$cross_compiling" = yes; then
1411 SINIX_LFS_SUPPORT
=cross
1413 cat > conftest.
$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1419 #if _LFS64_LARGEFILE == 1
1426 if { (eval echo configure
:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1428 SINIX_LFS_SUPPORT
=yes
1430 echo "configure: failed program was:" >&5
1431 cat conftest.
$ac_ext >&5
1433 SINIX_LFS_SUPPORT
=no
1438 CPPFLAGS
="$old_CPPFLAGS"
1439 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1440 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1441 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1442 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1443 LIBS
="`getconf LFS64_LIBS` $LIBS"
1445 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1449 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1452 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1453 echo "configure:1454: checking for LFS support" >&5
1454 old_CPPFLAGS
="$CPPFLAGS"
1455 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1456 if test "$cross_compiling" = yes; then
1457 LINUX_LFS_SUPPORT
=cross
1459 cat > conftest.
$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1464 #include <sys/utsname.h>
1466 #if _LFS64_LARGEFILE == 1
1471 /* Ensure this is glibc 2.2 or higher */
1472 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1473 int libc_major = __GLIBC__;
1474 int libc_minor = __GLIBC_MINOR__;
1482 /* Ensure this is kernel 2.4 or higher */
1485 release = uts.release;
1486 major = atoi(strsep(&release, "."));
1487 minor = atoi(strsep(&release, "."));
1489 if (major > 2 || (major == 2 && minor > 3))
1498 if { (eval echo configure
:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1500 LINUX_LFS_SUPPORT
=yes
1502 echo "configure: failed program was:" >&5
1503 cat conftest.
$ac_ext >&5
1505 LINUX_LFS_SUPPORT
=no
1510 CPPFLAGS
="$old_CPPFLAGS"
1511 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1512 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1514 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1518 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1519 echo "configure:1520: checking for LFS support" >&5
1520 old_CPPFLAGS
="$CPPFLAGS"
1521 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1522 if test "$cross_compiling" = yes; then
1523 GLIBC_LFS_SUPPORT
=cross
1525 cat > conftest.
$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1531 #if _LFS64_LARGEFILE == 1
1538 if { (eval echo configure
:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1540 GLIBC_LFS_SUPPORT
=yes
1542 echo "configure: failed program was:" >&5
1543 cat conftest.
$ac_ext >&5
1545 GLIBC_LFS_SUPPORT
=no
1550 CPPFLAGS
="$old_CPPFLAGS"
1551 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1552 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1554 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1559 echo $ac_n "checking for inline""... $ac_c" 1>&6
1560 echo "configure:1561: checking for inline" >&5
1561 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1565 for ac_kw
in inline __inline__ __inline
; do
1566 cat > conftest.
$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1574 if { (eval echo configure
:1575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1576 ac_cv_c_inline
=$ac_kw; break
1578 echo "configure: failed program was:" >&5
1579 cat conftest.
$ac_ext >&5
1586 echo "$ac_t""$ac_cv_c_inline" 1>&6
1587 case "$ac_cv_c_inline" in
1589 no
) cat >> confdefs.h
<<\EOF
1593 *) cat >> confdefs.h
<<EOF
1594 #define inline $ac_cv_c_inline
1599 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1600 echo "configure:1601: checking how to run the C preprocessor" >&5
1601 # On Suns, sometimes $CPP names a directory.
1602 if test -n "$CPP" && test -d "$CPP"; then
1605 if test -z "$CPP"; then
1606 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 # This must be in double quotes, not single quotes, because CPP may get
1610 # substituted into the Makefile and "${CC-cc}" will confuse make.
1612 # On the NeXT, cc -E runs the code through the compiler's parser,
1613 # not just through cpp.
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1620 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1621 { (eval echo configure
:1622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1622 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1623 if test -z "$ac_err"; then
1627 echo "configure: failed program was:" >&5
1628 cat conftest.
$ac_ext >&5
1630 CPP
="${CC-cc} -E -traditional-cpp"
1631 cat > conftest.
$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1637 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638 { (eval echo configure
:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640 if test -z "$ac_err"; then
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 CPP
="${CC-cc} -nologo -E"
1648 cat > conftest.
$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1654 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1655 { (eval echo configure
:1656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1656 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1657 if test -z "$ac_err"; then
1661 echo "configure: failed program was:" >&5
1662 cat conftest.
$ac_ext >&5
1671 ac_cv_prog_CPP
="$CPP"
1673 CPP
="$ac_cv_prog_CPP"
1675 ac_cv_prog_CPP
="$CPP"
1677 echo "$ac_t""$CPP" 1>&6
1679 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1680 echo "configure:1681: checking for ANSI C header files" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1692 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1693 { (eval echo configure
:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1694 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1695 if test -z "$ac_err"; then
1697 ac_cv_header_stdc
=yes
1700 echo "configure: failed program was:" >&5
1701 cat conftest.
$ac_ext >&5
1703 ac_cv_header_stdc
=no
1707 if test $ac_cv_header_stdc = yes; then
1708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1709 cat > conftest.
$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715 egrep "memchr" >/dev
/null
2>&1; then
1719 ac_cv_header_stdc
=no
1725 if test $ac_cv_header_stdc = yes; then
1726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1733 egrep "free" >/dev
/null
2>&1; then
1737 ac_cv_header_stdc
=no
1743 if test $ac_cv_header_stdc = yes; then
1744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1745 if test "$cross_compiling" = yes; then
1748 cat > conftest.
$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1752 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1753 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1755 int main () { int i; for (i = 0; i < 256; i++)
1756 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1760 if { (eval echo configure
:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1764 echo "configure: failed program was:" >&5
1765 cat conftest.
$ac_ext >&5
1767 ac_cv_header_stdc
=no
1775 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1776 if test $ac_cv_header_stdc = yes; then
1777 cat >> confdefs.h
<<\EOF
1778 #define STDC_HEADERS 1
1784 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1786 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1787 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_hdr that defines DIR" >&5
1789 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.
$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 #include <sys/types.h>
1801 if { (eval echo configure
:1802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1803 eval "ac_cv_header_dirent_$ac_safe=yes"
1805 echo "configure: failed program was:" >&5
1806 cat conftest.
$ac_ext >&5
1808 eval "ac_cv_header_dirent_$ac_safe=no"
1812 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1813 echo "$ac_t""yes" 1>&6
1814 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1815 cat >> confdefs.h
<<EOF
1816 #define $ac_tr_hdr 1
1818 ac_header_dirent
=$ac_hdr; break
1820 echo "$ac_t""no" 1>&6
1823 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1824 if test $ac_header_dirent = dirent.h
; then
1825 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1826 echo "configure:1827: checking for opendir in -ldir" >&5
1827 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 ac_save_LIBS
="$LIBS"
1833 cat > conftest.
$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1845 if { (eval echo configure
:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1847 eval "ac_cv_lib_$ac_lib_var=yes"
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1852 eval "ac_cv_lib_$ac_lib_var=no"
1855 LIBS
="$ac_save_LIBS"
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1862 echo "$ac_t""no" 1>&6
1866 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1867 echo "configure:1868: checking for opendir in -lx" >&5
1868 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 ac_save_LIBS
="$LIBS"
1874 cat > conftest.
$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1886 if { (eval echo configure
:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1890 echo "configure: failed program was:" >&5
1891 cat conftest.
$ac_ext >&5
1893 eval "ac_cv_lib_$ac_lib_var=no"
1896 LIBS
="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1903 echo "$ac_t""no" 1>&6
1908 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1909 echo "configure:1910: checking whether time.h and sys/time.h may both be included" >&5
1910 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 #include <sys/types.h>
1917 #include <sys/time.h>
1923 if { (eval echo configure
:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1925 ac_cv_header_time
=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1930 ac_cv_header_time
=no
1935 echo "$ac_t""$ac_cv_header_time" 1>&6
1936 if test $ac_cv_header_time = yes; then
1937 cat >> confdefs.h
<<\EOF
1938 #define TIME_WITH_SYS_TIME 1
1943 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1944 echo "configure:1945: checking for sys/wait.h that is POSIX.1 compatible" >&5
1945 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 cat > conftest.
$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 #include <sys/types.h>
1952 #include <sys/wait.h>
1954 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1957 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1962 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1965 if { (eval echo configure
:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1967 ac_cv_header_sys_wait_h
=yes
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1972 ac_cv_header_sys_wait_h
=no
1977 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1978 if test $ac_cv_header_sys_wait_h = yes; then
1979 cat >> confdefs.h
<<\EOF
1980 #define HAVE_SYS_WAIT_H 1
1985 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1987 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_hdr" >&5
1990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 cat > conftest.
$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1998 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999 { (eval echo configure
:2000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2001 if test -z "$ac_err"; then
2003 eval "ac_cv_header_$ac_safe=yes"
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2009 eval "ac_cv_header_$ac_safe=no"
2013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2016 cat >> confdefs.h
<<EOF
2017 #define $ac_tr_hdr 1
2021 echo "$ac_t""no" 1>&6
2025 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2027 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_hdr" >&5
2030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.
$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2038 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2039 { (eval echo configure
:2040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2040 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2041 if test -z "$ac_err"; then
2043 eval "ac_cv_header_$ac_safe=yes"
2046 echo "configure: failed program was:" >&5
2047 cat conftest.
$ac_ext >&5
2049 eval "ac_cv_header_$ac_safe=no"
2053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2056 cat >> confdefs.h
<<EOF
2057 #define $ac_tr_hdr 1
2061 echo "$ac_t""no" 1>&6
2065 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2067 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_hdr" >&5
2070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2078 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2079 { (eval echo configure
:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2080 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2081 if test -z "$ac_err"; then
2083 eval "ac_cv_header_$ac_safe=yes"
2086 echo "configure: failed program was:" >&5
2087 cat conftest.
$ac_ext >&5
2089 eval "ac_cv_header_$ac_safe=no"
2093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2096 cat >> confdefs.h
<<EOF
2097 #define $ac_tr_hdr 1
2101 echo "$ac_t""no" 1>&6
2105 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2107 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2109 echo "configure:2110: checking for $ac_hdr" >&5
2110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.
$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2118 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2119 { (eval echo configure
:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2120 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2121 if test -z "$ac_err"; then
2123 eval "ac_cv_header_$ac_safe=yes"
2126 echo "configure: failed program was:" >&5
2127 cat conftest.
$ac_ext >&5
2129 eval "ac_cv_header_$ac_safe=no"
2133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2134 echo "$ac_t""yes" 1>&6
2135 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2136 cat >> confdefs.h
<<EOF
2137 #define $ac_tr_hdr 1
2141 echo "$ac_t""no" 1>&6
2145 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
2147 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_hdr" >&5
2150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.
$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2158 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2159 { (eval echo configure
:2160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2160 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2161 if test -z "$ac_err"; then
2163 eval "ac_cv_header_$ac_safe=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.
$ac_ext >&5
2169 eval "ac_cv_header_$ac_safe=no"
2173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2175 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2176 cat >> confdefs.h
<<EOF
2177 #define $ac_tr_hdr 1
2181 echo "$ac_t""no" 1>&6
2185 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2187 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_hdr" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2198 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure
:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.
$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2216 cat >> confdefs.h
<<EOF
2217 #define $ac_tr_hdr 1
2221 echo "$ac_t""no" 1>&6
2225 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2227 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_hdr" >&5
2230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2238 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure
:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241 if test -z "$ac_err"; then
2243 eval "ac_cv_header_$ac_safe=yes"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.
$ac_ext >&5
2249 eval "ac_cv_header_$ac_safe=no"
2253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2256 cat >> confdefs.h
<<EOF
2257 #define $ac_tr_hdr 1
2261 echo "$ac_t""no" 1>&6
2265 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h
2267 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_hdr" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.
$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure
:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2283 eval "ac_cv_header_$ac_safe=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2289 eval "ac_cv_header_$ac_safe=no"
2293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2296 cat >> confdefs.h
<<EOF
2297 #define $ac_tr_hdr 1
2301 echo "$ac_t""no" 1>&6
2307 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2308 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2320 if { (eval echo configure
:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2322 ac_cv_header_shadow_h
=yes
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 ac_cv_header_shadow_h
=no
2330 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2331 cat >> confdefs.h
<<\EOF
2332 #define HAVE_SHADOW_H 1
2338 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2340 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_hdr" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.
$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2351 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure
:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2356 eval "ac_cv_header_$ac_safe=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 eval "ac_cv_header_$ac_safe=no"
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2369 cat >> confdefs.h
<<EOF
2370 #define $ac_tr_hdr 1
2374 echo "$ac_t""no" 1>&6
2378 for ac_hdr
in nss.h nss_common.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2380 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_hdr" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.
$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2391 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2392 { (eval echo configure
:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2393 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2394 if test -z "$ac_err"; then
2396 eval "ac_cv_header_$ac_safe=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2402 eval "ac_cv_header_$ac_safe=no"
2406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2409 cat >> confdefs.h
<<EOF
2410 #define $ac_tr_hdr 1
2414 echo "$ac_t""no" 1>&6
2418 for ac_hdr
in stropts.h poll.h
2420 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2431 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure
:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h
<<EOF
2450 #define $ac_tr_hdr 1
2454 echo "$ac_t""no" 1>&6
2458 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2460 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_hdr" >&5
2463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure
:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2476 eval "ac_cv_header_$ac_safe=yes"
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 eval "ac_cv_header_$ac_safe=no"
2486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2489 cat >> confdefs.h
<<EOF
2490 #define $ac_tr_hdr 1
2494 echo "$ac_t""no" 1>&6
2498 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2500 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_hdr" >&5
2503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 cat > conftest.
$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2511 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure
:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2514 if test -z "$ac_err"; then
2516 eval "ac_cv_header_$ac_safe=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.
$ac_ext >&5
2522 eval "ac_cv_header_$ac_safe=no"
2526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2529 cat >> confdefs.h
<<EOF
2530 #define $ac_tr_hdr 1
2534 echo "$ac_t""no" 1>&6
2539 # For experimental utmp support (lastlog on some BSD-like systems)
2540 for ac_hdr
in utmp.h utmpx.h lastlog.h
2542 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure
:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h
<<EOF
2572 #define $ac_tr_hdr 1
2576 echo "$ac_t""no" 1>&6
2581 # For quotas on Veritas VxFS filesystems
2582 for ac_hdr
in sys
/fs
/vx_quota.h
2584 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_hdr" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2596 { (eval echo configure
:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2597 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2598 if test -z "$ac_err"; then
2600 eval "ac_cv_header_$ac_safe=yes"
2603 echo "configure: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2606 eval "ac_cv_header_$ac_safe=no"
2610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2613 cat >> confdefs.h
<<EOF
2614 #define $ac_tr_hdr 1
2618 echo "$ac_t""no" 1>&6
2623 echo $ac_n "checking size of int""... $ac_c" 1>&6
2624 echo "configure:2625: checking size of int" >&5
2625 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 if test "$cross_compiling" = yes; then
2629 ac_cv_sizeof_int
=cross
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2637 FILE *f=fopen("conftestval", "w");
2639 fprintf(f, "%d\n", sizeof(int));
2643 if { (eval echo configure
:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2645 ac_cv_sizeof_int
=`cat conftestval`
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2656 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2657 cat >> confdefs.h
<<EOF
2658 #define SIZEOF_INT $ac_cv_sizeof_int
2662 echo $ac_n "checking size of long""... $ac_c" 1>&6
2663 echo "configure:2664: checking size of long" >&5
2664 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 if test "$cross_compiling" = yes; then
2668 ac_cv_sizeof_long
=cross
2670 cat > conftest.
$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2676 FILE *f=fopen("conftestval", "w");
2678 fprintf(f, "%d\n", sizeof(long));
2682 if { (eval echo configure
:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2684 ac_cv_sizeof_long
=`cat conftestval`
2686 echo "configure: failed program was:" >&5
2687 cat conftest.
$ac_ext >&5
2695 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2696 cat >> confdefs.h
<<EOF
2697 #define SIZEOF_LONG $ac_cv_sizeof_long
2701 echo $ac_n "checking size of short""... $ac_c" 1>&6
2702 echo "configure:2703: checking size of short" >&5
2703 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 if test "$cross_compiling" = yes; then
2707 ac_cv_sizeof_short
=cross
2709 cat > conftest.
$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2715 FILE *f=fopen("conftestval", "w");
2717 fprintf(f, "%d\n", sizeof(short));
2721 if { (eval echo configure
:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2723 ac_cv_sizeof_short
=`cat conftestval`
2725 echo "configure: failed program was:" >&5
2726 cat conftest.
$ac_ext >&5
2728 ac_cv_sizeof_short
=0
2734 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2735 cat >> confdefs.h
<<EOF
2736 #define SIZEOF_SHORT $ac_cv_sizeof_short
2741 echo $ac_n "checking for working const""... $ac_c" 1>&6
2742 echo "configure:2743: checking for working const" >&5
2743 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.
$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2752 /* Ultrix mips cc rejects this. */
2753 typedef int charset[2]; const charset x;
2754 /* SunOS 4.1.1 cc rejects this. */
2755 char const *const *ccp;
2757 /* NEC SVR4.0.2 mips cc rejects this. */
2758 struct point {int x, y;};
2759 static struct point const zero = {0,0};
2760 /* AIX XL C 1.02.0.0 rejects this.
2761 It does not let you subtract one const X* pointer from another in an arm
2762 of an if-expression whose if-part is not a constant expression */
2763 const char *g = "string";
2764 ccp = &g + (g ? g-g : 0);
2765 /* HPUX 7.0 cc rejects these. */
2768 ccp = (char const *const *) p;
2769 { /* SCO 3.2v4 cc rejects this. */
2771 char const *s = 0 ? (char *) 0 : (char const *) 0;
2775 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2777 const int *foo = &x[0];
2780 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2781 typedef const int *iptr;
2785 { /* AIX XL C 1.02.0.0 rejects this saying
2786 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2787 struct s { int j; const int *ap[3]; };
2788 struct s *b; b->j = 5;
2790 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2796 if { (eval echo configure
:2797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2800 echo "configure: failed program was:" >&5
2801 cat conftest.
$ac_ext >&5
2808 echo "$ac_t""$ac_cv_c_const" 1>&6
2809 if test $ac_cv_c_const = no
; then
2810 cat >> confdefs.h
<<\EOF
2816 echo $ac_n "checking for inline""... $ac_c" 1>&6
2817 echo "configure:2818: checking for inline" >&5
2818 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2822 for ac_kw
in inline __inline__ __inline
; do
2823 cat > conftest.
$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2831 if { (eval echo configure
:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2833 ac_cv_c_inline
=$ac_kw; break
2835 echo "configure: failed program was:" >&5
2836 cat conftest.
$ac_ext >&5
2843 echo "$ac_t""$ac_cv_c_inline" 1>&6
2844 case "$ac_cv_c_inline" in
2846 no
) cat >> confdefs.h
<<\EOF
2850 *) cat >> confdefs.h
<<EOF
2851 #define inline $ac_cv_c_inline
2856 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2857 echo "configure:2858: checking whether byte ordering is bigendian" >&5
2858 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 ac_cv_c_bigendian
=unknown
2862 # See if sys/param.h defines the BYTE_ORDER macro.
2863 cat > conftest.
$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2866 #include <sys/types.h>
2867 #include <sys/param.h>
2870 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2875 if { (eval echo configure
:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2877 # It does; now see whether it defined to BIG_ENDIAN or not.
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 #include <sys/types.h>
2882 #include <sys/param.h>
2885 #if BYTE_ORDER != BIG_ENDIAN
2890 if { (eval echo configure
:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2892 ac_cv_c_bigendian
=yes
2894 echo "configure: failed program was:" >&5
2895 cat conftest.
$ac_ext >&5
2897 ac_cv_c_bigendian
=no
2901 echo "configure: failed program was:" >&5
2902 cat conftest.
$ac_ext >&5
2905 if test $ac_cv_c_bigendian = unknown
; then
2906 if test "$cross_compiling" = yes; then
2907 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2909 cat > conftest.
$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2913 /* Are we little or big endian? From Harbison&Steele. */
2917 char c[sizeof (long)];
2920 exit (u.c[sizeof (long) - 1] == 1);
2923 if { (eval echo configure
:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2925 ac_cv_c_bigendian
=no
2927 echo "configure: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2930 ac_cv_c_bigendian
=yes
2938 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2939 if test $ac_cv_c_bigendian = yes; then
2940 cat >> confdefs.h
<<\EOF
2941 #define WORDS_BIGENDIAN 1
2946 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2947 echo "configure:2948: checking whether char is unsigned" >&5
2948 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 if test "$GCC" = yes; then
2952 # GCC predefines this symbol on systems where it applies.
2953 cat > conftest.
$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2956 #ifdef __CHAR_UNSIGNED__
2961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962 egrep "yes" >/dev
/null
2>&1; then
2964 ac_cv_c_char_unsigned
=yes
2967 ac_cv_c_char_unsigned
=no
2972 if test "$cross_compiling" = yes; then
2973 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2975 cat > conftest.
$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2979 #if !defined(__STDC__) || __STDC__ != 1
2983 volatile char c = 255; exit(c < 0);
2986 if { (eval echo configure
:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2988 ac_cv_c_char_unsigned
=yes
2990 echo "configure: failed program was:" >&5
2991 cat conftest.
$ac_ext >&5
2993 ac_cv_c_char_unsigned
=no
3001 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3002 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3003 cat >> confdefs.h
<<\EOF
3004 #define __CHAR_UNSIGNED__ 1
3010 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3011 echo "configure:3012: checking return type of signal handlers" >&5
3012 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.
$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 #include <sys/types.h>
3024 extern "C" void (*signal (int, void (*)(int)))(int);
3026 void (*signal ()) ();
3033 if { (eval echo configure
:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 ac_cv_type_signal
=void
3037 echo "configure: failed program was:" >&5
3038 cat conftest.
$ac_ext >&5
3040 ac_cv_type_signal
=int
3045 echo "$ac_t""$ac_cv_type_signal" 1>&6
3046 cat >> confdefs.h
<<EOF
3047 #define RETSIGTYPE $ac_cv_type_signal
3051 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3052 echo "configure:3053: checking for uid_t in sys/types.h" >&5
3053 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 cat > conftest.
$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 #include <sys/types.h>
3061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3062 egrep "uid_t" >/dev
/null
2>&1; then
3064 ac_cv_type_uid_t
=yes
3073 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3074 if test $ac_cv_type_uid_t = no
; then
3075 cat >> confdefs.h
<<\EOF
3079 cat >> confdefs.h
<<\EOF
3085 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3086 echo "configure:3087: checking for mode_t" >&5
3087 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.
$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 #include <sys/types.h>
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3102 ac_cv_type_mode_t
=yes
3105 ac_cv_type_mode_t
=no
3110 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3111 if test $ac_cv_type_mode_t = no
; then
3112 cat >> confdefs.h
<<\EOF
3118 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3119 echo "configure:3120: checking for off_t" >&5
3120 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 #include <sys/types.h>
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3133 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3135 ac_cv_type_off_t
=yes
3143 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3144 if test $ac_cv_type_off_t = no
; then
3145 cat >> confdefs.h
<<\EOF
3151 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3152 echo "configure:3153: checking for size_t" >&5
3153 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 cat > conftest.
$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #include <sys/types.h>
3165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3166 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3168 ac_cv_type_size_t
=yes
3171 ac_cv_type_size_t
=no
3176 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3177 if test $ac_cv_type_size_t = no
; then
3178 cat >> confdefs.h
<<\EOF
3179 #define size_t unsigned
3184 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3185 echo "configure:3186: checking for pid_t" >&5
3186 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.
$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 #include <sys/types.h>
3198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3199 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3201 ac_cv_type_pid_t
=yes
3209 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3210 if test $ac_cv_type_pid_t = no
; then
3211 cat >> confdefs.h
<<\EOF
3217 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3218 echo "configure:3219: checking for st_rdev in struct stat" >&5
3219 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 #include <sys/types.h>
3226 #include <sys/stat.h>
3228 struct stat s; s.st_rdev;
3231 if { (eval echo configure
:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3233 ac_cv_struct_st_rdev
=yes
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3238 ac_cv_struct_st_rdev
=no
3243 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3244 if test $ac_cv_struct_st_rdev = yes; then
3245 cat >> confdefs.h
<<\EOF
3246 #define HAVE_ST_RDEV 1
3251 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3252 echo "configure:3253: checking for d_off in dirent" >&5
3253 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.
$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3261 #include <sys/types.h>
3264 struct dirent d; d.d_off;
3267 if { (eval echo configure
:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3269 ac_cv_dirent_d_off
=yes
3271 echo "configure: failed program was:" >&5
3272 cat conftest.
$ac_ext >&5
3274 ac_cv_dirent_d_off
=no
3279 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3280 if test $ac_cv_dirent_d_off = yes; then
3281 cat >> confdefs.h
<<\EOF
3282 #define HAVE_DIRENT_D_OFF 1
3287 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3288 echo "configure:3289: checking for ino_t" >&5
3289 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.
$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 #include <sys/types.h>
3301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3304 ac_cv_type_ino_t
=yes
3312 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3313 if test $ac_cv_type_ino_t = no
; then
3314 cat >> confdefs.h
<<\EOF
3315 #define ino_t unsigned
3320 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3321 echo "configure:3322: checking for loff_t" >&5
3322 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <sys/types.h>
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3337 ac_cv_type_loff_t
=yes
3340 ac_cv_type_loff_t
=no
3345 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3346 if test $ac_cv_type_loff_t = no
; then
3347 cat >> confdefs.h
<<\EOF
3348 #define loff_t off_t
3353 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3354 echo "configure:3355: checking for offset_t" >&5
3355 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 cat > conftest.
$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3370 ac_cv_type_offset_t
=yes
3373 ac_cv_type_offset_t
=no
3378 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3379 if test $ac_cv_type_offset_t = no
; then
3380 cat >> confdefs.h
<<\EOF
3381 #define offset_t loff_t
3386 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3387 echo "configure:3388: checking for ssize_t" >&5
3388 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.
$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <sys/types.h>
3400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3403 ac_cv_type_ssize_t
=yes
3406 ac_cv_type_ssize_t
=no
3411 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3412 if test $ac_cv_type_ssize_t = no
; then
3413 cat >> confdefs.h
<<\EOF
3419 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3420 echo "configure:3421: checking for wchar_t" >&5
3421 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 cat > conftest.
$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3436 ac_cv_type_wchar_t
=yes
3439 ac_cv_type_wchar_t
=no
3444 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3445 if test $ac_cv_type_wchar_t = no
; then
3446 cat >> confdefs.h
<<\EOF
3447 #define wchar_t unsigned short
3453 ############################################
3454 # for cups support we need libcups, and a handful of header files
3456 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3457 echo "configure:3458: checking for httpConnect in -lcups" >&5
3458 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 ac_save_LIBS
="$LIBS"
3464 cat > conftest.
$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3467 /* Override any gcc2 internal prototype to avoid an error. */
3468 /* We use char because int might match the return type of a gcc2
3469 builtin and then its argument prototype would still apply. */
3476 if { (eval echo configure
:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3478 eval "ac_cv_lib_$ac_lib_var=yes"
3480 echo "configure: failed program was:" >&5
3481 cat conftest.
$ac_ext >&5
3483 eval "ac_cv_lib_$ac_lib_var=no"
3486 LIBS
="$ac_save_LIBS"
3489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3491 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3492 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3493 cat >> confdefs.h
<<EOF
3494 #define $ac_tr_lib 1
3500 echo "$ac_t""no" 1>&6
3504 # I wonder if there is a nicer way of doing this?
3506 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3507 for ac_hdr
in cups
/cups.h cups
/language.h
3509 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3511 echo "configure:3512: checking for $ac_hdr" >&5
3512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3520 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3521 { (eval echo configure
:3522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3522 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3523 if test -z "$ac_err"; then
3525 eval "ac_cv_header_$ac_safe=yes"
3528 echo "configure: failed program was:" >&5
3529 cat conftest.
$ac_ext >&5
3531 eval "ac_cv_header_$ac_safe=no"
3535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3538 cat >> confdefs.h
<<EOF
3539 #define $ac_tr_hdr 1
3543 echo "$ac_t""no" 1>&6
3547 if test x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3548 if test x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3549 cat >> confdefs.h
<<\EOF
3557 ############################################
3558 # we need libdl for PAM and the new VFS code
3559 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3560 echo "configure:3561: checking for dlopen in -ldl" >&5
3561 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 ac_save_LIBS
="$LIBS"
3567 cat > conftest.
$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 /* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3579 if { (eval echo configure
:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3581 eval "ac_cv_lib_$ac_lib_var=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.
$ac_ext >&5
3586 eval "ac_cv_lib_$ac_lib_var=no"
3589 LIBS
="$ac_save_LIBS"
3592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3593 echo "$ac_t""yes" 1>&6
3595 cat >> confdefs.h
<<\EOF
3596 #define HAVE_LIBDL 1
3600 echo "$ac_t""no" 1>&6
3604 ############################################
3605 # check for unix domain sockets
3606 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3607 echo "configure:3608: checking for unix domain sockets" >&5
3608 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.
$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3616 #include <sys/types.h>
3619 #include <sys/socket.h>
3623 struct sockaddr_un sunaddr;
3624 sunaddr.sun_family = AF_UNIX;
3628 if { (eval echo configure
:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3630 samba_cv_unixsocket
=yes
3632 echo "configure: failed program was:" >&5
3633 cat conftest.
$ac_ext >&5
3635 samba_cv_unixsocket
=no
3640 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3641 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3642 cat >> confdefs.h
<<\EOF
3643 #define HAVE_UNIXSOCKET 1
3648 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3649 echo "configure:3650: checking for socklen_t type" >&5
3650 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.
$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3658 #include <sys/types.h>
3663 #include <sys/socket.h>
3668 if { (eval echo configure
:3669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3670 samba_cv_socklen_t
=yes
3672 echo "configure: failed program was:" >&5
3673 cat conftest.
$ac_ext >&5
3675 samba_cv_socklen_t
=no
3680 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3681 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3682 cat >> confdefs.h
<<\EOF
3683 #define HAVE_SOCKLEN_T_TYPE 1
3688 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3689 echo "configure:3690: checking for sig_atomic_t type" >&5
3690 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3694 cat > conftest.
$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3698 #include <sys/types.h>
3708 if { (eval echo configure
:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3710 samba_cv_sig_atomic_t
=yes
3712 echo "configure: failed program was:" >&5
3713 cat conftest.
$ac_ext >&5
3715 samba_cv_sig_atomic_t
=no
3720 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3721 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3722 cat >> confdefs.h
<<\EOF
3723 #define HAVE_SIG_ATOMIC_T_TYPE 1
3728 # stupid headers have the functions but no declaration. grrrr.
3730 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3731 echo "configure:3732: checking for errno declaration" >&5
3732 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3736 cat > conftest.
$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3744 if { (eval echo configure
:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3746 ac_cv_have_errno_decl
=yes
3748 echo "configure: failed program was:" >&5
3749 cat conftest.
$ac_ext >&5
3751 ac_cv_have_errno_decl
=no
3756 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3757 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3758 cat >> confdefs.h
<<\EOF
3759 #define HAVE_ERRNO_DECL 1
3765 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3766 echo "configure:3767: checking for setresuid declaration" >&5
3767 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3771 cat > conftest.
$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3776 int i = (int)setresuid
3779 if { (eval echo configure
:3780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3781 ac_cv_have_setresuid_decl
=yes
3783 echo "configure: failed program was:" >&5
3784 cat conftest.
$ac_ext >&5
3786 ac_cv_have_setresuid_decl
=no
3791 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3792 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3793 cat >> confdefs.h
<<\EOF
3794 #define HAVE_SETRESUID_DECL 1
3800 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3801 echo "configure:3802: checking for setresgid declaration" >&5
3802 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3806 cat > conftest.
$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3811 int i = (int)setresgid
3814 if { (eval echo configure
:3815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3816 ac_cv_have_setresgid_decl
=yes
3818 echo "configure: failed program was:" >&5
3819 cat conftest.
$ac_ext >&5
3821 ac_cv_have_setresgid_decl
=no
3826 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3827 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3828 cat >> confdefs.h
<<\EOF
3829 #define HAVE_SETRESGID_DECL 1
3835 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3836 echo "configure:3837: checking for asprintf declaration" >&5
3837 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3841 cat > conftest.
$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3846 int i = (int)asprintf
3849 if { (eval echo configure
:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3851 ac_cv_have_asprintf_decl
=yes
3853 echo "configure: failed program was:" >&5
3854 cat conftest.
$ac_ext >&5
3856 ac_cv_have_asprintf_decl
=no
3861 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3862 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3863 cat >> confdefs.h
<<\EOF
3864 #define HAVE_ASPRINTF_DECL 1
3870 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3871 echo "configure:3872: checking for vasprintf declaration" >&5
3872 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3876 cat > conftest.
$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3881 int i = (int)vasprintf
3884 if { (eval echo configure
:3885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3886 ac_cv_have_vasprintf_decl
=yes
3888 echo "configure: failed program was:" >&5
3889 cat conftest.
$ac_ext >&5
3891 ac_cv_have_vasprintf_decl
=no
3896 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3897 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3898 cat >> confdefs.h
<<\EOF
3899 #define HAVE_VASPRINTF_DECL 1
3905 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3906 echo "configure:3907: checking for vsnprintf declaration" >&5
3907 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3911 cat > conftest.
$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3916 int i = (int)vsnprintf
3919 if { (eval echo configure
:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3921 ac_cv_have_vsnprintf_decl
=yes
3923 echo "configure: failed program was:" >&5
3924 cat conftest.
$ac_ext >&5
3926 ac_cv_have_vsnprintf_decl
=no
3931 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3932 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
3933 cat >> confdefs.h
<<\EOF
3934 #define HAVE_VSNPRINTF_DECL 1
3940 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3941 echo "configure:3942: checking for snprintf declaration" >&5
3942 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.
$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3951 int i = (int)snprintf
3954 if { (eval echo configure
:3955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3956 ac_cv_have_snprintf_decl
=yes
3958 echo "configure: failed program was:" >&5
3959 cat conftest.
$ac_ext >&5
3961 ac_cv_have_snprintf_decl
=no
3966 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3967 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
3968 cat >> confdefs.h
<<\EOF
3969 #define HAVE_SNPRINTF_DECL 1
3975 # and glibc has setresuid under linux but the function does
3976 # nothing until kernel 2.1.44! very dumb.
3977 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3978 echo "configure:3979: checking for real setresuid" >&5
3979 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3983 if test "$cross_compiling" = yes; then
3984 samba_cv_have_setresuid
=cross
3986 cat > conftest.
$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3990 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3992 if { (eval echo configure
:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3994 samba_cv_have_setresuid
=yes
3996 echo "configure: failed program was:" >&5
3997 cat conftest.
$ac_ext >&5
3999 samba_cv_have_setresuid
=no
4006 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4007 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4008 cat >> confdefs.h
<<\EOF
4009 #define HAVE_SETRESUID 1
4014 # Do the same check for setresguid...
4016 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4017 echo "configure:4018: checking for real setresgid" >&5
4018 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4022 if test "$cross_compiling" = yes; then
4023 samba_cv_have_setresgid
=cross
4025 cat > conftest.
$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4030 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4032 if { (eval echo configure
:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4034 samba_cv_have_setresgid
=yes
4036 echo "configure: failed program was:" >&5
4037 cat conftest.
$ac_ext >&5
4039 samba_cv_have_setresgid
=no
4046 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4047 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4048 cat >> confdefs.h
<<\EOF
4049 #define HAVE_SETRESGID 1
4054 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4055 echo "configure:4056: checking for 8-bit clean memcmp" >&5
4056 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 if test "$cross_compiling" = yes; then
4060 ac_cv_func_memcmp_clean
=no
4062 cat > conftest.
$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4068 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4069 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4073 if { (eval echo configure
:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4075 ac_cv_func_memcmp_clean
=yes
4077 echo "configure: failed program was:" >&5
4078 cat conftest.
$ac_ext >&5
4080 ac_cv_func_memcmp_clean
=no
4087 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4088 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4091 ###############################################
4092 # Readline included by default unless explicitly asked not to
4093 test "${with_readline+set}" != "set" && with_readline
=yes
4095 # test for where we get readline() from
4096 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4097 echo "configure:4098: checking whether to use readline" >&5
4098 # Check whether --with-readline or --without-readline was given.
4099 if test "${with_readline+set}" = set; then
4100 withval
="$with_readline"
4101 case "$with_readline" in
4103 echo "$ac_t""yes" 1>&6
4105 for ac_hdr
in readline.h
history.h readline
/readline.h
4107 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_hdr" >&5
4110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 cat > conftest.
$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4118 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4119 { (eval echo configure
:4120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4120 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4121 if test -z "$ac_err"; then
4123 eval "ac_cv_header_$ac_safe=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4129 eval "ac_cv_header_$ac_safe=no"
4133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4136 cat >> confdefs.h
<<EOF
4137 #define $ac_tr_hdr 1
4141 echo "$ac_t""no" 1>&6
4145 for ac_hdr
in readline
/history.h
4147 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4149 echo "configure:4150: checking for $ac_hdr" >&5
4150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4153 cat > conftest.
$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4158 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4159 { (eval echo configure
:4160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4160 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4161 if test -z "$ac_err"; then
4163 eval "ac_cv_header_$ac_safe=yes"
4166 echo "configure: failed program was:" >&5
4167 cat conftest.
$ac_ext >&5
4169 eval "ac_cv_header_$ac_safe=no"
4173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4174 echo "$ac_t""yes" 1>&6
4175 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4176 cat >> confdefs.h
<<EOF
4177 #define $ac_tr_hdr 1
4181 echo "$ac_t""no" 1>&6
4186 for ac_hdr
in readline.h readline
/readline.h
4188 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.
$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4199 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure
:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4204 eval "ac_cv_header_$ac_safe=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.
$ac_ext >&5
4210 eval "ac_cv_header_$ac_safe=no"
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h
<<EOF
4218 #define $ac_tr_hdr 1
4221 for termlib
in ncurses curses termcap terminfo termlib
; do
4222 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4223 echo "configure:4224: checking for tgetent in -l${termlib}" >&5
4224 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 ac_save_LIBS
="$LIBS"
4229 LIBS
="-l${termlib} $LIBS"
4230 cat > conftest.
$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4242 if { (eval echo configure
:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4244 eval "ac_cv_lib_$ac_lib_var=yes"
4246 echo "configure: failed program was:" >&5
4247 cat conftest.
$ac_ext >&5
4249 eval "ac_cv_lib_$ac_lib_var=no"
4252 LIBS
="$ac_save_LIBS"
4255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 TERMLIBS
="-l${termlib}"; break
4259 echo "$ac_t""no" 1>&6
4263 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4264 echo "configure:4265: checking for rl_callback_handler_install in -lreadline" >&5
4265 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 ac_save_LIBS
="$LIBS"
4270 LIBS
="-lreadline $TERMLIBS $LIBS"
4271 cat > conftest.
$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char rl_callback_handler_install();
4280 rl_callback_handler_install()
4283 if { (eval echo configure
:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.
$ac_ext >&5
4290 eval "ac_cv_lib_$ac_lib_var=no"
4293 LIBS
="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 TERMLIBS
="-lreadline $TERMLIBS"
4299 cat >> confdefs.h
<<\EOF
4300 #define HAVE_LIBREADLINE 1
4305 echo "$ac_t""no" 1>&6
4310 echo "$ac_t""no" 1>&6
4316 echo "$ac_t""no" 1>&6
4319 echo "$ac_t""yes" 1>&6
4321 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4322 # alternate readline path
4324 _cppflags
=${CPPFLAGS}
4326 # Add additional search path
4327 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4328 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4330 for ac_hdr
in readline.h
history.h readline
/readline.h
4332 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_hdr" >&5
4335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.
$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4343 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure
:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4348 eval "ac_cv_header_$ac_safe=yes"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.
$ac_ext >&5
4354 eval "ac_cv_header_$ac_safe=no"
4358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4361 cat >> confdefs.h
<<EOF
4362 #define $ac_tr_hdr 1
4366 echo "$ac_t""no" 1>&6
4370 for ac_hdr
in readline
/history.h
4372 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_hdr" >&5
4375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 cat > conftest.
$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4383 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4384 { (eval echo configure
:4385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4385 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4386 if test -z "$ac_err"; then
4388 eval "ac_cv_header_$ac_safe=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.
$ac_ext >&5
4394 eval "ac_cv_header_$ac_safe=no"
4398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4401 cat >> confdefs.h
<<EOF
4402 #define $ac_tr_hdr 1
4406 echo "$ac_t""no" 1>&6
4411 for ac_hdr
in readline.h readline
/readline.h
4413 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 cat > conftest.
$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4424 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure
:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4429 eval "ac_cv_header_$ac_safe=yes"
4432 echo "configure: failed program was:" >&5
4433 cat conftest.
$ac_ext >&5
4435 eval "ac_cv_header_$ac_safe=no"
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h
<<EOF
4443 #define $ac_tr_hdr 1
4446 for termlib
in ncurses curses termcap terminfo termlib
; do
4447 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4448 echo "configure:4449: checking for tgetent in -l${termlib}" >&5
4449 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 ac_save_LIBS
="$LIBS"
4454 LIBS
="-l${termlib} $LIBS"
4455 cat > conftest.
$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4467 if { (eval echo configure
:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4469 eval "ac_cv_lib_$ac_lib_var=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.
$ac_ext >&5
4474 eval "ac_cv_lib_$ac_lib_var=no"
4477 LIBS
="$ac_save_LIBS"
4480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 TERMLIBS
="-l${termlib}"; break
4484 echo "$ac_t""no" 1>&6
4488 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4489 echo "configure:4490: checking for rl_callback_handler_install in -lreadline" >&5
4490 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 ac_save_LIBS
="$LIBS"
4495 LIBS
="-lreadline $TERMLIBS $LIBS"
4496 cat > conftest.
$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4502 char rl_callback_handler_install();
4505 rl_callback_handler_install()
4508 if { (eval echo configure
:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4510 eval "ac_cv_lib_$ac_lib_var=yes"
4512 echo "configure: failed program was:" >&5
4513 cat conftest.
$ac_ext >&5
4515 eval "ac_cv_lib_$ac_lib_var=no"
4518 LIBS
="$ac_save_LIBS"
4521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 TERMLDFLAGS
="-L$with_readline/lib"
4524 TERMCPPFLAGS
="-I$with_readline/include"
4525 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4526 TERMLIBS
="-lreadline $TERMLIBS"
4527 cat >> confdefs.h
<<\EOF
4528 #define HAVE_LIBREADLINE 1
4533 echo "$ac_t""no" 1>&6
4534 TERMLIBS
= CPPFLAGS
=$_cppflags
4538 echo "$ac_t""no" 1>&6
4547 echo "$ac_t""no" 1>&6
4554 # The following test taken from the cvs sources
4555 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4556 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4557 # libsocket.so which has a bad implementation of gethostbyname (it
4558 # only looks in /etc/hosts), so we only look for -lsocket if we need
4560 for ac_func
in connect
4562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_func" >&5
4564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 cat > conftest.
$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570 /* System header to define __stub macros and hopefully few prototypes,
4571 which can conflict with char $ac_func(); below. */
4573 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4580 /* The GNU C library defines this for functions which it implements
4581 to always fail with ENOSYS. Some functions are actually named
4582 something starting with __ and the normal name is an alias. */
4583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4591 if { (eval echo configure
:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4593 eval "ac_cv_func_$ac_func=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.
$ac_ext >&5
4598 eval "ac_cv_func_$ac_func=no"
4603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4606 cat >> confdefs.h
<<EOF
4607 #define $ac_tr_func 1
4611 echo "$ac_t""no" 1>&6
4615 if test x
"$ac_cv_func_connect" = x
"no"; then
4618 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4619 echo "configure:4620: checking for printf in -lnsl_s" >&5
4620 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 ac_save_LIBS
="$LIBS"
4625 LIBS
="-lnsl_s $LIBS"
4626 cat > conftest.
$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4638 if { (eval echo configure
:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4640 eval "ac_cv_lib_$ac_lib_var=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4645 eval "ac_cv_lib_$ac_lib_var=no"
4648 LIBS
="$ac_save_LIBS"
4651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4655 cat >> confdefs.h
<<EOF
4656 #define $ac_tr_lib 1
4659 LIBS
="-lnsl_s $LIBS"
4662 echo "$ac_t""no" 1>&6
4668 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4669 echo "configure:4670: checking for printf in -lnsl" >&5
4670 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 ac_save_LIBS
="$LIBS"
4676 cat > conftest.
$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4688 if { (eval echo configure
:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4690 eval "ac_cv_lib_$ac_lib_var=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.
$ac_ext >&5
4695 eval "ac_cv_lib_$ac_lib_var=no"
4698 LIBS
="$ac_save_LIBS"
4701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4703 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4704 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4705 cat >> confdefs.h
<<EOF
4706 #define $ac_tr_lib 1
4712 echo "$ac_t""no" 1>&6
4718 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4719 echo "configure:4720: checking for connect in -lsocket" >&5
4720 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 ac_save_LIBS
="$LIBS"
4725 LIBS
="-lsocket $LIBS"
4726 cat > conftest.
$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4738 if { (eval echo configure
:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4740 eval "ac_cv_lib_$ac_lib_var=yes"
4742 echo "configure: failed program was:" >&5
4743 cat conftest.
$ac_ext >&5
4745 eval "ac_cv_lib_$ac_lib_var=no"
4748 LIBS
="$ac_save_LIBS"
4751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4752 echo "$ac_t""yes" 1>&6
4753 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4755 cat >> confdefs.h
<<EOF
4756 #define $ac_tr_lib 1
4759 LIBS
="-lsocket $LIBS"
4762 echo "$ac_t""no" 1>&6
4768 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4769 echo "configure:4770: checking for connect in -linet" >&5
4770 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 ac_save_LIBS
="$LIBS"
4776 cat > conftest.
$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4788 if { (eval echo configure
:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4790 eval "ac_cv_lib_$ac_lib_var=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.
$ac_ext >&5
4795 eval "ac_cv_lib_$ac_lib_var=no"
4798 LIBS
="$ac_save_LIBS"
4801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4805 cat >> confdefs.h
<<EOF
4806 #define $ac_tr_lib 1
4812 echo "$ac_t""no" 1>&6
4816 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4817 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4818 # ac_cv_func_connect=yes
4819 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4820 cat >> confdefs.h
<<\EOF
4821 #define HAVE_CONNECT 1
4827 ###############################################
4828 # test for where we get get_yp_default_domain() from
4829 for ac_func
in yp_get_default_domain
4831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4832 echo "configure:4833: checking for $ac_func" >&5
4833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 cat > conftest.
$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4839 /* System header to define __stub macros and hopefully few prototypes,
4840 which can conflict with char $ac_func(); below. */
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4849 /* The GNU C library defines this for functions which it implements
4850 to always fail with ENOSYS. Some functions are actually named
4851 something starting with __ and the normal name is an alias. */
4852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4860 if { (eval echo configure
:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4862 eval "ac_cv_func_$ac_func=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.
$ac_ext >&5
4867 eval "ac_cv_func_$ac_func=no"
4872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4875 cat >> confdefs.h
<<EOF
4876 #define $ac_tr_func 1
4880 echo "$ac_t""no" 1>&6
4884 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4885 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4886 echo "configure:4887: checking for yp_get_default_domain in -lnsl" >&5
4887 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 ac_save_LIBS
="$LIBS"
4893 cat > conftest.
$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4899 char yp_get_default_domain();
4902 yp_get_default_domain()
4905 if { (eval echo configure
:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4907 eval "ac_cv_lib_$ac_lib_var=yes"
4909 echo "configure: failed program was:" >&5
4910 cat conftest.
$ac_ext >&5
4912 eval "ac_cv_lib_$ac_lib_var=no"
4915 LIBS
="$ac_save_LIBS"
4918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4921 cat >> confdefs.h
<<\EOF
4922 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4926 echo "$ac_t""no" 1>&6
4931 # Check if we have execl, if not we need to compile smbrun.
4932 for ac_func
in execl
4934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4935 echo "configure:4936: checking for $ac_func" >&5
4936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 cat > conftest.
$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char $ac_func(); below. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4952 /* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4963 if { (eval echo configure
:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4965 eval "ac_cv_func_$ac_func=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.
$ac_ext >&5
4970 eval "ac_cv_func_$ac_func=no"
4975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4978 cat >> confdefs.h
<<EOF
4979 #define $ac_tr_func 1
4983 echo "$ac_t""no" 1>&6
4987 if test x
"$ac_cv_func_execl" = x
"no"; then
4988 RUNPROG
="bin/smbrun"
4993 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
4995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4996 echo "configure:4997: checking for $ac_func" >&5
4997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 cat > conftest.
$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 /* System header to define __stub macros and hopefully few prototypes,
5004 which can conflict with char $ac_func(); below. */
5006 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5013 /* The GNU C library defines this for functions which it implements
5014 to always fail with ENOSYS. Some functions are actually named
5015 something starting with __ and the normal name is an alias. */
5016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5024 if { (eval echo configure
:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5026 eval "ac_cv_func_$ac_func=yes"
5028 echo "configure: failed program was:" >&5
5029 cat conftest.
$ac_ext >&5
5031 eval "ac_cv_func_$ac_func=no"
5036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5038 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5039 cat >> confdefs.h
<<EOF
5040 #define $ac_tr_func 1
5044 echo "$ac_t""no" 1>&6
5048 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5051 echo "configure:5052: checking for $ac_func" >&5
5052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5055 cat > conftest.
$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* System header to define __stub macros and hopefully few prototypes,
5059 which can conflict with char $ac_func(); below. */
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5068 /* The GNU C library defines this for functions which it implements
5069 to always fail with ENOSYS. Some functions are actually named
5070 something starting with __ and the normal name is an alias. */
5071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5079 if { (eval echo configure
:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5081 eval "ac_cv_func_$ac_func=yes"
5083 echo "configure: failed program was:" >&5
5084 cat conftest.
$ac_ext >&5
5086 eval "ac_cv_func_$ac_func=no"
5091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5094 cat >> confdefs.h
<<EOF
5095 #define $ac_tr_func 1
5099 echo "$ac_t""no" 1>&6
5103 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_func" >&5
5107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5110 cat > conftest.
$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 /* System header to define __stub macros and hopefully few prototypes,
5114 which can conflict with char $ac_func(); below. */
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5123 /* The GNU C library defines this for functions which it implements
5124 to always fail with ENOSYS. Some functions are actually named
5125 something starting with __ and the normal name is an alias. */
5126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5134 if { (eval echo configure
:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5136 eval "ac_cv_func_$ac_func=yes"
5138 echo "configure: failed program was:" >&5
5139 cat conftest.
$ac_ext >&5
5141 eval "ac_cv_func_$ac_func=no"
5146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5147 echo "$ac_t""yes" 1>&6
5148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5149 cat >> confdefs.h
<<EOF
5150 #define $ac_tr_func 1
5154 echo "$ac_t""no" 1>&6
5158 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5161 echo "configure:5162: checking for $ac_func" >&5
5162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 cat > conftest.
$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 /* System header to define __stub macros and hopefully few prototypes,
5169 which can conflict with char $ac_func(); below. */
5171 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5178 /* The GNU C library defines this for functions which it implements
5179 to always fail with ENOSYS. Some functions are actually named
5180 something starting with __ and the normal name is an alias. */
5181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5189 if { (eval echo configure
:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5191 eval "ac_cv_func_$ac_func=yes"
5193 echo "configure: failed program was:" >&5
5194 cat conftest.
$ac_ext >&5
5196 eval "ac_cv_func_$ac_func=no"
5201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5204 cat >> confdefs.h
<<EOF
5205 #define $ac_tr_func 1
5209 echo "$ac_t""no" 1>&6
5213 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5216 echo "configure:5217: checking for $ac_func" >&5
5217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5220 cat > conftest.
$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5223 /* System header to define __stub macros and hopefully few prototypes,
5224 which can conflict with char $ac_func(); below. */
5226 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5233 /* The GNU C library defines this for functions which it implements
5234 to always fail with ENOSYS. Some functions are actually named
5235 something starting with __ and the normal name is an alias. */
5236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5244 if { (eval echo configure
:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5246 eval "ac_cv_func_$ac_func=yes"
5248 echo "configure: failed program was:" >&5
5249 cat conftest.
$ac_ext >&5
5251 eval "ac_cv_func_$ac_func=no"
5256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5257 echo "$ac_t""yes" 1>&6
5258 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5259 cat >> confdefs.h
<<EOF
5260 #define $ac_tr_func 1
5264 echo "$ac_t""no" 1>&6
5268 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5271 echo "configure:5272: checking for $ac_func" >&5
5272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 cat > conftest.
$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* System header to define __stub macros and hopefully few prototypes,
5279 which can conflict with char $ac_func(); below. */
5281 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */
5288 /* The GNU C library defines this for functions which it implements
5289 to always fail with ENOSYS. Some functions are actually named
5290 something starting with __ and the normal name is an alias. */
5291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5299 if { (eval echo configure
:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5301 eval "ac_cv_func_$ac_func=yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.
$ac_ext >&5
5306 eval "ac_cv_func_$ac_func=no"
5311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5312 echo "$ac_t""yes" 1>&6
5313 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5314 cat >> confdefs.h
<<EOF
5315 #define $ac_tr_func 1
5319 echo "$ac_t""no" 1>&6
5323 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5326 echo "configure:5327: checking for $ac_func" >&5
5327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5330 cat > conftest.
$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 /* System header to define __stub macros and hopefully few prototypes,
5334 which can conflict with char $ac_func(); below. */
5336 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5354 if { (eval echo configure
:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5356 eval "ac_cv_func_$ac_func=yes"
5358 echo "configure: failed program was:" >&5
5359 cat conftest.
$ac_ext >&5
5361 eval "ac_cv_func_$ac_func=no"
5366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5369 cat >> confdefs.h
<<EOF
5370 #define $ac_tr_func 1
5374 echo "$ac_t""no" 1>&6
5378 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5381 echo "configure:5382: checking for $ac_func" >&5
5382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5383 echo $ac_n "(cached) $ac_c" 1>&6
5385 cat > conftest.
$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5388 /* System header to define __stub macros and hopefully few prototypes,
5389 which can conflict with char $ac_func(); below. */
5391 /* Override any gcc2 internal prototype to avoid an error. */
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5398 /* The GNU C library defines this for functions which it implements
5399 to always fail with ENOSYS. Some functions are actually named
5400 something starting with __ and the normal name is an alias. */
5401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5409 if { (eval echo configure
:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5411 eval "ac_cv_func_$ac_func=yes"
5413 echo "configure: failed program was:" >&5
5414 cat conftest.
$ac_ext >&5
5416 eval "ac_cv_func_$ac_func=no"
5421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5423 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5424 cat >> confdefs.h
<<EOF
5425 #define $ac_tr_func 1
5429 echo "$ac_t""no" 1>&6
5433 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5436 echo "configure:5437: checking for $ac_func" >&5
5437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 cat > conftest.
$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 /* System header to define __stub macros and hopefully few prototypes,
5444 which can conflict with char $ac_func(); below. */
5446 /* Override any gcc2 internal prototype to avoid an error. */
5447 /* We use char because int might match the return type of a gcc2
5448 builtin and then its argument prototype would still apply. */
5453 /* The GNU C library defines this for functions which it implements
5454 to always fail with ENOSYS. Some functions are actually named
5455 something starting with __ and the normal name is an alias. */
5456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5464 if { (eval echo configure
:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5466 eval "ac_cv_func_$ac_func=yes"
5468 echo "configure: failed program was:" >&5
5469 cat conftest.
$ac_ext >&5
5471 eval "ac_cv_func_$ac_func=no"
5476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5477 echo "$ac_t""yes" 1>&6
5478 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5479 cat >> confdefs.h
<<EOF
5480 #define $ac_tr_func 1
5484 echo "$ac_t""no" 1>&6
5489 # syscall() is needed for smbwrapper.
5490 for ac_func
in syscall
5492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5493 echo "configure:5494: checking for $ac_func" >&5
5494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 cat > conftest.
$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 /* System header to define __stub macros and hopefully few prototypes,
5501 which can conflict with char $ac_func(); below. */
5503 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5510 /* The GNU C library defines this for functions which it implements
5511 to always fail with ENOSYS. Some functions are actually named
5512 something starting with __ and the normal name is an alias. */
5513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5521 if { (eval echo configure
:5522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5523 eval "ac_cv_func_$ac_func=yes"
5525 echo "configure: failed program was:" >&5
5526 cat conftest.
$ac_ext >&5
5528 eval "ac_cv_func_$ac_func=no"
5533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5534 echo "$ac_t""yes" 1>&6
5535 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5536 cat >> confdefs.h
<<EOF
5537 #define $ac_tr_func 1
5541 echo "$ac_t""no" 1>&6
5546 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_func" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 cat > conftest.
$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557 which can conflict with char $ac_func(); below. */
5559 /* Override any gcc2 internal prototype to avoid an error. */
5560 /* We use char because int might match the return type of a gcc2
5561 builtin and then its argument prototype would still apply. */
5566 /* The GNU C library defines this for functions which it implements
5567 to always fail with ENOSYS. Some functions are actually named
5568 something starting with __ and the normal name is an alias. */
5569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5577 if { (eval echo configure
:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5579 eval "ac_cv_func_$ac_func=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.
$ac_ext >&5
5584 eval "ac_cv_func_$ac_func=no"
5589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5591 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5592 cat >> confdefs.h
<<EOF
5593 #define $ac_tr_func 1
5597 echo "$ac_t""no" 1>&6
5601 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5604 echo "configure:5605: checking for $ac_func" >&5
5605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.
$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 /* System header to define __stub macros and hopefully few prototypes,
5612 which can conflict with char $ac_func(); below. */
5614 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5621 /* The GNU C library defines this for functions which it implements
5622 to always fail with ENOSYS. Some functions are actually named
5623 something starting with __ and the normal name is an alias. */
5624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5632 if { (eval echo configure
:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5634 eval "ac_cv_func_$ac_func=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5639 eval "ac_cv_func_$ac_func=no"
5644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5647 cat >> confdefs.h
<<EOF
5648 #define $ac_tr_func 1
5652 echo "$ac_t""no" 1>&6
5656 for ac_func
in __getcwd _getcwd
5658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5659 echo "configure:5660: checking for $ac_func" >&5
5660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 cat > conftest.
$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5666 /* System header to define __stub macros and hopefully few prototypes,
5667 which can conflict with char $ac_func(); below. */
5669 /* Override any gcc2 internal prototype to avoid an error. */
5670 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5676 /* The GNU C library defines this for functions which it implements
5677 to always fail with ENOSYS. Some functions are actually named
5678 something starting with __ and the normal name is an alias. */
5679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5687 if { (eval echo configure
:5688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5689 eval "ac_cv_func_$ac_func=yes"
5691 echo "configure: failed program was:" >&5
5692 cat conftest.
$ac_ext >&5
5694 eval "ac_cv_func_$ac_func=no"
5699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5700 echo "$ac_t""yes" 1>&6
5701 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5702 cat >> confdefs.h
<<EOF
5703 #define $ac_tr_func 1
5707 echo "$ac_t""no" 1>&6
5711 for ac_func
in __xstat __fxstat __lxstat
5713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_func" >&5
5715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 cat > conftest.
$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 /* System header to define __stub macros and hopefully few prototypes,
5722 which can conflict with char $ac_func(); below. */
5724 /* Override any gcc2 internal prototype to avoid an error. */
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5731 /* The GNU C library defines this for functions which it implements
5732 to always fail with ENOSYS. Some functions are actually named
5733 something starting with __ and the normal name is an alias. */
5734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5742 if { (eval echo configure
:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5744 eval "ac_cv_func_$ac_func=yes"
5746 echo "configure: failed program was:" >&5
5747 cat conftest.
$ac_ext >&5
5749 eval "ac_cv_func_$ac_func=no"
5754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5755 echo "$ac_t""yes" 1>&6
5756 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5757 cat >> confdefs.h
<<EOF
5758 #define $ac_tr_func 1
5762 echo "$ac_t""no" 1>&6
5766 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5769 echo "configure:5770: checking for $ac_func" >&5
5770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 cat > conftest.
$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* System header to define __stub macros and hopefully few prototypes,
5777 which can conflict with char $ac_func(); below. */
5779 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5797 if { (eval echo configure
:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5799 eval "ac_cv_func_$ac_func=yes"
5801 echo "configure: failed program was:" >&5
5802 cat conftest.
$ac_ext >&5
5804 eval "ac_cv_func_$ac_func=no"
5809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5810 echo "$ac_t""yes" 1>&6
5811 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5812 cat >> confdefs.h
<<EOF
5813 #define $ac_tr_func 1
5817 echo "$ac_t""no" 1>&6
5821 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5824 echo "configure:5825: checking for $ac_func" >&5
5825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5828 cat > conftest.
$ac_ext <<EOF
5829 #line 5830 "configure"
5830 #include "confdefs.h"
5831 /* System header to define __stub macros and hopefully few prototypes,
5832 which can conflict with char $ac_func(); below. */
5834 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5841 /* The GNU C library defines this for functions which it implements
5842 to always fail with ENOSYS. Some functions are actually named
5843 something starting with __ and the normal name is an alias. */
5844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5852 if { (eval echo configure
:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5854 eval "ac_cv_func_$ac_func=yes"
5856 echo "configure: failed program was:" >&5
5857 cat conftest.
$ac_ext >&5
5859 eval "ac_cv_func_$ac_func=no"
5864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5865 echo "$ac_t""yes" 1>&6
5866 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5867 cat >> confdefs.h
<<EOF
5868 #define $ac_tr_func 1
5872 echo "$ac_t""no" 1>&6
5876 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5879 echo "configure:5880: checking for $ac_func" >&5
5880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5883 cat > conftest.
$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 /* System header to define __stub macros and hopefully few prototypes,
5887 which can conflict with char $ac_func(); below. */
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5896 /* The GNU C library defines this for functions which it implements
5897 to always fail with ENOSYS. Some functions are actually named
5898 something starting with __ and the normal name is an alias. */
5899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5907 if { (eval echo configure
:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5909 eval "ac_cv_func_$ac_func=yes"
5911 echo "configure: failed program was:" >&5
5912 cat conftest.
$ac_ext >&5
5914 eval "ac_cv_func_$ac_func=no"
5919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5920 echo "$ac_t""yes" 1>&6
5921 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5922 cat >> confdefs.h
<<EOF
5923 #define $ac_tr_func 1
5927 echo "$ac_t""no" 1>&6
5931 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5934 echo "configure:5935: checking for $ac_func" >&5
5935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.
$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 /* System header to define __stub macros and hopefully few prototypes,
5942 which can conflict with char $ac_func(); below. */
5944 /* Override any gcc2 internal prototype to avoid an error. */
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5951 /* The GNU C library defines this for functions which it implements
5952 to always fail with ENOSYS. Some functions are actually named
5953 something starting with __ and the normal name is an alias. */
5954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5962 if { (eval echo configure
:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5964 eval "ac_cv_func_$ac_func=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.
$ac_ext >&5
5969 eval "ac_cv_func_$ac_func=no"
5974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5975 echo "$ac_t""yes" 1>&6
5976 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5977 cat >> confdefs.h
<<EOF
5978 #define $ac_tr_func 1
5982 echo "$ac_t""no" 1>&6
5986 for ac_func
in _write __write _fork __fork
5988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_func" >&5
5990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.
$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 /* System header to define __stub macros and hopefully few prototypes,
5997 which can conflict with char $ac_func(); below. */
5999 /* Override any gcc2 internal prototype to avoid an error. */
6000 /* We use char because int might match the return type of a gcc2
6001 builtin and then its argument prototype would still apply. */
6006 /* The GNU C library defines this for functions which it implements
6007 to always fail with ENOSYS. Some functions are actually named
6008 something starting with __ and the normal name is an alias. */
6009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6017 if { (eval echo configure
:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6019 eval "ac_cv_func_$ac_func=yes"
6021 echo "configure: failed program was:" >&5
6022 cat conftest.
$ac_ext >&5
6024 eval "ac_cv_func_$ac_func=no"
6029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6030 echo "$ac_t""yes" 1>&6
6031 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6032 cat >> confdefs.h
<<EOF
6033 #define $ac_tr_func 1
6037 echo "$ac_t""no" 1>&6
6041 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6044 echo "configure:6045: checking for $ac_func" >&5
6045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6048 cat > conftest.
$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 /* System header to define __stub macros and hopefully few prototypes,
6052 which can conflict with char $ac_func(); below. */
6054 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6061 /* The GNU C library defines this for functions which it implements
6062 to always fail with ENOSYS. Some functions are actually named
6063 something starting with __ and the normal name is an alias. */
6064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6072 if { (eval echo configure
:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6074 eval "ac_cv_func_$ac_func=yes"
6076 echo "configure: failed program was:" >&5
6077 cat conftest.
$ac_ext >&5
6079 eval "ac_cv_func_$ac_func=no"
6084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6085 echo "$ac_t""yes" 1>&6
6086 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6087 cat >> confdefs.h
<<EOF
6088 #define $ac_tr_func 1
6092 echo "$ac_t""no" 1>&6
6096 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6099 echo "configure:6100: checking for $ac_func" >&5
6100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 cat > conftest.
$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6106 /* System header to define __stub macros and hopefully few prototypes,
6107 which can conflict with char $ac_func(); below. */
6109 /* Override any gcc2 internal prototype to avoid an error. */
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6116 /* The GNU C library defines this for functions which it implements
6117 to always fail with ENOSYS. Some functions are actually named
6118 something starting with __ and the normal name is an alias. */
6119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6127 if { (eval echo configure
:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6129 eval "ac_cv_func_$ac_func=yes"
6131 echo "configure: failed program was:" >&5
6132 cat conftest.
$ac_ext >&5
6134 eval "ac_cv_func_$ac_func=no"
6139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6140 echo "$ac_t""yes" 1>&6
6141 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6142 cat >> confdefs.h
<<EOF
6143 #define $ac_tr_func 1
6147 echo "$ac_t""no" 1>&6
6151 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_func" >&5
6155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.
$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6161 /* System header to define __stub macros and hopefully few prototypes,
6162 which can conflict with char $ac_func(); below. */
6164 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6171 /* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
6174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6182 if { (eval echo configure
:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6184 eval "ac_cv_func_$ac_func=yes"
6186 echo "configure: failed program was:" >&5
6187 cat conftest.
$ac_ext >&5
6189 eval "ac_cv_func_$ac_func=no"
6194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6197 cat >> confdefs.h
<<EOF
6198 #define $ac_tr_func 1
6202 echo "$ac_t""no" 1>&6
6206 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6209 echo "configure:6210: checking for $ac_func" >&5
6210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6213 cat > conftest.
$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char $ac_func(); below. */
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6226 /* The GNU C library defines this for functions which it implements
6227 to always fail with ENOSYS. Some functions are actually named
6228 something starting with __ and the normal name is an alias. */
6229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 if { (eval echo configure
:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6239 eval "ac_cv_func_$ac_func=yes"
6241 echo "configure: failed program was:" >&5
6242 cat conftest.
$ac_ext >&5
6244 eval "ac_cv_func_$ac_func=no"
6249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6250 echo "$ac_t""yes" 1>&6
6251 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6252 cat >> confdefs.h
<<EOF
6253 #define $ac_tr_func 1
6257 echo "$ac_t""no" 1>&6
6261 for ac_func
in open64 _open64 __open64 creat64
6263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6264 echo "configure:6265: checking for $ac_func" >&5
6265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6268 cat > conftest.
$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6271 /* System header to define __stub macros and hopefully few prototypes,
6272 which can conflict with char $ac_func(); below. */
6274 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6281 /* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
6284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6292 if { (eval echo configure
:6293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6294 eval "ac_cv_func_$ac_func=yes"
6296 echo "configure: failed program was:" >&5
6297 cat conftest.
$ac_ext >&5
6299 eval "ac_cv_func_$ac_func=no"
6304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6305 echo "$ac_t""yes" 1>&6
6306 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6307 cat >> confdefs.h
<<EOF
6308 #define $ac_tr_func 1
6312 echo "$ac_t""no" 1>&6
6318 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6321 if test x
$ac_cv_func_stat64 = xno
; then
6322 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6323 echo "configure:6324: checking for stat64 in <sys/stat.h>" >&5
6324 cat > conftest.
$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6328 #if defined(HAVE_UNISTD_H)
6331 #include <sys/stat.h>
6334 struct stat64 st64; exit(stat64(".",&st64));
6337 if { (eval echo configure
:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6339 ac_cv_func_stat64
=yes
6341 echo "configure: failed program was:" >&5
6342 cat conftest.
$ac_ext >&5
6345 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6346 if test x
$ac_cv_func_stat64 = xyes
; then
6347 cat >> confdefs.h
<<\EOF
6348 #define HAVE_STAT64 1
6354 if test x
$ac_cv_func_lstat64 = xno
; then
6355 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6356 echo "configure:6357: checking for lstat64 in <sys/stat.h>" >&5
6357 cat > conftest.
$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6361 #if defined(HAVE_UNISTD_H)
6364 #include <sys/stat.h>
6367 struct stat64 st64; exit(lstat64(".",&st64));
6370 if { (eval echo configure
:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6372 ac_cv_func_lstat64
=yes
6374 echo "configure: failed program was:" >&5
6375 cat conftest.
$ac_ext >&5
6378 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6379 if test x
$ac_cv_func_lstat64 = xyes
; then
6380 cat >> confdefs.h
<<\EOF
6381 #define HAVE_LSTAT64 1
6387 if test x
$ac_cv_func_fstat64 = xno
; then
6388 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6389 echo "configure:6390: checking for fstat64 in <sys/stat.h>" >&5
6390 cat > conftest.
$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6394 #if defined(HAVE_UNISTD_H)
6397 #include <sys/stat.h>
6400 struct stat64 st64; exit(fstat64(0,&st64));
6403 if { (eval echo configure
:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6405 ac_cv_func_fstat64
=yes
6407 echo "configure: failed program was:" >&5
6408 cat conftest.
$ac_ext >&5
6411 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6412 if test x
$ac_cv_func_fstat64 = xyes
; then
6413 cat >> confdefs.h
<<\EOF
6414 #define HAVE_FSTAT64 1
6421 # If no strcasecmp, check for it in some known places
6422 # It is in -lresolv on ReliantUNIX and UnixWare
6423 # -lresolve *must* follow -lnsl for name resolution to work properly
6426 if test x
$ac_cv_func_strcasecmp = xno
; then
6427 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6428 echo "configure:6429: checking for strcasecmp in -lresolv" >&5
6429 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6433 ac_save_LIBS
="$LIBS"
6434 LIBS
="-lresolv $LIBS"
6435 cat > conftest.
$ac_ext <<EOF
6436 #line 6437 "configure"
6437 #include "confdefs.h"
6438 /* Override any gcc2 internal prototype to avoid an error. */
6439 /* We use char because int might match the return type of a gcc2
6440 builtin and then its argument prototype would still apply. */
6447 if { (eval echo configure
:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6449 eval "ac_cv_lib_$ac_lib_var=yes"
6451 echo "configure: failed program was:" >&5
6452 cat conftest.
$ac_ext >&5
6454 eval "ac_cv_lib_$ac_lib_var=no"
6457 LIBS
="$ac_save_LIBS"
6460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 LIBS
="$LIBS -lresolv"
6463 cat >> confdefs.h
<<\EOF
6464 #define HAVE_STRCASECMP 1
6468 echo "$ac_t""no" 1>&6
6474 # Check for the functions putprpwnam, set_auth_parameters,
6475 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6476 # Needed for OSF1 and HPUX.
6480 *-lsecurity*) for ac_func
in putprpwnam
6482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6483 echo "configure:6484: checking for $ac_func" >&5
6484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6487 cat > conftest.
$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 /* System header to define __stub macros and hopefully few prototypes,
6491 which can conflict with char $ac_func(); below. */
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 /* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6500 /* The GNU C library defines this for functions which it implements
6501 to always fail with ENOSYS. Some functions are actually named
6502 something starting with __ and the normal name is an alias. */
6503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6511 if { (eval echo configure
:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6513 eval "ac_cv_func_$ac_func=yes"
6515 echo "configure: failed program was:" >&5
6516 cat conftest.
$ac_ext >&5
6518 eval "ac_cv_func_$ac_func=no"
6523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6524 echo "$ac_t""yes" 1>&6
6525 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6526 cat >> confdefs.h
<<EOF
6527 #define $ac_tr_func 1
6531 echo "$ac_t""no" 1>&6
6535 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6536 echo "configure:6537: checking for putprpwnam in -lsecurity" >&5
6537 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6541 ac_save_LIBS
="$LIBS"
6542 LIBS
="-lsecurity $LIBS"
6543 cat > conftest.
$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* Override any gcc2 internal prototype to avoid an error. */
6547 /* We use char because int might match the return type of a gcc2
6548 builtin and then its argument prototype would still apply. */
6555 if { (eval echo configure
:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6557 eval "ac_cv_lib_$ac_lib_var=yes"
6559 echo "configure: failed program was:" >&5
6560 cat conftest.
$ac_ext >&5
6562 eval "ac_cv_lib_$ac_lib_var=no"
6565 LIBS
="$ac_save_LIBS"
6568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6569 echo "$ac_t""yes" 1>&6
6570 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6571 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6572 cat >> confdefs.h
<<EOF
6573 #define $ac_tr_lib 1
6576 LIBS
="-lsecurity $LIBS"
6579 echo "$ac_t""no" 1>&6
6582 for ac_func
in putprpwnam
6584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_func" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.
$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func(); below. */
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6613 if { (eval echo configure
:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6615 eval "ac_cv_func_$ac_func=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.
$ac_ext >&5
6620 eval "ac_cv_func_$ac_func=no"
6625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6628 cat >> confdefs.h
<<EOF
6629 #define $ac_tr_func 1
6633 echo "$ac_t""no" 1>&6
6641 *-lsec*) for ac_func
in putprpwnam
6643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6644 echo "configure:6645: checking for $ac_func" >&5
6645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6648 cat > conftest.
$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6651 /* System header to define __stub macros and hopefully few prototypes,
6652 which can conflict with char $ac_func(); below. */
6654 /* Override any gcc2 internal prototype to avoid an error. */
6655 /* We use char because int might match the return type of a gcc2
6656 builtin and then its argument prototype would still apply. */
6661 /* The GNU C library defines this for functions which it implements
6662 to always fail with ENOSYS. Some functions are actually named
6663 something starting with __ and the normal name is an alias. */
6664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6672 if { (eval echo configure
:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6674 eval "ac_cv_func_$ac_func=yes"
6676 echo "configure: failed program was:" >&5
6677 cat conftest.
$ac_ext >&5
6679 eval "ac_cv_func_$ac_func=no"
6684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6685 echo "$ac_t""yes" 1>&6
6686 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6687 cat >> confdefs.h
<<EOF
6688 #define $ac_tr_func 1
6692 echo "$ac_t""no" 1>&6
6696 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6697 echo "configure:6698: checking for putprpwnam in -lsec" >&5
6698 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6
6702 ac_save_LIBS
="$LIBS"
6704 cat > conftest.
$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* Override any gcc2 internal prototype to avoid an error. */
6708 /* We use char because int might match the return type of a gcc2
6709 builtin and then its argument prototype would still apply. */
6716 if { (eval echo configure
:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6718 eval "ac_cv_lib_$ac_lib_var=yes"
6720 echo "configure: failed program was:" >&5
6721 cat conftest.
$ac_ext >&5
6723 eval "ac_cv_lib_$ac_lib_var=no"
6726 LIBS
="$ac_save_LIBS"
6729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6730 echo "$ac_t""yes" 1>&6
6731 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6732 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6733 cat >> confdefs.h
<<EOF
6734 #define $ac_tr_lib 1
6740 echo "$ac_t""no" 1>&6
6743 for ac_func
in putprpwnam
6745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6746 echo "configure:6747: checking for $ac_func" >&5
6747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6750 cat > conftest.
$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char $ac_func(); below. */
6756 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6763 /* The GNU C library defines this for functions which it implements
6764 to always fail with ENOSYS. Some functions are actually named
6765 something starting with __ and the normal name is an alias. */
6766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6774 if { (eval echo configure
:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6776 eval "ac_cv_func_$ac_func=yes"
6778 echo "configure: failed program was:" >&5
6779 cat conftest.
$ac_ext >&5
6781 eval "ac_cv_func_$ac_func=no"
6786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6789 cat >> confdefs.h
<<EOF
6790 #define $ac_tr_func 1
6794 echo "$ac_t""no" 1>&6
6803 *-lsecurity*) for ac_func
in set_auth_parameters
6805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6806 echo "configure:6807: checking for $ac_func" >&5
6807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6810 cat > conftest.
$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* System header to define __stub macros and hopefully few prototypes,
6814 which can conflict with char $ac_func(); below. */
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6834 if { (eval echo configure
:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6836 eval "ac_cv_func_$ac_func=yes"
6838 echo "configure: failed program was:" >&5
6839 cat conftest.
$ac_ext >&5
6841 eval "ac_cv_func_$ac_func=no"
6846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6849 cat >> confdefs.h
<<EOF
6850 #define $ac_tr_func 1
6854 echo "$ac_t""no" 1>&6
6858 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6859 echo "configure:6860: checking for set_auth_parameters in -lsecurity" >&5
6860 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 ac_save_LIBS
="$LIBS"
6865 LIBS
="-lsecurity $LIBS"
6866 cat > conftest.
$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char set_auth_parameters();
6875 set_auth_parameters()
6878 if { (eval echo configure
:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6880 eval "ac_cv_lib_$ac_lib_var=yes"
6882 echo "configure: failed program was:" >&5
6883 cat conftest.
$ac_ext >&5
6885 eval "ac_cv_lib_$ac_lib_var=no"
6888 LIBS
="$ac_save_LIBS"
6891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6895 cat >> confdefs.h
<<EOF
6896 #define $ac_tr_lib 1
6899 LIBS
="-lsecurity $LIBS"
6902 echo "$ac_t""no" 1>&6
6905 for ac_func
in set_auth_parameters
6907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6908 echo "configure:6909: checking for $ac_func" >&5
6909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6912 cat > conftest.
$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6915 /* System header to define __stub macros and hopefully few prototypes,
6916 which can conflict with char $ac_func(); below. */
6918 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6925 /* The GNU C library defines this for functions which it implements
6926 to always fail with ENOSYS. Some functions are actually named
6927 something starting with __ and the normal name is an alias. */
6928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6936 if { (eval echo configure
:6937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6938 eval "ac_cv_func_$ac_func=yes"
6940 echo "configure: failed program was:" >&5
6941 cat conftest.
$ac_ext >&5
6943 eval "ac_cv_func_$ac_func=no"
6948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6949 echo "$ac_t""yes" 1>&6
6950 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6951 cat >> confdefs.h
<<EOF
6952 #define $ac_tr_func 1
6956 echo "$ac_t""no" 1>&6
6964 *-lsec*) for ac_func
in set_auth_parameters
6966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6967 echo "configure:6968: checking for $ac_func" >&5
6968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 cat > conftest.
$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char $ac_func(); below. */
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6995 if { (eval echo configure
:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6997 eval "ac_cv_func_$ac_func=yes"
6999 echo "configure: failed program was:" >&5
7000 cat conftest.
$ac_ext >&5
7002 eval "ac_cv_func_$ac_func=no"
7007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7008 echo "$ac_t""yes" 1>&6
7009 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7010 cat >> confdefs.h
<<EOF
7011 #define $ac_tr_func 1
7015 echo "$ac_t""no" 1>&6
7019 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7020 echo "configure:7021: checking for set_auth_parameters in -lsec" >&5
7021 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 ac_save_LIBS
="$LIBS"
7027 cat > conftest.
$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7033 char set_auth_parameters();
7036 set_auth_parameters()
7039 if { (eval echo configure
:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7041 eval "ac_cv_lib_$ac_lib_var=yes"
7043 echo "configure: failed program was:" >&5
7044 cat conftest.
$ac_ext >&5
7046 eval "ac_cv_lib_$ac_lib_var=no"
7049 LIBS
="$ac_save_LIBS"
7052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7056 cat >> confdefs.h
<<EOF
7057 #define $ac_tr_lib 1
7063 echo "$ac_t""no" 1>&6
7066 for ac_func
in set_auth_parameters
7068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7069 echo "configure:7070: checking for $ac_func" >&5
7070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7073 cat > conftest.
$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7076 /* System header to define __stub macros and hopefully few prototypes,
7077 which can conflict with char $ac_func(); below. */
7079 /* Override any gcc2 internal prototype to avoid an error. */
7080 /* We use char because int might match the return type of a gcc2
7081 builtin and then its argument prototype would still apply. */
7086 /* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */
7089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7097 if { (eval echo configure
:7098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7099 eval "ac_cv_func_$ac_func=yes"
7101 echo "configure: failed program was:" >&5
7102 cat conftest.
$ac_ext >&5
7104 eval "ac_cv_func_$ac_func=no"
7109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7110 echo "$ac_t""yes" 1>&6
7111 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7112 cat >> confdefs.h
<<EOF
7113 #define $ac_tr_func 1
7117 echo "$ac_t""no" 1>&6
7125 # UnixWare 7.x has its getspnam in -lgen
7127 *-lgen*) for ac_func
in getspnam
7129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7130 echo "configure:7131: checking for $ac_func" >&5
7131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7134 cat > conftest.
$ac_ext <<EOF
7135 #line 7136 "configure"
7136 #include "confdefs.h"
7137 /* System header to define __stub macros and hopefully few prototypes,
7138 which can conflict with char $ac_func(); below. */
7140 /* Override any gcc2 internal prototype to avoid an error. */
7141 /* We use char because int might match the return type of a gcc2
7142 builtin and then its argument prototype would still apply. */
7147 /* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
7150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7158 if { (eval echo configure
:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7160 eval "ac_cv_func_$ac_func=yes"
7162 echo "configure: failed program was:" >&5
7163 cat conftest.
$ac_ext >&5
7165 eval "ac_cv_func_$ac_func=no"
7170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7173 cat >> confdefs.h
<<EOF
7174 #define $ac_tr_func 1
7178 echo "$ac_t""no" 1>&6
7182 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7183 echo "configure:7184: checking for getspnam in -lgen" >&5
7184 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7186 echo $ac_n "(cached) $ac_c" 1>&6
7188 ac_save_LIBS
="$LIBS"
7190 cat > conftest.
$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 /* Override any gcc2 internal prototype to avoid an error. */
7194 /* We use char because int might match the return type of a gcc2
7195 builtin and then its argument prototype would still apply. */
7202 if { (eval echo configure
:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7204 eval "ac_cv_lib_$ac_lib_var=yes"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.
$ac_ext >&5
7209 eval "ac_cv_lib_$ac_lib_var=no"
7212 LIBS
="$ac_save_LIBS"
7215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7216 echo "$ac_t""yes" 1>&6
7217 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7219 cat >> confdefs.h
<<EOF
7220 #define $ac_tr_lib 1
7226 echo "$ac_t""no" 1>&6
7229 for ac_func
in getspnam
7231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_func" >&5
7233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7236 cat > conftest.
$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* System header to define __stub macros and hopefully few prototypes,
7240 which can conflict with char $ac_func(); below. */
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260 if { (eval echo configure
:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7262 eval "ac_cv_func_$ac_func=yes"
7264 echo "configure: failed program was:" >&5
7265 cat conftest.
$ac_ext >&5
7267 eval "ac_cv_func_$ac_func=no"
7272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7275 cat >> confdefs.h
<<EOF
7276 #define $ac_tr_func 1
7280 echo "$ac_t""no" 1>&6
7289 *-lsecurity*) for ac_func
in getspnam
7291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7292 echo "configure:7293: checking for $ac_func" >&5
7293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7296 cat > conftest.
$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* System header to define __stub macros and hopefully few prototypes,
7300 which can conflict with char $ac_func(); below. */
7302 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7309 /* The GNU C library defines this for functions which it implements
7310 to always fail with ENOSYS. Some functions are actually named
7311 something starting with __ and the normal name is an alias. */
7312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7320 if { (eval echo configure
:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7322 eval "ac_cv_func_$ac_func=yes"
7324 echo "configure: failed program was:" >&5
7325 cat conftest.
$ac_ext >&5
7327 eval "ac_cv_func_$ac_func=no"
7332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7333 echo "$ac_t""yes" 1>&6
7334 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7335 cat >> confdefs.h
<<EOF
7336 #define $ac_tr_func 1
7340 echo "$ac_t""no" 1>&6
7344 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7345 echo "configure:7346: checking for getspnam in -lsecurity" >&5
7346 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7350 ac_save_LIBS
="$LIBS"
7351 LIBS
="-lsecurity $LIBS"
7352 cat > conftest.
$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 /* Override any gcc2 internal prototype to avoid an error. */
7356 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7364 if { (eval echo configure
:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7366 eval "ac_cv_lib_$ac_lib_var=yes"
7368 echo "configure: failed program was:" >&5
7369 cat conftest.
$ac_ext >&5
7371 eval "ac_cv_lib_$ac_lib_var=no"
7374 LIBS
="$ac_save_LIBS"
7377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7378 echo "$ac_t""yes" 1>&6
7379 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7381 cat >> confdefs.h
<<EOF
7382 #define $ac_tr_lib 1
7385 LIBS
="-lsecurity $LIBS"
7388 echo "$ac_t""no" 1>&6
7391 for ac_func
in getspnam
7393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7394 echo "configure:7395: checking for $ac_func" >&5
7395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7398 cat > conftest.
$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* System header to define __stub macros and hopefully few prototypes,
7402 which can conflict with char $ac_func(); below. */
7404 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7411 /* The GNU C library defines this for functions which it implements
7412 to always fail with ENOSYS. Some functions are actually named
7413 something starting with __ and the normal name is an alias. */
7414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7422 if { (eval echo configure
:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7424 eval "ac_cv_func_$ac_func=yes"
7426 echo "configure: failed program was:" >&5
7427 cat conftest.
$ac_ext >&5
7429 eval "ac_cv_func_$ac_func=no"
7434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7437 cat >> confdefs.h
<<EOF
7438 #define $ac_tr_func 1
7442 echo "$ac_t""no" 1>&6
7450 *-lsec*) for ac_func
in getspnam
7452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7453 echo "configure:7454: checking for $ac_func" >&5
7454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7457 cat > conftest.
$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* System header to define __stub macros and hopefully few prototypes,
7461 which can conflict with char $ac_func(); below. */
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7470 /* The GNU C library defines this for functions which it implements
7471 to always fail with ENOSYS. Some functions are actually named
7472 something starting with __ and the normal name is an alias. */
7473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7481 if { (eval echo configure
:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7483 eval "ac_cv_func_$ac_func=yes"
7485 echo "configure: failed program was:" >&5
7486 cat conftest.
$ac_ext >&5
7488 eval "ac_cv_func_$ac_func=no"
7493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7496 cat >> confdefs.h
<<EOF
7497 #define $ac_tr_func 1
7501 echo "$ac_t""no" 1>&6
7505 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7506 echo "configure:7507: checking for getspnam in -lsec" >&5
7507 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7511 ac_save_LIBS
="$LIBS"
7513 cat > conftest.
$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 /* Override any gcc2 internal prototype to avoid an error. */
7517 /* We use char because int might match the return type of a gcc2
7518 builtin and then its argument prototype would still apply. */
7525 if { (eval echo configure
:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7527 eval "ac_cv_lib_$ac_lib_var=yes"
7529 echo "configure: failed program was:" >&5
7530 cat conftest.
$ac_ext >&5
7532 eval "ac_cv_lib_$ac_lib_var=no"
7535 LIBS
="$ac_save_LIBS"
7538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7539 echo "$ac_t""yes" 1>&6
7540 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7542 cat >> confdefs.h
<<EOF
7543 #define $ac_tr_lib 1
7549 echo "$ac_t""no" 1>&6
7552 for ac_func
in getspnam
7554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7555 echo "configure:7556: checking for $ac_func" >&5
7556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7559 cat > conftest.
$ac_ext <<EOF
7560 #line 7561 "configure"
7561 #include "confdefs.h"
7562 /* System header to define __stub macros and hopefully few prototypes,
7563 which can conflict with char $ac_func(); below. */
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7572 /* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7583 if { (eval echo configure
:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7585 eval "ac_cv_func_$ac_func=yes"
7587 echo "configure: failed program was:" >&5
7588 cat conftest.
$ac_ext >&5
7590 eval "ac_cv_func_$ac_func=no"
7595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7598 cat >> confdefs.h
<<EOF
7599 #define $ac_tr_func 1
7603 echo "$ac_t""no" 1>&6
7612 *-lsecurity*) for ac_func
in bigcrypt
7614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7615 echo "configure:7616: checking for $ac_func" >&5
7616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 cat > conftest.
$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* System header to define __stub macros and hopefully few prototypes,
7623 which can conflict with char $ac_func(); below. */
7625 /* Override any gcc2 internal prototype to avoid an error. */
7626 /* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7632 /* The GNU C library defines this for functions which it implements
7633 to always fail with ENOSYS. Some functions are actually named
7634 something starting with __ and the normal name is an alias. */
7635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7643 if { (eval echo configure
:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7645 eval "ac_cv_func_$ac_func=yes"
7647 echo "configure: failed program was:" >&5
7648 cat conftest.
$ac_ext >&5
7650 eval "ac_cv_func_$ac_func=no"
7655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7656 echo "$ac_t""yes" 1>&6
7657 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7658 cat >> confdefs.h
<<EOF
7659 #define $ac_tr_func 1
7663 echo "$ac_t""no" 1>&6
7667 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7668 echo "configure:7669: checking for bigcrypt in -lsecurity" >&5
7669 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7673 ac_save_LIBS
="$LIBS"
7674 LIBS
="-lsecurity $LIBS"
7675 cat > conftest.
$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* Override any gcc2 internal prototype to avoid an error. */
7679 /* We use char because int might match the return type of a gcc2
7680 builtin and then its argument prototype would still apply. */
7687 if { (eval echo configure
:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7689 eval "ac_cv_lib_$ac_lib_var=yes"
7691 echo "configure: failed program was:" >&5
7692 cat conftest.
$ac_ext >&5
7694 eval "ac_cv_lib_$ac_lib_var=no"
7697 LIBS
="$ac_save_LIBS"
7700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7701 echo "$ac_t""yes" 1>&6
7702 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7704 cat >> confdefs.h
<<EOF
7705 #define $ac_tr_lib 1
7708 LIBS
="-lsecurity $LIBS"
7711 echo "$ac_t""no" 1>&6
7714 for ac_func
in bigcrypt
7716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7717 echo "configure:7718: checking for $ac_func" >&5
7718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7721 cat > conftest.
$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char $ac_func(); below. */
7727 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7734 /* The GNU C library defines this for functions which it implements
7735 to always fail with ENOSYS. Some functions are actually named
7736 something starting with __ and the normal name is an alias. */
7737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7745 if { (eval echo configure
:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7747 eval "ac_cv_func_$ac_func=yes"
7749 echo "configure: failed program was:" >&5
7750 cat conftest.
$ac_ext >&5
7752 eval "ac_cv_func_$ac_func=no"
7757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7758 echo "$ac_t""yes" 1>&6
7759 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7760 cat >> confdefs.h
<<EOF
7761 #define $ac_tr_func 1
7765 echo "$ac_t""no" 1>&6
7773 *-lsec*) for ac_func
in bigcrypt
7775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7776 echo "configure:7777: checking for $ac_func" >&5
7777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7780 cat > conftest.
$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char $ac_func(); below. */
7786 /* Override any gcc2 internal prototype to avoid an error. */
7787 /* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
7793 /* The GNU C library defines this for functions which it implements
7794 to always fail with ENOSYS. Some functions are actually named
7795 something starting with __ and the normal name is an alias. */
7796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7804 if { (eval echo configure
:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7806 eval "ac_cv_func_$ac_func=yes"
7808 echo "configure: failed program was:" >&5
7809 cat conftest.
$ac_ext >&5
7811 eval "ac_cv_func_$ac_func=no"
7816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7817 echo "$ac_t""yes" 1>&6
7818 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7819 cat >> confdefs.h
<<EOF
7820 #define $ac_tr_func 1
7824 echo "$ac_t""no" 1>&6
7828 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7829 echo "configure:7830: checking for bigcrypt in -lsec" >&5
7830 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7834 ac_save_LIBS
="$LIBS"
7836 cat > conftest.
$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* Override any gcc2 internal prototype to avoid an error. */
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7848 if { (eval echo configure
:7849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7850 eval "ac_cv_lib_$ac_lib_var=yes"
7852 echo "configure: failed program was:" >&5
7853 cat conftest.
$ac_ext >&5
7855 eval "ac_cv_lib_$ac_lib_var=no"
7858 LIBS
="$ac_save_LIBS"
7861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7865 cat >> confdefs.h
<<EOF
7866 #define $ac_tr_lib 1
7872 echo "$ac_t""no" 1>&6
7875 for ac_func
in bigcrypt
7877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_func" >&5
7879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 cat > conftest.
$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7885 /* System header to define __stub macros and hopefully few prototypes,
7886 which can conflict with char $ac_func(); below. */
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7895 /* The GNU C library defines this for functions which it implements
7896 to always fail with ENOSYS. Some functions are actually named
7897 something starting with __ and the normal name is an alias. */
7898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7906 if { (eval echo configure
:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7908 eval "ac_cv_func_$ac_func=yes"
7910 echo "configure: failed program was:" >&5
7911 cat conftest.
$ac_ext >&5
7913 eval "ac_cv_func_$ac_func=no"
7918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7921 cat >> confdefs.h
<<EOF
7922 #define $ac_tr_func 1
7926 echo "$ac_t""no" 1>&6
7935 *-lsecurity*) for ac_func
in getprpwnam
7937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7938 echo "configure:7939: checking for $ac_func" >&5
7939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7942 cat > conftest.
$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945 /* System header to define __stub macros and hopefully few prototypes,
7946 which can conflict with char $ac_func(); below. */
7948 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7955 /* The GNU C library defines this for functions which it implements
7956 to always fail with ENOSYS. Some functions are actually named
7957 something starting with __ and the normal name is an alias. */
7958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7966 if { (eval echo configure
:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7968 eval "ac_cv_func_$ac_func=yes"
7970 echo "configure: failed program was:" >&5
7971 cat conftest.
$ac_ext >&5
7973 eval "ac_cv_func_$ac_func=no"
7978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7979 echo "$ac_t""yes" 1>&6
7980 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7981 cat >> confdefs.h
<<EOF
7982 #define $ac_tr_func 1
7986 echo "$ac_t""no" 1>&6
7990 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7991 echo "configure:7992: checking for getprpwnam in -lsecurity" >&5
7992 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7994 echo $ac_n "(cached) $ac_c" 1>&6
7996 ac_save_LIBS
="$LIBS"
7997 LIBS
="-lsecurity $LIBS"
7998 cat > conftest.
$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 /* Override any gcc2 internal prototype to avoid an error. */
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8010 if { (eval echo configure
:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8012 eval "ac_cv_lib_$ac_lib_var=yes"
8014 echo "configure: failed program was:" >&5
8015 cat conftest.
$ac_ext >&5
8017 eval "ac_cv_lib_$ac_lib_var=no"
8020 LIBS
="$ac_save_LIBS"
8023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8024 echo "$ac_t""yes" 1>&6
8025 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8027 cat >> confdefs.h
<<EOF
8028 #define $ac_tr_lib 1
8031 LIBS
="-lsecurity $LIBS"
8034 echo "$ac_t""no" 1>&6
8037 for ac_func
in getprpwnam
8039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8040 echo "configure:8041: checking for $ac_func" >&5
8041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8044 cat > conftest.
$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047 /* System header to define __stub macros and hopefully few prototypes,
8048 which can conflict with char $ac_func(); below. */
8050 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8057 /* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8068 if { (eval echo configure
:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8070 eval "ac_cv_func_$ac_func=yes"
8072 echo "configure: failed program was:" >&5
8073 cat conftest.
$ac_ext >&5
8075 eval "ac_cv_func_$ac_func=no"
8080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8081 echo "$ac_t""yes" 1>&6
8082 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8083 cat >> confdefs.h
<<EOF
8084 #define $ac_tr_func 1
8088 echo "$ac_t""no" 1>&6
8096 *-lsec*) for ac_func
in getprpwnam
8098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8099 echo "configure:8100: checking for $ac_func" >&5
8100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8103 cat > conftest.
$ac_ext <<EOF
8104 #line 8105 "configure"
8105 #include "confdefs.h"
8106 /* System header to define __stub macros and hopefully few prototypes,
8107 which can conflict with char $ac_func(); below. */
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8116 /* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
8119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8127 if { (eval echo configure
:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8129 eval "ac_cv_func_$ac_func=yes"
8131 echo "configure: failed program was:" >&5
8132 cat conftest.
$ac_ext >&5
8134 eval "ac_cv_func_$ac_func=no"
8139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8140 echo "$ac_t""yes" 1>&6
8141 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8142 cat >> confdefs.h
<<EOF
8143 #define $ac_tr_func 1
8147 echo "$ac_t""no" 1>&6
8151 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8152 echo "configure:8153: checking for getprpwnam in -lsec" >&5
8153 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8157 ac_save_LIBS
="$LIBS"
8159 cat > conftest.
$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8171 if { (eval echo configure
:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8173 eval "ac_cv_lib_$ac_lib_var=yes"
8175 echo "configure: failed program was:" >&5
8176 cat conftest.
$ac_ext >&5
8178 eval "ac_cv_lib_$ac_lib_var=no"
8181 LIBS
="$ac_save_LIBS"
8184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8188 cat >> confdefs.h
<<EOF
8189 #define $ac_tr_lib 1
8195 echo "$ac_t""no" 1>&6
8198 for ac_func
in getprpwnam
8200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8201 echo "configure:8202: checking for $ac_func" >&5
8202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8205 cat > conftest.
$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char $ac_func(); below. */
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8218 /* The GNU C library defines this for functions which it implements
8219 to always fail with ENOSYS. Some functions are actually named
8220 something starting with __ and the normal name is an alias. */
8221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8229 if { (eval echo configure
:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8231 eval "ac_cv_func_$ac_func=yes"
8233 echo "configure: failed program was:" >&5
8234 cat conftest.
$ac_ext >&5
8236 eval "ac_cv_func_$ac_func=no"
8241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8242 echo "$ac_t""yes" 1>&6
8243 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8244 cat >> confdefs.h
<<EOF
8245 #define $ac_tr_func 1
8249 echo "$ac_t""no" 1>&6
8257 # this bit needs to be modified for each OS that is suported by
8258 # smbwrapper. You need to specify how to created a shared library and
8259 # how to compile C code to produce PIC object files
8261 # these are the defaults, good for lots of systems
8268 # Assume non-shared by default and override below
8271 # and these are for particular systems
8273 *linux
*) cat >> confdefs.h
<<\EOF
8281 *solaris
*) cat >> confdefs.h
<<\EOF
8286 *sunos
*) cat >> confdefs.h
<<\EOF
8291 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8293 *irix
*) cat >> confdefs.h
<<\EOF
8298 *irix6
*) cat >> confdefs.h
<<\EOF
8304 ATTEMPT_WRAP32_BUILD
=yes
8306 *aix
*) cat >> confdefs.h
<<\EOF
8310 # AIX is too ugly for now
8312 *hpux
*) cat >> confdefs.h
<<\EOF
8317 # Use special PIC flags for the native HP-UX compiler.
8318 if test $ac_cv_prog_cc_Ae = yes; then
8323 *qnx
*) cat >> confdefs.h
<<\EOF
8327 *osf
*) cat >> confdefs.h
<<\EOF
8331 *sco
*) cat >> confdefs.h
<<\EOF
8335 *next2
*) cat >> confdefs.h
<<\EOF
8339 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8340 set dummy
groff; ac_word
=$2
8341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8342 echo "configure:8343: checking for $ac_word" >&5
8343 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8346 if test -n "$ROFF"; then
8347 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8349 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8351 for ac_dir
in $ac_dummy; do
8352 test -z "$ac_dir" && ac_dir
=.
8353 if test -f $ac_dir/$ac_word; then
8354 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8361 ROFF
="$ac_cv_prog_ROFF"
8362 if test -n "$ROFF"; then
8363 echo "$ac_t""$ROFF" 1>&6
8365 echo "$ac_t""no" 1>&6
8370 *-univel-*) if test "$GCC" != yes ; then
8371 cat >> confdefs.h
<<\EOF
8372 #define HAVE_MEMSET 1
8378 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8379 #define RELIANTUNIX 1
8385 if test "$GCC" != yes ; then
8386 cat >> confdefs.h
<<\EOF
8387 #define HAVE_MEMSET 1
8395 # try to work out how to produce pic code with this compiler
8396 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8397 echo "configure:8398: checking whether ${CC-cc} accepts -fpic" >&5
8398 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8399 echo $ac_n "(cached) $ac_c" 1>&6
8401 echo 'void f(){}' > conftest.c
8402 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8403 ac_cv_prog_cc_fpic
=yes
8405 ac_cv_prog_cc_fpic
=no
8411 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8412 if test $ac_cv_prog_cc_fpic = yes; then
8415 if test x
$PICFLAG = x
; then
8416 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8417 echo "configure:8418: checking whether ${CC-cc} accepts -KPIC" >&5
8418 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8421 echo 'void f(){}' > conftest.c
8422 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8423 ac_cv_prog_cc_KPIC
=yes
8425 ac_cv_prog_cc_KPIC
=no
8431 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8432 if test $ac_cv_prog_cc_KPIC = yes; then
8436 if test x
$PICFLAG = x
; then
8437 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8438 echo "configure:8439: checking whether ${CC-cc} accepts -Kpic" >&5
8439 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8442 echo 'void f(){}' > conftest.c
8443 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8444 ac_cv_prog_cc_Kpic
=yes
8446 ac_cv_prog_cc_Kpic
=no
8452 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8453 if test $ac_cv_prog_cc_Kpic = yes; then
8460 echo $ac_n "checking for long long""... $ac_c" 1>&6
8461 echo "configure:8462: checking for long long" >&5
8462 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8466 if test "$cross_compiling" = yes; then
8467 samba_cv_have_longlong
=cross
8469 cat > conftest.
$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8473 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8475 if { (eval echo configure
:8476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8477 samba_cv_have_longlong
=yes
8479 echo "configure: failed program was:" >&5
8480 cat conftest.
$ac_ext >&5
8482 samba_cv_have_longlong
=no
8489 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8490 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8491 cat >> confdefs.h
<<\EOF
8492 #define HAVE_LONGLONG 1
8498 # Check if the compiler supports the LL prefix on long long integers.
8501 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8502 echo "configure:8503: checking for LL suffix on long long integers" >&5
8503 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8504 echo $ac_n "(cached) $ac_c" 1>&6
8507 cat > conftest.
$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8512 long long i = 0x8000000000LL
8515 if { (eval echo configure
:8516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8517 samba_cv_compiler_supports_ll
=yes
8519 echo "configure: failed program was:" >&5
8520 cat conftest.
$ac_ext >&5
8522 samba_cv_compiler_supports_ll
=no
8527 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8528 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8529 cat >> confdefs.h
<<\EOF
8530 #define COMPILER_SUPPORTS_LL 1
8536 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8537 echo "configure:8538: checking for 64 bit off_t" >&5
8538 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8539 echo $ac_n "(cached) $ac_c" 1>&6
8542 if test "$cross_compiling" = yes; then
8543 samba_cv_SIZEOF_OFF_T
=cross
8545 cat > conftest.
$ac_ext <<EOF
8546 #line 8547 "configure"
8547 #include "confdefs.h"
8549 #include <sys/stat.h>
8550 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8552 if { (eval echo configure
:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8554 samba_cv_SIZEOF_OFF_T
=yes
8556 echo "configure: failed program was:" >&5
8557 cat conftest.
$ac_ext >&5
8559 samba_cv_SIZEOF_OFF_T
=no
8566 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8567 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8568 cat >> confdefs.h
<<\EOF
8569 #define SIZEOF_OFF_T 8
8574 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8575 echo "configure:8576: checking for off64_t" >&5
8576 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8580 if test "$cross_compiling" = yes; then
8581 samba_cv_HAVE_OFF64_T
=cross
8583 cat > conftest.
$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8587 #if defined(HAVE_UNISTD_H)
8591 #include <sys/stat.h>
8592 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8594 if { (eval echo configure
:8595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8596 samba_cv_HAVE_OFF64_T
=yes
8598 echo "configure: failed program was:" >&5
8599 cat conftest.
$ac_ext >&5
8601 samba_cv_HAVE_OFF64_T
=no
8608 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8609 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8610 cat >> confdefs.h
<<\EOF
8611 #define HAVE_OFF64_T 1
8616 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8617 echo "configure:8618: checking for 64 bit ino_t" >&5
8618 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8619 echo $ac_n "(cached) $ac_c" 1>&6
8622 if test "$cross_compiling" = yes; then
8623 samba_cv_SIZEOF_INO_T
=cross
8625 cat > conftest.
$ac_ext <<EOF
8626 #line 8627 "configure"
8627 #include "confdefs.h"
8629 #include <sys/stat.h>
8630 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8632 if { (eval echo configure
:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8634 samba_cv_SIZEOF_INO_T
=yes
8636 echo "configure: failed program was:" >&5
8637 cat conftest.
$ac_ext >&5
8639 samba_cv_SIZEOF_INO_T
=no
8646 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8647 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8648 cat >> confdefs.h
<<\EOF
8649 #define SIZEOF_INO_T 8
8654 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8655 echo "configure:8656: checking for ino64_t" >&5
8656 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8657 echo $ac_n "(cached) $ac_c" 1>&6
8660 if test "$cross_compiling" = yes; then
8661 samba_cv_HAVE_INO64_T
=cross
8663 cat > conftest.
$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8667 #if defined(HAVE_UNISTD_H)
8671 #include <sys/stat.h>
8672 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8674 if { (eval echo configure
:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8676 samba_cv_HAVE_INO64_T
=yes
8678 echo "configure: failed program was:" >&5
8679 cat conftest.
$ac_ext >&5
8681 samba_cv_HAVE_INO64_T
=no
8688 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8689 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8690 cat >> confdefs.h
<<\EOF
8691 #define HAVE_INO64_T 1
8696 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8697 echo "configure:8698: checking for struct dirent64" >&5
8698 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8702 cat > conftest.
$ac_ext <<EOF
8703 #line 8704 "configure"
8704 #include "confdefs.h"
8706 #if defined(HAVE_UNISTD_H)
8709 #include <sys/types.h>
8715 if { (eval echo configure
:8716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8717 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8719 echo "configure: failed program was:" >&5
8720 cat conftest.
$ac_ext >&5
8722 samba_cv_HAVE_STRUCT_DIRENT64
=no
8727 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8728 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8729 cat >> confdefs.h
<<\EOF
8730 #define HAVE_STRUCT_DIRENT64 1
8735 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8736 echo "configure:8737: checking for unsigned char" >&5
8737 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8741 if test "$cross_compiling" = yes; then
8742 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8744 cat > conftest.
$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8748 main() { char c; c=250; exit((c > 0)?0:1); }
8750 if { (eval echo configure
:8751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8752 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8754 echo "configure: failed program was:" >&5
8755 cat conftest.
$ac_ext >&5
8757 samba_cv_HAVE_UNSIGNED_CHAR
=no
8764 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8765 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8766 cat >> confdefs.h
<<\EOF
8767 #define HAVE_UNSIGNED_CHAR 1
8772 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8773 echo "configure:8774: checking for sin_len in sock" >&5
8774 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8775 echo $ac_n "(cached) $ac_c" 1>&6
8778 cat > conftest.
$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 #include <sys/types.h>
8782 #include <sys/socket.h>
8783 #include <netinet/in.h>
8785 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8788 if { (eval echo configure
:8789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8790 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8792 echo "configure: failed program was:" >&5
8793 cat conftest.
$ac_ext >&5
8795 samba_cv_HAVE_SOCK_SIN_LEN
=no
8800 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8801 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8802 cat >> confdefs.h
<<\EOF
8803 #define HAVE_SOCK_SIN_LEN 1
8808 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8809 echo "configure:8810: checking whether seekdir returns void" >&5
8810 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8814 cat > conftest.
$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 #include <sys/types.h>
8819 void seekdir(DIR *d, long loc) { return; }
8824 if { (eval echo configure
:8825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8826 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8828 echo "configure: failed program was:" >&5
8829 cat conftest.
$ac_ext >&5
8831 samba_cv_SEEKDIR_RETURNS_VOID
=no
8836 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8837 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8838 cat >> confdefs.h
<<\EOF
8839 #define SEEKDIR_RETURNS_VOID 1
8844 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8845 echo "configure:8846: checking for __FILE__ macro" >&5
8846 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8850 cat > conftest.
$ac_ext <<EOF
8851 #line 8852 "configure"
8852 #include "confdefs.h"
8855 printf("%s\n", __FILE__);
8858 if { (eval echo configure
:8859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8860 samba_cv_HAVE_FILE_MACRO
=yes
8862 echo "configure: failed program was:" >&5
8863 cat conftest.
$ac_ext >&5
8865 samba_cv_HAVE_FILE_MACRO
=no
8870 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8871 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8872 cat >> confdefs.h
<<\EOF
8873 #define HAVE_FILE_MACRO 1
8878 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8879 echo "configure:8880: checking for __FUNCTION__ macro" >&5
8880 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8884 cat > conftest.
$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8889 printf("%s\n", __FUNCTION__);
8892 if { (eval echo configure
:8893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8894 samba_cv_HAVE_FUNCTION_MACRO
=yes
8896 echo "configure: failed program was:" >&5
8897 cat conftest.
$ac_ext >&5
8899 samba_cv_HAVE_FUNCTION_MACRO
=no
8904 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8905 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8906 cat >> confdefs.h
<<\EOF
8907 #define HAVE_FUNCTION_MACRO 1
8912 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8913 echo "configure:8914: checking if gettimeofday takes tz argument" >&5
8914 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8918 if test "$cross_compiling" = yes; then
8919 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8921 cat > conftest.
$ac_ext <<EOF
8922 #line 8923 "configure"
8923 #include "confdefs.h"
8925 #include <sys/time.h>
8927 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8929 if { (eval echo configure
:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8931 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8933 echo "configure: failed program was:" >&5
8934 cat conftest.
$ac_ext >&5
8936 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8943 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8944 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8945 cat >> confdefs.h
<<\EOF
8946 #define HAVE_GETTIMEOFDAY_TZ 1
8951 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8952 echo "configure:8953: checking for C99 vsnprintf" >&5
8953 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8954 echo $ac_n "(cached) $ac_c" 1>&6
8957 if test "$cross_compiling" = yes; then
8958 samba_cv_HAVE_C99_VSNPRINTF
=cross
8960 cat > conftest.
$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8964 #include <sys/types.h>
8966 void foo(const char *format, ...) {
8971 va_start(ap, format);
8972 len = vsnprintf(0, 0, format, ap);
8974 if (len != 5) exit(1);
8976 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8980 main() { foo("hello"); }
8983 if { (eval echo configure
:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8985 samba_cv_HAVE_C99_VSNPRINTF
=yes
8987 echo "configure: failed program was:" >&5
8988 cat conftest.
$ac_ext >&5
8990 samba_cv_HAVE_C99_VSNPRINTF
=no
8997 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8998 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
8999 cat >> confdefs.h
<<\EOF
9000 #define HAVE_C99_VSNPRINTF 1
9005 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9006 echo "configure:9007: checking for broken readdir" >&5
9007 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9011 if test "$cross_compiling" = yes; then
9012 samba_cv_HAVE_BROKEN_READDIR
=cross
9014 cat > conftest.
$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 #include <sys/types.h>
9019 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9020 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9021 di->d_name[0] == 0) exit(0); exit(1);}
9023 if { (eval echo configure
:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9025 samba_cv_HAVE_BROKEN_READDIR
=yes
9027 echo "configure: failed program was:" >&5
9028 cat conftest.
$ac_ext >&5
9030 samba_cv_HAVE_BROKEN_READDIR
=no
9037 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9038 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9039 cat >> confdefs.h
<<\EOF
9040 #define HAVE_BROKEN_READDIR 1
9045 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9046 echo "configure:9047: checking for utimbuf" >&5
9047 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9051 cat > conftest.
$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 #include <sys/types.h>
9057 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9060 if { (eval echo configure
:9061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9062 samba_cv_HAVE_UTIMBUF
=yes
9064 echo "configure: failed program was:" >&5
9065 cat conftest.
$ac_ext >&5
9067 samba_cv_HAVE_UTIMBUF
=no
9072 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9073 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9074 cat >> confdefs.h
<<\EOF
9075 #define HAVE_UTIMBUF 1
9081 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9084 echo "configure:9085: checking for $ac_func" >&5
9085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9088 cat > conftest.
$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 /* System header to define __stub macros and hopefully few prototypes,
9092 which can conflict with char $ac_func(); below. */
9094 /* Override any gcc2 internal prototype to avoid an error. */
9095 /* We use char because int might match the return type of a gcc2
9096 builtin and then its argument prototype would still apply. */
9101 /* The GNU C library defines this for functions which it implements
9102 to always fail with ENOSYS. Some functions are actually named
9103 something starting with __ and the normal name is an alias. */
9104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9112 if { (eval echo configure
:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9114 eval "ac_cv_func_$ac_func=yes"
9116 echo "configure: failed program was:" >&5
9117 cat conftest.
$ac_ext >&5
9119 eval "ac_cv_func_$ac_func=no"
9124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9125 echo "$ac_t""yes" 1>&6
9126 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9127 cat >> confdefs.h
<<EOF
9128 #define $ac_tr_func 1
9132 echo "$ac_t""no" 1>&6
9137 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9138 echo "configure:9139: checking for ut_name in utmp" >&5
9139 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9143 cat > conftest.
$ac_ext <<EOF
9144 #line 9145 "configure"
9145 #include "confdefs.h"
9146 #include <sys/types.h>
9149 struct utmp ut; ut.ut_name[0] = 'a';
9152 if { (eval echo configure
:9153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9154 samba_cv_HAVE_UT_UT_NAME
=yes
9156 echo "configure: failed program was:" >&5
9157 cat conftest.
$ac_ext >&5
9159 samba_cv_HAVE_UT_UT_NAME
=no
9164 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9165 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9166 cat >> confdefs.h
<<\EOF
9167 #define HAVE_UT_UT_NAME 1
9172 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9173 echo "configure:9174: checking for ut_user in utmp" >&5
9174 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9178 cat > conftest.
$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9181 #include <sys/types.h>
9184 struct utmp ut; ut.ut_user[0] = 'a';
9187 if { (eval echo configure
:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9189 samba_cv_HAVE_UT_UT_USER
=yes
9191 echo "configure: failed program was:" >&5
9192 cat conftest.
$ac_ext >&5
9194 samba_cv_HAVE_UT_UT_USER
=no
9199 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9200 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9201 cat >> confdefs.h
<<\EOF
9202 #define HAVE_UT_UT_USER 1
9207 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9208 echo "configure:9209: checking for ut_id in utmp" >&5
9209 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9210 echo $ac_n "(cached) $ac_c" 1>&6
9213 cat > conftest.
$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 #include <sys/types.h>
9219 struct utmp ut; ut.ut_id[0] = 'a';
9222 if { (eval echo configure
:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9224 samba_cv_HAVE_UT_UT_ID
=yes
9226 echo "configure: failed program was:" >&5
9227 cat conftest.
$ac_ext >&5
9229 samba_cv_HAVE_UT_UT_ID
=no
9234 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9235 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9236 cat >> confdefs.h
<<\EOF
9237 #define HAVE_UT_UT_ID 1
9242 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9243 echo "configure:9244: checking for ut_host in utmp" >&5
9244 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9245 echo $ac_n "(cached) $ac_c" 1>&6
9248 cat > conftest.
$ac_ext <<EOF
9249 #line 9250 "configure"
9250 #include "confdefs.h"
9251 #include <sys/types.h>
9254 struct utmp ut; ut.ut_host[0] = 'a';
9257 if { (eval echo configure
:9258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9259 samba_cv_HAVE_UT_UT_HOST
=yes
9261 echo "configure: failed program was:" >&5
9262 cat conftest.
$ac_ext >&5
9264 samba_cv_HAVE_UT_UT_HOST
=no
9269 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9270 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9271 cat >> confdefs.h
<<\EOF
9272 #define HAVE_UT_UT_HOST 1
9277 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9278 echo "configure:9279: checking for ut_time in utmp" >&5
9279 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9283 cat > conftest.
$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <sys/types.h>
9289 struct utmp ut; time_t t; ut.ut_time = t;
9292 if { (eval echo configure
:9293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9294 samba_cv_HAVE_UT_UT_TIME
=yes
9296 echo "configure: failed program was:" >&5
9297 cat conftest.
$ac_ext >&5
9299 samba_cv_HAVE_UT_UT_TIME
=no
9304 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9305 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9306 cat >> confdefs.h
<<\EOF
9307 #define HAVE_UT_UT_TIME 1
9312 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9313 echo "configure:9314: checking for ut_tv in utmp" >&5
9314 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9318 cat > conftest.
$ac_ext <<EOF
9319 #line 9320 "configure"
9320 #include "confdefs.h"
9321 #include <sys/types.h>
9324 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9327 if { (eval echo configure
:9328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9329 samba_cv_HAVE_UT_UT_TV
=yes
9331 echo "configure: failed program was:" >&5
9332 cat conftest.
$ac_ext >&5
9334 samba_cv_HAVE_UT_UT_TV
=no
9339 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9340 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9341 cat >> confdefs.h
<<\EOF
9342 #define HAVE_UT_UT_TV 1
9347 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9348 echo "configure:9349: checking for ut_type in utmp" >&5
9349 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9353 cat > conftest.
$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9356 #include <sys/types.h>
9359 struct utmp ut; ut.ut_type = 0;
9362 if { (eval echo configure
:9363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9364 samba_cv_HAVE_UT_UT_TYPE
=yes
9366 echo "configure: failed program was:" >&5
9367 cat conftest.
$ac_ext >&5
9369 samba_cv_HAVE_UT_UT_TYPE
=no
9374 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9375 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9376 cat >> confdefs.h
<<\EOF
9377 #define HAVE_UT_UT_TYPE 1
9382 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9383 echo "configure:9384: checking for ut_pid in utmp" >&5
9384 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9388 cat > conftest.
$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include <sys/types.h>
9394 struct utmp ut; ut.ut_pid = 0;
9397 if { (eval echo configure
:9398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9399 samba_cv_HAVE_UT_UT_PID
=yes
9401 echo "configure: failed program was:" >&5
9402 cat conftest.
$ac_ext >&5
9404 samba_cv_HAVE_UT_UT_PID
=no
9409 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9410 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9411 cat >> confdefs.h
<<\EOF
9412 #define HAVE_UT_UT_PID 1
9417 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9418 echo "configure:9419: checking for ut_exit in utmp" >&5
9419 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9423 cat > conftest.
$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 #include <sys/types.h>
9429 struct utmp ut; ut.ut_exit.e_exit = 0;
9432 if { (eval echo configure
:9433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9434 samba_cv_HAVE_UT_UT_EXIT
=yes
9436 echo "configure: failed program was:" >&5
9437 cat conftest.
$ac_ext >&5
9439 samba_cv_HAVE_UT_UT_EXIT
=no
9444 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9445 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9446 cat >> confdefs.h
<<\EOF
9447 #define HAVE_UT_UT_EXIT 1
9452 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9453 echo "configure:9454: checking for ut_addr in utmp" >&5
9454 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9458 cat > conftest.
$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 #include <sys/types.h>
9464 struct utmp ut; ut.ut_addr = 0;
9467 if { (eval echo configure
:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9469 samba_cv_HAVE_UT_UT_ADDR
=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.
$ac_ext >&5
9474 samba_cv_HAVE_UT_UT_ADDR
=no
9479 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9480 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9481 cat >> confdefs.h
<<\EOF
9482 #define HAVE_UT_UT_ADDR 1
9487 if test x
$ac_cv_func_pututline = xyes
; then
9488 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9489 echo "configure:9490: checking whether pututline returns pointer" >&5
9490 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9494 cat > conftest.
$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9497 #include <sys/types.h>
9500 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9503 if { (eval echo configure
:9504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9505 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9507 echo "configure: failed program was:" >&5
9508 cat conftest.
$ac_ext >&5
9510 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9515 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9516 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9517 cat >> confdefs.h
<<\EOF
9518 #define PUTUTLINE_RETURNS_UTMP 1
9524 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9525 echo "configure:9526: checking for ut_syslen in utmpx" >&5
9526 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9530 cat > conftest.
$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9536 struct utmpx ux; ux.ut_syslen = 0;
9539 if { (eval echo configure
:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9541 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9543 echo "configure: failed program was:" >&5
9544 cat conftest.
$ac_ext >&5
9546 samba_cv_HAVE_UX_UT_SYSLEN
=no
9551 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9552 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9553 cat >> confdefs.h
<<\EOF
9554 #define HAVE_UX_UT_SYSLEN 1
9559 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9560 echo "configure:9561: checking for Linux kernel oplocks" >&5
9561 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9565 if test "$cross_compiling" = yes; then
9566 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9568 cat > conftest.
$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9572 #include <sys/types.h>
9575 #define F_GETLEASE 1025
9578 int fd = open("/dev/null", O_RDONLY);
9579 return fcntl(fd, F_GETLEASE, 0) == -1;
9583 if { (eval echo configure
:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9585 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9587 echo "configure: failed program was:" >&5
9588 cat conftest.
$ac_ext >&5
9590 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9597 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9598 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9599 cat >> confdefs.h
<<\EOF
9600 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9605 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9606 echo "configure:9607: checking for kernel change notify support" >&5
9607 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9608 echo $ac_n "(cached) $ac_c" 1>&6
9611 if test "$cross_compiling" = yes; then
9612 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9614 cat > conftest.
$ac_ext <<EOF
9615 #line 9616 "configure"
9616 #include "confdefs.h"
9618 #include <sys/types.h>
9622 #define F_NOTIFY 1026
9625 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9629 if { (eval echo configure
:9630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9631 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9633 echo "configure: failed program was:" >&5
9634 cat conftest.
$ac_ext >&5
9636 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9643 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9644 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9645 cat >> confdefs.h
<<\EOF
9646 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9651 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9652 echo "configure:9653: checking for kernel share modes" >&5
9653 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9657 if test "$cross_compiling" = yes; then
9658 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9660 cat > conftest.
$ac_ext <<EOF
9661 #line 9662 "configure"
9662 #include "confdefs.h"
9664 #include <sys/types.h>
9667 #include <sys/file.h>
9669 #define LOCK_MAND 32
9670 #define LOCK_READ 64
9673 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9677 if { (eval echo configure
:9678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9679 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9681 echo "configure: failed program was:" >&5
9682 cat conftest.
$ac_ext >&5
9684 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9691 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9692 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9693 cat >> confdefs.h
<<\EOF
9694 #define HAVE_KERNEL_SHARE_MODES 1
9702 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9703 echo "configure:9704: checking for IRIX kernel oplock type definitions" >&5
9704 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9708 cat > conftest.
$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 #include <sys/types.h>
9714 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9717 if { (eval echo configure
:9718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9719 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9721 echo "configure: failed program was:" >&5
9722 cat conftest.
$ac_ext >&5
9724 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9729 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9730 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9731 cat >> confdefs.h
<<\EOF
9732 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9737 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9738 echo "configure:9739: checking for irix specific capabilities" >&5
9739 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9743 if test "$cross_compiling" = yes; then
9744 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9746 cat > conftest.
$ac_ext <<EOF
9747 #line 9748 "configure"
9748 #include "confdefs.h"
9749 #include <sys/types.h>
9750 #include <sys/capability.h>
9753 if ((cap = cap_get_proc()) == NULL)
9755 cap->cap_effective |= CAP_NETWORK_MGT;
9756 cap->cap_inheritable |= CAP_NETWORK_MGT;
9762 if { (eval echo configure
:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9764 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9766 echo "configure: failed program was:" >&5
9767 cat conftest.
$ac_ext >&5
9769 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9776 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9777 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9778 cat >> confdefs.h
<<\EOF
9779 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9785 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9786 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9789 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9790 echo "configure:9791: checking for int16 typedef included by rpc/rpc.h" >&5
9791 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9795 cat > conftest.
$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 #include <sys/types.h>
9799 #if defined(HAVE_RPC_RPC_H)
9800 #include <rpc/rpc.h>
9806 if { (eval echo configure
:9807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9808 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9810 echo "configure: failed program was:" >&5
9811 cat conftest.
$ac_ext >&5
9813 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9818 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9819 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9820 cat >> confdefs.h
<<\EOF
9821 #define HAVE_INT16_FROM_RPC_RPC_H 1
9826 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9827 echo "configure:9828: checking for uint16 typedef included by rpc/rpc.h" >&5
9828 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9832 cat > conftest.
$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 #include <sys/types.h>
9836 #if defined(HAVE_RPC_RPC_H)
9837 #include <rpc/rpc.h>
9843 if { (eval echo configure
:9844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9845 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9847 echo "configure: failed program was:" >&5
9848 cat conftest.
$ac_ext >&5
9850 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9855 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9856 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9857 cat >> confdefs.h
<<\EOF
9858 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9863 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9864 echo "configure:9865: checking for int32 typedef included by rpc/rpc.h" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9869 cat > conftest.
$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 #include <sys/types.h>
9873 #if defined(HAVE_RPC_RPC_H)
9874 #include <rpc/rpc.h>
9880 if { (eval echo configure
:9881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9882 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9884 echo "configure: failed program was:" >&5
9885 cat conftest.
$ac_ext >&5
9887 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9892 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9893 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9894 cat >> confdefs.h
<<\EOF
9895 #define HAVE_INT32_FROM_RPC_RPC_H 1
9900 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9901 echo "configure:9902: checking for uint32 typedef included by rpc/rpc.h" >&5
9902 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9906 cat > conftest.
$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 #include <sys/types.h>
9910 #if defined(HAVE_RPC_RPC_H)
9911 #include <rpc/rpc.h>
9917 if { (eval echo configure
:9918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9919 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9921 echo "configure: failed program was:" >&5
9922 cat conftest.
$ac_ext >&5
9924 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9929 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9930 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9931 cat >> confdefs.h
<<\EOF
9932 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9938 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9939 echo "configure:9940: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9940 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9941 echo $ac_n "(cached) $ac_c" 1>&6
9944 cat > conftest.
$ac_ext <<EOF
9945 #line 9946 "configure"
9946 #include "confdefs.h"
9947 #include <sys/types.h>
9948 #ifdef HAVE_SYS_SECURITY_H
9949 #include <sys/security.h>
9951 #endif /* HAVE_SYS_SECURITY_H */
9952 #if defined(HAVE_RPC_RPC_H)
9953 #include <rpc/rpc.h>
9959 if { (eval echo configure
:9960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9961 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9963 echo "configure: failed program was:" >&5
9964 cat conftest.
$ac_ext >&5
9966 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9971 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9972 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9973 cat >> confdefs.h
<<\EOF
9974 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9979 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9980 echo "configure:9981: checking for test routines" >&5
9981 if test "$cross_compiling" = yes; then
9982 echo "configure: warning: cannot run when cross-compiling" 1>&2
9984 cat > conftest.
$ac_ext <<EOF
9985 #line 9986 "configure"
9986 #include "confdefs.h"
9987 #include "${srcdir-.}/tests/trivial.c"
9989 if { (eval echo configure
:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9991 echo "$ac_t""yes" 1>&6
9993 echo "configure: failed program was:" >&5
9994 cat conftest.
$ac_ext >&5
9996 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10002 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10003 echo "configure:10004: checking for ftruncate extend" >&5
10004 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10008 if test "$cross_compiling" = yes; then
10009 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10011 cat > conftest.
$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10014 #include "${srcdir-.}/tests/ftruncate.c"
10016 if { (eval echo configure
:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10018 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10020 echo "configure: failed program was:" >&5
10021 cat conftest.
$ac_ext >&5
10023 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10030 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10031 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10032 cat >> confdefs.h
<<\EOF
10033 #define HAVE_FTRUNCATE_EXTEND 1
10038 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10039 echo "configure:10040: checking for broken getgroups" >&5
10040 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10044 if test "$cross_compiling" = yes; then
10045 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10047 cat > conftest.
$ac_ext <<EOF
10048 #line 10049 "configure"
10049 #include "confdefs.h"
10050 #include "${srcdir-.}/tests/getgroups.c"
10052 if { (eval echo configure
:10053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10054 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10056 echo "configure: failed program was:" >&5
10057 cat conftest.
$ac_ext >&5
10059 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10066 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10067 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10068 cat >> confdefs.h
<<\EOF
10069 #define HAVE_BROKEN_GETGROUPS 1
10074 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10075 echo "configure:10076: checking whether getpass should be replaced" >&5
10076 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10080 SAVE_CPPFLAGS
="$CPPFLAGS"
10081 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10082 cat > conftest.
$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10086 #define REPLACE_GETPASS 1
10087 #define NO_CONFIG_H 1
10088 #define main dont_declare_main
10089 #include "${srcdir-.}/lib/getsmbpass.c"
10096 if { (eval echo configure
:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10098 samba_cv_REPLACE_GETPASS
=yes
10100 echo "configure: failed program was:" >&5
10101 cat conftest.
$ac_ext >&5
10103 samba_cv_REPLACE_GETPASS
=no
10106 CPPFLAGS
="$SAVE_CPPFLAGS"
10110 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10111 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10112 cat >> confdefs.h
<<\EOF
10113 #define REPLACE_GETPASS 1
10118 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10119 echo "configure:10120: checking for broken inet_ntoa" >&5
10120 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10124 if test "$cross_compiling" = yes; then
10125 samba_cv_REPLACE_INET_NTOA
=cross
10127 cat > conftest.
$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10132 #include <sys/types.h>
10133 #include <netinet/in.h>
10134 #ifdef HAVE_ARPA_INET_H
10135 #include <arpa/inet.h>
10137 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10138 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10139 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10142 if { (eval echo configure
:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10144 samba_cv_REPLACE_INET_NTOA
=yes
10146 echo "configure: failed program was:" >&5
10147 cat conftest.
$ac_ext >&5
10149 samba_cv_REPLACE_INET_NTOA
=no
10156 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10157 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10158 cat >> confdefs.h
<<\EOF
10159 #define REPLACE_INET_NTOA 1
10164 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10165 echo "configure:10166: checking for secure mkstemp" >&5
10166 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10170 if test "$cross_compiling" = yes; then
10171 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10173 cat > conftest.
$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10176 #include <stdlib.h>
10177 #include <sys/types.h>
10178 #include <sys/stat.h>
10179 #include <unistd.h>
10182 char tpl[20]="/tmp/test.XXXXXX";
10183 int fd = mkstemp(tpl);
10184 if (fd == -1) exit(1);
10186 if (fstat(fd, &st) != 0) exit(1);
10187 if ((st.st_mode & 0777) != 0600) exit(1);
10191 if { (eval echo configure
:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10193 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10195 echo "configure: failed program was:" >&5
10196 cat conftest.
$ac_ext >&5
10198 samba_cv_HAVE_SECURE_MKSTEMP
=no
10205 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10206 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10207 cat >> confdefs.h
<<\EOF
10208 #define HAVE_SECURE_MKSTEMP 1
10213 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10214 echo "configure:10215: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10215 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10219 if test "$cross_compiling" = yes; then
10220 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10222 cat > conftest.
$ac_ext <<EOF
10223 #line 10224 "configure"
10224 #include "confdefs.h"
10225 #include <unistd.h>
10226 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10228 if { (eval echo configure
:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10230 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10232 echo "configure: failed program was:" >&5
10233 cat conftest.
$ac_ext >&5
10235 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10242 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10243 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10244 cat >> confdefs.h
<<\EOF
10245 #define SYSCONF_SC_NGROUPS_MAX 1
10250 echo $ac_n "checking for root""... $ac_c" 1>&6
10251 echo "configure:10252: checking for root" >&5
10252 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10253 echo $ac_n "(cached) $ac_c" 1>&6
10256 if test "$cross_compiling" = yes; then
10257 samba_cv_HAVE_ROOT
=cross
10259 cat > conftest.
$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10262 main() { exit(getuid() != 0); }
10264 if { (eval echo configure
:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10266 samba_cv_HAVE_ROOT
=yes
10268 echo "configure: failed program was:" >&5
10269 cat conftest.
$ac_ext >&5
10271 samba_cv_HAVE_ROOT
=no
10278 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10279 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10280 cat >> confdefs.h
<<\EOF
10281 #define HAVE_ROOT 1
10285 echo "configure: warning: running as non-root will disable some tests" 1>&2
10289 # look for a method of finding the list of network interfaces
10291 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10292 echo "configure:10293: checking for iface AIX" >&5
10293 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10297 if test "$cross_compiling" = yes; then
10298 samba_cv_HAVE_IFACE_AIX
=cross
10300 cat > conftest.
$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10304 #define HAVE_IFACE_AIX 1
10305 #define AUTOCONF_TEST 1
10306 #include "confdefs.h"
10307 #include "${srcdir-.}/lib/interfaces.c"
10309 if { (eval echo configure
:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10311 samba_cv_HAVE_IFACE_AIX
=yes
10313 echo "configure: failed program was:" >&5
10314 cat conftest.
$ac_ext >&5
10316 samba_cv_HAVE_IFACE_AIX
=no
10323 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10324 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10325 iface
=yes;cat >> confdefs.h
<<\EOF
10326 #define HAVE_IFACE_AIX 1
10331 if test $iface = no
; then
10332 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10333 echo "configure:10334: checking for iface ifconf" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10338 if test "$cross_compiling" = yes; then
10339 samba_cv_HAVE_IFACE_IFCONF
=cross
10341 cat > conftest.
$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10345 #define HAVE_IFACE_IFCONF 1
10346 #define AUTOCONF_TEST 1
10347 #include "confdefs.h"
10348 #include "${srcdir-.}/lib/interfaces.c"
10350 if { (eval echo configure
:10351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10352 samba_cv_HAVE_IFACE_IFCONF
=yes
10354 echo "configure: failed program was:" >&5
10355 cat conftest.
$ac_ext >&5
10357 samba_cv_HAVE_IFACE_IFCONF
=no
10364 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10365 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10366 iface
=yes;cat >> confdefs.h
<<\EOF
10367 #define HAVE_IFACE_IFCONF 1
10373 if test $iface = no
; then
10374 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10375 echo "configure:10376: checking for iface ifreq" >&5
10376 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10380 if test "$cross_compiling" = yes; then
10381 samba_cv_HAVE_IFACE_IFREQ
=cross
10383 cat > conftest.
$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10387 #define HAVE_IFACE_IFREQ 1
10388 #define AUTOCONF_TEST 1
10389 #include "confdefs.h"
10390 #include "${srcdir-.}/lib/interfaces.c"
10392 if { (eval echo configure
:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10394 samba_cv_HAVE_IFACE_IFREQ
=yes
10396 echo "configure: failed program was:" >&5
10397 cat conftest.
$ac_ext >&5
10399 samba_cv_HAVE_IFACE_IFREQ
=no
10406 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10407 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10408 iface
=yes;cat >> confdefs.h
<<\EOF
10409 #define HAVE_IFACE_IFREQ 1
10416 ################################################
10417 # look for a method of setting the effective uid
10419 if test $seteuid = no
; then
10420 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10421 echo "configure:10422: checking for setresuid" >&5
10422 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10426 if test "$cross_compiling" = yes; then
10427 samba_cv_USE_SETRESUID
=cross
10429 cat > conftest.
$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10433 #define AUTOCONF_TEST 1
10434 #define USE_SETRESUID 1
10435 #include "confdefs.h"
10436 #include "${srcdir-.}/lib/util_sec.c"
10438 if { (eval echo configure
:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10440 samba_cv_USE_SETRESUID
=yes
10442 echo "configure: failed program was:" >&5
10443 cat conftest.
$ac_ext >&5
10445 samba_cv_USE_SETRESUID
=no
10452 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10453 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10454 seteuid
=yes;cat >> confdefs.h
<<\EOF
10455 #define USE_SETRESUID 1
10462 if test $seteuid = no
; then
10463 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10464 echo "configure:10465: checking for setreuid" >&5
10465 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10469 if test "$cross_compiling" = yes; then
10470 samba_cv_USE_SETREUID
=cross
10472 cat > conftest.
$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10476 #define AUTOCONF_TEST 1
10477 #define USE_SETREUID 1
10478 #include "confdefs.h"
10479 #include "${srcdir-.}/lib/util_sec.c"
10481 if { (eval echo configure
:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10483 samba_cv_USE_SETREUID
=yes
10485 echo "configure: failed program was:" >&5
10486 cat conftest.
$ac_ext >&5
10488 samba_cv_USE_SETREUID
=no
10495 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10496 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10497 seteuid
=yes;cat >> confdefs.h
<<\EOF
10498 #define USE_SETREUID 1
10504 if test $seteuid = no
; then
10505 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10506 echo "configure:10507: checking for seteuid" >&5
10507 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10508 echo $ac_n "(cached) $ac_c" 1>&6
10511 if test "$cross_compiling" = yes; then
10512 samba_cv_USE_SETEUID
=cross
10514 cat > conftest.
$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10518 #define AUTOCONF_TEST 1
10519 #define USE_SETEUID 1
10520 #include "confdefs.h"
10521 #include "${srcdir-.}/lib/util_sec.c"
10523 if { (eval echo configure
:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10525 samba_cv_USE_SETEUID
=yes
10527 echo "configure: failed program was:" >&5
10528 cat conftest.
$ac_ext >&5
10530 samba_cv_USE_SETEUID
=no
10537 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10538 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10539 seteuid
=yes;cat >> confdefs.h
<<\EOF
10540 #define USE_SETEUID 1
10546 if test $seteuid = no
; then
10547 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10548 echo "configure:10549: checking for setuidx" >&5
10549 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10550 echo $ac_n "(cached) $ac_c" 1>&6
10553 if test "$cross_compiling" = yes; then
10554 samba_cv_USE_SETUIDX
=cross
10556 cat > conftest.
$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10560 #define AUTOCONF_TEST 1
10561 #define USE_SETUIDX 1
10562 #include "confdefs.h"
10563 #include "${srcdir-.}/lib/util_sec.c"
10565 if { (eval echo configure
:10566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10567 samba_cv_USE_SETUIDX
=yes
10569 echo "configure: failed program was:" >&5
10570 cat conftest.
$ac_ext >&5
10572 samba_cv_USE_SETUIDX
=no
10579 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10580 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10581 seteuid
=yes;cat >> confdefs.h
<<\EOF
10582 #define USE_SETUIDX 1
10589 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10590 echo "configure:10591: checking for working mmap" >&5
10591 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
10595 if test "$cross_compiling" = yes; then
10596 samba_cv_HAVE_MMAP
=cross
10598 cat > conftest.
$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 #include "${srcdir-.}/tests/shared_mmap.c"
10603 if { (eval echo configure
:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10605 samba_cv_HAVE_MMAP
=yes
10607 echo "configure: failed program was:" >&5
10608 cat conftest.
$ac_ext >&5
10610 samba_cv_HAVE_MMAP
=no
10617 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10618 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10619 cat >> confdefs.h
<<\EOF
10620 #define HAVE_MMAP 1
10625 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10626 echo "configure:10627: checking for ftruncate needs root" >&5
10627 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10628 echo $ac_n "(cached) $ac_c" 1>&6
10631 if test "$cross_compiling" = yes; then
10632 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10634 cat > conftest.
$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637 #include "${srcdir-.}/tests/ftruncroot.c"
10639 if { (eval echo configure
:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10641 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10643 echo "configure: failed program was:" >&5
10644 cat conftest.
$ac_ext >&5
10646 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10653 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10654 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10655 cat >> confdefs.h
<<\EOF
10656 #define FTRUNCATE_NEEDS_ROOT 1
10661 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10662 echo "configure:10663: checking for fcntl locking" >&5
10663 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10664 echo $ac_n "(cached) $ac_c" 1>&6
10667 if test "$cross_compiling" = yes; then
10668 samba_cv_HAVE_FCNTL_LOCK
=cross
10670 cat > conftest.
$ac_ext <<EOF
10671 #line 10672 "configure"
10672 #include "confdefs.h"
10673 #include "${srcdir-.}/tests/fcntl_lock.c"
10675 if { (eval echo configure
:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10677 samba_cv_HAVE_FCNTL_LOCK
=yes
10679 echo "configure: failed program was:" >&5
10680 cat conftest.
$ac_ext >&5
10682 samba_cv_HAVE_FCNTL_LOCK
=no
10689 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10690 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10691 cat >> confdefs.h
<<\EOF
10692 #define HAVE_FCNTL_LOCK 1
10697 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10698 echo "configure:10699: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10699 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10703 if test "$cross_compiling" = yes; then
10704 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10706 cat > conftest.
$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10709 #include "${srcdir-.}/tests/fcntl_lock64.c"
10711 if { (eval echo configure
:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10713 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10715 echo "configure: failed program was:" >&5
10716 cat conftest.
$ac_ext >&5
10718 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10725 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10726 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10727 cat >> confdefs.h
<<\EOF
10728 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10735 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10736 echo "configure:10737: checking for 64 bit fcntl locking" >&5
10737 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10741 if test "$cross_compiling" = yes; then
10742 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10744 cat > conftest.
$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10748 #if defined(HAVE_UNISTD_H)
10749 #include <unistd.h>
10752 #include <stdlib.h>
10754 #ifdef HAVE_FCNTL_H
10758 #ifdef HAVE_SYS_FCNTL_H
10759 #include <sys/fcntl.h>
10761 main() { struct flock64 fl64;
10762 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10769 if { (eval echo configure
:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10771 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10773 echo "configure: failed program was:" >&5
10774 cat conftest.
$ac_ext >&5
10776 samba_cv_HAVE_STRUCT_FLOCK64
=no
10783 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10785 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10786 cat >> confdefs.h
<<\EOF
10787 #define HAVE_STRUCT_FLOCK64 1
10793 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10794 echo "configure:10795: checking for broken nisplus include files" >&5
10795 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10799 cat > conftest.
$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 #include <sys/acl.h>
10803 #if defined(HAVE_RPCSVC_NIS_H)
10804 #include <rpcsvc/nis.h>
10810 if { (eval echo configure
:10811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10812 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10814 echo "configure: failed program was:" >&5
10815 cat conftest.
$ac_ext >&5
10817 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10822 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10823 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10824 cat >> confdefs.h
<<\EOF
10825 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10831 #################################################
10832 # check for smbwrapper support
10833 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10834 echo "configure:10835: checking whether to use smbwrapper" >&5
10835 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10836 if test "${with_smbwrapper+set}" = set; then
10837 withval
="$with_smbwrapper"
10840 echo "$ac_t""yes" 1>&6
10841 cat >> confdefs.h
<<\EOF
10842 #define WITH_SMBWRAPPER 1
10845 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10847 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10850 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10853 # Conditions under which smbwrapper should not be built.
10855 if test x
$PICFLAG = x
; then
10856 echo No support
for PIC code
- disabling smbwrapper and smbsh
10859 elif test x
$ac_cv_func_syscall = xno
; then
10860 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10866 echo "$ac_t""no" 1>&6
10870 echo "$ac_t""no" 1>&6
10875 #################################################
10876 # check for the AFS filesystem
10877 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10878 echo "configure:10879: checking whether to use AFS" >&5
10879 # Check whether --with-afs or --without-afs was given.
10880 if test "${with_afs+set}" = set; then
10881 withval
="$with_afs"
10884 echo "$ac_t""yes" 1>&6
10885 cat >> confdefs.h
<<\EOF
10891 echo "$ac_t""no" 1>&6
10895 echo "$ac_t""no" 1>&6
10901 #################################################
10902 # check for the DFS auth system
10903 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
10904 echo "configure:10905: checking whether to use DCE/DFS auth" >&5
10905 # Check whether --with-dfs or --without-dfs was given.
10906 if test "${with_dfs+set}" = set; then
10907 withval
="$with_dfs"
10910 echo "$ac_t""yes" 1>&6
10911 cat >> confdefs.h
<<\EOF
10917 echo "$ac_t""no" 1>&6
10921 echo "$ac_t""no" 1>&6
10926 #################################################
10927 # check for Kerberos IV auth system
10928 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10929 echo "configure:10930: checking whether to use Kerberos IV" >&5
10930 # Check whether --with-krb4 or --without-krb4 was given.
10931 if test "${with_krb4+set}" = set; then
10932 withval
="$with_krb4"
10935 echo "$ac_t""yes" 1>&6
10936 cat >> confdefs.h
<<\EOF
10937 #define KRB4_AUTH 1
10940 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10941 echo "configure:10942: checking for dn_expand in -lresolv" >&5
10942 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10944 echo $ac_n "(cached) $ac_c" 1>&6
10946 ac_save_LIBS
="$LIBS"
10947 LIBS
="-lresolv $LIBS"
10948 cat > conftest.
$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 /* Override any gcc2 internal prototype to avoid an error. */
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10960 if { (eval echo configure
:10961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10962 eval "ac_cv_lib_$ac_lib_var=yes"
10964 echo "configure: failed program was:" >&5
10965 cat conftest.
$ac_ext >&5
10967 eval "ac_cv_lib_$ac_lib_var=no"
10970 LIBS
="$ac_save_LIBS"
10973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10974 echo "$ac_t""yes" 1>&6
10975 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10977 cat >> confdefs.h
<<EOF
10978 #define $ac_tr_lib 1
10981 LIBS
="-lresolv $LIBS"
10984 echo "$ac_t""no" 1>&6
10987 LIBS
="$LIBS -lkrb -ldes"
10988 CFLAGS
="$CFLAGS -I$withval/include"
10989 LDFLAGS
="$LDFLAGS -L$withval/lib"
10992 echo "$ac_t""no" 1>&6
10996 echo "$ac_t""no" 1>&6
11001 #################################################
11002 # check for Kerberos 5 auth system
11003 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11004 echo "configure:11005: checking whether to use Kerberos 5" >&5
11005 # Check whether --with-krb5 or --without-krb5 was given.
11006 if test "${with_krb5+set}" = set; then
11007 withval
="$with_krb5"
11010 echo "$ac_t""yes" 1>&6
11011 cat >> confdefs.h
<<\EOF
11012 #define KRB5_AUTH 1
11015 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11016 CFLAGS
="$CFLAGS -I$withval/include"
11017 LDFLAGS
="$LDFLAGS -L$withval/lib"
11020 echo "$ac_t""no" 1>&6
11024 echo "$ac_t""no" 1>&6
11029 #################################################
11030 # check for automount support
11031 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11032 echo "configure:11033: checking whether to use AUTOMOUNT" >&5
11033 # Check whether --with-automount or --without-automount was given.
11034 if test "${with_automount+set}" = set; then
11035 withval
="$with_automount"
11038 echo "$ac_t""yes" 1>&6
11039 cat >> confdefs.h
<<\EOF
11040 #define WITH_AUTOMOUNT 1
11045 echo "$ac_t""no" 1>&6
11049 echo "$ac_t""no" 1>&6
11054 #################################################
11055 # check for smbmount support
11056 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11057 echo "configure:11058: checking whether to use SMBMOUNT" >&5
11058 # Check whether --with-smbmount or --without-smbmount was given.
11059 if test "${with_smbmount+set}" = set; then
11060 withval
="$with_smbmount"
11065 echo "$ac_t""yes" 1>&6
11066 cat >> confdefs.h
<<\EOF
11067 #define WITH_SMBMOUNT 1
11070 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11073 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11078 echo "$ac_t""no" 1>&6
11083 echo "$ac_t""no" 1>&6
11090 #################################################
11091 # check for a PAM password database
11092 with_pam_for_crypt
=no
11093 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11094 echo "configure:11095: checking whether to use PAM password database" >&5
11095 # Check whether --with-pam or --without-pam was given.
11096 if test "${with_pam+set}" = set; then
11097 withval
="$with_pam"
11100 echo "$ac_t""yes" 1>&6
11101 cat >> confdefs.h
<<\EOF
11106 with_pam_for_crypt
=yes
11109 echo "$ac_t""no" 1>&6
11113 echo "$ac_t""no" 1>&6
11118 # we can't build a pam module if we don't have pam.
11119 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11120 echo "configure:11121: checking for pam_get_data in -lpam" >&5
11121 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11123 echo $ac_n "(cached) $ac_c" 1>&6
11125 ac_save_LIBS
="$LIBS"
11127 cat > conftest.
$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11133 char pam_get_data();
11139 if { (eval echo configure
:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11141 eval "ac_cv_lib_$ac_lib_var=yes"
11143 echo "configure: failed program was:" >&5
11144 cat conftest.
$ac_ext >&5
11146 eval "ac_cv_lib_$ac_lib_var=no"
11149 LIBS
="$ac_save_LIBS"
11152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11153 echo "$ac_t""yes" 1>&6
11154 cat >> confdefs.h
<<\EOF
11155 #define HAVE_LIBPAM 1
11159 echo "$ac_t""no" 1>&6
11163 #################################################
11164 # check for pam_smbpass support
11165 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11166 echo "configure:11167: checking whether to use pam_smbpass" >&5
11167 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11168 if test "${with_pam_smbpass+set}" = set; then
11169 withval
="$with_pam_smbpass"
11172 echo "$ac_t""yes" 1>&6
11174 # Conditions under which pam_smbpass should not be built.
11176 if test x
$PICFLAG = x
; then
11177 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11179 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11180 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11183 cat >> confdefs.h
<<\EOF
11184 #define WITH_PAM_SMBPASS 1
11187 PAM_MOD
="bin/pam_smbpass.so"
11191 echo "$ac_t""no" 1>&6
11195 echo "$ac_t""no" 1>&6
11201 ###############################################
11202 # test for where we get crypt() from, but only
11204 if test $with_pam_for_crypt = no
; then
11205 for ac_func
in crypt
11207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11208 echo "configure:11209: checking for $ac_func" >&5
11209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11210 echo $ac_n "(cached) $ac_c" 1>&6
11212 cat > conftest.
$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func(); below. */
11217 #include <assert.h>
11218 /* Override any gcc2 internal prototype to avoid an error. */
11219 /* We use char because int might match the return type of a gcc2
11220 builtin and then its argument prototype would still apply. */
11225 /* The GNU C library defines this for functions which it implements
11226 to always fail with ENOSYS. Some functions are actually named
11227 something starting with __ and the normal name is an alias. */
11228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11236 if { (eval echo configure
:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11238 eval "ac_cv_func_$ac_func=yes"
11240 echo "configure: failed program was:" >&5
11241 cat conftest.
$ac_ext >&5
11243 eval "ac_cv_func_$ac_func=no"
11248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11249 echo "$ac_t""yes" 1>&6
11250 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11251 cat >> confdefs.h
<<EOF
11252 #define $ac_tr_func 1
11256 echo "$ac_t""no" 1>&6
11260 if test x
"$ac_cv_func_crypt" = x
"no"; then
11261 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11262 echo "configure:11263: checking for crypt in -lcrypt" >&5
11263 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11267 ac_save_LIBS
="$LIBS"
11268 LIBS
="-lcrypt $LIBS"
11269 cat > conftest.
$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11272 /* Override any gcc2 internal prototype to avoid an error. */
11273 /* We use char because int might match the return type of a gcc2
11274 builtin and then its argument prototype would still apply. */
11281 if { (eval echo configure
:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11283 eval "ac_cv_lib_$ac_lib_var=yes"
11285 echo "configure: failed program was:" >&5
11286 cat conftest.
$ac_ext >&5
11288 eval "ac_cv_lib_$ac_lib_var=no"
11291 LIBS
="$ac_save_LIBS"
11294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11295 echo "$ac_t""yes" 1>&6
11296 LIBS
="$LIBS -lcrypt";
11297 cat >> confdefs.h
<<\EOF
11298 #define HAVE_CRYPT 1
11302 echo "$ac_t""no" 1>&6
11309 ## moved after the check for -lcrypt in order to
11310 ## ensure that the necessary libraries are included
11311 ## check checking for truncated salt. Wrapped by the
11312 ## $with_pam_for_crypt variable as above --jerry
11314 if test $with_pam_for_crypt = no
; then
11315 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11316 echo "configure:11317: checking for a crypt that needs truncated salt" >&5
11317 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11321 if test "$cross_compiling" = yes; then
11322 samba_cv_HAVE_TRUNCATED_SALT
=cross
11324 cat > conftest.
$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 #include "${srcdir-.}/tests/crypttest.c"
11329 if { (eval echo configure
:11330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11331 samba_cv_HAVE_TRUNCATED_SALT
=no
11333 echo "configure: failed program was:" >&5
11334 cat conftest.
$ac_ext >&5
11336 samba_cv_HAVE_TRUNCATED_SALT
=yes
11343 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11344 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11345 cat >> confdefs.h
<<\EOF
11346 #define HAVE_TRUNCATED_SALT 1
11353 ########################################################################################
11355 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11357 ########################################################################################
11359 ## set the with_smbpasswd_sam as the default
11360 with_smbpasswd_sam
=yes
11364 #################################################
11365 # check for a TDB password database
11366 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11367 echo "configure:11368: checking whether to use TDB SAM database" >&5
11368 # Check whether --with-tdbsam or --without-tdbsam was given.
11369 if test "${with_tdbsam+set}" = set; then
11370 withval
="$with_tdbsam"
11373 echo "$ac_t""yes" 1>&6
11374 cat >> confdefs.h
<<\EOF
11375 #define WITH_TDB_SAM 1
11378 with_smbpasswd_sam
=no
11381 echo "$ac_t""no" 1>&6
11385 echo "$ac_t""no" 1>&6
11390 #################################################
11391 # check for a LDAP password database
11392 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11393 echo "configure:11394: checking whether to use LDAP SAM database" >&5
11394 # Check whether --with-ldapsam or --without-ldapsam was given.
11395 if test "${with_ldapsam+set}" = set; then
11396 withval
="$with_ldapsam"
11399 echo "$ac_t""yes" 1>&6
11400 cat >> confdefs.h
<<\EOF
11401 #define WITH_LDAP_SAM 1
11404 LIBS
="-lldap -llber -lresolv $LIBS"
11405 with_smbpasswd_sam
=no
11408 echo "$ac_t""no" 1>&6
11412 echo "$ac_t""no" 1>&6
11417 #################################################
11418 # check for a NISPLUS password database
11419 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11420 echo "configure:11421: checking whether to use NISPLUS SAM database" >&5
11421 # Check whether --with-nisplussam or --without-nisplussam was given.
11422 if test "${with_nisplussam+set}" = set; then
11423 withval
="$with_nisplussam"
11426 echo "$ac_t""yes" 1>&6
11427 cat >> confdefs.h
<<\EOF
11428 #define WITH_NISPLUS_SAM 1
11431 with_smbpasswd_sam
=no
11434 echo "$ac_t""no" 1>&6
11438 echo "$ac_t""no" 1>&6
11443 ################################################
11444 # This test should come last because the
11445 # smbpasswd SAM is only used if another format
11446 # has not been defined
11447 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11448 echo "configure:11449: checking whether to use traditional smbpasswd file" >&5
11449 if test $with_smbpasswd_sam = yes; then
11450 echo "$ac_t""yes" 1>&6
11451 cat >> confdefs.h
<<\EOF
11452 #define WITH_SMBPASSWD_SAM 1
11457 echo "$ac_t""no" 1>&6
11458 PDBEDIT
=bin
/pdbedit
11461 ########################################################################################
11463 ## END OF TESTS FOR SAM BACKENDS.
11465 ########################################################################################
11467 #################################################
11468 # check for a NISPLUS_HOME support
11469 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11470 echo "configure:11471: checking whether to use NISPLUS_HOME" >&5
11471 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11472 if test "${with_nisplus_home+set}" = set; then
11473 withval
="$with_nisplus_home"
11476 echo "$ac_t""yes" 1>&6
11477 cat >> confdefs.h
<<\EOF
11478 #define WITH_NISPLUS_HOME 1
11483 echo "$ac_t""no" 1>&6
11487 echo "$ac_t""no" 1>&6
11492 #################################################
11493 # check for the secure socket layer
11494 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11495 echo "configure:11496: checking whether to use SSL" >&5
11496 # Check whether --with-ssl or --without-ssl was given.
11497 if test "${with_ssl+set}" = set; then
11498 withval
="$with_ssl"
11501 echo "$ac_t""yes" 1>&6
11502 cat >> confdefs.h
<<\EOF
11506 withval
="/usr/local/ssl" # default
11508 if test "${with_sslinc+set}" = set; then
11510 withval
="$with_sslinc"
11513 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11514 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11517 CFLAGS
="-I${withval} $CFLAGS"
11523 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11527 if test "${with_ssllib+set}" = set; then
11529 withval
="$with_ssllib"
11532 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11533 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11536 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11542 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11546 LIBS
="-lssl -lcrypto $LIBS"
11548 # if test ! -d ${withval}; then
11549 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11553 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11557 echo "$ac_t""no" 1>&6
11561 echo "$ac_t""no" 1>&6
11566 #################################################
11567 # check for syslog logging
11568 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11569 echo "configure:11570: checking whether to use syslog logging" >&5
11570 # Check whether --with-syslog or --without-syslog was given.
11571 if test "${with_syslog+set}" = set; then
11572 withval
="$with_syslog"
11575 echo "$ac_t""yes" 1>&6
11576 cat >> confdefs.h
<<\EOF
11577 #define WITH_SYSLOG 1
11582 echo "$ac_t""no" 1>&6
11586 echo "$ac_t""no" 1>&6
11591 #################################################
11592 # check for a shared memory profiling support
11593 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11594 echo "configure:11595: checking whether to use profiling" >&5
11595 # Check whether --with-profiling-data or --without-profiling-data was given.
11596 if test "${with_profiling_data+set}" = set; then
11597 withval
="$with_profiling_data"
11600 echo "$ac_t""yes" 1>&6
11601 cat >> confdefs.h
<<\EOF
11602 #define WITH_PROFILE 1
11607 echo "$ac_t""no" 1>&6
11611 echo "$ac_t""no" 1>&6
11617 #################################################
11618 # check for experimental disk-quotas support
11619 QUOTAOBJS
=smbd
/noquotas.o
11621 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11622 echo "configure:11623: checking whether to support disk-quotas" >&5
11623 # Check whether --with-quotas or --without-quotas was given.
11624 if test "${with_quotas+set}" = set; then
11625 withval
="$with_quotas"
11628 echo "$ac_t""yes" 1>&6
11629 QUOTAOBJS
=smbd
/quotas.o
11632 # Check for kernel 2.4.x quota braindamage...
11633 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11634 echo "configure:11635: checking for linux 2.4.x quota braindamage.." >&5
11635 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11639 cat > conftest.
$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11643 #include <sys/types.h>
11644 #include <asm/types.h>
11645 #include <linux/quota.h>
11646 #include <mntent.h>
11647 #include <linux/unistd.h>
11649 struct mem_dqblk D;
11652 if { (eval echo configure
:11653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11654 samba_cv_linux_2_4_quota_braindamage
=yes
11656 echo "configure: failed program was:" >&5
11657 cat conftest.
$ac_ext >&5
11659 samba_cv_linux_2_4_quota_braindamage
=no
11664 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11665 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
11666 cat >> confdefs.h
<<\EOF
11667 #define LINUX_QUOTAS_2 1
11671 cat >> confdefs.h
<<\EOF
11672 #define LINUX_QUOTAS_1 1
11682 echo "$ac_t""no" 1>&6
11686 echo "$ac_t""no" 1>&6
11692 #################################################
11693 # check for experimental utmp accounting
11695 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11696 echo "configure:11697: checking whether to support utmp accounting" >&5
11697 # Check whether --with-utmp or --without-utmp was given.
11698 if test "${with_utmp+set}" = set; then
11699 withval
="$with_utmp"
11702 echo "$ac_t""yes" 1>&6
11703 cat >> confdefs.h
<<\EOF
11704 #define WITH_UTMP 1
11709 echo "$ac_t""no" 1>&6
11713 echo "$ac_t""no" 1>&6
11718 #################################################
11719 # check for MS Dfs support
11721 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11722 echo "configure:11723: checking whether to support Microsoft Dfs" >&5
11723 # Check whether --with-msdfs or --without-msdfs was given.
11724 if test "${with_msdfs+set}" = set; then
11725 withval
="$with_msdfs"
11728 echo "$ac_t""yes" 1>&6
11729 cat >> confdefs.h
<<\EOF
11730 #define WITH_MSDFS 1
11735 echo "$ac_t""no" 1>&6
11739 echo "$ac_t""no" 1>&6
11744 #################################################
11745 # check for Samba VFS support
11747 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11748 echo "configure:11749: checking whether to support the experimantal Samba vfs" >&5
11749 # Check whether --with-vfs or --without-vfs was given.
11750 if test "${with_vfs+set}" = set; then
11751 withval
="$with_vfs"
11754 echo "$ac_t""yes" 1>&6
11755 cat >> confdefs.h
<<\EOF
11761 echo "$ac_t""no" 1>&6
11765 echo "$ac_t""no" 1>&6
11771 #################################################
11772 # should we build libsmbclient?
11774 LIBSMBCLIENT_SHARED
=
11776 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
11777 echo "configure:11778: checking whether to build the libsmbclient shared library" >&5
11778 # Check whether --with-libsmbclient or --without-libsmbclient was given.
11779 if test "${with_libsmbclient+set}" = set; then
11780 withval
="$with_libsmbclient"
11783 if test $BLDSHARED = true
; then
11784 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
11785 LIBSMBCLIENT
=libsmbclient
11786 echo "$ac_t""yes" 1>&6
11788 echo "$ac_t""no shared library support" 1>&6
11792 echo "$ac_t""no" 1>&6
11796 echo "$ac_t""no" 1>&6
11801 #################################################
11802 # these tests are taken from the GNU fileutils package
11803 echo "checking how to get filesystem space usage" 1>&6
11804 echo "configure:11805: checking how to get filesystem space usage" >&5
11807 # Test for statvfs64.
11808 if test $space = no
; then
11810 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11811 echo "configure:11812: checking statvfs64 function (SVR4)" >&5
11812 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11813 echo $ac_n "(cached) $ac_c" 1>&6
11815 if test "$cross_compiling" = yes; then
11816 fu_cv_sys_stat_statvfs64
=cross
11818 cat > conftest.
$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11822 #if defined(HAVE_UNISTD_H)
11823 #include <unistd.h>
11825 #include <sys/types.h>
11826 #include <sys/statvfs.h>
11829 struct statvfs64 fsd;
11830 exit (statvfs64 (".", &fsd));
11833 if { (eval echo configure
:11834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11835 fu_cv_sys_stat_statvfs64
=yes
11837 echo "configure: failed program was:" >&5
11838 cat conftest.
$ac_ext >&5
11840 fu_cv_sys_stat_statvfs64
=no
11847 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11848 if test $fu_cv_sys_stat_statvfs64 = yes; then
11850 cat >> confdefs.h
<<\EOF
11851 #define STAT_STATVFS64 1
11857 # Perform only the link test since it seems there are no variants of the
11858 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11859 # because that got a false positive on SCO OSR5. Adding the declaration
11860 # of a `struct statvfs' causes this test to fail (as it should) on such
11861 # systems. That system is reported to work fine with STAT_STATFS4 which
11862 # is what it gets when this test fails.
11863 if test $space = no
; then
11865 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11866 echo "configure:11867: checking statvfs function (SVR4)" >&5
11867 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11870 cat > conftest.
$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873 #include <sys/types.h>
11874 #include <sys/statvfs.h>
11876 struct statvfs fsd; statvfs (0, &fsd);
11879 if { (eval echo configure
:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11881 fu_cv_sys_stat_statvfs
=yes
11883 echo "configure: failed program was:" >&5
11884 cat conftest.
$ac_ext >&5
11886 fu_cv_sys_stat_statvfs
=no
11891 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11892 if test $fu_cv_sys_stat_statvfs = yes; then
11894 cat >> confdefs.h
<<\EOF
11895 #define STAT_STATVFS 1
11901 if test $space = no
; then
11902 # DEC Alpha running OSF/1
11903 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11904 echo "configure:11905: checking for 3-argument statfs function (DEC OSF/1)" >&5
11905 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11908 if test "$cross_compiling" = yes; then
11909 fu_cv_sys_stat_statfs3_osf1
=no
11911 cat > conftest.
$ac_ext <<EOF
11912 #line 11913 "configure"
11913 #include "confdefs.h"
11915 #include <sys/param.h>
11916 #include <sys/types.h>
11917 #include <sys/mount.h>
11922 exit (statfs (".", &fsd, sizeof (struct statfs)));
11925 if { (eval echo configure
:11926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11927 fu_cv_sys_stat_statfs3_osf1
=yes
11929 echo "configure: failed program was:" >&5
11930 cat conftest.
$ac_ext >&5
11932 fu_cv_sys_stat_statfs3_osf1
=no
11939 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11940 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11942 cat >> confdefs.h
<<\EOF
11943 #define STAT_STATFS3_OSF1 1
11949 if test $space = no
; then
11951 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11952 echo "configure:11953: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11953 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
11956 if test "$cross_compiling" = yes; then
11957 fu_cv_sys_stat_statfs2_bsize
=no
11959 cat > conftest.
$ac_ext <<EOF
11960 #line 11961 "configure"
11961 #include "confdefs.h"
11963 #ifdef HAVE_SYS_PARAM_H
11964 #include <sys/param.h>
11966 #ifdef HAVE_SYS_MOUNT_H
11967 #include <sys/mount.h>
11969 #ifdef HAVE_SYS_VFS_H
11970 #include <sys/vfs.h>
11976 exit (statfs (".", &fsd));
11979 if { (eval echo configure
:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11981 fu_cv_sys_stat_statfs2_bsize
=yes
11983 echo "configure: failed program was:" >&5
11984 cat conftest.
$ac_ext >&5
11986 fu_cv_sys_stat_statfs2_bsize
=no
11993 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11994 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11996 cat >> confdefs.h
<<\EOF
11997 #define STAT_STATFS2_BSIZE 1
12003 if test $space = no
; then
12005 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12006 echo "configure:12007: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12007 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12010 if test "$cross_compiling" = yes; then
12011 fu_cv_sys_stat_statfs4
=no
12013 cat > conftest.
$ac_ext <<EOF
12014 #line 12015 "configure"
12015 #include "confdefs.h"
12016 #include <sys/types.h>
12017 #include <sys/statfs.h>
12021 exit (statfs (".", &fsd, sizeof fsd, 0));
12024 if { (eval echo configure
:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12026 fu_cv_sys_stat_statfs4
=yes
12028 echo "configure: failed program was:" >&5
12029 cat conftest.
$ac_ext >&5
12031 fu_cv_sys_stat_statfs4
=no
12038 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12039 if test $fu_cv_sys_stat_statfs4 = yes; then
12041 cat >> confdefs.h
<<\EOF
12042 #define STAT_STATFS4 1
12048 if test $space = no
; then
12049 # 4.4BSD and NetBSD
12050 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12051 echo "configure:12052: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12052 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12055 if test "$cross_compiling" = yes; then
12056 fu_cv_sys_stat_statfs2_fsize
=no
12058 cat > conftest.
$ac_ext <<EOF
12059 #line 12060 "configure"
12060 #include "confdefs.h"
12061 #include <sys/types.h>
12062 #ifdef HAVE_SYS_PARAM_H
12063 #include <sys/param.h>
12065 #ifdef HAVE_SYS_MOUNT_H
12066 #include <sys/mount.h>
12072 exit (statfs (".", &fsd));
12075 if { (eval echo configure
:12076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12077 fu_cv_sys_stat_statfs2_fsize
=yes
12079 echo "configure: failed program was:" >&5
12080 cat conftest.
$ac_ext >&5
12082 fu_cv_sys_stat_statfs2_fsize
=no
12089 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12090 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12092 cat >> confdefs.h
<<\EOF
12093 #define STAT_STATFS2_FSIZE 1
12099 if test $space = no
; then
12101 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12102 echo "configure:12103: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12103 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12104 echo $ac_n "(cached) $ac_c" 1>&6
12106 if test "$cross_compiling" = yes; then
12107 fu_cv_sys_stat_fs_data
=no
12109 cat > conftest.
$ac_ext <<EOF
12110 #line 12111 "configure"
12111 #include "confdefs.h"
12112 #include <sys/types.h>
12113 #ifdef HAVE_SYS_PARAM_H
12114 #include <sys/param.h>
12116 #ifdef HAVE_SYS_MOUNT_H
12117 #include <sys/mount.h>
12119 #ifdef HAVE_SYS_FS_TYPES_H
12120 #include <sys/fs_types.h>
12124 struct fs_data fsd;
12125 /* Ultrix's statfs returns 1 for success,
12126 0 for not mounted, -1 for failure. */
12127 exit (statfs (".", &fsd) != 1);
12130 if { (eval echo configure
:12131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12132 fu_cv_sys_stat_fs_data
=yes
12134 echo "configure: failed program was:" >&5
12135 cat conftest.
$ac_ext >&5
12137 fu_cv_sys_stat_fs_data
=no
12144 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12145 if test $fu_cv_sys_stat_fs_data = yes; then
12147 cat >> confdefs.h
<<\EOF
12148 #define STAT_STATFS2_FS_DATA 1
12155 # As a gating factor for large file support, in order to
12156 # use <4GB files we must have the following minimal support
12158 # long long, and a 64 bit off_t or off64_t.
12159 # If we don't have all of these then disable large
12162 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12163 echo "configure:12164: checking checking if large file support can be enabled" >&5
12164 cat > conftest.
$ac_ext <<EOF
12165 #line 12166 "configure"
12166 #include "confdefs.h"
12168 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12169 #include <sys/types.h>
12178 if { (eval echo configure
:12179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12180 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12182 echo "configure: failed program was:" >&5
12183 cat conftest.
$ac_ext >&5
12185 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12188 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12189 echo "$ac_t""yes" 1>&6
12190 cat >> confdefs.h
<<\EOF
12191 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12195 echo "$ac_t""no" 1>&6
12198 # Check whether --with-spinlocks or --without-spinlocks was given.
12199 if test "${with_spinlocks+set}" = set; then
12200 withval
="$with_spinlocks"
12204 if test "x$with_spinlocks" = "xyes"; then
12205 cat >> confdefs.h
<<\EOF
12206 #define USE_SPINLOCKS 1
12210 case "$host_cpu" in
12212 cat >> confdefs.h
<<\EOF
12213 #define SPARC_SPINLOCKS 1
12218 i386|i486|i586|i686
)
12219 cat >> confdefs.h
<<\EOF
12220 #define INTEL_SPINLOCKS 1
12226 cat >> confdefs.h
<<\EOF
12227 #define MIPS_SPINLOCKS 1
12233 cat >> confdefs.h
<<\EOF
12234 #define POWERPC_SPINLOCKS 1
12241 #################################################
12242 # check for ACL support
12244 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12245 echo "configure:12246: checking whether to support ACLs" >&5
12246 # Check whether --with-acl-support or --without-acl-support was given.
12247 if test "${with_acl_support+set}" = set; then
12248 withval
="$with_acl_support"
12254 echo "$ac_t""Using UnixWare ACLs" 1>&6
12255 cat >> confdefs.h
<<\EOF
12256 #define HAVE_UNIXWARE_ACLS 1
12261 echo "$ac_t""Using solaris ACLs" 1>&6
12262 cat >> confdefs.h
<<\EOF
12263 #define HAVE_SOLARIS_ACLS 1
12268 echo "$ac_t""Using IRIX ACLs" 1>&6
12269 cat >> confdefs.h
<<\EOF
12270 #define HAVE_IRIX_ACLS 1
12275 echo "$ac_t""Using AIX ACLs" 1>&6
12276 cat >> confdefs.h
<<\EOF
12277 #define HAVE_AIX_ACLS 1
12282 echo "$ac_t""Using Tru64 ACLs" 1>&6
12283 cat >> confdefs.h
<<\EOF
12284 #define HAVE_TRU64_ACLS 1
12287 LIBS
="$LIBS -lpacl"
12290 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12291 echo "configure:12292: checking for acl_get_file in -lacl" >&5
12292 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12294 echo $ac_n "(cached) $ac_c" 1>&6
12296 ac_save_LIBS
="$LIBS"
12298 cat > conftest.
$ac_ext <<EOF
12299 #line 12300 "configure"
12300 #include "confdefs.h"
12301 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char acl_get_file();
12310 if { (eval echo configure
:12311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12312 eval "ac_cv_lib_$ac_lib_var=yes"
12314 echo "configure: failed program was:" >&5
12315 cat conftest.
$ac_ext >&5
12317 eval "ac_cv_lib_$ac_lib_var=no"
12320 LIBS
="$ac_save_LIBS"
12323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12324 echo "$ac_t""yes" 1>&6
12325 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12327 cat >> confdefs.h
<<EOF
12328 #define $ac_tr_lib 1
12334 echo "$ac_t""no" 1>&6
12337 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12338 echo "configure:12339: checking for ACL support" >&5
12339 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12340 echo $ac_n "(cached) $ac_c" 1>&6
12343 cat > conftest.
$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 #include <sys/types.h>
12347 #include <sys/acl.h>
12349 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12352 if { (eval echo configure
:12353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12354 samba_cv_HAVE_POSIX_ACLS
=yes
12356 echo "configure: failed program was:" >&5
12357 cat conftest.
$ac_ext >&5
12359 samba_cv_HAVE_POSIX_ACLS
=no
12364 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12365 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12366 echo "$ac_t""Using posix ACLs" 1>&6
12367 cat >> confdefs.h
<<\EOF
12368 #define HAVE_POSIX_ACLS 1
12371 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12372 echo "configure:12373: checking for acl_get_perm_np" >&5
12373 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12374 echo $ac_n "(cached) $ac_c" 1>&6
12377 cat > conftest.
$ac_ext <<EOF
12378 #line 12379 "configure"
12379 #include "confdefs.h"
12380 #include <sys/types.h>
12381 #include <sys/acl.h>
12383 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12386 if { (eval echo configure
:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12388 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12390 echo "configure: failed program was:" >&5
12391 cat conftest.
$ac_ext >&5
12393 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12398 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12399 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12400 cat >> confdefs.h
<<\EOF
12401 #define HAVE_ACL_GET_PERM_NP 1
12410 echo "$ac_t""no" 1>&6
12411 cat >> confdefs.h
<<\EOF
12412 #define HAVE_NO_ACLS 1
12418 cat >> confdefs.h
<<\EOF
12419 #define HAVE_NO_ACLS 1
12422 echo "$ac_t""no" 1>&6
12427 #################################################
12428 # check for the historical SAMBA installation
12430 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
12431 # Put all binaries under the /usr/local/samba/bin directory.
12435 #################################################
12436 # Check whether winbind is supported on this platform. If so we need to
12437 # build and install client programs (WINBIND_TARGETS), sbin programs
12438 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12440 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12441 echo "configure:12442: checking whether to build winbind" >&5
12443 # Initially, the value of $host_os decides whether winbind is supported
12451 winbind_no_reason
=", unsupported on $host_os"
12455 # Check the setting of --with-winbindd
12457 # Check whether --with-winbind or --without-winbind was given.
12458 if test "${with_winbind+set}" = set; then
12459 withval
="$with_winbind"
12473 # We need unix domain sockets for winbind
12475 if test x
"$HAVE_WINBIND" = x
"yes"; then
12476 if test x
"$samba_cv_unixsocket" = x
"no"; then
12477 winbind_no_reason
=", no unix domain socket support on $host_os"
12482 # Display test results
12484 if test x
"$HAVE_WINBIND" = x
"yes"; then
12486 echo "$ac_t""yes" 1>&6
12488 WINBIND_TARGETS
="bin/wbinfo"
12489 WINBIND_STARGETS
="bin/winbindd"
12490 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
12492 case "$with_pam" in
12494 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
12498 echo "$ac_t""no$winbind_no_reason" 1>&6
12501 WINBIND_STARGETS
=""
12502 WINBIND_LTARGETS
=""
12503 WINBIND_PAM_TARGETS
=""
12506 # Substitution time!
12513 #################################################
12514 # final configure stuff
12515 echo "checking configure summary"
12516 if test "$cross_compiling" = yes; then
12519 cat > conftest.
$ac_ext <<EOF
12520 #line 12521 "configure"
12521 #include "confdefs.h"
12522 #include "${srcdir-.}/tests/summary.c"
12524 if { (eval echo configure
:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12526 echo "configure OK";
12528 echo "configure: failed program was:" >&5
12529 cat conftest.
$ac_ext >&5
12531 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12541 cat > confcache
<<\EOF
12542 # This file is a shell script that caches the results of configure
12543 # tests run on this system so they can be shared between configure
12544 # scripts and configure runs. It is not useful on other systems.
12545 # If it contains results you don't want to keep, you may remove or edit it.
12547 # By default, configure uses ./config.cache as the cache file,
12548 # creating it if it does not exist already. You can give configure
12549 # the --cache-file=FILE option to use a different cache file; that is
12550 # what configure does when it calls configure scripts in
12551 # subdirectories, so they share the cache.
12552 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12553 # config.status only pays attention to the cache file if you give it the
12554 # --recheck option to rerun configure.
12557 # The following way of writing the cache mishandles newlines in values,
12558 # but we know of no workaround that is simple, portable, and efficient.
12559 # So, don't put newlines in cache variables' values.
12560 # Ultrix sh set writes to stderr and can't be redirected directly,
12561 # and sets the high bit in the cache file unless we assign to the vars.
12563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12565 # `set' does not quote correctly, so add quotes (double-quote substitution
12566 # turns \\\\ into \\, and sed turns \\ into \).
12568 -e "s/'/'\\\\''/g" \
12569 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12572 # `set' quotes correctly as required by POSIX, so do not add quotes.
12573 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12576 if cmp -s $cache_file confcache
; then
12579 if test -w $cache_file; then
12580 echo "updating cache $cache_file"
12581 cat confcache
> $cache_file
12583 echo "not updating unwritable cache $cache_file"
12588 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12590 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12591 # Let make expand exec_prefix.
12592 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12594 # Any assignment to VPATH causes Sun make to only execute
12595 # the first set of double-colon rules, so remove it if not needed.
12596 # If there is a colon in the path, we need to keep it.
12597 if test "x$srcdir" = x.
; then
12598 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12601 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12603 DEFS
=-DHAVE_CONFIG_H
12605 # Without the "./", some shells look in PATH for config.status.
12606 : ${CONFIG_STATUS=./config.status}
12608 echo creating
$CONFIG_STATUS
12609 rm -f $CONFIG_STATUS
12610 cat > $CONFIG_STATUS <<EOF
12612 # Generated automatically by configure.
12613 # Run this file to recreate the current configuration.
12614 # This directory was configured as follows,
12615 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12617 # $0 $ac_configure_args
12619 # Compiler output produced by configure, useful for debugging
12620 # configure, is in ./config.log if it exists.
12622 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12625 case "\$ac_option" in
12626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12627 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12628 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12629 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12630 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12632 -help | --help | --hel | --he | --h)
12633 echo "\$ac_cs_usage"; exit 0 ;;
12634 *) echo "\$ac_cs_usage"; exit 1 ;;
12638 ac_given_srcdir=$srcdir
12639 ac_given_INSTALL="$INSTALL"
12641 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12643 cat >> $CONFIG_STATUS <<EOF
12645 # Protect against being on the right side of a sed subst in config.status.
12646 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12647 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12651 s%@CFLAGS@%$CFLAGS%g
12652 s%@CPPFLAGS@%$CPPFLAGS%g
12653 s%@CXXFLAGS@%$CXXFLAGS%g
12654 s%@FFLAGS@%$FFLAGS%g
12656 s%@LDFLAGS@%$LDFLAGS%g
12658 s%@exec_prefix@%$exec_prefix%g
12659 s%@prefix@%$prefix%g
12660 s%@program_transform_name@%$program_transform_name%g
12661 s%@bindir@%$bindir%g
12662 s%@sbindir@%$sbindir%g
12663 s%@libexecdir@%$libexecdir%g
12664 s%@datadir@%$datadir%g
12665 s%@sysconfdir@%$sysconfdir%g
12666 s%@sharedstatedir@%$sharedstatedir%g
12667 s%@localstatedir@%$localstatedir%g
12668 s%@libdir@%$libdir%g
12669 s%@includedir@%$includedir%g
12670 s%@oldincludedir@%$oldincludedir%g
12671 s%@infodir@%$infodir%g
12672 s%@mandir@%$mandir%g
12673 s%@codepagedir@%$codepagedir%g
12674 s%@configdir@%$configdir%g
12675 s%@lockdir@%$lockdir%g
12676 s%@logfilebase@%$logfilebase%g
12677 s%@privatedir@%$privatedir%g
12678 s%@swatdir@%$swatdir%g
12679 s%@RUNPROG@%$RUNPROG%g
12680 s%@MPROGS@%$MPROGS%g
12681 s%@LDSHFLAGS@%$LDSHFLAGS%g
12683 s%@HOST_OS@%$HOST_OS%g
12684 s%@PAM_MOD@%$PAM_MOD%g
12685 s%@PDBEDIT@%$PDBEDIT%g
12687 s%@WRAP32@%$WRAP32%g
12688 s%@PICFLAG@%$PICFLAG%g
12689 s%@PICSUFFIX@%$PICSUFFIX%g
12690 s%@SHLIBEXT@%$SHLIBEXT%g
12691 s%@BLDSHARED@%$BLDSHARED%g
12692 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
12693 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
12695 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12696 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12697 s%@INSTALL_DATA@%$INSTALL_DATA%g
12699 s%@BROKEN_CC@%$BROKEN_CC%g
12701 s%@host_alias@%$host_alias%g
12702 s%@host_cpu@%$host_cpu%g
12703 s%@host_vendor@%$host_vendor%g
12704 s%@host_os@%$host_os%g
12705 s%@target@%$target%g
12706 s%@target_alias@%$target_alias%g
12707 s%@target_cpu@%$target_cpu%g
12708 s%@target_vendor@%$target_vendor%g
12709 s%@target_os@%$target_os%g
12711 s%@build_alias@%$build_alias%g
12712 s%@build_cpu@%$build_cpu%g
12713 s%@build_vendor@%$build_vendor%g
12714 s%@build_os@%$build_os%g
12716 s%@LIBOBJS@%$LIBOBJS%g
12717 s%@TERMLIBS@%$TERMLIBS%g
12718 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12720 s%@QUOTAOBJS@%$QUOTAOBJS%g
12721 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12722 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12723 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12724 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
12725 s%@builddir@%$builddir%g
12730 cat >> $CONFIG_STATUS <<\EOF
12732 # Split the substitutions into bite-sized pieces for seds with
12733 # small command number limits, like on Digital OSF/1 and HP-UX.
12734 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12735 ac_file
=1 # Number of current file.
12736 ac_beg
=1 # First line for current file.
12737 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12740 while $ac_more_lines; do
12741 if test $ac_beg -gt 1; then
12742 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12744 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12746 if test ! -s conftest.s
$ac_file; then
12747 ac_more_lines
=false
12748 rm -f conftest.s
$ac_file
12750 if test -z "$ac_sed_cmds"; then
12751 ac_sed_cmds
="sed -f conftest.s$ac_file"
12753 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12755 ac_file
=`expr $ac_file + 1`
12757 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12760 if test -z "$ac_sed_cmds"; then
12765 cat >> $CONFIG_STATUS <<EOF
12767 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12769 cat >> $CONFIG_STATUS <<\EOF
12770 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12773 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12774 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12775 *) ac_file_in
="${ac_file}.in" ;;
12778 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12780 # Remove last slash and all that follows it. Not all systems have dirname.
12781 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12782 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12783 # The file is in a subdirectory.
12784 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12785 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12786 # A "../" for each directory in $ac_dir_suffix.
12787 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12789 ac_dir_suffix
= ac_dots
=
12792 case "$ac_given_srcdir" in
12794 if test -z "$ac_dots"; then top_srcdir
=.
12795 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12796 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12797 *) # Relative path.
12798 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12799 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12802 case "$ac_given_INSTALL" in
12803 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12804 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12807 echo creating
"$ac_file"
12809 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12811 *Makefile
*) ac_comsub
="1i\\
12812 # $configure_input" ;;
12816 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12818 s%@configure_input@%$configure_input%g
12819 s%@srcdir@%$srcdir%g
12820 s%@top_srcdir@%$top_srcdir%g
12821 s%@INSTALL@%$INSTALL%g
12822 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12826 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12827 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12829 # ac_d sets the value in "#define NAME VALUE" lines.
12830 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12831 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12834 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12835 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12836 ac_uB
='\([ ]\)%\1#\2define\3'
12839 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12840 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12841 ac_eB
='$%\1#\2define\3'
12845 if test "${CONFIG_HEADERS+set}" != set; then
12847 cat >> $CONFIG_STATUS <<EOF
12848 CONFIG_HEADERS="include/config.h"
12850 cat >> $CONFIG_STATUS <<\EOF
12852 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12855 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12856 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12857 *) ac_file_in
="${ac_file}.in" ;;
12860 echo creating
$ac_file
12862 rm -f conftest.frag conftest.
in conftest.out
12863 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12864 cat $ac_file_inputs > conftest.
in
12868 # Transform confdefs.h into a sed script conftest.vals that substitutes
12869 # the proper values into config.h.in to produce config.h. And first:
12870 # Protect against being on the right side of a sed subst in config.status.
12871 # Protect against being in an unquoted here document in config.status.
12872 rm -f conftest.vals
12873 cat > conftest.hdr
<<\EOF
12876 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12880 sed -n -f conftest.hdr confdefs.h > conftest.vals
12883 # This sed command replaces #undef with comments. This is necessary, for
12884 # example, in the case of _POSIX_SOURCE, which is predefined and required
12885 # on some systems where configure will not decide to define it.
12886 cat >> conftest.vals <<\EOF
12887 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12890 # Break up conftest.vals because some shells have a limit on
12891 # the size of here documents, and old seds have small limits too.
12893 rm -f conftest.tail
12896 ac_lines=`grep -c . conftest.vals
`
12897 # grep -c gives empty output for an empty file on some AIX systems.
12898 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12899 # Write a limited-size here document to conftest.frag.
12900 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12901 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12903 sed -f conftest.frag conftest.in > conftest.out
12905 mv conftest.out conftest.in
12906 ' >> $CONFIG_STATUS
12907 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12908 rm -f conftest.vals
12909 mv conftest.tail conftest.vals
12911 rm -f conftest.vals
12913 cat >> $CONFIG_STATUS <<\EOF
12914 rm -f conftest.frag conftest.h
12915 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12916 cat conftest.in >> conftest.h
12918 if cmp -s $ac_file conftest.h 2>/dev/null; then
12919 echo "$ac_file is unchanged"
12922 # Remove last slash and all that follows it. Not all systems have dirname.
12923 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12925 # The file is in a subdirectory.
12926 test ! -d "$ac_dir" && mkdir "$ac_dir"
12929 mv conftest.h $ac_file
12934 cat >> $CONFIG_STATUS <<EOF
12937 cat >> $CONFIG_STATUS <<\EOF
12941 chmod +x $CONFIG_STATUS
12942 rm -fr confdefs* $ac_clean_files
12943 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1