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-ldap Include LDAP support
40 --without-ldap Don't include LDAP support (default)"
42 --with-nisplus Include NISPLUS password database support
43 --without-nisplus Don't include NISPLUS password database support (default)"
45 --with-nisplus-home Include NISPLUS_HOME support
46 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
48 --with-ssl Include SSL support
49 --without-ssl Don't include SSL support (default)
50 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
52 --with-mmap Include experimental MMAP support
53 --without-mmap Don't include MMAP support (default)"
55 --with-syslog Include experimental SYSLOG support
56 --without-syslog Don't include SYSLOG support (default)"
58 --with-netatalk Include experimental Netatalk support
59 --without-netatalk Don't include experimental Netatalk support (default)"
61 --with-quotas Include experimental disk-quota support
62 --without-quotas Don't include experimental disk-quota support (default)"
64 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
66 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
68 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
70 # Initialize some variables set by options.
71 # The variables have the same names as the options, with
72 # dashes changed to underlines.
74 cache_file
=.
/config.cache
83 program_transform_name
=s
,x
,x
,
91 bindir
='${exec_prefix}/bin'
92 sbindir
='${exec_prefix}/sbin'
93 libexecdir
='${exec_prefix}/libexec'
94 datadir
='${prefix}/share'
95 sysconfdir
='${prefix}/etc'
96 sharedstatedir
='${prefix}/com'
97 localstatedir
='${prefix}/var'
98 libdir
='${exec_prefix}/lib'
99 includedir
='${prefix}/include'
100 oldincludedir
='/usr/include'
101 infodir
='${prefix}/info'
102 mandir
='${prefix}/man'
104 # Initialize some other variables.
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
132 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
133 bindir
="$ac_optarg" ;;
135 -build |
--build |
--buil |
--bui |
--bu)
137 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
138 build
="$ac_optarg" ;;
140 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
141 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
142 ac_prev
=cache_file
;;
143 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
144 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
145 cache_file
="$ac_optarg" ;;
147 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
149 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
151 datadir
="$ac_optarg" ;;
153 -disable-* |
--disable-*)
154 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* |
--enable-*)
163 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
176 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
177 |
--exec |
--exe |
--ex)
178 ac_prev
=exec_prefix
;;
179 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
180 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
181 |
--exec=* |
--exe=* |
--ex=*)
182 exec_prefix
="$ac_optarg" ;;
184 -gas |
--gas |
--ga |
--g)
185 # Obsolete; use --with-gas.
188 -help |
--help |
--hel |
--he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host |
--host |
--hos |
--ho)
245 -host=* |
--host=* |
--hos=* |
--ho=*)
248 -includedir |
--includedir |
--includedi |
--included |
--include \
249 |
--includ |
--inclu |
--incl |
--inc)
250 ac_prev
=includedir
;;
251 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
252 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
253 includedir
="$ac_optarg" ;;
255 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
257 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
258 infodir
="$ac_optarg" ;;
260 -libdir |
--libdir |
--libdi |
--libd)
262 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
263 libdir
="$ac_optarg" ;;
265 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
266 |
--libexe |
--libex |
--libe)
267 ac_prev
=libexecdir
;;
268 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
269 |
--libexe=* |
--libex=* |
--libe=*)
270 libexecdir
="$ac_optarg" ;;
272 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
273 |
--localstate |
--localstat |
--localsta |
--localst \
274 |
--locals |
--local |
--loca |
--loc |
--lo)
275 ac_prev
=localstatedir
;;
276 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
277 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
278 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
279 localstatedir
="$ac_optarg" ;;
281 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
283 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
284 mandir
="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
294 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
295 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
298 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
299 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
300 |
--oldin |
--oldi |
--old |
--ol |
--o)
301 ac_prev
=oldincludedir
;;
302 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
303 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
304 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
305 oldincludedir
="$ac_optarg" ;;
307 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
309 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
310 prefix
="$ac_optarg" ;;
312 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
313 |
--program-pre |
--program-pr |
--program-p)
314 ac_prev
=program_prefix
;;
315 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
316 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
317 program_prefix
="$ac_optarg" ;;
319 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
320 |
--program-suf |
--program-su |
--program-s)
321 ac_prev
=program_suffix
;;
322 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
323 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
324 program_suffix
="$ac_optarg" ;;
326 -program-transform-name |
--program-transform-name \
327 |
--program-transform-nam |
--program-transform-na \
328 |
--program-transform-n |
--program-transform- \
329 |
--program-transform |
--program-transfor \
330 |
--program-transfo |
--program-transf \
331 |
--program-trans |
--program-tran \
332 |
--progr-tra |
--program-tr |
--program-t)
333 ac_prev
=program_transform_name
;;
334 -program-transform-name=* |
--program-transform-name=* \
335 |
--program-transform-nam=* |
--program-transform-na=* \
336 |
--program-transform-n=* |
--program-transform-=* \
337 |
--program-transform=* |
--program-transfor=* \
338 |
--program-transfo=* |
--program-transf=* \
339 |
--program-trans=* |
--program-tran=* \
340 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
341 program_transform_name
="$ac_optarg" ;;
343 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
344 |
-silent |
--silent |
--silen |
--sile |
--sil)
347 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
349 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
351 sbindir
="$ac_optarg" ;;
353 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
354 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
355 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
357 ac_prev
=sharedstatedir
;;
358 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
359 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
360 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
362 sharedstatedir
="$ac_optarg" ;;
364 -site |
--site |
--sit)
366 -site=* |
--site=* |
--sit=*)
369 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
371 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
372 srcdir
="$ac_optarg" ;;
374 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
375 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
376 ac_prev
=sysconfdir
;;
377 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
378 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
379 sysconfdir
="$ac_optarg" ;;
381 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
383 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
384 target
="$ac_optarg" ;;
386 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
389 -version |
--version |
--versio |
--versi |
--vers)
390 echo "configure generated by autoconf version 2.12"
394 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* |
--without-*)
407 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
420 |
--x-incl |
--x-inc |
--x-in |
--x-i)
421 ac_prev
=x_includes
;;
422 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
423 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
424 x_includes
="$ac_optarg" ;;
426 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
427 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
428 ac_prev
=x_libraries
;;
429 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
430 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
431 x_libraries
="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE
; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
482 |
--no-cr |
--no-c) ;;
483 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
484 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
485 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest
* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file
=include
/includes.h
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted
=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted
=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE
; then
536 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file
in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
552 echo "creating cache $cache_file"
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp
='$CPP $CPPFLAGS'
559 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling
=$ac_cv_prog_cc_cross
563 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
572 ac_n
= ac_c
='\c' ac_t
=
577 # we want to be compatibe with older versions of Samba
589 # compile with optimisation and without debugging by default
590 CFLAGS
=${CFLAGS-"-O"}
592 # Extract the first word of "gcc", so it can be a program name with args.
593 set dummy gcc
; ac_word
=$2
594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
595 echo "configure:596: checking for $ac_word" >&5
596 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
599 if test -n "$CC"; then
600 ac_cv_prog_CC
="$CC" # Let the user override the test.
602 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
603 for ac_dir
in $PATH; do
604 test -z "$ac_dir" && ac_dir
=.
605 if test -f $ac_dir/$ac_word; then
614 if test -n "$CC"; then
615 echo "$ac_t""$CC" 1>&6
617 echo "$ac_t""no" 1>&6
620 if test -z "$CC"; then
621 # Extract the first word of "cc", so it can be a program name with args.
622 set dummy cc
; ac_word
=$2
623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
624 echo "configure:625: checking for $ac_word" >&5
625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
628 if test -n "$CC"; then
629 ac_cv_prog_CC
="$CC" # Let the user override the test.
631 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
633 for ac_dir
in $PATH; do
634 test -z "$ac_dir" && ac_dir
=.
635 if test -f $ac_dir/$ac_word; then
636 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
645 if test $ac_prog_rejected = yes; then
646 # We found a bogon in the path, so make sure we never use it.
647 set dummy
$ac_cv_prog_CC
649 if test $# -gt 0; then
650 # We chose a different compiler from the bogus one.
651 # However, it has the same basename, so the bogon will be chosen
652 # first if we set CC to just the basename; use the full file name.
654 set dummy
"$ac_dir/$ac_word" "$@"
662 if test -n "$CC"; then
663 echo "$ac_t""$CC" 1>&6
665 echo "$ac_t""no" 1>&6
668 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
671 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
672 echo "configure:673: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
676 ac_cpp
='$CPP $CPPFLAGS'
677 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
678 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
679 cross_compiling
=$ac_cv_prog_cc_cross
681 cat > conftest.
$ac_ext <<EOF
682 #line 683 "configure"
683 #include "confdefs.h"
686 if { (eval echo configure
:687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
687 ac_cv_prog_cc_works
=yes
688 # If we can't run a trivial program, we are probably using a cross compiler.
689 if (.
/conftest
; exit) 2>/dev
/null
; then
690 ac_cv_prog_cc_cross
=no
692 ac_cv_prog_cc_cross
=yes
695 echo "configure: failed program was:" >&5
696 cat conftest.
$ac_ext >&5
697 ac_cv_prog_cc_works
=no
701 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
702 if test $ac_cv_prog_cc_works = no
; then
703 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
705 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
706 echo "configure:707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
707 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
708 cross_compiling
=$ac_cv_prog_cc_cross
710 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
711 echo "configure:712: checking whether we are using GNU C" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 cat > conftest.c
<<EOF
720 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
727 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
729 if test $ac_cv_prog_gcc = yes; then
731 ac_test_CFLAGS
="${CFLAGS+set}"
732 ac_save_CFLAGS
="$CFLAGS"
734 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
735 echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
736 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
739 echo 'void f(){}' > conftest.c
740 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
749 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
750 if test "$ac_test_CFLAGS" = set; then
751 CFLAGS
="$ac_save_CFLAGS"
752 elif test $ac_cv_prog_cc_g = yes; then
759 test "${CFLAGS+set}" = set || CFLAGS
="-g"
763 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
764 if test -f $ac_dir/install-sh
; then
766 ac_install_sh
="$ac_aux_dir/install-sh -c"
768 elif test -f $ac_dir/install.sh
; then
770 ac_install_sh
="$ac_aux_dir/install.sh -c"
774 if test -z "$ac_aux_dir"; then
775 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
777 ac_config_guess
=$ac_aux_dir/config.guess
778 ac_config_sub
=$ac_aux_dir/config.sub
779 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
781 # Find a good install program. We prefer a C program (faster),
782 # so one script is as good as another. But avoid the broken or
783 # incompatible versions:
784 # SysV /etc/install, /usr/sbin/install
785 # SunOS /usr/etc/install
788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
790 # ./install, which can be erroneously created by make from ./install.sh.
791 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
792 echo "configure:793: checking for a BSD compatible install" >&5
793 if test -z "$INSTALL"; then
794 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
798 for ac_dir
in $PATH; do
799 # Account for people who put trailing slashes in PATH elements.
801 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
803 # OSF1 and SCO ODT 3.0 have their own names for install.
804 for ac_prog
in ginstall installbsd scoinst
install; do
805 if test -f $ac_dir/$ac_prog; then
806 if test $ac_prog = install &&
807 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
808 # AIX install. It has an incompatible calling convention.
809 # OSF/1 installbsd also uses dspmsg, but is usable.
812 ac_cv_path_install
="$ac_dir/$ac_prog -c"
823 if test "${ac_cv_path_install+set}" = set; then
824 INSTALL
="$ac_cv_path_install"
826 # As a last resort, use the slow shell script. We don't cache a
827 # path for INSTALL within a source directory, because that will
828 # break other packages using the cache if that directory is
829 # removed, or if the path is relative.
830 INSTALL
="$ac_install_sh"
833 echo "$ac_t""$INSTALL" 1>&6
835 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
836 # It thinks the first close brace ends the variable substitution.
837 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
839 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
841 for ac_prog
in mawk gawk nawk
awk
843 # Extract the first word of "$ac_prog", so it can be a program name with args.
844 set dummy
$ac_prog; ac_word
=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 if test -n "$AWK"; then
851 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
853 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
854 for ac_dir
in $PATH; do
855 test -z "$ac_dir" && ac_dir
=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_AWK
="$ac_prog"
864 AWK
="$ac_cv_prog_AWK"
865 if test -n "$AWK"; then
866 echo "$ac_t""$AWK" 1>&6
868 echo "$ac_t""no" 1>&6
871 test -n "$AWK" && break
875 if test "x$CC" != xcc
; then
876 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
877 echo "configure:878: checking whether $CC and cc understand -c and -o together" >&5
879 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
880 echo "configure:881: checking whether cc understands -c and -o together" >&5
882 set dummy
$CC; ac_cc
="`echo $2 |
883 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
884 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 echo 'foo(){}' > conftest.c
888 # Make sure it works both with $CC and with simple cc.
889 # We do the test twice because some compilers refuse to overwrite an
890 # existing .o file with -o, though they will create one.
891 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
892 if { (eval echo configure
:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
893 test -f conftest.o
&& { (eval echo configure
:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
895 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
896 if test "x$CC" != xcc
; then
897 # Test first that cc exists at all.
898 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
899 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
900 if { (eval echo configure
:901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
901 test -f conftest.o
&& { (eval echo configure
:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
906 # cc exists but doesn't like -o.
907 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
912 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
917 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
920 echo "$ac_t""no" 1>&6
921 cat >> confdefs.h
<<\EOF
922 #define NO_MINUS_C_MINUS_O 1
927 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
934 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
935 echo "configure:936: checking that the C compiler understands volatile" >&5
936 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
940 cat > conftest.
$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
943 #include <sys/types.h>
948 if { (eval echo configure
:949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
950 samba_cv_volatile
=yes
952 echo "configure: failed program was:" >&5
953 cat conftest.
$ac_ext >&5
960 echo "$ac_t""$samba_cv_volatile" 1>&6
961 if test x
"$samba_cv_volatile" = x
"yes"; then
962 cat >> confdefs.h
<<\EOF
963 #define HAVE_VOLATILE 1
971 # Do some error checking and defaulting for the host and target type.
973 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
976 # 1. You are not allowed to specify --host, --target, and nonopt at the
978 # 2. Host defaults to nonopt.
979 # 3. If nonopt is not specified, then host defaults to the current host,
980 # as determined by config.guess.
981 # 4. Target and build default to nonopt.
982 # 5. If nonopt is not specified, then target and build default to host.
984 # The aliases save the names the user supplied, while $host etc.
985 # will get canonicalized.
986 case $host---$target---$nonopt in
987 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
988 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
992 # Make sure we can run config.sub.
993 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
994 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
997 echo $ac_n "checking host system type""... $ac_c" 1>&6
998 echo "configure:999: checking host system type" >&5
1001 case "$host_alias" in
1005 if host_alias
=`$ac_config_guess`; then :
1006 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1008 *) host_alias
=$nonopt ;;
1012 host=`$ac_config_sub $host_alias`
1013 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1014 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1015 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1016 echo "$ac_t""$host" 1>&6
1018 echo $ac_n "checking target system type""... $ac_c" 1>&6
1019 echo "configure:1020: checking target system type" >&5
1021 target_alias
=$target
1022 case "$target_alias" in
1025 NONE
) target_alias
=$host_alias ;;
1026 *) target_alias
=$nonopt ;;
1030 target
=`$ac_config_sub $target_alias`
1031 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1032 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1033 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1034 echo "$ac_t""$target" 1>&6
1036 echo $ac_n "checking build system type""... $ac_c" 1>&6
1037 echo "configure:1038: checking build system type" >&5
1040 case "$build_alias" in
1043 NONE
) build_alias
=$host_alias ;;
1044 *) build_alias
=$nonopt ;;
1048 build
=`$ac_config_sub $build_alias`
1049 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1050 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1051 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1052 echo "$ac_t""$build" 1>&6
1054 test "$host_alias" != "$target_alias" &&
1055 test "$program_prefix$program_suffix$program_transform_name" = \
1057 program_prefix
=${target_alias}-
1061 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1062 echo "configure:1063: checking config.cache system type" >&5
1063 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1064 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1065 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1066 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1067 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1068 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1069 echo "$ac_t""different" 1>&6
1070 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1072 echo "$ac_t""same" 1>&6
1074 ac_cv_host_system_type
="$host"
1075 ac_cv_build_system_type
="$build"
1076 ac_cv_target_system_type
="$target"
1079 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1080 if test "${enable_maintainer_mode+set}" = set; then
1081 enableval
="$enable_maintainer_mode"
1082 maint_mode
=$enableval
1087 if test x
"$maint_mode" = x
"yes"; then MAINT
=; else MAINT
='#'; fi
1089 # Extract the first word of "autoconf", so it can be a program name with args.
1090 set dummy autoconf
; ac_word
=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1098 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a path.
1101 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1102 for ac_dir
in $PATH; do
1103 test -z "$ac_dir" && ac_dir
=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_path_AUTOCONF
="$ac_dir/$ac_word"
1110 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF
="autoconf"
1114 AUTOCONF
="$ac_cv_path_AUTOCONF"
1115 if test -n "$AUTOCONF"; then
1116 echo "$ac_t""$AUTOCONF" 1>&6
1118 echo "$ac_t""no" 1>&6
1122 # Extract the first word of "autoheader", so it can be a program name with args.
1123 set dummy autoheader
; ac_word
=$2
1124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1125 echo "configure:1126: checking for $ac_word" >&5
1126 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 case "$AUTOHEADER" in
1131 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
1134 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1135 for ac_dir
in $PATH; do
1136 test -z "$ac_dir" && ac_dir
=.
1137 if test -f $ac_dir/$ac_word; then
1138 ac_cv_path_AUTOHEADER
="$ac_dir/$ac_word"
1143 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER
="autoheader"
1147 AUTOHEADER
="$ac_cv_path_AUTOHEADER"
1148 if test -n "$AUTOHEADER"; then
1149 echo "$ac_t""$AUTOHEADER" 1>&6
1151 echo "$ac_t""no" 1>&6
1158 # Config CPPFLAG settings for strange OS's that must be set
1159 # before other tests.
1162 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1164 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether ${CC-cc} accepts -Ae" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 echo 'void f(){}' > conftest.c
1170 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1171 ac_cv_prog_cc_Ae
=yes
1179 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1180 if test $ac_cv_prog_cc_Ae = yes; then
1181 CPPFLAGS
="$CPPFLAGS -Ae"
1184 # Defines needed for HPUX support.
1188 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1191 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1196 # AIX4.x doesn't even admit to having large
1197 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1200 echo "$ac_t""enabling large file support" 1>&6
1201 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1204 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1205 # to the existance of large files..
1206 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1207 # recommendations on large file support, however it makes the
1208 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1209 # recommendation makes the compile fail on gcc2.7. JRA.
1214 echo "$ac_t""enabling large file support" 1>&6
1215 if test "$ac_cv_prog_gcc" = yes; then
1216 ${CC-cc} -v >conftest.c
2>&1
1217 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1219 case "$ac_cv_gcc_compiler_version_number" in
1220 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1221 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1224 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1228 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1234 # Tests needed for SINIX large file support.
1237 if test $host = mips-sni-sysv4
; then
1238 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1239 echo "configure:1240: checking for LFS support" >&5
1240 old_CPPFLAGS
="$CPPFLAGS"
1241 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1242 if test "$cross_compiling" = yes; then
1243 SINIX_LFS_SUPPORT
=cross
1245 cat > conftest.
$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1251 #if _LFS64_LARGEFILE == 1
1258 if { (eval echo configure
:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1260 SINIX_LFS_SUPPORT
=yes
1262 echo "configure: failed program was:" >&5
1263 cat conftest.
$ac_ext >&5
1265 SINIX_LFS_SUPPORT
=no
1270 CPPFLAGS
="$old_CPPFLAGS"
1271 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1272 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1273 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1274 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1275 LIBS
="`getconf LFS64_LIBS` $LIBS"
1277 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1282 # Tests needed for glibc 2.1 large file support.
1285 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1286 echo "configure:1287: checking for LFS support" >&5
1287 old_CPPFLAGS
="$CPPFLAGS"
1288 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1289 if test "$cross_compiling" = yes; then
1290 GLIBC_LFS_SUPPORT
=cross
1292 cat > conftest.
$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1298 #if _LFS64_LARGEFILE == 1
1305 if { (eval echo configure
:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1307 GLIBC_LFS_SUPPORT
=yes
1309 echo "configure: failed program was:" >&5
1310 cat conftest.
$ac_ext >&5
1312 GLIBC_LFS_SUPPORT
=no
1317 CPPFLAGS
="$old_CPPFLAGS"
1318 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1319 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1321 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1326 echo $ac_n "checking for inline""... $ac_c" 1>&6
1327 echo "configure:1328: checking for inline" >&5
1328 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1332 for ac_kw
in inline __inline__ __inline
; do
1333 cat > conftest.
$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1341 if { (eval echo configure
:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1343 ac_cv_c_inline
=$ac_kw; break
1345 echo "configure: failed program was:" >&5
1346 cat conftest.
$ac_ext >&5
1353 echo "$ac_t""$ac_cv_c_inline" 1>&6
1354 case "$ac_cv_c_inline" in
1356 no
) cat >> confdefs.h
<<\EOF
1360 *) cat >> confdefs.h
<<EOF
1361 #define inline $ac_cv_c_inline
1366 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1367 echo "configure:1368: checking how to run the C preprocessor" >&5
1368 # On Suns, sometimes $CPP names a directory.
1369 if test -n "$CPP" && test -d "$CPP"; then
1372 if test -z "$CPP"; then
1373 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 # This must be in double quotes, not single quotes, because CPP may get
1377 # substituted into the Makefile and "${CC-cc}" will confuse make.
1379 # On the NeXT, cc -E runs the code through the compiler's parser,
1380 # not just through cpp.
1381 cat > conftest.
$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1387 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure
:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err
=`grep -v '^ *+' conftest.out`
1390 if test -z "$ac_err"; then
1394 echo "configure: failed program was:" >&5
1395 cat conftest.
$ac_ext >&5
1397 CPP
="${CC-cc} -E -traditional-cpp"
1398 cat > conftest.
$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1404 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1405 { (eval echo configure
:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1406 ac_err
=`grep -v '^ *+' conftest.out`
1407 if test -z "$ac_err"; then
1411 echo "configure: failed program was:" >&5
1412 cat conftest.
$ac_ext >&5
1419 ac_cv_prog_CPP
="$CPP"
1421 CPP
="$ac_cv_prog_CPP"
1423 ac_cv_prog_CPP
="$CPP"
1425 echo "$ac_t""$CPP" 1>&6
1427 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1428 echo "configure:1429: checking for ANSI C header files" >&5
1429 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1440 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1441 { (eval echo configure
:1442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1442 ac_err
=`grep -v '^ *+' conftest.out`
1443 if test -z "$ac_err"; then
1445 ac_cv_header_stdc
=yes
1448 echo "configure: failed program was:" >&5
1449 cat conftest.
$ac_ext >&5
1451 ac_cv_header_stdc
=no
1455 if test $ac_cv_header_stdc = yes; then
1456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1457 cat > conftest.
$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1463 egrep "memchr" >/dev
/null
2>&1; then
1467 ac_cv_header_stdc
=no
1473 if test $ac_cv_header_stdc = yes; then
1474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1475 cat > conftest.
$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1481 egrep "free" >/dev
/null
2>&1; then
1485 ac_cv_header_stdc
=no
1491 if test $ac_cv_header_stdc = yes; then
1492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1493 if test "$cross_compiling" = yes; then
1496 cat > conftest.
$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1500 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1501 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1503 int main () { int i; for (i = 0; i < 256; i++)
1504 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1508 if { (eval echo configure
:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1512 echo "configure: failed program was:" >&5
1513 cat conftest.
$ac_ext >&5
1515 ac_cv_header_stdc
=no
1523 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1524 if test $ac_cv_header_stdc = yes; then
1525 cat >> confdefs.h
<<\EOF
1526 #define STDC_HEADERS 1
1532 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1534 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1535 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_hdr that defines DIR" >&5
1537 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 cat > conftest.
$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1543 #include <sys/types.h>
1549 if { (eval echo configure
:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1551 eval "ac_cv_header_dirent_$ac_safe=yes"
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 eval "ac_cv_header_dirent_$ac_safe=no"
1560 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1561 echo "$ac_t""yes" 1>&6
1562 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1563 cat >> confdefs.h
<<EOF
1564 #define $ac_tr_hdr 1
1566 ac_header_dirent
=$ac_hdr; break
1568 echo "$ac_t""no" 1>&6
1571 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1572 if test $ac_header_dirent = dirent.h
; then
1573 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1574 echo "configure:1575: checking for opendir in -ldir" >&5
1575 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 ac_save_LIBS
="$LIBS"
1581 cat > conftest.
$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1584 /* Override any gcc2 internal prototype to avoid an error. */
1585 /* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1593 if { (eval echo configure
:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1595 eval "ac_cv_lib_$ac_lib_var=yes"
1597 echo "configure: failed program was:" >&5
1598 cat conftest.
$ac_ext >&5
1600 eval "ac_cv_lib_$ac_lib_var=no"
1603 LIBS
="$ac_save_LIBS"
1606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1610 echo "$ac_t""no" 1>&6
1614 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1615 echo "configure:1616: checking for opendir in -lx" >&5
1616 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 ac_save_LIBS
="$LIBS"
1622 cat > conftest.
$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* Override any gcc2 internal prototype to avoid an error. */
1626 /* We use char because int might match the return type of a gcc2
1627 builtin and then its argument prototype would still apply. */
1634 if { (eval echo configure
:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1636 eval "ac_cv_lib_$ac_lib_var=yes"
1638 echo "configure: failed program was:" >&5
1639 cat conftest.
$ac_ext >&5
1641 eval "ac_cv_lib_$ac_lib_var=no"
1644 LIBS
="$ac_save_LIBS"
1647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1651 echo "$ac_t""no" 1>&6
1656 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1657 echo "configure:1658: checking whether time.h and sys/time.h may both be included" >&5
1658 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 cat > conftest.
$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 #include <sys/types.h>
1665 #include <sys/time.h>
1671 if { (eval echo configure
:1672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1673 ac_cv_header_time
=yes
1675 echo "configure: failed program was:" >&5
1676 cat conftest.
$ac_ext >&5
1678 ac_cv_header_time
=no
1683 echo "$ac_t""$ac_cv_header_time" 1>&6
1684 if test $ac_cv_header_time = yes; then
1685 cat >> confdefs.h
<<\EOF
1686 #define TIME_WITH_SYS_TIME 1
1691 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1692 echo "configure:1693: checking for sys/wait.h that is POSIX.1 compatible" >&5
1693 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 cat > conftest.
$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 #include <sys/types.h>
1700 #include <sys/wait.h>
1702 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1705 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1710 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1713 if { (eval echo configure
:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1715 ac_cv_header_sys_wait_h
=yes
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1720 ac_cv_header_sys_wait_h
=no
1725 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1726 if test $ac_cv_header_sys_wait_h = yes; then
1727 cat >> confdefs.h
<<\EOF
1728 #define HAVE_SYS_WAIT_H 1
1733 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_hdr" >&5
1738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.
$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1747 { (eval echo configure
:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1748 ac_err
=`grep -v '^ *+' conftest.out`
1749 if test -z "$ac_err"; then
1751 eval "ac_cv_header_$ac_safe=yes"
1754 echo "configure: failed program was:" >&5
1755 cat conftest.
$ac_ext >&5
1757 eval "ac_cv_header_$ac_safe=no"
1761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1764 cat >> confdefs.h
<<EOF
1765 #define $ac_tr_hdr 1
1769 echo "$ac_t""no" 1>&6
1773 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
1775 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_hdr" >&5
1778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 cat > conftest.
$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1787 { (eval echo configure
:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1788 ac_err
=`grep -v '^ *+' conftest.out`
1789 if test -z "$ac_err"; then
1791 eval "ac_cv_header_$ac_safe=yes"
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 eval "ac_cv_header_$ac_safe=no"
1801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1803 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1804 cat >> confdefs.h
<<EOF
1805 #define $ac_tr_hdr 1
1809 echo "$ac_t""no" 1>&6
1813 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
1815 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $ac_hdr" >&5
1818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1827 { (eval echo configure
:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1828 ac_err
=`grep -v '^ *+' conftest.out`
1829 if test -z "$ac_err"; then
1831 eval "ac_cv_header_$ac_safe=yes"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.
$ac_ext >&5
1837 eval "ac_cv_header_$ac_safe=no"
1841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1842 echo "$ac_t""yes" 1>&6
1843 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1844 cat >> confdefs.h
<<EOF
1845 #define $ac_tr_hdr 1
1849 echo "$ac_t""no" 1>&6
1853 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
1855 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_hdr" >&5
1858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 cat > conftest.
$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1866 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure
:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err
=`grep -v '^ *+' conftest.out`
1869 if test -z "$ac_err"; then
1871 eval "ac_cv_header_$ac_safe=yes"
1874 echo "configure: failed program was:" >&5
1875 cat conftest.
$ac_ext >&5
1877 eval "ac_cv_header_$ac_safe=no"
1881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1883 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1884 cat >> confdefs.h
<<EOF
1885 #define $ac_tr_hdr 1
1889 echo "$ac_t""no" 1>&6
1893 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
1895 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1897 echo "configure:1898: checking for $ac_hdr" >&5
1898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 cat > conftest.
$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1907 { (eval echo configure
:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1908 ac_err
=`grep -v '^ *+' conftest.out`
1909 if test -z "$ac_err"; then
1911 eval "ac_cv_header_$ac_safe=yes"
1914 echo "configure: failed program was:" >&5
1915 cat conftest.
$ac_ext >&5
1917 eval "ac_cv_header_$ac_safe=no"
1921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1922 echo "$ac_t""yes" 1>&6
1923 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1924 cat >> confdefs.h
<<EOF
1925 #define $ac_tr_hdr 1
1929 echo "$ac_t""no" 1>&6
1933 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
1935 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1937 echo "configure:1938: checking for $ac_hdr" >&5
1938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 cat > conftest.
$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1946 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1947 { (eval echo configure
:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1948 ac_err
=`grep -v '^ *+' conftest.out`
1949 if test -z "$ac_err"; then
1951 eval "ac_cv_header_$ac_safe=yes"
1954 echo "configure: failed program was:" >&5
1955 cat conftest.
$ac_ext >&5
1957 eval "ac_cv_header_$ac_safe=no"
1961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1962 echo "$ac_t""yes" 1>&6
1963 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1964 cat >> confdefs.h
<<EOF
1965 #define $ac_tr_hdr 1
1969 echo "$ac_t""no" 1>&6
1973 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
1975 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_hdr" >&5
1978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 cat > conftest.
$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1986 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1987 { (eval echo configure
:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1988 ac_err
=`grep -v '^ *+' conftest.out`
1989 if test -z "$ac_err"; then
1991 eval "ac_cv_header_$ac_safe=yes"
1994 echo "configure: failed program was:" >&5
1995 cat conftest.
$ac_ext >&5
1997 eval "ac_cv_header_$ac_safe=no"
2001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2002 echo "$ac_t""yes" 1>&6
2003 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2004 cat >> confdefs.h
<<EOF
2005 #define $ac_tr_hdr 1
2009 echo "$ac_t""no" 1>&6
2014 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2015 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2019 cat > conftest.
$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2027 if { (eval echo configure
:2028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2029 ac_cv_header_shadow_h
=yes
2031 echo "configure: failed program was:" >&5
2032 cat conftest.
$ac_ext >&5
2034 ac_cv_header_shadow_h
=no
2037 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2038 cat >> confdefs.h
<<\EOF
2039 #define HAVE_SHADOW_H 1
2045 for ac_hdr
in shadow.h netinet
/tcp.h sys
/security.h security
/pam_appl.h
2047 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2049 echo "configure:2050: checking for $ac_hdr" >&5
2050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.
$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2058 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2059 { (eval echo configure
:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2060 ac_err
=`grep -v '^ *+' conftest.out`
2061 if test -z "$ac_err"; then
2063 eval "ac_cv_header_$ac_safe=yes"
2066 echo "configure: failed program was:" >&5
2067 cat conftest.
$ac_ext >&5
2069 eval "ac_cv_header_$ac_safe=no"
2073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2076 cat >> confdefs.h
<<EOF
2077 #define $ac_tr_hdr 1
2081 echo "$ac_t""no" 1>&6
2085 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2087 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2089 echo "configure:2090: checking for $ac_hdr" >&5
2090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 cat > conftest.
$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2098 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2099 { (eval echo configure
:2100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2100 ac_err
=`grep -v '^ *+' conftest.out`
2101 if test -z "$ac_err"; then
2103 eval "ac_cv_header_$ac_safe=yes"
2106 echo "configure: failed program was:" >&5
2107 cat conftest.
$ac_ext >&5
2109 eval "ac_cv_header_$ac_safe=no"
2113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2114 echo "$ac_t""yes" 1>&6
2115 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2116 cat >> confdefs.h
<<EOF
2117 #define $ac_tr_hdr 1
2121 echo "$ac_t""no" 1>&6
2125 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2127 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_hdr" >&5
2130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.
$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2138 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2139 { (eval echo configure
:2140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2140 ac_err
=`grep -v '^ *+' conftest.out`
2141 if test -z "$ac_err"; then
2143 eval "ac_cv_header_$ac_safe=yes"
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 eval "ac_cv_header_$ac_safe=no"
2153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2156 cat >> confdefs.h
<<EOF
2157 #define $ac_tr_hdr 1
2161 echo "$ac_t""no" 1>&6
2165 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2167 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_hdr" >&5
2170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2178 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure
:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err
=`grep -v '^ *+' conftest.out`
2181 if test -z "$ac_err"; then
2183 eval "ac_cv_header_$ac_safe=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.
$ac_ext >&5
2189 eval "ac_cv_header_$ac_safe=no"
2193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2194 echo "$ac_t""yes" 1>&6
2195 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2196 cat >> confdefs.h
<<EOF
2197 #define $ac_tr_hdr 1
2201 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking size of int""... $ac_c" 1>&6
2207 echo "configure:2208: checking size of int" >&5
2208 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 if test "$cross_compiling" = yes; then
2212 ac_cv_sizeof_int
=cross
2214 cat > conftest.
$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2220 FILE *f=fopen("conftestval", "w");
2222 fprintf(f, "%d\n", sizeof(int));
2226 if { (eval echo configure
:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2228 ac_cv_sizeof_int
=`cat conftestval`
2230 echo "configure: failed program was:" >&5
2231 cat conftest.
$ac_ext >&5
2239 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2240 cat >> confdefs.h
<<EOF
2241 #define SIZEOF_INT $ac_cv_sizeof_int
2245 echo $ac_n "checking size of long""... $ac_c" 1>&6
2246 echo "configure:2247: checking size of long" >&5
2247 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 if test "$cross_compiling" = yes; then
2251 ac_cv_sizeof_long
=cross
2253 cat > conftest.
$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2259 FILE *f=fopen("conftestval", "w");
2261 fprintf(f, "%d\n", sizeof(long));
2265 if { (eval echo configure
:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2267 ac_cv_sizeof_long
=`cat conftestval`
2269 echo "configure: failed program was:" >&5
2270 cat conftest.
$ac_ext >&5
2278 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2279 cat >> confdefs.h
<<EOF
2280 #define SIZEOF_LONG $ac_cv_sizeof_long
2284 echo $ac_n "checking size of short""... $ac_c" 1>&6
2285 echo "configure:2286: checking size of short" >&5
2286 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 if test "$cross_compiling" = yes; then
2290 ac_cv_sizeof_short
=cross
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2298 FILE *f=fopen("conftestval", "w");
2300 fprintf(f, "%d\n", sizeof(short));
2304 if { (eval echo configure
:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2306 ac_cv_sizeof_short
=`cat conftestval`
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2311 ac_cv_sizeof_short
=0
2317 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2318 cat >> confdefs.h
<<EOF
2319 #define SIZEOF_SHORT $ac_cv_sizeof_short
2324 echo $ac_n "checking for working const""... $ac_c" 1>&6
2325 echo "configure:2326: checking for working const" >&5
2326 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.
$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2335 /* Ultrix mips cc rejects this. */
2336 typedef int charset[2]; const charset x;
2337 /* SunOS 4.1.1 cc rejects this. */
2338 char const *const *ccp;
2340 /* NEC SVR4.0.2 mips cc rejects this. */
2341 struct point {int x, y;};
2342 static struct point const zero = {0,0};
2343 /* AIX XL C 1.02.0.0 rejects this.
2344 It does not let you subtract one const X* pointer from another in an arm
2345 of an if-expression whose if-part is not a constant expression */
2346 const char *g = "string";
2347 ccp = &g + (g ? g-g : 0);
2348 /* HPUX 7.0 cc rejects these. */
2351 ccp = (char const *const *) p;
2352 { /* SCO 3.2v4 cc rejects this. */
2354 char const *s = 0 ? (char *) 0 : (char const *) 0;
2358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2360 const int *foo = &x[0];
2363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2364 typedef const int *iptr;
2368 { /* AIX XL C 1.02.0.0 rejects this saying
2369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2370 struct s { int j; const int *ap[3]; };
2371 struct s *b; b->j = 5;
2373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2379 if { (eval echo configure
:2380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2383 echo "configure: failed program was:" >&5
2384 cat conftest.
$ac_ext >&5
2391 echo "$ac_t""$ac_cv_c_const" 1>&6
2392 if test $ac_cv_c_const = no
; then
2393 cat >> confdefs.h
<<\EOF
2399 echo $ac_n "checking for inline""... $ac_c" 1>&6
2400 echo "configure:2401: checking for inline" >&5
2401 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2405 for ac_kw
in inline __inline__ __inline
; do
2406 cat > conftest.
$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2414 if { (eval echo configure
:2415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2416 ac_cv_c_inline
=$ac_kw; break
2418 echo "configure: failed program was:" >&5
2419 cat conftest.
$ac_ext >&5
2426 echo "$ac_t""$ac_cv_c_inline" 1>&6
2427 case "$ac_cv_c_inline" in
2429 no
) cat >> confdefs.h
<<\EOF
2433 *) cat >> confdefs.h
<<EOF
2434 #define inline $ac_cv_c_inline
2439 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2440 echo "configure:2441: checking whether byte ordering is bigendian" >&5
2441 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 ac_cv_c_bigendian
=unknown
2445 # See if sys/param.h defines the BYTE_ORDER macro.
2446 cat > conftest.
$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 #include <sys/types.h>
2450 #include <sys/param.h>
2453 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2458 if { (eval echo configure
:2459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2460 # It does; now see whether it defined to BIG_ENDIAN or not.
2461 cat > conftest.
$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 #include <sys/types.h>
2465 #include <sys/param.h>
2468 #if BYTE_ORDER != BIG_ENDIAN
2473 if { (eval echo configure
:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2475 ac_cv_c_bigendian
=yes
2477 echo "configure: failed program was:" >&5
2478 cat conftest.
$ac_ext >&5
2480 ac_cv_c_bigendian
=no
2484 echo "configure: failed program was:" >&5
2485 cat conftest.
$ac_ext >&5
2488 if test $ac_cv_c_bigendian = unknown
; then
2489 if test "$cross_compiling" = yes; then
2490 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2492 cat > conftest.
$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2496 /* Are we little or big endian? From Harbison&Steele. */
2500 char c[sizeof (long)];
2503 exit (u.c[sizeof (long) - 1] == 1);
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2508 ac_cv_c_bigendian
=no
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 ac_cv_c_bigendian
=yes
2521 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2522 if test $ac_cv_c_bigendian = yes; then
2523 cat >> confdefs.h
<<\EOF
2524 #define WORDS_BIGENDIAN 1
2529 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2530 echo "configure:2531: checking whether char is unsigned" >&5
2531 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 if test "$GCC" = yes; then
2535 # GCC predefines this symbol on systems where it applies.
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 #ifdef __CHAR_UNSIGNED__
2544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2545 egrep "yes" >/dev
/null
2>&1; then
2547 ac_cv_c_char_unsigned
=yes
2550 ac_cv_c_char_unsigned
=no
2555 if test "$cross_compiling" = yes; then
2556 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2558 cat > conftest.
$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2562 #if !defined(__STDC__) || __STDC__ != 1
2566 volatile char c = 255; exit(c < 0);
2569 if { (eval echo configure
:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2571 ac_cv_c_char_unsigned
=yes
2573 echo "configure: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2576 ac_cv_c_char_unsigned
=no
2584 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2585 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2586 cat >> confdefs.h
<<\EOF
2587 #define __CHAR_UNSIGNED__ 1
2593 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2594 echo "configure:2595: checking return type of signal handlers" >&5
2595 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.
$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 #include <sys/types.h>
2607 extern "C" void (*signal (int, void (*)(int)))(int);
2609 void (*signal ()) ();
2616 if { (eval echo configure
:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2618 ac_cv_type_signal
=void
2620 echo "configure: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2623 ac_cv_type_signal
=int
2628 echo "$ac_t""$ac_cv_type_signal" 1>&6
2629 cat >> confdefs.h
<<EOF
2630 #define RETSIGTYPE $ac_cv_type_signal
2634 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2635 echo "configure:2636: checking for uid_t in sys/types.h" >&5
2636 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 cat > conftest.
$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642 #include <sys/types.h>
2644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2645 egrep "uid_t" >/dev
/null
2>&1; then
2647 ac_cv_type_uid_t
=yes
2656 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2657 if test $ac_cv_type_uid_t = no
; then
2658 cat >> confdefs.h
<<\EOF
2662 cat >> confdefs.h
<<\EOF
2668 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2669 echo "configure:2670: checking for mode_t" >&5
2670 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.
$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <sys/types.h>
2682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2683 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2685 ac_cv_type_mode_t
=yes
2688 ac_cv_type_mode_t
=no
2693 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2694 if test $ac_cv_type_mode_t = no
; then
2695 cat >> confdefs.h
<<\EOF
2701 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2702 echo "configure:2703: checking for off_t" >&5
2703 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.
$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 #include <sys/types.h>
2715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2716 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2718 ac_cv_type_off_t
=yes
2726 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2727 if test $ac_cv_type_off_t = no
; then
2728 cat >> confdefs.h
<<\EOF
2734 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2735 echo "configure:2736: checking for size_t" >&5
2736 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.
$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <sys/types.h>
2748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2749 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2751 ac_cv_type_size_t
=yes
2754 ac_cv_type_size_t
=no
2759 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2760 if test $ac_cv_type_size_t = no
; then
2761 cat >> confdefs.h
<<\EOF
2762 #define size_t unsigned
2767 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2768 echo "configure:2769: checking for pid_t" >&5
2769 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 cat > conftest.
$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <sys/types.h>
2781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2784 ac_cv_type_pid_t
=yes
2792 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2793 if test $ac_cv_type_pid_t = no
; then
2794 cat >> confdefs.h
<<\EOF
2800 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2801 echo "configure:2802: checking for st_rdev in struct stat" >&5
2802 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 cat > conftest.
$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <sys/types.h>
2809 #include <sys/stat.h>
2811 struct stat s; s.st_rdev;
2814 if { (eval echo configure
:2815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2816 ac_cv_struct_st_rdev
=yes
2818 echo "configure: failed program was:" >&5
2819 cat conftest.
$ac_ext >&5
2821 ac_cv_struct_st_rdev
=no
2826 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2827 if test $ac_cv_struct_st_rdev = yes; then
2828 cat >> confdefs.h
<<\EOF
2829 #define HAVE_ST_RDEV 1
2834 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2835 echo "configure:2836: checking for d_off in dirent" >&5
2836 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.
$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2844 #include <sys/types.h>
2847 struct dirent d; d.d_off;
2850 if { (eval echo configure
:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2852 ac_cv_dirent_d_off
=yes
2854 echo "configure: failed program was:" >&5
2855 cat conftest.
$ac_ext >&5
2857 ac_cv_dirent_d_off
=no
2862 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2863 if test $ac_cv_dirent_d_off = yes; then
2864 cat >> confdefs.h
<<\EOF
2865 #define HAVE_DIRENT_D_OFF 1
2870 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2871 echo "configure:2872: checking for ino_t" >&5
2872 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 cat > conftest.
$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 #include <sys/types.h>
2884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2885 egrep "ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2887 ac_cv_type_ino_t
=yes
2895 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2896 if test $ac_cv_type_ino_t = no
; then
2897 cat >> confdefs.h
<<\EOF
2898 #define ino_t unsigned
2903 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2904 echo "configure:2905: checking for loff_t" >&5
2905 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include <sys/types.h>
2917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2918 egrep "loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2920 ac_cv_type_loff_t
=yes
2923 ac_cv_type_loff_t
=no
2928 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2929 if test $ac_cv_type_loff_t = no
; then
2930 cat >> confdefs.h
<<\EOF
2931 #define loff_t off_t
2936 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2937 echo "configure:2938: checking for offset_t" >&5
2938 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #include <sys/types.h>
2950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2951 egrep "offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2953 ac_cv_type_offset_t
=yes
2956 ac_cv_type_offset_t
=no
2961 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2962 if test $ac_cv_type_offset_t = no
; then
2963 cat >> confdefs.h
<<\EOF
2964 #define offset_t loff_t
2969 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2970 echo "configure:2971: checking for ssize_t" >&5
2971 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 #include <sys/types.h>
2983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2984 egrep "ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2986 ac_cv_type_ssize_t
=yes
2989 ac_cv_type_ssize_t
=no
2994 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2995 if test $ac_cv_type_ssize_t = no
; then
2996 cat >> confdefs.h
<<\EOF
3003 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3004 echo "configure:3005: checking for sig_atomic_t type" >&5
3005 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.
$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3013 #include <sys/types.h>
3023 if { (eval echo configure
:3024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3025 samba_cv_sig_atomic_t
=yes
3027 echo "configure: failed program was:" >&5
3028 cat conftest.
$ac_ext >&5
3030 samba_cv_sig_atomic_t
=no
3035 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3036 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3037 cat >> confdefs.h
<<\EOF
3038 #define HAVE_SIG_ATOMIC_T_TYPE 1
3043 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3044 echo "configure:3045: checking for errno in errno.h" >&5
3045 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3049 cat > conftest.
$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3057 if { (eval echo configure
:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3061 echo "configure: failed program was:" >&5
3062 cat conftest.
$ac_ext >&5
3064 samba_cv_have_errno
=no
3069 echo "$ac_t""$samba_cv_errno" 1>&6
3070 if test x
"$samba_cv_errno" = x
"yes"; then
3071 cat >> confdefs.h
<<\EOF
3072 #define HAVE_ERRNO_DECL 1
3077 # stupid glibc has the functions but no declaration. grrrr.
3078 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3079 echo "configure:3080: checking for setresuid declaration" >&5
3080 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.
$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3089 int i = (int)setresuid
3092 if { (eval echo configure
:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3094 samba_cv_have_setresuid_decl
=yes
3096 echo "configure: failed program was:" >&5
3097 cat conftest.
$ac_ext >&5
3099 samba_cv_have_setresuid_decl
=no
3104 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3105 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3106 cat >> confdefs.h
<<\EOF
3107 #define HAVE_SETRESUID_DECL 1
3112 # stupid glibc has the functions but no declaration. grrrr.
3113 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3114 echo "configure:3115: checking for setresgid declaration" >&5
3115 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3119 cat > conftest.
$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3124 int i = (int)setresgid
3127 if { (eval echo configure
:3128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3129 samba_cv_have_setresgid_decl
=yes
3131 echo "configure: failed program was:" >&5
3132 cat conftest.
$ac_ext >&5
3134 samba_cv_have_setresgid_decl
=no
3139 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3140 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3141 cat >> confdefs.h
<<\EOF
3142 #define HAVE_SETRESGID_DECL 1
3147 # stupid glibc has the functions but no declaration. grrrr.
3148 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
3149 echo "configure:3150: checking for crypt declaration" >&5
3150 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.
$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3162 if { (eval echo configure
:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 samba_cv_have_crypt_decl
=yes
3166 echo "configure: failed program was:" >&5
3167 cat conftest.
$ac_ext >&5
3169 samba_cv_have_crypt_decl
=no
3174 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
3175 if test x
"$samba_cv_have_crypt_decl" = x
"yes"; then
3176 cat >> confdefs.h
<<\EOF
3177 #define HAVE_CRYPT_DECL 1
3182 # and glibc has setresuid under linux but the function does
3183 # nothing until kernel 2.1.44! very dumb.
3184 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3185 echo "configure:3186: checking for real setresuid" >&5
3186 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3190 if test "$cross_compiling" = yes; then
3191 samba_cv_have_setresuid
=cross
3193 cat > conftest.
$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3197 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3199 if { (eval echo configure
:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3201 samba_cv_have_setresuid
=yes
3203 echo "configure: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3206 samba_cv_have_setresuid
=no
3213 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3214 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3215 cat >> confdefs.h
<<\EOF
3216 #define HAVE_SETRESUID 1
3221 # Do the same check for setresguid...
3223 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3224 echo "configure:3225: checking for real setresgid" >&5
3225 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3229 if test "$cross_compiling" = yes; then
3230 samba_cv_have_setresgid
=cross
3232 cat > conftest.
$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3237 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3239 if { (eval echo configure
:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3241 samba_cv_have_setresgid
=yes
3243 echo "configure: failed program was:" >&5
3244 cat conftest.
$ac_ext >&5
3246 samba_cv_have_setresgid
=no
3253 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3254 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
3255 cat >> confdefs.h
<<\EOF
3256 #define HAVE_SETRESGID 1
3261 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3262 echo "configure:3263: checking for 8-bit clean memcmp" >&5
3263 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 if test "$cross_compiling" = yes; then
3267 ac_cv_func_memcmp_clean
=no
3269 cat > conftest.
$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3275 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3276 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3280 if { (eval echo configure
:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3282 ac_cv_func_memcmp_clean
=yes
3284 echo "configure: failed program was:" >&5
3285 cat conftest.
$ac_ext >&5
3287 ac_cv_func_memcmp_clean
=no
3294 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3295 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.o"
3298 ###############################################
3299 # test for where we get crypt() from
3300 for ac_func
in crypt
3302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_func" >&5
3304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 /* System header to define __stub macros and hopefully few prototypes,
3311 which can conflict with char $ac_func(); below. */
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3320 /* The GNU C library defines this for functions which it implements
3321 to always fail with ENOSYS. Some functions are actually named
3322 something starting with __ and the normal name is an alias. */
3323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3331 if { (eval echo configure
:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3333 eval "ac_cv_func_$ac_func=yes"
3335 echo "configure: failed program was:" >&5
3336 cat conftest.
$ac_ext >&5
3338 eval "ac_cv_func_$ac_func=no"
3343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3346 cat >> confdefs.h
<<EOF
3347 #define $ac_tr_func 1
3351 echo "$ac_t""no" 1>&6
3355 if test x
"$ac_cv_func_crypt" = x
"no"; then
3356 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3357 echo "configure:3358: checking for crypt in -lcrypt" >&5
3358 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 ac_save_LIBS
="$LIBS"
3363 LIBS
="-lcrypt $LIBS"
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* Override any gcc2 internal prototype to avoid an error. */
3368 /* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3376 if { (eval echo configure
:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3378 eval "ac_cv_lib_$ac_lib_var=yes"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.
$ac_ext >&5
3383 eval "ac_cv_lib_$ac_lib_var=no"
3386 LIBS
="$ac_save_LIBS"
3389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3390 echo "$ac_t""yes" 1>&6
3391 LIBS
="$LIBS -lcrypt";
3392 cat >> confdefs.h
<<\EOF
3393 #define HAVE_CRYPT 1
3397 echo "$ac_t""no" 1>&6
3403 ###############################################
3404 # test for where we get pam_authenticate() from
3405 # might need libdl for this to work
3406 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3407 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3408 echo "configure:3409: checking for main in -ldl" >&5
3409 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
3410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 ac_save_LIBS
="$LIBS"
3415 cat > conftest.
$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3423 if { (eval echo configure
:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3425 eval "ac_cv_lib_$ac_lib_var=yes"
3427 echo "configure: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3430 eval "ac_cv_lib_$ac_lib_var=no"
3433 LIBS
="$ac_save_LIBS"
3436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3440 cat >> confdefs.h
<<EOF
3441 #define $ac_tr_lib 1
3447 echo "$ac_t""no" 1>&6
3451 for ac_func
in pam_authenticate
3453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3454 echo "configure:3455: checking for $ac_func" >&5
3455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 cat > conftest.
$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 /* System header to define __stub macros and hopefully few prototypes,
3462 which can conflict with char $ac_func(); below. */
3464 /* Override any gcc2 internal prototype to avoid an error. */
3465 /* We use char because int might match the return type of a gcc2
3466 builtin and then its argument prototype would still apply. */
3471 /* The GNU C library defines this for functions which it implements
3472 to always fail with ENOSYS. Some functions are actually named
3473 something starting with __ and the normal name is an alias. */
3474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3482 if { (eval echo configure
:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3484 eval "ac_cv_func_$ac_func=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.
$ac_ext >&5
3489 eval "ac_cv_func_$ac_func=no"
3494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3495 echo "$ac_t""yes" 1>&6
3496 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3497 cat >> confdefs.h
<<EOF
3498 #define $ac_tr_func 1
3502 echo "$ac_t""no" 1>&6
3506 if test x
"$ac_cv_func_pam_authenticate" = x
"no"; then
3507 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3508 echo "configure:3509: checking for pam_authenticate in -lpam" >&5
3509 ac_lib_var
=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 ac_save_LIBS
="$LIBS"
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 /* Override any gcc2 internal prototype to avoid an error. */
3519 /* We use char because int might match the return type of a gcc2
3520 builtin and then its argument prototype would still apply. */
3521 char pam_authenticate();
3527 if { (eval echo configure
:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3529 eval "ac_cv_lib_$ac_lib_var=yes"
3531 echo "configure: failed program was:" >&5
3532 cat conftest.
$ac_ext >&5
3534 eval "ac_cv_lib_$ac_lib_var=no"
3537 LIBS
="$ac_save_LIBS"
3540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3541 echo "$ac_t""yes" 1>&6
3543 cat >> confdefs.h
<<\EOF
3544 #define HAVE_PAM_AUTHENTICATE 1
3548 echo "$ac_t""no" 1>&6
3554 ###############################################
3555 # test for where we get readline() from
3556 if test "$ac_cv_header_readline_h" = "yes" ||
3557 test "$ac_cv_header_readline_readline_h" = "yes"; then
3558 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3559 echo "configure:3560: checking for readline in -lreadline" >&5
3560 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 ac_save_LIBS
="$LIBS"
3565 LIBS
="-lreadline $LIBS"
3566 cat > conftest.
$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 /* Override any gcc2 internal prototype to avoid an error. */
3570 /* We use char because int might match the return type of a gcc2
3571 builtin and then its argument prototype would still apply. */
3578 if { (eval echo configure
:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3580 eval "ac_cv_lib_$ac_lib_var=yes"
3582 echo "configure: failed program was:" >&5
3583 cat conftest.
$ac_ext >&5
3585 eval "ac_cv_lib_$ac_lib_var=no"
3588 LIBS
="$ac_save_LIBS"
3591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3594 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3595 cat >> confdefs.h
<<EOF
3596 #define $ac_tr_lib 1
3599 LIBS
="-lreadline $LIBS"
3602 echo "$ac_t""no" 1>&6
3608 # The following test taken from the cvs sources
3609 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3610 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3611 # libsocket.so which has a bad implementation of gethostbyname (it
3612 # only looks in /etc/hosts), so we only look for -lsocket if we need
3614 for ac_func
in connect
3616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3617 echo "configure:3618: checking for $ac_func" >&5
3618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* System header to define __stub macros and hopefully few prototypes,
3625 which can conflict with char $ac_func(); below. */
3627 /* Override any gcc2 internal prototype to avoid an error. */
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3634 /* The GNU C library defines this for functions which it implements
3635 to always fail with ENOSYS. Some functions are actually named
3636 something starting with __ and the normal name is an alias. */
3637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3645 if { (eval echo configure
:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3647 eval "ac_cv_func_$ac_func=yes"
3649 echo "configure: failed program was:" >&5
3650 cat conftest.
$ac_ext >&5
3652 eval "ac_cv_func_$ac_func=no"
3657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3660 cat >> confdefs.h
<<EOF
3661 #define $ac_tr_func 1
3665 echo "$ac_t""no" 1>&6
3669 if test x
"$ac_cv_func_connect" = x
"no"; then
3672 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3673 echo "configure:3674: checking for printf in -lnsl_s" >&5
3674 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_save_LIBS
="$LIBS"
3679 LIBS
="-lnsl_s $LIBS"
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3692 if { (eval echo configure
:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 eval "ac_cv_lib_$ac_lib_var=no"
3702 LIBS
="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3709 cat >> confdefs.h
<<EOF
3710 #define $ac_tr_lib 1
3713 LIBS
="-lnsl_s $LIBS"
3716 echo "$ac_t""no" 1>&6
3722 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3723 echo "configure:3724: checking for printf in -lnsl" >&5
3724 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 ac_save_LIBS
="$LIBS"
3730 cat > conftest.
$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3742 if { (eval echo configure
:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3744 eval "ac_cv_lib_$ac_lib_var=yes"
3746 echo "configure: failed program was:" >&5
3747 cat conftest.
$ac_ext >&5
3749 eval "ac_cv_lib_$ac_lib_var=no"
3752 LIBS
="$ac_save_LIBS"
3755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3759 cat >> confdefs.h
<<EOF
3760 #define $ac_tr_lib 1
3766 echo "$ac_t""no" 1>&6
3772 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3773 echo "configure:3774: checking for connect in -lsocket" >&5
3774 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 ac_save_LIBS
="$LIBS"
3779 LIBS
="-lsocket $LIBS"
3780 cat > conftest.
$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* Override any gcc2 internal prototype to avoid an error. */
3784 /* We use char because int might match the return type of a gcc2
3785 builtin and then its argument prototype would still apply. */
3792 if { (eval echo configure
:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3794 eval "ac_cv_lib_$ac_lib_var=yes"
3796 echo "configure: failed program was:" >&5
3797 cat conftest.
$ac_ext >&5
3799 eval "ac_cv_lib_$ac_lib_var=no"
3802 LIBS
="$ac_save_LIBS"
3805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3809 cat >> confdefs.h
<<EOF
3810 #define $ac_tr_lib 1
3813 LIBS
="-lsocket $LIBS"
3816 echo "$ac_t""no" 1>&6
3822 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3823 echo "configure:3824: checking for connect in -linet" >&5
3824 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 ac_save_LIBS
="$LIBS"
3830 cat > conftest.
$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3842 if { (eval echo configure
:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3844 eval "ac_cv_lib_$ac_lib_var=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.
$ac_ext >&5
3849 eval "ac_cv_lib_$ac_lib_var=no"
3852 LIBS
="$ac_save_LIBS"
3855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3859 cat >> confdefs.h
<<EOF
3860 #define $ac_tr_lib 1
3866 echo "$ac_t""no" 1>&6
3870 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
3871 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
3872 # ac_cv_func_connect=yes
3873 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3874 cat >> confdefs.h
<<\EOF
3875 #define HAVE_CONNECT 1
3881 # Check if we have execl, if not we need to compile smbrun.
3882 for ac_func
in execl
3884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3885 echo "configure:3886: checking for $ac_func" >&5
3886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.
$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* System header to define __stub macros and hopefully few prototypes,
3893 which can conflict with char $ac_func(); below. */
3895 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3902 /* The GNU C library defines this for functions which it implements
3903 to always fail with ENOSYS. Some functions are actually named
3904 something starting with __ and the normal name is an alias. */
3905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3913 if { (eval echo configure
:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3915 eval "ac_cv_func_$ac_func=yes"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3920 eval "ac_cv_func_$ac_func=no"
3925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3926 echo "$ac_t""yes" 1>&6
3927 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3928 cat >> confdefs.h
<<EOF
3929 #define $ac_tr_func 1
3933 echo "$ac_t""no" 1>&6
3937 if test x
"$ac_cv_func_execl" = x
"no"; then
3938 RUNPROG
="bin/smbrun"
3943 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
3945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3946 echo "configure:3947: checking for $ac_func" >&5
3947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.
$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 /* System header to define __stub macros and hopefully few prototypes,
3954 which can conflict with char $ac_func(); below. */
3956 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3963 /* The GNU C library defines this for functions which it implements
3964 to always fail with ENOSYS. Some functions are actually named
3965 something starting with __ and the normal name is an alias. */
3966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3974 if { (eval echo configure
:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3976 eval "ac_cv_func_$ac_func=yes"
3978 echo "configure: failed program was:" >&5
3979 cat conftest.
$ac_ext >&5
3981 eval "ac_cv_func_$ac_func=no"
3986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3989 cat >> confdefs.h
<<EOF
3990 #define $ac_tr_func 1
3994 echo "$ac_t""no" 1>&6
3998 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4001 echo "configure:4002: checking for $ac_func" >&5
4002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 cat > conftest.
$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 /* System header to define __stub macros and hopefully few prototypes,
4009 which can conflict with char $ac_func(); below. */
4011 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4018 /* The GNU C library defines this for functions which it implements
4019 to always fail with ENOSYS. Some functions are actually named
4020 something starting with __ and the normal name is an alias. */
4021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4029 if { (eval echo configure
:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4031 eval "ac_cv_func_$ac_func=yes"
4033 echo "configure: failed program was:" >&5
4034 cat conftest.
$ac_ext >&5
4036 eval "ac_cv_func_$ac_func=no"
4041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4042 echo "$ac_t""yes" 1>&6
4043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4044 cat >> confdefs.h
<<EOF
4045 #define $ac_tr_func 1
4049 echo "$ac_t""no" 1>&6
4053 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_func" >&5
4057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 /* System header to define __stub macros and hopefully few prototypes,
4064 which can conflict with char $ac_func(); below. */
4066 /* Override any gcc2 internal prototype to avoid an error. */
4067 /* We use char because int might match the return type of a gcc2
4068 builtin and then its argument prototype would still apply. */
4073 /* The GNU C library defines this for functions which it implements
4074 to always fail with ENOSYS. Some functions are actually named
4075 something starting with __ and the normal name is an alias. */
4076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4084 if { (eval echo configure
:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4086 eval "ac_cv_func_$ac_func=yes"
4088 echo "configure: failed program was:" >&5
4089 cat conftest.
$ac_ext >&5
4091 eval "ac_cv_func_$ac_func=no"
4096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4097 echo "$ac_t""yes" 1>&6
4098 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4099 cat >> confdefs.h
<<EOF
4100 #define $ac_tr_func 1
4104 echo "$ac_t""no" 1>&6
4108 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4111 echo "configure:4112: checking for $ac_func" >&5
4112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 cat > conftest.
$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 /* System header to define __stub macros and hopefully few prototypes,
4119 which can conflict with char $ac_func(); below. */
4121 /* Override any gcc2 internal prototype to avoid an error. */
4122 /* We use char because int might match the return type of a gcc2
4123 builtin and then its argument prototype would still apply. */
4128 /* The GNU C library defines this for functions which it implements
4129 to always fail with ENOSYS. Some functions are actually named
4130 something starting with __ and the normal name is an alias. */
4131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4139 if { (eval echo configure
:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4141 eval "ac_cv_func_$ac_func=yes"
4143 echo "configure: failed program was:" >&5
4144 cat conftest.
$ac_ext >&5
4146 eval "ac_cv_func_$ac_func=no"
4151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4152 echo "$ac_t""yes" 1>&6
4153 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4154 cat >> confdefs.h
<<EOF
4155 #define $ac_tr_func 1
4159 echo "$ac_t""no" 1>&6
4163 for ac_func
in initgroups
select rdchk getgrnam pathconf setreuid setregid seteuid setegid
4165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4166 echo "configure:4167: checking for $ac_func" >&5
4167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4170 cat > conftest.
$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* System header to define __stub macros and hopefully few prototypes,
4174 which can conflict with char $ac_func(); below. */
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4183 /* The GNU C library defines this for functions which it implements
4184 to always fail with ENOSYS. Some functions are actually named
4185 something starting with __ and the normal name is an alias. */
4186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4194 if { (eval echo configure
:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4196 eval "ac_cv_func_$ac_func=yes"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.
$ac_ext >&5
4201 eval "ac_cv_func_$ac_func=no"
4206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4209 cat >> confdefs.h
<<EOF
4210 #define $ac_tr_func 1
4214 echo "$ac_t""no" 1>&6
4218 for ac_func
in setpriv setgidx setuidx setgroups mktime rename ftruncate stat64 fstat64
4220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4221 echo "configure:4222: checking for $ac_func" >&5
4222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4225 cat > conftest.
$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* System header to define __stub macros and hopefully few prototypes,
4229 which can conflict with char $ac_func(); below. */
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4238 /* The GNU C library defines this for functions which it implements
4239 to always fail with ENOSYS. Some functions are actually named
4240 something starting with __ and the normal name is an alias. */
4241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4249 if { (eval echo configure
:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4251 eval "ac_cv_func_$ac_func=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.
$ac_ext >&5
4256 eval "ac_cv_func_$ac_func=no"
4261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4264 cat >> confdefs.h
<<EOF
4265 #define $ac_tr_func 1
4269 echo "$ac_t""no" 1>&6
4273 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_func" >&5
4277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.
$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* System header to define __stub macros and hopefully few prototypes,
4284 which can conflict with char $ac_func(); below. */
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4293 /* The GNU C library defines this for functions which it implements
4294 to always fail with ENOSYS. Some functions are actually named
4295 something starting with __ and the normal name is an alias. */
4296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4304 if { (eval echo configure
:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4306 eval "ac_cv_func_$ac_func=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.
$ac_ext >&5
4311 eval "ac_cv_func_$ac_func=no"
4316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4319 cat >> confdefs.h
<<EOF
4320 #define $ac_tr_func 1
4324 echo "$ac_t""no" 1>&6
4328 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4331 echo "configure:4332: checking for $ac_func" >&5
4332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 cat > conftest.
$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4338 /* System header to define __stub macros and hopefully few prototypes,
4339 which can conflict with char $ac_func(); below. */
4341 /* Override any gcc2 internal prototype to avoid an error. */
4342 /* We use char because int might match the return type of a gcc2
4343 builtin and then its argument prototype would still apply. */
4348 /* The GNU C library defines this for functions which it implements
4349 to always fail with ENOSYS. Some functions are actually named
4350 something starting with __ and the normal name is an alias. */
4351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4359 if { (eval echo configure
:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4361 eval "ac_cv_func_$ac_func=yes"
4363 echo "configure: failed program was:" >&5
4364 cat conftest.
$ac_ext >&5
4366 eval "ac_cv_func_$ac_func=no"
4371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4374 cat >> confdefs.h
<<EOF
4375 #define $ac_tr_func 1
4379 echo "$ac_t""no" 1>&6
4383 for ac_func
in srandom random srand rand setenv mmap64 strcasecmp
4385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_func" >&5
4387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 cat > conftest.
$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char $ac_func(); below. */
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4403 /* The GNU C library defines this for functions which it implements
4404 to always fail with ENOSYS. Some functions are actually named
4405 something starting with __ and the normal name is an alias. */
4406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4414 if { (eval echo configure
:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4416 eval "ac_cv_func_$ac_func=yes"
4418 echo "configure: failed program was:" >&5
4419 cat conftest.
$ac_ext >&5
4421 eval "ac_cv_func_$ac_func=no"
4426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4429 cat >> confdefs.h
<<EOF
4430 #define $ac_tr_func 1
4434 echo "$ac_t""no" 1>&6
4439 # syscall() is needed for smbwrapper.
4440 for ac_func
in syscall
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.
$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func(); below. */
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4471 if { (eval echo configure
:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4473 eval "ac_cv_func_$ac_func=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.
$ac_ext >&5
4478 eval "ac_cv_func_$ac_func=no"
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486 cat >> confdefs.h
<<EOF
4487 #define $ac_tr_func 1
4491 echo "$ac_t""no" 1>&6
4496 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4499 echo "configure:4500: checking for $ac_func" >&5
4500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4503 cat > conftest.
$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506 /* System header to define __stub macros and hopefully few prototypes,
4507 which can conflict with char $ac_func(); below. */
4509 /* Override any gcc2 internal prototype to avoid an error. */
4510 /* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4516 /* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4527 if { (eval echo configure
:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4529 eval "ac_cv_func_$ac_func=yes"
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4534 eval "ac_cv_func_$ac_func=no"
4539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4542 cat >> confdefs.h
<<EOF
4543 #define $ac_tr_func 1
4547 echo "$ac_t""no" 1>&6
4551 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_func" >&5
4555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.
$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char $ac_func(); below. */
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4571 /* The GNU C library defines this for functions which it implements
4572 to always fail with ENOSYS. Some functions are actually named
4573 something starting with __ and the normal name is an alias. */
4574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4582 if { (eval echo configure
:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4584 eval "ac_cv_func_$ac_func=yes"
4586 echo "configure: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4589 eval "ac_cv_func_$ac_func=no"
4594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4596 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4597 cat >> confdefs.h
<<EOF
4598 #define $ac_tr_func 1
4602 echo "$ac_t""no" 1>&6
4606 for ac_func
in __getcwd _getcwd
4608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_func" >&5
4610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 cat > conftest.
$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 /* System header to define __stub macros and hopefully few prototypes,
4617 which can conflict with char $ac_func(); below. */
4619 /* Override any gcc2 internal prototype to avoid an error. */
4620 /* We use char because int might match the return type of a gcc2
4621 builtin and then its argument prototype would still apply. */
4626 /* The GNU C library defines this for functions which it implements
4627 to always fail with ENOSYS. Some functions are actually named
4628 something starting with __ and the normal name is an alias. */
4629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4637 if { (eval echo configure
:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4639 eval "ac_cv_func_$ac_func=yes"
4641 echo "configure: failed program was:" >&5
4642 cat conftest.
$ac_ext >&5
4644 eval "ac_cv_func_$ac_func=no"
4649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4652 cat >> confdefs.h
<<EOF
4653 #define $ac_tr_func 1
4657 echo "$ac_t""no" 1>&6
4661 for ac_func
in __xstat __fxstat __lxstat
4663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4664 echo "configure:4665: checking for $ac_func" >&5
4665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 cat > conftest.
$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 /* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char $ac_func(); below. */
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4692 if { (eval echo configure
:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4694 eval "ac_cv_func_$ac_func=yes"
4696 echo "configure: failed program was:" >&5
4697 cat conftest.
$ac_ext >&5
4699 eval "ac_cv_func_$ac_func=no"
4704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 cat >> confdefs.h
<<EOF
4708 #define $ac_tr_func 1
4712 echo "$ac_t""no" 1>&6
4716 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
4718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_func" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 cat > conftest.
$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727 which can conflict with char $ac_func(); below. */
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4747 if { (eval echo configure
:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4749 eval "ac_cv_func_$ac_func=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.
$ac_ext >&5
4754 eval "ac_cv_func_$ac_func=no"
4759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762 cat >> confdefs.h
<<EOF
4763 #define $ac_tr_func 1
4767 echo "$ac_t""no" 1>&6
4771 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
4773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_func" >&5
4775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.
$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 /* System header to define __stub macros and hopefully few prototypes,
4782 which can conflict with char $ac_func(); below. */
4784 /* Override any gcc2 internal prototype to avoid an error. */
4785 /* We use char because int might match the return type of a gcc2
4786 builtin and then its argument prototype would still apply. */
4791 /* The GNU C library defines this for functions which it implements
4792 to always fail with ENOSYS. Some functions are actually named
4793 something starting with __ and the normal name is an alias. */
4794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4802 if { (eval echo configure
:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4804 eval "ac_cv_func_$ac_func=yes"
4806 echo "configure: failed program was:" >&5
4807 cat conftest.
$ac_ext >&5
4809 eval "ac_cv_func_$ac_func=no"
4814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4817 cat >> confdefs.h
<<EOF
4818 #define $ac_tr_func 1
4822 echo "$ac_t""no" 1>&6
4826 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
4828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_func" >&5
4830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 cat > conftest.
$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* System header to define __stub macros and hopefully few prototypes,
4837 which can conflict with char $ac_func(); below. */
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4857 if { (eval echo configure
:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4859 eval "ac_cv_func_$ac_func=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.
$ac_ext >&5
4864 eval "ac_cv_func_$ac_func=no"
4869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4872 cat >> confdefs.h
<<EOF
4873 #define $ac_tr_func 1
4877 echo "$ac_t""no" 1>&6
4881 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
4883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_func" >&5
4885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 cat > conftest.
$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892 which can conflict with char $ac_func(); below. */
4894 /* Override any gcc2 internal prototype to avoid an error. */
4895 /* We use char because int might match the return type of a gcc2
4896 builtin and then its argument prototype would still apply. */
4901 /* The GNU C library defines this for functions which it implements
4902 to always fail with ENOSYS. Some functions are actually named
4903 something starting with __ and the normal name is an alias. */
4904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4912 if { (eval echo configure
:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4914 eval "ac_cv_func_$ac_func=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.
$ac_ext >&5
4919 eval "ac_cv_func_$ac_func=no"
4924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4927 cat >> confdefs.h
<<EOF
4928 #define $ac_tr_func 1
4932 echo "$ac_t""no" 1>&6
4936 for ac_func
in _write __write _fork __fork
4938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_func" >&5
4940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.
$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* System header to define __stub macros and hopefully few prototypes,
4947 which can conflict with char $ac_func(); below. */
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4956 /* The GNU C library defines this for functions which it implements
4957 to always fail with ENOSYS. Some functions are actually named
4958 something starting with __ and the normal name is an alias. */
4959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4967 if { (eval echo configure
:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4969 eval "ac_cv_func_$ac_func=yes"
4971 echo "configure: failed program was:" >&5
4972 cat conftest.
$ac_ext >&5
4974 eval "ac_cv_func_$ac_func=no"
4979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4982 cat >> confdefs.h
<<EOF
4983 #define $ac_tr_func 1
4987 echo "$ac_t""no" 1>&6
4991 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_func" >&5
4995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 cat > conftest.
$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002 which can conflict with char $ac_func(); below. */
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5011 /* The GNU C library defines this for functions which it implements
5012 to always fail with ENOSYS. Some functions are actually named
5013 something starting with __ and the normal name is an alias. */
5014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5022 if { (eval echo configure
:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5024 eval "ac_cv_func_$ac_func=yes"
5026 echo "configure: failed program was:" >&5
5027 cat conftest.
$ac_ext >&5
5029 eval "ac_cv_func_$ac_func=no"
5034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5035 echo "$ac_t""yes" 1>&6
5036 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5037 cat >> confdefs.h
<<EOF
5038 #define $ac_tr_func 1
5042 echo "$ac_t""no" 1>&6
5046 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5049 echo "configure:5050: checking for $ac_func" >&5
5050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 cat > conftest.
$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056 /* System header to define __stub macros and hopefully few prototypes,
5057 which can conflict with char $ac_func(); below. */
5059 /* Override any gcc2 internal prototype to avoid an error. */
5060 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5066 /* The GNU C library defines this for functions which it implements
5067 to always fail with ENOSYS. Some functions are actually named
5068 something starting with __ and the normal name is an alias. */
5069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5077 if { (eval echo configure
:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5079 eval "ac_cv_func_$ac_func=yes"
5081 echo "configure: failed program was:" >&5
5082 cat conftest.
$ac_ext >&5
5084 eval "ac_cv_func_$ac_func=no"
5089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5091 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5092 cat >> confdefs.h
<<EOF
5093 #define $ac_tr_func 1
5097 echo "$ac_t""no" 1>&6
5101 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
5103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5104 echo "configure:5105: checking for $ac_func" >&5
5105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6
5108 cat > conftest.
$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 /* System header to define __stub macros and hopefully few prototypes,
5112 which can conflict with char $ac_func(); below. */
5114 /* Override any gcc2 internal prototype to avoid an error. */
5115 /* We use char because int might match the return type of a gcc2
5116 builtin and then its argument prototype would still apply. */
5121 /* The GNU C library defines this for functions which it implements
5122 to always fail with ENOSYS. Some functions are actually named
5123 something starting with __ and the normal name is an alias. */
5124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5132 if { (eval echo configure
:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5134 eval "ac_cv_func_$ac_func=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.
$ac_ext >&5
5139 eval "ac_cv_func_$ac_func=no"
5144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5147 cat >> confdefs.h
<<EOF
5148 #define $ac_tr_func 1
5152 echo "$ac_t""no" 1>&6
5156 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5159 echo "configure:5160: checking for $ac_func" >&5
5160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5163 cat > conftest.
$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5166 /* System header to define __stub macros and hopefully few prototypes,
5167 which can conflict with char $ac_func(); below. */
5169 /* Override any gcc2 internal prototype to avoid an error. */
5170 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */
5176 /* The GNU C library defines this for functions which it implements
5177 to always fail with ENOSYS. Some functions are actually named
5178 something starting with __ and the normal name is an alias. */
5179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5187 if { (eval echo configure
:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5189 eval "ac_cv_func_$ac_func=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.
$ac_ext >&5
5194 eval "ac_cv_func_$ac_func=no"
5199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5200 echo "$ac_t""yes" 1>&6
5201 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5202 cat >> confdefs.h
<<EOF
5203 #define $ac_tr_func 1
5207 echo "$ac_t""no" 1>&6
5211 for ac_func
in open64 _open64 __open64 creat64
5213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5214 echo "configure:5215: checking for $ac_func" >&5
5215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.
$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 /* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char $ac_func(); below. */
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5231 /* The GNU C library defines this for functions which it implements
5232 to always fail with ENOSYS. Some functions are actually named
5233 something starting with __ and the normal name is an alias. */
5234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5242 if { (eval echo configure
:5243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5244 eval "ac_cv_func_$ac_func=yes"
5246 echo "configure: failed program was:" >&5
5247 cat conftest.
$ac_ext >&5
5249 eval "ac_cv_func_$ac_func=no"
5254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5255 echo "$ac_t""yes" 1>&6
5256 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5257 cat >> confdefs.h
<<EOF
5258 #define $ac_tr_func 1
5262 echo "$ac_t""no" 1>&6
5268 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5271 if test x
$ac_cv_func_stat64 = xno
; then
5272 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5273 echo "configure:5274: checking for stat64 in <sys/stat.h>" >&5
5274 cat > conftest.
$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5278 #if defined(HAVE_UNISTD_H)
5281 #include <sys/stat.h>
5284 struct stat64 st64; exit(stat64(".",&st64));
5287 if { (eval echo configure
:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5289 ac_cv_func_stat64
=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.
$ac_ext >&5
5295 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5296 if test x
$ac_cv_func_stat64 = xyes
; then
5297 cat >> confdefs.h
<<\EOF
5298 #define HAVE_STAT64 1
5304 if test x
$ac_cv_func_lstat64 = xno
; then
5305 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5306 echo "configure:5307: checking for lstat64 in <sys/stat.h>" >&5
5307 cat > conftest.
$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5311 #if defined(HAVE_UNISTD_H)
5314 #include <sys/stat.h>
5317 struct stat64 st64; exit(lstat64(".",&st64));
5320 if { (eval echo configure
:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5322 ac_cv_func_lstat64
=yes
5324 echo "configure: failed program was:" >&5
5325 cat conftest.
$ac_ext >&5
5328 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5329 if test x
$ac_cv_func_lstat64 = xyes
; then
5330 cat >> confdefs.h
<<\EOF
5331 #define HAVE_LSTAT64 1
5337 if test x
$ac_cv_func_fstat64 = xno
; then
5338 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5339 echo "configure:5340: checking for fstat64 in <sys/stat.h>" >&5
5340 cat > conftest.
$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5344 #if defined(HAVE_UNISTD_H)
5347 #include <sys/stat.h>
5350 struct stat64 st64; exit(fstat64(0,&st64));
5353 if { (eval echo configure
:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5355 ac_cv_func_fstat64
=yes
5357 echo "configure: failed program was:" >&5
5358 cat conftest.
$ac_ext >&5
5361 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5362 if test x
$ac_cv_func_fstat64 = xyes
; then
5363 cat >> confdefs.h
<<\EOF
5364 #define HAVE_FSTAT64 1
5371 # If no strcasecmp, check for it in some known places
5372 # It is in -lresolv on ReliantUNIX and UnixWare
5373 # -lresolve *must* follow -lnsl for name resolution to work properly
5376 if test x
$ac_cv_func_strcasecmp = xno
; then
5377 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5378 echo "configure:5379: checking for strcasecmp in -lresolv" >&5
5379 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5383 ac_save_LIBS
="$LIBS"
5384 LIBS
="-lresolv $LIBS"
5385 cat > conftest.
$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5397 if { (eval echo configure
:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5399 eval "ac_cv_lib_$ac_lib_var=yes"
5401 echo "configure: failed program was:" >&5
5402 cat conftest.
$ac_ext >&5
5404 eval "ac_cv_lib_$ac_lib_var=no"
5407 LIBS
="$ac_save_LIBS"
5410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5411 echo "$ac_t""yes" 1>&6
5412 LIBS
="$LIBS -lresolv"
5413 cat >> confdefs.h
<<\EOF
5414 #define HAVE_STRCASECMP 1
5418 echo "$ac_t""no" 1>&6
5424 # Check for the functions putprpwnam, set_auth_parameters,
5425 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5426 # Needed for OSF1 and HPUX.
5430 *-lsecurity*) for ac_func
in putprpwnam
5432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5433 echo "configure:5434: checking for $ac_func" >&5
5434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5437 cat > conftest.
$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 /* System header to define __stub macros and hopefully few prototypes,
5441 which can conflict with char $ac_func(); below. */
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. */
5450 /* The GNU C library defines this for functions which it implements
5451 to always fail with ENOSYS. Some functions are actually named
5452 something starting with __ and the normal name is an alias. */
5453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5461 if { (eval echo configure
:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5463 eval "ac_cv_func_$ac_func=yes"
5465 echo "configure: failed program was:" >&5
5466 cat conftest.
$ac_ext >&5
5468 eval "ac_cv_func_$ac_func=no"
5473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5474 echo "$ac_t""yes" 1>&6
5475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5476 cat >> confdefs.h
<<EOF
5477 #define $ac_tr_func 1
5481 echo "$ac_t""no" 1>&6
5485 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5486 echo "configure:5487: checking for putprpwnam in -lsecurity" >&5
5487 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5491 ac_save_LIBS
="$LIBS"
5492 LIBS
="-lsecurity $LIBS"
5493 cat > conftest.
$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496 /* Override any gcc2 internal prototype to avoid an error. */
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5505 if { (eval echo configure
:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5507 eval "ac_cv_lib_$ac_lib_var=yes"
5509 echo "configure: failed program was:" >&5
5510 cat conftest.
$ac_ext >&5
5512 eval "ac_cv_lib_$ac_lib_var=no"
5515 LIBS
="$ac_save_LIBS"
5518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5522 cat >> confdefs.h
<<EOF
5523 #define $ac_tr_lib 1
5526 LIBS
="-lsecurity $LIBS"
5529 echo "$ac_t""no" 1>&6
5532 for ac_func
in putprpwnam
5534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_func" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.
$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char $ac_func(); below. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5563 if { (eval echo configure
:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5565 eval "ac_cv_func_$ac_func=yes"
5567 echo "configure: failed program was:" >&5
5568 cat conftest.
$ac_ext >&5
5570 eval "ac_cv_func_$ac_func=no"
5575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5578 cat >> confdefs.h
<<EOF
5579 #define $ac_tr_func 1
5583 echo "$ac_t""no" 1>&6
5591 *-lsec*) for ac_func
in putprpwnam
5593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5594 echo "configure:5595: checking for $ac_func" >&5
5595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5598 cat > conftest.
$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 /* System header to define __stub macros and hopefully few prototypes,
5602 which can conflict with char $ac_func(); below. */
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. */
5611 /* The GNU C library defines this for functions which it implements
5612 to always fail with ENOSYS. Some functions are actually named
5613 something starting with __ and the normal name is an alias. */
5614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5622 if { (eval echo configure
:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5624 eval "ac_cv_func_$ac_func=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.
$ac_ext >&5
5629 eval "ac_cv_func_$ac_func=no"
5634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5635 echo "$ac_t""yes" 1>&6
5636 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5637 cat >> confdefs.h
<<EOF
5638 #define $ac_tr_func 1
5642 echo "$ac_t""no" 1>&6
5646 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5647 echo "configure:5648: checking for putprpwnam in -lsec" >&5
5648 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 ac_save_LIBS
="$LIBS"
5654 cat > conftest.
$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5666 if { (eval echo configure
:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5668 eval "ac_cv_lib_$ac_lib_var=yes"
5670 echo "configure: failed program was:" >&5
5671 cat conftest.
$ac_ext >&5
5673 eval "ac_cv_lib_$ac_lib_var=no"
5676 LIBS
="$ac_save_LIBS"
5679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5680 echo "$ac_t""yes" 1>&6
5681 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5683 cat >> confdefs.h
<<EOF
5684 #define $ac_tr_lib 1
5690 echo "$ac_t""no" 1>&6
5693 for ac_func
in putprpwnam
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 cat > conftest.
$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char $ac_func(); below. */
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 if { (eval echo configure
:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5726 eval "ac_cv_func_$ac_func=yes"
5728 echo "configure: failed program was:" >&5
5729 cat conftest.
$ac_ext >&5
5731 eval "ac_cv_func_$ac_func=no"
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739 cat >> confdefs.h
<<EOF
5740 #define $ac_tr_func 1
5744 echo "$ac_t""no" 1>&6
5753 *-lsecurity*) for ac_func
in set_auth_parameters
5755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5756 echo "configure:5757: checking for $ac_func" >&5
5757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5758 echo $ac_n "(cached) $ac_c" 1>&6
5760 cat > conftest.
$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 /* System header to define __stub macros and hopefully few prototypes,
5764 which can conflict with char $ac_func(); below. */
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. */
5773 /* The GNU C library defines this for functions which it implements
5774 to always fail with ENOSYS. Some functions are actually named
5775 something starting with __ and the normal name is an alias. */
5776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5784 if { (eval echo configure
:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5786 eval "ac_cv_func_$ac_func=yes"
5788 echo "configure: failed program was:" >&5
5789 cat conftest.
$ac_ext >&5
5791 eval "ac_cv_func_$ac_func=no"
5796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5799 cat >> confdefs.h
<<EOF
5800 #define $ac_tr_func 1
5804 echo "$ac_t""no" 1>&6
5808 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5809 echo "configure:5810: checking for set_auth_parameters in -lsecurity" >&5
5810 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 ac_save_LIBS
="$LIBS"
5815 LIBS
="-lsecurity $LIBS"
5816 cat > conftest.
$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5822 char set_auth_parameters();
5825 set_auth_parameters()
5828 if { (eval echo configure
:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5830 eval "ac_cv_lib_$ac_lib_var=yes"
5832 echo "configure: failed program was:" >&5
5833 cat conftest.
$ac_ext >&5
5835 eval "ac_cv_lib_$ac_lib_var=no"
5838 LIBS
="$ac_save_LIBS"
5841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5842 echo "$ac_t""yes" 1>&6
5843 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5845 cat >> confdefs.h
<<EOF
5846 #define $ac_tr_lib 1
5849 LIBS
="-lsecurity $LIBS"
5852 echo "$ac_t""no" 1>&6
5855 for ac_func
in set_auth_parameters
5857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5858 echo "configure:5859: checking for $ac_func" >&5
5859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5862 cat > conftest.
$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 /* System header to define __stub macros and hopefully few prototypes,
5866 which can conflict with char $ac_func(); below. */
5868 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5886 if { (eval echo configure
:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5888 eval "ac_cv_func_$ac_func=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.
$ac_ext >&5
5893 eval "ac_cv_func_$ac_func=no"
5898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5901 cat >> confdefs.h
<<EOF
5902 #define $ac_tr_func 1
5906 echo "$ac_t""no" 1>&6
5914 *-lsec*) for ac_func
in set_auth_parameters
5916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5917 echo "configure:5918: checking for $ac_func" >&5
5918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5919 echo $ac_n "(cached) $ac_c" 1>&6
5921 cat > conftest.
$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5924 /* System header to define __stub macros and hopefully few prototypes,
5925 which can conflict with char $ac_func(); below. */
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. */
5934 /* The GNU C library defines this for functions which it implements
5935 to always fail with ENOSYS. Some functions are actually named
5936 something starting with __ and the normal name is an alias. */
5937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5945 if { (eval echo configure
:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5947 eval "ac_cv_func_$ac_func=yes"
5949 echo "configure: failed program was:" >&5
5950 cat conftest.
$ac_ext >&5
5952 eval "ac_cv_func_$ac_func=no"
5957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5958 echo "$ac_t""yes" 1>&6
5959 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5960 cat >> confdefs.h
<<EOF
5961 #define $ac_tr_func 1
5965 echo "$ac_t""no" 1>&6
5969 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5970 echo "configure:5971: checking for set_auth_parameters in -lsec" >&5
5971 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5975 ac_save_LIBS
="$LIBS"
5977 cat > conftest.
$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 /* Override any gcc2 internal prototype to avoid an error. */
5981 /* We use char because int might match the return type of a gcc2
5982 builtin and then its argument prototype would still apply. */
5983 char set_auth_parameters();
5986 set_auth_parameters()
5989 if { (eval echo configure
:5990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5991 eval "ac_cv_lib_$ac_lib_var=yes"
5993 echo "configure: failed program was:" >&5
5994 cat conftest.
$ac_ext >&5
5996 eval "ac_cv_lib_$ac_lib_var=no"
5999 LIBS
="$ac_save_LIBS"
6002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6005 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6006 cat >> confdefs.h
<<EOF
6007 #define $ac_tr_lib 1
6013 echo "$ac_t""no" 1>&6
6016 for ac_func
in set_auth_parameters
6018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6019 echo "configure:6020: checking for $ac_func" >&5
6020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6023 cat > conftest.
$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char $ac_func(); below. */
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6047 if { (eval echo configure
:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6049 eval "ac_cv_func_$ac_func=yes"
6051 echo "configure: failed program was:" >&5
6052 cat conftest.
$ac_ext >&5
6054 eval "ac_cv_func_$ac_func=no"
6059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6062 cat >> confdefs.h
<<EOF
6063 #define $ac_tr_func 1
6067 echo "$ac_t""no" 1>&6
6076 *-lsecurity*) for ac_func
in getspnam
6078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6079 echo "configure:6080: checking for $ac_func" >&5
6080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6083 cat > conftest.
$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char $ac_func(); below. */
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. */
6096 /* The GNU C library defines this for functions which it implements
6097 to always fail with ENOSYS. Some functions are actually named
6098 something starting with __ and the normal name is an alias. */
6099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6107 if { (eval echo configure
:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6109 eval "ac_cv_func_$ac_func=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.
$ac_ext >&5
6114 eval "ac_cv_func_$ac_func=no"
6119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6122 cat >> confdefs.h
<<EOF
6123 #define $ac_tr_func 1
6127 echo "$ac_t""no" 1>&6
6131 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6132 echo "configure:6133: checking for getspnam in -lsecurity" >&5
6133 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 ac_save_LIBS
="$LIBS"
6138 LIBS
="-lsecurity $LIBS"
6139 cat > conftest.
$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6151 if { (eval echo configure
:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6153 eval "ac_cv_lib_$ac_lib_var=yes"
6155 echo "configure: failed program was:" >&5
6156 cat conftest.
$ac_ext >&5
6158 eval "ac_cv_lib_$ac_lib_var=no"
6161 LIBS
="$ac_save_LIBS"
6164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6165 echo "$ac_t""yes" 1>&6
6166 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6168 cat >> confdefs.h
<<EOF
6169 #define $ac_tr_lib 1
6172 LIBS
="-lsecurity $LIBS"
6175 echo "$ac_t""no" 1>&6
6178 for ac_func
in getspnam
6180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6181 echo "configure:6182: checking for $ac_func" >&5
6182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 cat > conftest.
$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6188 /* System header to define __stub macros and hopefully few prototypes,
6189 which can conflict with char $ac_func(); below. */
6191 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */
6198 /* The GNU C library defines this for functions which it implements
6199 to always fail with ENOSYS. Some functions are actually named
6200 something starting with __ and the normal name is an alias. */
6201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6209 if { (eval echo configure
:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6211 eval "ac_cv_func_$ac_func=yes"
6213 echo "configure: failed program was:" >&5
6214 cat conftest.
$ac_ext >&5
6216 eval "ac_cv_func_$ac_func=no"
6221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6222 echo "$ac_t""yes" 1>&6
6223 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6224 cat >> confdefs.h
<<EOF
6225 #define $ac_tr_func 1
6229 echo "$ac_t""no" 1>&6
6237 *-lsec*) for ac_func
in getspnam
6239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6240 echo "configure:6241: checking for $ac_func" >&5
6241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6244 cat > conftest.
$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char $ac_func(); below. */
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6257 /* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6268 if { (eval echo configure
:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6270 eval "ac_cv_func_$ac_func=yes"
6272 echo "configure: failed program was:" >&5
6273 cat conftest.
$ac_ext >&5
6275 eval "ac_cv_func_$ac_func=no"
6280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6282 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6283 cat >> confdefs.h
<<EOF
6284 #define $ac_tr_func 1
6288 echo "$ac_t""no" 1>&6
6292 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6293 echo "configure:6294: checking for getspnam in -lsec" >&5
6294 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6298 ac_save_LIBS
="$LIBS"
6300 cat > conftest.
$ac_ext <<EOF
6301 #line 6302 "configure"
6302 #include "confdefs.h"
6303 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6312 if { (eval echo configure
:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6314 eval "ac_cv_lib_$ac_lib_var=yes"
6316 echo "configure: failed program was:" >&5
6317 cat conftest.
$ac_ext >&5
6319 eval "ac_cv_lib_$ac_lib_var=no"
6322 LIBS
="$ac_save_LIBS"
6325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6329 cat >> confdefs.h
<<EOF
6330 #define $ac_tr_lib 1
6336 echo "$ac_t""no" 1>&6
6339 for ac_func
in getspnam
6341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6342 echo "configure:6343: checking for $ac_func" >&5
6343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6346 cat > conftest.
$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func(); below. */
6352 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6359 /* The GNU C library defines this for functions which it implements
6360 to always fail with ENOSYS. Some functions are actually named
6361 something starting with __ and the normal name is an alias. */
6362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6370 if { (eval echo configure
:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6372 eval "ac_cv_func_$ac_func=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.
$ac_ext >&5
6377 eval "ac_cv_func_$ac_func=no"
6382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6383 echo "$ac_t""yes" 1>&6
6384 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6385 cat >> confdefs.h
<<EOF
6386 #define $ac_tr_func 1
6390 echo "$ac_t""no" 1>&6
6399 *-lsecurity*) for ac_func
in bigcrypt
6401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_func" >&5
6403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6406 cat > conftest.
$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* System header to define __stub macros and hopefully few prototypes,
6410 which can conflict with char $ac_func(); below. */
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. */
6419 /* The GNU C library defines this for functions which it implements
6420 to always fail with ENOSYS. Some functions are actually named
6421 something starting with __ and the normal name is an alias. */
6422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6430 if { (eval echo configure
:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6432 eval "ac_cv_func_$ac_func=yes"
6434 echo "configure: failed program was:" >&5
6435 cat conftest.
$ac_ext >&5
6437 eval "ac_cv_func_$ac_func=no"
6442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6443 echo "$ac_t""yes" 1>&6
6444 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6445 cat >> confdefs.h
<<EOF
6446 #define $ac_tr_func 1
6450 echo "$ac_t""no" 1>&6
6454 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6455 echo "configure:6456: checking for bigcrypt in -lsecurity" >&5
6456 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6460 ac_save_LIBS
="$LIBS"
6461 LIBS
="-lsecurity $LIBS"
6462 cat > conftest.
$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6465 /* Override any gcc2 internal prototype to avoid an error. */
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6474 if { (eval echo configure
:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6476 eval "ac_cv_lib_$ac_lib_var=yes"
6478 echo "configure: failed program was:" >&5
6479 cat conftest.
$ac_ext >&5
6481 eval "ac_cv_lib_$ac_lib_var=no"
6484 LIBS
="$ac_save_LIBS"
6487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6488 echo "$ac_t""yes" 1>&6
6489 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6491 cat >> confdefs.h
<<EOF
6492 #define $ac_tr_lib 1
6495 LIBS
="-lsecurity $LIBS"
6498 echo "$ac_t""no" 1>&6
6501 for ac_func
in bigcrypt
6503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6504 echo "configure:6505: checking for $ac_func" >&5
6505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6508 cat > conftest.
$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6511 /* System header to define __stub macros and hopefully few prototypes,
6512 which can conflict with char $ac_func(); below. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6521 /* The GNU C library defines this for functions which it implements
6522 to always fail with ENOSYS. Some functions are actually named
6523 something starting with __ and the normal name is an alias. */
6524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6532 if { (eval echo configure
:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6534 eval "ac_cv_func_$ac_func=yes"
6536 echo "configure: failed program was:" >&5
6537 cat conftest.
$ac_ext >&5
6539 eval "ac_cv_func_$ac_func=no"
6544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6546 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6547 cat >> confdefs.h
<<EOF
6548 #define $ac_tr_func 1
6552 echo "$ac_t""no" 1>&6
6560 *-lsec*) for ac_func
in bigcrypt
6562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6563 echo "configure:6564: checking for $ac_func" >&5
6564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6567 cat > conftest.
$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6570 /* System header to define __stub macros and hopefully few prototypes,
6571 which can conflict with char $ac_func(); below. */
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. */
6580 /* The GNU C library defines this for functions which it implements
6581 to always fail with ENOSYS. Some functions are actually named
6582 something starting with __ and the normal name is an alias. */
6583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6591 if { (eval echo configure
:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6593 eval "ac_cv_func_$ac_func=yes"
6595 echo "configure: failed program was:" >&5
6596 cat conftest.
$ac_ext >&5
6598 eval "ac_cv_func_$ac_func=no"
6603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6604 echo "$ac_t""yes" 1>&6
6605 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6606 cat >> confdefs.h
<<EOF
6607 #define $ac_tr_func 1
6611 echo "$ac_t""no" 1>&6
6615 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6616 echo "configure:6617: checking for bigcrypt in -lsec" >&5
6617 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6621 ac_save_LIBS
="$LIBS"
6623 cat > conftest.
$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6635 if { (eval echo configure
:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6637 eval "ac_cv_lib_$ac_lib_var=yes"
6639 echo "configure: failed program was:" >&5
6640 cat conftest.
$ac_ext >&5
6642 eval "ac_cv_lib_$ac_lib_var=no"
6645 LIBS
="$ac_save_LIBS"
6648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6650 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6652 cat >> confdefs.h
<<EOF
6653 #define $ac_tr_lib 1
6659 echo "$ac_t""no" 1>&6
6662 for ac_func
in bigcrypt
6664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6665 echo "configure:6666: checking for $ac_func" >&5
6666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 cat > conftest.
$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* System header to define __stub macros and hopefully few prototypes,
6673 which can conflict with char $ac_func(); below. */
6675 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6693 if { (eval echo configure
:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6695 eval "ac_cv_func_$ac_func=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.
$ac_ext >&5
6700 eval "ac_cv_func_$ac_func=no"
6705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6708 cat >> confdefs.h
<<EOF
6709 #define $ac_tr_func 1
6713 echo "$ac_t""no" 1>&6
6722 *-lsecurity*) for ac_func
in getprpwnam
6724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6725 echo "configure:6726: checking for $ac_func" >&5
6726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 cat > conftest.
$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6732 /* System header to define __stub macros and hopefully few prototypes,
6733 which can conflict with char $ac_func(); below. */
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. */
6742 /* The GNU C library defines this for functions which it implements
6743 to always fail with ENOSYS. Some functions are actually named
6744 something starting with __ and the normal name is an alias. */
6745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6753 if { (eval echo configure
:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6755 eval "ac_cv_func_$ac_func=yes"
6757 echo "configure: failed program was:" >&5
6758 cat conftest.
$ac_ext >&5
6760 eval "ac_cv_func_$ac_func=no"
6765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6767 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6768 cat >> confdefs.h
<<EOF
6769 #define $ac_tr_func 1
6773 echo "$ac_t""no" 1>&6
6777 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6778 echo "configure:6779: checking for getprpwnam in -lsecurity" >&5
6779 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6781 echo $ac_n "(cached) $ac_c" 1>&6
6783 ac_save_LIBS
="$LIBS"
6784 LIBS
="-lsecurity $LIBS"
6785 cat > conftest.
$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6797 if { (eval echo configure
:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6799 eval "ac_cv_lib_$ac_lib_var=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.
$ac_ext >&5
6804 eval "ac_cv_lib_$ac_lib_var=no"
6807 LIBS
="$ac_save_LIBS"
6810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6814 cat >> confdefs.h
<<EOF
6815 #define $ac_tr_lib 1
6818 LIBS
="-lsecurity $LIBS"
6821 echo "$ac_t""no" 1>&6
6824 for ac_func
in getprpwnam
6826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6827 echo "configure:6828: checking for $ac_func" >&5
6828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 cat > conftest.
$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6834 /* System header to define __stub macros and hopefully few prototypes,
6835 which can conflict with char $ac_func(); below. */
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6844 /* The GNU C library defines this for functions which it implements
6845 to always fail with ENOSYS. Some functions are actually named
6846 something starting with __ and the normal name is an alias. */
6847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6855 if { (eval echo configure
:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6857 eval "ac_cv_func_$ac_func=yes"
6859 echo "configure: failed program was:" >&5
6860 cat conftest.
$ac_ext >&5
6862 eval "ac_cv_func_$ac_func=no"
6867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6868 echo "$ac_t""yes" 1>&6
6869 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6870 cat >> confdefs.h
<<EOF
6871 #define $ac_tr_func 1
6875 echo "$ac_t""no" 1>&6
6883 *-lsec*) for ac_func
in getprpwnam
6885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6886 echo "configure:6887: checking for $ac_func" >&5
6887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6888 echo $ac_n "(cached) $ac_c" 1>&6
6890 cat > conftest.
$ac_ext <<EOF
6891 #line 6892 "configure"
6892 #include "confdefs.h"
6893 /* System header to define __stub macros and hopefully few prototypes,
6894 which can conflict with char $ac_func(); below. */
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. */
6903 /* The GNU C library defines this for functions which it implements
6904 to always fail with ENOSYS. Some functions are actually named
6905 something starting with __ and the normal name is an alias. */
6906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6914 if { (eval echo configure
:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6916 eval "ac_cv_func_$ac_func=yes"
6918 echo "configure: failed program was:" >&5
6919 cat conftest.
$ac_ext >&5
6921 eval "ac_cv_func_$ac_func=no"
6926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6927 echo "$ac_t""yes" 1>&6
6928 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6929 cat >> confdefs.h
<<EOF
6930 #define $ac_tr_func 1
6934 echo "$ac_t""no" 1>&6
6938 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6939 echo "configure:6940: checking for getprpwnam in -lsec" >&5
6940 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6944 ac_save_LIBS
="$LIBS"
6946 cat > conftest.
$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6949 /* Override any gcc2 internal prototype to avoid an error. */
6950 /* We use char because int might match the return type of a gcc2
6951 builtin and then its argument prototype would still apply. */
6958 if { (eval echo configure
:6959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6960 eval "ac_cv_lib_$ac_lib_var=yes"
6962 echo "configure: failed program was:" >&5
6963 cat conftest.
$ac_ext >&5
6965 eval "ac_cv_lib_$ac_lib_var=no"
6968 LIBS
="$ac_save_LIBS"
6971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6972 echo "$ac_t""yes" 1>&6
6973 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6974 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6975 cat >> confdefs.h
<<EOF
6976 #define $ac_tr_lib 1
6982 echo "$ac_t""no" 1>&6
6985 for ac_func
in getprpwnam
6987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6988 echo "configure:6989: checking for $ac_func" >&5
6989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6990 echo $ac_n "(cached) $ac_c" 1>&6
6992 cat > conftest.
$ac_ext <<EOF
6993 #line 6994 "configure"
6994 #include "confdefs.h"
6995 /* System header to define __stub macros and hopefully few prototypes,
6996 which can conflict with char $ac_func(); below. */
6998 /* Override any gcc2 internal prototype to avoid an error. */
6999 /* We use char because int might match the return type of a gcc2
7000 builtin and then its argument prototype would still apply. */
7005 /* The GNU C library defines this for functions which it implements
7006 to always fail with ENOSYS. Some functions are actually named
7007 something starting with __ and the normal name is an alias. */
7008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7016 if { (eval echo configure
:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7018 eval "ac_cv_func_$ac_func=yes"
7020 echo "configure: failed program was:" >&5
7021 cat conftest.
$ac_ext >&5
7023 eval "ac_cv_func_$ac_func=no"
7028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7029 echo "$ac_t""yes" 1>&6
7030 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7031 cat >> confdefs.h
<<EOF
7032 #define $ac_tr_func 1
7036 echo "$ac_t""no" 1>&6
7044 # this bit needs to be modified for each OS that is suported by
7045 # smbwrapper. You need to specify how to created a shared library and
7046 # how to compile C code to produce PIC object files
7048 # these are the defaults, good for lots of systems
7052 # and these are for particular systems
7054 *linux
*) cat >> confdefs.h
<<\EOF
7058 *solaris
*) cat >> confdefs.h
<<\EOF
7064 *sunos
*) cat >> confdefs.h
<<\EOF
7070 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7072 *irix
*) cat >> confdefs.h
<<\EOF
7077 *irix6
*) cat >> confdefs.h
<<\EOF
7083 ATTEMPT_WRAP32_BUILD
=yes
7085 *aix
*) cat >> confdefs.h
<<\EOF
7089 *hpux
*) cat >> confdefs.h
<<\EOF
7093 *qnx
*) cat >> confdefs.h
<<\EOF
7097 *osf
*) cat >> confdefs.h
<<\EOF
7101 *sco
*) cat >> confdefs.h
<<\EOF
7105 *next2
*) cat >> confdefs.h
<<\EOF
7109 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
7110 set dummy
groff; ac_word
=$2
7111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7112 echo "configure:7113: checking for $ac_word" >&5
7113 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7114 echo $ac_n "(cached) $ac_c" 1>&6
7116 if test -n "$ROFF"; then
7117 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
7119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7120 for ac_dir
in $PATH; do
7121 test -z "$ac_dir" && ac_dir
=.
7122 if test -f $ac_dir/$ac_word; then
7123 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
7130 ROFF
="$ac_cv_prog_ROFF"
7131 if test -n "$ROFF"; then
7132 echo "$ac_t""$ROFF" 1>&6
7134 echo "$ac_t""no" 1>&6
7139 *-univel-*) if test "$GCC" != yes ; then
7140 cat >> confdefs.h
<<\EOF
7141 #define HAVE_MEMSET 1
7147 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
7148 #define RELIANTUNIX 1
7154 if test "$GCC" != yes ; then
7155 cat >> confdefs.h
<<\EOF
7156 #define HAVE_MEMSET 1
7164 # try to work out how to produce pic code with this compiler
7166 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7167 echo "configure:7168: checking whether ${CC-cc} accepts -fpic" >&5
7168 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7169 echo $ac_n "(cached) $ac_c" 1>&6
7171 echo 'void f(){}' > conftest.c
7172 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7173 ac_cv_prog_cc_fpic
=yes
7175 ac_cv_prog_cc_fpic
=no
7181 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7182 if test $ac_cv_prog_cc_fpic = yes; then
7185 if test x
$PICFLAG = x
; then
7186 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7187 echo "configure:7188: checking whether ${CC-cc} accepts -Kpic" >&5
7188 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7191 echo 'void f(){}' > conftest.c
7192 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7193 ac_cv_prog_cc_Kpic
=yes
7195 ac_cv_prog_cc_Kpic
=no
7201 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7202 if test $ac_cv_prog_cc_Kpic = yes; then
7206 if test x
$PICFLAG = x
; then
7207 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7208 echo "configure:7209: checking whether ${CC-cc} accepts -KPIC" >&5
7209 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7212 echo 'void f(){}' > conftest.c
7213 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7214 ac_cv_prog_cc_KPIC
=yes
7216 ac_cv_prog_cc_KPIC
=no
7222 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7223 if test $ac_cv_prog_cc_KPIC = yes; then
7230 echo $ac_n "checking for long long""... $ac_c" 1>&6
7231 echo "configure:7232: checking for long long" >&5
7232 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7236 if test "$cross_compiling" = yes; then
7237 samba_cv_have_longlong
=cross
7239 cat > conftest.
$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7243 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7245 if { (eval echo configure
:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7247 samba_cv_have_longlong
=yes
7249 echo "configure: failed program was:" >&5
7250 cat conftest.
$ac_ext >&5
7252 samba_cv_have_longlong
=no
7259 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7260 if test x
"$samba_cv_have_longlong" = x
"yes"; then
7261 cat >> confdefs.h
<<\EOF
7262 #define HAVE_LONGLONG 1
7267 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7268 echo "configure:7269: checking for 64 bit off_t" >&5
7269 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7273 if test "$cross_compiling" = yes; then
7274 samba_cv_SIZEOF_OFF_T
=cross
7276 cat > conftest.
$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7280 #include <sys/stat.h>
7281 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
7283 if { (eval echo configure
:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7285 samba_cv_SIZEOF_OFF_T
=yes
7287 echo "configure: failed program was:" >&5
7288 cat conftest.
$ac_ext >&5
7290 samba_cv_SIZEOF_OFF_T
=no
7297 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
7298 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
7299 cat >> confdefs.h
<<\EOF
7300 #define SIZEOF_OFF_T 8
7305 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7306 echo "configure:7307: checking for off64_t" >&5
7307 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7311 if test "$cross_compiling" = yes; then
7312 samba_cv_HAVE_OFF64_T
=cross
7314 cat > conftest.
$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7318 #if defined(HAVE_UNISTD_H)
7322 #include <sys/stat.h>
7323 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7325 if { (eval echo configure
:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7327 samba_cv_HAVE_OFF64_T
=yes
7329 echo "configure: failed program was:" >&5
7330 cat conftest.
$ac_ext >&5
7332 samba_cv_HAVE_OFF64_T
=no
7339 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7340 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
7341 cat >> confdefs.h
<<\EOF
7342 #define HAVE_OFF64_T 1
7347 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7348 echo "configure:7349: checking for 64 bit ino_t" >&5
7349 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7353 if test "$cross_compiling" = yes; then
7354 samba_cv_SIZEOF_INO_T
=cross
7356 cat > conftest.
$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7360 #include <sys/stat.h>
7361 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7363 if { (eval echo configure
:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7365 samba_cv_SIZEOF_INO_T
=yes
7367 echo "configure: failed program was:" >&5
7368 cat conftest.
$ac_ext >&5
7370 samba_cv_SIZEOF_INO_T
=no
7377 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7378 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
7379 cat >> confdefs.h
<<\EOF
7380 #define SIZEOF_INO_T 8
7385 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7386 echo "configure:7387: checking for ino64_t" >&5
7387 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7391 if test "$cross_compiling" = yes; then
7392 samba_cv_HAVE_INO64_T
=cross
7394 cat > conftest.
$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7398 #if defined(HAVE_UNISTD_H)
7402 #include <sys/stat.h>
7403 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7405 if { (eval echo configure
:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7407 samba_cv_HAVE_INO64_T
=yes
7409 echo "configure: failed program was:" >&5
7410 cat conftest.
$ac_ext >&5
7412 samba_cv_HAVE_INO64_T
=no
7419 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7420 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
7421 cat >> confdefs.h
<<\EOF
7422 #define HAVE_INO64_T 1
7427 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
7428 echo "configure:7429: checking for struct dirent64" >&5
7429 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7433 cat > conftest.
$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7437 #if defined(HAVE_UNISTD_H)
7440 #include <sys/types.h>
7446 if { (eval echo configure
:7447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7448 samba_cv_HAVE_STRUCT_DIRENT64
=yes
7450 echo "configure: failed program was:" >&5
7451 cat conftest.
$ac_ext >&5
7453 samba_cv_HAVE_STRUCT_DIRENT64
=no
7458 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
7459 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
7460 cat >> confdefs.h
<<\EOF
7461 #define HAVE_STRUCT_DIRENT64 1
7466 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7467 echo "configure:7468: checking for union semun" >&5
7468 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7472 if test "$cross_compiling" = yes; then
7473 samba_cv_HAVE_UNION_SEMUN
=cross
7475 cat > conftest.
$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7479 #include <sys/types.h>
7480 #include <sys/ipc.h>
7481 #include <sys/sem.h>
7482 main() { union semun ss; exit(0); }
7484 if { (eval echo configure
:7485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7486 samba_cv_HAVE_UNION_SEMUN
=yes
7488 echo "configure: failed program was:" >&5
7489 cat conftest.
$ac_ext >&5
7491 samba_cv_HAVE_UNION_SEMUN
=no
7498 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7499 if test x
"$samba_cv_HAVE_UNION_SEMUN" = x
"yes"; then
7500 cat >> confdefs.h
<<\EOF
7501 #define HAVE_UNION_SEMUN 1
7506 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7507 echo "configure:7508: checking for unsigned char" >&5
7508 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7512 if test "$cross_compiling" = yes; then
7513 samba_cv_HAVE_UNSIGNED_CHAR
=cross
7515 cat > conftest.
$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7519 main() { char c; c=250; exit((c > 0)?0:1); }
7521 if { (eval echo configure
:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7523 samba_cv_HAVE_UNSIGNED_CHAR
=yes
7525 echo "configure: failed program was:" >&5
7526 cat conftest.
$ac_ext >&5
7528 samba_cv_HAVE_UNSIGNED_CHAR
=no
7535 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7536 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
7537 cat >> confdefs.h
<<\EOF
7538 #define HAVE_UNSIGNED_CHAR 1
7543 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7544 echo "configure:7545: checking for sin_len in sock" >&5
7545 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7549 cat > conftest.
$ac_ext <<EOF
7550 #line 7551 "configure"
7551 #include "confdefs.h"
7552 #include <sys/types.h>
7553 #include <sys/socket.h>
7554 #include <netinet/in.h>
7556 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7559 if { (eval echo configure
:7560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7561 samba_cv_HAVE_SOCK_SIN_LEN
=yes
7563 echo "configure: failed program was:" >&5
7564 cat conftest.
$ac_ext >&5
7566 samba_cv_HAVE_SOCK_SIN_LEN
=no
7571 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7572 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
7573 cat >> confdefs.h
<<\EOF
7574 #define HAVE_SOCK_SIN_LEN 1
7579 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7580 echo "configure:7581: checking whether seekdir returns void" >&5
7581 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7585 cat > conftest.
$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 #include <sys/types.h>
7590 void seekdir(DIR *d, long loc) { return; }
7595 if { (eval echo configure
:7596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7597 samba_cv_SEEKDIR_RETURNS_VOID
=yes
7599 echo "configure: failed program was:" >&5
7600 cat conftest.
$ac_ext >&5
7602 samba_cv_SEEKDIR_RETURNS_VOID
=no
7607 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7608 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
7609 cat >> confdefs.h
<<\EOF
7610 #define SEEKDIR_RETURNS_VOID 1
7615 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7616 echo "configure:7617: checking for __FILE__ macro" >&5
7617 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7618 echo $ac_n "(cached) $ac_c" 1>&6
7621 cat > conftest.
$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7626 printf("%s\n", __FILE__);
7629 if { (eval echo configure
:7630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7631 samba_cv_HAVE_FILE_MACRO
=yes
7633 echo "configure: failed program was:" >&5
7634 cat conftest.
$ac_ext >&5
7636 samba_cv_HAVE_FILE_MACRO
=no
7641 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7642 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
7643 cat >> confdefs.h
<<\EOF
7644 #define HAVE_FILE_MACRO 1
7649 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7650 echo "configure:7651: checking for __FUNCTION__ macro" >&5
7651 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7655 cat > conftest.
$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7660 printf("%s\n", __FUNCTION__);
7663 if { (eval echo configure
:7664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7665 samba_cv_HAVE_FUNCTION_MACRO
=yes
7667 echo "configure: failed program was:" >&5
7668 cat conftest.
$ac_ext >&5
7670 samba_cv_HAVE_FUNCTION_MACRO
=no
7675 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7676 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
7677 cat >> confdefs.h
<<\EOF
7678 #define HAVE_FUNCTION_MACRO 1
7683 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7684 echo "configure:7685: checking if gettimeofday takes tz argument" >&5
7685 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7689 if test "$cross_compiling" = yes; then
7690 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
7692 cat > conftest.
$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7696 #include <sys/time.h>
7698 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7700 if { (eval echo configure
:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7702 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
7704 echo "configure: failed program was:" >&5
7705 cat conftest.
$ac_ext >&5
7707 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
7714 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7715 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
7716 cat >> confdefs.h
<<\EOF
7717 #define HAVE_GETTIMEOFDAY_TZ 1
7723 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7724 echo "configure:7725: checking for broken readdir" >&5
7725 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7729 if test "$cross_compiling" = yes; then
7730 samba_cv_HAVE_BROKEN_READDIR
=cross
7732 cat > conftest.
$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 #include <sys/types.h>
7737 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7738 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7739 di->d_name[0] == 0) exit(0); exit(1);}
7741 if { (eval echo configure
:7742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7743 samba_cv_HAVE_BROKEN_READDIR
=yes
7745 echo "configure: failed program was:" >&5
7746 cat conftest.
$ac_ext >&5
7748 samba_cv_HAVE_BROKEN_READDIR
=no
7755 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7756 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
7757 cat >> confdefs.h
<<\EOF
7758 #define HAVE_BROKEN_READDIR 1
7763 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7764 echo "configure:7765: checking for utimbuf" >&5
7765 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7769 cat > conftest.
$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 #include <sys/types.h>
7775 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7778 if { (eval echo configure
:7779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7780 samba_cv_HAVE_UTIMBUF
=yes
7782 echo "configure: failed program was:" >&5
7783 cat conftest.
$ac_ext >&5
7785 samba_cv_HAVE_UTIMBUF
=no
7790 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7791 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
7792 cat >> confdefs.h
<<\EOF
7793 #define HAVE_UTIMBUF 1
7798 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7799 echo "configure:7800: checking for kernel oplock type definitions" >&5
7800 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7801 echo $ac_n "(cached) $ac_c" 1>&6
7804 cat > conftest.
$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 #include <sys/types.h>
7810 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7813 if { (eval echo configure
:7814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7815 samba_cv_HAVE_KERNEL_OPLOCKS
=yes
7817 echo "configure: failed program was:" >&5
7818 cat conftest.
$ac_ext >&5
7820 samba_cv_HAVE_KERNEL_OPLOCKS
=no
7825 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7826 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS" = x
"yes"; then
7827 cat >> confdefs.h
<<\EOF
7828 #define HAVE_KERNEL_OPLOCKS 1
7833 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7834 echo "configure:7835: checking for irix specific capabilities" >&5
7835 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7839 if test "$cross_compiling" = yes; then
7840 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
7842 cat > conftest.
$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 #include <sys/types.h>
7846 #include <sys/capability.h>
7849 if ((cap = cap_get_proc()) == NULL)
7851 cap->cap_effective |= CAP_NETWORK_MGT;
7852 cap->cap_inheritable |= CAP_NETWORK_MGT;
7858 if { (eval echo configure
:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7860 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
7862 echo "configure: failed program was:" >&5
7863 cat conftest.
$ac_ext >&5
7865 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
7872 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7873 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
7874 cat >> confdefs.h
<<\EOF
7875 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7881 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7882 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7885 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7886 echo "configure:7887: checking for int16 typedef included by rpc/rpc.h" >&5
7887 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7891 cat > conftest.
$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 #include <sys/types.h>
7895 #if defined(HAVE_RPC_RPC_H)
7896 #include <rpc/rpc.h>
7902 if { (eval echo configure
:7903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7904 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
7906 echo "configure: failed program was:" >&5
7907 cat conftest.
$ac_ext >&5
7909 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
7914 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7915 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
7916 cat >> confdefs.h
<<\EOF
7917 #define HAVE_INT16_FROM_RPC_RPC_H 1
7922 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7923 echo "configure:7924: checking for uint16 typedef included by rpc/rpc.h" >&5
7924 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7928 cat > conftest.
$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 #include <sys/types.h>
7932 #if defined(HAVE_RPC_RPC_H)
7933 #include <rpc/rpc.h>
7939 if { (eval echo configure
:7940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7941 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
7943 echo "configure: failed program was:" >&5
7944 cat conftest.
$ac_ext >&5
7946 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
7951 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7952 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
7953 cat >> confdefs.h
<<\EOF
7954 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7959 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7960 echo "configure:7961: checking for int32 typedef included by rpc/rpc.h" >&5
7961 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7965 cat > conftest.
$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7968 #include <sys/types.h>
7969 #if defined(HAVE_RPC_RPC_H)
7970 #include <rpc/rpc.h>
7976 if { (eval echo configure
:7977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7978 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
7980 echo "configure: failed program was:" >&5
7981 cat conftest.
$ac_ext >&5
7983 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
7988 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7989 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
7990 cat >> confdefs.h
<<\EOF
7991 #define HAVE_INT32_FROM_RPC_RPC_H 1
7996 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7997 echo "configure:7998: checking for uint32 typedef included by rpc/rpc.h" >&5
7998 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7999 echo $ac_n "(cached) $ac_c" 1>&6
8002 cat > conftest.
$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8005 #include <sys/types.h>
8006 #if defined(HAVE_RPC_RPC_H)
8007 #include <rpc/rpc.h>
8013 if { (eval echo configure
:8014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8015 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
8017 echo "configure: failed program was:" >&5
8018 cat conftest.
$ac_ext >&5
8020 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
8025 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8026 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
8027 cat >> confdefs.h
<<\EOF
8028 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8034 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8035 echo "configure:8036: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8036 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8040 cat > conftest.
$ac_ext <<EOF
8041 #line 8042 "configure"
8042 #include "confdefs.h"
8043 #include <sys/types.h>
8044 #ifdef HAVE_SYS_SECURITY_H
8045 #include <sys/security.h>
8047 #endif /* HAVE_SYS_SECURITY_H */
8048 #if defined(HAVE_RPC_RPC_H)
8049 #include <rpc/rpc.h>
8055 if { (eval echo configure
:8056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8057 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
8059 echo "configure: failed program was:" >&5
8060 cat conftest.
$ac_ext >&5
8062 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
8067 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
8068 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
8069 cat >> confdefs.h
<<\EOF
8070 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
8075 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8076 echo "configure:8077: checking for test routines" >&5
8077 if test "$cross_compiling" = yes; then
8078 echo "configure: warning: cannot run when cross-compiling" 1>&2
8080 cat > conftest.
$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 #include "${srcdir-.}/tests/trivial.c"
8085 if { (eval echo configure
:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8087 echo "$ac_t""yes" 1>&6
8089 echo "configure: failed program was:" >&5
8090 cat conftest.
$ac_ext >&5
8092 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8098 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8099 echo "configure:8100: checking for ftruncate extend" >&5
8100 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8104 if test "$cross_compiling" = yes; then
8105 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
8107 cat > conftest.
$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 #include "${srcdir-.}/tests/ftruncate.c"
8112 if { (eval echo configure
:8113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8114 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
8116 echo "configure: failed program was:" >&5
8117 cat conftest.
$ac_ext >&5
8119 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
8126 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8127 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
8128 cat >> confdefs.h
<<\EOF
8129 #define HAVE_FTRUNCATE_EXTEND 1
8134 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
8135 echo "configure:8136: checking for broken getgroups" >&5
8136 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8140 if test "$cross_compiling" = yes; then
8141 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
8143 cat > conftest.
$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146 #include "${srcdir-.}/tests/getgroups.c"
8148 if { (eval echo configure
:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8150 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
8152 echo "configure: failed program was:" >&5
8153 cat conftest.
$ac_ext >&5
8155 samba_cv_HAVE_BROKEN_GETGROUPS
=no
8162 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
8163 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
8164 cat >> confdefs.h
<<\EOF
8165 #define HAVE_BROKEN_GETGROUPS 1
8170 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
8171 echo "configure:8172: checking whether getpass should be replaced" >&5
8172 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8176 SAVE_CPPFLAGS
="$CPPFLAGS"
8177 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
8178 cat > conftest.
$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8182 #define REPLACE_GETPASS 1
8183 #define NO_CONFIG_H 1
8184 #define main dont_declare_main
8185 #include "${srcdir-.}/lib/getsmbpass.c"
8192 if { (eval echo configure
:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8194 samba_cv_REPLACE_GETPASS
=yes
8196 echo "configure: failed program was:" >&5
8197 cat conftest.
$ac_ext >&5
8199 samba_cv_REPLACE_GETPASS
=no
8202 CPPFLAGS
="$SAVE_CPPFLAGS"
8206 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
8207 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
8208 cat >> confdefs.h
<<\EOF
8209 #define REPLACE_GETPASS 1
8214 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
8215 echo "configure:8216: checking for broken inet_ntoa" >&5
8216 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8220 if test "$cross_compiling" = yes; then
8221 samba_cv_REPLACE_INET_NTOA
=cross
8223 cat > conftest.
$ac_ext <<EOF
8224 #line 8225 "configure"
8225 #include "confdefs.h"
8228 #include <sys/types.h>
8229 #include <netinet/in.h>
8230 #ifdef HAVE_ARPA_INET_H
8231 #include <arpa/inet.h>
8233 main() { struct in_addr ip; ip.s_addr = 0x12345678;
8234 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
8235 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
8238 if { (eval echo configure
:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8240 samba_cv_REPLACE_INET_NTOA
=yes
8242 echo "configure: failed program was:" >&5
8243 cat conftest.
$ac_ext >&5
8245 samba_cv_REPLACE_INET_NTOA
=no
8252 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
8253 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
8254 cat >> confdefs.h
<<\EOF
8255 #define REPLACE_INET_NTOA 1
8260 echo $ac_n "checking for root""... $ac_c" 1>&6
8261 echo "configure:8262: checking for root" >&5
8262 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8266 if test "$cross_compiling" = yes; then
8267 samba_cv_HAVE_ROOT
=cross
8269 cat > conftest.
$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 main() { exit(getuid() != 0); }
8274 if { (eval echo configure
:8275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8276 samba_cv_HAVE_ROOT
=yes
8278 echo "configure: failed program was:" >&5
8279 cat conftest.
$ac_ext >&5
8281 samba_cv_HAVE_ROOT
=no
8288 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
8289 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
8290 cat >> confdefs.h
<<\EOF
8295 echo "configure: warning: running as non-root will disable some tests" 1>&2
8299 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
8300 echo "configure:8301: checking for netmask ifconf" >&5
8301 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8305 if test "$cross_compiling" = yes; then
8306 samba_cv_HAVE_NETMASK_IFCONF
=cross
8308 cat > conftest.
$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8312 #define HAVE_NETMASK_IFCONF 1
8314 #include "confdefs.h"
8315 #include "${srcdir-.}/lib/netmask.c"
8317 if { (eval echo configure
:8318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8319 samba_cv_HAVE_NETMASK_IFCONF
=yes
8321 echo "configure: failed program was:" >&5
8322 cat conftest.
$ac_ext >&5
8324 samba_cv_HAVE_NETMASK_IFCONF
=no
8331 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
8332 if test x
"$samba_cv_HAVE_NETMASK_IFCONF" = x
"yes"; then
8333 netmask
=yes;cat >> confdefs.h
<<\EOF
8334 #define HAVE_NETMASK_IFCONF 1
8339 if test $netmask = no
; then
8340 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
8341 echo "configure:8342: checking for netmask ifreq" >&5
8342 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8346 if test "$cross_compiling" = yes; then
8347 samba_cv_HAVE_NETMASK_IFREQ
=cross
8349 cat > conftest.
$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8353 #define HAVE_NETMASK_IFREQ 1
8355 #include "confdefs.h"
8356 #include "${srcdir-.}/lib/netmask.c"
8358 if { (eval echo configure
:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8360 samba_cv_HAVE_NETMASK_IFREQ
=yes
8362 echo "configure: failed program was:" >&5
8363 cat conftest.
$ac_ext >&5
8365 samba_cv_HAVE_NETMASK_IFREQ
=no
8372 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
8373 if test x
"$samba_cv_HAVE_NETMASK_IFREQ" = x
"yes"; then
8374 netmask
=yes;cat >> confdefs.h
<<\EOF
8375 #define HAVE_NETMASK_IFREQ 1
8381 if test $netmask = no
; then
8382 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
8383 echo "configure:8384: checking for netmask AIX" >&5
8384 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
8385 echo $ac_n "(cached) $ac_c" 1>&6
8388 if test "$cross_compiling" = yes; then
8389 samba_cv_HAVE_NETMASK_AIX
=cross
8391 cat > conftest.
$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8395 #define HAVE_NETMASK_AIX 1
8397 #include "confdefs.h"
8398 #include "${srcdir-.}/lib/netmask.c"
8400 if { (eval echo configure
:8401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8402 samba_cv_HAVE_NETMASK_AIX
=yes
8404 echo "configure: failed program was:" >&5
8405 cat conftest.
$ac_ext >&5
8407 samba_cv_HAVE_NETMASK_AIX
=no
8414 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
8415 if test x
"$samba_cv_HAVE_NETMASK_AIX" = x
"yes"; then
8416 netmask
=yes;cat >> confdefs.h
<<\EOF
8417 #define HAVE_NETMASK_AIX 1
8423 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
8424 echo "configure:8425: checking for trapdoor seteuid" >&5
8425 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8429 if test "$cross_compiling" = yes; then
8432 cat > conftest.
$ac_ext <<EOF
8433 #line 8434 "configure"
8434 #include "confdefs.h"
8435 #include "${srcdir-.}/tests/trapdoor.c"
8437 if { (eval echo configure
:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8439 samba_cv_HAVE_TRAPDOOR_UID
=no
8441 echo "configure: failed program was:" >&5
8442 cat conftest.
$ac_ext >&5
8444 samba_cv_HAVE_TRAPDOOR_UID
=yes
8451 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
8452 if test x
"$samba_cv_HAVE_TRAPDOOR_UID" = x
"yes"; then
8453 cat >> confdefs.h
<<\EOF
8454 #define HAVE_TRAPDOOR_UID 1
8459 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8460 echo "configure:8461: checking for shared mmap" >&5
8461 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8462 echo $ac_n "(cached) $ac_c" 1>&6
8465 if test "$cross_compiling" = yes; then
8466 samba_cv_HAVE_SHARED_MMAP
=cross
8468 cat > conftest.
$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 #include "${srcdir-.}/tests/shared_mmap.c"
8473 if { (eval echo configure
:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8475 samba_cv_HAVE_SHARED_MMAP
=yes
8477 echo "configure: failed program was:" >&5
8478 cat conftest.
$ac_ext >&5
8480 samba_cv_HAVE_SHARED_MMAP
=no
8487 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
8488 if test x
"$samba_cv_HAVE_SHARED_MMAP" = x
"yes"; then
8489 cat >> confdefs.h
<<\EOF
8490 #define HAVE_SHARED_MMAP 1
8493 cat >> confdefs.h
<<\EOF
8499 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
8500 echo "configure:8501: checking for ftruncate needs root" >&5
8501 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8505 if test "$cross_compiling" = yes; then
8506 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
8508 cat > conftest.
$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 #include "${srcdir-.}/tests/ftruncroot.c"
8513 if { (eval echo configure
:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8515 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
8517 echo "configure: failed program was:" >&5
8518 cat conftest.
$ac_ext >&5
8520 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
8527 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
8528 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
8529 cat >> confdefs.h
<<\EOF
8530 #define FTRUNCATE_NEEDS_ROOT 1
8535 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
8536 echo "configure:8537: checking for fcntl locking" >&5
8537 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
8538 echo $ac_n "(cached) $ac_c" 1>&6
8541 if test "$cross_compiling" = yes; then
8542 samba_cv_HAVE_FCNTL_LOCK
=cross
8544 cat > conftest.
$ac_ext <<EOF
8545 #line 8546 "configure"
8546 #include "confdefs.h"
8547 #include "${srcdir-.}/tests/fcntl_lock.c"
8549 if { (eval echo configure
:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8551 samba_cv_HAVE_FCNTL_LOCK
=yes
8553 echo "configure: failed program was:" >&5
8554 cat conftest.
$ac_ext >&5
8556 samba_cv_HAVE_FCNTL_LOCK
=no
8563 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8564 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
8565 cat >> confdefs.h
<<\EOF
8566 #define HAVE_FCNTL_LOCK 1
8571 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8572 echo "configure:8573: checking for 64 bit fcntl locking" >&5
8573 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8577 if test "$cross_compiling" = yes; then
8578 samba_cv_HAVE_STRUCT_FLOCK64
=cross
8580 cat > conftest.
$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8584 #if defined(HAVE_UNISTD_H)
8594 #ifdef HAVE_SYS_FCNTL_H
8595 #include <sys/fcntl.h>
8597 main() { struct flock64 fl64;
8598 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8605 if { (eval echo configure
:8606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8607 samba_cv_HAVE_STRUCT_FLOCK64
=yes
8609 echo "configure: failed program was:" >&5
8610 cat conftest.
$ac_ext >&5
8612 samba_cv_HAVE_STRUCT_FLOCK64
=no
8619 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8620 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
8621 cat >> confdefs.h
<<\EOF
8622 #define HAVE_STRUCT_FLOCK64 1
8627 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8628 echo "configure:8629: checking for sysv ipc" >&5
8629 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8633 if test "$cross_compiling" = yes; then
8634 samba_cv_HAVE_SYSV_IPC
=cross
8636 cat > conftest.
$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 #include "${srcdir-.}/tests/sysv_ipc.c"
8641 if { (eval echo configure
:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8643 samba_cv_HAVE_SYSV_IPC
=yes
8645 echo "configure: failed program was:" >&5
8646 cat conftest.
$ac_ext >&5
8648 samba_cv_HAVE_SYSV_IPC
=no
8655 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8656 if test x
"$samba_cv_HAVE_SYSV_IPC" = x
"yes"; then
8657 cat >> confdefs.h
<<\EOF
8658 #define HAVE_SYSV_IPC 1
8663 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
8664 echo "configure:8665: checking for a crypt that needs truncated salt" >&5
8665 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8669 if test "$cross_compiling" = yes; then
8670 samba_cv_HAVE_TRUNCATED_SALT
=cross
8672 cat > conftest.
$ac_ext <<EOF
8673 #line 8674 "configure"
8674 #include "confdefs.h"
8675 #include "${srcdir-.}/tests/crypttest.c"
8677 if { (eval echo configure
:8678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8679 samba_cv_HAVE_TRUNCATED_SALT
=no
8681 echo "configure: failed program was:" >&5
8682 cat conftest.
$ac_ext >&5
8684 samba_cv_HAVE_TRUNCATED_SALT
=yes
8691 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
8692 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
8693 cat >> confdefs.h
<<\EOF
8694 #define HAVE_TRUNCATED_SALT 1
8699 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
8700 echo "configure:8701: checking for broken nisplus include files" >&5
8701 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8705 cat > conftest.
$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 #include <sys/acl.h>
8709 #if defined(HAVE_RPCSVC_NIS_H)
8710 #include <rpcsvc/nis.h>
8716 if { (eval echo configure
:8717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8718 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
8720 echo "configure: failed program was:" >&5
8721 cat conftest.
$ac_ext >&5
8723 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
8728 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
8729 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
8730 cat >> confdefs.h
<<\EOF
8731 #define BROKEN_NISPLUS_INCLUDE_FILES 1
8737 #################################################
8738 # check for smbwrapper support
8739 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8740 echo "configure:8741: checking whether to use smbwrapper" >&5
8741 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8742 if test "${with_smbwrapper+set}" = set; then
8743 withval
="$with_smbwrapper"
8746 echo "$ac_t""yes" 1>&6
8747 cat >> confdefs.h
<<\EOF
8748 #define WITH_SMBWRAPPER 1
8751 WRAP
="bin/smbsh bin/smbwrapper.so"
8753 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
8756 WRAP32
=bin
/smbwrapper
.32.so
8759 # Conditions under which smbwrapper should not be built.
8761 if test x
$PICFLAG = x
; then
8762 echo No support
for PIC code
- disabling smbwrapper and smbsh
8765 elif test x
$ac_cv_func_syscall = xno
; then
8766 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8772 echo "$ac_t""no" 1>&6
8776 echo "$ac_t""no" 1>&6
8781 #################################################
8782 # check for the AFS filesystem
8783 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8784 echo "configure:8785: checking whether to use AFS" >&5
8785 # Check whether --with-afs or --without-afs was given.
8786 if test "${with_afs+set}" = set; then
8790 echo "$ac_t""yes" 1>&6
8791 cat >> confdefs.h
<<\EOF
8797 echo "$ac_t""no" 1>&6
8801 echo "$ac_t""no" 1>&6
8807 #################################################
8808 # check for the DFS auth system
8809 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8810 echo "configure:8811: checking whether to use DFS auth" >&5
8811 # Check whether --with-dfs or --without-dfs was given.
8812 if test "${with_dfs+set}" = set; then
8816 echo "$ac_t""yes" 1>&6
8817 cat >> confdefs.h
<<\EOF
8823 echo "$ac_t""no" 1>&6
8827 echo "$ac_t""no" 1>&6
8832 #################################################
8833 # check for Kerberos IV auth system
8834 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8835 echo "configure:8836: checking whether to use Kerberos IV" >&5
8836 # Check whether --with-krb4 or --without-krb4 was given.
8837 if test "${with_krb4+set}" = set; then
8838 withval
="$with_krb4"
8839 echo "$ac_t""yes" 1>&6
8840 cat >> confdefs.h
<<\EOF
8844 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8845 echo "configure:8846: checking for dn_expand in -lresolv" >&5
8846 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8850 ac_save_LIBS
="$LIBS"
8851 LIBS
="-lresolv $LIBS"
8852 cat > conftest.
$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8864 if { (eval echo configure
:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
8866 eval "ac_cv_lib_$ac_lib_var=yes"
8868 echo "configure: failed program was:" >&5
8869 cat conftest.
$ac_ext >&5
8871 eval "ac_cv_lib_$ac_lib_var=no"
8874 LIBS
="$ac_save_LIBS"
8877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8878 echo "$ac_t""yes" 1>&6
8879 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8881 cat >> confdefs.h
<<EOF
8882 #define $ac_tr_lib 1
8885 LIBS
="-lresolv $LIBS"
8888 echo "$ac_t""no" 1>&6
8891 LIBS
="$LIBS -lkrb -ldes"
8892 CFLAGS
="$CFLAGS -I$withval/include"
8893 LDFLAGS
="$LDFLAGS -L$withval/lib"
8895 echo "$ac_t""no" 1>&6
8900 #################################################
8901 # check for Kerberos 5 auth system
8902 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
8903 echo "configure:8904: checking whether to use Kerberos 5" >&5
8904 # Check whether --with-krb5 or --without-krb5 was given.
8905 if test "${with_krb5+set}" = set; then
8906 withval
="$with_krb5"
8907 echo "$ac_t""yes" 1>&6
8908 cat >> confdefs.h
<<\EOF
8912 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
8913 CFLAGS
="$CFLAGS -I$withval/include"
8914 LDFLAGS
="$LDFLAGS -L$withval/lib"
8916 echo "$ac_t""no" 1>&6
8921 #################################################
8922 # check for automount support
8923 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8924 echo "configure:8925: checking whether to use AUTOMOUNT" >&5
8925 # Check whether --with-automount or --without-automount was given.
8926 if test "${with_automount+set}" = set; then
8927 withval
="$with_automount"
8930 echo "$ac_t""yes" 1>&6
8931 cat >> confdefs.h
<<\EOF
8932 #define WITH_AUTOMOUNT 1
8937 echo "$ac_t""no" 1>&6
8941 echo "$ac_t""no" 1>&6
8946 #################################################
8947 # check for smbmount support
8948 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8949 echo "configure:8950: checking whether to use SMBMOUNT" >&5
8950 # Check whether --with-smbmount or --without-smbmount was given.
8951 if test "${with_smbmount+set}" = set; then
8952 withval
="$with_smbmount"
8955 echo "$ac_t""yes" 1>&6
8956 cat >> confdefs.h
<<\EOF
8957 #define WITH_SMBMOUNT 1
8960 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
8963 echo "$ac_t""no" 1>&6
8968 echo "$ac_t""no" 1>&6
8974 #################################################
8975 # check for a LDAP password database
8976 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8977 echo "configure:8978: checking whether to use LDAP password database" >&5
8978 # Check whether --with-ldap or --without-ldap was given.
8979 if test "${with_ldap+set}" = set; then
8980 withval
="$with_ldap"
8983 echo "$ac_t""yes" 1>&6
8984 cat >> confdefs.h
<<\EOF
8990 echo "$ac_t""no" 1>&6
8994 echo "$ac_t""no" 1>&6
8999 #################################################
9000 # check for a NISPLUS password database
9001 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
9002 echo "configure:9003: checking whether to use NISPLUS password database" >&5
9003 # Check whether --with-nisplus or --without-nisplus was given.
9004 if test "${with_nisplus+set}" = set; then
9005 withval
="$with_nisplus"
9008 echo "$ac_t""yes" 1>&6
9009 cat >> confdefs.h
<<\EOF
9010 #define WITH_NISPLUS 1
9015 echo "$ac_t""no" 1>&6
9019 echo "$ac_t""no" 1>&6
9024 #################################################
9025 # check for a NISPLUS_HOME support
9026 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
9027 echo "configure:9028: checking whether to use NISPLUS_HOME" >&5
9028 # Check whether --with-nisplus-home or --without-nisplus-home was given.
9029 if test "${with_nisplus_home+set}" = set; then
9030 withval
="$with_nisplus_home"
9033 echo "$ac_t""yes" 1>&6
9034 cat >> confdefs.h
<<\EOF
9035 #define WITH_NISPLUS_HOME 1
9040 echo "$ac_t""no" 1>&6
9044 echo "$ac_t""no" 1>&6
9049 #################################################
9050 # check for the secure socket layer
9051 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
9052 echo "configure:9053: checking whether to use SSL" >&5
9053 # Check whether --with-ssl or --without-ssl was given.
9054 if test "${with_ssl+set}" = set; then
9058 echo "$ac_t""yes" 1>&6
9059 cat >> confdefs.h
<<\EOF
9063 withval
="/usr/local/ssl" # default
9065 if test "${with_sslinc+set}" = set; then
9067 withval
="$with_sslinc"
9070 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
9071 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
9072 LIBS
="-lssl -lcrypto $LIBS"
9073 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
9076 CFLAGS
="-I${withval}/include $CFLAGS"
9077 LIBS
="-lssl -l crypto $LIBS"
9078 LDFLAGS
="-L${withval}/lib $LDFLAGS"
9084 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
9085 LIBS
="-lssl -lcrypto $LIBS"
9086 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
9090 if test ! -d ${withval}; then
9091 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
9095 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
9099 echo "$ac_t""no" 1>&6
9103 echo "$ac_t""no" 1>&6
9108 #################################################
9109 # check for experimental mmap support
9110 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
9111 echo "configure:9112: checking whether to use MMAP" >&5
9112 # Check whether --with-mmap or --without-mmap was given.
9113 if test "${with_mmap+set}" = set; then
9114 withval
="$with_mmap"
9117 echo "$ac_t""yes" 1>&6
9118 cat >> confdefs.h
<<\EOF
9124 echo "$ac_t""no" 1>&6
9128 echo "$ac_t""no" 1>&6
9133 #################################################
9134 # check for syslog logging
9135 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
9136 echo "configure:9137: checking whether to use syslog logging" >&5
9137 # Check whether --with-syslog or --without-syslog was given.
9138 if test "${with_syslog+set}" = set; then
9139 withval
="$with_syslog"
9142 echo "$ac_t""yes" 1>&6
9143 cat >> confdefs.h
<<\EOF
9144 #define WITH_SYSLOG 1
9149 echo "$ac_t""no" 1>&6
9153 echo "$ac_t""no" 1>&6
9158 #################################################
9159 # check for experimental netatalk resource fork support
9160 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
9161 echo "configure:9162: checking whether to support netatalk" >&5
9162 # Check whether --with-netatalk or --without-netatalk was given.
9163 if test "${with_netatalk+set}" = set; then
9164 withval
="$with_netatalk"
9167 echo "$ac_t""yes" 1>&6
9168 cat >> confdefs.h
<<\EOF
9169 #define WITH_NETATALK 1
9174 echo "$ac_t""no" 1>&6
9178 echo "$ac_t""no" 1>&6
9183 #################################################
9184 # check for experimental disk-quotas support
9185 QUOTAOBJS
=noquotas.o
9187 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
9188 echo "configure:9189: checking whether to support disk-quotas" >&5
9189 # Check whether --with-quotas or --without-quotas was given.
9190 if test "${with_quotas+set}" = set; then
9191 withval
="$with_quotas"
9194 echo "$ac_t""yes" 1>&6
9198 echo "$ac_t""no" 1>&6
9202 echo "$ac_t""no" 1>&6
9208 #################################################
9209 # set private directory location
9210 # Check whether --with-privatedir or --without-privatedir was given.
9211 if test "${with_privatedir+set}" = set; then
9212 withval
="$with_privatedir"
9216 # Just in case anybody calls it without argument
9218 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
9219 privatedir
='${prefix}/private'
9222 privatedir
="$withval"
9227 privatedir
='${prefix}/private'
9233 #################################################
9234 # set lock directory location
9235 # Check whether --with-lockdir or --without-lockdir was given.
9236 if test "${with_lockdir+set}" = set; then
9237 withval
="$with_lockdir"
9241 # Just in case anybody calls it without argument
9243 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
9244 lockdir
='$(VARDIR)/locks'
9252 lockdir
='$(VARDIR)/locks'
9258 #################################################
9259 # set SWAT directory location
9260 # Check whether --with-swatdir or --without-swatdir was given.
9261 if test "${with_swatdir+set}" = set; then
9262 withval
="$with_swatdir"
9266 # Just in case anybody does it
9268 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
9269 swatdir
='${prefix}/swat'
9277 swatdir
='${prefix}/swat'
9283 #################################################
9284 # these tests are taken from the GNU fileutils package
9285 echo "checking how to get filesystem space usage" 1>&6
9286 echo "configure:9287: checking how to get filesystem space usage" >&5
9289 # Test for statvfs64.
9290 if test $space = no
; then
9292 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
9293 echo "configure:9294: checking statvfs64 function (SVR4)" >&5
9294 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
9295 echo $ac_n "(cached) $ac_c" 1>&6
9297 if test "$cross_compiling" = yes; then
9298 fu_cv_sys_stat_statvfs64
=cross
9300 cat > conftest.
$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9304 #if defined(HAVE_UNISTD_H)
9307 #include <sys/types.h>
9308 #include <sys/statvfs.h>
9311 struct statvfs64 fsd;
9312 exit (statvfs64 (".", &fsd));
9315 if { (eval echo configure
:9316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9317 fu_cv_sys_stat_statvfs64
=yes
9319 echo "configure: failed program was:" >&5
9320 cat conftest.
$ac_ext >&5
9322 fu_cv_sys_stat_statvfs64
=no
9329 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
9330 if test $fu_cv_sys_stat_statvfs64 = yes; then
9332 cat >> confdefs.h
<<\EOF
9333 #define STAT_STATVFS64 1
9339 # Perform only the link test since it seems there are no variants of the
9340 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
9341 # because that got a false positive on SCO OSR5. Adding the declaration
9342 # of a `struct statvfs' causes this test to fail (as it should) on such
9343 # systems. That system is reported to work fine with STAT_STATFS4 which
9344 # is what it gets when this test fails.
9345 if test $space = no
; then
9347 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
9348 echo "configure:9349: checking statvfs function (SVR4)" >&5
9349 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9352 cat > conftest.
$ac_ext <<EOF
9353 #line 9354 "configure"
9354 #include "confdefs.h"
9355 #include <sys/types.h>
9356 #include <sys/statvfs.h>
9358 struct statvfs fsd; statvfs (0, &fsd);
9361 if { (eval echo configure
:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
9363 fu_cv_sys_stat_statvfs
=yes
9365 echo "configure: failed program was:" >&5
9366 cat conftest.
$ac_ext >&5
9368 fu_cv_sys_stat_statvfs
=no
9373 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
9374 if test $fu_cv_sys_stat_statvfs = yes; then
9376 cat >> confdefs.h
<<\EOF
9377 #define STAT_STATVFS 1
9383 if test $space = no
; then
9384 # DEC Alpha running OSF/1
9385 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
9386 echo "configure:9387: checking for 3-argument statfs function (DEC OSF/1)" >&5
9387 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
9388 echo $ac_n "(cached) $ac_c" 1>&6
9390 if test "$cross_compiling" = yes; then
9391 fu_cv_sys_stat_statfs3_osf1
=no
9393 cat > conftest.
$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9397 #include <sys/param.h>
9398 #include <sys/types.h>
9399 #include <sys/mount.h>
9404 exit (statfs (".", &fsd, sizeof (struct statfs)));
9407 if { (eval echo configure
:9408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9409 fu_cv_sys_stat_statfs3_osf1
=yes
9411 echo "configure: failed program was:" >&5
9412 cat conftest.
$ac_ext >&5
9414 fu_cv_sys_stat_statfs3_osf1
=no
9421 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
9422 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9424 cat >> confdefs.h
<<\EOF
9425 #define STAT_STATFS3_OSF1 1
9431 if test $space = no
; then
9433 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
9434 echo "configure:9435: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9435 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9438 if test "$cross_compiling" = yes; then
9439 fu_cv_sys_stat_statfs2_bsize
=no
9441 cat > conftest.
$ac_ext <<EOF
9442 #line 9443 "configure"
9443 #include "confdefs.h"
9445 #ifdef HAVE_SYS_PARAM_H
9446 #include <sys/param.h>
9448 #ifdef HAVE_SYS_MOUNT_H
9449 #include <sys/mount.h>
9451 #ifdef HAVE_SYS_VFS_H
9452 #include <sys/vfs.h>
9458 exit (statfs (".", &fsd));
9461 if { (eval echo configure
:9462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9463 fu_cv_sys_stat_statfs2_bsize
=yes
9465 echo "configure: failed program was:" >&5
9466 cat conftest.
$ac_ext >&5
9468 fu_cv_sys_stat_statfs2_bsize
=no
9475 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
9476 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9478 cat >> confdefs.h
<<\EOF
9479 #define STAT_STATFS2_BSIZE 1
9485 if test $space = no
; then
9487 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
9488 echo "configure:9489: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9489 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9492 if test "$cross_compiling" = yes; then
9493 fu_cv_sys_stat_statfs4
=no
9495 cat > conftest.
$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 #include <sys/types.h>
9499 #include <sys/statfs.h>
9503 exit (statfs (".", &fsd, sizeof fsd, 0));
9506 if { (eval echo configure
:9507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9508 fu_cv_sys_stat_statfs4
=yes
9510 echo "configure: failed program was:" >&5
9511 cat conftest.
$ac_ext >&5
9513 fu_cv_sys_stat_statfs4
=no
9520 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
9521 if test $fu_cv_sys_stat_statfs4 = yes; then
9523 cat >> confdefs.h
<<\EOF
9524 #define STAT_STATFS4 1
9530 if test $space = no
; then
9532 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
9533 echo "configure:9534: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9534 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9537 if test "$cross_compiling" = yes; then
9538 fu_cv_sys_stat_statfs2_fsize
=no
9540 cat > conftest.
$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 #include <sys/types.h>
9544 #ifdef HAVE_SYS_PARAM_H
9545 #include <sys/param.h>
9547 #ifdef HAVE_SYS_MOUNT_H
9548 #include <sys/mount.h>
9554 exit (statfs (".", &fsd));
9557 if { (eval echo configure
:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9559 fu_cv_sys_stat_statfs2_fsize
=yes
9561 echo "configure: failed program was:" >&5
9562 cat conftest.
$ac_ext >&5
9564 fu_cv_sys_stat_statfs2_fsize
=no
9571 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
9572 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9574 cat >> confdefs.h
<<\EOF
9575 #define STAT_STATFS2_FSIZE 1
9581 if test $space = no
; then
9583 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
9584 echo "configure:9585: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9585 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9588 if test "$cross_compiling" = yes; then
9589 fu_cv_sys_stat_fs_data
=no
9591 cat > conftest.
$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 #include <sys/types.h>
9595 #ifdef HAVE_SYS_PARAM_H
9596 #include <sys/param.h>
9598 #ifdef HAVE_SYS_MOUNT_H
9599 #include <sys/mount.h>
9601 #ifdef HAVE_SYS_FS_TYPES_H
9602 #include <sys/fs_types.h>
9607 /* Ultrix's statfs returns 1 for success,
9608 0 for not mounted, -1 for failure. */
9609 exit (statfs (".", &fsd) != 1);
9612 if { (eval echo configure
:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9614 fu_cv_sys_stat_fs_data
=yes
9616 echo "configure: failed program was:" >&5
9617 cat conftest.
$ac_ext >&5
9619 fu_cv_sys_stat_fs_data
=no
9626 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
9627 if test $fu_cv_sys_stat_fs_data = yes; then
9629 cat >> confdefs.h
<<\EOF
9630 #define STAT_STATFS2_FS_DATA 1
9637 # As a gating factor for large file support, in order to
9638 # use <4GB files we must have the following minimal support
9640 # long long, and a 64 bit off_t or off64_t.
9641 # If we don't have all of these then disable large
9644 echo "checking if large file support can be enabled"
9645 cat > conftest.
$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9649 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
9650 #include <sys/types.h>
9659 if { (eval echo configure
:9660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9661 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
9663 echo "configure: failed program was:" >&5
9664 cat conftest.
$ac_ext >&5
9666 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
9669 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
9671 cat >> confdefs.h
<<\EOF
9672 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
9679 echo "checking configure summary"
9680 if test "$cross_compiling" = yes; then
9683 cat > conftest.
$ac_ext <<EOF
9684 #line 9685 "configure"
9685 #include "confdefs.h"
9686 #include "${srcdir-.}/tests/summary.c"
9688 if { (eval echo configure
:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
9690 echo "configure OK";
9692 echo "configure: failed program was:" >&5
9693 cat conftest.
$ac_ext >&5
9695 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
9705 cat > confcache
<<\EOF
9706 # This file is a shell script that caches the results of configure
9707 # tests run on this system so they can be shared between configure
9708 # scripts and configure runs. It is not useful on other systems.
9709 # If it contains results you don't want to keep, you may remove or edit it.
9711 # By default, configure uses ./config.cache as the cache file,
9712 # creating it if it does not exist already. You can give configure
9713 # the --cache-file=FILE option to use a different cache file; that is
9714 # what configure does when it calls configure scripts in
9715 # subdirectories, so they share the cache.
9716 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9717 # config.status only pays attention to the cache file if you give it the
9718 # --recheck option to rerun configure.
9721 # The following way of writing the cache mishandles newlines in values,
9722 # but we know of no workaround that is simple, portable, and efficient.
9723 # So, don't put newlines in cache variables' values.
9724 # Ultrix sh set writes to stderr and can't be redirected directly,
9725 # and sets the high bit in the cache file unless we assign to the vars.
9727 case `(ac_space=' '; set) 2>&1` in
9729 # `set' does not quote correctly, so add quotes (double-quote substitution
9730 # turns \\\\ into \\, and sed turns \\ into \).
9732 -e "s/'/'\\\\''/g" \
9733 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9736 # `set' quotes correctly as required by POSIX, so do not add quotes.
9737 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9740 if cmp -s $cache_file confcache
; then
9743 if test -w $cache_file; then
9744 echo "updating cache $cache_file"
9745 cat confcache
> $cache_file
9747 echo "not updating unwritable cache $cache_file"
9752 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9754 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9755 # Let make expand exec_prefix.
9756 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9758 # Any assignment to VPATH causes Sun make to only execute
9759 # the first set of double-colon rules, so remove it if not needed.
9760 # If there is a colon in the path, we need to keep it.
9761 if test "x$srcdir" = x.
; then
9762 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9765 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9767 DEFS
=-DHAVE_CONFIG_H
9769 # Without the "./", some shells look in PATH for config.status.
9770 : ${CONFIG_STATUS=./config.status}
9772 echo creating
$CONFIG_STATUS
9773 rm -f $CONFIG_STATUS
9774 cat > $CONFIG_STATUS <<EOF
9776 # Generated automatically by configure.
9777 # Run this file to recreate the current configuration.
9778 # This directory was configured as follows,
9779 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9781 # $0 $ac_configure_args
9783 # Compiler output produced by configure, useful for debugging
9784 # configure, is in ./config.log if it exists.
9786 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9789 case "\$ac_option" in
9790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9791 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9792 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9793 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9794 echo "$CONFIG_STATUS generated by autoconf version 2.12"
9796 -help | --help | --hel | --he | --h)
9797 echo "\$ac_cs_usage"; exit 0 ;;
9798 *) echo "\$ac_cs_usage"; exit 1 ;;
9802 ac_given_srcdir=$srcdir
9803 ac_given_INSTALL="$INSTALL"
9805 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9807 cat >> $CONFIG_STATUS <<EOF
9809 # Protect against being on the right side of a sed subst in config.status.
9810 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9811 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9814 s%@CFLAGS@%$CFLAGS%g
9815 s%@CPPFLAGS@%$CPPFLAGS%g
9816 s%@CXXFLAGS@%$CXXFLAGS%g
9818 s%@LDFLAGS@%$LDFLAGS%g
9820 s%@exec_prefix@%$exec_prefix%g
9821 s%@prefix@%$prefix%g
9822 s%@program_transform_name@%$program_transform_name%g
9823 s%@bindir@%$bindir%g
9824 s%@sbindir@%$sbindir%g
9825 s%@libexecdir@%$libexecdir%g
9826 s%@datadir@%$datadir%g
9827 s%@sysconfdir@%$sysconfdir%g
9828 s%@sharedstatedir@%$sharedstatedir%g
9829 s%@localstatedir@%$localstatedir%g
9830 s%@libdir@%$libdir%g
9831 s%@includedir@%$includedir%g
9832 s%@oldincludedir@%$oldincludedir%g
9833 s%@infodir@%$infodir%g
9834 s%@mandir@%$mandir%g
9836 s%@RUNPROG@%$RUNPROG%g
9837 s%@MPROGS@%$MPROGS%g
9838 s%@LDSHFLAGS@%$LDSHFLAGS%g
9839 s%@HOST_OS@%$HOST_OS%g
9841 s%@WRAP32@%$WRAP32%g
9842 s%@PICFLAG@%$PICFLAG%g
9844 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9845 s%@INSTALL_DATA@%$INSTALL_DATA%g
9847 s%@BROKEN_CC@%$BROKEN_CC%g
9849 s%@host_alias@%$host_alias%g
9850 s%@host_cpu@%$host_cpu%g
9851 s%@host_vendor@%$host_vendor%g
9852 s%@host_os@%$host_os%g
9853 s%@target@%$target%g
9854 s%@target_alias@%$target_alias%g
9855 s%@target_cpu@%$target_cpu%g
9856 s%@target_vendor@%$target_vendor%g
9857 s%@target_os@%$target_os%g
9859 s%@build_alias@%$build_alias%g
9860 s%@build_cpu@%$build_cpu%g
9861 s%@build_vendor@%$build_vendor%g
9862 s%@build_os@%$build_os%g
9864 s%@AUTOCONF@%$AUTOCONF%g
9865 s%@AUTOHEADER@%$AUTOHEADER%g
9867 s%@LIBOBJS@%$LIBOBJS%g
9869 s%@QUOTAOBJS@%$QUOTAOBJS%g
9870 s%@privatedir@%$privatedir%g
9871 s%@lockdir@%$lockdir%g
9872 s%@swatdir@%$swatdir%g
9873 s%@builddir@%$builddir%g
9878 cat >> $CONFIG_STATUS <<\EOF
9880 # Split the substitutions into bite-sized pieces for seds with
9881 # small command number limits, like on Digital OSF/1 and HP-UX.
9882 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9883 ac_file
=1 # Number of current file.
9884 ac_beg
=1 # First line for current file.
9885 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9888 while $ac_more_lines; do
9889 if test $ac_beg -gt 1; then
9890 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9892 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9894 if test ! -s conftest.s
$ac_file; then
9896 rm -f conftest.s
$ac_file
9898 if test -z "$ac_sed_cmds"; then
9899 ac_sed_cmds
="sed -f conftest.s$ac_file"
9901 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9903 ac_file
=`expr $ac_file + 1`
9905 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9908 if test -z "$ac_sed_cmds"; then
9913 cat >> $CONFIG_STATUS <<EOF
9915 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
9917 cat >> $CONFIG_STATUS <<\EOF
9918 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9921 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9922 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9923 *) ac_file_in
="${ac_file}.in" ;;
9926 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9928 # Remove last slash and all that follows it. Not all systems have dirname.
9929 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9930 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9931 # The file is in a subdirectory.
9932 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9933 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9934 # A "../" for each directory in $ac_dir_suffix.
9935 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9937 ac_dir_suffix
= ac_dots
=
9940 case "$ac_given_srcdir" in
9942 if test -z "$ac_dots"; then top_srcdir
=.
9943 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9944 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9946 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9947 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9950 case "$ac_given_INSTALL" in
9951 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9952 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9955 echo creating
"$ac_file"
9957 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9959 *Makefile
*) ac_comsub
="1i\\
9960 # $configure_input" ;;
9964 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9966 s%@configure_input@%$configure_input%g
9967 s%@srcdir@%$srcdir%g
9968 s%@top_srcdir@%$top_srcdir%g
9969 s%@INSTALL@%$INSTALL%g
9970 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9974 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9975 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9977 # ac_d sets the value in "#define NAME VALUE" lines.
9978 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9979 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9982 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9983 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9984 ac_uB
='\([ ]\)%\1#\2define\3'
9987 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9988 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9989 ac_eB
='$%\1#\2define\3'
9993 if test "${CONFIG_HEADERS+set}" != set; then
9995 cat >> $CONFIG_STATUS <<EOF
9996 CONFIG_HEADERS="include/config.h"
9998 cat >> $CONFIG_STATUS <<\EOF
10000 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10003 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10004 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10005 *) ac_file_in
="${ac_file}.in" ;;
10008 echo creating
$ac_file
10010 rm -f conftest.frag conftest.
in conftest.out
10011 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10012 cat $ac_file_inputs > conftest.
in
10016 # Transform confdefs.h into a sed script conftest.vals that substitutes
10017 # the proper values into config.h.in to produce config.h. And first:
10018 # Protect against being on the right side of a sed subst in config.status.
10019 # Protect against being in an unquoted here document in config.status.
10020 rm -f conftest.vals
10021 cat > conftest.hdr
<<\EOF
10024 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10028 sed -n -f conftest.hdr confdefs.h > conftest.vals
10031 # This sed command replaces #undef with comments. This is necessary, for
10032 # example, in the case of _POSIX_SOURCE, which is predefined and required
10033 # on some systems where configure will not decide to define it.
10034 cat >> conftest.vals <<\EOF
10035 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10038 # Break up conftest.vals because some shells have a limit on
10039 # the size of here documents, and old seds have small limits too.
10041 rm -f conftest.tail
10044 ac_lines=`grep -c . conftest.vals
`
10045 # grep -c gives empty output for an empty file on some AIX systems.
10046 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10047 # Write a limited-size here document to conftest.frag.
10048 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10049 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10051 sed -f conftest.frag conftest.in > conftest.out
10053 mv conftest.out conftest.in
10054 ' >> $CONFIG_STATUS
10055 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10056 rm -f conftest.vals
10057 mv conftest.tail conftest.vals
10059 rm -f conftest.vals
10061 cat >> $CONFIG_STATUS <<\EOF
10062 rm -f conftest.frag conftest.h
10063 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10064 cat conftest.in >> conftest.h
10066 if cmp -s $ac_file conftest.h 2>/dev/null; then
10067 echo "$ac_file is unchanged"
10070 # Remove last slash and all that follows it. Not all systems have dirname.
10071 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10072 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10073 # The file is in a subdirectory.
10074 test ! -d "$ac_dir" && mkdir "$ac_dir"
10077 mv conftest.h $ac_file
10082 cat >> $CONFIG_STATUS <<EOF
10085 cat >> $CONFIG_STATUS <<\EOF
10089 chmod +x $CONFIG_STATUS
10090 rm -fr confdefs* $ac_clean_files
10091 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1