3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-maintainer-mode enable some make rules for maintainers"
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
27 --with-krb4=base-dir Include Kerberos IV support
28 --whithout-krb4 Don't include Kerbers IV support (default)"
30 --with-krb5=base-dir Include Kerberos 5 support
31 --whithout-krb5 Don't include Kerbers 5 support (default)"
33 --with-automount Include AUTOMOUNT support
34 --without-automount Don't include AUTOMOUNT support (default)"
36 --with-smbmount Include SMBMOUNT (Linux only) support
37 --without-smbmount Don't include SMBMOUNT support (default)"
39 --with-pam Include PAM password database support
40 --without-pam Don't include PAM password database support (default)"
42 --with-ldap Include LDAP support
43 --without-ldap Don't include LDAP support (default)"
45 --with-nisplus Include NISPLUS password database support
46 --without-nisplus Don't include NISPLUS password database support (default)"
48 --with-nisplus-home Include NISPLUS_HOME support
49 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
51 --with-ssl Include SSL support
52 --without-ssl Don't include SSL support (default)
53 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
55 --with-mmap Include experimental MMAP support
56 --without-mmap Don't include MMAP support (default)"
58 --with-syslog Include experimental SYSLOG support
59 --without-syslog Don't include SYSLOG support (default)"
61 --with-netatalk Include experimental Netatalk support
62 --without-netatalk Don't include experimental Netatalk support (default)"
64 --with-quotas Include experimental disk-quota support
65 --without-quotas Don't include experimental disk-quota support (default)"
67 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
69 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
71 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
77 cache_file
=.
/config.cache
86 program_transform_name
=s
,x
,x
,
94 bindir
='${exec_prefix}/bin'
95 sbindir
='${exec_prefix}/sbin'
96 libexecdir
='${exec_prefix}/libexec'
97 datadir
='${prefix}/share'
98 sysconfdir
='${prefix}/etc'
99 sharedstatedir
='${prefix}/com'
100 localstatedir
='${prefix}/var'
101 libdir
='${exec_prefix}/lib'
102 includedir
='${prefix}/include'
103 oldincludedir
='/usr/include'
104 infodir
='${prefix}/info'
105 mandir
='${prefix}/man'
107 # Initialize some other variables.
110 # Maximum number of lines to put in a shell here document.
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
125 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 # Accept the important Cygnus configure options, so we can diagnose typos.
133 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
135 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
136 bindir
="$ac_optarg" ;;
138 -build |
--build |
--buil |
--bui |
--bu)
140 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
141 build
="$ac_optarg" ;;
143 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
144 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
145 ac_prev
=cache_file
;;
146 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
147 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
148 cache_file
="$ac_optarg" ;;
150 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
152 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
154 datadir
="$ac_optarg" ;;
156 -disable-* |
--disable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* |
--enable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
179 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
180 |
--exec |
--exe |
--ex)
181 ac_prev
=exec_prefix
;;
182 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
183 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
184 |
--exec=* |
--exe=* |
--ex=*)
185 exec_prefix
="$ac_optarg" ;;
187 -gas |
--gas |
--ga |
--g)
188 # Obsolete; use --with-gas.
191 -help |
--help |
--hel |
--he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
246 -host |
--host |
--hos |
--ho)
248 -host=* |
--host=* |
--hos=* |
--ho=*)
251 -includedir |
--includedir |
--includedi |
--included |
--include \
252 |
--includ |
--inclu |
--incl |
--inc)
253 ac_prev
=includedir
;;
254 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
255 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
256 includedir
="$ac_optarg" ;;
258 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
260 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
261 infodir
="$ac_optarg" ;;
263 -libdir |
--libdir |
--libdi |
--libd)
265 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
266 libdir
="$ac_optarg" ;;
268 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
269 |
--libexe |
--libex |
--libe)
270 ac_prev
=libexecdir
;;
271 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
272 |
--libexe=* |
--libex=* |
--libe=*)
273 libexecdir
="$ac_optarg" ;;
275 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
276 |
--localstate |
--localstat |
--localsta |
--localst \
277 |
--locals |
--local |
--loca |
--loc |
--lo)
278 ac_prev
=localstatedir
;;
279 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
280 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
281 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
282 localstatedir
="$ac_optarg" ;;
284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
287 mandir
="$ac_optarg" ;;
290 # Obsolete; use --without-fp.
293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
303 |
--oldin |
--oldi |
--old |
--ol |
--o)
304 ac_prev
=oldincludedir
;;
305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
308 oldincludedir
="$ac_optarg" ;;
310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
313 prefix
="$ac_optarg" ;;
315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
316 |
--program-pre |
--program-pr |
--program-p)
317 ac_prev
=program_prefix
;;
318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
320 program_prefix
="$ac_optarg" ;;
322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
323 |
--program-suf |
--program-su |
--program-s)
324 ac_prev
=program_suffix
;;
325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
327 program_suffix
="$ac_optarg" ;;
329 -program-transform-name |
--program-transform-name \
330 |
--program-transform-nam |
--program-transform-na \
331 |
--program-transform-n |
--program-transform- \
332 |
--program-transform |
--program-transfor \
333 |
--program-transfo |
--program-transf \
334 |
--program-trans |
--program-tran \
335 |
--progr-tra |
--program-tr |
--program-t)
336 ac_prev
=program_transform_name
;;
337 -program-transform-name=* |
--program-transform-name=* \
338 |
--program-transform-nam=* |
--program-transform-na=* \
339 |
--program-transform-n=* |
--program-transform-=* \
340 |
--program-transform=* |
--program-transfor=* \
341 |
--program-transfo=* |
--program-transf=* \
342 |
--program-trans=* |
--program-tran=* \
343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
344 program_transform_name
="$ac_optarg" ;;
346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
347 |
-silent |
--silent |
--silen |
--sile |
--sil)
350 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
352 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
354 sbindir
="$ac_optarg" ;;
356 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
357 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
358 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
360 ac_prev
=sharedstatedir
;;
361 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
362 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
363 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
365 sharedstatedir
="$ac_optarg" ;;
367 -site |
--site |
--sit)
369 -site=* |
--site=* |
--sit=*)
372 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
374 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
375 srcdir
="$ac_optarg" ;;
377 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
378 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
379 ac_prev
=sysconfdir
;;
380 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
381 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
382 sysconfdir
="$ac_optarg" ;;
384 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
386 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
387 target
="$ac_optarg" ;;
389 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
392 -version |
--version |
--versio |
--versi |
--vers)
393 echo "configure generated by autoconf version 2.12"
397 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package
=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* |
--without-*)
410 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
423 |
--x-incl |
--x-inc |
--x-in |
--x-i)
424 ac_prev
=x_includes
;;
425 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
426 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
427 x_includes
="$ac_optarg" ;;
429 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
430 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
431 ac_prev
=x_libraries
;;
432 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
433 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
434 x_libraries
="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE
; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c) ;;
486 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
487 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
488 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest
* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file
=include
/includes.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted
=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted
=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE
; then
539 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file
in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp
='$CPP $CPPFLAGS'
562 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling
=$ac_cv_prog_cc_cross
566 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
567 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
575 ac_n
= ac_c
='\c' ac_t
=
580 # we want to be compatibe with older versions of Samba
592 # compile with optimisation and without debugging by default
593 CFLAGS
=${CFLAGS-"-O"}
595 # Extract the first word of "gcc", so it can be a program name with args.
596 set dummy gcc
; ac_word
=$2
597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598 echo "configure:599: checking for $ac_word" >&5
599 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
600 echo $ac_n "(cached) $ac_c" 1>&6
602 if test -n "$CC"; then
603 ac_cv_prog_CC
="$CC" # Let the user override the test.
605 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
606 for ac_dir
in $PATH; do
607 test -z "$ac_dir" && ac_dir
=.
608 if test -f $ac_dir/$ac_word; then
617 if test -n "$CC"; then
618 echo "$ac_t""$CC" 1>&6
620 echo "$ac_t""no" 1>&6
623 if test -z "$CC"; then
624 # Extract the first word of "cc", so it can be a program name with args.
625 set dummy cc
; ac_word
=$2
626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627 echo "configure:628: checking for $ac_word" >&5
628 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 if test -n "$CC"; then
632 ac_cv_prog_CC
="$CC" # Let the user override the test.
634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
636 for ac_dir
in $PATH; do
637 test -z "$ac_dir" && ac_dir
=.
638 if test -f $ac_dir/$ac_word; then
639 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
648 if test $ac_prog_rejected = yes; then
649 # We found a bogon in the path, so make sure we never use it.
650 set dummy
$ac_cv_prog_CC
652 if test $# -gt 0; then
653 # We chose a different compiler from the bogus one.
654 # However, it has the same basename, so the bogon will be chosen
655 # first if we set CC to just the basename; use the full file name.
657 set dummy
"$ac_dir/$ac_word" "$@"
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
671 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
674 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
675 echo "configure:676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp
='$CPP $CPPFLAGS'
680 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling
=$ac_cv_prog_cc_cross
684 cat > conftest.
$ac_ext <<EOF
685 #line 686 "configure"
686 #include "confdefs.h"
689 if { (eval echo configure
:690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
690 ac_cv_prog_cc_works
=yes
691 # If we can't run a trivial program, we are probably using a cross compiler.
692 if (.
/conftest
; exit) 2>/dev
/null
; then
693 ac_cv_prog_cc_cross
=no
695 ac_cv_prog_cc_cross
=yes
698 echo "configure: failed program was:" >&5
699 cat conftest.
$ac_ext >&5
700 ac_cv_prog_cc_works
=no
704 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
705 if test $ac_cv_prog_cc_works = no
; then
706 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
708 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
709 echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
710 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
711 cross_compiling
=$ac_cv_prog_cc_cross
713 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
714 echo "configure:715: checking whether we are using GNU C" >&5
715 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
718 cat > conftest.c
<<EOF
723 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
730 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
732 if test $ac_cv_prog_gcc = yes; then
734 ac_test_CFLAGS
="${CFLAGS+set}"
735 ac_save_CFLAGS
="$CFLAGS"
737 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
738 echo "configure:739: checking whether ${CC-cc} accepts -g" >&5
739 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
742 echo 'void f(){}' > conftest.c
743 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
752 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
753 if test "$ac_test_CFLAGS" = set; then
754 CFLAGS
="$ac_save_CFLAGS"
755 elif test $ac_cv_prog_cc_g = yes; then
762 test "${CFLAGS+set}" = set || CFLAGS
="-g"
766 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
767 if test -f $ac_dir/install-sh
; then
769 ac_install_sh
="$ac_aux_dir/install-sh -c"
771 elif test -f $ac_dir/install.sh
; then
773 ac_install_sh
="$ac_aux_dir/install.sh -c"
777 if test -z "$ac_aux_dir"; then
778 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
780 ac_config_guess
=$ac_aux_dir/config.guess
781 ac_config_sub
=$ac_aux_dir/config.sub
782 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
784 # Find a good install program. We prefer a C program (faster),
785 # so one script is as good as another. But avoid the broken or
786 # incompatible versions:
787 # SysV /etc/install, /usr/sbin/install
788 # SunOS /usr/etc/install
791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
793 # ./install, which can be erroneously created by make from ./install.sh.
794 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
795 echo "configure:796: checking for a BSD compatible install" >&5
796 if test -z "$INSTALL"; then
797 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
801 for ac_dir
in $PATH; do
802 # Account for people who put trailing slashes in PATH elements.
804 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
806 # OSF1 and SCO ODT 3.0 have their own names for install.
807 for ac_prog
in ginstall installbsd scoinst
install; do
808 if test -f $ac_dir/$ac_prog; then
809 if test $ac_prog = install &&
810 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
811 # AIX install. It has an incompatible calling convention.
812 # OSF/1 installbsd also uses dspmsg, but is usable.
815 ac_cv_path_install
="$ac_dir/$ac_prog -c"
826 if test "${ac_cv_path_install+set}" = set; then
827 INSTALL
="$ac_cv_path_install"
829 # As a last resort, use the slow shell script. We don't cache a
830 # path for INSTALL within a source directory, because that will
831 # break other packages using the cache if that directory is
832 # removed, or if the path is relative.
833 INSTALL
="$ac_install_sh"
836 echo "$ac_t""$INSTALL" 1>&6
838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
839 # It thinks the first close brace ends the variable substitution.
840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
842 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
844 for ac_prog
in mawk gawk nawk
awk
846 # Extract the first word of "$ac_prog", so it can be a program name with args.
847 set dummy
$ac_prog; ac_word
=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$AWK"; then
854 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
857 for ac_dir
in $PATH; do
858 test -z "$ac_dir" && ac_dir
=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK
="$ac_prog"
867 AWK
="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
878 if test "x$CC" != xcc
; then
879 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
880 echo "configure:881: checking whether $CC and cc understand -c and -o together" >&5
882 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
883 echo "configure:884: checking whether cc understands -c and -o together" >&5
885 set dummy
$CC; ac_cc
="`echo $2 |
886 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
887 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 echo 'foo(){}' > conftest.c
891 # Make sure it works both with $CC and with simple cc.
892 # We do the test twice because some compilers refuse to overwrite an
893 # existing .o file with -o, though they will create one.
894 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
895 if { (eval echo configure
:896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
896 test -f conftest.o
&& { (eval echo configure
:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
898 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
899 if test "x$CC" != xcc
; then
900 # Test first that cc exists at all.
901 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
902 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
903 if { (eval echo configure
:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
904 test -f conftest.o
&& { (eval echo configure
:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
909 # cc exists but doesn't like -o.
910 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
915 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
920 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
921 echo "$ac_t""yes" 1>&6
923 echo "$ac_t""no" 1>&6
924 cat >> confdefs.h
<<\EOF
925 #define NO_MINUS_C_MINUS_O 1
930 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
937 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
938 echo "configure:939: checking that the C compiler understands volatile" >&5
939 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
943 cat > conftest.
$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
946 #include <sys/types.h>
951 if { (eval echo configure
:952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
953 samba_cv_volatile
=yes
955 echo "configure: failed program was:" >&5
956 cat conftest.
$ac_ext >&5
963 echo "$ac_t""$samba_cv_volatile" 1>&6
964 if test x
"$samba_cv_volatile" = x
"yes"; then
965 cat >> confdefs.h
<<\EOF
966 #define HAVE_VOLATILE 1
974 # Do some error checking and defaulting for the host and target type.
976 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
979 # 1. You are not allowed to specify --host, --target, and nonopt at the
981 # 2. Host defaults to nonopt.
982 # 3. If nonopt is not specified, then host defaults to the current host,
983 # as determined by config.guess.
984 # 4. Target and build default to nonopt.
985 # 5. If nonopt is not specified, then target and build default to host.
987 # The aliases save the names the user supplied, while $host etc.
988 # will get canonicalized.
989 case $host---$target---$nonopt in
990 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
991 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
995 # Make sure we can run config.sub.
996 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
997 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1000 echo $ac_n "checking host system type""... $ac_c" 1>&6
1001 echo "configure:1002: checking host system type" >&5
1004 case "$host_alias" in
1008 if host_alias
=`$ac_config_guess`; then :
1009 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1011 *) host_alias
=$nonopt ;;
1015 host=`$ac_config_sub $host_alias`
1016 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1017 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1018 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1019 echo "$ac_t""$host" 1>&6
1021 echo $ac_n "checking target system type""... $ac_c" 1>&6
1022 echo "configure:1023: checking target system type" >&5
1024 target_alias
=$target
1025 case "$target_alias" in
1028 NONE
) target_alias
=$host_alias ;;
1029 *) target_alias
=$nonopt ;;
1033 target
=`$ac_config_sub $target_alias`
1034 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037 echo "$ac_t""$target" 1>&6
1039 echo $ac_n "checking build system type""... $ac_c" 1>&6
1040 echo "configure:1041: checking build system type" >&5
1043 case "$build_alias" in
1046 NONE
) build_alias
=$host_alias ;;
1047 *) build_alias
=$nonopt ;;
1051 build
=`$ac_config_sub $build_alias`
1052 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055 echo "$ac_t""$build" 1>&6
1057 test "$host_alias" != "$target_alias" &&
1058 test "$program_prefix$program_suffix$program_transform_name" = \
1060 program_prefix
=${target_alias}-
1064 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1065 echo "configure:1066: checking config.cache system type" >&5
1066 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1067 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1068 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1069 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1070 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1071 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1072 echo "$ac_t""different" 1>&6
1073 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1075 echo "$ac_t""same" 1>&6
1077 ac_cv_host_system_type
="$host"
1078 ac_cv_build_system_type
="$build"
1079 ac_cv_target_system_type
="$target"
1082 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1083 if test "${enable_maintainer_mode+set}" = set; then
1084 enableval
="$enable_maintainer_mode"
1085 maint_mode
=$enableval
1090 if test x
"$maint_mode" = x
"yes"; then MAINT
=; else MAINT
='#'; fi
1092 # Extract the first word of "autoconf", so it can be a program name with args.
1093 set dummy autoconf
; ac_word
=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1101 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a path.
1104 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1105 for ac_dir
in $PATH; do
1106 test -z "$ac_dir" && ac_dir
=.
1107 if test -f $ac_dir/$ac_word; then
1108 ac_cv_path_AUTOCONF
="$ac_dir/$ac_word"
1113 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF
="autoconf"
1117 AUTOCONF
="$ac_cv_path_AUTOCONF"
1118 if test -n "$AUTOCONF"; then
1119 echo "$ac_t""$AUTOCONF" 1>&6
1121 echo "$ac_t""no" 1>&6
1125 # Extract the first word of "autoheader", so it can be a program name with args.
1126 set dummy autoheader
; ac_word
=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 case "$AUTOHEADER" in
1134 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
1137 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1138 for ac_dir
in $PATH; do
1139 test -z "$ac_dir" && ac_dir
=.
1140 if test -f $ac_dir/$ac_word; then
1141 ac_cv_path_AUTOHEADER
="$ac_dir/$ac_word"
1146 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER
="autoheader"
1150 AUTOHEADER
="$ac_cv_path_AUTOHEADER"
1151 if test -n "$AUTOHEADER"; then
1152 echo "$ac_t""$AUTOHEADER" 1>&6
1154 echo "$ac_t""no" 1>&6
1161 # Config CPPFLAG settings for strange OS's that must be set
1162 # before other tests.
1165 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1167 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1168 echo "configure:1169: checking whether ${CC-cc} accepts -Ae" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 echo 'void f(){}' > conftest.c
1173 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1174 ac_cv_prog_cc_Ae
=yes
1182 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1183 if test $ac_cv_prog_cc_Ae = yes; then
1184 CPPFLAGS
="$CPPFLAGS -Ae"
1187 # Defines needed for HPUX support.
1188 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1189 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1193 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1194 cat >> confdefs.h
<<\EOF
1195 #define USE_BOTH_CRYPT_CALLS 1
1200 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1201 cat >> confdefs.h
<<\EOF
1202 #define USE_BOTH_CRYPT_CALLS 1
1209 # AIX4.x doesn't even admit to having large
1210 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1213 echo "$ac_t""enabling large file support" 1>&6
1214 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1217 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1218 # to the existance of large files..
1219 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1220 # recommendations on large file support, however it makes the
1221 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1222 # recommendation makes the compile fail on gcc2.7. JRA.
1227 echo "$ac_t""enabling large file support" 1>&6
1228 if test "$ac_cv_prog_gcc" = yes; then
1229 ${CC-cc} -v >conftest.c
2>&1
1230 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1232 case "$ac_cv_gcc_compiler_version_number" in
1233 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1234 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1237 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1241 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1247 # Tests needed for SINIX large file support.
1250 if test $host = mips-sni-sysv4
; then
1251 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1252 echo "configure:1253: checking for LFS support" >&5
1253 old_CPPFLAGS
="$CPPFLAGS"
1254 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1255 if test "$cross_compiling" = yes; then
1256 SINIX_LFS_SUPPORT
=cross
1258 cat > conftest.
$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1264 #if _LFS64_LARGEFILE == 1
1271 if { (eval echo configure
:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1273 SINIX_LFS_SUPPORT
=yes
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1278 SINIX_LFS_SUPPORT
=no
1283 CPPFLAGS
="$old_CPPFLAGS"
1284 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1285 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1286 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1287 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1288 LIBS
="`getconf LFS64_LIBS` $LIBS"
1290 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1295 # Tests needed for glibc 2.1 large file support.
1298 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1299 echo "configure:1300: checking for LFS support" >&5
1300 old_CPPFLAGS
="$CPPFLAGS"
1301 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1302 if test "$cross_compiling" = yes; then
1303 GLIBC_LFS_SUPPORT
=cross
1305 cat > conftest.
$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 #if _LFS64_LARGEFILE == 1
1318 if { (eval echo configure
:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1320 GLIBC_LFS_SUPPORT
=yes
1322 echo "configure: failed program was:" >&5
1323 cat conftest.
$ac_ext >&5
1325 GLIBC_LFS_SUPPORT
=no
1330 CPPFLAGS
="$old_CPPFLAGS"
1331 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1332 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1334 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1339 echo $ac_n "checking for inline""... $ac_c" 1>&6
1340 echo "configure:1341: checking for inline" >&5
1341 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1345 for ac_kw
in inline __inline__ __inline
; do
1346 cat > conftest.
$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1354 if { (eval echo configure
:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1356 ac_cv_c_inline
=$ac_kw; break
1358 echo "configure: failed program was:" >&5
1359 cat conftest.
$ac_ext >&5
1366 echo "$ac_t""$ac_cv_c_inline" 1>&6
1367 case "$ac_cv_c_inline" in
1369 no
) cat >> confdefs.h
<<\EOF
1373 *) cat >> confdefs.h
<<EOF
1374 #define inline $ac_cv_c_inline
1379 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1380 echo "configure:1381: checking how to run the C preprocessor" >&5
1381 # On Suns, sometimes $CPP names a directory.
1382 if test -n "$CPP" && test -d "$CPP"; then
1385 if test -z "$CPP"; then
1386 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 # This must be in double quotes, not single quotes, because CPP may get
1390 # substituted into the Makefile and "${CC-cc}" will confuse make.
1392 # On the NeXT, cc -E runs the code through the compiler's parser,
1393 # not just through cpp.
1394 cat > conftest.
$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1400 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1401 { (eval echo configure
:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1402 ac_err
=`grep -v '^ *+' conftest.out`
1403 if test -z "$ac_err"; then
1407 echo "configure: failed program was:" >&5
1408 cat conftest.
$ac_ext >&5
1410 CPP
="${CC-cc} -E -traditional-cpp"
1411 cat > conftest.
$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1417 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1418 { (eval echo configure
:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1419 ac_err
=`grep -v '^ *+' conftest.out`
1420 if test -z "$ac_err"; then
1424 echo "configure: failed program was:" >&5
1425 cat conftest.
$ac_ext >&5
1432 ac_cv_prog_CPP
="$CPP"
1434 CPP
="$ac_cv_prog_CPP"
1436 ac_cv_prog_CPP
="$CPP"
1438 echo "$ac_t""$CPP" 1>&6
1440 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1441 echo "configure:1442: checking for ANSI C header files" >&5
1442 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 cat > conftest.
$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1454 { (eval echo configure
:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1455 ac_err
=`grep -v '^ *+' conftest.out`
1456 if test -z "$ac_err"; then
1458 ac_cv_header_stdc
=yes
1461 echo "configure: failed program was:" >&5
1462 cat conftest.
$ac_ext >&5
1464 ac_cv_header_stdc
=no
1468 if test $ac_cv_header_stdc = yes; then
1469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1470 cat > conftest.
$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1476 egrep "memchr" >/dev
/null
2>&1; then
1480 ac_cv_header_stdc
=no
1486 if test $ac_cv_header_stdc = yes; then
1487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1488 cat > conftest.
$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1494 egrep "free" >/dev
/null
2>&1; then
1498 ac_cv_header_stdc
=no
1504 if test $ac_cv_header_stdc = yes; then
1505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1506 if test "$cross_compiling" = yes; then
1509 cat > conftest.
$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1513 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1514 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1516 int main () { int i; for (i = 0; i < 256; i++)
1517 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1521 if { (eval echo configure
:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1525 echo "configure: failed program was:" >&5
1526 cat conftest.
$ac_ext >&5
1528 ac_cv_header_stdc
=no
1536 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1537 if test $ac_cv_header_stdc = yes; then
1538 cat >> confdefs.h
<<\EOF
1539 #define STDC_HEADERS 1
1545 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1547 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1548 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1549 echo "configure:1550: checking for $ac_hdr that defines DIR" >&5
1550 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 cat > conftest.
$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1556 #include <sys/types.h>
1562 if { (eval echo configure
:1563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1564 eval "ac_cv_header_dirent_$ac_safe=yes"
1566 echo "configure: failed program was:" >&5
1567 cat conftest.
$ac_ext >&5
1569 eval "ac_cv_header_dirent_$ac_safe=no"
1573 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1576 cat >> confdefs.h
<<EOF
1577 #define $ac_tr_hdr 1
1579 ac_header_dirent
=$ac_hdr; break
1581 echo "$ac_t""no" 1>&6
1584 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1585 if test $ac_header_dirent = dirent.h
; then
1586 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1587 echo "configure:1588: checking for opendir in -ldir" >&5
1588 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 ac_save_LIBS
="$LIBS"
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1597 /* Override any gcc2 internal prototype to avoid an error. */
1598 /* We use char because int might match the return type of a gcc2
1599 builtin and then its argument prototype would still apply. */
1606 if { (eval echo configure
:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1608 eval "ac_cv_lib_$ac_lib_var=yes"
1610 echo "configure: failed program was:" >&5
1611 cat conftest.
$ac_ext >&5
1613 eval "ac_cv_lib_$ac_lib_var=no"
1616 LIBS
="$ac_save_LIBS"
1619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1620 echo "$ac_t""yes" 1>&6
1623 echo "$ac_t""no" 1>&6
1627 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1628 echo "configure:1629: checking for opendir in -lx" >&5
1629 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 ac_save_LIBS
="$LIBS"
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1638 /* Override any gcc2 internal prototype to avoid an error. */
1639 /* We use char because int might match the return type of a gcc2
1640 builtin and then its argument prototype would still apply. */
1647 if { (eval echo configure
:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1649 eval "ac_cv_lib_$ac_lib_var=yes"
1651 echo "configure: failed program was:" >&5
1652 cat conftest.
$ac_ext >&5
1654 eval "ac_cv_lib_$ac_lib_var=no"
1657 LIBS
="$ac_save_LIBS"
1660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1664 echo "$ac_t""no" 1>&6
1669 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether time.h and sys/time.h may both be included" >&5
1671 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 cat > conftest.
$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 #include <sys/types.h>
1678 #include <sys/time.h>
1684 if { (eval echo configure
:1685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1686 ac_cv_header_time
=yes
1688 echo "configure: failed program was:" >&5
1689 cat conftest.
$ac_ext >&5
1691 ac_cv_header_time
=no
1696 echo "$ac_t""$ac_cv_header_time" 1>&6
1697 if test $ac_cv_header_time = yes; then
1698 cat >> confdefs.h
<<\EOF
1699 #define TIME_WITH_SYS_TIME 1
1704 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1705 echo "configure:1706: checking for sys/wait.h that is POSIX.1 compatible" >&5
1706 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 cat > conftest.
$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <sys/types.h>
1713 #include <sys/wait.h>
1715 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1718 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1723 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1726 if { (eval echo configure
:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1728 ac_cv_header_sys_wait_h
=yes
1730 echo "configure: failed program was:" >&5
1731 cat conftest.
$ac_ext >&5
1733 ac_cv_header_sys_wait_h
=no
1738 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1739 if test $ac_cv_header_sys_wait_h = yes; then
1740 cat >> confdefs.h
<<\EOF
1741 #define HAVE_SYS_WAIT_H 1
1746 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1748 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_hdr" >&5
1751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 cat > conftest.
$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1760 { (eval echo configure
:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1761 ac_err
=`grep -v '^ *+' conftest.out`
1762 if test -z "$ac_err"; then
1764 eval "ac_cv_header_$ac_safe=yes"
1767 echo "configure: failed program was:" >&5
1768 cat conftest.
$ac_ext >&5
1770 eval "ac_cv_header_$ac_safe=no"
1774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1777 cat >> confdefs.h
<<EOF
1778 #define $ac_tr_hdr 1
1782 echo "$ac_t""no" 1>&6
1786 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
1788 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_hdr" >&5
1791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 cat > conftest.
$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1799 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1800 { (eval echo configure
:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1801 ac_err
=`grep -v '^ *+' conftest.out`
1802 if test -z "$ac_err"; then
1804 eval "ac_cv_header_$ac_safe=yes"
1807 echo "configure: failed program was:" >&5
1808 cat conftest.
$ac_ext >&5
1810 eval "ac_cv_header_$ac_safe=no"
1814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1815 echo "$ac_t""yes" 1>&6
1816 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1817 cat >> confdefs.h
<<EOF
1818 #define $ac_tr_hdr 1
1822 echo "$ac_t""no" 1>&6
1826 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
1828 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1830 echo "configure:1831: checking for $ac_hdr" >&5
1831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 cat > conftest.
$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1839 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1840 { (eval echo configure
:1841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1841 ac_err
=`grep -v '^ *+' conftest.out`
1842 if test -z "$ac_err"; then
1844 eval "ac_cv_header_$ac_safe=yes"
1847 echo "configure: failed program was:" >&5
1848 cat conftest.
$ac_ext >&5
1850 eval "ac_cv_header_$ac_safe=no"
1854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1855 echo "$ac_t""yes" 1>&6
1856 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1857 cat >> confdefs.h
<<EOF
1858 #define $ac_tr_hdr 1
1862 echo "$ac_t""no" 1>&6
1866 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
1868 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1870 echo "configure:1871: checking for $ac_hdr" >&5
1871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 cat > conftest.
$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1879 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1880 { (eval echo configure
:1881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1881 ac_err
=`grep -v '^ *+' conftest.out`
1882 if test -z "$ac_err"; then
1884 eval "ac_cv_header_$ac_safe=yes"
1887 echo "configure: failed program was:" >&5
1888 cat conftest.
$ac_ext >&5
1890 eval "ac_cv_header_$ac_safe=no"
1894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1897 cat >> confdefs.h
<<EOF
1898 #define $ac_tr_hdr 1
1902 echo "$ac_t""no" 1>&6
1906 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
1908 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_hdr" >&5
1911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1919 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1920 { (eval echo configure
:1921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1921 ac_err
=`grep -v '^ *+' conftest.out`
1922 if test -z "$ac_err"; then
1924 eval "ac_cv_header_$ac_safe=yes"
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1930 eval "ac_cv_header_$ac_safe=no"
1934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1937 cat >> confdefs.h
<<EOF
1938 #define $ac_tr_hdr 1
1942 echo "$ac_t""no" 1>&6
1946 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
1948 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1950 echo "configure:1951: checking for $ac_hdr" >&5
1951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.
$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1959 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1960 { (eval echo configure
:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1961 ac_err
=`grep -v '^ *+' conftest.out`
1962 if test -z "$ac_err"; then
1964 eval "ac_cv_header_$ac_safe=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1970 eval "ac_cv_header_$ac_safe=no"
1974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1975 echo "$ac_t""yes" 1>&6
1976 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1977 cat >> confdefs.h
<<EOF
1978 #define $ac_tr_hdr 1
1982 echo "$ac_t""no" 1>&6
1986 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
1988 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_hdr" >&5
1991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1999 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2000 { (eval echo configure
:2001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001 ac_err
=`grep -v '^ *+' conftest.out`
2002 if test -z "$ac_err"; then
2004 eval "ac_cv_header_$ac_safe=yes"
2007 echo "configure: failed program was:" >&5
2008 cat conftest.
$ac_ext >&5
2010 eval "ac_cv_header_$ac_safe=no"
2014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2017 cat >> confdefs.h
<<EOF
2018 #define $ac_tr_hdr 1
2022 echo "$ac_t""no" 1>&6
2027 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2028 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2032 cat > conftest.
$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2040 if { (eval echo configure
:2041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2042 ac_cv_header_shadow_h
=yes
2044 echo "configure: failed program was:" >&5
2045 cat conftest.
$ac_ext >&5
2047 ac_cv_header_shadow_h
=no
2050 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2051 cat >> confdefs.h
<<\EOF
2052 #define HAVE_SHADOW_H 1
2058 for ac_hdr
in shadow.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2060 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_hdr" >&5
2063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 cat > conftest.
$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2071 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2072 { (eval echo configure
:2073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2073 ac_err
=`grep -v '^ *+' conftest.out`
2074 if test -z "$ac_err"; then
2076 eval "ac_cv_header_$ac_safe=yes"
2079 echo "configure: failed program was:" >&5
2080 cat conftest.
$ac_ext >&5
2082 eval "ac_cv_header_$ac_safe=no"
2086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2087 echo "$ac_t""yes" 1>&6
2088 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2089 cat >> confdefs.h
<<EOF
2090 #define $ac_tr_hdr 1
2094 echo "$ac_t""no" 1>&6
2098 for ac_hdr
in sys
/security.h security
/pam_appl.h
2100 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_hdr" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.
$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2111 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2112 { (eval echo configure
:2113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2113 ac_err
=`grep -v '^ *+' conftest.out`
2114 if test -z "$ac_err"; then
2116 eval "ac_cv_header_$ac_safe=yes"
2119 echo "configure: failed program was:" >&5
2120 cat conftest.
$ac_ext >&5
2122 eval "ac_cv_header_$ac_safe=no"
2126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2127 echo "$ac_t""yes" 1>&6
2128 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2129 cat >> confdefs.h
<<EOF
2130 #define $ac_tr_hdr 1
2134 echo "$ac_t""no" 1>&6
2138 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2140 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_hdr" >&5
2143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2151 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2152 { (eval echo configure
:2153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2153 ac_err
=`grep -v '^ *+' conftest.out`
2154 if test -z "$ac_err"; then
2156 eval "ac_cv_header_$ac_safe=yes"
2159 echo "configure: failed program was:" >&5
2160 cat conftest.
$ac_ext >&5
2162 eval "ac_cv_header_$ac_safe=no"
2166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2167 echo "$ac_t""yes" 1>&6
2168 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2169 cat >> confdefs.h
<<EOF
2170 #define $ac_tr_hdr 1
2174 echo "$ac_t""no" 1>&6
2178 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2180 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_hdr" >&5
2183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.
$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2191 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2192 { (eval echo configure
:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2193 ac_err
=`grep -v '^ *+' conftest.out`
2194 if test -z "$ac_err"; then
2196 eval "ac_cv_header_$ac_safe=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.
$ac_ext >&5
2202 eval "ac_cv_header_$ac_safe=no"
2206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2207 echo "$ac_t""yes" 1>&6
2208 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2209 cat >> confdefs.h
<<EOF
2210 #define $ac_tr_hdr 1
2214 echo "$ac_t""no" 1>&6
2218 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2220 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_hdr" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure
:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err
=`grep -v '^ *+' conftest.out`
2234 if test -z "$ac_err"; then
2236 eval "ac_cv_header_$ac_safe=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 eval "ac_cv_header_$ac_safe=no"
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2249 cat >> confdefs.h
<<EOF
2250 #define $ac_tr_hdr 1
2254 echo "$ac_t""no" 1>&6
2259 echo $ac_n "checking size of int""... $ac_c" 1>&6
2260 echo "configure:2261: checking size of int" >&5
2261 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 if test "$cross_compiling" = yes; then
2265 ac_cv_sizeof_int
=cross
2267 cat > conftest.
$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2273 FILE *f=fopen("conftestval", "w");
2275 fprintf(f, "%d\n", sizeof(int));
2279 if { (eval echo configure
:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2281 ac_cv_sizeof_int
=`cat conftestval`
2283 echo "configure: failed program was:" >&5
2284 cat conftest.
$ac_ext >&5
2292 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2293 cat >> confdefs.h
<<EOF
2294 #define SIZEOF_INT $ac_cv_sizeof_int
2298 echo $ac_n "checking size of long""... $ac_c" 1>&6
2299 echo "configure:2300: checking size of long" >&5
2300 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 if test "$cross_compiling" = yes; then
2304 ac_cv_sizeof_long
=cross
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2312 FILE *f=fopen("conftestval", "w");
2314 fprintf(f, "%d\n", sizeof(long));
2318 if { (eval echo configure
:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2320 ac_cv_sizeof_long
=`cat conftestval`
2322 echo "configure: failed program was:" >&5
2323 cat conftest.
$ac_ext >&5
2331 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2332 cat >> confdefs.h
<<EOF
2333 #define SIZEOF_LONG $ac_cv_sizeof_long
2337 echo $ac_n "checking size of short""... $ac_c" 1>&6
2338 echo "configure:2339: checking size of short" >&5
2339 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 if test "$cross_compiling" = yes; then
2343 ac_cv_sizeof_short
=cross
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2351 FILE *f=fopen("conftestval", "w");
2353 fprintf(f, "%d\n", sizeof(short));
2357 if { (eval echo configure
:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2359 ac_cv_sizeof_short
=`cat conftestval`
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 ac_cv_sizeof_short
=0
2370 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2371 cat >> confdefs.h
<<EOF
2372 #define SIZEOF_SHORT $ac_cv_sizeof_short
2377 echo $ac_n "checking for working const""... $ac_c" 1>&6
2378 echo "configure:2379: checking for working const" >&5
2379 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 cat > conftest.
$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2388 /* Ultrix mips cc rejects this. */
2389 typedef int charset[2]; const charset x;
2390 /* SunOS 4.1.1 cc rejects this. */
2391 char const *const *ccp;
2393 /* NEC SVR4.0.2 mips cc rejects this. */
2394 struct point {int x, y;};
2395 static struct point const zero = {0,0};
2396 /* AIX XL C 1.02.0.0 rejects this.
2397 It does not let you subtract one const X* pointer from another in an arm
2398 of an if-expression whose if-part is not a constant expression */
2399 const char *g = "string";
2400 ccp = &g + (g ? g-g : 0);
2401 /* HPUX 7.0 cc rejects these. */
2404 ccp = (char const *const *) p;
2405 { /* SCO 3.2v4 cc rejects this. */
2407 char const *s = 0 ? (char *) 0 : (char const *) 0;
2411 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2413 const int *foo = &x[0];
2416 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2417 typedef const int *iptr;
2421 { /* AIX XL C 1.02.0.0 rejects this saying
2422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2423 struct s { int j; const int *ap[3]; };
2424 struct s *b; b->j = 5;
2426 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2432 if { (eval echo configure
:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2436 echo "configure: failed program was:" >&5
2437 cat conftest.
$ac_ext >&5
2444 echo "$ac_t""$ac_cv_c_const" 1>&6
2445 if test $ac_cv_c_const = no
; then
2446 cat >> confdefs.h
<<\EOF
2452 echo $ac_n "checking for inline""... $ac_c" 1>&6
2453 echo "configure:2454: checking for inline" >&5
2454 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2458 for ac_kw
in inline __inline__ __inline
; do
2459 cat > conftest.
$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2467 if { (eval echo configure
:2468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2469 ac_cv_c_inline
=$ac_kw; break
2471 echo "configure: failed program was:" >&5
2472 cat conftest.
$ac_ext >&5
2479 echo "$ac_t""$ac_cv_c_inline" 1>&6
2480 case "$ac_cv_c_inline" in
2482 no
) cat >> confdefs.h
<<\EOF
2486 *) cat >> confdefs.h
<<EOF
2487 #define inline $ac_cv_c_inline
2492 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2493 echo "configure:2494: checking whether byte ordering is bigendian" >&5
2494 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 ac_cv_c_bigendian
=unknown
2498 # See if sys/param.h defines the BYTE_ORDER macro.
2499 cat > conftest.
$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 #include <sys/types.h>
2503 #include <sys/param.h>
2506 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2511 if { (eval echo configure
:2512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2513 # It does; now see whether it defined to BIG_ENDIAN or not.
2514 cat > conftest.
$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517 #include <sys/types.h>
2518 #include <sys/param.h>
2521 #if BYTE_ORDER != BIG_ENDIAN
2526 if { (eval echo configure
:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2528 ac_cv_c_bigendian
=yes
2530 echo "configure: failed program was:" >&5
2531 cat conftest.
$ac_ext >&5
2533 ac_cv_c_bigendian
=no
2537 echo "configure: failed program was:" >&5
2538 cat conftest.
$ac_ext >&5
2541 if test $ac_cv_c_bigendian = unknown
; then
2542 if test "$cross_compiling" = yes; then
2543 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2545 cat > conftest.
$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2549 /* Are we little or big endian? From Harbison&Steele. */
2553 char c[sizeof (long)];
2556 exit (u.c[sizeof (long) - 1] == 1);
2559 if { (eval echo configure
:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2561 ac_cv_c_bigendian
=no
2563 echo "configure: failed program was:" >&5
2564 cat conftest.
$ac_ext >&5
2566 ac_cv_c_bigendian
=yes
2574 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2575 if test $ac_cv_c_bigendian = yes; then
2576 cat >> confdefs.h
<<\EOF
2577 #define WORDS_BIGENDIAN 1
2582 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2583 echo "configure:2584: checking whether char is unsigned" >&5
2584 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 if test "$GCC" = yes; then
2588 # GCC predefines this symbol on systems where it applies.
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 #ifdef __CHAR_UNSIGNED__
2597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2598 egrep "yes" >/dev
/null
2>&1; then
2600 ac_cv_c_char_unsigned
=yes
2603 ac_cv_c_char_unsigned
=no
2608 if test "$cross_compiling" = yes; then
2609 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2611 cat > conftest.
$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2615 #if !defined(__STDC__) || __STDC__ != 1
2619 volatile char c = 255; exit(c < 0);
2622 if { (eval echo configure
:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2624 ac_cv_c_char_unsigned
=yes
2626 echo "configure: failed program was:" >&5
2627 cat conftest.
$ac_ext >&5
2629 ac_cv_c_char_unsigned
=no
2637 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2638 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2639 cat >> confdefs.h
<<\EOF
2640 #define __CHAR_UNSIGNED__ 1
2646 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2647 echo "configure:2648: checking return type of signal handlers" >&5
2648 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 cat > conftest.
$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2654 #include <sys/types.h>
2660 extern "C" void (*signal (int, void (*)(int)))(int);
2662 void (*signal ()) ();
2669 if { (eval echo configure
:2670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2671 ac_cv_type_signal
=void
2673 echo "configure: failed program was:" >&5
2674 cat conftest.
$ac_ext >&5
2676 ac_cv_type_signal
=int
2681 echo "$ac_t""$ac_cv_type_signal" 1>&6
2682 cat >> confdefs.h
<<EOF
2683 #define RETSIGTYPE $ac_cv_type_signal
2687 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2688 echo "configure:2689: checking for uid_t in sys/types.h" >&5
2689 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 cat > conftest.
$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 #include <sys/types.h>
2697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2698 egrep "uid_t" >/dev
/null
2>&1; then
2700 ac_cv_type_uid_t
=yes
2709 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2710 if test $ac_cv_type_uid_t = no
; then
2711 cat >> confdefs.h
<<\EOF
2715 cat >> confdefs.h
<<\EOF
2721 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2722 echo "configure:2723: checking for mode_t" >&5
2723 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 #include <sys/types.h>
2735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2736 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2738 ac_cv_type_mode_t
=yes
2741 ac_cv_type_mode_t
=no
2746 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2747 if test $ac_cv_type_mode_t = no
; then
2748 cat >> confdefs.h
<<\EOF
2754 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2755 echo "configure:2756: checking for off_t" >&5
2756 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 cat > conftest.
$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2762 #include <sys/types.h>
2768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2769 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2771 ac_cv_type_off_t
=yes
2779 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2780 if test $ac_cv_type_off_t = no
; then
2781 cat >> confdefs.h
<<\EOF
2787 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2788 echo "configure:2789: checking for size_t" >&5
2789 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 #include <sys/types.h>
2801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2802 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2804 ac_cv_type_size_t
=yes
2807 ac_cv_type_size_t
=no
2812 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2813 if test $ac_cv_type_size_t = no
; then
2814 cat >> confdefs.h
<<\EOF
2815 #define size_t unsigned
2820 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2821 echo "configure:2822: checking for pid_t" >&5
2822 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.
$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2828 #include <sys/types.h>
2834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2835 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2837 ac_cv_type_pid_t
=yes
2845 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2846 if test $ac_cv_type_pid_t = no
; then
2847 cat >> confdefs.h
<<\EOF
2853 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2854 echo "configure:2855: checking for st_rdev in struct stat" >&5
2855 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 cat > conftest.
$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2861 #include <sys/types.h>
2862 #include <sys/stat.h>
2864 struct stat s; s.st_rdev;
2867 if { (eval echo configure
:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 ac_cv_struct_st_rdev
=yes
2871 echo "configure: failed program was:" >&5
2872 cat conftest.
$ac_ext >&5
2874 ac_cv_struct_st_rdev
=no
2879 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2880 if test $ac_cv_struct_st_rdev = yes; then
2881 cat >> confdefs.h
<<\EOF
2882 #define HAVE_ST_RDEV 1
2887 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2888 echo "configure:2889: checking for d_off in dirent" >&5
2889 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.
$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2897 #include <sys/types.h>
2900 struct dirent d; d.d_off;
2903 if { (eval echo configure
:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2905 ac_cv_dirent_d_off
=yes
2907 echo "configure: failed program was:" >&5
2908 cat conftest.
$ac_ext >&5
2910 ac_cv_dirent_d_off
=no
2915 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2916 if test $ac_cv_dirent_d_off = yes; then
2917 cat >> confdefs.h
<<\EOF
2918 #define HAVE_DIRENT_D_OFF 1
2923 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2924 echo "configure:2925: checking for ino_t" >&5
2925 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 cat > conftest.
$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 #include <sys/types.h>
2937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2938 egrep "ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2940 ac_cv_type_ino_t
=yes
2948 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2949 if test $ac_cv_type_ino_t = no
; then
2950 cat >> confdefs.h
<<\EOF
2951 #define ino_t unsigned
2956 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2957 echo "configure:2958: checking for loff_t" >&5
2958 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.
$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <sys/types.h>
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 egrep "loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2973 ac_cv_type_loff_t
=yes
2976 ac_cv_type_loff_t
=no
2981 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2982 if test $ac_cv_type_loff_t = no
; then
2983 cat >> confdefs.h
<<\EOF
2984 #define loff_t off_t
2989 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2990 echo "configure:2991: checking for offset_t" >&5
2991 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 cat > conftest.
$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 #include <sys/types.h>
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 egrep "offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3006 ac_cv_type_offset_t
=yes
3009 ac_cv_type_offset_t
=no
3014 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3015 if test $ac_cv_type_offset_t = no
; then
3016 cat >> confdefs.h
<<\EOF
3017 #define offset_t loff_t
3022 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3023 echo "configure:3024: checking for ssize_t" >&5
3024 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.
$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 #include <sys/types.h>
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 egrep "ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3039 ac_cv_type_ssize_t
=yes
3042 ac_cv_type_ssize_t
=no
3047 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3048 if test $ac_cv_type_ssize_t = no
; then
3049 cat >> confdefs.h
<<\EOF
3056 # we need libdl for PAM and the new VFS code
3057 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3058 echo "configure:3059: checking for main in -ldl" >&5
3059 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
3060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 ac_save_LIBS
="$LIBS"
3065 cat > conftest.
$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3073 if { (eval echo configure
:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3075 eval "ac_cv_lib_$ac_lib_var=yes"
3077 echo "configure: failed program was:" >&5
3078 cat conftest.
$ac_ext >&5
3080 eval "ac_cv_lib_$ac_lib_var=no"
3083 LIBS
="$ac_save_LIBS"
3086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3087 echo "$ac_t""yes" 1>&6
3088 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3090 cat >> confdefs.h
<<EOF
3091 #define $ac_tr_lib 1
3097 echo "$ac_t""no" 1>&6
3101 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3102 echo "configure:3103: checking for sig_atomic_t type" >&5
3103 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.
$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3111 #include <sys/types.h>
3121 if { (eval echo configure
:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3123 samba_cv_sig_atomic_t
=yes
3125 echo "configure: failed program was:" >&5
3126 cat conftest.
$ac_ext >&5
3128 samba_cv_sig_atomic_t
=no
3133 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3134 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3135 cat >> confdefs.h
<<\EOF
3136 #define HAVE_SIG_ATOMIC_T_TYPE 1
3141 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3142 echo "configure:3143: checking for errno in errno.h" >&5
3143 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.
$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3155 if { (eval echo configure
:3156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3159 echo "configure: failed program was:" >&5
3160 cat conftest.
$ac_ext >&5
3162 samba_cv_have_errno
=no
3167 echo "$ac_t""$samba_cv_errno" 1>&6
3168 if test x
"$samba_cv_errno" = x
"yes"; then
3169 cat >> confdefs.h
<<\EOF
3170 #define HAVE_ERRNO_DECL 1
3175 # stupid glibc has the functions but no declaration. grrrr.
3176 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3177 echo "configure:3178: checking for setresuid declaration" >&5
3178 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3187 int i = (int)setresuid
3190 if { (eval echo configure
:3191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 samba_cv_have_setresuid_decl
=yes
3194 echo "configure: failed program was:" >&5
3195 cat conftest.
$ac_ext >&5
3197 samba_cv_have_setresuid_decl
=no
3202 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3203 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3204 cat >> confdefs.h
<<\EOF
3205 #define HAVE_SETRESUID_DECL 1
3210 # stupid glibc has the functions but no declaration. grrrr.
3211 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3212 echo "configure:3213: checking for setresgid declaration" >&5
3213 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.
$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3222 int i = (int)setresgid
3225 if { (eval echo configure
:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3227 samba_cv_have_setresgid_decl
=yes
3229 echo "configure: failed program was:" >&5
3230 cat conftest.
$ac_ext >&5
3232 samba_cv_have_setresgid_decl
=no
3237 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3238 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3239 cat >> confdefs.h
<<\EOF
3240 #define HAVE_SETRESGID_DECL 1
3245 # stupid glibc has the functions but no declaration. grrrr.
3246 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
3247 echo "configure:3248: checking for crypt declaration" >&5
3248 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.
$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3260 if { (eval echo configure
:3261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3262 samba_cv_have_crypt_decl
=yes
3264 echo "configure: failed program was:" >&5
3265 cat conftest.
$ac_ext >&5
3267 samba_cv_have_crypt_decl
=no
3272 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
3273 if test x
"$samba_cv_have_crypt_decl" = x
"yes"; then
3274 cat >> confdefs.h
<<\EOF
3275 #define HAVE_CRYPT_DECL 1
3280 # and glibc has setresuid under linux but the function does
3281 # nothing until kernel 2.1.44! very dumb.
3282 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3283 echo "configure:3284: checking for real setresuid" >&5
3284 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3288 if test "$cross_compiling" = yes; then
3289 samba_cv_have_setresuid
=cross
3291 cat > conftest.
$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3295 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3297 if { (eval echo configure
:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3299 samba_cv_have_setresuid
=yes
3301 echo "configure: failed program was:" >&5
3302 cat conftest.
$ac_ext >&5
3304 samba_cv_have_setresuid
=no
3311 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3312 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3313 cat >> confdefs.h
<<\EOF
3314 #define HAVE_SETRESUID 1
3319 # Do the same check for setresguid...
3321 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3322 echo "configure:3323: checking for real setresgid" >&5
3323 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3327 if test "$cross_compiling" = yes; then
3328 samba_cv_have_setresgid
=cross
3330 cat > conftest.
$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3335 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3337 if { (eval echo configure
:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3339 samba_cv_have_setresgid
=yes
3341 echo "configure: failed program was:" >&5
3342 cat conftest.
$ac_ext >&5
3344 samba_cv_have_setresgid
=no
3351 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3352 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
3353 cat >> confdefs.h
<<\EOF
3354 #define HAVE_SETRESGID 1
3359 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3360 echo "configure:3361: checking for 8-bit clean memcmp" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 if test "$cross_compiling" = yes; then
3365 ac_cv_func_memcmp_clean
=no
3367 cat > conftest.
$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3373 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3374 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3378 if { (eval echo configure
:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3380 ac_cv_func_memcmp_clean
=yes
3382 echo "configure: failed program was:" >&5
3383 cat conftest.
$ac_ext >&5
3385 ac_cv_func_memcmp_clean
=no
3392 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3393 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.o"
3396 ###############################################
3397 # test for where we get crypt() from
3398 for ac_func
in crypt
3400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_func" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* System header to define __stub macros and hopefully few prototypes,
3409 which can conflict with char $ac_func(); below. */
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3418 /* The GNU C library defines this for functions which it implements
3419 to always fail with ENOSYS. Some functions are actually named
3420 something starting with __ and the normal name is an alias. */
3421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3429 if { (eval echo configure
:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3431 eval "ac_cv_func_$ac_func=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3436 eval "ac_cv_func_$ac_func=no"
3441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3444 cat >> confdefs.h
<<EOF
3445 #define $ac_tr_func 1
3449 echo "$ac_t""no" 1>&6
3453 if test x
"$ac_cv_func_crypt" = x
"no"; then
3454 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3455 echo "configure:3456: checking for crypt in -lcrypt" >&5
3456 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 ac_save_LIBS
="$LIBS"
3461 LIBS
="-lcrypt $LIBS"
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3474 if { (eval echo configure
:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3476 eval "ac_cv_lib_$ac_lib_var=yes"
3478 echo "configure: failed program was:" >&5
3479 cat conftest.
$ac_ext >&5
3481 eval "ac_cv_lib_$ac_lib_var=no"
3484 LIBS
="$ac_save_LIBS"
3487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 LIBS
="$LIBS -lcrypt";
3490 cat >> confdefs.h
<<\EOF
3491 #define HAVE_CRYPT 1
3495 echo "$ac_t""no" 1>&6
3501 ###############################################
3502 # test for where we get readline() from
3503 if test "$ac_cv_header_readline_h" = "yes" ||
3504 test "$ac_cv_header_readline_readline_h" = "yes"; then
3505 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3506 echo "configure:3507: checking for readline in -lreadline" >&5
3507 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 ac_save_LIBS
="$LIBS"
3512 LIBS
="-lreadline $LIBS"
3513 cat > conftest.
$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* Override any gcc2 internal prototype to avoid an error. */
3517 /* We use char because int might match the return type of a gcc2
3518 builtin and then its argument prototype would still apply. */
3525 if { (eval echo configure
:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3527 eval "ac_cv_lib_$ac_lib_var=yes"
3529 echo "configure: failed program was:" >&5
3530 cat conftest.
$ac_ext >&5
3532 eval "ac_cv_lib_$ac_lib_var=no"
3535 LIBS
="$ac_save_LIBS"
3538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3540 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3542 cat >> confdefs.h
<<EOF
3543 #define $ac_tr_lib 1
3546 LIBS
="-lreadline $LIBS"
3549 echo "$ac_t""no" 1>&6
3555 # The following test taken from the cvs sources
3556 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3557 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3558 # libsocket.so which has a bad implementation of gethostbyname (it
3559 # only looks in /etc/hosts), so we only look for -lsocket if we need
3561 for ac_func
in connect
3563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_func" >&5
3565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 cat > conftest.
$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* System header to define __stub macros and hopefully few prototypes,
3572 which can conflict with char $ac_func(); below. */
3574 /* Override any gcc2 internal prototype to avoid an error. */
3575 /* We use char because int might match the return type of a gcc2
3576 builtin and then its argument prototype would still apply. */
3581 /* The GNU C library defines this for functions which it implements
3582 to always fail with ENOSYS. Some functions are actually named
3583 something starting with __ and the normal name is an alias. */
3584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3592 if { (eval echo configure
:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3594 eval "ac_cv_func_$ac_func=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.
$ac_ext >&5
3599 eval "ac_cv_func_$ac_func=no"
3604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3605 echo "$ac_t""yes" 1>&6
3606 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3607 cat >> confdefs.h
<<EOF
3608 #define $ac_tr_func 1
3612 echo "$ac_t""no" 1>&6
3616 if test x
"$ac_cv_func_connect" = x
"no"; then
3619 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3620 echo "configure:3621: checking for printf in -lnsl_s" >&5
3621 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 ac_save_LIBS
="$LIBS"
3626 LIBS
="-lnsl_s $LIBS"
3627 cat > conftest.
$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3639 if { (eval echo configure
:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3641 eval "ac_cv_lib_$ac_lib_var=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.
$ac_ext >&5
3646 eval "ac_cv_lib_$ac_lib_var=no"
3649 LIBS
="$ac_save_LIBS"
3652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3653 echo "$ac_t""yes" 1>&6
3654 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3656 cat >> confdefs.h
<<EOF
3657 #define $ac_tr_lib 1
3660 LIBS
="-lnsl_s $LIBS"
3663 echo "$ac_t""no" 1>&6
3669 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3670 echo "configure:3671: checking for printf in -lnsl" >&5
3671 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 ac_save_LIBS
="$LIBS"
3677 cat > conftest.
$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* Override any gcc2 internal prototype to avoid an error. */
3681 /* We use char because int might match the return type of a gcc2
3682 builtin and then its argument prototype would still apply. */
3689 if { (eval echo configure
:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3691 eval "ac_cv_lib_$ac_lib_var=yes"
3693 echo "configure: failed program was:" >&5
3694 cat conftest.
$ac_ext >&5
3696 eval "ac_cv_lib_$ac_lib_var=no"
3699 LIBS
="$ac_save_LIBS"
3702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3703 echo "$ac_t""yes" 1>&6
3704 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3705 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3706 cat >> confdefs.h
<<EOF
3707 #define $ac_tr_lib 1
3713 echo "$ac_t""no" 1>&6
3719 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3720 echo "configure:3721: checking for connect in -lsocket" >&5
3721 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 ac_save_LIBS
="$LIBS"
3726 LIBS
="-lsocket $LIBS"
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3739 if { (eval echo configure
:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3741 eval "ac_cv_lib_$ac_lib_var=yes"
3743 echo "configure: failed program was:" >&5
3744 cat conftest.
$ac_ext >&5
3746 eval "ac_cv_lib_$ac_lib_var=no"
3749 LIBS
="$ac_save_LIBS"
3752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3754 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3756 cat >> confdefs.h
<<EOF
3757 #define $ac_tr_lib 1
3760 LIBS
="-lsocket $LIBS"
3763 echo "$ac_t""no" 1>&6
3769 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3770 echo "configure:3771: checking for connect in -linet" >&5
3771 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3775 ac_save_LIBS
="$LIBS"
3777 cat > conftest.
$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3789 if { (eval echo configure
:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3791 eval "ac_cv_lib_$ac_lib_var=yes"
3793 echo "configure: failed program was:" >&5
3794 cat conftest.
$ac_ext >&5
3796 eval "ac_cv_lib_$ac_lib_var=no"
3799 LIBS
="$ac_save_LIBS"
3802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3803 echo "$ac_t""yes" 1>&6
3804 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3805 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3806 cat >> confdefs.h
<<EOF
3807 #define $ac_tr_lib 1
3813 echo "$ac_t""no" 1>&6
3817 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
3818 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
3819 # ac_cv_func_connect=yes
3820 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3821 cat >> confdefs.h
<<\EOF
3822 #define HAVE_CONNECT 1
3828 # Check if we have execl, if not we need to compile smbrun.
3829 for ac_func
in execl
3831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3832 echo "configure:3833: checking for $ac_func" >&5
3833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 cat > conftest.
$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* System header to define __stub macros and hopefully few prototypes,
3840 which can conflict with char $ac_func(); below. */
3842 /* Override any gcc2 internal prototype to avoid an error. */
3843 /* We use char because int might match the return type of a gcc2
3844 builtin and then its argument prototype would still apply. */
3849 /* The GNU C library defines this for functions which it implements
3850 to always fail with ENOSYS. Some functions are actually named
3851 something starting with __ and the normal name is an alias. */
3852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3860 if { (eval echo configure
:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3862 eval "ac_cv_func_$ac_func=yes"
3864 echo "configure: failed program was:" >&5
3865 cat conftest.
$ac_ext >&5
3867 eval "ac_cv_func_$ac_func=no"
3872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3874 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3875 cat >> confdefs.h
<<EOF
3876 #define $ac_tr_func 1
3880 echo "$ac_t""no" 1>&6
3884 if test x
"$ac_cv_func_execl" = x
"no"; then
3885 RUNPROG
="bin/smbrun"
3890 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
3892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3893 echo "configure:3894: checking for $ac_func" >&5
3894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.
$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* System header to define __stub macros and hopefully few prototypes,
3901 which can conflict with char $ac_func(); below. */
3903 /* Override any gcc2 internal prototype to avoid an error. */
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3910 /* The GNU C library defines this for functions which it implements
3911 to always fail with ENOSYS. Some functions are actually named
3912 something starting with __ and the normal name is an alias. */
3913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3921 if { (eval echo configure
:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3923 eval "ac_cv_func_$ac_func=yes"
3925 echo "configure: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3928 eval "ac_cv_func_$ac_func=no"
3933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3936 cat >> confdefs.h
<<EOF
3937 #define $ac_tr_func 1
3941 echo "$ac_t""no" 1>&6
3945 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
3947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3948 echo "configure:3949: checking for $ac_func" >&5
3949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.
$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char $ac_func(); below. */
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3965 /* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3976 if { (eval echo configure
:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3978 eval "ac_cv_func_$ac_func=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.
$ac_ext >&5
3983 eval "ac_cv_func_$ac_func=no"
3988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3991 cat >> confdefs.h
<<EOF
3992 #define $ac_tr_func 1
3996 echo "$ac_t""no" 1>&6
4000 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4003 echo "configure:4004: checking for $ac_func" >&5
4004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.
$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 /* System header to define __stub macros and hopefully few prototypes,
4011 which can conflict with char $ac_func(); below. */
4013 /* Override any gcc2 internal prototype to avoid an error. */
4014 /* We use char because int might match the return type of a gcc2
4015 builtin and then its argument prototype would still apply. */
4020 /* The GNU C library defines this for functions which it implements
4021 to always fail with ENOSYS. Some functions are actually named
4022 something starting with __ and the normal name is an alias. */
4023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4031 if { (eval echo configure
:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4033 eval "ac_cv_func_$ac_func=yes"
4035 echo "configure: failed program was:" >&5
4036 cat conftest.
$ac_ext >&5
4038 eval "ac_cv_func_$ac_func=no"
4043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4044 echo "$ac_t""yes" 1>&6
4045 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4046 cat >> confdefs.h
<<EOF
4047 #define $ac_tr_func 1
4051 echo "$ac_t""no" 1>&6
4055 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4058 echo "configure:4059: checking for $ac_func" >&5
4059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 cat > conftest.
$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 /* System header to define __stub macros and hopefully few prototypes,
4066 which can conflict with char $ac_func(); below. */
4068 /* Override any gcc2 internal prototype to avoid an error. */
4069 /* We use char because int might match the return type of a gcc2
4070 builtin and then its argument prototype would still apply. */
4075 /* The GNU C library defines this for functions which it implements
4076 to always fail with ENOSYS. Some functions are actually named
4077 something starting with __ and the normal name is an alias. */
4078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4086 if { (eval echo configure
:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4088 eval "ac_cv_func_$ac_func=yes"
4090 echo "configure: failed program was:" >&5
4091 cat conftest.
$ac_ext >&5
4093 eval "ac_cv_func_$ac_func=no"
4098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4099 echo "$ac_t""yes" 1>&6
4100 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4101 cat >> confdefs.h
<<EOF
4102 #define $ac_tr_func 1
4106 echo "$ac_t""no" 1>&6
4110 for ac_func
in initgroups
select rdchk getgrnam pathconf setreuid setregid seteuid setegid
4112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4113 echo "configure:4114: checking for $ac_func" >&5
4114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.
$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* System header to define __stub macros and hopefully few prototypes,
4121 which can conflict with char $ac_func(); below. */
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4141 if { (eval echo configure
:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4143 eval "ac_cv_func_$ac_func=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4148 eval "ac_cv_func_$ac_func=no"
4153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4155 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4156 cat >> confdefs.h
<<EOF
4157 #define $ac_tr_func 1
4161 echo "$ac_t""no" 1>&6
4165 for ac_func
in setpriv setgidx setuidx setgroups mktime rename ftruncate stat64 fstat64
4167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4168 echo "configure:4169: checking for $ac_func" >&5
4169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 cat > conftest.
$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4175 /* System header to define __stub macros and hopefully few prototypes,
4176 which can conflict with char $ac_func(); below. */
4178 /* Override any gcc2 internal prototype to avoid an error. */
4179 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */
4185 /* The GNU C library defines this for functions which it implements
4186 to always fail with ENOSYS. Some functions are actually named
4187 something starting with __ and the normal name is an alias. */
4188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4196 if { (eval echo configure
:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4198 eval "ac_cv_func_$ac_func=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.
$ac_ext >&5
4203 eval "ac_cv_func_$ac_func=no"
4208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4211 cat >> confdefs.h
<<EOF
4212 #define $ac_tr_func 1
4216 echo "$ac_t""no" 1>&6
4220 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_func" >&5
4224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4227 cat > conftest.
$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 /* System header to define __stub macros and hopefully few prototypes,
4231 which can conflict with char $ac_func(); below. */
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. */
4240 /* The GNU C library defines this for functions which it implements
4241 to always fail with ENOSYS. Some functions are actually named
4242 something starting with __ and the normal name is an alias. */
4243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4251 if { (eval echo configure
:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4253 eval "ac_cv_func_$ac_func=yes"
4255 echo "configure: failed program was:" >&5
4256 cat conftest.
$ac_ext >&5
4258 eval "ac_cv_func_$ac_func=no"
4263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4264 echo "$ac_t""yes" 1>&6
4265 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4266 cat >> confdefs.h
<<EOF
4267 #define $ac_tr_func 1
4271 echo "$ac_t""no" 1>&6
4275 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4278 echo "configure:4279: checking for $ac_func" >&5
4279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 cat > conftest.
$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* System header to define __stub macros and hopefully few prototypes,
4286 which can conflict with char $ac_func(); below. */
4288 /* Override any gcc2 internal prototype to avoid an error. */
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4295 /* The GNU C library defines this for functions which it implements
4296 to always fail with ENOSYS. Some functions are actually named
4297 something starting with __ and the normal name is an alias. */
4298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4306 if { (eval echo configure
:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4308 eval "ac_cv_func_$ac_func=yes"
4310 echo "configure: failed program was:" >&5
4311 cat conftest.
$ac_ext >&5
4313 eval "ac_cv_func_$ac_func=no"
4318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4321 cat >> confdefs.h
<<EOF
4322 #define $ac_tr_func 1
4326 echo "$ac_t""no" 1>&6
4330 for ac_func
in srandom random srand rand setenv
usleep mmap64 strcasecmp
4332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_func" >&5
4334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 cat > conftest.
$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 /* System header to define __stub macros and hopefully few prototypes,
4341 which can conflict with char $ac_func(); below. */
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */
4350 /* The GNU C library defines this for functions which it implements
4351 to always fail with ENOSYS. Some functions are actually named
4352 something starting with __ and the normal name is an alias. */
4353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4361 if { (eval echo configure
:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4363 eval "ac_cv_func_$ac_func=yes"
4365 echo "configure: failed program was:" >&5
4366 cat conftest.
$ac_ext >&5
4368 eval "ac_cv_func_$ac_func=no"
4373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4374 echo "$ac_t""yes" 1>&6
4375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4376 cat >> confdefs.h
<<EOF
4377 #define $ac_tr_func 1
4381 echo "$ac_t""no" 1>&6
4386 # syscall() is needed for smbwrapper.
4387 for ac_func
in syscall
4389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_func" >&5
4391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 cat > conftest.
$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char $ac_func(); below. */
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4407 /* The GNU C library defines this for functions which it implements
4408 to always fail with ENOSYS. Some functions are actually named
4409 something starting with __ and the normal name is an alias. */
4410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4418 if { (eval echo configure
:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4420 eval "ac_cv_func_$ac_func=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.
$ac_ext >&5
4425 eval "ac_cv_func_$ac_func=no"
4430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4433 cat >> confdefs.h
<<EOF
4434 #define $ac_tr_func 1
4438 echo "$ac_t""no" 1>&6
4443 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_func" >&5
4447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.
$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 /* System header to define __stub macros and hopefully few prototypes,
4454 which can conflict with char $ac_func(); below. */
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4463 /* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4474 if { (eval echo configure
:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4476 eval "ac_cv_func_$ac_func=yes"
4478 echo "configure: failed program was:" >&5
4479 cat conftest.
$ac_ext >&5
4481 eval "ac_cv_func_$ac_func=no"
4486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4489 cat >> confdefs.h
<<EOF
4490 #define $ac_tr_func 1
4494 echo "$ac_t""no" 1>&6
4498 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4501 echo "configure:4502: checking for $ac_func" >&5
4502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4505 cat > conftest.
$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4508 /* System header to define __stub macros and hopefully few prototypes,
4509 which can conflict with char $ac_func(); below. */
4511 /* Override any gcc2 internal prototype to avoid an error. */
4512 /* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4518 /* The GNU C library defines this for functions which it implements
4519 to always fail with ENOSYS. Some functions are actually named
4520 something starting with __ and the normal name is an alias. */
4521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4529 if { (eval echo configure
:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4531 eval "ac_cv_func_$ac_func=yes"
4533 echo "configure: failed program was:" >&5
4534 cat conftest.
$ac_ext >&5
4536 eval "ac_cv_func_$ac_func=no"
4541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4542 echo "$ac_t""yes" 1>&6
4543 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4544 cat >> confdefs.h
<<EOF
4545 #define $ac_tr_func 1
4549 echo "$ac_t""no" 1>&6
4553 for ac_func
in __getcwd _getcwd
4555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_func" >&5
4557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 cat > conftest.
$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* System header to define __stub macros and hopefully few prototypes,
4564 which can conflict with char $ac_func(); below. */
4566 /* Override any gcc2 internal prototype to avoid an error. */
4567 /* We use char because int might match the return type of a gcc2
4568 builtin and then its argument prototype would still apply. */
4573 /* The GNU C library defines this for functions which it implements
4574 to always fail with ENOSYS. Some functions are actually named
4575 something starting with __ and the normal name is an alias. */
4576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4584 if { (eval echo configure
:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4586 eval "ac_cv_func_$ac_func=yes"
4588 echo "configure: failed program was:" >&5
4589 cat conftest.
$ac_ext >&5
4591 eval "ac_cv_func_$ac_func=no"
4596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6
4598 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4599 cat >> confdefs.h
<<EOF
4600 #define $ac_tr_func 1
4604 echo "$ac_t""no" 1>&6
4608 for ac_func
in __xstat __fxstat __lxstat
4610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4611 echo "configure:4612: checking for $ac_func" >&5
4612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 cat > conftest.
$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* System header to define __stub macros and hopefully few prototypes,
4619 which can conflict with char $ac_func(); below. */
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4628 /* The GNU C library defines this for functions which it implements
4629 to always fail with ENOSYS. Some functions are actually named
4630 something starting with __ and the normal name is an alias. */
4631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4639 if { (eval echo configure
:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4641 eval "ac_cv_func_$ac_func=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.
$ac_ext >&5
4646 eval "ac_cv_func_$ac_func=no"
4651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4654 cat >> confdefs.h
<<EOF
4655 #define $ac_tr_func 1
4659 echo "$ac_t""no" 1>&6
4663 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
4665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4666 echo "configure:4667: checking for $ac_func" >&5
4667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 cat > conftest.
$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 /* System header to define __stub macros and hopefully few prototypes,
4674 which can conflict with char $ac_func(); below. */
4676 /* Override any gcc2 internal prototype to avoid an error. */
4677 /* We use char because int might match the return type of a gcc2
4678 builtin and then its argument prototype would still apply. */
4683 /* The GNU C library defines this for functions which it implements
4684 to always fail with ENOSYS. Some functions are actually named
4685 something starting with __ and the normal name is an alias. */
4686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4694 if { (eval echo configure
:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4696 eval "ac_cv_func_$ac_func=yes"
4698 echo "configure: failed program was:" >&5
4699 cat conftest.
$ac_ext >&5
4701 eval "ac_cv_func_$ac_func=no"
4706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4708 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4709 cat >> confdefs.h
<<EOF
4710 #define $ac_tr_func 1
4714 echo "$ac_t""no" 1>&6
4718 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
4720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4721 echo "configure:4722: checking for $ac_func" >&5
4722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4725 cat > conftest.
$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* System header to define __stub macros and hopefully few prototypes,
4729 which can conflict with char $ac_func(); below. */
4731 /* Override any gcc2 internal prototype to avoid an error. */
4732 /* We use char because int might match the return type of a gcc2
4733 builtin and then its argument prototype would still apply. */
4738 /* The GNU C library defines this for functions which it implements
4739 to always fail with ENOSYS. Some functions are actually named
4740 something starting with __ and the normal name is an alias. */
4741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4749 if { (eval echo configure
:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4751 eval "ac_cv_func_$ac_func=yes"
4753 echo "configure: failed program was:" >&5
4754 cat conftest.
$ac_ext >&5
4756 eval "ac_cv_func_$ac_func=no"
4761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4764 cat >> confdefs.h
<<EOF
4765 #define $ac_tr_func 1
4769 echo "$ac_t""no" 1>&6
4773 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
4775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_func" >&5
4777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.
$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4783 /* System header to define __stub macros and hopefully few prototypes,
4784 which can conflict with char $ac_func(); below. */
4786 /* Override any gcc2 internal prototype to avoid an error. */
4787 /* We use char because int might match the return type of a gcc2
4788 builtin and then its argument prototype would still apply. */
4793 /* The GNU C library defines this for functions which it implements
4794 to always fail with ENOSYS. Some functions are actually named
4795 something starting with __ and the normal name is an alias. */
4796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4804 if { (eval echo configure
:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4806 eval "ac_cv_func_$ac_func=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4811 eval "ac_cv_func_$ac_func=no"
4816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4819 cat >> confdefs.h
<<EOF
4820 #define $ac_tr_func 1
4824 echo "$ac_t""no" 1>&6
4828 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
4830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4831 echo "configure:4832: checking for $ac_func" >&5
4832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.
$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 /* System header to define __stub macros and hopefully few prototypes,
4839 which can conflict with char $ac_func(); below. */
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4848 /* The GNU C library defines this for functions which it implements
4849 to always fail with ENOSYS. Some functions are actually named
4850 something starting with __ and the normal name is an alias. */
4851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4859 if { (eval echo configure
:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4861 eval "ac_cv_func_$ac_func=yes"
4863 echo "configure: failed program was:" >&5
4864 cat conftest.
$ac_ext >&5
4866 eval "ac_cv_func_$ac_func=no"
4871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4873 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4874 cat >> confdefs.h
<<EOF
4875 #define $ac_tr_func 1
4879 echo "$ac_t""no" 1>&6
4883 for ac_func
in _write __write _fork __fork
4885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_func" >&5
4887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.
$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 /* System header to define __stub macros and hopefully few prototypes,
4894 which can conflict with char $ac_func(); below. */
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. */
4903 /* The GNU C library defines this for functions which it implements
4904 to always fail with ENOSYS. Some functions are actually named
4905 something starting with __ and the normal name is an alias. */
4906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4914 if { (eval echo configure
:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4916 eval "ac_cv_func_$ac_func=yes"
4918 echo "configure: failed program was:" >&5
4919 cat conftest.
$ac_ext >&5
4921 eval "ac_cv_func_$ac_func=no"
4926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4928 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4929 cat >> confdefs.h
<<EOF
4930 #define $ac_tr_func 1
4934 echo "$ac_t""no" 1>&6
4938 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4941 echo "configure:4942: checking for $ac_func" >&5
4942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 cat > conftest.
$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* System header to define __stub macros and hopefully few prototypes,
4949 which can conflict with char $ac_func(); below. */
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4958 /* The GNU C library defines this for functions which it implements
4959 to always fail with ENOSYS. Some functions are actually named
4960 something starting with __ and the normal name is an alias. */
4961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4969 if { (eval echo configure
:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4971 eval "ac_cv_func_$ac_func=yes"
4973 echo "configure: failed program was:" >&5
4974 cat conftest.
$ac_ext >&5
4976 eval "ac_cv_func_$ac_func=no"
4981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4982 echo "$ac_t""yes" 1>&6
4983 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4984 cat >> confdefs.h
<<EOF
4985 #define $ac_tr_func 1
4989 echo "$ac_t""no" 1>&6
4993 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
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
; 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 pread _pread __pread pread64 _pread64 __pread64
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
; 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 pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
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
; 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 open64 _open64 __open64 creat64
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
; 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
5215 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5218 if test x
$ac_cv_func_stat64 = xno
; then
5219 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5220 echo "configure:5221: checking for stat64 in <sys/stat.h>" >&5
5221 cat > conftest.
$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5225 #if defined(HAVE_UNISTD_H)
5228 #include <sys/stat.h>
5231 struct stat64 st64; exit(stat64(".",&st64));
5234 if { (eval echo configure
:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5236 ac_cv_func_stat64
=yes
5238 echo "configure: failed program was:" >&5
5239 cat conftest.
$ac_ext >&5
5242 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5243 if test x
$ac_cv_func_stat64 = xyes
; then
5244 cat >> confdefs.h
<<\EOF
5245 #define HAVE_STAT64 1
5251 if test x
$ac_cv_func_lstat64 = xno
; then
5252 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5253 echo "configure:5254: checking for lstat64 in <sys/stat.h>" >&5
5254 cat > conftest.
$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5258 #if defined(HAVE_UNISTD_H)
5261 #include <sys/stat.h>
5264 struct stat64 st64; exit(lstat64(".",&st64));
5267 if { (eval echo configure
:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5269 ac_cv_func_lstat64
=yes
5271 echo "configure: failed program was:" >&5
5272 cat conftest.
$ac_ext >&5
5275 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5276 if test x
$ac_cv_func_lstat64 = xyes
; then
5277 cat >> confdefs.h
<<\EOF
5278 #define HAVE_LSTAT64 1
5284 if test x
$ac_cv_func_fstat64 = xno
; then
5285 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5286 echo "configure:5287: checking for fstat64 in <sys/stat.h>" >&5
5287 cat > conftest.
$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5291 #if defined(HAVE_UNISTD_H)
5294 #include <sys/stat.h>
5297 struct stat64 st64; exit(fstat64(0,&st64));
5300 if { (eval echo configure
:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5302 ac_cv_func_fstat64
=yes
5304 echo "configure: failed program was:" >&5
5305 cat conftest.
$ac_ext >&5
5308 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5309 if test x
$ac_cv_func_fstat64 = xyes
; then
5310 cat >> confdefs.h
<<\EOF
5311 #define HAVE_FSTAT64 1
5318 # If no strcasecmp, check for it in some known places
5319 # It is in -lresolv on ReliantUNIX and UnixWare
5320 # -lresolve *must* follow -lnsl for name resolution to work properly
5323 if test x
$ac_cv_func_strcasecmp = xno
; then
5324 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5325 echo "configure:5326: checking for strcasecmp in -lresolv" >&5
5326 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5330 ac_save_LIBS
="$LIBS"
5331 LIBS
="-lresolv $LIBS"
5332 cat > conftest.
$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5335 /* Override any gcc2 internal prototype to avoid an error. */
5336 /* We use char because int might match the return type of a gcc2
5337 builtin and then its argument prototype would still apply. */
5344 if { (eval echo configure
:5345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5346 eval "ac_cv_lib_$ac_lib_var=yes"
5348 echo "configure: failed program was:" >&5
5349 cat conftest.
$ac_ext >&5
5351 eval "ac_cv_lib_$ac_lib_var=no"
5354 LIBS
="$ac_save_LIBS"
5357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5358 echo "$ac_t""yes" 1>&6
5359 LIBS
="$LIBS -lresolv"
5360 cat >> confdefs.h
<<\EOF
5361 #define HAVE_STRCASECMP 1
5365 echo "$ac_t""no" 1>&6
5371 # Check for the functions putprpwnam, set_auth_parameters,
5372 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5373 # Needed for OSF1 and HPUX.
5377 *-lsecurity*) for ac_func
in putprpwnam
5379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5380 echo "configure:5381: checking for $ac_func" >&5
5381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 cat > conftest.
$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5387 /* System header to define __stub macros and hopefully few prototypes,
5388 which can conflict with char $ac_func(); below. */
5390 /* Override any gcc2 internal prototype to avoid an error. */
5391 /* We use char because int might match the return type of a gcc2
5392 builtin and then its argument prototype would still apply. */
5397 /* The GNU C library defines this for functions which it implements
5398 to always fail with ENOSYS. Some functions are actually named
5399 something starting with __ and the normal name is an alias. */
5400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5408 if { (eval echo configure
:5409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5410 eval "ac_cv_func_$ac_func=yes"
5412 echo "configure: failed program was:" >&5
5413 cat conftest.
$ac_ext >&5
5415 eval "ac_cv_func_$ac_func=no"
5420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5421 echo "$ac_t""yes" 1>&6
5422 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5423 cat >> confdefs.h
<<EOF
5424 #define $ac_tr_func 1
5428 echo "$ac_t""no" 1>&6
5432 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5433 echo "configure:5434: checking for putprpwnam in -lsecurity" >&5
5434 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 ac_save_LIBS
="$LIBS"
5439 LIBS
="-lsecurity $LIBS"
5440 cat > conftest.
$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5452 if { (eval echo configure
:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5454 eval "ac_cv_lib_$ac_lib_var=yes"
5456 echo "configure: failed program was:" >&5
5457 cat conftest.
$ac_ext >&5
5459 eval "ac_cv_lib_$ac_lib_var=no"
5462 LIBS
="$ac_save_LIBS"
5465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5466 echo "$ac_t""yes" 1>&6
5467 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5468 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5469 cat >> confdefs.h
<<EOF
5470 #define $ac_tr_lib 1
5473 LIBS
="-lsecurity $LIBS"
5476 echo "$ac_t""no" 1>&6
5479 for ac_func
in putprpwnam
5481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_func" >&5
5483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.
$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char $ac_func(); below. */
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5499 /* The GNU C library defines this for functions which it implements
5500 to always fail with ENOSYS. Some functions are actually named
5501 something starting with __ and the normal name is an alias. */
5502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5510 if { (eval echo configure
:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5512 eval "ac_cv_func_$ac_func=yes"
5514 echo "configure: failed program was:" >&5
5515 cat conftest.
$ac_ext >&5
5517 eval "ac_cv_func_$ac_func=no"
5522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5524 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5525 cat >> confdefs.h
<<EOF
5526 #define $ac_tr_func 1
5530 echo "$ac_t""no" 1>&6
5538 *-lsec*) for ac_func
in putprpwnam
5540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_func" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5545 cat > conftest.
$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char $ac_func(); below. */
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5569 if { (eval echo configure
:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5571 eval "ac_cv_func_$ac_func=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.
$ac_ext >&5
5576 eval "ac_cv_func_$ac_func=no"
5581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5584 cat >> confdefs.h
<<EOF
5585 #define $ac_tr_func 1
5589 echo "$ac_t""no" 1>&6
5593 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5594 echo "configure:5595: checking for putprpwnam in -lsec" >&5
5595 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 ac_save_LIBS
="$LIBS"
5601 cat > conftest.
$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5613 if { (eval echo configure
:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5615 eval "ac_cv_lib_$ac_lib_var=yes"
5617 echo "configure: failed program was:" >&5
5618 cat conftest.
$ac_ext >&5
5620 eval "ac_cv_lib_$ac_lib_var=no"
5623 LIBS
="$ac_save_LIBS"
5626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5628 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5629 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5630 cat >> confdefs.h
<<EOF
5631 #define $ac_tr_lib 1
5637 echo "$ac_t""no" 1>&6
5640 for ac_func
in putprpwnam
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.
$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5671 if { (eval echo configure
:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5673 eval "ac_cv_func_$ac_func=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 eval "ac_cv_func_$ac_func=no"
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h
<<EOF
5687 #define $ac_tr_func 1
5691 echo "$ac_t""no" 1>&6
5700 *-lsecurity*) for ac_func
in set_auth_parameters
5702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_func" >&5
5704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 cat > conftest.
$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 /* System header to define __stub macros and hopefully few prototypes,
5711 which can conflict with char $ac_func(); below. */
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5720 /* The GNU C library defines this for functions which it implements
5721 to always fail with ENOSYS. Some functions are actually named
5722 something starting with __ and the normal name is an alias. */
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5731 if { (eval echo configure
:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5733 eval "ac_cv_func_$ac_func=yes"
5735 echo "configure: failed program was:" >&5
5736 cat conftest.
$ac_ext >&5
5738 eval "ac_cv_func_$ac_func=no"
5743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5746 cat >> confdefs.h
<<EOF
5747 #define $ac_tr_func 1
5751 echo "$ac_t""no" 1>&6
5755 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5756 echo "configure:5757: checking for set_auth_parameters in -lsecurity" >&5
5757 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 ac_save_LIBS
="$LIBS"
5762 LIBS
="-lsecurity $LIBS"
5763 cat > conftest.
$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5769 char set_auth_parameters();
5772 set_auth_parameters()
5775 if { (eval echo configure
:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5777 eval "ac_cv_lib_$ac_lib_var=yes"
5779 echo "configure: failed program was:" >&5
5780 cat conftest.
$ac_ext >&5
5782 eval "ac_cv_lib_$ac_lib_var=no"
5785 LIBS
="$ac_save_LIBS"
5788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5789 echo "$ac_t""yes" 1>&6
5790 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5791 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5792 cat >> confdefs.h
<<EOF
5793 #define $ac_tr_lib 1
5796 LIBS
="-lsecurity $LIBS"
5799 echo "$ac_t""no" 1>&6
5802 for ac_func
in set_auth_parameters
5804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5805 echo "configure:5806: checking for $ac_func" >&5
5806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.
$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 /* System header to define __stub macros and hopefully few prototypes,
5813 which can conflict with char $ac_func(); below. */
5815 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5822 /* The GNU C library defines this for functions which it implements
5823 to always fail with ENOSYS. Some functions are actually named
5824 something starting with __ and the normal name is an alias. */
5825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5833 if { (eval echo configure
:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5835 eval "ac_cv_func_$ac_func=yes"
5837 echo "configure: failed program was:" >&5
5838 cat conftest.
$ac_ext >&5
5840 eval "ac_cv_func_$ac_func=no"
5845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5846 echo "$ac_t""yes" 1>&6
5847 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5848 cat >> confdefs.h
<<EOF
5849 #define $ac_tr_func 1
5853 echo "$ac_t""no" 1>&6
5861 *-lsec*) for ac_func
in set_auth_parameters
5863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5864 echo "configure:5865: checking for $ac_func" >&5
5865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5868 cat > conftest.
$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5871 /* System header to define __stub macros and hopefully few prototypes,
5872 which can conflict with char $ac_func(); below. */
5874 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5881 /* The GNU C library defines this for functions which it implements
5882 to always fail with ENOSYS. Some functions are actually named
5883 something starting with __ and the normal name is an alias. */
5884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5892 if { (eval echo configure
:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5894 eval "ac_cv_func_$ac_func=yes"
5896 echo "configure: failed program was:" >&5
5897 cat conftest.
$ac_ext >&5
5899 eval "ac_cv_func_$ac_func=no"
5904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5905 echo "$ac_t""yes" 1>&6
5906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5907 cat >> confdefs.h
<<EOF
5908 #define $ac_tr_func 1
5912 echo "$ac_t""no" 1>&6
5916 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5917 echo "configure:5918: checking for set_auth_parameters in -lsec" >&5
5918 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 ac_save_LIBS
="$LIBS"
5924 cat > conftest.
$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 /* Override any gcc2 internal prototype to avoid an error. */
5928 /* We use char because int might match the return type of a gcc2
5929 builtin and then its argument prototype would still apply. */
5930 char set_auth_parameters();
5933 set_auth_parameters()
5936 if { (eval echo configure
:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5938 eval "ac_cv_lib_$ac_lib_var=yes"
5940 echo "configure: failed program was:" >&5
5941 cat conftest.
$ac_ext >&5
5943 eval "ac_cv_lib_$ac_lib_var=no"
5946 LIBS
="$ac_save_LIBS"
5949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5950 echo "$ac_t""yes" 1>&6
5951 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5953 cat >> confdefs.h
<<EOF
5954 #define $ac_tr_lib 1
5960 echo "$ac_t""no" 1>&6
5963 for ac_func
in set_auth_parameters
5965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_func" >&5
5967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5970 cat > conftest.
$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 /* System header to define __stub macros and hopefully few prototypes,
5974 which can conflict with char $ac_func(); below. */
5976 /* Override any gcc2 internal prototype to avoid an error. */
5977 /* We use char because int might match the return type of a gcc2
5978 builtin and then its argument prototype would still apply. */
5983 /* The GNU C library defines this for functions which it implements
5984 to always fail with ENOSYS. Some functions are actually named
5985 something starting with __ and the normal name is an alias. */
5986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5994 if { (eval echo configure
:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5996 eval "ac_cv_func_$ac_func=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.
$ac_ext >&5
6001 eval "ac_cv_func_$ac_func=no"
6006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6007 echo "$ac_t""yes" 1>&6
6008 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6009 cat >> confdefs.h
<<EOF
6010 #define $ac_tr_func 1
6014 echo "$ac_t""no" 1>&6
6023 *-lsecurity*) for ac_func
in getspnam
6025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_func" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 cat > conftest.
$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func(); below. */
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6054 if { (eval echo configure
:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6056 eval "ac_cv_func_$ac_func=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.
$ac_ext >&5
6061 eval "ac_cv_func_$ac_func=no"
6066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h
<<EOF
6070 #define $ac_tr_func 1
6074 echo "$ac_t""no" 1>&6
6078 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6079 echo "configure:6080: checking for getspnam in -lsecurity" >&5
6080 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6084 ac_save_LIBS
="$LIBS"
6085 LIBS
="-lsecurity $LIBS"
6086 cat > conftest.
$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6098 if { (eval echo configure
:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6100 eval "ac_cv_lib_$ac_lib_var=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.
$ac_ext >&5
6105 eval "ac_cv_lib_$ac_lib_var=no"
6108 LIBS
="$ac_save_LIBS"
6111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6113 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6115 cat >> confdefs.h
<<EOF
6116 #define $ac_tr_lib 1
6119 LIBS
="-lsecurity $LIBS"
6122 echo "$ac_t""no" 1>&6
6125 for ac_func
in getspnam
6127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6128 echo "configure:6129: checking for $ac_func" >&5
6129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6132 cat > conftest.
$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 /* System header to define __stub macros and hopefully few prototypes,
6136 which can conflict with char $ac_func(); below. */
6138 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6145 /* The GNU C library defines this for functions which it implements
6146 to always fail with ENOSYS. Some functions are actually named
6147 something starting with __ and the normal name is an alias. */
6148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6156 if { (eval echo configure
:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6158 eval "ac_cv_func_$ac_func=yes"
6160 echo "configure: failed program was:" >&5
6161 cat conftest.
$ac_ext >&5
6163 eval "ac_cv_func_$ac_func=no"
6168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6171 cat >> confdefs.h
<<EOF
6172 #define $ac_tr_func 1
6176 echo "$ac_t""no" 1>&6
6184 *-lsec*) for ac_func
in getspnam
6186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6187 echo "configure:6188: checking for $ac_func" >&5
6188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6191 cat > conftest.
$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6194 /* System header to define __stub macros and hopefully few prototypes,
6195 which can conflict with char $ac_func(); below. */
6197 /* Override any gcc2 internal prototype to avoid an error. */
6198 /* We use char because int might match the return type of a gcc2
6199 builtin and then its argument prototype would still apply. */
6204 /* The GNU C library defines this for functions which it implements
6205 to always fail with ENOSYS. Some functions are actually named
6206 something starting with __ and the normal name is an alias. */
6207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6215 if { (eval echo configure
:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6217 eval "ac_cv_func_$ac_func=yes"
6219 echo "configure: failed program was:" >&5
6220 cat conftest.
$ac_ext >&5
6222 eval "ac_cv_func_$ac_func=no"
6227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6228 echo "$ac_t""yes" 1>&6
6229 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6230 cat >> confdefs.h
<<EOF
6231 #define $ac_tr_func 1
6235 echo "$ac_t""no" 1>&6
6239 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6240 echo "configure:6241: checking for getspnam in -lsec" >&5
6241 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6243 echo $ac_n "(cached) $ac_c" 1>&6
6245 ac_save_LIBS
="$LIBS"
6247 cat > conftest.
$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6259 if { (eval echo configure
:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6261 eval "ac_cv_lib_$ac_lib_var=yes"
6263 echo "configure: failed program was:" >&5
6264 cat conftest.
$ac_ext >&5
6266 eval "ac_cv_lib_$ac_lib_var=no"
6269 LIBS
="$ac_save_LIBS"
6272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6273 echo "$ac_t""yes" 1>&6
6274 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6276 cat >> confdefs.h
<<EOF
6277 #define $ac_tr_lib 1
6283 echo "$ac_t""no" 1>&6
6286 for ac_func
in getspnam
6288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6289 echo "configure:6290: checking for $ac_func" >&5
6290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 cat > conftest.
$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 /* System header to define __stub macros and hopefully few prototypes,
6297 which can conflict with char $ac_func(); below. */
6299 /* Override any gcc2 internal prototype to avoid an error. */
6300 /* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6306 /* The GNU C library defines this for functions which it implements
6307 to always fail with ENOSYS. Some functions are actually named
6308 something starting with __ and the normal name is an alias. */
6309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6317 if { (eval echo configure
:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6319 eval "ac_cv_func_$ac_func=yes"
6321 echo "configure: failed program was:" >&5
6322 cat conftest.
$ac_ext >&5
6324 eval "ac_cv_func_$ac_func=no"
6329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6331 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6332 cat >> confdefs.h
<<EOF
6333 #define $ac_tr_func 1
6337 echo "$ac_t""no" 1>&6
6346 *-lsecurity*) for ac_func
in bigcrypt
6348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6349 echo "configure:6350: checking for $ac_func" >&5
6350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6353 cat > conftest.
$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6356 /* System header to define __stub macros and hopefully few prototypes,
6357 which can conflict with char $ac_func(); below. */
6359 /* Override any gcc2 internal prototype to avoid an error. */
6360 /* We use char because int might match the return type of a gcc2
6361 builtin and then its argument prototype would still apply. */
6366 /* The GNU C library defines this for functions which it implements
6367 to always fail with ENOSYS. Some functions are actually named
6368 something starting with __ and the normal name is an alias. */
6369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6377 if { (eval echo configure
:6378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6379 eval "ac_cv_func_$ac_func=yes"
6381 echo "configure: failed program was:" >&5
6382 cat conftest.
$ac_ext >&5
6384 eval "ac_cv_func_$ac_func=no"
6389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6390 echo "$ac_t""yes" 1>&6
6391 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6392 cat >> confdefs.h
<<EOF
6393 #define $ac_tr_func 1
6397 echo "$ac_t""no" 1>&6
6401 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6402 echo "configure:6403: checking for bigcrypt in -lsecurity" >&5
6403 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6407 ac_save_LIBS
="$LIBS"
6408 LIBS
="-lsecurity $LIBS"
6409 cat > conftest.
$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6421 if { (eval echo configure
:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6423 eval "ac_cv_lib_$ac_lib_var=yes"
6425 echo "configure: failed program was:" >&5
6426 cat conftest.
$ac_ext >&5
6428 eval "ac_cv_lib_$ac_lib_var=no"
6431 LIBS
="$ac_save_LIBS"
6434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6435 echo "$ac_t""yes" 1>&6
6436 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6438 cat >> confdefs.h
<<EOF
6439 #define $ac_tr_lib 1
6442 LIBS
="-lsecurity $LIBS"
6445 echo "$ac_t""no" 1>&6
6448 for ac_func
in bigcrypt
6450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6451 echo "configure:6452: checking for $ac_func" >&5
6452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6455 cat > conftest.
$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 /* System header to define __stub macros and hopefully few prototypes,
6459 which can conflict with char $ac_func(); below. */
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6468 /* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6479 if { (eval echo configure
:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6481 eval "ac_cv_func_$ac_func=yes"
6483 echo "configure: failed program was:" >&5
6484 cat conftest.
$ac_ext >&5
6486 eval "ac_cv_func_$ac_func=no"
6491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6493 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6494 cat >> confdefs.h
<<EOF
6495 #define $ac_tr_func 1
6499 echo "$ac_t""no" 1>&6
6507 *-lsec*) for ac_func
in bigcrypt
6509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6510 echo "configure:6511: checking for $ac_func" >&5
6511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 cat > conftest.
$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6517 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char $ac_func(); below. */
6520 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6527 /* The GNU C library defines this for functions which it implements
6528 to always fail with ENOSYS. Some functions are actually named
6529 something starting with __ and the normal name is an alias. */
6530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6538 if { (eval echo configure
:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6540 eval "ac_cv_func_$ac_func=yes"
6542 echo "configure: failed program was:" >&5
6543 cat conftest.
$ac_ext >&5
6545 eval "ac_cv_func_$ac_func=no"
6550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6551 echo "$ac_t""yes" 1>&6
6552 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6553 cat >> confdefs.h
<<EOF
6554 #define $ac_tr_func 1
6558 echo "$ac_t""no" 1>&6
6562 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6563 echo "configure:6564: checking for bigcrypt in -lsec" >&5
6564 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6568 ac_save_LIBS
="$LIBS"
6570 cat > conftest.
$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6582 if { (eval echo configure
:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6584 eval "ac_cv_lib_$ac_lib_var=yes"
6586 echo "configure: failed program was:" >&5
6587 cat conftest.
$ac_ext >&5
6589 eval "ac_cv_lib_$ac_lib_var=no"
6592 LIBS
="$ac_save_LIBS"
6595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6596 echo "$ac_t""yes" 1>&6
6597 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6599 cat >> confdefs.h
<<EOF
6600 #define $ac_tr_lib 1
6606 echo "$ac_t""no" 1>&6
6609 for ac_func
in bigcrypt
6611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6612 echo "configure:6613: checking for $ac_func" >&5
6613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6614 echo $ac_n "(cached) $ac_c" 1>&6
6616 cat > conftest.
$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6619 /* System header to define __stub macros and hopefully few prototypes,
6620 which can conflict with char $ac_func(); below. */
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6629 /* The GNU C library defines this for functions which it implements
6630 to always fail with ENOSYS. Some functions are actually named
6631 something starting with __ and the normal name is an alias. */
6632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6640 if { (eval echo configure
:6641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6642 eval "ac_cv_func_$ac_func=yes"
6644 echo "configure: failed program was:" >&5
6645 cat conftest.
$ac_ext >&5
6647 eval "ac_cv_func_$ac_func=no"
6652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6653 echo "$ac_t""yes" 1>&6
6654 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6655 cat >> confdefs.h
<<EOF
6656 #define $ac_tr_func 1
6660 echo "$ac_t""no" 1>&6
6669 *-lsecurity*) for ac_func
in getprpwnam
6671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6672 echo "configure:6673: checking for $ac_func" >&5
6673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6676 cat > conftest.
$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6679 /* System header to define __stub macros and hopefully few prototypes,
6680 which can conflict with char $ac_func(); below. */
6682 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6689 /* The GNU C library defines this for functions which it implements
6690 to always fail with ENOSYS. Some functions are actually named
6691 something starting with __ and the normal name is an alias. */
6692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6700 if { (eval echo configure
:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6702 eval "ac_cv_func_$ac_func=yes"
6704 echo "configure: failed program was:" >&5
6705 cat conftest.
$ac_ext >&5
6707 eval "ac_cv_func_$ac_func=no"
6712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6713 echo "$ac_t""yes" 1>&6
6714 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6715 cat >> confdefs.h
<<EOF
6716 #define $ac_tr_func 1
6720 echo "$ac_t""no" 1>&6
6724 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6725 echo "configure:6726: checking for getprpwnam in -lsecurity" >&5
6726 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 ac_save_LIBS
="$LIBS"
6731 LIBS
="-lsecurity $LIBS"
6732 cat > conftest.
$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6744 if { (eval echo configure
:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6746 eval "ac_cv_lib_$ac_lib_var=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.
$ac_ext >&5
6751 eval "ac_cv_lib_$ac_lib_var=no"
6754 LIBS
="$ac_save_LIBS"
6757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6758 echo "$ac_t""yes" 1>&6
6759 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6761 cat >> confdefs.h
<<EOF
6762 #define $ac_tr_lib 1
6765 LIBS
="-lsecurity $LIBS"
6768 echo "$ac_t""no" 1>&6
6771 for ac_func
in getprpwnam
6773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6774 echo "configure:6775: checking for $ac_func" >&5
6775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6778 cat > conftest.
$ac_ext <<EOF
6779 #line 6780 "configure"
6780 #include "confdefs.h"
6781 /* System header to define __stub macros and hopefully few prototypes,
6782 which can conflict with char $ac_func(); below. */
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6791 /* The GNU C library defines this for functions which it implements
6792 to always fail with ENOSYS. Some functions are actually named
6793 something starting with __ and the normal name is an alias. */
6794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6802 if { (eval echo configure
:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6804 eval "ac_cv_func_$ac_func=yes"
6806 echo "configure: failed program was:" >&5
6807 cat conftest.
$ac_ext >&5
6809 eval "ac_cv_func_$ac_func=no"
6814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6815 echo "$ac_t""yes" 1>&6
6816 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6817 cat >> confdefs.h
<<EOF
6818 #define $ac_tr_func 1
6822 echo "$ac_t""no" 1>&6
6830 *-lsec*) for ac_func
in getprpwnam
6832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6833 echo "configure:6834: checking for $ac_func" >&5
6834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 cat > conftest.
$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6840 /* System header to define __stub macros and hopefully few prototypes,
6841 which can conflict with char $ac_func(); below. */
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6850 /* The GNU C library defines this for functions which it implements
6851 to always fail with ENOSYS. Some functions are actually named
6852 something starting with __ and the normal name is an alias. */
6853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6861 if { (eval echo configure
:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6863 eval "ac_cv_func_$ac_func=yes"
6865 echo "configure: failed program was:" >&5
6866 cat conftest.
$ac_ext >&5
6868 eval "ac_cv_func_$ac_func=no"
6873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6875 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6876 cat >> confdefs.h
<<EOF
6877 #define $ac_tr_func 1
6881 echo "$ac_t""no" 1>&6
6885 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6886 echo "configure:6887: checking for getprpwnam in -lsec" >&5
6887 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6891 ac_save_LIBS
="$LIBS"
6893 cat > conftest.
$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6905 if { (eval echo configure
:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6907 eval "ac_cv_lib_$ac_lib_var=yes"
6909 echo "configure: failed program was:" >&5
6910 cat conftest.
$ac_ext >&5
6912 eval "ac_cv_lib_$ac_lib_var=no"
6915 LIBS
="$ac_save_LIBS"
6918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6919 echo "$ac_t""yes" 1>&6
6920 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6922 cat >> confdefs.h
<<EOF
6923 #define $ac_tr_lib 1
6929 echo "$ac_t""no" 1>&6
6932 for ac_func
in getprpwnam
6934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6935 echo "configure:6936: checking for $ac_func" >&5
6936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 cat > conftest.
$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func(); below. */
6945 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6952 /* The GNU C library defines this for functions which it implements
6953 to always fail with ENOSYS. Some functions are actually named
6954 something starting with __ and the normal name is an alias. */
6955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6963 if { (eval echo configure
:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6965 eval "ac_cv_func_$ac_func=yes"
6967 echo "configure: failed program was:" >&5
6968 cat conftest.
$ac_ext >&5
6970 eval "ac_cv_func_$ac_func=no"
6975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6976 echo "$ac_t""yes" 1>&6
6977 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6978 cat >> confdefs.h
<<EOF
6979 #define $ac_tr_func 1
6983 echo "$ac_t""no" 1>&6
6991 # this bit needs to be modified for each OS that is suported by
6992 # smbwrapper. You need to specify how to created a shared library and
6993 # how to compile C code to produce PIC object files
6995 # these are the defaults, good for lots of systems
6999 # and these are for particular systems
7001 *linux
*) cat >> confdefs.h
<<\EOF
7005 *solaris
*) cat >> confdefs.h
<<\EOF
7011 *sunos
*) cat >> confdefs.h
<<\EOF
7017 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7019 *irix
*) cat >> confdefs.h
<<\EOF
7024 *irix6
*) cat >> confdefs.h
<<\EOF
7030 ATTEMPT_WRAP32_BUILD
=yes
7032 *aix
*) cat >> confdefs.h
<<\EOF
7036 *hpux
*) cat >> confdefs.h
<<\EOF
7040 *qnx
*) cat >> confdefs.h
<<\EOF
7044 *osf
*) cat >> confdefs.h
<<\EOF
7048 *sco
*) cat >> confdefs.h
<<\EOF
7052 *next2
*) cat >> confdefs.h
<<\EOF
7056 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
7057 set dummy
groff; ac_word
=$2
7058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7059 echo "configure:7060: checking for $ac_word" >&5
7060 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7061 echo $ac_n "(cached) $ac_c" 1>&6
7063 if test -n "$ROFF"; then
7064 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
7066 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7067 for ac_dir
in $PATH; do
7068 test -z "$ac_dir" && ac_dir
=.
7069 if test -f $ac_dir/$ac_word; then
7070 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
7077 ROFF
="$ac_cv_prog_ROFF"
7078 if test -n "$ROFF"; then
7079 echo "$ac_t""$ROFF" 1>&6
7081 echo "$ac_t""no" 1>&6
7086 *-univel-*) if test "$GCC" != yes ; then
7087 cat >> confdefs.h
<<\EOF
7088 #define HAVE_MEMSET 1
7094 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
7095 #define RELIANTUNIX 1
7101 if test "$GCC" != yes ; then
7102 cat >> confdefs.h
<<\EOF
7103 #define HAVE_MEMSET 1
7111 # try to work out how to produce pic code with this compiler
7113 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7114 echo "configure:7115: checking whether ${CC-cc} accepts -fpic" >&5
7115 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7118 echo 'void f(){}' > conftest.c
7119 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7120 ac_cv_prog_cc_fpic
=yes
7122 ac_cv_prog_cc_fpic
=no
7128 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7129 if test $ac_cv_prog_cc_fpic = yes; then
7132 if test x
$PICFLAG = x
; then
7133 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7134 echo "configure:7135: checking whether ${CC-cc} accepts -Kpic" >&5
7135 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7138 echo 'void f(){}' > conftest.c
7139 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7140 ac_cv_prog_cc_Kpic
=yes
7142 ac_cv_prog_cc_Kpic
=no
7148 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7149 if test $ac_cv_prog_cc_Kpic = yes; then
7153 if test x
$PICFLAG = x
; then
7154 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7155 echo "configure:7156: checking whether ${CC-cc} accepts -KPIC" >&5
7156 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7159 echo 'void f(){}' > conftest.c
7160 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7161 ac_cv_prog_cc_KPIC
=yes
7163 ac_cv_prog_cc_KPIC
=no
7169 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7170 if test $ac_cv_prog_cc_KPIC = yes; then
7177 echo $ac_n "checking for long long""... $ac_c" 1>&6
7178 echo "configure:7179: checking for long long" >&5
7179 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7180 echo $ac_n "(cached) $ac_c" 1>&6
7183 if test "$cross_compiling" = yes; then
7184 samba_cv_have_longlong
=cross
7186 cat > conftest.
$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7190 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7192 if { (eval echo configure
:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7194 samba_cv_have_longlong
=yes
7196 echo "configure: failed program was:" >&5
7197 cat conftest.
$ac_ext >&5
7199 samba_cv_have_longlong
=no
7206 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7207 if test x
"$samba_cv_have_longlong" = x
"yes"; then
7208 cat >> confdefs.h
<<\EOF
7209 #define HAVE_LONGLONG 1
7214 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7215 echo "configure:7216: checking for 64 bit off_t" >&5
7216 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
7217 echo $ac_n "(cached) $ac_c" 1>&6
7220 if test "$cross_compiling" = yes; then
7221 samba_cv_SIZEOF_OFF_T
=cross
7223 cat > conftest.
$ac_ext <<EOF
7224 #line 7225 "configure"
7225 #include "confdefs.h"
7227 #include <sys/stat.h>
7228 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
7230 if { (eval echo configure
:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7232 samba_cv_SIZEOF_OFF_T
=yes
7234 echo "configure: failed program was:" >&5
7235 cat conftest.
$ac_ext >&5
7237 samba_cv_SIZEOF_OFF_T
=no
7244 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
7245 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
7246 cat >> confdefs.h
<<\EOF
7247 #define SIZEOF_OFF_T 8
7252 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7253 echo "configure:7254: checking for off64_t" >&5
7254 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7258 if test "$cross_compiling" = yes; then
7259 samba_cv_HAVE_OFF64_T
=cross
7261 cat > conftest.
$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7265 #if defined(HAVE_UNISTD_H)
7269 #include <sys/stat.h>
7270 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7272 if { (eval echo configure
:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7274 samba_cv_HAVE_OFF64_T
=yes
7276 echo "configure: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7279 samba_cv_HAVE_OFF64_T
=no
7286 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7287 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
7288 cat >> confdefs.h
<<\EOF
7289 #define HAVE_OFF64_T 1
7294 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7295 echo "configure:7296: checking for 64 bit ino_t" >&5
7296 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7300 if test "$cross_compiling" = yes; then
7301 samba_cv_SIZEOF_INO_T
=cross
7303 cat > conftest.
$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7307 #include <sys/stat.h>
7308 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7310 if { (eval echo configure
:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7312 samba_cv_SIZEOF_INO_T
=yes
7314 echo "configure: failed program was:" >&5
7315 cat conftest.
$ac_ext >&5
7317 samba_cv_SIZEOF_INO_T
=no
7324 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7325 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
7326 cat >> confdefs.h
<<\EOF
7327 #define SIZEOF_INO_T 8
7332 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7333 echo "configure:7334: checking for ino64_t" >&5
7334 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7338 if test "$cross_compiling" = yes; then
7339 samba_cv_HAVE_INO64_T
=cross
7341 cat > conftest.
$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7345 #if defined(HAVE_UNISTD_H)
7349 #include <sys/stat.h>
7350 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7352 if { (eval echo configure
:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7354 samba_cv_HAVE_INO64_T
=yes
7356 echo "configure: failed program was:" >&5
7357 cat conftest.
$ac_ext >&5
7359 samba_cv_HAVE_INO64_T
=no
7366 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7367 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
7368 cat >> confdefs.h
<<\EOF
7369 #define HAVE_INO64_T 1
7374 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
7375 echo "configure:7376: checking for struct dirent64" >&5
7376 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7380 cat > conftest.
$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7384 #if defined(HAVE_UNISTD_H)
7387 #include <sys/types.h>
7393 if { (eval echo configure
:7394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7395 samba_cv_HAVE_STRUCT_DIRENT64
=yes
7397 echo "configure: failed program was:" >&5
7398 cat conftest.
$ac_ext >&5
7400 samba_cv_HAVE_STRUCT_DIRENT64
=no
7405 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
7406 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
7407 cat >> confdefs.h
<<\EOF
7408 #define HAVE_STRUCT_DIRENT64 1
7413 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7414 echo "configure:7415: checking for union semun" >&5
7415 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7419 if test "$cross_compiling" = yes; then
7420 samba_cv_HAVE_UNION_SEMUN
=cross
7422 cat > conftest.
$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7426 #include <sys/types.h>
7427 #include <sys/ipc.h>
7428 #include <sys/sem.h>
7429 main() { union semun ss; exit(0); }
7431 if { (eval echo configure
:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7433 samba_cv_HAVE_UNION_SEMUN
=yes
7435 echo "configure: failed program was:" >&5
7436 cat conftest.
$ac_ext >&5
7438 samba_cv_HAVE_UNION_SEMUN
=no
7445 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7446 if test x
"$samba_cv_HAVE_UNION_SEMUN" = x
"yes"; then
7447 cat >> confdefs.h
<<\EOF
7448 #define HAVE_UNION_SEMUN 1
7453 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7454 echo "configure:7455: checking for unsigned char" >&5
7455 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7459 if test "$cross_compiling" = yes; then
7460 samba_cv_HAVE_UNSIGNED_CHAR
=cross
7462 cat > conftest.
$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7466 main() { char c; c=250; exit((c > 0)?0:1); }
7468 if { (eval echo configure
:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7470 samba_cv_HAVE_UNSIGNED_CHAR
=yes
7472 echo "configure: failed program was:" >&5
7473 cat conftest.
$ac_ext >&5
7475 samba_cv_HAVE_UNSIGNED_CHAR
=no
7482 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7483 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
7484 cat >> confdefs.h
<<\EOF
7485 #define HAVE_UNSIGNED_CHAR 1
7490 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7491 echo "configure:7492: checking for sin_len in sock" >&5
7492 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7496 cat > conftest.
$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 #include <sys/types.h>
7500 #include <sys/socket.h>
7501 #include <netinet/in.h>
7503 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7506 if { (eval echo configure
:7507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7508 samba_cv_HAVE_SOCK_SIN_LEN
=yes
7510 echo "configure: failed program was:" >&5
7511 cat conftest.
$ac_ext >&5
7513 samba_cv_HAVE_SOCK_SIN_LEN
=no
7518 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7519 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
7520 cat >> confdefs.h
<<\EOF
7521 #define HAVE_SOCK_SIN_LEN 1
7526 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7527 echo "configure:7528: checking whether seekdir returns void" >&5
7528 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7532 cat > conftest.
$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7535 #include <sys/types.h>
7537 void seekdir(DIR *d, long loc) { return; }
7542 if { (eval echo configure
:7543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7544 samba_cv_SEEKDIR_RETURNS_VOID
=yes
7546 echo "configure: failed program was:" >&5
7547 cat conftest.
$ac_ext >&5
7549 samba_cv_SEEKDIR_RETURNS_VOID
=no
7554 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7555 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
7556 cat >> confdefs.h
<<\EOF
7557 #define SEEKDIR_RETURNS_VOID 1
7562 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7563 echo "configure:7564: checking for __FILE__ macro" >&5
7564 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7568 cat > conftest.
$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7573 printf("%s\n", __FILE__);
7576 if { (eval echo configure
:7577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7578 samba_cv_HAVE_FILE_MACRO
=yes
7580 echo "configure: failed program was:" >&5
7581 cat conftest.
$ac_ext >&5
7583 samba_cv_HAVE_FILE_MACRO
=no
7588 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7589 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
7590 cat >> confdefs.h
<<\EOF
7591 #define HAVE_FILE_MACRO 1
7596 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7597 echo "configure:7598: checking for __FUNCTION__ macro" >&5
7598 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7602 cat > conftest.
$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7607 printf("%s\n", __FUNCTION__);
7610 if { (eval echo configure
:7611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7612 samba_cv_HAVE_FUNCTION_MACRO
=yes
7614 echo "configure: failed program was:" >&5
7615 cat conftest.
$ac_ext >&5
7617 samba_cv_HAVE_FUNCTION_MACRO
=no
7622 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7623 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
7624 cat >> confdefs.h
<<\EOF
7625 #define HAVE_FUNCTION_MACRO 1
7630 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7631 echo "configure:7632: checking if gettimeofday takes tz argument" >&5
7632 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7636 if test "$cross_compiling" = yes; then
7637 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
7639 cat > conftest.
$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7643 #include <sys/time.h>
7645 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7647 if { (eval echo configure
:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7649 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
7651 echo "configure: failed program was:" >&5
7652 cat conftest.
$ac_ext >&5
7654 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
7661 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7662 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
7663 cat >> confdefs.h
<<\EOF
7664 #define HAVE_GETTIMEOFDAY_TZ 1
7670 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7671 echo "configure:7672: checking for broken readdir" >&5
7672 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7676 if test "$cross_compiling" = yes; then
7677 samba_cv_HAVE_BROKEN_READDIR
=cross
7679 cat > conftest.
$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 #include <sys/types.h>
7684 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7685 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7686 di->d_name[0] == 0) exit(0); exit(1);}
7688 if { (eval echo configure
:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7690 samba_cv_HAVE_BROKEN_READDIR
=yes
7692 echo "configure: failed program was:" >&5
7693 cat conftest.
$ac_ext >&5
7695 samba_cv_HAVE_BROKEN_READDIR
=no
7702 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7703 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
7704 cat >> confdefs.h
<<\EOF
7705 #define HAVE_BROKEN_READDIR 1
7710 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7711 echo "configure:7712: checking for utimbuf" >&5
7712 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7716 cat > conftest.
$ac_ext <<EOF
7717 #line 7718 "configure"
7718 #include "confdefs.h"
7719 #include <sys/types.h>
7722 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7725 if { (eval echo configure
:7726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7727 samba_cv_HAVE_UTIMBUF
=yes
7729 echo "configure: failed program was:" >&5
7730 cat conftest.
$ac_ext >&5
7732 samba_cv_HAVE_UTIMBUF
=no
7737 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7738 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
7739 cat >> confdefs.h
<<\EOF
7740 #define HAVE_UTIMBUF 1
7745 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7746 echo "configure:7747: checking for kernel oplock type definitions" >&5
7747 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7751 cat > conftest.
$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 #include <sys/types.h>
7757 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7760 if { (eval echo configure
:7761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7762 samba_cv_HAVE_KERNEL_OPLOCKS
=yes
7764 echo "configure: failed program was:" >&5
7765 cat conftest.
$ac_ext >&5
7767 samba_cv_HAVE_KERNEL_OPLOCKS
=no
7772 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7773 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS" = x
"yes"; then
7774 cat >> confdefs.h
<<\EOF
7775 #define HAVE_KERNEL_OPLOCKS 1
7780 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7781 echo "configure:7782: checking for irix specific capabilities" >&5
7782 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7786 if test "$cross_compiling" = yes; then
7787 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
7789 cat > conftest.
$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7792 #include <sys/types.h>
7793 #include <sys/capability.h>
7796 if ((cap = cap_get_proc()) == NULL)
7798 cap->cap_effective |= CAP_NETWORK_MGT;
7799 cap->cap_inheritable |= CAP_NETWORK_MGT;
7805 if { (eval echo configure
:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7807 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
7809 echo "configure: failed program was:" >&5
7810 cat conftest.
$ac_ext >&5
7812 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
7819 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7820 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
7821 cat >> confdefs.h
<<\EOF
7822 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7828 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7829 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7832 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7833 echo "configure:7834: checking for int16 typedef included by rpc/rpc.h" >&5
7834 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7838 cat > conftest.
$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 #include <sys/types.h>
7842 #if defined(HAVE_RPC_RPC_H)
7843 #include <rpc/rpc.h>
7849 if { (eval echo configure
:7850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7851 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
7853 echo "configure: failed program was:" >&5
7854 cat conftest.
$ac_ext >&5
7856 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
7861 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7862 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
7863 cat >> confdefs.h
<<\EOF
7864 #define HAVE_INT16_FROM_RPC_RPC_H 1
7869 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7870 echo "configure:7871: checking for uint16 typedef included by rpc/rpc.h" >&5
7871 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7875 cat > conftest.
$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 #include <sys/types.h>
7879 #if defined(HAVE_RPC_RPC_H)
7880 #include <rpc/rpc.h>
7886 if { (eval echo configure
:7887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7888 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
7890 echo "configure: failed program was:" >&5
7891 cat conftest.
$ac_ext >&5
7893 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
7898 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7899 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
7900 cat >> confdefs.h
<<\EOF
7901 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7906 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7907 echo "configure:7908: checking for int32 typedef included by rpc/rpc.h" >&5
7908 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7912 cat > conftest.
$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 #include <sys/types.h>
7916 #if defined(HAVE_RPC_RPC_H)
7917 #include <rpc/rpc.h>
7923 if { (eval echo configure
:7924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7925 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
7927 echo "configure: failed program was:" >&5
7928 cat conftest.
$ac_ext >&5
7930 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
7935 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7936 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
7937 cat >> confdefs.h
<<\EOF
7938 #define HAVE_INT32_FROM_RPC_RPC_H 1
7943 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7944 echo "configure:7945: checking for uint32 typedef included by rpc/rpc.h" >&5
7945 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7949 cat > conftest.
$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7952 #include <sys/types.h>
7953 #if defined(HAVE_RPC_RPC_H)
7954 #include <rpc/rpc.h>
7960 if { (eval echo configure
:7961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7962 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
7964 echo "configure: failed program was:" >&5
7965 cat conftest.
$ac_ext >&5
7967 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
7972 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
7973 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
7974 cat >> confdefs.h
<<\EOF
7975 #define HAVE_UINT32_FROM_RPC_RPC_H 1
7981 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
7982 echo "configure:7983: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
7983 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7987 cat > conftest.
$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 #include <sys/types.h>
7991 #ifdef HAVE_SYS_SECURITY_H
7992 #include <sys/security.h>
7994 #endif /* HAVE_SYS_SECURITY_H */
7995 #if defined(HAVE_RPC_RPC_H)
7996 #include <rpc/rpc.h>
8002 if { (eval echo configure
:8003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8004 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
8006 echo "configure: failed program was:" >&5
8007 cat conftest.
$ac_ext >&5
8009 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
8014 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
8015 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
8016 cat >> confdefs.h
<<\EOF
8017 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
8022 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8023 echo "configure:8024: checking for test routines" >&5
8024 if test "$cross_compiling" = yes; then
8025 echo "configure: warning: cannot run when cross-compiling" 1>&2
8027 cat > conftest.
$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8030 #include "${srcdir-.}/tests/trivial.c"
8032 if { (eval echo configure
:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8034 echo "$ac_t""yes" 1>&6
8036 echo "configure: failed program was:" >&5
8037 cat conftest.
$ac_ext >&5
8039 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8045 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8046 echo "configure:8047: checking for ftruncate extend" >&5
8047 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8051 if test "$cross_compiling" = yes; then
8052 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
8054 cat > conftest.
$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 #include "${srcdir-.}/tests/ftruncate.c"
8059 if { (eval echo configure
:8060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8061 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
8063 echo "configure: failed program was:" >&5
8064 cat conftest.
$ac_ext >&5
8066 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
8073 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8074 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
8075 cat >> confdefs.h
<<\EOF
8076 #define HAVE_FTRUNCATE_EXTEND 1
8081 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
8082 echo "configure:8083: checking for broken getgroups" >&5
8083 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8087 if test "$cross_compiling" = yes; then
8088 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
8090 cat > conftest.
$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8093 #include "${srcdir-.}/tests/getgroups.c"
8095 if { (eval echo configure
:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8097 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
8099 echo "configure: failed program was:" >&5
8100 cat conftest.
$ac_ext >&5
8102 samba_cv_HAVE_BROKEN_GETGROUPS
=no
8109 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
8110 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
8111 cat >> confdefs.h
<<\EOF
8112 #define HAVE_BROKEN_GETGROUPS 1
8117 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
8118 echo "configure:8119: checking whether getpass should be replaced" >&5
8119 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8123 SAVE_CPPFLAGS
="$CPPFLAGS"
8124 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
8125 cat > conftest.
$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8129 #define REPLACE_GETPASS 1
8130 #define NO_CONFIG_H 1
8131 #define main dont_declare_main
8132 #include "${srcdir-.}/lib/getsmbpass.c"
8139 if { (eval echo configure
:8140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8141 samba_cv_REPLACE_GETPASS
=yes
8143 echo "configure: failed program was:" >&5
8144 cat conftest.
$ac_ext >&5
8146 samba_cv_REPLACE_GETPASS
=no
8149 CPPFLAGS
="$SAVE_CPPFLAGS"
8153 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
8154 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
8155 cat >> confdefs.h
<<\EOF
8156 #define REPLACE_GETPASS 1
8161 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
8162 echo "configure:8163: checking for broken inet_ntoa" >&5
8163 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8167 if test "$cross_compiling" = yes; then
8168 samba_cv_REPLACE_INET_NTOA
=cross
8170 cat > conftest.
$ac_ext <<EOF
8171 #line 8172 "configure"
8172 #include "confdefs.h"
8175 #include <sys/types.h>
8176 #include <netinet/in.h>
8177 #ifdef HAVE_ARPA_INET_H
8178 #include <arpa/inet.h>
8180 main() { struct in_addr ip; ip.s_addr = 0x12345678;
8181 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
8182 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
8185 if { (eval echo configure
:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8187 samba_cv_REPLACE_INET_NTOA
=yes
8189 echo "configure: failed program was:" >&5
8190 cat conftest.
$ac_ext >&5
8192 samba_cv_REPLACE_INET_NTOA
=no
8199 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
8200 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
8201 cat >> confdefs.h
<<\EOF
8202 #define REPLACE_INET_NTOA 1
8207 echo $ac_n "checking for root""... $ac_c" 1>&6
8208 echo "configure:8209: checking for root" >&5
8209 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8213 if test "$cross_compiling" = yes; then
8214 samba_cv_HAVE_ROOT
=cross
8216 cat > conftest.
$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 main() { exit(getuid() != 0); }
8221 if { (eval echo configure
:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8223 samba_cv_HAVE_ROOT
=yes
8225 echo "configure: failed program was:" >&5
8226 cat conftest.
$ac_ext >&5
8228 samba_cv_HAVE_ROOT
=no
8235 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
8236 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
8237 cat >> confdefs.h
<<\EOF
8242 echo "configure: warning: running as non-root will disable some tests" 1>&2
8246 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
8247 echo "configure:8248: checking for netmask ifconf" >&5
8248 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8252 if test "$cross_compiling" = yes; then
8253 samba_cv_HAVE_NETMASK_IFCONF
=cross
8255 cat > conftest.
$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8259 #define HAVE_NETMASK_IFCONF 1
8261 #include "confdefs.h"
8262 #include "${srcdir-.}/lib/netmask.c"
8264 if { (eval echo configure
:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8266 samba_cv_HAVE_NETMASK_IFCONF
=yes
8268 echo "configure: failed program was:" >&5
8269 cat conftest.
$ac_ext >&5
8271 samba_cv_HAVE_NETMASK_IFCONF
=no
8278 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
8279 if test x
"$samba_cv_HAVE_NETMASK_IFCONF" = x
"yes"; then
8280 netmask
=yes;cat >> confdefs.h
<<\EOF
8281 #define HAVE_NETMASK_IFCONF 1
8286 if test $netmask = no
; then
8287 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
8288 echo "configure:8289: checking for netmask ifreq" >&5
8289 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
8290 echo $ac_n "(cached) $ac_c" 1>&6
8293 if test "$cross_compiling" = yes; then
8294 samba_cv_HAVE_NETMASK_IFREQ
=cross
8296 cat > conftest.
$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8300 #define HAVE_NETMASK_IFREQ 1
8302 #include "confdefs.h"
8303 #include "${srcdir-.}/lib/netmask.c"
8305 if { (eval echo configure
:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8307 samba_cv_HAVE_NETMASK_IFREQ
=yes
8309 echo "configure: failed program was:" >&5
8310 cat conftest.
$ac_ext >&5
8312 samba_cv_HAVE_NETMASK_IFREQ
=no
8319 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
8320 if test x
"$samba_cv_HAVE_NETMASK_IFREQ" = x
"yes"; then
8321 netmask
=yes;cat >> confdefs.h
<<\EOF
8322 #define HAVE_NETMASK_IFREQ 1
8328 if test $netmask = no
; then
8329 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
8330 echo "configure:8331: checking for netmask AIX" >&5
8331 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8335 if test "$cross_compiling" = yes; then
8336 samba_cv_HAVE_NETMASK_AIX
=cross
8338 cat > conftest.
$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8342 #define HAVE_NETMASK_AIX 1
8344 #include "confdefs.h"
8345 #include "${srcdir-.}/lib/netmask.c"
8347 if { (eval echo configure
:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8349 samba_cv_HAVE_NETMASK_AIX
=yes
8351 echo "configure: failed program was:" >&5
8352 cat conftest.
$ac_ext >&5
8354 samba_cv_HAVE_NETMASK_AIX
=no
8361 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
8362 if test x
"$samba_cv_HAVE_NETMASK_AIX" = x
"yes"; then
8363 netmask
=yes;cat >> confdefs.h
<<\EOF
8364 #define HAVE_NETMASK_AIX 1
8370 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
8371 echo "configure:8372: checking for trapdoor seteuid" >&5
8372 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8376 if test "$cross_compiling" = yes; then
8379 cat > conftest.
$ac_ext <<EOF
8380 #line 8381 "configure"
8381 #include "confdefs.h"
8382 #include "${srcdir-.}/tests/trapdoor.c"
8384 if { (eval echo configure
:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8386 samba_cv_HAVE_TRAPDOOR_UID
=no
8388 echo "configure: failed program was:" >&5
8389 cat conftest.
$ac_ext >&5
8391 samba_cv_HAVE_TRAPDOOR_UID
=yes
8398 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
8399 if test x
"$samba_cv_HAVE_TRAPDOOR_UID" = x
"yes"; then
8400 cat >> confdefs.h
<<\EOF
8401 #define HAVE_TRAPDOOR_UID 1
8406 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8407 echo "configure:8408: checking for shared mmap" >&5
8408 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8409 echo $ac_n "(cached) $ac_c" 1>&6
8412 if test "$cross_compiling" = yes; then
8413 samba_cv_HAVE_SHARED_MMAP
=cross
8415 cat > conftest.
$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 #include "${srcdir-.}/tests/shared_mmap.c"
8420 if { (eval echo configure
:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8422 samba_cv_HAVE_SHARED_MMAP
=yes
8424 echo "configure: failed program was:" >&5
8425 cat conftest.
$ac_ext >&5
8427 samba_cv_HAVE_SHARED_MMAP
=no
8434 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
8435 if test x
"$samba_cv_HAVE_SHARED_MMAP" = x
"yes"; then
8436 cat >> confdefs.h
<<\EOF
8437 #define HAVE_SHARED_MMAP 1
8440 cat >> confdefs.h
<<\EOF
8446 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
8447 echo "configure:8448: checking for ftruncate needs root" >&5
8448 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8452 if test "$cross_compiling" = yes; then
8453 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
8455 cat > conftest.
$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 #include "${srcdir-.}/tests/ftruncroot.c"
8460 if { (eval echo configure
:8461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8462 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
8464 echo "configure: failed program was:" >&5
8465 cat conftest.
$ac_ext >&5
8467 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
8474 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
8475 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
8476 cat >> confdefs.h
<<\EOF
8477 #define FTRUNCATE_NEEDS_ROOT 1
8482 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
8483 echo "configure:8484: checking for fcntl locking" >&5
8484 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8488 if test "$cross_compiling" = yes; then
8489 samba_cv_HAVE_FCNTL_LOCK
=cross
8491 cat > conftest.
$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8494 #include "${srcdir-.}/tests/fcntl_lock.c"
8496 if { (eval echo configure
:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8498 samba_cv_HAVE_FCNTL_LOCK
=yes
8500 echo "configure: failed program was:" >&5
8501 cat conftest.
$ac_ext >&5
8503 samba_cv_HAVE_FCNTL_LOCK
=no
8510 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8511 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
8512 cat >> confdefs.h
<<\EOF
8513 #define HAVE_FCNTL_LOCK 1
8518 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8519 echo "configure:8520: checking for 64 bit fcntl locking" >&5
8520 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8524 if test "$cross_compiling" = yes; then
8525 samba_cv_HAVE_STRUCT_FLOCK64
=cross
8527 cat > conftest.
$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8531 #if defined(HAVE_UNISTD_H)
8541 #ifdef HAVE_SYS_FCNTL_H
8542 #include <sys/fcntl.h>
8544 main() { struct flock64 fl64;
8545 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8552 if { (eval echo configure
:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8554 samba_cv_HAVE_STRUCT_FLOCK64
=yes
8556 echo "configure: failed program was:" >&5
8557 cat conftest.
$ac_ext >&5
8559 samba_cv_HAVE_STRUCT_FLOCK64
=no
8566 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8567 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
8568 cat >> confdefs.h
<<\EOF
8569 #define HAVE_STRUCT_FLOCK64 1
8574 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8575 echo "configure:8576: checking for sysv ipc" >&5
8576 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8580 if test "$cross_compiling" = yes; then
8581 samba_cv_HAVE_SYSV_IPC
=cross
8583 cat > conftest.
$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8586 #include "${srcdir-.}/tests/sysv_ipc.c"
8588 if { (eval echo configure
:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8590 samba_cv_HAVE_SYSV_IPC
=yes
8592 echo "configure: failed program was:" >&5
8593 cat conftest.
$ac_ext >&5
8595 samba_cv_HAVE_SYSV_IPC
=no
8602 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8603 if test x
"$samba_cv_HAVE_SYSV_IPC" = x
"yes"; then
8604 cat >> confdefs.h
<<\EOF
8605 #define HAVE_SYSV_IPC 1
8610 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
8611 echo "configure:8612: checking for a crypt that needs truncated salt" >&5
8612 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8616 if test "$cross_compiling" = yes; then
8617 samba_cv_HAVE_TRUNCATED_SALT
=cross
8619 cat > conftest.
$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 #include "${srcdir-.}/tests/crypttest.c"
8624 if { (eval echo configure
:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8626 samba_cv_HAVE_TRUNCATED_SALT
=no
8628 echo "configure: failed program was:" >&5
8629 cat conftest.
$ac_ext >&5
8631 samba_cv_HAVE_TRUNCATED_SALT
=yes
8638 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
8639 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
8640 cat >> confdefs.h
<<\EOF
8641 #define HAVE_TRUNCATED_SALT 1
8646 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
8647 echo "configure:8648: checking for broken nisplus include files" >&5
8648 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8652 cat > conftest.
$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8655 #include <sys/acl.h>
8656 #if defined(HAVE_RPCSVC_NIS_H)
8657 #include <rpcsvc/nis.h>
8663 if { (eval echo configure
:8664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8665 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
8667 echo "configure: failed program was:" >&5
8668 cat conftest.
$ac_ext >&5
8670 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
8675 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
8676 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
8677 cat >> confdefs.h
<<\EOF
8678 #define BROKEN_NISPLUS_INCLUDE_FILES 1
8684 #################################################
8685 # check for smbwrapper support
8686 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8687 echo "configure:8688: checking whether to use smbwrapper" >&5
8688 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8689 if test "${with_smbwrapper+set}" = set; then
8690 withval
="$with_smbwrapper"
8693 echo "$ac_t""yes" 1>&6
8694 cat >> confdefs.h
<<\EOF
8695 #define WITH_SMBWRAPPER 1
8698 WRAP
="bin/smbsh bin/smbwrapper.so"
8700 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
8703 WRAP32
=bin
/smbwrapper
.32.so
8706 # Conditions under which smbwrapper should not be built.
8708 if test x
$PICFLAG = x
; then
8709 echo No support
for PIC code
- disabling smbwrapper and smbsh
8712 elif test x
$ac_cv_func_syscall = xno
; then
8713 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8719 echo "$ac_t""no" 1>&6
8723 echo "$ac_t""no" 1>&6
8728 #################################################
8729 # check for the AFS filesystem
8730 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8731 echo "configure:8732: checking whether to use AFS" >&5
8732 # Check whether --with-afs or --without-afs was given.
8733 if test "${with_afs+set}" = set; then
8737 echo "$ac_t""yes" 1>&6
8738 cat >> confdefs.h
<<\EOF
8744 echo "$ac_t""no" 1>&6
8748 echo "$ac_t""no" 1>&6
8754 #################################################
8755 # check for the DFS auth system
8756 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8757 echo "configure:8758: checking whether to use DFS auth" >&5
8758 # Check whether --with-dfs or --without-dfs was given.
8759 if test "${with_dfs+set}" = set; then
8763 echo "$ac_t""yes" 1>&6
8764 cat >> confdefs.h
<<\EOF
8770 echo "$ac_t""no" 1>&6
8774 echo "$ac_t""no" 1>&6
8779 #################################################
8780 # check for Kerberos IV auth system
8781 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8782 echo "configure:8783: checking whether to use Kerberos IV" >&5
8783 # Check whether --with-krb4 or --without-krb4 was given.
8784 if test "${with_krb4+set}" = set; then
8785 withval
="$with_krb4"
8786 echo "$ac_t""yes" 1>&6
8787 cat >> confdefs.h
<<\EOF
8791 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8792 echo "configure:8793: checking for dn_expand in -lresolv" >&5
8793 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8795 echo $ac_n "(cached) $ac_c" 1>&6
8797 ac_save_LIBS
="$LIBS"
8798 LIBS
="-lresolv $LIBS"
8799 cat > conftest.
$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8811 if { (eval echo configure
:8812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
8813 eval "ac_cv_lib_$ac_lib_var=yes"
8815 echo "configure: failed program was:" >&5
8816 cat conftest.
$ac_ext >&5
8818 eval "ac_cv_lib_$ac_lib_var=no"
8821 LIBS
="$ac_save_LIBS"
8824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8825 echo "$ac_t""yes" 1>&6
8826 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8828 cat >> confdefs.h
<<EOF
8829 #define $ac_tr_lib 1
8832 LIBS
="-lresolv $LIBS"
8835 echo "$ac_t""no" 1>&6
8838 LIBS
="$LIBS -lkrb -ldes"
8839 CFLAGS
="$CFLAGS -I$withval/include"
8840 LDFLAGS
="$LDFLAGS -L$withval/lib"
8842 echo "$ac_t""no" 1>&6
8847 #################################################
8848 # check for Kerberos 5 auth system
8849 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
8850 echo "configure:8851: checking whether to use Kerberos 5" >&5
8851 # Check whether --with-krb5 or --without-krb5 was given.
8852 if test "${with_krb5+set}" = set; then
8853 withval
="$with_krb5"
8854 echo "$ac_t""yes" 1>&6
8855 cat >> confdefs.h
<<\EOF
8859 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
8860 CFLAGS
="$CFLAGS -I$withval/include"
8861 LDFLAGS
="$LDFLAGS -L$withval/lib"
8863 echo "$ac_t""no" 1>&6
8868 #################################################
8869 # check for automount support
8870 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8871 echo "configure:8872: checking whether to use AUTOMOUNT" >&5
8872 # Check whether --with-automount or --without-automount was given.
8873 if test "${with_automount+set}" = set; then
8874 withval
="$with_automount"
8877 echo "$ac_t""yes" 1>&6
8878 cat >> confdefs.h
<<\EOF
8879 #define WITH_AUTOMOUNT 1
8884 echo "$ac_t""no" 1>&6
8888 echo "$ac_t""no" 1>&6
8893 #################################################
8894 # check for smbmount support
8895 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8896 echo "configure:8897: checking whether to use SMBMOUNT" >&5
8897 # Check whether --with-smbmount or --without-smbmount was given.
8898 if test "${with_smbmount+set}" = set; then
8899 withval
="$with_smbmount"
8902 echo "$ac_t""yes" 1>&6
8903 cat >> confdefs.h
<<\EOF
8904 #define WITH_SMBMOUNT 1
8907 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
8910 echo "$ac_t""no" 1>&6
8915 echo "$ac_t""no" 1>&6
8922 #################################################
8923 # check for a PAM password database
8924 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
8925 echo "configure:8926: checking whether to use PAM password database" >&5
8926 # Check whether --with-pam or --without-pam was given.
8927 if test "${with_pam+set}" = set; then
8931 echo "$ac_t""yes" 1>&6
8932 cat >> confdefs.h
<<\EOF
8939 echo "$ac_t""no" 1>&6
8943 echo "$ac_t""no" 1>&6
8949 #################################################
8950 # check for a LDAP password database
8951 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8952 echo "configure:8953: checking whether to use LDAP password database" >&5
8953 # Check whether --with-ldap or --without-ldap was given.
8954 if test "${with_ldap+set}" = set; then
8955 withval
="$with_ldap"
8958 echo "$ac_t""yes" 1>&6
8959 cat >> confdefs.h
<<\EOF
8965 echo "$ac_t""no" 1>&6
8969 echo "$ac_t""no" 1>&6
8974 #################################################
8975 # check for a NISPLUS password database
8976 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
8977 echo "configure:8978: checking whether to use NISPLUS password database" >&5
8978 # Check whether --with-nisplus or --without-nisplus was given.
8979 if test "${with_nisplus+set}" = set; then
8980 withval
="$with_nisplus"
8983 echo "$ac_t""yes" 1>&6
8984 cat >> confdefs.h
<<\EOF
8985 #define WITH_NISPLUS 1
8990 echo "$ac_t""no" 1>&6
8994 echo "$ac_t""no" 1>&6
8999 #################################################
9000 # check for a NISPLUS_HOME support
9001 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
9002 echo "configure:9003: checking whether to use NISPLUS_HOME" >&5
9003 # Check whether --with-nisplus-home or --without-nisplus-home was given.
9004 if test "${with_nisplus_home+set}" = set; then
9005 withval
="$with_nisplus_home"
9008 echo "$ac_t""yes" 1>&6
9009 cat >> confdefs.h
<<\EOF
9010 #define WITH_NISPLUS_HOME 1
9015 echo "$ac_t""no" 1>&6
9019 echo "$ac_t""no" 1>&6
9024 #################################################
9025 # check for the secure socket layer
9026 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
9027 echo "configure:9028: checking whether to use SSL" >&5
9028 # Check whether --with-ssl or --without-ssl was given.
9029 if test "${with_ssl+set}" = set; then
9033 echo "$ac_t""yes" 1>&6
9034 cat >> confdefs.h
<<\EOF
9038 withval
="/usr/local/ssl" # default
9040 if test "${with_sslinc+set}" = set; then
9042 withval
="$with_sslinc"
9045 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
9046 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
9047 LIBS
="-lssl -lcrypto $LIBS"
9048 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
9051 CFLAGS
="-I${withval}/include $CFLAGS"
9052 LIBS
="-lssl -l crypto $LIBS"
9053 LDFLAGS
="-L${withval}/lib $LDFLAGS"
9059 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
9060 LIBS
="-lssl -lcrypto $LIBS"
9061 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
9065 if test ! -d ${withval}; then
9066 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
9070 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
9074 echo "$ac_t""no" 1>&6
9078 echo "$ac_t""no" 1>&6
9083 #################################################
9084 # check for experimental mmap support
9085 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
9086 echo "configure:9087: checking whether to use MMAP" >&5
9087 # Check whether --with-mmap or --without-mmap was given.
9088 if test "${with_mmap+set}" = set; then
9089 withval
="$with_mmap"
9092 echo "$ac_t""yes" 1>&6
9093 cat >> confdefs.h
<<\EOF
9099 echo "$ac_t""no" 1>&6
9103 echo "$ac_t""no" 1>&6
9108 #################################################
9109 # check for syslog logging
9110 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
9111 echo "configure:9112: checking whether to use syslog logging" >&5
9112 # Check whether --with-syslog or --without-syslog was given.
9113 if test "${with_syslog+set}" = set; then
9114 withval
="$with_syslog"
9117 echo "$ac_t""yes" 1>&6
9118 cat >> confdefs.h
<<\EOF
9119 #define WITH_SYSLOG 1
9124 echo "$ac_t""no" 1>&6
9128 echo "$ac_t""no" 1>&6
9133 #################################################
9134 # check for experimental netatalk resource fork support
9135 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
9136 echo "configure:9137: checking whether to support netatalk" >&5
9137 # Check whether --with-netatalk or --without-netatalk was given.
9138 if test "${with_netatalk+set}" = set; then
9139 withval
="$with_netatalk"
9142 echo "$ac_t""yes" 1>&6
9143 cat >> confdefs.h
<<\EOF
9144 #define WITH_NETATALK 1
9149 echo "$ac_t""no" 1>&6
9153 echo "$ac_t""no" 1>&6
9158 #################################################
9159 # check for experimental disk-quotas support
9160 QUOTAOBJS
=noquotas.o
9162 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
9163 echo "configure:9164: checking whether to support disk-quotas" >&5
9164 # Check whether --with-quotas or --without-quotas was given.
9165 if test "${with_quotas+set}" = set; then
9166 withval
="$with_quotas"
9169 echo "$ac_t""yes" 1>&6
9173 echo "$ac_t""no" 1>&6
9177 echo "$ac_t""no" 1>&6
9183 #################################################
9184 # set private directory location
9185 # Check whether --with-privatedir or --without-privatedir was given.
9186 if test "${with_privatedir+set}" = set; then
9187 withval
="$with_privatedir"
9191 # Just in case anybody calls it without argument
9193 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
9194 privatedir
='${prefix}/private'
9197 privatedir
="$withval"
9202 privatedir
='${prefix}/private'
9208 #################################################
9209 # set lock directory location
9210 # Check whether --with-lockdir or --without-lockdir was given.
9211 if test "${with_lockdir+set}" = set; then
9212 withval
="$with_lockdir"
9216 # Just in case anybody calls it without argument
9218 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
9219 lockdir
='$(VARDIR)/locks'
9227 lockdir
='$(VARDIR)/locks'
9233 #################################################
9234 # set SWAT directory location
9235 # Check whether --with-swatdir or --without-swatdir was given.
9236 if test "${with_swatdir+set}" = set; then
9237 withval
="$with_swatdir"
9241 # Just in case anybody does it
9243 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
9244 swatdir
='${prefix}/swat'
9252 swatdir
='${prefix}/swat'
9258 #################################################
9259 # these tests are taken from the GNU fileutils package
9260 echo "checking how to get filesystem space usage" 1>&6
9261 echo "configure:9262: checking how to get filesystem space usage" >&5
9264 # Test for statvfs64.
9265 if test $space = no
; then
9267 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
9268 echo "configure:9269: checking statvfs64 function (SVR4)" >&5
9269 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
9270 echo $ac_n "(cached) $ac_c" 1>&6
9272 if test "$cross_compiling" = yes; then
9273 fu_cv_sys_stat_statvfs64
=cross
9275 cat > conftest.
$ac_ext <<EOF
9276 #line 9277 "configure"
9277 #include "confdefs.h"
9279 #if defined(HAVE_UNISTD_H)
9282 #include <sys/types.h>
9283 #include <sys/statvfs.h>
9286 struct statvfs64 fsd;
9287 exit (statvfs64 (".", &fsd));
9290 if { (eval echo configure
:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9292 fu_cv_sys_stat_statvfs64
=yes
9294 echo "configure: failed program was:" >&5
9295 cat conftest.
$ac_ext >&5
9297 fu_cv_sys_stat_statvfs64
=no
9304 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
9305 if test $fu_cv_sys_stat_statvfs64 = yes; then
9307 cat >> confdefs.h
<<\EOF
9308 #define STAT_STATVFS64 1
9314 # Perform only the link test since it seems there are no variants of the
9315 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
9316 # because that got a false positive on SCO OSR5. Adding the declaration
9317 # of a `struct statvfs' causes this test to fail (as it should) on such
9318 # systems. That system is reported to work fine with STAT_STATFS4 which
9319 # is what it gets when this test fails.
9320 if test $space = no
; then
9322 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
9323 echo "configure:9324: checking statvfs function (SVR4)" >&5
9324 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9327 cat > conftest.
$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 #include <sys/types.h>
9331 #include <sys/statvfs.h>
9333 struct statvfs fsd; statvfs (0, &fsd);
9336 if { (eval echo configure
:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
9338 fu_cv_sys_stat_statvfs
=yes
9340 echo "configure: failed program was:" >&5
9341 cat conftest.
$ac_ext >&5
9343 fu_cv_sys_stat_statvfs
=no
9348 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
9349 if test $fu_cv_sys_stat_statvfs = yes; then
9351 cat >> confdefs.h
<<\EOF
9352 #define STAT_STATVFS 1
9358 if test $space = no
; then
9359 # DEC Alpha running OSF/1
9360 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
9361 echo "configure:9362: checking for 3-argument statfs function (DEC OSF/1)" >&5
9362 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9365 if test "$cross_compiling" = yes; then
9366 fu_cv_sys_stat_statfs3_osf1
=no
9368 cat > conftest.
$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9372 #include <sys/param.h>
9373 #include <sys/types.h>
9374 #include <sys/mount.h>
9379 exit (statfs (".", &fsd, sizeof (struct statfs)));
9382 if { (eval echo configure
:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9384 fu_cv_sys_stat_statfs3_osf1
=yes
9386 echo "configure: failed program was:" >&5
9387 cat conftest.
$ac_ext >&5
9389 fu_cv_sys_stat_statfs3_osf1
=no
9396 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
9397 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9399 cat >> confdefs.h
<<\EOF
9400 #define STAT_STATFS3_OSF1 1
9406 if test $space = no
; then
9408 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
9409 echo "configure:9410: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9410 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9413 if test "$cross_compiling" = yes; then
9414 fu_cv_sys_stat_statfs2_bsize
=no
9416 cat > conftest.
$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9420 #ifdef HAVE_SYS_PARAM_H
9421 #include <sys/param.h>
9423 #ifdef HAVE_SYS_MOUNT_H
9424 #include <sys/mount.h>
9426 #ifdef HAVE_SYS_VFS_H
9427 #include <sys/vfs.h>
9433 exit (statfs (".", &fsd));
9436 if { (eval echo configure
:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9438 fu_cv_sys_stat_statfs2_bsize
=yes
9440 echo "configure: failed program was:" >&5
9441 cat conftest.
$ac_ext >&5
9443 fu_cv_sys_stat_statfs2_bsize
=no
9450 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
9451 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9453 cat >> confdefs.h
<<\EOF
9454 #define STAT_STATFS2_BSIZE 1
9460 if test $space = no
; then
9462 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
9463 echo "configure:9464: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9464 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9467 if test "$cross_compiling" = yes; then
9468 fu_cv_sys_stat_statfs4
=no
9470 cat > conftest.
$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 #include <sys/types.h>
9474 #include <sys/statfs.h>
9478 exit (statfs (".", &fsd, sizeof fsd, 0));
9481 if { (eval echo configure
:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9483 fu_cv_sys_stat_statfs4
=yes
9485 echo "configure: failed program was:" >&5
9486 cat conftest.
$ac_ext >&5
9488 fu_cv_sys_stat_statfs4
=no
9495 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
9496 if test $fu_cv_sys_stat_statfs4 = yes; then
9498 cat >> confdefs.h
<<\EOF
9499 #define STAT_STATFS4 1
9505 if test $space = no
; then
9507 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
9508 echo "configure:9509: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9509 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9512 if test "$cross_compiling" = yes; then
9513 fu_cv_sys_stat_statfs2_fsize
=no
9515 cat > conftest.
$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 #include <sys/types.h>
9519 #ifdef HAVE_SYS_PARAM_H
9520 #include <sys/param.h>
9522 #ifdef HAVE_SYS_MOUNT_H
9523 #include <sys/mount.h>
9529 exit (statfs (".", &fsd));
9532 if { (eval echo configure
:9533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9534 fu_cv_sys_stat_statfs2_fsize
=yes
9536 echo "configure: failed program was:" >&5
9537 cat conftest.
$ac_ext >&5
9539 fu_cv_sys_stat_statfs2_fsize
=no
9546 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
9547 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9549 cat >> confdefs.h
<<\EOF
9550 #define STAT_STATFS2_FSIZE 1
9556 if test $space = no
; then
9558 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
9559 echo "configure:9560: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9560 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
9561 echo $ac_n "(cached) $ac_c" 1>&6
9563 if test "$cross_compiling" = yes; then
9564 fu_cv_sys_stat_fs_data
=no
9566 cat > conftest.
$ac_ext <<EOF
9567 #line 9568 "configure"
9568 #include "confdefs.h"
9569 #include <sys/types.h>
9570 #ifdef HAVE_SYS_PARAM_H
9571 #include <sys/param.h>
9573 #ifdef HAVE_SYS_MOUNT_H
9574 #include <sys/mount.h>
9576 #ifdef HAVE_SYS_FS_TYPES_H
9577 #include <sys/fs_types.h>
9582 /* Ultrix's statfs returns 1 for success,
9583 0 for not mounted, -1 for failure. */
9584 exit (statfs (".", &fsd) != 1);
9587 if { (eval echo configure
:9588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9589 fu_cv_sys_stat_fs_data
=yes
9591 echo "configure: failed program was:" >&5
9592 cat conftest.
$ac_ext >&5
9594 fu_cv_sys_stat_fs_data
=no
9601 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
9602 if test $fu_cv_sys_stat_fs_data = yes; then
9604 cat >> confdefs.h
<<\EOF
9605 #define STAT_STATFS2_FS_DATA 1
9612 # As a gating factor for large file support, in order to
9613 # use <4GB files we must have the following minimal support
9615 # long long, and a 64 bit off_t or off64_t.
9616 # If we don't have all of these then disable large
9619 echo "checking if large file support can be enabled"
9620 cat > conftest.
$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9624 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
9625 #include <sys/types.h>
9634 if { (eval echo configure
:9635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9636 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
9638 echo "configure: failed program was:" >&5
9639 cat conftest.
$ac_ext >&5
9641 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
9644 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
9646 cat >> confdefs.h
<<\EOF
9647 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
9654 echo "checking configure summary"
9655 if test "$cross_compiling" = yes; then
9658 cat > conftest.
$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661 #include "${srcdir-.}/tests/summary.c"
9663 if { (eval echo configure
:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9665 echo "configure OK";
9667 echo "configure: failed program was:" >&5
9668 cat conftest.
$ac_ext >&5
9670 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
9680 cat > confcache
<<\EOF
9681 # This file is a shell script that caches the results of configure
9682 # tests run on this system so they can be shared between configure
9683 # scripts and configure runs. It is not useful on other systems.
9684 # If it contains results you don't want to keep, you may remove or edit it.
9686 # By default, configure uses ./config.cache as the cache file,
9687 # creating it if it does not exist already. You can give configure
9688 # the --cache-file=FILE option to use a different cache file; that is
9689 # what configure does when it calls configure scripts in
9690 # subdirectories, so they share the cache.
9691 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9692 # config.status only pays attention to the cache file if you give it the
9693 # --recheck option to rerun configure.
9696 # The following way of writing the cache mishandles newlines in values,
9697 # but we know of no workaround that is simple, portable, and efficient.
9698 # So, don't put newlines in cache variables' values.
9699 # Ultrix sh set writes to stderr and can't be redirected directly,
9700 # and sets the high bit in the cache file unless we assign to the vars.
9702 case `(ac_space=' '; set) 2>&1` in
9704 # `set' does not quote correctly, so add quotes (double-quote substitution
9705 # turns \\\\ into \\, and sed turns \\ into \).
9707 -e "s/'/'\\\\''/g" \
9708 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9711 # `set' quotes correctly as required by POSIX, so do not add quotes.
9712 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9715 if cmp -s $cache_file confcache
; then
9718 if test -w $cache_file; then
9719 echo "updating cache $cache_file"
9720 cat confcache
> $cache_file
9722 echo "not updating unwritable cache $cache_file"
9727 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9729 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9730 # Let make expand exec_prefix.
9731 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9733 # Any assignment to VPATH causes Sun make to only execute
9734 # the first set of double-colon rules, so remove it if not needed.
9735 # If there is a colon in the path, we need to keep it.
9736 if test "x$srcdir" = x.
; then
9737 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9740 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9742 DEFS
=-DHAVE_CONFIG_H
9744 # Without the "./", some shells look in PATH for config.status.
9745 : ${CONFIG_STATUS=./config.status}
9747 echo creating
$CONFIG_STATUS
9748 rm -f $CONFIG_STATUS
9749 cat > $CONFIG_STATUS <<EOF
9751 # Generated automatically by configure.
9752 # Run this file to recreate the current configuration.
9753 # This directory was configured as follows,
9754 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9756 # $0 $ac_configure_args
9758 # Compiler output produced by configure, useful for debugging
9759 # configure, is in ./config.log if it exists.
9761 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9764 case "\$ac_option" in
9765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9766 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9767 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9768 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9769 echo "$CONFIG_STATUS generated by autoconf version 2.12"
9771 -help | --help | --hel | --he | --h)
9772 echo "\$ac_cs_usage"; exit 0 ;;
9773 *) echo "\$ac_cs_usage"; exit 1 ;;
9777 ac_given_srcdir=$srcdir
9778 ac_given_INSTALL="$INSTALL"
9780 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9782 cat >> $CONFIG_STATUS <<EOF
9784 # Protect against being on the right side of a sed subst in config.status.
9785 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9786 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9789 s%@CFLAGS@%$CFLAGS%g
9790 s%@CPPFLAGS@%$CPPFLAGS%g
9791 s%@CXXFLAGS@%$CXXFLAGS%g
9793 s%@LDFLAGS@%$LDFLAGS%g
9795 s%@exec_prefix@%$exec_prefix%g
9796 s%@prefix@%$prefix%g
9797 s%@program_transform_name@%$program_transform_name%g
9798 s%@bindir@%$bindir%g
9799 s%@sbindir@%$sbindir%g
9800 s%@libexecdir@%$libexecdir%g
9801 s%@datadir@%$datadir%g
9802 s%@sysconfdir@%$sysconfdir%g
9803 s%@sharedstatedir@%$sharedstatedir%g
9804 s%@localstatedir@%$localstatedir%g
9805 s%@libdir@%$libdir%g
9806 s%@includedir@%$includedir%g
9807 s%@oldincludedir@%$oldincludedir%g
9808 s%@infodir@%$infodir%g
9809 s%@mandir@%$mandir%g
9811 s%@RUNPROG@%$RUNPROG%g
9812 s%@MPROGS@%$MPROGS%g
9813 s%@LDSHFLAGS@%$LDSHFLAGS%g
9814 s%@HOST_OS@%$HOST_OS%g
9816 s%@WRAP32@%$WRAP32%g
9817 s%@PICFLAG@%$PICFLAG%g
9819 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9820 s%@INSTALL_DATA@%$INSTALL_DATA%g
9822 s%@BROKEN_CC@%$BROKEN_CC%g
9824 s%@host_alias@%$host_alias%g
9825 s%@host_cpu@%$host_cpu%g
9826 s%@host_vendor@%$host_vendor%g
9827 s%@host_os@%$host_os%g
9828 s%@target@%$target%g
9829 s%@target_alias@%$target_alias%g
9830 s%@target_cpu@%$target_cpu%g
9831 s%@target_vendor@%$target_vendor%g
9832 s%@target_os@%$target_os%g
9834 s%@build_alias@%$build_alias%g
9835 s%@build_cpu@%$build_cpu%g
9836 s%@build_vendor@%$build_vendor%g
9837 s%@build_os@%$build_os%g
9839 s%@AUTOCONF@%$AUTOCONF%g
9840 s%@AUTOHEADER@%$AUTOHEADER%g
9842 s%@LIBOBJS@%$LIBOBJS%g
9844 s%@QUOTAOBJS@%$QUOTAOBJS%g
9845 s%@privatedir@%$privatedir%g
9846 s%@lockdir@%$lockdir%g
9847 s%@swatdir@%$swatdir%g
9848 s%@builddir@%$builddir%g
9853 cat >> $CONFIG_STATUS <<\EOF
9855 # Split the substitutions into bite-sized pieces for seds with
9856 # small command number limits, like on Digital OSF/1 and HP-UX.
9857 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9858 ac_file
=1 # Number of current file.
9859 ac_beg
=1 # First line for current file.
9860 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9863 while $ac_more_lines; do
9864 if test $ac_beg -gt 1; then
9865 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9867 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9869 if test ! -s conftest.s
$ac_file; then
9871 rm -f conftest.s
$ac_file
9873 if test -z "$ac_sed_cmds"; then
9874 ac_sed_cmds
="sed -f conftest.s$ac_file"
9876 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9878 ac_file
=`expr $ac_file + 1`
9880 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9883 if test -z "$ac_sed_cmds"; then
9888 cat >> $CONFIG_STATUS <<EOF
9890 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
9892 cat >> $CONFIG_STATUS <<\EOF
9893 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9894 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9896 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9897 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9898 *) ac_file_in
="${ac_file}.in" ;;
9901 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9903 # Remove last slash and all that follows it. Not all systems have dirname.
9904 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9905 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9906 # The file is in a subdirectory.
9907 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9908 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9909 # A "../" for each directory in $ac_dir_suffix.
9910 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9912 ac_dir_suffix
= ac_dots
=
9915 case "$ac_given_srcdir" in
9917 if test -z "$ac_dots"; then top_srcdir
=.
9918 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9919 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9921 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9922 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9925 case "$ac_given_INSTALL" in
9926 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9927 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9930 echo creating
"$ac_file"
9932 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9934 *Makefile
*) ac_comsub
="1i\\
9935 # $configure_input" ;;
9939 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9941 s%@configure_input@%$configure_input%g
9942 s%@srcdir@%$srcdir%g
9943 s%@top_srcdir@%$top_srcdir%g
9944 s%@INSTALL@%$INSTALL%g
9945 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9949 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9950 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9952 # ac_d sets the value in "#define NAME VALUE" lines.
9953 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9954 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9957 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9958 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9959 ac_uB
='\([ ]\)%\1#\2define\3'
9962 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9963 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9964 ac_eB
='$%\1#\2define\3'
9968 if test "${CONFIG_HEADERS+set}" != set; then
9970 cat >> $CONFIG_STATUS <<EOF
9971 CONFIG_HEADERS="include/config.h"
9973 cat >> $CONFIG_STATUS <<\EOF
9975 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9978 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9979 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9980 *) ac_file_in
="${ac_file}.in" ;;
9983 echo creating
$ac_file
9985 rm -f conftest.frag conftest.
in conftest.out
9986 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9987 cat $ac_file_inputs > conftest.
in
9991 # Transform confdefs.h into a sed script conftest.vals that substitutes
9992 # the proper values into config.h.in to produce config.h. And first:
9993 # Protect against being on the right side of a sed subst in config.status.
9994 # Protect against being in an unquoted here document in config.status.
9996 cat > conftest.hdr
<<\EOF
9999 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10003 sed -n -f conftest.hdr confdefs.h > conftest.vals
10006 # This sed command replaces #undef with comments. This is necessary, for
10007 # example, in the case of _POSIX_SOURCE, which is predefined and required
10008 # on some systems where configure will not decide to define it.
10009 cat >> conftest.vals <<\EOF
10010 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10013 # Break up conftest.vals because some shells have a limit on
10014 # the size of here documents, and old seds have small limits too.
10016 rm -f conftest.tail
10019 ac_lines=`grep -c . conftest.vals
`
10020 # grep -c gives empty output for an empty file on some AIX systems.
10021 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10022 # Write a limited-size here document to conftest.frag.
10023 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10024 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10026 sed -f conftest.frag conftest.in > conftest.out
10028 mv conftest.out conftest.in
10029 ' >> $CONFIG_STATUS
10030 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10031 rm -f conftest.vals
10032 mv conftest.tail conftest.vals
10034 rm -f conftest.vals
10036 cat >> $CONFIG_STATUS <<\EOF
10037 rm -f conftest.frag conftest.h
10038 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10039 cat conftest.in >> conftest.h
10041 if cmp -s $ac_file conftest.h 2>/dev/null; then
10042 echo "$ac_file is unchanged"
10045 # Remove last slash and all that follows it. Not all systems have dirname.
10046 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10047 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10048 # The file is in a subdirectory.
10049 test ! -d "$ac_dir" && mkdir "$ac_dir"
10052 mv conftest.h $ac_file
10057 cat >> $CONFIG_STATUS <<EOF
10060 cat >> $CONFIG_STATUS <<\EOF
10064 chmod +x $CONFIG_STATUS
10065 rm -fr confdefs* $ac_clean_files
10066 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1